@norges-domstoler/dds-components 13.10.1 → 13.10.2

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
@@ -390,7 +390,9 @@ var fontPackage = (small) => {
390
390
  }
391
391
  return navTokens2.logoAndVersion.logo;
392
392
  };
393
- var NavigationLogo = import_styled_components3.default.a`
393
+ var NavigationLogo = import_styled_components3.default.a.withConfig({
394
+ shouldForwardProp: (prop) => prop !== "small"
395
+ })`
394
396
  font-size: ${({ small }) => fontPackage(small).fontSize};
395
397
  font-style: ${({ small }) => fontPackage(small).fontStyle};
396
398
  font-family: ${({ small }) => fontPackage(small).fontFamily};
@@ -756,11 +758,11 @@ var import_dds_core4 = require("@norges-domstoler/dds-core");
756
758
  var import_jsx_runtime5 = require("react/jsx-runtime");
757
759
  var StyledSpinner = import_styled_components4.default.svg`
758
760
  display: block;
759
- width: ${({ size }) => size};
760
- height: ${({ size }) => size};
761
+ width: ${({ $size }) => $size};
762
+ height: ${({ $size }) => $size};
761
763
  stroke-dasharray: 90, 150;
762
764
  animation: rotate 1.5s linear infinite;
763
- animation-delay: ${({ outerAnimationDelay }) => outerAnimationDelay}ms;
765
+ animation-delay: ${({ $outerAnimationDelay }) => $outerAnimationDelay}ms;
764
766
 
765
767
  @media (prefers-reduced-motion: no-preference) {
766
768
  animation: rotate 2s linear infinite;
@@ -773,12 +775,12 @@ var StyledSpinner = import_styled_components4.default.svg`
773
775
  }
774
776
  `;
775
777
  var Circle = import_styled_components4.default.circle`
776
- stroke: ${({ color }) => color && (0, import_dds_core3.getTextColor)(color)};
778
+ stroke: ${({ $color }) => $color && (0, import_dds_core3.getTextColor)($color)};
777
779
  stroke-linecap: round;
778
780
 
