@norges-domstoler/dds-components 24.0.0 → 24.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -4521,10 +4521,7 @@ const useOverflowMenuContext = () => {
4521
4521
  };
4522
4522
  //#endregion
4523
4523
  //#region src/components/OverflowMenu/OverflowMenu.module.css
4524
- var OverflowMenu_module_default = {
4525
- "container": "dds-OverflowMenu-module__container",
4526
- "list": "dds-OverflowMenu-module__list"
4527
- };
4524
+ var OverflowMenu_module_default = { "container": "dds-OverflowMenu-module__container" };
4528
4525
  //#endregion
4529
4526
  //#region src/components/OverflowMenu/OverflowMenu.tsx
4530
4527
  const OverflowMenu = ({ placement = "bottom-end", offset = 2, parentElement, portal = true, className, htmlProps = {}, ref, style, ...rest }) => {
@@ -5686,13 +5683,9 @@ var DateInput_module_default = {
5686
5683
  "icon-wrapper--readonly": "dds-DateInput-module__icon-wrapper--readonly",
5687
5684
  "popover-button--readonly": "dds-DateInput-module__popover-button--readonly",
5688
5685
  "popover": "dds-DateInput-module__popover",
5689
- "modal-close-button-wrapper": "dds-DateInput-module__modal-close-button-wrapper",
5690
- "calendar": "dds-DateInput-module__calendar",
5691
5686
  "calendar__header__month": "dds-DateInput-module__calendar__header__month",
5692
5687
  "calendar__month-button": "dds-DateInput-module__calendar__month-button",
5693
- "calendar__grid-element": "dds-DateInput-module__calendar__grid-element",
5694
5688
  "calendar__th": "dds-DateInput-module__calendar__th",
5695
- "calendar__week-number": "dds-DateInput-module__calendar__week-number",
5696
5689
  "calendar__cell-button": "dds-DateInput-module__calendar__cell-button",
5697
5690
  "calendar__cell-button--today": "dds-DateInput-module__calendar__cell-button--today",
5698
5691
  "calendar__cell-button--default": "dds-DateInput-module__calendar__cell-button--default",
@@ -5701,6 +5694,16 @@ var DateInput_module_default = {
5701
5694
  "calendar__cell-button--unavailable--today": "dds-DateInput-module__calendar__cell-button--unavailable--today"
5702
5695
  };
5703
5696
  //#endregion
5697
+ //#region src/components/date-inputs/DatePicker/Calendar/CalendarCell.tsx
5698
+ function CalendarCell({ ...props }) {
5699
+ return /* @__PURE__ */ jsx(Box, {
5700
+ textAlign: "center",
5701
+ className: cn(typographyStyles_module_default["text-color--subtle"], DateInput_module_default.calendar__th),
5702
+ ...props
5703
+ });
5704
+ }
5705
+ CalendarCell.displayName = "CalendarCell";
5706
+ //#endregion
5704
5707
  //#region src/components/date-inputs/DatePicker/constants.ts
5705
5708
  const LOCALE = {
5706
5709
  nb: "nb-NO",
@@ -5710,8 +5713,8 @@ const LOCALE = {
5710
5713
  se: "se-NO"
5711
5714
  };
5712
5715
  //#endregion
5713
- //#region src/components/date-inputs/DatePicker/Calendar/CalendarCell.tsx
5714
- function CalendarCell({ date, state, onClose }) {
5716
+ //#region src/components/date-inputs/DatePicker/Calendar/CalendarDate.tsx
5717
+ function CalendarDate$1({ date, state, onClose }) {
5715
5718
  const ref = useRef(null);
5716
5719
  const { buttonProps, cellProps, isOutsideVisibleRange, formattedDate, isSelected, isDisabled, isUnavailable } = useCalendarCell({ date }, state, ref);
5717
5720
  if (isOutsideVisibleRange) return /* @__PURE__ */ jsx("td", { ...cellProps });
@@ -5722,17 +5725,23 @@ function CalendarCell({ date, state, onClose }) {
5722
5725
  const isUnavailableToday = isEffectivelyUnavailable && isToday(date, "Europe/Oslo");
5723
5726
  return /* @__PURE__ */ jsx("td", {
5724
5727
  ...cellProps,
5725
- children: /* @__PURE__ */ jsx("button", {
5728
+ children: /* @__PURE__ */ jsx(Box, {
5726
5729
  ...buttonProps,
5730
+ as: "button",
5727
5731
  type: "button",
5728
5732
  ref,
5729
5733
  onKeyDown: closeOnKeyboardBlurForward,
5730
- className: cn(DateInput_module_default["calendar__grid-element"], DateInput_module_default["calendar__cell-button"], isToday(date, "Europe/Oslo") && DateInput_module_default["calendar__cell-button--today"], DateInput_module_default[`calendar__cell-button--default`], isSelected && DateInput_module_default[`calendar__cell-button--selected`], isEffectivelyUnavailable && DateInput_module_default[`calendar__cell-button--unavailable`], isUnavailableToday && DateInput_module_default["calendar__cell-button--unavailable--today"], typographyStyles_module_default["body-short-small"], _key1),
5734
+ height: "100%",
5735
+ width: "100%",
5736
+ display: "flex",
5737
+ alignItems: "center",
5738
+ justifyContent: "center",
5739
+ className: cn(DateInput_module_default["calendar__cell-button"], isToday(date, "Europe/Oslo") && DateInput_module_default["calendar__cell-button--today"], DateInput_module_default[`calendar__cell-button--default`], isSelected && DateInput_module_default[`calendar__cell-button--selected`], isEffectivelyUnavailable && DateInput_module_default[`calendar__cell-button--unavailable`], isUnavailableToday && DateInput_module_default["calendar__cell-button--unavailable--today"], typographyStyles_module_default["body-short-small"], _key1),
5731
5740
  children: formattedDate
5732
5741
  })
5733
5742
  });
5734
5743
  }
5735
- CalendarCell.displayName = "CalendarCell";
5744
+ CalendarDate$1.displayName = "CalendarDate";
5736
5745
  //#endregion
5737
5746
  //#region src/components/date-inputs/utils/getWeekNumber.ts
5738
5747
  /**
@@ -5852,8 +5861,9 @@ const CalendarPopoverContent = ({ children, className, smallScreenBreakpoint })
5852
5861
  ref: modalRef,
5853
5862
  className: cn(DateInput_module_default.popover, className),
5854
5863
  ...paperStyleProps,
5855
- children: [/* @__PURE__ */ jsx("div", {
5856
- className: DateInput_module_default["modal-close-button-wrapper"],
5864
+ children: [/* @__PURE__ */ jsx(Box, {
5865
+ display: "flex",
5866
+ justifyContent: "flex-end",
5857
5867
  children: /* @__PURE__ */ jsx(Button, {
5858
5868
  ref: closeButtonRef,
5859
5869
  icon: CloseIcon,
@@ -5913,7 +5923,6 @@ function CalendarGrid({ state, ...props }) {
5913
5923
  }
5914
5924
  ];
5915
5925
  const { showWeekNumbers, onClose } = useContext(CalendarPopoverContext);
5916
- const thCn = cn(DateInput_module_default["calendar__grid-element"], typographyStyles_module_default["text-color--subtle"], DateInput_module_default.calendar__th);
5917
5926
  return /* @__PURE__ */ jsxs("table", {
5918
5927
  ...gridProps,
5919
5928
  onKeyDown: (e) => {
@@ -5924,14 +5933,14 @@ function CalendarGrid({ state, ...props }) {
5924
5933
  className: typographyStyles_module_default["body-short-xsmall"],
5925
5934
  children: [/* @__PURE__ */ jsx("thead", {
5926
5935
  ...headerProps,
5927
- children: /* @__PURE__ */ jsxs("tr", { children: [showWeekNumbers && /* @__PURE__ */ jsxs("th", {
5928
- className: cn(thCn),
5936
+ children: /* @__PURE__ */ jsxs("tr", { children: [showWeekNumbers && /* @__PURE__ */ jsxs(CalendarCell, {
5937
+ as: "th",
5929
5938
  children: [/* @__PURE__ */ jsx("span", {
5930
5939
  "aria-hidden": true,
5931
5940
  children: "#"
5932
5941
  }), /* @__PURE__ */ jsx(VisuallyHidden, { children: t(texts$24.weekNumber) })]
5933
- }), weekDays.map((day, index) => /* @__PURE__ */ jsxs("th", {
5934
- className: thCn,
5942
+ }), weekDays.map((day, index) => /* @__PURE__ */ jsxs(CalendarCell, {
5943
+ as: "th",
5935
5944
  children: [/* @__PURE__ */ jsx("span", {
5936
5945
  "aria-hidden": true,
5937
5946
  children: day.short
@@ -5941,10 +5950,10 @@ function CalendarGrid({ state, ...props }) {
5941
5950
  const datesInWeek = state.getDatesInWeek(weekIndex);
5942
5951
  const firstExistingDay = datesInWeek.find(Boolean);
5943
5952
  const weekNumber = firstExistingDay ? getWeekNumber(firstExistingDay) : "";
5944
- return /* @__PURE__ */ jsxs("tr", { children: [showWeekNumbers && /* @__PURE__ */ jsx("td", {
5945
- className: cn(thCn, DateInput_module_default["calendar__week-number"]),
5953
+ return /* @__PURE__ */ jsxs("tr", { children: [showWeekNumbers && /* @__PURE__ */ jsx(CalendarCell, {
5954
+ as: "td",
5946
5955
  children: weekNumber
5947
- }), datesInWeek.map((date, i) => date ? /* @__PURE__ */ jsx(CalendarCell, {
5956
+ }), datesInWeek.map((date, i) => date ? /* @__PURE__ */ jsx(CalendarDate$1, {
5948
5957
  state,
5949
5958
  date,
5950
5959
  onClose
@@ -6376,7 +6385,7 @@ function DateInput({ errorMessage, tip, componentSize = "medium", style, classNa
6376
6385
  className: cn(Input_module_default["input-group"], typographyStyles_module_default[`body-short-${componentSize}`], DateInput_module_default["input-group"]),
6377
6386
  children: [
6378
6387
  button,
6379
- /* @__PURE__ */ jsx("div", {
6388
+ /* @__PURE__ */ jsx(HStack, {
6380
6389
  ...fieldProps,
6381
6390
  ref: internalRef,
6382
6391
  className: cn(Input_module_default.input, Input_module_default[`input--${componentSize}`], Input_module_default["input--stateful"], Input_module_default["input--hover"], hasErrorMessage && Input_module_default["input--stateful-danger"], clearable && Input_module_default[`input-with-btn-right--${componentSize}`], DateInput_module_default["date-segment-container"], Input_module_default[`input-with-icon--${componentSize}`], isOpen && focus_module_default.focused, disabled && "disabled", disabled && Input_module_default.disabled, active && "active", readOnly && "read-only", readOnly && Input_module_default["read-only"], focus_module_default["focusable-within"]),
@@ -6674,8 +6683,13 @@ const DescriptionListTerm = (props) => {
6674
6683
  DescriptionListTerm.displayName = "DescriptionListTerm";
6675
6684
  //#endregion
6676
6685
  //#region src/components/DescriptionList/DescriptionListDesc.tsx
6677
- const DescriptionListDesc = ({ children, icon, id, className, style, htmlProps, ...rest }) => /* @__PURE__ */ jsxs("dd", {
6686
+ const DescriptionListDesc = ({ children, icon, id, className, style, htmlProps, ...rest }) => /* @__PURE__ */ jsxs(Box, {
6678
6687
  ...getBaseHTMLProps(id, cn(className, DescriptionList_module_default.desc), style, htmlProps, rest),
6688
+ as: "dd",
6689
+ display: "flex",
6690
+ alignItems: "center",
6691
+ gap: "x0.25",
6692
+ marginInline: "x0",
6679
6693
  children: [
6680
6694
  icon && /* @__PURE__ */ jsx(Icon, { icon }),
6681
6695
  " ",
@@ -8110,21 +8124,17 @@ const texts$12 = createTexts({
8110
8124
  }
8111
8125
  });
8112
8126
  //#endregion
8113
- //#region src/components/Footer/Footer.module.css
8114
- var Footer_module_default = {
8115
- "container": "dds-Footer-module__container",
8116
- "left": "dds-Footer-module__left",
8117
- "list": "dds-Footer-module__list",
8118
- "list-group": "dds-Footer-module__list-group",
8119
- "socials-group": "dds-Footer-module__socials-group",
8120
- "socials-list": "dds-Footer-module__socials-list"
8121
- };
8122
- //#endregion
8123
8127
  //#region src/components/Footer/Footer.tsx
8124
- const Footer = ({ className, ...rest }) => /* @__PURE__ */ jsx(Contrast, {
8128
+ const Footer = (props) => /* @__PURE__ */ jsx(Contrast, {
8125
8129
  as: "footer",
8126
- className: cn(className, Footer_module_default.container),
8127
- ...rest
8130
+ paddingBlock: {
8131
+ xs: "x3 x6",
8132
+ sm: "x3 x6",
8133
+ md: "x4",
8134
+ lg: "x4",
8135
+ xl: "x4"
8136
+ },
8137
+ ...props
8128
8138
  });
8129
8139
  //#endregion
8130
8140
  //#region src/components/Footer/FooterListHeader.tsx
@@ -8138,11 +8148,11 @@ const FooterListHeader = (props) => /* @__PURE__ */ jsx(Heading, {
8138
8148
  var norges_domstoler_logo_default = "data:image/svg+xml,<svg width=\"151\" height=\"80\" viewBox=\"0 0 151 80\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">%0A<g id=\"Logo\" clip-path=\"url(%23clip0_18254_1882)\">%0A<path id=\"Vector\" d=\"M0 19.5721V0.38501H3.50998L9.51314 13.2128C10.169 14.6541 10.6734 16.1596 11.0182 17.7051H11.1848C10.9502 16.2655 10.8311 14.8093 10.8287 13.3507V0.38501H13.0174V19.5721H9.51314L3.50998 6.77306C2.84978 5.3389 2.34334 3.83883 1.99914 2.29798H1.83829C2.07013 3.73991 2.18921 5.19772 2.19446 6.65817V19.5721H0Z\" fill=\"white\"/>%0A<path id=\"Vector_2\" d=\"M19.2848 17.4063C17.9942 15.7059 17.3489 13.2299 17.3489 9.97846C17.3489 6.72699 17.9942 4.25104 19.2848 2.55062C20.5716 0.850208 22.4118 0 24.8054 0C27.199 0 29.0488 0.844463 30.3548 2.53339C31.6416 4.25679 32.2907 6.70401 32.2907 10.0014C32.2907 13.2989 31.6416 15.7461 30.3548 17.4695C29.068 19.1929 27.2182 20.0029 24.8054 20.0029C22.3927 20.0029 20.5716 19.101 19.2848 17.4063ZM21.3357 4.05572C20.6003 5.31955 20.2308 7.29379 20.2269 9.97846C20.2231 12.6631 20.5927 14.6355 21.3357 15.8954C21.6776 16.4998 22.1813 16.9969 22.7902 17.3307C23.3991 17.6646 24.089 17.8221 24.7825 17.7854C25.4832 17.8288 26.182 17.6747 26.7994 17.3406C27.4169 17.0064 27.9282 16.5058 28.2752 15.8954C29.0143 14.6355 29.3858 12.6631 29.3897 9.97846C29.3935 7.29379 29.0297 5.31955 28.2982 4.05572C27.9502 3.44633 27.4387 2.9464 26.8215 2.61242C26.2042 2.27844 25.5059 2.12372 24.8054 2.16573C24.1083 2.12541 23.4138 2.28107 22.8006 2.6151C22.1874 2.94912 21.6799 3.44817 21.3357 4.05572Z\" fill=\"white\"/>%0A<path id=\"Vector_3\" d=\"M48.594 15.5968C48.8111 16.9446 49.1318 18.2737 49.5534 19.5721H46.5317C46.4288 19.2619 46.3463 18.9453 46.2847 18.6243C46.21 18.2681 46.1238 17.7856 46.0376 17.1709C45.9515 16.5562 45.8825 16.1254 45.8423 15.8668C45.5513 13.9903 45.1415 12.7207 44.613 12.0581C44.0845 11.3956 43.2151 11.0681 42.0049 11.0758H39.1326V19.5721H36.4556V0.38501H43.0045C44.7968 0.38501 46.1813 0.815859 47.1693 1.6833C47.6677 2.13766 48.0592 2.69689 48.3154 3.32072C48.5717 3.94454 48.6865 4.61743 48.6515 5.29094C48.6898 5.93617 48.5867 6.58197 48.3496 7.18326C48.1125 7.78455 47.7469 8.32682 47.2785 8.7722C46.2192 9.64565 44.8691 10.0868 43.4985 10.0073H42.7287V10.1681L43.5272 10.1969C44.1017 10.2313 44.4866 10.2658 44.7566 10.2945C45.102 10.3329 45.4427 10.4061 45.7734 10.5128C46.1234 10.601 46.4442 10.7792 46.704 11.0298C46.968 11.3147 47.2064 11.6223 47.4164 11.949C47.7076 12.4082 47.9301 12.9075 48.077 13.4311C48.2551 14.0343 48.4332 14.7581 48.594 15.5968ZM39.167 9.09964H42.43C42.8862 9.13106 43.3441 9.06822 43.775 8.91503C44.2059 8.76184 44.6006 8.52159 44.9347 8.20922C45.241 7.86617 45.4755 7.4653 45.6245 7.03021C45.7734 6.59512 45.8338 6.13462 45.8021 5.67583C45.8021 3.48138 44.6781 2.38415 42.43 2.38415H39.167V9.09964Z\" fill=\"white\"/>%0A<path id=\"Vector_4\" d=\"M63.8634 6.27892C63.8374 5.16647 63.448 4.0931 62.7547 3.22277C62.4351 2.8708 62.0419 2.59361 61.6031 2.41091C61.1642 2.22821 60.6904 2.14451 60.2155 2.16575C59.518 2.12433 58.8231 2.28288 58.2125 2.62276C57.6019 2.96264 57.1011 3.46974 56.7688 4.08447C56.0334 5.36744 55.6658 7.33211 55.6658 9.97848C55.6658 12.6248 56.0315 14.5933 56.763 15.884C57.0847 16.4915 57.5726 16.995 58.1697 17.3358C58.7668 17.6765 59.4484 17.8404 60.1351 17.8084C62.8581 17.8084 64.2196 15.974 64.2196 12.3051V11.6214H59.9168V9.64529H66.7415V19.572H64.5757V17.6246C64.5824 16.3521 64.6552 15.0808 64.794 13.8159H64.6274C64.4283 15.9338 63.9132 17.4867 63.0821 18.4748C62.2491 19.4629 61.0198 19.9512 59.3941 19.9512C58.4312 19.9882 57.4753 19.7741 56.6202 19.3299C55.7651 18.8857 55.0403 18.2268 54.5169 17.4178C53.3679 15.7289 52.7935 13.2759 52.7935 10.0589C52.7935 6.77296 53.4292 4.28361 54.7007 2.59086C55.9722 0.898101 57.8009 0.0344883 60.1868 2.04411e-05C61.7689 -0.0690547 63.3242 0.425623 64.5757 1.39597C65.1677 1.92295 65.6473 2.56392 65.9859 3.28052C66.3244 3.99712 66.515 4.77464 66.5461 5.56659L63.8634 6.27892Z\" fill=\"white\"/>%0A<path id=\"Vector_5\" d=\"M74.824 17.5673H82.8034V19.5721H72.1125V0.38501H82.6368V2.38415H74.824V8.66305H82.0048V10.6622H74.824V17.5673Z\" fill=\"white\"/>%0A<path id=\"Vector_6\" d=\"M93.0633 19.9512C90.9953 19.9512 89.3695 19.4342 88.1804 18.3887C87.5786 17.8382 87.1032 17.164 86.7869 16.4123C86.4705 15.6606 86.3207 14.8493 86.3478 14.0342L89.0421 13.2645C89.1876 16.3283 90.5491 17.8602 93.1265 17.8602C94.0518 17.9146 94.9669 17.6422 95.7116 17.0904C96.0388 16.8086 96.2951 16.4538 96.4598 16.0546C96.6245 15.6554 96.6929 15.2231 96.6595 14.7925C96.6595 13.3334 95.838 12.284 94.195 11.6445L91.0699 10.3806C88.4159 9.32362 87.0908 7.55236 87.0947 5.06684C87.054 4.35555 87.1815 3.64468 87.467 2.99192C87.7524 2.33915 88.1878 1.76287 88.7376 1.30984C90.0484 0.449859 91.5818 -0.00830078 93.1495 -0.00830078C94.7172 -0.00830078 96.2507 0.449859 97.5614 1.30984C98.139 1.77201 98.6034 2.36008 98.919 3.02914C99.2346 3.6982 99.3931 4.43055 99.3825 5.17024L96.7801 5.9113C96.6155 3.36451 95.4014 2.09302 93.138 2.09685C92.2848 2.02806 91.4347 2.26195 90.7368 2.75749C90.4435 3.00371 90.2126 3.31574 90.0629 3.66814C89.9131 4.02055 89.8488 4.40335 89.8751 4.78535C89.835 5.48253 90.0539 6.16994 90.4897 6.71555C91.0398 7.27423 91.7096 7.70051 92.4487 7.96214L95.3612 9.15703C98.042 10.2294 99.3825 12.0006 99.3825 14.4708C99.4281 15.2308 99.2996 15.9911 99.0069 16.694C98.7143 17.3968 98.2651 18.0236 97.6935 18.5266C96.602 19.4802 95.051 19.9512 93.0633 19.9512Z\" fill=\"white\"/>%0A<path id=\"Vector_7\" d=\"M5.2104 35.4617C7.95251 35.4617 9.98037 36.308 11.294 38.0008C12.6076 39.6936 13.2644 42.045 13.2644 45.0552C13.2644 48.0884 12.6076 50.4456 11.294 52.1269C9.98037 53.8082 7.95251 54.6488 5.2104 54.6488H0V35.4617H5.2104ZM4.96338 52.6497C6.97401 52.6497 8.3757 52.0063 9.17995 50.7195C9.9842 49.4327 10.3863 47.5427 10.3863 45.0552C10.3863 42.5678 9.9842 40.6836 9.17995 39.3968C8.3757 38.11 6.97401 37.4666 4.96338 37.4666H2.71148V52.6497H4.96338Z\" fill=\"white\"/>%0A<path id=\"Vector_8\" d=\"M18.5954 52.4831C17.3047 50.7903 16.6594 48.3144 16.6594 45.0552C16.6594 41.7961 17.3047 39.3202 18.5954 37.6274C19.8898 35.9308 21.732 35.0825 24.1217 35.0825C26.5115 35.0825 28.3613 35.927 29.6711 37.6159C30.954 39.3048 31.5955 41.7846 31.5955 45.0552C31.5955 48.3259 30.9521 50.8152 29.6653 52.5233C28.3823 54.1969 26.5364 55.0337 24.1275 55.0337C21.7185 55.0337 19.8745 54.1835 18.5954 52.4831ZM20.6807 39.1382C19.9147 40.3944 19.5317 42.3667 19.5317 45.0552C19.5317 47.7437 19.9147 49.718 20.6807 50.978C21.0254 51.5787 21.5302 52.0719 22.1388 52.4025C22.7474 52.7332 23.4359 52.8884 24.1275 52.8507C24.8279 52.8921 25.5259 52.7371 26.143 52.4031C26.7601 52.0692 27.2717 51.5697 27.6202 50.9607C28.3555 49.7084 28.7232 47.7399 28.7232 45.0552C28.7232 42.3706 28.3536 40.3982 27.6145 39.1382C27.2674 38.5293 26.7569 38.0296 26.1407 37.6956C25.5245 37.3616 24.8271 37.2067 24.1275 37.2483C23.434 37.2116 22.7441 37.3691 22.1352 37.703C21.5264 38.0368 21.0226 38.5339 20.6807 39.1382Z\" fill=\"white\"/>%0A<path id=\"Vector_9\" d=\"M35.7661 54.6488V35.4617H39.7414L42.8148 46.1237C43.5024 48.2936 43.9079 50.5429 44.0212 52.8163H44.2337C44.2993 50.5424 44.6861 48.2893 45.3827 46.1237L48.5939 35.4617H52.2762V54.6488H49.6911V43.7684C49.6911 41.5223 49.7773 39.414 49.9382 37.4493H49.7486C49.4555 39.2625 49.0527 41.0562 48.5422 42.8206L45.0954 54.6603H42.6827L39.121 42.5965C38.6304 40.9144 38.2467 39.2029 37.9721 37.4723H37.7767C37.9261 39.2417 38.0008 41.2638 38.0008 43.5272V54.6488H35.7661Z\" fill=\"white\"/>%0A<path id=\"Vector_10\" d=\"M63.2314 55.0338C61.171 55.0338 59.5452 54.513 58.3542 53.4713C57.7505 52.9221 57.2734 52.2482 56.9559 51.4963C56.6385 50.7444 56.4884 49.9325 56.5159 49.1168L59.1699 48.3471C59.3155 51.4109 60.6769 52.9428 63.2544 52.9428C64.1809 52.9928 65.0963 52.7208 65.8452 52.173C66.1703 51.8898 66.4248 51.5346 66.5883 51.1356C66.7519 50.7367 66.82 50.3051 66.7873 49.8751C66.7873 48.416 65.9659 47.3647 64.3229 46.7213L61.1978 45.4632C58.5476 44.3986 57.2225 42.6254 57.2225 40.1437C57.1827 39.4334 57.3107 38.7236 57.5962 38.0719C57.8816 37.4202 58.3164 36.8449 58.8655 36.3924C60.1497 35.4549 61.7185 34.9902 63.3061 35.0769C64.8757 35.0068 66.4227 35.4705 67.695 36.3924C68.2714 36.8566 68.7344 37.4461 69.0489 38.116C69.3635 38.7859 69.5213 39.5186 69.5103 40.2586L66.9022 40.9997C66.7414 38.4605 65.5273 37.1909 63.2601 37.1909C62.4071 37.1241 61.5576 37.3578 60.8589 37.8516C60.5656 38.0978 60.3347 38.4098 60.185 38.7622C60.0352 39.1146 59.9709 39.4974 59.9972 39.8794C59.9571 40.5766 60.176 41.264 60.6118 41.8096C61.1632 42.3762 61.8346 42.812 62.5765 43.085L65.535 44.2339C68.2158 45.3139 69.5563 47.0871 69.5563 49.5534C69.6008 50.3128 69.4725 51.0723 69.181 51.7748C68.8894 52.4773 68.4422 53.1045 67.8731 53.6092C66.7529 54.5743 65.2076 55.0338 63.2314 55.0338Z\" fill=\"white\"/>%0A<path id=\"Vector_11\" d=\"M85.8997 35.4617V37.6274H80.6376V54.6488H77.9491V37.6274H72.687V35.4617H85.8997Z\" fill=\"white\"/>%0A<path id=\"Vector_12\" d=\"M90.4092 52.4831C89.1148 50.7903 88.4675 48.3144 88.4675 45.0552C88.4675 41.7961 89.1128 39.3202 90.4035 37.6274C91.6903 35.9308 93.5305 35.0825 95.9241 35.0825C98.3177 35.0825 100.167 35.927 101.473 37.6159C102.76 39.3048 103.404 41.7942 103.404 45.084C103.404 48.3737 102.76 50.8631 101.473 52.552C100.19 54.2065 98.3445 55.0337 95.9356 55.0337C93.5267 55.0337 91.6845 54.1835 90.4092 52.4831ZM92.4888 39.1382C91.7228 40.3944 91.3399 42.3667 91.3399 45.0552C91.3399 47.7437 91.7228 49.718 92.4888 50.978C92.866 51.5576 93.382 52.034 93.9899 52.3637C94.5978 52.6934 95.2785 52.8661 95.97 52.8661C96.6616 52.8661 97.3423 52.6934 97.9502 52.3637C98.5581 52.034 99.0741 51.5576 99.4513 50.978C100.171 49.7141 100.531 47.7399 100.531 45.0552C100.531 42.3706 100.162 40.3982 99.4226 39.1382C99.0454 38.5586 98.5294 38.0823 97.9215 37.7525C97.3136 37.4228 96.6329 37.2501 95.9413 37.2501C95.2497 37.2501 94.5691 37.4228 93.9612 37.7525C93.3532 38.0823 92.8373 38.5586 92.4601 39.1382H92.4888Z\" fill=\"white\"/>%0A<path id=\"Vector_13\" d=\"M107.58 35.4617H110.297V52.4831H117.915V54.6488H107.574L107.58 35.4617Z\" fill=\"white\"/>%0A<path id=\"Vector_14\" d=\"M124.544 52.6497H132.518V54.6488H121.833V35.4617H132.357V37.4666H124.544V43.7397H131.725V45.7446H124.544V52.6497Z\" fill=\"white\"/>%0A<path id=\"Vector_15\" d=\"M149.321 50.6735C149.534 52.022 149.855 53.3513 150.28 54.6488H147.264C147.163 54.3399 147.081 54.0253 147.017 53.7067C146.942 53.3505 146.862 52.8622 146.77 52.2533C146.678 51.6444 146.615 51.2078 146.581 50.9493C146.289 49.0688 145.878 47.7993 145.345 47.1405C144.817 46.4857 143.949 46.1525 142.743 46.1525H139.871V54.6488H137.154V35.4617H143.731C145.52 35.4617 146.908 35.8963 147.896 36.7657C148.392 37.2209 148.781 37.7807 149.034 38.4047C149.288 39.0286 149.399 39.701 149.361 40.3733C149.394 41.0129 149.289 41.6521 149.052 42.247C148.815 42.8419 148.452 43.3786 147.988 43.8201C146.93 44.6951 145.579 45.1365 144.208 45.0552H143.438V45.2218H144.231C144.805 45.2563 145.19 45.285 145.466 45.3137C145.811 45.3579 146.151 45.4309 146.483 45.532C146.833 45.6236 147.153 45.8036 147.413 46.0548C147.676 46.3411 147.914 46.6485 148.126 46.9739C148.422 47.451 148.645 47.97 148.786 48.5135C148.982 49.1167 149.154 49.8348 149.321 50.6735ZM139.894 44.1821H143.151C143.608 44.2136 144.067 44.1508 144.499 43.9976C144.931 43.8445 145.326 43.6042 145.661 43.2916C146.273 42.5923 146.583 41.6795 146.523 40.7525C146.523 38.5638 145.403 37.4666 143.151 37.4666H139.894V44.1821Z\" fill=\"white\"/>%0A<path id=\"Vector_16\" d=\"M150.389 75.0137H0V80H150.389V75.0137Z\" fill=\"white\"/>%0A</g>%0A<defs>%0A<clipPath id=\"clip0_18254_1882\">%0A<rect width=\"150.389\" height=\"80\" fill=\"white\"/>%0A</clipPath>%0A</defs>%0A</svg>%0A";
8139
8149
  //#endregion
8140
8150
  //#region src/components/Footer/FooterLogo.tsx
8141
- const FooterLogo = ({ hideBreakpoint, ...rest }) => {
8151
+ const FooterLogo = ({ children, hideBreakpoint, ...rest }) => {
8142
8152
  return /* @__PURE__ */ jsx(Box, {
8143
8153
  hideBelow: hideBreakpoint ? hideBreakpoint : void 0,
8144
8154
  width: "fit-content",
8145
- children: /* @__PURE__ */ jsx("img", {
8155
+ children: children ? children : /* @__PURE__ */ jsx("img", {
8146
8156
  height: 80,
8147
8157
  width: 151,
8148
8158
  alt: "norges domstoler",
@@ -8153,33 +8163,35 @@ const FooterLogo = ({ hideBreakpoint, ...rest }) => {
8153
8163
  };
8154
8164
  //#endregion
8155
8165
  //#region src/components/Footer/FooterList.tsx
8156
- const FooterList = ({ className, ...rest }) => /* @__PURE__ */ jsx(StylelessList, {
8157
- className: cn(className, Footer_module_default.list),
8158
- ...rest
8166
+ const FooterList = (props) => /* @__PURE__ */ jsx(VStack, {
8167
+ as: StylelessList,
8168
+ gap: "x1.5",
8169
+ ...props
8159
8170
  });
8160
8171
  //#endregion
8161
8172
  //#region src/components/Footer/FooterSocialsList.tsx
8162
- const FooterSocialsList = ({ className, ...rest }) => /* @__PURE__ */ jsx(StylelessList, {
8163
- className: cn(className, Footer_module_default["socials-list"]),
8164
- ...rest
8173
+ const FooterSocialsList = (props) => /* @__PURE__ */ jsx(HStack, {
8174
+ as: StylelessList,
8175
+ gap: "x1.5",
8176
+ ...props
8165
8177
  });
8166
8178
  //#endregion
8167
8179
  //#region src/components/Footer/FooterSocialsGroup.tsx
8168
- const FooterSocialsGroup = ({ className, ...rest }) => /* @__PURE__ */ jsx("div", {
8169
- className: cn(className, Footer_module_default["socials-group"]),
8170
- ...rest
8180
+ const FooterSocialsGroup = (props) => /* @__PURE__ */ jsx(VStack, {
8181
+ gap: "x1",
8182
+ ...props
8171
8183
  });
8172
8184
  //#endregion
8173
8185
  //#region src/components/Footer/FooterListGroup.tsx
8174
- const FooterListGroup = ({ className, ...rest }) => /* @__PURE__ */ jsx("div", {
8175
- className: cn(className, Footer_module_default["list-group"]),
8176
- ...rest
8186
+ const FooterListGroup = (props) => /* @__PURE__ */ jsx(VStack, {
8187
+ gap: "x1.5",
8188
+ ...props
8177
8189
  });
8178
8190
  //#endregion
8179
8191
  //#region src/components/Footer/FooterLeft.tsx
8180
- const FooterLeft = ({ className, ...rest }) => /* @__PURE__ */ jsx("div", {
8181
- className: cn(className, Footer_module_default["left"]),
8182
- ...rest
8192
+ const FooterLeft = (props) => /* @__PURE__ */ jsx(VStack, {
8193
+ gap: "x4",
8194
+ ...props
8183
8195
  });
8184
8196
  //#endregion
8185
8197
  //#region src/components/FormSummary/FormSummary.tsx
@@ -8282,9 +8294,7 @@ var GlobalMessage_module_default = {
8282
8294
  "container--info": "dds-GlobalMessage-module__container--info",
8283
8295
  "icon": "dds-GlobalMessage-module__icon",
8284
8296
  "container--danger": "dds-GlobalMessage-module__container--danger",
8285
- "container--warning": "dds-GlobalMessage-module__container--warning",
8286
- "content": "dds-GlobalMessage-module__content",
8287
- "content--closable": "dds-GlobalMessage-module__content--closable"
8297
+ "container--warning": "dds-GlobalMessage-module__container--warning"
8288
8298
  };
8289
8299
  const icons$2 = {
8290
8300
  info: InfoIcon,
@@ -8294,10 +8304,16 @@ const icons$2 = {
8294
8304
  const GlobalMessage = ({ purpose = "info", closable, onClose, children, id, className, style, htmlProps, ...rest }) => {
8295
8305
  const { t } = useTranslation();
8296
8306
  const [isClosed, setClosed] = useState(false);
8297
- return !isClosed ? /* @__PURE__ */ jsxs("div", {
8307
+ return !isClosed ? /* @__PURE__ */ jsxs(HStack, {
8298
8308
  ...getBaseHTMLProps(id, cn(className, GlobalMessage_module_default.container, GlobalMessage_module_default[`container--${purpose}`], typographyStyles_module_default["body-short-medium"]), style, htmlProps, rest),
8299
- children: [/* @__PURE__ */ jsxs("div", {
8300
- className: cn(GlobalMessage_module_default.content, closable && GlobalMessage_module_default["content--closable"]),
8309
+ alignItems: "center",
8310
+ justifyContent: "space-between",
8311
+ width: "100%",
8312
+ padding: "0 x1",
8313
+ children: [/* @__PURE__ */ jsxs(HStack, {
8314
+ alignItems: "center",
8315
+ paddingBlock: "x0.75",
8316
+ paddingInline: closable ? "x0 x0.75" : " x0 x1.5",
8301
8317
  children: [/* @__PURE__ */ jsx(Icon, {
8302
8318
  icon: icons$2[purpose],
8303
8319
  iconSize: "component",
@@ -9301,7 +9317,7 @@ const getCustomStyles = (size, hasError, isReadOnly) => ({
9301
9317
  zIndex: 100,
9302
9318
  transition: "var(--dds-motion-surface)",
9303
9319
  border: "1px solid var(--dds-color-border-default)",
9304
- backgroundColor: "var(--dds-color-surface-default)",
9320
+ backgroundColor: "var(--dds-color-surface-paper-default)",
9305
9321
  borderRadius: "var(--dds-border-radius-surface)",
9306
9322
  marginBlock: "var(--dds-spacing-x0-25)"
9307
9323
  }),
@@ -9331,11 +9347,15 @@ const getCustomStyles = (size, hasError, isReadOnly) => ({
9331
9347
  gap: "var(--dds-spacing-x0-25)",
9332
9348
  padding: "var(--dds-spacing-x0-75)",
9333
9349
  borderRadius: "var(--dds-border-radius-surface)",
9334
- backgroundColor: "var(--dds-color-surface-default)",
9350
+ backgroundColor: "inherit",
9335
9351
  ...typography.option[size],
9336
9352
  color: "var(--dds-color-text-default)",
9337
9353
  "@media (prefers-reduced-motion: no-preference)": { transition: "color var(--dds-motion-micro-state), background-color var(--dds-motion-micro-state)" },
9338
- ...state.isSelected && { backgroundColor: "var(--dds-color-surface-selected-default)" },
9354
+ "&:active": { backgroundColor: "inherit" },
9355
+ ...state.isSelected && {
9356
+ backgroundColor: "var(--dds-color-surface-selected-default)",
9357
+ "&:active": { backgroundColor: "var(--dds-color-surface-selected-default)" }
9358
+ },
9339
9359
  ...state.isFocused && {
9340
9360
  outline: "var(--dds-color-border-action-hover) 2px solid",
9341
9361
  outlineOffset: "calc(var(--dds-spacing-x0-125) * -1)"
@@ -11350,25 +11370,20 @@ const texts$7 = createTexts({
11350
11370
  }
11351
11371
  });
11352
11372
  //#endregion
11353
- //#region src/components/Popover/Popover.module.css
11354
- var Popover_module_default = {
11355
- "container": "dds-Popover-module__container",
11356
- "content--closable--no-header": "dds-Popover-module__content--closable--no-header",
11357
- "header": "dds-Popover-module__header",
11358
- "close-button": "dds-Popover-module__close-button"
11359
- };
11360
- //#endregion
11361
11373
  //#region src/components/Popover/Popover.context.tsx
11362
11374
  const PopoverContext = createContext({});
11363
11375
  const usePopoverContext = () => useContext(PopoverContext);
11364
11376
  //#endregion
11377
+ //#region src/components/Popover/Popover.module.css
11378
+ var Popover_module_default = { "container": "dds-Popover-module__container" };
11379
+ //#endregion
11365
11380
  //#region src/components/Popover/Popover.tsx
11366
11381
  const Popover = ({ id, header, withCloseButton = true, onBlur, children, placement = "bottom", parentElement, portal = false, offset = 8, sizeProps = {}, returnFocusOnBlur = true, className, htmlProps = {}, anchorRef, isOpen: propIsOpen, onClose: propOnClose, style, ref, ...rest }) => {
11367
11382
  const { refs, styles: positionStyles, isPositioned: localIsPositioned } = useFloatPosition(null, {
11368
11383
  offset,
11369
11384
  placement
11370
11385
  });
11371
- const { maxHeight, maxWidth, minHeight, minWidth, height, width } = sizeProps;
11386
+ const { maxHeight, maxWidth, minHeight, minWidth, height, width = "fit-content" } = sizeProps;
11372
11387
  const context = usePopoverContext();
11373
11388
  const themeContext = useContext(ThemeContext);
11374
11389
  const portalTarget = parentElement ?? themeContext?.el;
@@ -11428,29 +11443,34 @@ const Popover = ({ id, header, withCloseButton = true, onBlur, children, placeme
11428
11443
  width,
11429
11444
  maxWidth,
11430
11445
  minWidth,
11446
+ position: "absolute",
11447
+ padding: "x0.75 x1 x1.5 x1",
11431
11448
  role: "dialog",
11432
11449
  elevation: "large",
11433
11450
  border: "border-subtle",
11434
11451
  children: [
11435
- header && /* @__PURE__ */ jsx("div", {
11436
- className: Popover_module_default.header,
11452
+ header && /* @__PURE__ */ jsx(Box, {
11453
+ marginInline: "0 x2",
11437
11454
  children: typeof header === "string" ? /* @__PURE__ */ jsx(Heading, {
11438
11455
  level: 2,
11439
11456
  typographyType: "heading-medium",
11440
11457
  children: header
11441
11458
  }) : header
11442
11459
  }),
11443
- /* @__PURE__ */ jsx("div", {
11444
- className: !hasTitle && withCloseButton ? Popover_module_default["content--closable--no-header"] : "",
11460
+ /* @__PURE__ */ jsx(Box, {
11461
+ marginBlock: !hasTitle && withCloseButton ? "x2 0" : "0",
11445
11462
  children
11446
11463
  }),
11447
- withCloseButton && /* @__PURE__ */ jsx(Button, {
11464
+ withCloseButton && /* @__PURE__ */ jsx(Box, {
11465
+ as: Button,
11448
11466
  icon: CloseIcon,
11449
11467
  purpose: "tertiary",
11450
11468
  size: "small",
11451
11469
  onClick: onClose,
11452
11470
  "aria-label": t(commonTexts.close),
11453
- className: Popover_module_default["close-button"]
11471
+ position: "absolute",
11472
+ top: "x0.25",
11473
+ right: "x0.25"
11454
11474
  })
11455
11475
  ]
11456
11476
  });