@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.cjs CHANGED
@@ -4554,10 +4554,7 @@ const useOverflowMenuContext = () => {
4554
4554
  };
4555
4555
  //#endregion
4556
4556
  //#region src/components/OverflowMenu/OverflowMenu.module.css
4557
- var OverflowMenu_module_default = {
4558
- "container": "dds-OverflowMenu-module__container",
4559
- "list": "dds-OverflowMenu-module__list"
4560
- };
4557
+ var OverflowMenu_module_default = { "container": "dds-OverflowMenu-module__container" };
4561
4558
  //#endregion
4562
4559
  //#region src/components/OverflowMenu/OverflowMenu.tsx
4563
4560
  const OverflowMenu = ({ placement = "bottom-end", offset = 2, parentElement, portal = true, className, htmlProps = {}, ref, style, ...rest }) => {
@@ -5719,13 +5716,9 @@ var DateInput_module_default = {
5719
5716
  "icon-wrapper--readonly": "dds-DateInput-module__icon-wrapper--readonly",
5720
5717
  "popover-button--readonly": "dds-DateInput-module__popover-button--readonly",
5721
5718
  "popover": "dds-DateInput-module__popover",
5722
- "modal-close-button-wrapper": "dds-DateInput-module__modal-close-button-wrapper",
5723
- "calendar": "dds-DateInput-module__calendar",
5724
5719
  "calendar__header__month": "dds-DateInput-module__calendar__header__month",
5725
5720
  "calendar__month-button": "dds-DateInput-module__calendar__month-button",
5726
- "calendar__grid-element": "dds-DateInput-module__calendar__grid-element",
5727
5721
  "calendar__th": "dds-DateInput-module__calendar__th",
5728
- "calendar__week-number": "dds-DateInput-module__calendar__week-number",
5729
5722
  "calendar__cell-button": "dds-DateInput-module__calendar__cell-button",
5730
5723
  "calendar__cell-button--today": "dds-DateInput-module__calendar__cell-button--today",
5731
5724
  "calendar__cell-button--default": "dds-DateInput-module__calendar__cell-button--default",
@@ -5734,6 +5727,16 @@ var DateInput_module_default = {
5734
5727
  "calendar__cell-button--unavailable--today": "dds-DateInput-module__calendar__cell-button--unavailable--today"
5735
5728
  };
5736
5729
  //#endregion
5730
+ //#region src/components/date-inputs/DatePicker/Calendar/CalendarCell.tsx
5731
+ function CalendarCell({ ...props }) {
5732
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, {
5733
+ textAlign: "center",
5734
+ className: cn(typographyStyles_module_default["text-color--subtle"], DateInput_module_default.calendar__th),
5735
+ ...props
5736
+ });
5737
+ }
5738
+ CalendarCell.displayName = "CalendarCell";
5739
+ //#endregion
5737
5740
  //#region src/components/date-inputs/DatePicker/constants.ts
5738
5741
  const LOCALE = {
5739
5742
  nb: "nb-NO",
@@ -5743,8 +5746,8 @@ const LOCALE = {
5743
5746
  se: "se-NO"
5744
5747
  };
5745
5748
  //#endregion
5746
- //#region src/components/date-inputs/DatePicker/Calendar/CalendarCell.tsx
5747
- function CalendarCell({ date, state, onClose }) {
5749
+ //#region src/components/date-inputs/DatePicker/Calendar/CalendarDate.tsx
5750
+ function CalendarDate$1({ date, state, onClose }) {
5748
5751
  const ref = (0, react.useRef)(null);
5749
5752
  const { buttonProps, cellProps, isOutsideVisibleRange, formattedDate, isSelected, isDisabled, isUnavailable } = (0, _react_aria_calendar.useCalendarCell)({ date }, state, ref);
5750
5753
  if (isOutsideVisibleRange) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { ...cellProps });
@@ -5755,17 +5758,23 @@ function CalendarCell({ date, state, onClose }) {
5755
5758
  const isUnavailableToday = isEffectivelyUnavailable && (0, _internationalized_date.isToday)(date, "Europe/Oslo");
5756
5759
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
5757
5760
  ...cellProps,
5758
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
5761
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, {
5759
5762
  ...buttonProps,
5763
+ as: "button",
5760
5764
  type: "button",
5761
5765
  ref,
5762
5766
  onKeyDown: closeOnKeyboardBlurForward,
5763
- className: cn(DateInput_module_default["calendar__grid-element"], DateInput_module_default["calendar__cell-button"], (0, _internationalized_date.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),
5767
+ height: "100%",
5768
+ width: "100%",
5769
+ display: "flex",
5770
+ alignItems: "center",
5771
+ justifyContent: "center",
5772
+ className: cn(DateInput_module_default["calendar__cell-button"], (0, _internationalized_date.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),
5764
5773
  children: formattedDate
5765
5774
  })
5766
5775
  });
5767
5776
  }
5768
- CalendarCell.displayName = "CalendarCell";
5777
+ CalendarDate$1.displayName = "CalendarDate";
5769
5778
  //#endregion
5770
5779
  //#region src/components/date-inputs/utils/getWeekNumber.ts
5771
5780
  /**
@@ -5885,8 +5894,9 @@ const CalendarPopoverContent = ({ children, className, smallScreenBreakpoint })
5885
5894
  ref: modalRef,
5886
5895
  className: cn(DateInput_module_default.popover, className),
5887
5896
  ...paperStyleProps,
5888
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5889
- className: DateInput_module_default["modal-close-button-wrapper"],
5897
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, {
5898
+ display: "flex",
5899
+ justifyContent: "flex-end",
5890
5900
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
5891
5901
  ref: closeButtonRef,
5892
5902
  icon: CloseIcon,
@@ -5946,7 +5956,6 @@ function CalendarGrid({ state, ...props }) {
5946
5956
  }
5947
5957
  ];
5948
5958
  const { showWeekNumbers, onClose } = (0, react.useContext)(CalendarPopoverContext);
5949
- const thCn = cn(DateInput_module_default["calendar__grid-element"], typographyStyles_module_default["text-color--subtle"], DateInput_module_default.calendar__th);
5950
5959
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("table", {
5951
5960
  ...gridProps,
5952
5961
  onKeyDown: (e) => {
@@ -5957,14 +5966,14 @@ function CalendarGrid({ state, ...props }) {
5957
5966
  className: typographyStyles_module_default["body-short-xsmall"],
5958
5967
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("thead", {
5959
5968
  ...headerProps,
5960
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("tr", { children: [showWeekNumbers && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("th", {
5961
- className: cn(thCn),
5969
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("tr", { children: [showWeekNumbers && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(CalendarCell, {
5970
+ as: "th",
5962
5971
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
5963
5972
  "aria-hidden": true,
5964
5973
  children: "#"
5965
5974
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VisuallyHidden, { children: t(texts$24.weekNumber) })]
5966
- }), weekDays.map((day, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("th", {
5967
- className: thCn,
5975
+ }), weekDays.map((day, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(CalendarCell, {
5976
+ as: "th",
5968
5977
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
5969
5978
  "aria-hidden": true,
5970
5979
  children: day.short
@@ -5974,10 +5983,10 @@ function CalendarGrid({ state, ...props }) {
5974
5983
  const datesInWeek = state.getDatesInWeek(weekIndex);
5975
5984
  const firstExistingDay = datesInWeek.find(Boolean);
5976
5985
  const weekNumber = firstExistingDay ? getWeekNumber(firstExistingDay) : "";
5977
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("tr", { children: [showWeekNumbers && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
5978
- className: cn(thCn, DateInput_module_default["calendar__week-number"]),
5986
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("tr", { children: [showWeekNumbers && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CalendarCell, {
5987
+ as: "td",
5979
5988
  children: weekNumber
5980
- }), datesInWeek.map((date, i) => date ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CalendarCell, {
5989
+ }), datesInWeek.map((date, i) => date ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CalendarDate$1, {
5981
5990
  state,
5982
5991
  date,
5983
5992
  onClose
@@ -6409,7 +6418,7 @@ function DateInput({ errorMessage, tip, componentSize = "medium", style, classNa
6409
6418
  className: cn(Input_module_default["input-group"], typographyStyles_module_default[`body-short-${componentSize}`], DateInput_module_default["input-group"]),
6410
6419
  children: [
6411
6420
  button,
6412
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
6421
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(HStack, {
6413
6422
  ...fieldProps,
6414
6423
  ref: internalRef,
6415
6424
  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"]),
@@ -6707,8 +6716,13 @@ const DescriptionListTerm = (props) => {
6707
6716
  DescriptionListTerm.displayName = "DescriptionListTerm";
6708
6717
  //#endregion
6709
6718
  //#region src/components/DescriptionList/DescriptionListDesc.tsx
6710
- const DescriptionListDesc = ({ children, icon, id, className, style, htmlProps, ...rest }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("dd", {
6719
+ const DescriptionListDesc = ({ children, icon, id, className, style, htmlProps, ...rest }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Box, {
6711
6720
  ...getBaseHTMLProps(id, cn(className, DescriptionList_module_default.desc), style, htmlProps, rest),
6721
+ as: "dd",
6722
+ display: "flex",
6723
+ alignItems: "center",
6724
+ gap: "x0.25",
6725
+ marginInline: "x0",
6712
6726
  children: [
6713
6727
  icon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, { icon }),
6714
6728
  " ",
@@ -8143,21 +8157,17 @@ const texts$12 = createTexts({
8143
8157
  }
8144
8158
  });
8145
8159
  //#endregion
8146
- //#region src/components/Footer/Footer.module.css
8147
- var Footer_module_default = {
8148
- "container": "dds-Footer-module__container",
8149
- "left": "dds-Footer-module__left",
8150
- "list": "dds-Footer-module__list",
8151
- "list-group": "dds-Footer-module__list-group",
8152
- "socials-group": "dds-Footer-module__socials-group",
8153
- "socials-list": "dds-Footer-module__socials-list"
8154
- };
8155
- //#endregion
8156
8160
  //#region src/components/Footer/Footer.tsx
8157
- const Footer = ({ className, ...rest }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Contrast, {
8161
+ const Footer = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Contrast, {
8158
8162
  as: "footer",
8159
- className: cn(className, Footer_module_default.container),
8160
- ...rest
8163
+ paddingBlock: {
8164
+ xs: "x3 x6",
8165
+ sm: "x3 x6",
8166
+ md: "x4",
8167
+ lg: "x4",
8168
+ xl: "x4"
8169
+ },
8170
+ ...props
8161
8171
  });
8162
8172
  //#endregion
8163
8173
  //#region src/components/Footer/FooterListHeader.tsx
@@ -8171,11 +8181,11 @@ const FooterListHeader = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(H
8171
8181
  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";
8172
8182
  //#endregion
8173
8183
  //#region src/components/Footer/FooterLogo.tsx
8174
- const FooterLogo = ({ hideBreakpoint, ...rest }) => {
8184
+ const FooterLogo = ({ children, hideBreakpoint, ...rest }) => {
8175
8185
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, {
8176
8186
  hideBelow: hideBreakpoint ? hideBreakpoint : void 0,
8177
8187
  width: "fit-content",
8178
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
8188
+ children: children ? children : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
8179
8189
  height: 80,
8180
8190
  width: 151,
8181
8191
  alt: "norges domstoler",
@@ -8186,33 +8196,35 @@ const FooterLogo = ({ hideBreakpoint, ...rest }) => {
8186
8196
  };
8187
8197
  //#endregion
8188
8198
  //#region src/components/Footer/FooterList.tsx
8189
- const FooterList = ({ className, ...rest }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StylelessList, {
8190
- className: cn(className, Footer_module_default.list),
8191
- ...rest
8199
+ const FooterList = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VStack, {
8200
+ as: StylelessList,
8201
+ gap: "x1.5",
8202
+ ...props
8192
8203
  });
8193
8204
  //#endregion
8194
8205
  //#region src/components/Footer/FooterSocialsList.tsx
8195
- const FooterSocialsList = ({ className, ...rest }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StylelessList, {
8196
- className: cn(className, Footer_module_default["socials-list"]),
8197
- ...rest
8206
+ const FooterSocialsList = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(HStack, {
8207
+ as: StylelessList,
8208
+ gap: "x1.5",
8209
+ ...props
8198
8210
  });
8199
8211
  //#endregion
8200
8212
  //#region src/components/Footer/FooterSocialsGroup.tsx
8201
- const FooterSocialsGroup = ({ className, ...rest }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
8202
- className: cn(className, Footer_module_default["socials-group"]),
8203
- ...rest
8213
+ const FooterSocialsGroup = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VStack, {
8214
+ gap: "x1",
8215
+ ...props
8204
8216
  });
8205
8217
  //#endregion
8206
8218
  //#region src/components/Footer/FooterListGroup.tsx
8207
- const FooterListGroup = ({ className, ...rest }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
8208
- className: cn(className, Footer_module_default["list-group"]),
8209
- ...rest
8219
+ const FooterListGroup = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VStack, {
8220
+ gap: "x1.5",
8221
+ ...props
8210
8222
  });
8211
8223
  //#endregion
8212
8224
  //#region src/components/Footer/FooterLeft.tsx
8213
- const FooterLeft = ({ className, ...rest }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
8214
- className: cn(className, Footer_module_default["left"]),
8215
- ...rest
8225
+ const FooterLeft = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VStack, {
8226
+ gap: "x4",
8227
+ ...props
8216
8228
  });
8217
8229
  //#endregion
8218
8230
  //#region src/components/FormSummary/FormSummary.tsx
@@ -8315,9 +8327,7 @@ var GlobalMessage_module_default = {
8315
8327
  "container--info": "dds-GlobalMessage-module__container--info",
8316
8328
  "icon": "dds-GlobalMessage-module__icon",
8317
8329
  "container--danger": "dds-GlobalMessage-module__container--danger",
8318
- "container--warning": "dds-GlobalMessage-module__container--warning",
8319
- "content": "dds-GlobalMessage-module__content",
8320
- "content--closable": "dds-GlobalMessage-module__content--closable"
8330
+ "container--warning": "dds-GlobalMessage-module__container--warning"
8321
8331
  };
8322
8332
  const icons$2 = {
8323
8333
  info: InfoIcon,
@@ -8327,10 +8337,16 @@ const icons$2 = {
8327
8337
  const GlobalMessage = ({ purpose = "info", closable, onClose, children, id, className, style, htmlProps, ...rest }) => {
8328
8338
  const { t } = useTranslation();
8329
8339
  const [isClosed, setClosed] = (0, react.useState)(false);
8330
- return !isClosed ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8340
+ return !isClosed ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(HStack, {
8331
8341
  ...getBaseHTMLProps(id, cn(className, GlobalMessage_module_default.container, GlobalMessage_module_default[`container--${purpose}`], typographyStyles_module_default["body-short-medium"]), style, htmlProps, rest),
8332
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8333
- className: cn(GlobalMessage_module_default.content, closable && GlobalMessage_module_default["content--closable"]),
8342
+ alignItems: "center",
8343
+ justifyContent: "space-between",
8344
+ width: "100%",
8345
+ padding: "0 x1",
8346
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(HStack, {
8347
+ alignItems: "center",
8348
+ paddingBlock: "x0.75",
8349
+ paddingInline: closable ? "x0 x0.75" : " x0 x1.5",
8334
8350
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
8335
8351
  icon: icons$2[purpose],
8336
8352
  iconSize: "component",
@@ -9334,7 +9350,7 @@ const getCustomStyles = (size, hasError, isReadOnly) => ({
9334
9350
  zIndex: 100,
9335
9351
  transition: "var(--dds-motion-surface)",
9336
9352
  border: "1px solid var(--dds-color-border-default)",
9337
- backgroundColor: "var(--dds-color-surface-default)",
9353
+ backgroundColor: "var(--dds-color-surface-paper-default)",
9338
9354
  borderRadius: "var(--dds-border-radius-surface)",
9339
9355
  marginBlock: "var(--dds-spacing-x0-25)"
9340
9356
  }),
@@ -9364,11 +9380,15 @@ const getCustomStyles = (size, hasError, isReadOnly) => ({
9364
9380
  gap: "var(--dds-spacing-x0-25)",
9365
9381
  padding: "var(--dds-spacing-x0-75)",
9366
9382
  borderRadius: "var(--dds-border-radius-surface)",
9367
- backgroundColor: "var(--dds-color-surface-default)",
9383
+ backgroundColor: "inherit",
9368
9384
  ...typography.option[size],
9369
9385
  color: "var(--dds-color-text-default)",
9370
9386
  "@media (prefers-reduced-motion: no-preference)": { transition: "color var(--dds-motion-micro-state), background-color var(--dds-motion-micro-state)" },
9371
- ...state.isSelected && { backgroundColor: "var(--dds-color-surface-selected-default)" },
9387
+ "&:active": { backgroundColor: "inherit" },
9388
+ ...state.isSelected && {
9389
+ backgroundColor: "var(--dds-color-surface-selected-default)",
9390
+ "&:active": { backgroundColor: "var(--dds-color-surface-selected-default)" }
9391
+ },
9372
9392
  ...state.isFocused && {
9373
9393
  outline: "var(--dds-color-border-action-hover) 2px solid",
9374
9394
  outlineOffset: "calc(var(--dds-spacing-x0-125) * -1)"
@@ -11383,25 +11403,20 @@ const texts$7 = createTexts({
11383
11403
  }
11384
11404
  });
11385
11405
  //#endregion
11386
- //#region src/components/Popover/Popover.module.css
11387
- var Popover_module_default = {
11388
- "container": "dds-Popover-module__container",
11389
- "content--closable--no-header": "dds-Popover-module__content--closable--no-header",
11390
- "header": "dds-Popover-module__header",
11391
- "close-button": "dds-Popover-module__close-button"
11392
- };
11393
- //#endregion
11394
11406
  //#region src/components/Popover/Popover.context.tsx
11395
11407
  const PopoverContext = (0, react.createContext)({});
11396
11408
  const usePopoverContext = () => (0, react.useContext)(PopoverContext);
11397
11409
  //#endregion
11410
+ //#region src/components/Popover/Popover.module.css
11411
+ var Popover_module_default = { "container": "dds-Popover-module__container" };
11412
+ //#endregion
11398
11413
  //#region src/components/Popover/Popover.tsx
11399
11414
  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 }) => {
11400
11415
  const { refs, styles: positionStyles, isPositioned: localIsPositioned } = useFloatPosition(null, {
11401
11416
  offset,
11402
11417
  placement
11403
11418
  });
11404
- const { maxHeight, maxWidth, minHeight, minWidth, height, width } = sizeProps;
11419
+ const { maxHeight, maxWidth, minHeight, minWidth, height, width = "fit-content" } = sizeProps;
11405
11420
  const context = usePopoverContext();
11406
11421
  const themeContext = (0, react.useContext)(ThemeContext);
11407
11422
  const portalTarget = parentElement ?? themeContext?.el;
@@ -11461,29 +11476,34 @@ const Popover = ({ id, header, withCloseButton = true, onBlur, children, placeme
11461
11476
  width,
11462
11477
  maxWidth,
11463
11478
  minWidth,
11479
+ position: "absolute",
11480
+ padding: "x0.75 x1 x1.5 x1",
11464
11481
  role: "dialog",
11465
11482
  elevation: "large",
11466
11483
  border: "border-subtle",
11467
11484
  children: [
11468
- header && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11469
- className: Popover_module_default.header,
11485
+ header && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, {
11486
+ marginInline: "0 x2",
11470
11487
  children: typeof header === "string" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Heading, {
11471
11488
  level: 2,
11472
11489
  typographyType: "heading-medium",
11473
11490
  children: header
11474
11491
  }) : header
11475
11492
  }),
11476
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11477
- className: !hasTitle && withCloseButton ? Popover_module_default["content--closable--no-header"] : "",
11493
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, {
11494
+ marginBlock: !hasTitle && withCloseButton ? "x2 0" : "0",
11478
11495
  children
11479
11496
  }),
11480
- withCloseButton && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
11497
+ withCloseButton && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, {
11498
+ as: Button,
11481
11499
  icon: CloseIcon,
11482
11500
  purpose: "tertiary",
11483
11501
  size: "small",
11484
11502
  onClick: onClose,
11485
11503
  "aria-label": t(commonTexts.close),
11486
- className: Popover_module_default["close-button"]
11504
+ position: "absolute",
11505
+ top: "x0.25",
11506
+ right: "x0.25"
11487
11507
  })
11488
11508
  ]
11489
11509
  });