779
781
  @media (prefers-reduced-motion: no-preference) {
780
782
  animation: dash 1.5s ease-in-out infinite;
781
- animation-delay: ${({ innerAnimationDelay }) => innerAnimationDelay}ms;
783
+ animation-delay: ${({ $innerAnimationDelay }) => $innerAnimationDelay}ms;
782
784
 
783
785
  @keyframes dash {
784
786
  0% {
@@ -813,12 +815,8 @@ function Spinner(props) {
813
815
  const uniqueId = `${generatedId}-spinnerTitle`;
814
816
  const spinnerProps = {
815
817
  ...(0, import_dds_core4.getBaseHTMLProps)(id, className, htmlProps, rest),
816
- outerAnimationDelay,
817
- size
818
- };
819
- const circleProps = {
820
- innerAnimationDelay,
821
- color
818
+ $outerAnimationDelay: outerAnimationDelay,
819
+ $size: size
822
820
  };
823
821
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
824
822
  StyledSpinner,
@@ -832,7 +830,8 @@ function Spinner(props) {
832
830
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
833
831
  Circle,
834
832
  {
835
- ...circleProps,
833
+ $innerAnimationDelay: innerAnimationDelay,
834
+ $color: color,
836
835
  cx: "25",
837
836
  cy: "25",
838
837
  r: "20",
@@ -902,7 +901,21 @@ var getAppearanceAndPurposeStyling = (appearance, purpose) => {
902
901
  `;
903
902
  }
904
903
  };
905
- var ButtonWrapper = import_styled_components5.default.button`
904
+ var ButtonWrapper = import_styled_components5.default.button.withConfig({
905
+ shouldForwardProp: (prop) => {
906
+ const styleOnlyProps = [
907
+ "appearance",
908
+ "purpose",
909
+ "size",
910
+ "fullWidth",
911
+ "hasIcon",
912
+ "hasLabel",
913
+ "isLoading",
914
+ "iconPosition"
915
+ ];
916
+ return !styleOnlyProps.some((styleProp) => styleProp === prop);
917
+ }
918
+ })`
906
919
  ${import_dds_core5.normalizeButton}
907
920
  border: ${base.border};
908
921
  user-select: text;
@@ -957,10 +970,10 @@ var ButtonWrapper = import_styled_components5.default.button`
957
970
  ${({ fullWidth, hasIcon, hasLabel, isLoading, iconPosition }) => fullWidth && (!hasIcon || !hasLabel || isLoading ? import_styled_components5.css`
958
971
  justify-content: center;
959
972
  ` : hasIcon && hasLabel && iconPosition === "left" ? import_styled_components5.css`
960
- justify-content: left;
961
- ` : import_styled_components5.css`
962
- justify-content: space-between;
963
- `)}
973
+ justify-content: left;
974
+ ` : import_styled_components5.css`
975
+ justify-content: space-between;
976
+ `)}
964
977
 
965
978
  &:focus-visible, &.focus-visible {
966
979
  ${import_dds_form.focusVisible}
@@ -970,7 +983,18 @@ var ButtonWrapper = import_styled_components5.default.button`
970
983
  ${import_dds_core5.selection}
971
984
  }
972
985
  `;
973
- var StyledIconWrapperSpan = import_styled_components5.default.span`
986
+ var StyledIconWrapperSpan = import_styled_components5.default.span.withConfig({
987
+ shouldForwardProp: (prop) => {
988
+ const styleOnlyProps = [
989
+ "iconPosition",
990
+ "size",
991
+ "absolutePosition",
992
+ "isHidden",
993
+ "justIcon"
994
+ ];
995
+ return !styleOnlyProps.some((styleProp) => styleProp === prop);
996
+ }
997
+ })`
974
998
  display: flex;
975
999
  align-items: center;
976
1000
  justify-content: center;
@@ -985,7 +1009,9 @@ var StyledIconWrapperSpan = import_styled_components5.default.span`
985
1009
  width: ${sizes2[size].justIcon.wrapper.width};
986
1010
  `}
987
1011
  `;
988
- var Label = import_styled_components5.default.span`
1012
+ var Label = import_styled_components5.default.span.withConfig({
1013
+ shouldForwardProp: (prop) => prop !== "isHidden"
1014
+ })`
989
1015
  ${({ isHidden }) => isHidden && import_styled_components5.css`
990
1016
  visibility: hidden;
991
1017
  `}
@@ -1301,7 +1327,7 @@ var StyledScrollableContainer = import_styled_components7.default.div`
1301
1327
  padding: ${outerContainer2.padding};
1302
1328
  `;
1303
1329
  var Content = import_styled_components7.default.div`
1304
- height: ${({ height }) => height};
1330
+ height: ${({ $height }) => $height};
1305
1331
  overflow: auto;
1306
1332
  scrollbar-width: none;
1307
1333
  ::-webkit-scrollbar {
@@ -1332,7 +1358,7 @@ var ScrollableContainer = (props) => {
1332
1358
  {
1333
1359
  ...(0, import_dds_core8.getBaseHTMLProps)(id, className, htmlProps, rest),
1334
1360
  children: [
1335
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Content, { height: contentHeight, ref, tabIndex: 0, children }),
1361
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Content, { $height: contentHeight, ref, tabIndex: 0, children }),
1336
1362
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Scrollbar, { contentRef: ref })
1337
1363
  ]
1338
1364
  }
@@ -1572,7 +1598,7 @@ var Container = import_styled_components9.default.div`
1572
1598
  overflow-y: auto;
1573
1599
  min-width: 180px;
1574
1600
  max-width: 300px;
1575
- ${({ isOpen }) => (0, import_dds_core13.visibilityTransition)(isOpen)}
1601
+ ${({ $isOpen }) => (0, import_dds_core13.visibilityTransition)($isOpen)}
1576
1602
  border: ${container2.border};
1577
1603
  background-color: ${container2.backgroundColor};
1578
1604
  border-radius: ${container2.borderRadius};
@@ -1696,7 +1722,7 @@ var OverflowMenu = (0, import_react8.forwardRef)(
1696
1722
  ...(0, import_dds_core15.getBaseHTMLProps)(id, className, restHTMLProps, rest),
1697
1723
  ref: combinedRef,
1698
1724
  id: id != null ? id : `${generatedId}-overflowMenu`,
1699
- isOpen,
1725
+ $isOpen: isOpen,
1700
1726
  style: { ...style, ...styles.floating },
1701
1727
  "aria-hidden": !isOpen,
1702
1728
  role: "menu"
@@ -1792,7 +1818,9 @@ var IconButtonText = import_styled_components10.default.span`
1792
1818
  display: none; // Ikke vis tekst på mobil
1793
1819
  width: 0;
1794
1820
  `;
1795
- var Bar = import_styled_components10.default.div`
1821
+ var Bar = import_styled_components10.default.div.withConfig({
1822
+ shouldForwardProp: (prop) => prop !== "environmentBannerActive"
1823
+ })`
1796
1824
  display: flex;
1797
1825
  align-items: center;
1798
1826
  justify-content: space-between;
@@ -1877,7 +1905,9 @@ var TopBar = ({
1877
1905
  var import_development_utils2 = require("@norges-domstoler/development-utils");
1878
1906
  var import_jsx_runtime13 = require("react/jsx-runtime");
1879
1907
  var { navigation: navTokens4 } = appShellTokens;
1880
- var Sidebar = import_styled_components11.default.div`
1908
+ var Sidebar = import_styled_components11.default.div.withConfig({
1909
+ shouldForwardProp: (prop) => prop !== "isOpen" && prop !== "environmentBannerActive"
1910
+ })`
1881
1911
  display: flex;
1882
1912
  flex-direction: column;
1883
1913
  height: calc(100vh - ${navTokens4.topBar.height});
@@ -2020,7 +2050,9 @@ var AppShellContainer = import_styled_components12.default.div`
2020
2050
  flex-direction: row;
2021
2051
  }
2022
2052
  `;
2023
- var MainContent = import_styled_components12.default.main`
2053
+ var MainContent = import_styled_components12.default.main.withConfig({
2054
+ shouldForwardProp: (prop) => prop !== "environmentBannerActive"
2055
+ })`
2024
2056
  min-height: calc(100vh - ${appShellTokens.navigation.topBar.height});
2025
2057
  margin-top: ${({ environmentBannerActive }) => environmentBannerActive ? `calc(${import_development_utils3.ENVIRONMENT_BANNER_HEIGHT} + ${appShellTokens.navigation.topBar.height})` : appShellTokens.navigation.topBar.height};
2026
2058
  @media (min-width: ${appShellTokens.navigation.mobile.breakpoint}) {
@@ -2203,7 +2235,7 @@ var CustomSelectionControl = import_styled_components13.default.span`
2203
2235
  border-radius: ${selectionControl2.base.borderRadius};
2204
2236
  height: ${selectionControl2.base.height};
2205
2237
  width: ${selectionControl2.base.width};
2206
- ${({ controlType }) => controlType === "radio" && import_styled_components13.css`
2238
+ ${({ $controlType }) => $controlType === "radio" && import_styled_components13.css`
2207
2239
  border-radius: 50%;
2208
2240
  `}
2209
2241
  &:after {
@@ -2220,7 +2252,7 @@ var Container2 = import_styled_components13.default.label`
2220
2252
  user-select: none;
2221
2253
  width: fit-content;
2222
2254
  color: ${container4.color};
2223
- ${({ hasLabel }) => hasLabel ? import_styled_components13.css`
2255
+ ${({ $hasLabel }) => $hasLabel ? import_styled_components13.css`
2224
2256
  padding-left: ${container4.withLabel.paddingLeft};
2225
2257
  ` : import_styled_components13.css`
2226
2258
  padding: ${container4.noLabel.padding};
@@ -2266,7 +2298,7 @@ var Container2 = import_styled_components13.default.label`
2266
2298
  border-color: ${selectionControl2.checked.hover.borderColor};
2267
2299
  }
2268
2300
 
2269
- ${({ error }) => error && import_styled_components13.css`
2301
+ ${({ $error }) => $error && import_styled_components13.css`
2270
2302
  &:hover input:enabled ~ ${CustomSelectionControl} {
2271
2303
  background-color: ${selectionControl2.hover.danger.backgroundColor};
2272
2304
  box-shadow: ${selectionControl2.hover.danger.boxShadow};
@@ -2304,7 +2336,7 @@ var Container2 = import_styled_components13.default.label`
2304
2336
  cursor: not-allowed;
2305
2337
  color: ${container4.disabled.color};
2306
2338
  `}
2307
- ${({ controlType }) => controlType === "checkbox" ? import_styled_components13.css`
2339
+ ${({ $controlType }) => $controlType === "checkbox" ? import_styled_components13.css`
2308
2340
  ${CustomSelectionControl}:after {
2309
2341
  border: solid ${checkmark2.checkbox.borderColor};
2310
2342
 
@@ -2341,9 +2373,9 @@ var OuterGroupContainer = import_styled_components13.default.div`
2341
2373
  `;
2342
2374
  var GroupContainer = import_styled_components13.default.div`
2343
2375
  display: flex;
2344
- ${({ direction }) => import_styled_components13.css`
2345
- flex-direction: ${direction};
2346
- gap: ${groupContainer2[direction].gap};
2376
+ ${({ $direction }) => import_styled_components13.css`
2377
+ flex-direction: ${$direction};
2378
+ gap: ${groupContainer2[$direction].gap};
2347
2379
  `}
2348
2380
  `;
2349
2381
 
@@ -2407,21 +2439,24 @@ var RadioButton = (0, import_react12.forwardRef)(
2407
2439
  "aria-describedby": describedByIds.length > 0 ? describedByIds.join(" ") : void 0,
2408
2440
  "aria-invalid": error || (radioButtonGroup == null ? void 0 : radioButtonGroup.error) ? true : void 0
2409
2441
  };
2410
- const containerProps = {
2411
- error: error || (radioButtonGroup == null ? void 0 : radioButtonGroup.error),
2412
- disabled: disabled || (radioButtonGroup == null ? void 0 : radioButtonGroup.disabled),
2413
- readOnly: readOnly || (radioButtonGroup == null ? void 0 : radioButtonGroup.readOnly),
2414
- style,
2415
- className: (0, import_dds_core16.joinClassNames)(className, htmlPropsClassName),
2416
- htmlFor: uniqueId,
2417
- controlType: "radio",
2418
- hasLabel
2419
- };
2420
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Container2, { ...containerProps, htmlFor: uniqueId, controlType: "radio", children: [
2421
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_dds_form5.HiddenInput, { ...inputProps, ref }),
2422
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CustomSelectionControl, { controlType: "radio" }),
2423
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_dds_typography3.Typography, { as: "span", children: children != null ? children : label3 })
2424
- ] });
2442
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
2443
+ Container2,
2444
+ {
2445
+ $error: error || (radioButtonGroup == null ? void 0 : radioButtonGroup.error),
2446
+ disabled: disabled || (radioButtonGroup == null ? void 0 : radioButtonGroup.disabled),
2447
+ $readOnly: readOnly || (radioButtonGroup == null ? void 0 : radioButtonGroup.readOnly),
2448
+ style,
2449
+ className: (0, import_dds_core16.joinClassNames)(className, htmlPropsClassName),
2450
+ $hasLabel: hasLabel,
2451
+ htmlFor: uniqueId,
2452
+ $controlType: "radio",
2453
+ children: [
2454
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_dds_form5.HiddenInput, { ...inputProps, ref }),
2455
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CustomSelectionControl, { $controlType: "radio" }),
2456
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_dds_typography3.Typography, { as: "span", children: children != null ? children : label3 })
2457
+ ]
2458
+ }
2459
+ );
2425
2460
  }
2426
2461
  );
2427
2462
  RadioButton.displayName = "RadioButton";
@@ -2463,7 +2498,9 @@ var import_react13 = require("react");
2463
2498
  var import_dds_core17 = require("@norges-domstoler/dds-core");
2464
2499
  var import_dds_icons8 = require("@norges-domstoler/dds-icons");
2465
2500
  var import_jsx_runtime16 = require("react/jsx-runtime");
2466
- var InputMessageWrapper = import_styled_components14.default.div`
2501
+ var InputMessageWrapper = import_styled_components14.default.div.withConfig({
2502
+ shouldForwardProp: (prop) => prop !== "messageType"
2503
+ })`
2467
2504
  display: flex;
2468
2505
  width: fit-content;
2469
2506
  word-break: break-word;
@@ -2590,7 +2627,7 @@ var RadioButtonGroupInner = (props, ref) => {
2590
2627
  GroupContainer,
2591
2628
  {
2592
2629
  role: "radiogroup",
2593
- direction,
2630
+ $direction: direction,
2594
2631
  "aria-labelledby": uniqueGroupId,
2595
2632
  "aria-describedby": tipId,
2596
2633
  "aria-errormessage": errorMessageId,
@@ -2644,43 +2681,42 @@ var Checkbox = (0, import_react16.forwardRef)(
2644
2681
  className: htmlPropsClassName,
2645
2682
  ...restHtmlProps
2646
2683
  } = htmlProps;
2647
- const containerProps = {
2648
- error: error || (checkboxGroup == null ? void 0 : checkboxGroup.error),
2649
- disabled,
2650
- indeterminate,
2651
- htmlFor: uniqueId,
2652
- hasLabel,
2653
- className: (0, import_dds_core19.joinClassNames)(className, htmlPropsClassName),
2654
- style
2655
- };
2656
- const inputProps = {
2657
- ...(0, import_dds_core19.getBaseHTMLProps)(uniqueId, restHtmlProps, rest),
2658
- ref,
2659
- name,
2660
- indeterminate,
2661
- disabled,
2662
- "aria-describedby": (0, import_dds_core19.spaceSeparatedIdListGenerator)([
2663
- checkboxGroup == null ? void 0 : checkboxGroup.tipId,
2664
- checkboxGroup == null ? void 0 : checkboxGroup.errorMessageId,
2665
- ariaDescribedby
2666
- ]),
2667
- "aria-invalid": error || (checkboxGroup == null ? void 0 : checkboxGroup.error) ? true : void 0,
2668
- "aria-labelledby": checkboxGroup == null ? void 0 : checkboxGroup.uniqueGroupId,
2669
- "aria-checked": indeterminate ? "mixed" : void 0,
2670
- "aria-readonly": readOnly
2671
- };
2672
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Container2, { ...containerProps, controlType: "checkbox", children: [
2673
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2674
- import_dds_form6.HiddenInput,
2675
- {
2676
- ...inputProps,
2677
- type: "checkbox",
2678
- "data-indeterminate": indeterminate
2679
- }
2680
- ),
2681
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CustomSelectionControl, { controlType: "checkbox" }),
2682
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_dds_typography6.Typography, { color: "inherit", as: "span", typographyType: "bodySans02", children: label3 })
2683
- ] });
2684
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
2685
+ Container2,
2686
+ {
2687
+ $error: error || (checkboxGroup == null ? void 0 : checkboxGroup.error),
2688
+ disabled,
2689
+ htmlFor: uniqueId,
2690
+ $hasLabel: hasLabel,
2691
+ $controlType: "checkbox",
2692
+ className: (0, import_dds_core19.joinClassNames)(className, htmlPropsClassName),
2693
+ style,
2694
+ children: [
2695
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2696
+ import_dds_form6.HiddenInput,
2697
+ {
2698
+ ...(0, import_dds_core19.getBaseHTMLProps)(uniqueId, restHtmlProps, rest),
2699
+ ref,
2700
+ name,
2701
+ disabled,
2702
+ "aria-describedby": (0, import_dds_core19.spaceSeparatedIdListGenerator)([
2703
+ checkboxGroup == null ? void 0 : checkboxGroup.tipId,
2704
+ checkboxGroup == null ? void 0 : checkboxGroup.errorMessageId,
2705
+ ariaDescribedby
2706
+ ]),
2707
+ "aria-invalid": error || (checkboxGroup == null ? void 0 : checkboxGroup.error) ? true : void 0,
2708
+ "aria-labelledby": checkboxGroup == null ? void 0 : checkboxGroup.uniqueGroupId,
2709
+ "aria-checked": indeterminate ? "mixed" : void 0,
2710
+ "aria-readonly": readOnly,
2711
+ type: "checkbox",
2712
+ "data-indeterminate": indeterminate
2713
+ }
2714
+ ),
2715
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CustomSelectionControl, { $controlType: "checkbox" }),
2716
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_dds_typography6.Typography, { color: "inherit", as: "span", typographyType: "bodySans02", children: label3 })
2717
+ ]
2718
+ }
2719
+ );
2684
2720
  }
2685
2721
  );
2686
2722
  Checkbox.displayName = "Checkbox";
@@ -2747,7 +2783,7 @@ var CheckboxGroup = (props) => {
2747
2783
  role: "group",
2748
2784
  "aria-labelledby": uniqueGroupId,
2749
2785
  "aria-describedby": tip ? tipId : void 0,
2750
- direction,
2786
+ $direction: direction,
2751
2787
  children
2752
2788
  }
2753
2789
  ) }),
@@ -2865,8 +2901,8 @@ var MessageContainer = import_styled_components16.default.div`
2865
2901
  var StyledIcon = (0, import_styled_components16.default)(import_dds_icons9.Icon)`
2866
2902
  position: absolute;
2867
2903
  color: ${icon3.color};
2868
- ${({ size, iconSize }) => import_styled_components16.css`
2869
- left: ${icon3.sizes[size].left};
2904
+ ${({ $size, iconSize }) => import_styled_components16.css`
2905
+ left: ${icon3.sizes[$size].left};
2870
2906
  ${iconSize === "small" ? import_styled_components16.css`
2871
2907
  top: ${`calc(50% - ${iconSizes2.DdsIconsizeSmallNumberPx / 2}px)`};
2872
2908
  ` : import_styled_components16.css`
@@ -2876,7 +2912,7 @@ var StyledIcon = (0, import_styled_components16.default)(import_dds_icons9.Icon)
2876
2912
  z-index: 1;
2877
2913
  `;
2878
2914
  var StyledInput = (0, import_styled_components16.default)(import_dds_form7.StatefulInput)`
2879
- ${({ componentSize, hasIcon }) => hasIcon && componentSize && import_styled_components16.css`
2915
+ ${({ componentSize, $hasIcon }) => $hasIcon && componentSize && import_styled_components16.css`
2880
2916
  padding-left: ${input2.withIcon[componentSize].paddingLeft};
2881
2917
  `}
2882
2918
  `;
@@ -2990,7 +3026,6 @@ var TextInput = (0, import_react19.forwardRef)(
2990
3026
  const errorMessageId = (0, import_dds_core22.derivativeIdGenerator)(uniqueId, "errorMessage");
2991
3027
  const generalInputProps = {
2992
3028
  id: uniqueId,
2993
- errorMessage,
2994
3029
  hasErrorMessage,
2995
3030
  required,
2996
3031
  disabled,
@@ -3023,7 +3058,7 @@ var TextInput = (0, import_react19.forwardRef)(
3023
3058
  {
3024
3059
  icon: icon12,
3025
3060
  iconSize: getFormInputIconSize(componentSize),
3026
- size: componentSize
3061
+ $size: componentSize
3027
3062
  }
3028
3063
  ),
3029
3064
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
@@ -3033,7 +3068,7 @@ var TextInput = (0, import_react19.forwardRef)(
3033
3068
  onChange: onChangeHandler,
3034
3069
  type,
3035
3070
  componentSize,
3036
- hasIcon,
3071
+ $hasIcon: hasIcon,
3037
3072
  ...generalInputProps
3038
3073
  }
3039
3074
  )
@@ -3286,30 +3321,30 @@ function getContainerControlPadding(componentSize, isMulti) {
3286
3321
  }
3287
3322
  var Container3 = import_styled_components18.default.div`
3288
3323
  margin: 0;
3289
- width: ${({ width }) => width};
3324
+ width: ${({ $width }) => $width};
3290
3325
  position: relative;
3291
3326
 
3292
3327
  *::selection {
3293
3328
  ${import_dds_core23.selection}
3294
3329
  }
3295
3330
 
3296
- ${({ componentSize, isMulti }) => import_styled_components18.css`
3331
+ ${({ $componentSize, $isMulti }) => import_styled_components18.css`
3297
3332
  .${prefix}__control {
3298
- padding: ${getContainerControlPadding(componentSize, isMulti)};
3299
- ${(0, import_dds_typography10.getFontStyling)(typographyTypes2.control[componentSize], true)}
3333
+ padding: ${getContainerControlPadding($componentSize, $isMulti)};
3334
+ ${(0, import_dds_typography10.getFontStyling)(typographyTypes2.control[$componentSize], true)}
3300
3335
  }
3301
3336
  .${prefix}__option {
3302
- ${(0, import_dds_typography10.getFontStyling)(typographyTypes2.option[componentSize], true)}
3337
+ ${(0, import_dds_typography10.getFontStyling)(typographyTypes2.option[$componentSize], true)}
3303
3338
  }
3304
3339
  .${prefix}__placeholder {
3305
- ${(0, import_dds_typography10.getFontStyling)(typographyTypes2.placeholder[componentSize])}
3340
+ ${(0, import_dds_typography10.getFontStyling)(typographyTypes2.placeholder[$componentSize])}
3306
3341
  }
3307
3342
  .${prefix}__menu-notice--no-options {
3308
- ${(0, import_dds_typography10.getFontStyling)(typographyTypes2.noOptionsMessage[componentSize])}
3343
+ ${(0, import_dds_typography10.getFontStyling)(typographyTypes2.noOptionsMessage[$componentSize])}
3309
3344
  }
3310
3345
  `}
3311
3346
 
3312
- ${({ errorMessage }) => errorMessage && import_styled_components18.css`
3347
+ ${({ $errorMessage }) => $errorMessage && import_styled_components18.css`
3313
3348
  .${prefix}__control {
3314
3349
  ${import_dds_form10.dangerInputfield}
3315
3350
  }
@@ -3328,7 +3363,7 @@ var Container3 = import_styled_components18.default.div`
3328
3363
  color: ${dropdownIndicator2.hover.color};
3329
3364
  }
3330
3365
 
3331
- ${({ isDisabled, readOnly }) => readOnly ? import_styled_components18.css`
3366
+ ${({ $isDisabled, $readOnly }) => $readOnly ? import_styled_components18.css`
3332
3367
  .${prefix}__control {
3333
3368
  border-color: ${control2.readOnly.borderColor};
3334
3369
  background-color: ${control2.readOnly.backgroundColor};
@@ -3338,16 +3373,16 @@ var Container3 = import_styled_components18.default.div`
3338
3373
  .${prefix}__dropdown-indicator {
3339
3374
  color: ${dropdownIndicator2.readOnly.color};
3340
3375
  }
3341
- ` : isDisabled ? import_styled_components18.css`
3342
- cursor: not-allowed;
3343
- .${prefix}__control {
3344
- border-color: ${control2.disabled.borderColor};
3345
- background-color: ${control2.disabled.backgroundColor};
3346
- }
3347
- &:hover .${prefix}__dropdown-indicator {
3348
- color: ${dropdownIndicator2.base.color};
3349
- }
3350
- ` : ""}
3376
+ ` : $isDisabled ? import_styled_components18.css`
3377
+ cursor: not-allowed;
3378
+ .${prefix}__control {
3379
+ border-color: ${control2.disabled.borderColor};
3380
+ background-color: ${control2.disabled.backgroundColor};
3381
+ }
3382
+ &:hover .${prefix}__dropdown-indicator {
3383
+ color: ${dropdownIndicator2.base.color};
3384
+ }
3385
+ ` : ""}
3351
3386
  `;
3352
3387
  var InnerSingleValue = import_styled_components18.default.div`
3353
3388
  overflow: hidden;
@@ -3586,12 +3621,12 @@ var SelectInner = (props, ref) => {
3586
3621
  const tipId = (0, import_dds_core24.derivativeIdGenerator)(uniqueId, "tip");
3587
3622
  const errorMessageId = (0, import_dds_core24.derivativeIdGenerator)(uniqueId, "errorMessage");
3588
3623
  const containerProps = {
3589
- width,
3590
- componentSize,
3591
- errorMessage,
3592
- isDisabled,
3593
- readOnly,
3594
- isMulti,
3624
+ $width: width,
3625
+ $componentSize: componentSize,
3626
+ $errorMessage: errorMessage,
3627
+ $isDisabled: isDisabled,
3628
+ $readOnly: readOnly,
3629
+ $isMulti: isMulti,
3595
3630
  className,
3596
3631
  style
3597
3632
  };
@@ -3726,10 +3761,10 @@ var Container4 = import_styled_components19.default.div`
3726
3761
  padding: ${container6.padding};
3727
3762
  border-bottom: ${container6.borderBottom};
3728
3763
  ${(0, import_dds_typography13.getFontStyling)(typographyType2, true)}
3729
- ${({ purpose }) => purpose && import_styled_components19.css`
3730
- border-color: ${container6[purpose].borderColor};
3731
- background-color: ${container6[purpose].backgroundColor};
3732
- `}
3764
+ ${({ $purpose }) => import_styled_components19.css`
3765
+ border-color: ${container6[$purpose].borderColor};
3766
+ background-color: ${container6[$purpose].backgroundColor};
3767
+ `}
3733
3768
  `;
3734
3769
  var MessageIconWrapper = (0, import_styled_components19.default)(import_dds_icons14.Icon)`
3735
3770
  margin-right: ${icon6.marginRight};
@@ -3743,7 +3778,7 @@ var ContentContainer = import_styled_components19.default.div`
3743
3778
  align-items: center;
3744
3779
  padding-top: ${contentContainer2.paddingTop};
3745
3780
  padding-bottom: ${contentContainer2.paddingBottom};
3746
- padding-right: ${({ closable }) => closable ? contentContainer2.withClosable.paddingRight : contentContainer2.paddingRight};
3781
+ padding-right: ${({ $closable }) => $closable ? contentContainer2.withClosable.paddingRight : contentContainer2.paddingRight};
3747
3782
  `;
3748
3783
  var GlobalMessage = (0, import_react21.forwardRef)(
3749
3784
  (props, ref) => {
@@ -3759,37 +3794,40 @@ var GlobalMessage = (0, import_react21.forwardRef)(
3759
3794
  ...rest
3760
3795
  } = props;
3761
3796
  const [isClosed, setClosed] = (0, import_react21.useState)(false);
3762
- const containerProps = {
3763
- ...(0, import_dds_core25.getBaseHTMLProps)(id, className, htmlProps, rest),
3764
- ref,
3765
- purpose
3766
- };
3767
- return !isClosed ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Container4, { ...containerProps, children: [
3768
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(ContentContainer, { closable, children: [
3769
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3770
- MessageIconWrapper,
3771
- {
3772
- icon: purposeVariants[purpose].icon,
3773
- color: icon6[purpose].color
3774
- }
3775
- ),
3776
- children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_dds_typography12.Typography, { as: "span", children: message2 })
3777
- ] }),
3778
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ControlsContainer, { children: closable && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3779
- Button,
3780
- {
3781
- icon: import_dds_icons15.CloseIcon,
3782
- purpose: purposeVariants[purpose].closeButtonPurpose,
3783
- appearance: "borderless",
3784
- onClick: () => {
3785
- setClosed(true);
3786
- onClose && onClose();
3787
- },
3788
- size: "small",
3789
- "aria-label": "Lukk melding"
3790
- }
3791
- ) })
3792
- ] }) : null;
3797
+ return !isClosed ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
3798
+ Container4,
3799
+ {
3800
+ ref,
3801
+ $purpose: purpose,
3802
+ ...(0, import_dds_core25.getBaseHTMLProps)(id, className, htmlProps, rest),
3803
+ children: [
3804
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(ContentContainer, { $closable: closable, children: [
3805
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3806
+ MessageIconWrapper,
3807
+ {
3808
+ icon: purposeVariants[purpose].icon,
3809
+ color: icon6[purpose].color
3810
+ }
3811
+ ),
3812
+ children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_dds_typography12.Typography, { as: "span", children: message2 })
3813
+ ] }),
3814
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ControlsContainer, { children: closable && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3815
+ Button,
3816
+ {
3817
+ icon: import_dds_icons15.CloseIcon,
3818
+ purpose: purposeVariants[purpose].closeButtonPurpose,
3819
+ appearance: "borderless",
3820
+ onClick: () => {
3821
+ setClosed(true);
3822
+ onClose && onClose();
3823
+ },
3824
+ size: "small",
3825
+ "aria-label": "Lukk melding"
3826
+ }
3827
+ ) })
3828
+ ]
3829
+ }
3830
+ ) : null;
3793
3831
  }
3794
3832
  );
3795
3833
  GlobalMessage.displayName = "GlobalMessage";
@@ -3898,7 +3936,17 @@ var import_dds_icons18 = require("@norges-domstoler/dds-icons");
3898
3936
  var import_jsx_runtime25 = require("react/jsx-runtime");
3899
3937
  var defaultWidth3 = "400px";
3900
3938
  var { container: container8, icon: icon8, purposeVariants: purposeVariants3 } = localMessageTokens;
3901
- var Container5 = import_styled_components20.default.div`
3939
+ var Container5 = import_styled_components20.default.div.withConfig({
3940
+ shouldForwardProp: (prop) => {
3941
+ const styleOnlyProps = [
3942
+ "layout",
3943
+ "closable",
3944
+ "purpose",
3945
+ "width"
3946
+ ];
3947
+ return !styleOnlyProps.some((styleProp) => styleProp === prop);
3948
+ }
3949
+ })`
3902
3950
  box-sizing: border-box;
3903
3951
  display: grid;
3904
3952
  grid-template-areas: ${({ layout, closable }) => getGridTemplateAreas(layout, closable)};
@@ -4168,7 +4216,7 @@ var import_dds_core33 = require("@norges-domstoler/dds-core");
4168
4216
  var import_jsx_runtime27 = require("react/jsx-runtime");
4169
4217
  var { suggestionsContainer: suggestionsContainer2, suggestionsHeader: suggestionsHeader2 } = searchTokens;
4170
4218
  var SuggestionsContainer = (0, import_styled_components22.default)(import_dds_core29.Paper)`
4171
- ${({ isHidden }) => (0, import_dds_core32.visibilityTransition)(!isHidden)};
4219
+ ${({ $isHidden }) => (0, import_dds_core32.visibilityTransition)(!$isHidden)};
4172
4220
  position: absolute;
4173
4221
  top: 100%;
4174
4222
  width: 100%;
@@ -4182,7 +4230,7 @@ var SuggestionsContainer = (0, import_styled_components22.default)(import_dds_co
4182
4230
  ${scrollbarStyling.webkit}
4183
4231
  `;
4184
4232
  var MenuItem = (0, import_styled_components22.default)(OverflowMenuItem)`
4185
- ${({ size }) => size && (0, import_dds_typography16.getFontStyling)(typographyTypes3[size])}
4233
+ ${({ $size }) => $size && (0, import_dds_typography16.getFontStyling)(typographyTypes3[$size])}
4186
4234
  `;
4187
4235
  var SuggestionsList = import_styled_components22.default.ul`
4188
4236
  ${import_dds_core28.removeListStyling}
@@ -4221,7 +4269,7 @@ var SearchSuggestions = (0, import_react24.forwardRef)((props, ref) => {
4221
4269
  title: suggestion,
4222
4270
  "aria-setsize": suggestionsToRender.length,
4223
4271
  "aria-posinset": index,
4224
- size: componentSize
4272
+ $size: componentSize
4225
4273
  }
4226
4274
  ) }, index);
4227
4275
  }) });
@@ -4231,7 +4279,7 @@ var SearchSuggestions = (0, import_react24.forwardRef)((props, ref) => {
4231
4279
  {
4232
4280
  ...(0, import_dds_core30.getBaseHTMLProps)(id, className, htmlProps, rest),
4233
4281
  ref,
4234
- isHidden,
4282
+ $isHidden: isHidden,
4235
4283
  "aria-hidden": isHidden,
4236
4284
  children: [
4237
4285
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
@@ -4272,19 +4320,19 @@ var Input2 = (0, import_styled_components23.default)(import_dds_form11.Input)`
4272
4320
  }
4273
4321
  padding-right: ${input4.base.paddingRight};
4274
4322
 
4275
- ${({ componentSize }) => import_styled_components23.css`
4276
- padding-top: ${input4.sizes[componentSize].paddingTop};
4277
- padding-bottom: ${input4.sizes[componentSize].paddingBottom};
4278
- padding-left: ${input4.sizes[componentSize].paddingLeft};
4279
- ${(0, import_dds_typography17.getFontStyling)(typographyTypes3[componentSize])}
4323
+ ${({ $componentSize }) => import_styled_components23.css`
4324
+ padding-top: ${input4.sizes[$componentSize].paddingTop};
4325
+ padding-bottom: ${input4.sizes[$componentSize].paddingBottom};
4326
+ padding-left: ${input4.sizes[$componentSize].paddingLeft};
4327
+ ${(0, import_dds_typography17.getFontStyling)(typographyTypes3[$componentSize])}
4280
4328
  `}
4281
4329
  `;
4282
4330
  var StyledSearchIcon = (0, import_styled_components23.default)(import_dds_icons19.Icon)`
4283
4331
  position: absolute;
4284
4332
  left: ${searchIcon2.base.left};
4285
4333
  color: ${searchIcon2.base.color};
4286
- ${({ size }) => import_styled_components23.css`
4287
- top: ${searchTokens.searchIcon[size].top};
4334
+ ${({ $size }) => import_styled_components23.css`
4335
+ top: ${searchTokens.searchIcon[$size].top};
4288
4336
  `}
4289
4337
  z-index: 1;
4290
4338
  `;
@@ -4300,7 +4348,7 @@ var OuterContainer = import_styled_components23.default.div`
4300
4348
  gap: ${outerContainer4.gap};
4301
4349
  `;
4302
4350
  var HorisontalContainer = import_styled_components23.default.div`
4303
- ${(props) => props.hasSearchButton && import_styled_components23.css`
4351
+ ${(props) => props.$hasSearchButton && import_styled_components23.css`
4304
4352
  display: grid;
4305
4353
  grid-template-columns: 1fr auto;
4306
4354
  gap: ${horisontalContainer2.gap};
@@ -4347,26 +4395,6 @@ var Search = (0, import_react25.forwardRef)(
4347
4395
  const emptyChangeEvent = createEmptyChangeEvent(uniqueId);
4348
4396
  handleChange(emptyChangeEvent);
4349
4397
  };
4350
- const containerProps = {
4351
- className,
4352
- style
4353
- };
4354
- const inputProps = {
4355
- ...rest,
4356
- ref: combinedRef,
4357
- componentSize,
4358
- name,
4359
- type: "search",
4360
- id: uniqueId,
4361
- "aria-describedby": (0, import_dds_core34.spaceSeparatedIdListGenerator)([
4362
- tip ? tipId : void 0,
4363
- context.suggestions ? suggestionsDescriptionId : void 0,
4364
- ariaDescribedby
4365
- ]),
4366
- value: (_a = context.inputValue) != null ? _a : value,
4367
- onChange: handleChange,
4368
- autoComplete: "off"
4369
- };
4370
4398
  const {
4371
4399
  label: buttonLabel,
4372
4400
  onClick,
@@ -4380,22 +4408,36 @@ var Search = (0, import_react25.forwardRef)(
4380
4408
  /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
4381
4409
  HorisontalContainer,
4382
4410
  {
4383
- hasSearchButton: showSearchButton,
4384
- ...containerProps,
4411
+ $hasSearchButton: showSearchButton,
4412
+ className,
4413
+ style,
4385
4414
  children: [
4386
4415
  /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(InputContainer2, { children: [
4387
4416
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
4388
4417
  StyledSearchIcon,
4389
4418
  {
4390
4419
  icon: import_dds_icons19.SearchIcon,
4391
- size: componentSize,
4420
+ $size: componentSize,
4392
4421
  iconSize: getIconSize(componentSize)
4393
4422
  }
4394
4423
  ),
4395
4424
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
4396
4425
  Input2,
4397
4426
  {
4398
- ...inputProps,
4427
+ ...rest,
4428
+ ref: combinedRef,
4429
+ $componentSize: componentSize,
4430
+ name,
4431
+ type: "search",
4432
+ id: uniqueId,
4433
+ "aria-describedby": (0, import_dds_core34.spaceSeparatedIdListGenerator)([
4434
+ tip ? tipId : void 0,
4435
+ context.suggestions ? suggestionsDescriptionId : void 0,
4436
+ ariaDescribedby
4437
+ ]),
4438
+ value: (_a = context.inputValue) != null ? _a : value,
4439
+ onChange: handleChange,
4440
+ autoComplete: "off",
4399
4441
  "aria-autocomplete": hasSuggestions ? "list" : void 0,
4400
4442
  "aria-controls": hasSuggestions ? suggestionsId : void 0,
4401
4443
  "aria-expanded": context.showSuggestions,
@@ -4625,13 +4667,13 @@ var StyledTable = import_styled_components24.default.table`
4625
4667
  }
4626
4668
  ${scrollbarStyling.webkit}
4627
4669
  ${scrollbarStyling.firefox}
4628
- ${({ density }) => import_styled_components24.css`
4670
+ ${({ $density }) => import_styled_components24.css`
4629
4671
  td,
4630
4672
  th {
4631
- padding: ${cell2.density[density].padding};
4673
+ padding: ${cell2.density[$density].padding};
4632
4674
  }
4633
4675
  `}
4634
- ${({ density }) => density === "extraCompact" && import_styled_components24.css`
4676
+ ${({ $density }) => $density === "extraCompact" && import_styled_components24.css`
4635
4677
  th {
4636
4678
  background-color: ${row2.head.extraCompact.backgroundColor};
4637
4679
  font-size: ${row2.head.extraCompact.fontSize};
@@ -4645,7 +4687,7 @@ var StyledTable = import_styled_components24.default.table`
4645
4687
  }
4646
4688
  }
4647
4689
  `}
4648
- ${({ stickyHeader }) => stickyHeader && import_styled_components24.css`
4690
+ ${({ $stickyHeader }) => $stickyHeader && import_styled_components24.css`
4649
4691
  tr[type='head'] {
4650
4692
  th[type='head'] {
4651
4693
  position: sticky;
@@ -4654,20 +4696,25 @@ var StyledTable = import_styled_components24.default.table`
4654
4696
  }
4655
4697
  }
4656
4698
  `}
4657
- ${({ withDividers }) => withDividers && import_styled_components24.css`
4699
+ ${({ $withDividers }) => $withDividers && import_styled_components24.css`
4658
4700
  tr[type='body'] {
4659
4701
  border-bottom: ${row2.body.withDividers.borderBottom};
4660
4702
  }
4661
4703
  `}
4662
4704
  `;
4663
4705
  var Table = (0, import_react27.forwardRef)(
4664
- ({ density = "normal", children, ...rest }, ref) => {
4665
- const tableProps = {
4666
- ref,
4667
- density,
4668
- ...rest
4669
- };
4670
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(StyledTable, { ...tableProps, children });
4706
+ ({ density = "normal", stickyHeader, withDividers, children, ...rest }, ref) => {
4707
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
4708
+ StyledTable,
4709
+ {
4710
+ ...rest,
4711
+ ref,
4712
+ $density: density,
4713
+ $stickyHeader: stickyHeader,
4714
+ $withDividers: withDividers,
4715
+ children
4716
+ }
4717
+ );
4671
4718
  }
4672
4719
  );
4673
4720
  Table.displayName = "Table";
@@ -4703,12 +4750,6 @@ var CollapsibleTable = (0, import_react29.forwardRef)((props, ref) => {
4703
4750
  definingColumnIndex = [0],
4704
4751
  ...rest
4705
4752
  } = props;
4706
- const tableProps = {
4707
- ref,
4708
- density,
4709
- isCollapsed,
4710
- ...rest
4711
- };
4712
4753
  return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4713
4754
  CollapsibleTableContext.Provider,
4714
4755
  {
@@ -4717,7 +4758,7 @@ var CollapsibleTable = (0, import_react29.forwardRef)((props, ref) => {
4717
4758
  headerValues,
4718
4759
  definingColumnIndex
4719
4760
  },
4720
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(StyledTable2, { ...tableProps, children })
4761
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(StyledTable2, { ref, density, ...rest, children })
4721
4762
  }
4722
4763
  );
4723
4764
  });
@@ -4730,10 +4771,7 @@ var import_jsx_runtime32 = require("react/jsx-runtime");
4730
4771
  var StyledHead = import_styled_components26.default.thead``;
4731
4772
  var Head = (0, import_react30.forwardRef)(
4732
4773
  ({ children, ...rest }, ref) => {
4733
- const headProps = {
4734
- ...rest
4735
- };
4736
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(StyledHead, { ref, ...headProps, children });
4774
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(StyledHead, { ref, ...rest, children });
4737
4775
  }
4738
4776
  );
4739
4777
  Head.displayName = "Table.Head";
@@ -4760,10 +4798,7 @@ var import_jsx_runtime34 = require("react/jsx-runtime");
4760
4798
  var StyledFoot = import_styled_components28.default.tfoot``;
4761
4799
  var Foot = (0, import_react32.forwardRef)(
4762
4800
  ({ children, ...rest }, ref) => {
4763
- const footProps = {
4764
- ...rest
4765
- };
4766
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(StyledFoot, { ref, ...footProps, children });
4801
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(StyledFoot, { ref, ...rest, children });
4767
4802
  }
4768
4803
  );
4769
4804
  Foot.displayName = "Table.Foot";
@@ -4803,7 +4838,7 @@ var StyledRow = import_styled_components29.default.tr`
4803
4838
  font-weight: 600;
4804
4839
  text-align: left;
4805
4840
  `}
4806
- ${({ type, mode, selected, hoverable }) => type === "body" && import_styled_components29.css`
4841
+ ${({ type, $mode: mode, $selected: selected, $hoverable: hoverable }) => type === "body" && import_styled_components29.css`
4807
4842
  &:nth-of-type(even) {
4808
4843
  background-color: ${row3.body.even.backgroundColor};
4809
4844
  ${bodyRowStyles(mode, selected)}
@@ -4828,13 +4863,19 @@ var StyledRow = import_styled_components29.default.tr`
4828
4863
  // src/components/Table/Row.tsx
4829
4864
  var import_jsx_runtime35 = require("react/jsx-runtime");
4830
4865
  var Row = (0, import_react33.forwardRef)(
4831
- ({ type = "body", mode = "normal", children, ...rest }, ref) => {
4832
- const rowProps = {
4833
- type,
4834
- mode,
4835
- ...rest
4836
- };
4837
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(StyledRow, { ref, ...rowProps, children });
4866
+ ({ type = "body", mode = "normal", hoverable, selected, children, ...rest }, ref) => {
4867
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4868
+ StyledRow,
4869
+ {
4870
+ type,
4871
+ $mode: mode,
4872
+ $hoverable: hoverable,
4873
+ $selected: selected,
4874
+ ref,
4875
+ ...rest,
4876
+ children
4877
+ }
4878
+ );
4838
4879
  }
4839
4880
  );
4840
4881
  Row.displayName = "Table.Row";
@@ -4898,7 +4939,9 @@ var descriptionListTokens = {
4898
4939
  // src/components/DescriptionList/DescriptionList.tsx
4899
4940
  var import_jsx_runtime36 = require("react/jsx-runtime");
4900
4941
  var { term: term2, desc: desc2, list: list2 } = descriptionListTokens;
4901
- var DList = import_styled_components30.default.dl`
4942
+ var DList = import_styled_components30.default.dl.withConfig({
4943
+ shouldForwardProp: (prop) => prop !== "appearance" && prop !== "direction"
4944
+ })`
4902
4945
  margin: 0;
4903
4946
  *::selection {
4904
4947
  ${import_dds_core38.selection}
@@ -5049,14 +5092,14 @@ var getLayoutStyle = (layout) => {
5049
5092
  }
5050
5093
  };
5051
5094
  var StyledCell = import_styled_components34.default.td`
5052
- ${({ type }) => type === "head" && import_styled_components34.css`
5095
+ ${({ $type: type }) => type === "head" && import_styled_components34.css`
5053
5096
  background-color: ${cell3.head.backgroundColor};
5054
5097
  `}
5055
5098
  `;
5056
5099
  var InnerCell = import_styled_components34.default.div`
5057
5100
  display: flex;
5058
5101
  align-items: center;
5059
- ${({ layout }) => getLayoutStyle(layout)}
5102
+ ${({ $layout: layout }) => getLayoutStyle(layout)}
5060
5103
  `;
5061
5104
  var getTableCellType = (type) => {
5062
5105
  switch (type) {
@@ -5071,15 +5114,7 @@ var Cell = (0, import_react38.forwardRef)(
5071
5114
  ({ children, type = "data", layout = "left", collapsibleProps, ...rest }, ref) => {
5072
5115
  const as = getTableCellType(type);
5073
5116
  const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
5074
- const cellProps = {
5075
- as,
5076
- type,
5077
- ...rest
5078
- };
5079
- const innerCellProps = {
5080
- layout
5081
- };
5082
- return isCollapsibleChild ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(DescriptionListDesc, { children }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(StyledCell, { ref, ...cellProps, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(InnerCell, { ...innerCellProps, children }) });
5117
+ return isCollapsibleChild ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(DescriptionListDesc, { children }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(StyledCell, { as, ref, $type: type, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(InnerCell, { $layout: layout, children }) });
5083
5118
  }
5084
5119
  );
5085
5120
  Cell.displayName = "Table.Cell";
@@ -5108,10 +5143,12 @@ var DescriptionListCell = (0, import_styled_components35.default)(Cell)`
5108
5143
  }
5109
5144
  `;
5110
5145
  var CollapsibleRow = (0, import_react39.forwardRef)(
5111
- ({ type = "body", mode = "normal", children, ...rest }, ref) => {
5146
+ ({ type = "body", mode = "normal", selected, hoverable, children, ...rest }, ref) => {
5112
5147
  const rowProps = {
5113
- type,
5114
- mode,
5148
+ $type: type,
5149
+ $mode: mode,
5150
+ $selected: selected,
5151
+ $hoverable: hoverable,
5115
5152
  ...rest
5116
5153
  };
5117
5154
  const { isCollapsed, headerValues, definingColumnIndex } = useCollapsibleTableContext();
@@ -5138,14 +5175,14 @@ var CollapsibleRow = (0, import_react39.forwardRef)(
5138
5175
  })
5139
5176
  ] }, `DL-${index}`);
5140
5177
  }) : null;
5141
- const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(StyledRow, { type: "body", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DescriptionListCell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
5178
+ const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(StyledRow, { type, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DescriptionListCell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
5142
5179
  const definingColumnCells = childrenArray.slice().filter((column, index) => definingColumnIndex.indexOf(index) > -1).sort((a, b) => {
5143
5180
  return definingColumnIndex.indexOf(childrenArray.indexOf(a)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
5144
5181
  });
5145
5182
  const headerRow = () => {
5146
5183
  if (type !== "head" || !isCollapsed)
5147
5184
  return null;
5148
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(StyledRow, { ref, ...rowProps, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
5185
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(StyledRow, { ref, type, ...rowProps, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
5149
5186
  definingColumnCells,
5150
5187
  /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(Table2.Cell, { type: "head", layout: "center", children: [
5151
5188
  "Utvid",
@@ -5161,6 +5198,7 @@ var CollapsibleRow = (0, import_react39.forwardRef)(
5161
5198
  StyledRow,
5162
5199
  {
5163
5200
  ref,
5201
+ type,
5164
5202
  ...rowProps,
5165
5203
  "data-isopencollapsibleheader": !childrenCollapsed && true,
5166
5204
  children: [
@@ -5191,7 +5229,7 @@ var CollapsibleRow = (0, import_react39.forwardRef)(
5191
5229
  rowWithChevron(),
5192
5230
  childrenCollapsed ? null : collapsedRows
5193
5231
  ] })
5194
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(StyledRow, { ref, ...rowProps, children });
5232
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(StyledRow, { ref, type, ...rowProps, children });
5195
5233
  }
5196
5234
  );
5197
5235
  CollapsibleRow.displayName = "CollapsibleTable.Row";
@@ -5252,7 +5290,7 @@ var import_react41 = require("react");
5252
5290
  var import_styled_components37 = __toESM(require("styled-components"));
5253
5291
  var import_jsx_runtime43 = require("react/jsx-runtime");
5254
5292
  var Wrapper3 = import_styled_components37.default.div`
5255
- ${({ overflowX }) => overflowX && import_styled_components37.css`
5293
+ ${({ $overflowX }) => $overflowX && import_styled_components37.css`
5256
5294
  overflow-x: auto;
5257
5295
  `}
5258
5296
  ${scrollbarStyling.webkit}
@@ -5279,12 +5317,7 @@ var TableWrapper = ({ children, ...rest }) => {
5279
5317
  window.addEventListener("resize", handleResize);
5280
5318
  return () => window.removeEventListener("resize", handleResize);
5281
5319
  });
5282
- const wrapperProps = {
5283
- ref: wrapperRef,
5284
- overflowX,
5285
- ...rest
5286
- };
5287
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Wrapper3, { ...wrapperProps, children });
5320
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Wrapper3, { $overflowX: overflowX, ref: wrapperRef, ...rest, children });
5288
5321
  };
5289
5322
  TableWrapper.displayName = "Table.Wrapper";
5290
5323
 
@@ -5470,14 +5503,14 @@ var List2 = import_styled_components39.default.ol`
5470
5503
  var ListItem2 = import_styled_components39.default.li`
5471
5504
  display: inline-grid;
5472
5505
  align-content: center;
5473
- ${({ isHidden }) => isHidden && import_styled_components39.css`
5506
+ ${({ $isHidden }) => $isHidden && import_styled_components39.css`
5474
5507
  visibility: hidden;
5475
5508
  `}
5476
5509
  `;
5477
5510
  var OuterContainer2 = import_styled_components39.default.div`
5478
5511
  display: flex;
5479
5512
  gap: ${outerContainer6.gap};
5480
- ${({ smallScreen }) => smallScreen ? import_styled_components39.css`
5513
+ ${({ $smallScreen }) => $smallScreen ? import_styled_components39.css`
5481
5514
  flex-direction: column;
5482
5515
  align-items: center;
5483
5516
  ` : import_styled_components39.css`
@@ -5585,17 +5618,17 @@ var Pagination = (0, import_react44.forwardRef)(
5585
5618
  };
5586
5619
  const containerProps = {
5587
5620
  ...(0, import_dds_core44.getBaseHTMLProps)(id, className, htmlProps, rest),
5588
- smallScreen
5621
+ $smallScreen: smallScreen
5589
5622
  };
5590
5623
  const isOnFirstPage = activePage === 1;
5591
5624
  const isOnLastPage = activePage === pagesLength;
5592
5625
  const navigation4 = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Nav, { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(List2, { children: [
5593
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ListItem2, { isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: previousPageButton }),
5626
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ListItem2, { $isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: previousPageButton }),
5594
5627
  listItems,
5595
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ListItem2, { isHidden: isOnLastPage, "aria-hidden": isOnLastPage, children: nextPageButton })
5628
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ListItem2, { $isHidden: isOnLastPage, "aria-hidden": isOnLastPage, children: nextPageButton })
5596
5629
  ] }) }) : null;
5597
5630
  const smallScreenNavigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Nav, { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(List2, { children: [
5598
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ListItem2, { isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5631
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ListItem2, { $isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5599
5632
  Button,
5600
5633
  {
5601
5634
  purpose: "secondary",
@@ -5608,7 +5641,7 @@ var Pagination = (0, import_react44.forwardRef)(
5608
5641
  "aria-label": "G\xE5 til f\xF8rste siden"
5609
5642
  }
5610
5643
  ) }),
5611
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ListItem2, { isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: previousPageButton }),
5644
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ListItem2, { $isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: previousPageButton }),
5612
5645
  /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ListItem2, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5613
5646
  Button,
5614
5647
  {
@@ -5619,8 +5652,8 @@ var Pagination = (0, import_react44.forwardRef)(
5619
5652
  children: activePage
5620
5653
  }
5621
5654
  ) }),
5622
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ListItem2, { isHidden: isOnLastPage, "aria-hidden": isOnLastPage, children: nextPageButton }),
5623
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ListItem2, { isHidden: isOnLastPage, "aria-hidden": isOnLastPage, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5655
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ListItem2, { $isHidden: isOnLastPage, "aria-hidden": isOnLastPage, children: nextPageButton }),
5656
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ListItem2, { $isHidden: isOnLastPage, "aria-hidden": isOnLastPage, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5624
5657
  Button,
5625
5658
  {
5626
5659
  purpose: "secondary",
@@ -5734,13 +5767,13 @@ var StyledList = import_styled_components40.default.ul`
5734
5767
  ${import_dds_core45.selection}
5735
5768
  }
5736
5769
 
5737
- ${({ typographyType: typographyType7 }) => typographyType7 === "inherit" ? import_styled_components40.css`
5770
+ ${({ $typographyType }) => $typographyType === "inherit" ? import_styled_components40.css`
5738
5771
  font: inherit;
5739
5772
  ` : import_styled_components40.css`
5740
- ${(0, import_dds_typography22.getFontStyling)(typographyType7)}
5773
+ ${(0, import_dds_typography22.getFontStyling)($typographyType)}
5741
5774
  `}
5742
5775
 
5743
- ${({ listType }) => listType === "unordered" ? import_styled_components40.css`
5776
+ ${({ $listType }) => $listType === "unordered" ? import_styled_components40.css`
5744
5777
  padding-left: ${list8.ul.paddingLeft};
5745
5778
  list-style: none;
5746
5779
  li {
@@ -5787,14 +5820,17 @@ var List3 = (0, import_react45.forwardRef)(
5787
5820
  ...rest
5788
5821
  } = props;
5789
5822
  const as = listType === "ordered" ? "ol" : "ul";
5790
- const listProps = {
5791
- ...(0, import_dds_core45.getBaseHTMLProps)(id, className, htmlProps, rest),
5792
- listType,
5793
- typographyType: typographyType7,
5794
- as,
5795
- ref
5796
- };
5797
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(StyledList, { ...listProps, children });
5823
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5824
+ StyledList,
5825
+ {
5826
+ ...(0, import_dds_core45.getBaseHTMLProps)(id, className, htmlProps, rest),
5827
+ as,
5828
+ ref,
5829
+ $listType: listType,
5830
+ $typographyType: typographyType7,
5831
+ children
5832
+ }
5833
+ );
5798
5834
  }
5799
5835
  );
5800
5836
  List3.displayName = "List";
@@ -5855,7 +5891,9 @@ var import_dds_core46 = require("@norges-domstoler/dds-core");
5855
5891
  var import_dds_typography23 = require("@norges-domstoler/dds-typography");
5856
5892
  var import_dds_form15 = require("@norges-domstoler/dds-form");
5857
5893
  var import_jsx_runtime49 = require("react/jsx-runtime");
5858
- var Container6 = import_styled_components42.default.div`
5894
+ var Container6 = import_styled_components42.default.div.withConfig({
5895
+ shouldForwardProp: (prop) => prop !== "color" && prop !== "cardType"
5896
+ })`
5859
5897
  border: ${cardTokens.base.border};
5860
5898
  ${(0, import_dds_typography23.getFontStyling)(import_dds_typography23.defaultTypographyType)};
5861
5899
  &::selection,
@@ -5881,12 +5919,12 @@ var Container6 = import_styled_components42.default.div`
5881
5919
  ${import_dds_form15.focusVisibleWithBorder}
5882
5920
  }
5883
5921
  ` : cardType === "expandable" ? import_styled_components42.css`
5884
- width: 100%;
5885
- box-sizing: border-box;
5886
- &:not(:first-of-type) {
5887
- border-top: none;
5888
- }
5889
- ` : ""}
5922
+ width: 100%;
5923
+ box-sizing: border-box;
5924
+ &:not(:first-of-type) {
5925
+ border-top: none;
5926
+ }
5927
+ ` : ""}
5890
5928
  `;
5891
5929
  var Card = (props) => {
5892
5930
  const {
@@ -6032,7 +6070,9 @@ function getTypographyType(props) {
6032
6070
  const { typographyType: typographyType7 } = props;
6033
6071
  return typographyType7 != null ? typographyType7 : typographyTypes4.header;
6034
6072
  }
6035
- var HeaderContainer = import_styled_components44.default.div`
6073
+ var HeaderContainer = import_styled_components44.default.div.withConfig({
6074
+ shouldForwardProp: (prop) => prop !== "padding" && prop !== "typographyType" && prop !== "bold"
6075
+ })`
6036
6076
  display: flex;
6037
6077
  justify-content: space-between;
6038
6078
  align-items: center;
@@ -6153,7 +6193,11 @@ function getPadding(props) {
6153
6193
  const { padding } = props;
6154
6194
  return padding != null ? padding : cardAccordionTokens.body.padding;
6155
6195
  }
6156
- var Body2 = import_styled_components45.default.div`
6196
+ var Body2 = import_styled_components45.default.div.withConfig({
6197
+ shouldForwardProp: (prop) => {
6198
+ return prop !== "animate" && prop !== "height" && prop !== "isExpanded";
6199
+ }
6200
+ })`
6157
6201
  @media (prefers-reduced-motion: no-preference) {
6158
6202
  ${({ animate }) => animate && expandingAnimation}
6159
6203
  }
@@ -6161,7 +6205,18 @@ var Body2 = import_styled_components45.default.div`
6161
6205
  height: ${({ height, isExpanded }) => isExpanded ? height : 0}px;
6162
6206
  overflow: hidden;
6163
6207
  `;
6164
- var BodyContainer = import_styled_components45.default.div`
6208
+ var BodyContainer = import_styled_components45.default.div.withConfig({
6209
+ shouldForwardProp: (prop) => {
6210
+ const styleOnlyProps = [
6211
+ "isExpanded",
6212
+ "maxHeight",
6213
+ "animate",
6214
+ "paddingTop",
6215
+ "padding"
6216
+ ];
6217
+ return !styleOnlyProps.some((styleProp) => styleProp === prop);
6218
+ }
6219
+ })`
6165
6220
  padding: ${getPadding};
6166
6221
 
6167
6222
  ${({ paddingTop }) => paddingTop && import_styled_components45.css`
@@ -6310,7 +6365,7 @@ var BannerWrapper = import_styled_components46.default.div`
6310
6365
  align-items: center;
6311
6366
  border-bottom: ${banner2.borderBottom};
6312
6367
  padding-right: ${banner2.paddingRight};
6313
- ${({ hasContextMenu }) => hasContextMenu && import_styled_components46.css`
6368
+ ${({ $hasContextMenu }) => $hasContextMenu && import_styled_components46.css`
6314
6369
  padding-right: ${banner2.hasContextMenu.paddingRight};
6315
6370
  `}
6316
6371
  `;
@@ -6355,7 +6410,9 @@ var import_dds_typography26 = require("@norges-domstoler/dds-typography");
6355
6410
  var import_dds_form16 = require("@norges-domstoler/dds-form");
6356
6411
  var import_jsx_runtime53 = require("react/jsx-runtime");
6357
6412
  var { navLink: navLink2 } = internalHeaderTokens;
6358
- var Link2 = import_styled_components47.default.a`
6413
+ var Link2 = import_styled_components47.default.a.withConfig({
6414
+ shouldForwardProp: (prop) => prop !== "isCurrent"
6415
+ })`
6359
6416
  display: flex;
6360
6417
  align-items: center;
6361
6418
  height: 100%;
@@ -6460,7 +6517,7 @@ var InternalHeader = (props) => {
6460
6517
  }) }) }) : null;
6461
6518
  const hasContextMenu = hasContextMenuElements || !!userProps || hasNavInContextMenu;
6462
6519
  return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(OuterContainer3, { ...(0, import_dds_core51.getBaseHTMLProps)(id, className, htmlProps, rest), children: [
6463
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(BannerWrapper, { hasContextMenu, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(BannerLeftWrapper, { children: [
6520
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(BannerWrapper, { $hasContextMenu: hasContextMenu, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(BannerLeftWrapper, { children: [
6464
6521
  /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(LovisaWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_dds_typography27.Typography, { typographyType: "bodySans02", bold: true, as: "span", children: applicationName }) }),
6465
6522
  /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ApplicationNameWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_dds_typography27.Typography, { typographyType: "bodySans02", as: "span", children: applicationDesc }) })
6466
6523
  ] }) }),
@@ -6706,7 +6763,7 @@ var { wrapper: wrapper2, link: link4 } = skipToContentTokens;
6706
6763
  var Wrapper5 = import_styled_components50.default.div`
6707
6764
  box-sizing: border-box;
6708
6765
  position: absolute;
6709
- top: ${({ top }) => top};
6766
+ top: ${({ $top: top }) => top};
6710
6767
  text-align: center;
6711
6768
  overflow: hidden;
6712
6769
  clip: rect(1px, 1px, 1px, 1px);
@@ -6760,12 +6817,15 @@ var SkipToContent = (0, import_react55.forwardRef)(
6760
6817
  style,
6761
6818
  ...restHtmlProps
6762
6819
  } = htmlProps;
6763
- const wrapperProps = {
6764
- top,
6765
- className: (0, import_dds_core53.joinClassNames)(className, htmlPropsClassName),
6766
- style
6767
- };
6768
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Wrapper5, { ...wrapperProps, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Link3, { ...(0, import_dds_core53.getBaseHTMLProps)(id, restHtmlProps, rest), ref, children: text }) });
6820
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
6821
+ Wrapper5,
6822
+ {
6823
+ $top: top,
6824
+ className: (0, import_dds_core53.joinClassNames)(className, htmlPropsClassName),
6825
+ style,
6826
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Link3, { ...(0, import_dds_core53.getBaseHTMLProps)(id, restHtmlProps, rest), ref, children: text })
6827
+ }
6828
+ );
6769
6829
  }
6770
6830
  );
6771
6831
  SkipToContent.displayName = "SkipToContent";
@@ -6990,7 +7050,9 @@ var import_dds_form19 = require("@norges-domstoler/dds-form");
6990
7050
  var import_styled_components52 = __toESM(require("styled-components"));
6991
7051
  var import_dds_design_tokens27 = require("@norges-domstoler/dds-design-tokens");
6992
7052
  var import_dds_core59 = require("@norges-domstoler/dds-core");
6993
- var Backdrop = import_styled_components52.default.div`
7053
+ var Backdrop = import_styled_components52.default.div.withConfig({
7054
+ shouldForwardProp: (prop) => prop !== "isOpen"
7055
+ })`
6994
7056
  position: fixed;
6995
7057
  display: flex;
6996
7058
  align-items: center;
@@ -7022,10 +7084,13 @@ function handleElementWithBackdropMount(container16) {
7022
7084
  }
7023
7085
  }
7024
7086
  function handleElementWithBackdropUnmount(container16) {
7025
- const scrollY = parseInt(document.body.style.top) || 0;
7087
+ const scrollY = parseInt(document.body.style.top);
7026
7088
  container16.style.removeProperty("overflow-y");
7027
7089
  container16.style.removeProperty("position");
7028
7090
  container16.style.removeProperty("top");
7091
+ if (isNaN(scrollY)) {
7092
+ return;
7093
+ }
7029
7094
  window.scrollTo(0, scrollY * -1);
7030
7095
  }
7031
7096
 
@@ -7091,40 +7156,38 @@ var Modal = (0, import_react57.forwardRef)((props, ref) => {
7091
7156
  (0, import_dds_core60.useOnClickOutside)(modalRef.current, () => handleClose());
7092
7157
  (0, import_dds_core60.useOnKeyDown)(["Escape", "Esc"], () => handleClose());
7093
7158
  const hasTransitionedIn = (0, import_dds_core60.useMountTransition)(isOpen, 200);
7094
- const backdropProps = {
7095
- isOpen: hasTransitionedIn && isOpen
7096
- };
7097
- const containerProps = {
7098
- ...(0, import_dds_core60.getBaseHTMLProps)(id, className, htmlProps, rest),
7099
- ref: combinedRef,
7100
- role: "dialog",
7101
- "aria-modal": true,
7102
- "aria-hidden": !isOpen,
7103
- tabIndex: -1,
7104
- "aria-labelledby": headerId,
7105
- id: modalId
7106
- };
7107
- const headerContainerProps = {
7108
- id: headerId
7109
- };
7110
7159
  return isOpen || hasTransitionedIn ? (0, import_react_dom.createPortal)(
7111
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Backdrop, { ...backdropProps, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Container8, { ...containerProps, elevation: 4, children: [
7112
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(ContentContainer2, { children: [
7113
- header3 && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(HeaderContainer2, { ...headerContainerProps, children: typeof header3 === "string" ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_dds_typography31.Typography, { typographyType: "headingSans03", children: header3 }) : header3 }),
7114
- children
7115
- ] }),
7116
- onClose && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7117
- StyledButton2,
7118
- {
7119
- size: "small",
7120
- appearance: "borderless",
7121
- purpose: "secondary",
7122
- icon: import_dds_icons27.CloseIcon,
7123
- onClick: handleClose,
7124
- "aria-label": "Lukk dialog"
7125
- }
7126
- )
7127
- ] }) }),
7160
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Backdrop, { isOpen: hasTransitionedIn && isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
7161
+ Container8,
7162
+ {
7163
+ ...(0, import_dds_core60.getBaseHTMLProps)(id, className, htmlProps, rest),
7164
+ ref: combinedRef,
7165
+ role: "dialog",
7166
+ "aria-modal": true,
7167
+ "aria-hidden": !isOpen,
7168
+ tabIndex: -1,
7169
+ "aria-labelledby": headerId,
7170
+ id: modalId,
7171
+ elevation: 4,
7172
+ children: [
7173
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(ContentContainer2, { children: [
7174
+ header3 && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(HeaderContainer2, { id: headerId, children: typeof header3 === "string" ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_dds_typography31.Typography, { typographyType: "headingSans03", children: header3 }) : header3 }),
7175
+ children
7176
+ ] }),
7177
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7178
+ StyledButton2,
7179
+ {
7180
+ size: "small",
7181
+ appearance: "borderless",
7182
+ purpose: "secondary",
7183
+ icon: import_dds_icons27.CloseIcon,
7184
+ onClick: handleClose,
7185
+ "aria-label": "Lukk dialog"
7186
+ }
7187
+ )
7188
+ ]
7189
+ }
7190
+ ) }),
7128
7191
  parentElement
7129
7192
  ) : null;
7130
7193
  });
@@ -7205,7 +7268,17 @@ var getMaxWidth = (size) => {
7205
7268
  else
7206
7269
  return "400px";
7207
7270
  };
7208
- var Container11 = (0, import_styled_components56.default)(import_dds_core62.Paper)`
7271
+ var Container11 = (0, import_styled_components56.default)(import_dds_core62.Paper).withConfig({
7272
+ shouldForwardProp: (prop) => {
7273
+ const styleOnlyProps = [
7274
+ "placement",
7275
+ "isOpen",
7276
+ "widthProps",
7277
+ "size"
7278
+ ];
7279
+ return !styleOnlyProps.some((styleProp) => styleProp === prop);
7280
+ }
7281
+ })`
7209
7282
  position: fixed;
7210
7283
  top: 0;
7211
7284
  height: 100%;
@@ -7230,9 +7303,9 @@ var Container11 = (0, import_styled_components56.default)(import_dds_core62.Pape
7230
7303
  left: 0;
7231
7304
  transform: ${isOpen ? "translate(0px)" : "translateX(-100%)"};
7232
7305
  ` : placement === "right" ? import_styled_components56.css`
7233
- right: 0;
7234
- transform: ${isOpen ? "translate(0px)" : "translateX(100%)"};
7235
- ` : ""}
7306
+ right: 0;
7307
+ transform: ${isOpen ? "translate(0px)" : "translateX(100%)"};
7308
+ ` : ""}
7236
7309
 
7237
7310
  @media (prefers-reduced-motion: no-preference) {
7238
7311
  transition: transform 0.5s;
@@ -7411,7 +7484,7 @@ var { spacing: Spacing } = import_dds_design_tokens30.ddsBaseTokens;
7411
7484
  var { wrapper: wrapper6, content: content4, closeButton: closeButton2, title: title2 } = popoverTokens;
7412
7485
  var Wrapper6 = (0, import_styled_components57.default)(import_dds_core66.Paper)`
7413
7486
  opacity: 0;
7414
- ${({ hasTransitionedIn, isOpen }) => hasTransitionedIn && (0, import_dds_core63.visibilityTransition)(hasTransitionedIn && isOpen)}
7487
+ ${({ $hasTransitionedIn, $isOpen }) => $hasTransitionedIn && (0, import_dds_core63.visibilityTransition)($hasTransitionedIn && $isOpen)}
7415
7488
  position: absolute;
7416
7489
  width: fit-content;
7417
7490
  z-index: 100;
@@ -7420,20 +7493,20 @@ var Wrapper6 = (0, import_styled_components57.default)(import_dds_core66.Paper)`
7420
7493
  &:focus-visible {
7421
7494
  ${import_dds_form21.focusVisible}
7422
7495
  }
7423
- ${({ sizeProps }) => sizeProps && import_styled_components57.css`
7424
- width: ${sizeProps.width};
7425
- height: ${sizeProps.height};
7426
- min-width: ${sizeProps.minWidth};
7427
- min-height: ${sizeProps.minHeight};
7428
- max-width: ${sizeProps.maxWidth};
7429
- max-height: ${sizeProps.maxHeight};
7496
+ ${({ $sizeProps }) => $sizeProps && import_styled_components57.css`
7497
+ width: ${$sizeProps.width};
7498
+ height: ${$sizeProps.height};
7499
+ min-width: ${$sizeProps.minWidth};
7500
+ min-height: ${$sizeProps.minHeight};
7501
+ max-width: ${$sizeProps.maxWidth};
7502
+ max-height: ${$sizeProps.maxHeight};
7430
7503
  `}
7431
7504
  `;
7432
7505
  var TitleContainer = import_styled_components57.default.div`
7433
7506
  margin-right: ${title2.marginRight};
7434
7507
  `;
7435
7508
  var ContentContainer4 = import_styled_components57.default.div`
7436
- ${({ withCloseButton, hasTitle }) => withCloseButton && !hasTitle && import_styled_components57.css`
7509
+ ${({ $withCloseButton, $hasTitle }) => $withCloseButton && !$hasTitle && import_styled_components57.css`
7437
7510
  margin-top: ${content4.noTitle.marginTop};
7438
7511
  `}
7439
7512
  `;
@@ -7484,30 +7557,42 @@ var Popover = (0, import_react62.forwardRef)(
7484
7557
  onClose && onClose();
7485
7558
  });
7486
7559
  const hasTransitionedIn = (0, import_dds_core64.useMountTransition)(isOpen, 400);
7487
- const wrapperProps = {
7488
- ...(0, import_dds_core65.getBaseHTMLProps)(id, className, htmlProps, rest),
7489
- ref: multiRef,
7490
- isOpen,
7491
- hasTransitionedIn,
7492
- tabIndex: -1,
7493
- style: { ...htmlProps.style, ...styles.floating },
7494
- role: "dialog"
7495
- };
7496
- return isOpen || hasTransitionedIn ? /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Wrapper6, { ...wrapperProps, elevation: 3, border: "light", children: [
7497
- title3 && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(TitleContainer, { children: typeof title3 === "string" ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_dds_typography33.Typography, { typographyType: "headingSans02", children: title3 }) : title3 }),
7498
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ContentContainer4, { hasTitle: !!title3, withCloseButton, children }),
7499
- withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
7500
- StyledButton4,
7501
- {
7502
- icon: import_dds_icons29.CloseIcon,
7503
- appearance: "borderless",
7504
- purpose: "secondary",
7505
- size: "small",
7506
- onClick: onCloseButtonClick,
7507
- "aria-label": "Lukk"
7508
- }
7509
- )
7510
- ] }) : null;
7560
+ return isOpen || hasTransitionedIn ? /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
7561
+ Wrapper6,
7562
+ {
7563
+ ...(0, import_dds_core65.getBaseHTMLProps)(id, className, htmlProps, rest),
7564
+ ref: multiRef,
7565
+ $isOpen: isOpen,
7566
+ $hasTransitionedIn: hasTransitionedIn,
7567
+ tabIndex: -1,
7568
+ style: { ...htmlProps.style, ...styles.floating },
7569
+ role: "dialog",
7570
+ elevation: 3,
7571
+ border: "light",
7572
+ children: [
7573
+ title3 && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(TitleContainer, { children: typeof title3 === "string" ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_dds_typography33.Typography, { typographyType: "headingSans02", children: title3 }) : title3 }),
7574
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
7575
+ ContentContainer4,
7576
+ {
7577
+ $hasTitle: !!title3,
7578
+ $withCloseButton: withCloseButton,
7579
+ children
7580
+ }
7581
+ ),
7582
+ withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
7583
+ StyledButton4,
7584
+ {
7585
+ icon: import_dds_icons29.CloseIcon,
7586
+ appearance: "borderless",
7587
+ purpose: "secondary",
7588
+ size: "small",
7589
+ onClick: onCloseButtonClick,
7590
+ "aria-label": "Lukk"
7591
+ }
7592
+ )
7593
+ ]
7594
+ }
7595
+ ) : null;
7511
7596
  }
7512
7597
  );
7513
7598
  Popover.displayName = "Popover";
@@ -7630,7 +7715,7 @@ var Content2 = import_styled_components58.default.span`
7630
7715
  ${import_dds_form22.focusVisibleTransitionValue};
7631
7716
  }
7632
7717
 
7633
- ${({ hasIcon }) => hasIcon && import_styled_components58.css`
7718
+ ${({ $hasIcon }) => $hasIcon && import_styled_components58.css`
7634
7719
  gap: ${toggleButton2.gap};
7635
7720
  `}
7636
7721
 
@@ -7664,17 +7749,16 @@ var ToggleButton = (0, import_react64.forwardRef)(
7664
7749
  ({ id, label: label3, icon: icon12, className, htmlProps, ...rest }, ref) => {
7665
7750
  const generatedId = (0, import_react64.useId)();
7666
7751
  const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
7667
- const inputProps = {
7668
- ...(0, import_dds_core68.getBaseHTMLProps)(uniqueId, className, htmlProps, rest),
7669
- ref,
7670
- type: "checkbox"
7671
- };
7672
- const containerProps = {
7673
- htmlFor: uniqueId
7674
- };
7675
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Container12, { ...containerProps, children: [
7676
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_dds_form22.HiddenInput, { ...inputProps }),
7677
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Content2, { hasIcon: !!icon12, children: [
7752
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Container12, { htmlFor: uniqueId, children: [
7753
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
7754
+ import_dds_form22.HiddenInput,
7755
+ {
7756
+ ...(0, import_dds_core68.getBaseHTMLProps)(uniqueId, className, htmlProps, rest),
7757
+ ref,
7758
+ type: "checkbox"
7759
+ }
7760
+ ),
7761
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Content2, { $hasIcon: !!icon12, children: [
7678
7762
  icon12 && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_dds_icons30.Icon, { icon: icon12, iconSize: "inherit" }),
7679
7763
  " ",
7680
7764
  label3
@@ -7761,8 +7845,8 @@ var useTabsContext = () => (0, import_react66.useContext)(TabsContext);
7761
7845
  // src/components/Tabs/Tabs.tsx
7762
7846
  var import_jsx_runtime68 = require("react/jsx-runtime");
7763
7847
  var Container14 = import_styled_components60.default.div`
7764
- ${({ width }) => width && import_styled_components60.css`
7765
- width: ${width};
7848
+ ${({ $width }) => $width && import_styled_components60.css`
7849
+ width: ${$width};
7766
7850
  `};
7767
7851
  `;
7768
7852
  var Tabs = (0, import_react67.forwardRef)((props, ref) => {
@@ -7809,7 +7893,7 @@ var Tabs = (0, import_react67.forwardRef)((props, ref) => {
7809
7893
  setHasTabFocus,
7810
7894
  tabContentDirection
7811
7895
  },
7812
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Container14, { ...containerProps, width, children })
7896
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Container14, { ...containerProps, $width: width, children })
7813
7897
  }
7814
7898
  );
7815
7899
  });
@@ -7885,12 +7969,12 @@ var Button2 = import_styled_components61.default.button`
7885
7969
  ${import_dds_form23.focusVisibleTransitionValue};
7886
7970
  }
7887
7971
 
7888
- ${({ direction }) => import_styled_components61.css`
7889
- flex-direction: ${direction};
7890
- gap: ${tab2[direction].gap};
7972
+ ${({ $direction }) => import_styled_components61.css`
7973
+ flex-direction: ${$direction};
7974
+ gap: ${tab2[$direction].gap};
7891
7975
  `};
7892
7976
 
7893
- ${({ active }) => active && import_styled_components61.css`
7977
+ ${({ $active }) => $active && import_styled_components61.css`
7894
7978
  background-color: ${tab2.active.backgroundColor};
7895
7979
  border-color: ${tab2.active.borderColor};
7896
7980
  color: ${tab2.active.color};
@@ -7951,21 +8035,24 @@ var Tab = (0, import_react68.forwardRef)((props, ref) => {
7951
8035
  handleSelect();
7952
8036
  onKeyDown && onKeyDown(e);
7953
8037
  };
7954
- const buttonProps = {
7955
- ...(0, import_dds_core71.getBaseHTMLProps)(id, className, htmlProps, rest),
7956
- ref: combinedRef,
7957
- "aria-selected": active,
7958
- role: "tab",
7959
- active,
7960
- direction: tabContentDirection,
7961
- onClick: handleOnClick,
7962
- onKeyDown: handleOnKeyDown,
7963
- tabIndex: focus ? 0 : -1
7964
- };
7965
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(Button2, { ...buttonProps, children: [
7966
- icon12 && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_dds_icons31.Icon, { icon: icon12, iconSize: "inherit" }),
7967
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { children })
7968
- ] });
8038
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
8039
+ Button2,
8040
+ {
8041
+ ...(0, import_dds_core71.getBaseHTMLProps)(id, className, htmlProps, rest),
8042
+ ref: combinedRef,
8043
+ "aria-selected": active,
8044
+ role: "tab",
8045
+ $active: active,
8046
+ $direction: tabContentDirection,
8047
+ onClick: handleOnClick,
8048
+ onKeyDown: handleOnKeyDown,
8049
+ tabIndex: focus ? 0 : -1,
8050
+ children: [
8051
+ icon12 && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_dds_icons31.Icon, { icon: icon12, iconSize: "inherit" }),
8052
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { children })
8053
+ ]
8054
+ }
8055
+ );
7969
8056
  });
7970
8057
  Tab.displayName = "Tab";
7971
8058
 
@@ -8061,7 +8148,7 @@ var Panel = import_styled_components63.default.div`
8061
8148
  transition: ${import_dds_form25.focusVisibleTransitionValue};
8062
8149
  }
8063
8150
 
8064
- ${({ active }) => !active && import_styled_components63.css`
8151
+ ${({ $active }) => !$active && import_styled_components63.css`
8065
8152
  display: none;
8066
8153
  `}
8067
8154
  &:focus-visible {
@@ -8070,14 +8157,17 @@ var Panel = import_styled_components63.default.div`
8070
8157
  `;
8071
8158
  var TabPanel = (0, import_react70.forwardRef)(
8072
8159
  ({ active = false, children, id, className, htmlProps, ...rest }, ref) => {
8073
- const panelProps = {
8074
- ...(0, import_dds_core73.getBaseHTMLProps)(id, className, htmlProps, rest),
8075
- ref,
8076
- tabIndex: 0,
8077
- role: "tabpanel",
8078
- active
8079
- };
8080
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Panel, { ...panelProps, children });
8160
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
8161
+ Panel,
8162
+ {
8163
+ ...(0, import_dds_core73.getBaseHTMLProps)(id, className, htmlProps, rest),
8164
+ ref,
8165
+ tabIndex: 0,
8166
+ role: "tabpanel",
8167
+ $active: active,
8168
+ children
8169
+ }
8170
+ );
8081
8171
  }
8082
8172
  );
8083
8173
  TabPanel.displayName = "TabPanel";
@@ -8143,9 +8233,9 @@ var Wrapper7 = (0, import_styled_components64.default)(import_dds_typography37.T
8143
8233
  border-radius: ${wrapper8.borderRadius};
8144
8234
  padding: ${wrapper8.padding};
8145
8235
  ${(0, import_dds_typography37.getFontStyling)(typographyType5)}
8146
- ${({ purpose }) => import_styled_components64.css`
8147
- background-color: ${wrapper8.purpose[purpose].backgroundColor};
8148
- border-color: ${wrapper8.purpose[purpose].borderColor};
8236
+ ${({ $purpose }) => import_styled_components64.css`
8237
+ background-color: ${wrapper8.purpose[$purpose].backgroundColor};
8238
+ border-color: ${wrapper8.purpose[$purpose].borderColor};
8149
8239
  `}
8150
8240
  `;
8151
8241
  var Tag = (0, import_react72.forwardRef)((props, ref) => {
@@ -8162,7 +8252,7 @@ var Tag = (0, import_react72.forwardRef)((props, ref) => {
8162
8252
  {
8163
8253
  ...(0, import_dds_core75.getBaseHTMLProps)(id, className, htmlProps, rest),
8164
8254
  ref,
8165
- purpose,
8255
+ $purpose: purpose,
8166
8256
  children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_dds_typography37.TextOverflowEllipsisInner, { children: text })
8167
8257
  }
8168
8258
  );
@@ -8393,8 +8483,8 @@ var OuterContainer4 = import_styled_components67.default.div`
8393
8483
  *::selection {
8394
8484
  ${import_dds_core79.selection}
8395
8485
  }
8396
- ${({ width }) => width && import_styled_components67.css`
8397
- width: ${width};
8486
+ ${({ $width }) => $width && import_styled_components67.css`
8487
+ width: ${$width};
8398
8488
  `}
8399
8489
  `;
8400
8490
  var Bar2 = import_styled_components67.default.div`
@@ -8439,7 +8529,7 @@ var ToggleBar = (props) => {
8439
8529
  ...(0, import_dds_core80.getBaseHTMLProps)(id, className, htmlProps, rest),
8440
8530
  role: "radiogroup",
8441
8531
  "aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
8442
- width,
8532
+ $width: width,
8443
8533
  children: [
8444
8534
  label3 && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_dds_typography39.Typography, { typographyType: "supportingStyleLabel01", id: labelId, children: label3 }),
8445
8535
  /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Bar2, { children })
@@ -8479,14 +8569,14 @@ var Content3 = import_styled_components68.default.span`
8479
8569
  }
8480
8570
  background-color: ${content6.base.backgroundColor};
8481
8571
 
8482
- ${({ size, justIcon }) => import_styled_components68.css`
8483
- ${justIcon ? import_styled_components68.css`
8484
- font-size: ${content6.size[size].justIcon.fontSize};
8485
- padding: ${content6.size[size].justIcon.padding};
8572
+ ${({ $size, $justIcon }) => import_styled_components68.css`
8573
+ ${$justIcon ? import_styled_components68.css`
8574
+ font-size: ${content6.size[$size].justIcon.fontSize};
8575
+ padding: ${content6.size[$size].justIcon.padding};
8486
8576
  ` : import_styled_components68.css`
8487
- gap: ${content6.size[size].withText.gap};
8488
- padding: ${content6.size[size].withText.padding};
8489
- ${(0, import_dds_typography40.getFontStyling)(typographyTypes6[size])}
8577
+ gap: ${content6.size[$size].withText.gap};
8578
+ padding: ${content6.size[$size].withText.padding};
8579
+ ${(0, import_dds_typography40.getFontStyling)(typographyTypes6[$size])}
8490
8580
  `}
8491
8581
  `}
8492
8582
  `;
@@ -8575,7 +8665,7 @@ var ToggleRadio = (0, import_react77.forwardRef)(
8575
8665
  checked: calculateChecked(value, group4, checked)
8576
8666
  }
8577
8667
  ),
8578
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(Content3, { size: group4.size, justIcon: !!icon12 && !label3, children: [
8668
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(Content3, { $size: group4.size, $justIcon: !!icon12 && !label3, children: [
8579
8669
  icon12 && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_dds_icons33.Icon, { icon: icon12, iconSize: "inherit" }),
8580
8670
  label3 && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { children: label3 })
8581
8671
  ] })
@@ -8708,7 +8798,16 @@ var getHooksGridStyling = (screenSize, maxWidth, rowGap) => {
8708
8798
  maxWidth: maxWidth && maxWidth[(0, import_dds_core87.getLiteralScreenSize)(screenSize)] && maxWidth[(0, import_dds_core87.getLiteralScreenSize)(screenSize)]
8709
8799
  };
8710
8800
  };
8711
- var StyledGrid = import_styled_components69.default.div`
8801
+ var StyledGrid = import_styled_components69.default.div.withConfig({
8802
+ shouldForwardProp: (prop) => {
8803
+ const styleOnlyProps = [
8804
+ "maxWidth",
8805
+ "rowGap",
8806
+ "screenSize"
8807
+ ];
8808
+ return !styleOnlyProps.some((styleProp) => styleProp === prop);
8809
+ }
8810
+ })`
8712
8811
  display: grid;
8713
8812
  ${({ maxWidth }) => import_styled_components69.css`
8714
8813
  max-width: ${maxWidth};
@@ -8748,7 +8847,17 @@ var isRelativeGridColumn = (type) => {
8748
8847
  var isGridColumn = (type) => {
8749
8848
  return type.xs !== void 0 || type.sm !== void 0 || type.md !== void 0 || type.lg !== void 0 || type.xl !== void 0;
8750
8849
  };
8751
- var StyledGridChild = import_styled_components70.default.div`
8850
+ var StyledGridChild = import_styled_components70.default.div.withConfig({
8851
+ shouldForwardProp: (prop) => {
8852
+ const styleOnlyProps = [
8853
+ "columnsOccupied",
8854
+ "justifySelf",
8855
+ "gridRow",
8856
+ "screenSize"
8857
+ ];
8858
+ return !styleOnlyProps.some((styleProp) => styleProp === prop);
8859
+ }
8860
+ })`
8752
8861
  grid-column: ${({ screenSize, columnsOccupied }) => columnsOccupied === "all" ? "1 / -1" : isGridColumn(columnsOccupied) ? columnsOccupied[(0, import_dds_core89.getLiteralScreenSize)(screenSize)] : isRelativeGridColumn(columnsOccupied) ? gridTokens[screenSize].columns[columnsOccupied].gridColumn : ""};
8753
8862
 
8754
8863
  justify-self: ${({ justifySelf }) => justifySelf && justifySelf};
@@ -8902,7 +9011,7 @@ var ItemNumber = import_styled_components71.default.div`
8902
9011
  ${(0, import_dds_typography41.getFontStyling)(typographyTypes7.number)}
8903
9012
  font-weight: 600;
8904
9013
 
8905
- ${({ state }) => {
9014
+ ${({ $state: state }) => {
8906
9015
  switch (state) {
8907
9016
  case "activeIncomplete":
8908
9017
  return import_styled_components71.css`
@@ -8943,7 +9052,7 @@ var ItemText = import_styled_components71.default.div`
8943
9052
  text-decoration: ${itemText2.textDecoration};
8944
9053
  transition: text-decoration-color 0.2s;
8945
9054
 
8946
- ${({ state }) => {
9055
+ ${({ $state: state }) => {
8947
9056
  switch (state) {
8948
9057
  case "activeCompleted":
8949
9058
  case "activeIncomplete":
@@ -8982,7 +9091,7 @@ var ItemContentWrapper = import_styled_components71.default.button`
8982
9091
  ${import_dds_form28.focusVisible}
8983
9092
  }
8984
9093
 
8985
- ${({ state }) => state !== "disabled" && import_styled_components71.css`
9094
+ ${({ $state: state }) => state !== "disabled" && import_styled_components71.css`
8986
9095
  cursor: pointer;
8987
9096
  `}
8988
9097
  `;
@@ -8998,7 +9107,7 @@ var ProgressTrackerItem = (props) => {
8998
9107
  const { activeStep, handleStepChange } = useProgressTrackerContext();
8999
9108
  const active = activeStep === index;
9000
9109
  const styleProps = {
9001
- state: toItemState(active, completed, disabled)
9110
+ $state: toItemState(active, completed, disabled)
9002
9111
  };
9003
9112
  const stepNumberContent = (0, import_react80.useMemo)(() => {
9004
9113
  if (completed) {
@@ -9217,7 +9326,9 @@ var inlineEditTokens = {
9217
9326
  var import_dds_form29 = require("@norges-domstoler/dds-form");
9218
9327
  var { inlineEdit: inlineEdit2, iconWrapper: iconWrapper2 } = inlineEditTokens;
9219
9328
  var defaultWidth4 = "140px";
9220
- var StyledInlineInput = (0, import_styled_components73.default)(import_dds_form29.StatefulInput)`
9329
+ var StyledInlineInput = (0, import_styled_components73.default)(import_dds_form29.StatefulInput).withConfig({
9330
+ shouldForwardProp: (prop) => prop !== "isEditing" && prop !== "hideIcon"
9331
+ })`
9221
9332
  border-color: transparent;
9222
9333
  background-color: ${inlineEdit2.backgroundColor};
9223
9334
  padding: ${inlineEdit2.padding};
@@ -9656,7 +9767,18 @@ var stackTokens = {
9656
9767
  // src/components/Stack/Stack.tsx
9657
9768
  var import_dds_core99 = require("@norges-domstoler/dds-core");
9658
9769
  var import_jsx_runtime90 = require("react/jsx-runtime");
9659
- var Stack = import_styled_components76.default.div`
9770
+ var Stack = import_styled_components76.default.div.withConfig({
9771
+ shouldForwardProp: (prop) => {
9772
+ const styleOnlyProps = [
9773
+ "align",
9774
+ "direction",
9775
+ "gap",
9776
+ "justify",
9777
+ "padding"
9778
+ ];
9779
+ return !styleOnlyProps.some((p) => p === prop);
9780
+ }
9781
+ })`
9660
9782
  display: flex;
9661
9783
  flex-direction: ${({ direction }) => direction === "horizontal" ? "row" : "column"};
9662
9784
  align-items: ${(props) => props.align};
@@ -10094,14 +10216,14 @@ var Wrapper8 = import_styled_components79.default.div`
10094
10216
  `;
10095
10217
  var Root = import_styled_components79.default.div`
10096
10218
  box-sizing: border-box;
10097
- border-width: ${({ hasRootErrors }) => hasRootErrors ? "2px" : "1px"};
10219
+ border-width: ${({ $hasRootErrors: hasRootErrors }) => hasRootErrors ? "2px" : "1px"};
10098
10220
  border-style: dashed;
10099
- border-color: ${({ isDragActive, hasRootErrors }) => isDragActive ? rootTokens.dragActive.borderColor : hasRootErrors ? rootTokens.borderColorError : rootTokens.borderColor};
10100
- padding: ${({ hasRootErrors }) => hasRootErrors ? `calc(${rootTokens.paddingLeftRightTop} - 1px) calc(${rootTokens.paddingLeftRightTop} - 1px) ${rootTokens.paddingBottom}` : `${rootTokens.paddingLeftRightTop} ${rootTokens.paddingLeftRightTop} ${rootTokens.paddingBottom}`};
10221
+ border-color: ${({ $isDragActive, $hasRootErrors }) => $isDragActive ? rootTokens.dragActive.borderColor : $hasRootErrors ? rootTokens.borderColorError : rootTokens.borderColor};
10222
+ padding: ${({ $hasRootErrors }) => $hasRootErrors ? `calc(${rootTokens.paddingLeftRightTop} - 1px) calc(${rootTokens.paddingLeftRightTop} - 1px) ${rootTokens.paddingBottom}` : `${rootTokens.paddingLeftRightTop} ${rootTokens.paddingLeftRightTop} ${rootTokens.paddingBottom}`};
10101
10223
  display: flex;
10102
10224
  flex-direction: column;
10103
10225
  gap: ${rootTokens.gap};
10104
- background-color: ${({ isDragActive }) => isDragActive ? rootTokens.dragActive.backgroundColor : rootTokens.backgroundColor};
10226
+ background-color: ${({ $isDragActive }) => $isDragActive ? rootTokens.dragActive.backgroundColor : rootTokens.backgroundColor};
10105
10227
  `;
10106
10228
  var FileUploaderInput = import_styled_components79.default.input``;
10107
10229
  var FileListElement = import_styled_components79.default.ul`
@@ -10169,8 +10291,8 @@ var FileUploader = (props) => {
10169
10291
  Root,
10170
10292
  {
10171
10293
  ...getRootProps(),
10172
- isDragActive,
10173
- hasRootErrors,
10294
+ $isDragActive: isDragActive,
10295
+ $hasRootErrors: hasRootErrors,
10174
10296
  children: [
10175
10297
  /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(FileUploaderInput, { ...getInputProps() }),
10176
10298
  "Dra og slipp filer her eller",
@@ -10279,35 +10401,22 @@ var import_react93 = require("react");
10279
10401
  var import_dds_typography49 = require("@norges-domstoler/dds-typography");
10280
10402
 
10281
10403
  // src/components/Feedback/RatingComponent.tsx
10282
- var import_styled_components83 = __toESM(require("styled-components"));
10283
- var import_dds_design_tokens46 = require("@norges-domstoler/dds-design-tokens");
10284
- var import_dds_icons44 = require("@norges-domstoler/dds-icons");
10285
- var import_dds_typography47 = require("@norges-domstoler/dds-typography");
10286
-
10287
- // src/components/Feedback/FlexContainer.tsx
10288
10404
  var import_styled_components82 = __toESM(require("styled-components"));
10289
10405
  var import_dds_design_tokens45 = require("@norges-domstoler/dds-design-tokens");
10290
- var FlexContainer = import_styled_components82.default.div`
10291
- display: flex;
10292
- ${({ flexDirection }) => import_styled_components82.css`
10293
- flex-direction: ${flexDirection};
10294
- gap: ${import_dds_design_tokens45.ddsBaseTokens.spacing.SizesDdsSpacingLocalX1};
10295
- `};
10296
- `;
10297
-
10298
- // src/components/Feedback/RatingComponent.tsx
10406
+ var import_dds_icons44 = require("@norges-domstoler/dds-icons");
10407
+ var import_dds_typography47 = require("@norges-domstoler/dds-typography");
10299
10408
  var import_jsx_runtime96 = require("react/jsx-runtime");
10300
- var RatingContainer = import_styled_components83.default.div`
10409
+ var RatingContainer = import_styled_components82.default.div`
10301
10410
  display: flex;
10302
- gap: ${import_dds_design_tokens46.ddsBaseTokens.spacing.SizesDdsSpacingLocalX1};
10303
- ${({ layout }) => import_styled_components83.css`
10304
- flex-direction: ${layout === "horizontal" ? "row" : "column"};
10305
- align-items: ${layout === "horizontal" ? "center" : "start"};
10411
+ gap: ${import_dds_design_tokens45.ddsBaseTokens.spacing.SizesDdsSpacingLocalX1};
10412
+ ${({ $layout }) => import_styled_components82.css`
10413
+ flex-direction: ${$layout === "horizontal" ? "row" : "column"};
10414
+ align-items: ${$layout === "horizontal" ? "center" : "start"};
10306
10415
  `}
10307
10416
  `;
10308
- var RatingButton = (0, import_styled_components83.default)(Button)`
10417
+ var RatingButton = (0, import_styled_components82.default)(Button)`
10309
10418
  padding: 0px;
10310
- color: ${import_dds_design_tokens46.ddsBaseTokens.colors.DdsColorNeutralsGray7};
10419
+ color: ${import_dds_design_tokens45.ddsBaseTokens.colors.DdsColorNeutralsGray7};
10311
10420
  `;
10312
10421
  var RatingComponent = ({
10313
10422
  layout,
@@ -10317,9 +10426,9 @@ var RatingComponent = ({
10317
10426
  thumbDownTooltip,
10318
10427
  handleRatingChange
10319
10428
  }) => {
10320
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(RatingContainer, { layout, children: [
10429
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(RatingContainer, { $layout: layout, children: [
10321
10430
  /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_dds_typography47.Label, { children: ratingLabel }),
10322
- loading ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Spinner, { tooltip: "Laster opp tilbakemelding ..." }) : /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(FlexContainer, { flexDirection: "row", children: [
10431
+ loading ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Spinner, { tooltip: "Laster opp tilbakemelding ..." }) : /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(HStack, { gap: "layout-x1", children: [
10323
10432
  /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Tooltip, { text: thumbUpTooltip, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10324
10433
  RatingButton,
10325
10434
  {
@@ -10345,15 +10454,15 @@ var RatingComponent = ({
10345
10454
  };
10346
10455
 
10347
10456
  // src/components/Feedback/CommentComponent.tsx
10348
- var import_styled_components84 = __toESM(require("styled-components"));
10349
- var import_dds_design_tokens47 = require("@norges-domstoler/dds-design-tokens");
10457
+ var import_styled_components83 = __toESM(require("styled-components"));
10458
+ var import_dds_design_tokens46 = require("@norges-domstoler/dds-design-tokens");
10350
10459
  var import_dds_icons45 = require("@norges-domstoler/dds-icons");
10351
10460
  var import_dds_typography48 = require("@norges-domstoler/dds-typography");
10352
10461
  var import_jsx_runtime97 = require("react/jsx-runtime");
10353
- var IconLabelSpan = import_styled_components84.default.span`
10462
+ var IconLabelSpan = import_styled_components83.default.span`
10354
10463
  display: inline-flex;
10355
10464
  align-items: center;
10356
- gap: ${import_dds_design_tokens47.ddsBaseTokens.spacing.SizesDdsSpacingLocalX05};
10465
+ gap: ${import_dds_design_tokens46.ddsBaseTokens.spacing.SizesDdsSpacingLocalX05};
10357
10466
  `;
10358
10467
  var CommentComponent = ({
10359
10468
  rating,
@@ -10365,13 +10474,13 @@ var CommentComponent = ({
10365
10474
  handleSubmit,
10366
10475
  handleFeedbackTextChange
10367
10476
  }) => {
10368
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(FlexContainer, { flexDirection: "column", children: [
10477
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(VStack, { gap: "layout-x1", children: [
10369
10478
  /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(IconLabelSpan, { children: [
10370
10479
  /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
10371
10480
  import_dds_icons45.Icon,
10372
10481
  {
10373
10482
  icon: rating === "positive" ? import_dds_icons45.ThumbupFilled : import_dds_icons45.ThumbdownFilled,
10374
- color: import_dds_design_tokens47.ddsBaseTokens.colors.DdsColorInteractiveBase
10483
+ color: import_dds_design_tokens46.ddsBaseTokens.colors.DdsColorInteractiveBase
10375
10484
  }
10376
10485
  ),
10377
10486
  /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_dds_typography48.Paragraph, { children: [