@norges-domstoler/dds-components 21.12.0 → 21.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -706,6 +706,7 @@ var BACKGROUNDS = [
706
706
  "surface-info-strong",
707
707
  "surface-paper-default",
708
708
  "surface-notification",
709
+ "surface-field-disabled",
709
710
  "brand-primary-default",
710
711
  "brand-primary-subtle",
711
712
  "brand-primary-medium",
@@ -773,6 +774,8 @@ var readOnlyKeyDownHandler = (type, readOnly, onKeyDown) => {
773
774
  evt.preventDefault();
774
775
  } else if (type === "selectionControl" && evt.key === " ") {
775
776
  evt.preventDefault();
777
+ } else if (type === "file" && (evt.key === " " || evt.key === "Enter")) {
778
+ evt.preventDefault();
776
779
  }
777
780
  } else onKeyDown == null ? void 0 : onKeyDown(evt);
778
781
  };
@@ -3263,8 +3266,8 @@ function useTranslation() {
3263
3266
  const t = (text) => text[lang];
3264
3267
  return { t, lang };
3265
3268
  }
3266
- function createTexts(texts26) {
3267
- return texts26;
3269
+ function createTexts(texts27) {
3270
+ return texts27;
3268
3271
  }
3269
3272
 
3270
3273
  // src/DdsProvider/DdsProvider.tsx
@@ -5113,34 +5116,38 @@ var Label2 = ({
5113
5116
  }
5114
5117
  );
5115
5118
  };
5116
- var GroupLabel = ({
5119
+ var renderGroupLabel = ({
5117
5120
  id,
5118
- showRequiredMarker,
5121
+ showRequiredStyling,
5119
5122
  readOnly,
5120
- children
5123
+ label
5121
5124
  }) => {
5122
- return /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(
5123
- Typography,
5124
- {
5125
- as: "span",
5126
- typographyType: "labelMedium",
5127
- id,
5128
- className: readOnly ? Label_default["read-only"] : void 0,
5129
- children: [
5130
- readOnly && /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
5131
- Icon,
5132
- {
5133
- icon: LockIcon,
5134
- className: Label_default["read-only__icon"],
5135
- iconSize: "small"
5136
- }
5137
- ),
5138
- children,
5139
- " ",
5140
- showRequiredMarker && /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(RequiredMarker, {})
5141
- ]
5142
- }
5143
- );
5125
+ const hasLabel = !!label;
5126
+ if (hasLabel)
5127
+ return /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(
5128
+ Typography,
5129
+ {
5130
+ as: "span",
5131
+ typographyType: "labelMedium",
5132
+ id,
5133
+ className: readOnly ? Label_default["read-only"] : void 0,
5134
+ withMargins: true,
5135
+ children: [
5136
+ readOnly && /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
5137
+ Icon,
5138
+ {
5139
+ icon: LockIcon,
5140
+ className: Label_default["read-only__icon"],
5141
+ iconSize: "small"
5142
+ }
5143
+ ),
5144
+ label,
5145
+ " ",
5146
+ showRequiredStyling && /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(RequiredMarker, {})
5147
+ ]
5148
+ }
5149
+ );
5150
+ else return null;
5144
5151
  };
5145
5152
 
5146
5153
  // src/components/SelectionControl/SelectionControl.utils.tsx
@@ -5318,7 +5325,7 @@ var CheckboxGroup = (props) => {
5318
5325
  const generatedId = (0, import_react28.useId)();
5319
5326
  const uniqueGroupId = groupId != null ? groupId : `${generatedId}-checkboxGroup`;
5320
5327
  const hasErrorMessage = !!errorMessage;
5321
- const showRequiredMarker = required || convertBooleanishToBoolean(ariaRequired);
5328
+ const showRequiredStyling = required || convertBooleanishToBoolean(ariaRequired);
5322
5329
  const errorMessageId = derivativeIdGenerator(uniqueGroupId, "errorMessage");
5323
5330
  const tipId = derivativeIdGenerator(uniqueGroupId, "tip");
5324
5331
  const contextProps = {
@@ -5339,15 +5346,12 @@ var CheckboxGroup = (props) => {
5339
5346
  rest
5340
5347
  ),
5341
5348
  children: [
5342
- label !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
5343
- GroupLabel,
5344
- {
5345
- id: uniqueGroupId,
5346
- readOnly,
5347
- showRequiredMarker,
5348
- children: label
5349
- }
5350
- ) : null,
5349
+ renderGroupLabel({
5350
+ label,
5351
+ id: uniqueGroupId,
5352
+ readOnly,
5353
+ showRequiredStyling
5354
+ }),
5351
5355
  renderInputMessage(tip, tipId),
5352
5356
  /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(CheckboxGroupContext, { value: { ...contextProps }, children: /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
5353
5357
  "div",
@@ -5510,7 +5514,7 @@ var RadioButtonGroup = ({
5510
5514
  onChange
5511
5515
  });
5512
5516
  const hasErrorMessage = !!errorMessage;
5513
- const showRequiredMarker = required || convertBooleanishToBoolean(ariaRequired);
5517
+ const showRequiredStyling = required || convertBooleanishToBoolean(ariaRequired);
5514
5518
  const tipId = tip && `${uniqueGroupId}-tip`;
5515
5519
  const errorMessageId = errorMessage && `${uniqueGroupId}-errorMessage`;
5516
5520
  const contextProps = {
@@ -5534,15 +5538,12 @@ var RadioButtonGroup = ({
5534
5538
  rest
5535
5539
  ),
5536
5540
  children: [
5537
- label !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
5538
- GroupLabel,
5539
- {
5540
- id: uniqueGroupId,
5541
- readOnly,
5542
- showRequiredMarker,
5543
- children: label
5544
- }
5545
- ) : null,
5541
+ renderGroupLabel({
5542
+ label,
5543
+ id: uniqueGroupId,
5544
+ readOnly,
5545
+ showRequiredStyling
5546
+ }),
5546
5547
  renderInputMessage(tip, tipId),
5547
5548
  /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(RadioButtonGroupContext, { value: { ...contextProps }, children: /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
5548
5549
  "div",
@@ -5988,7 +5989,12 @@ var DateInput_default = {
5988
5989
  };
5989
5990
 
5990
5991
  // src/components/date-inputs/DatePicker/constants.ts
5991
- var locale = "no-NO";
5992
+ var LOCALE = {
5993
+ nb: "nb-NO",
5994
+ no: "no-NO",
5995
+ nn: "nn-NO",
5996
+ en: "en-GB"
5997
+ };
5992
5998
  var timezone = "Europe/Oslo";
5993
5999
 
5994
6000
  // src/components/date-inputs/DatePicker/Calendar/CalendarCell.tsx
@@ -6223,12 +6229,12 @@ var CalendarPopoverContent = ({
6223
6229
  var import_jsx_runtime226 = require("react/jsx-runtime");
6224
6230
  function CalendarGrid({ state, ...props }) {
6225
6231
  const { t } = useTranslation();
6226
- const { locale: locale2 } = (0, import_i18n8.useLocale)();
6232
+ const { locale } = (0, import_i18n8.useLocale)();
6227
6233
  const {
6228
6234
  gridProps: { onKeyDown, ...gridProps },
6229
6235
  headerProps
6230
6236
  } = (0, import_calendar2.useCalendarGrid)(props, state);
6231
- const weeksInMonth = (0, import_date3.getWeeksInMonth)(state.visibleRange.start, locale2);
6237
+ const weeksInMonth = (0, import_date3.getWeeksInMonth)(state.visibleRange.start, locale);
6232
6238
  const weekDays = [
6233
6239
  { short: t(texts5.mo), full: t(texts5.monday) },
6234
6240
  { short: t(texts5.tu), full: t(texts5.tuesday) },
@@ -6410,11 +6416,11 @@ function createCalendar(identifier) {
6410
6416
  }
6411
6417
  function Calendar(props) {
6412
6418
  const { t } = useTranslation();
6413
- const { locale: locale2 } = (0, import_i18n10.useLocale)();
6419
+ const { locale } = (0, import_i18n10.useLocale)();
6414
6420
  const state = (0, import_calendar4.useCalendarState)({
6415
6421
  ...props,
6416
6422
  createCalendar,
6417
- locale: locale2
6423
+ locale
6418
6424
  });
6419
6425
  const {
6420
6426
  calendarProps,
@@ -6554,6 +6560,39 @@ function CalendarButton({
6554
6560
  );
6555
6561
  }
6556
6562
 
6563
+ // src/components/date-inputs/DatePicker/DateField/DateField.utils.tsx
6564
+ function formatDateFieldSegments(segments) {
6565
+ const daySegment = segments.find((segment) => segment.type === "day");
6566
+ const monthSegment = segments.find((segment) => segment.type === "month");
6567
+ const yearSegment = segments.find((segment) => segment.type === "year");
6568
+ const separatorSegment = segments.find((segment) => segment.type === "literal");
6569
+ if (!daySegment || !monthSegment || !yearSegment || !separatorSegment) {
6570
+ throw new Error("Invalid date field segments");
6571
+ }
6572
+ const formattedDaySegment = {
6573
+ ...daySegment,
6574
+ text: daySegment.text.padStart(2, "0"),
6575
+ placeholder: "dd"
6576
+ };
6577
+ const formattedMonthSegment = {
6578
+ ...monthSegment,
6579
+ text: monthSegment.text.padStart(2, "0"),
6580
+ placeholder: "mm"
6581
+ };
6582
+ const formattedYearSegment = {
6583
+ ...yearSegment,
6584
+ placeholder: "\xE5\xE5\xE5\xE5"
6585
+ };
6586
+ const formattedSeparatorSegment = { ...separatorSegment, text: "." };
6587
+ return [
6588
+ formattedDaySegment,
6589
+ formattedSeparatorSegment,
6590
+ formattedMonthSegment,
6591
+ formattedSeparatorSegment,
6592
+ formattedYearSegment
6593
+ ];
6594
+ }
6595
+
6557
6596
  // src/components/date-inputs/DatePicker/DateField/DateSegment.tsx
6558
6597
  var import_datepicker = require("@react-aria/datepicker");
6559
6598
  var import_react43 = require("react");
@@ -6568,7 +6607,6 @@ function DateSegment({
6568
6607
  state,
6569
6608
  componentSize
6570
6609
  }) {
6571
- var _a;
6572
6610
  const ref = (0, import_react43.useRef)(null);
6573
6611
  const { segmentProps } = (0, import_datepicker.useDateSegment)(segment, state, ref);
6574
6612
  return /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(
@@ -6598,7 +6636,7 @@ function DateSegment({
6598
6636
  children: segment.placeholder
6599
6637
  }
6600
6638
  ),
6601
- segment.isPlaceholder ? "" : segment.text.padStart(String((_a = segment.maxValue) != null ? _a : "").length, "0")
6639
+ segment.isPlaceholder ? "" : segment.text
6602
6640
  ]
6603
6641
  }
6604
6642
  );
@@ -6639,7 +6677,6 @@ var Input_default = {
6639
6677
  "input--small": "Input_input--small",
6640
6678
  "input--xsmall": "Input_input--xsmall",
6641
6679
  "input--with-affix": "Input_input--with-affix",
6642
- label: "Input_label",
6643
6680
  "input-group__absolute-element": "Input_input-group__absolute-element"
6644
6681
  };
6645
6682
 
@@ -6693,8 +6730,18 @@ function getInputWidth(width, defaultW) {
6693
6730
  return width != null ? width : fallback;
6694
6731
  }
6695
6732
 
6696
- // src/components/date-inputs/common/DateInput.tsx
6733
+ // src/components/Typography/Label/Label.utils.tsx
6697
6734
  var import_jsx_runtime233 = require("react/jsx-runtime");
6735
+ function renderLabel(props) {
6736
+ const { label, ...rest } = props;
6737
+ const hasLabel = !!label;
6738
+ if (hasLabel)
6739
+ return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Label, { ...rest, withMargins: true, children: label });
6740
+ return null;
6741
+ }
6742
+
6743
+ // src/components/date-inputs/common/DateInput.tsx
6744
+ var import_jsx_runtime234 = require("react/jsx-runtime");
6698
6745
  function DateInput({
6699
6746
  errorMessage,
6700
6747
  tip,
@@ -6720,27 +6767,22 @@ function DateInput({
6720
6767
  var _a;
6721
6768
  const hasErrorMessage = !!errorMessage;
6722
6769
  const hasTip = !!tip;
6723
- const hasLabel = props.label != null;
6724
6770
  const hasMessage = hasErrorMessage || hasTip;
6725
6771
  const { isOpen } = (0, import_react44.useContext)(CalendarPopoverContext);
6726
- return /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
6772
+ return /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(
6727
6773
  "div",
6728
6774
  {
6729
6775
  ...groupProps,
6730
6776
  className: cn(className, Input_default.container),
6731
6777
  ref,
6732
6778
  children: [
6733
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
6734
- Label,
6735
- {
6736
- ...labelProps,
6737
- showRequiredStyling: required,
6738
- className: Input_default.label,
6739
- readOnly,
6740
- children: props.label
6741
- }
6742
- ),
6743
- /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
6779
+ renderLabel({
6780
+ ...labelProps,
6781
+ label: props.label,
6782
+ showRequiredStyling: required,
6783
+ readOnly
6784
+ }),
6785
+ /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(
6744
6786
  Box,
6745
6787
  {
6746
6788
  style,
@@ -6763,7 +6805,7 @@ function DateInput({
6763
6805
  ),
6764
6806
  children: [
6765
6807
  button,
6766
- /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
6808
+ /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
6767
6809
  "div",
6768
6810
  {
6769
6811
  ...fieldProps,
@@ -6776,7 +6818,7 @@ function DateInput({
6776
6818
  ]
6777
6819
  }
6778
6820
  ),
6779
- hasMessage && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
6821
+ hasMessage && /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
6780
6822
  InputMessage,
6781
6823
  {
6782
6824
  messageType: hasErrorMessage ? "error" : "tip",
@@ -6790,7 +6832,7 @@ function DateInput({
6790
6832
  DateInput.displayName = "DateInput";
6791
6833
 
6792
6834
  // src/components/date-inputs/DatePicker/DateField/DateField.tsx
6793
- var import_jsx_runtime234 = require("react/jsx-runtime");
6835
+ var import_jsx_runtime235 = require("react/jsx-runtime");
6794
6836
  function DateField({
6795
6837
  componentSize = "medium",
6796
6838
  buttonProps,
@@ -6799,11 +6841,11 @@ function DateField({
6799
6841
  clearable,
6800
6842
  ...props
6801
6843
  }) {
6802
- const { locale: locale2 } = (0, import_i18n12.useLocale)();
6844
+ const { locale } = (0, import_i18n12.useLocale)();
6803
6845
  const { t } = useTranslation();
6804
6846
  const state = (0, import_datepicker3.useDateFieldState)({
6805
6847
  ...props,
6806
- locale: locale2,
6848
+ locale,
6807
6849
  createCalendar: import_date5.createCalendar
6808
6850
  });
6809
6851
  const internalRef = (0, import_react45.useRef)(null);
@@ -6818,7 +6860,8 @@ function DateField({
6818
6860
  const clearDate = () => {
6819
6861
  state.setValue(null);
6820
6862
  };
6821
- return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
6863
+ const formattedSegments = formatDateFieldSegments(state.segments);
6864
+ return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
6822
6865
  DateInput,
6823
6866
  {
6824
6867
  ...props,
@@ -6831,7 +6874,7 @@ function DateField({
6831
6874
  ref,
6832
6875
  internalRef,
6833
6876
  readOnly: props.isReadOnly,
6834
- prefix: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
6877
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
6835
6878
  CalendarButton,
6836
6879
  {
6837
6880
  componentSize,
@@ -6840,7 +6883,7 @@ function DateField({
6840
6883
  isDisabled: disabled || props.isReadOnly
6841
6884
  }
6842
6885
  ),
6843
- suffix: showClearButton && /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
6886
+ suffix: showClearButton && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
6844
6887
  ClearButton,
6845
6888
  {
6846
6889
  absolute: false,
@@ -6856,7 +6899,7 @@ function DateField({
6856
6899
  ),
6857
6900
  labelProps,
6858
6901
  fieldProps,
6859
- children: state.segments.map((segment, i) => /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
6902
+ children: formattedSegments.map((segment, i) => /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
6860
6903
  DateSegment,
6861
6904
  {
6862
6905
  "aria-readonly": props.isReadOnly,
@@ -6901,7 +6944,7 @@ function createDOMRef(ref) {
6901
6944
  }
6902
6945
 
6903
6946
  // src/components/date-inputs/DatePicker/DatePicker.tsx
6904
- var import_jsx_runtime235 = require("react/jsx-runtime");
6947
+ var import_jsx_runtime236 = require("react/jsx-runtime");
6905
6948
  var refIsFocusable = (ref) => {
6906
6949
  return typeof ref === "object" && ref !== null && "focus" in ref;
6907
6950
  };
@@ -6917,6 +6960,10 @@ function DatePicker({
6917
6960
  ref,
6918
6961
  ...props
6919
6962
  }) {
6963
+ const lang = useLanguage();
6964
+ if (!lang) {
6965
+ throw new Error("DatePicker must be used within a DdsProvider");
6966
+ }
6920
6967
  const state = (0, import_datepicker5.useDatePickerState)(props);
6921
6968
  const domRef = useFocusManagerRef(ref && refIsFocusable(ref) ? ref : null);
6922
6969
  const internalRef = (0, import_react47.useRef)(null);
@@ -6926,14 +6973,14 @@ function DatePicker({
6926
6973
  state,
6927
6974
  internalRef
6928
6975
  );
6929
- return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(import_i18n14.I18nProvider, { locale, children: /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(
6976
+ return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(import_i18n14.I18nProvider, { locale: LOCALE[lang], children: /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(
6930
6977
  CalendarPopover,
6931
6978
  {
6932
6979
  isOpen: state.isOpen,
6933
6980
  onClose: state.close,
6934
6981
  showWeekNumbers,
6935
6982
  children: [
6936
- /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(CalendarPopoverAnchor, { children: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
6983
+ /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(CalendarPopoverAnchor, { children: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
6937
6984
  DateField,
6938
6985
  {
6939
6986
  ...fieldProps,
@@ -6949,7 +6996,7 @@ function DatePicker({
6949
6996
  clearable
6950
6997
  }
6951
6998
  ) }),
6952
- /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(CalendarPopoverContent, { smallScreenBreakpoint, children: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Calendar, { ...calendarProps }) })
6999
+ /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(CalendarPopoverContent, { smallScreenBreakpoint, children: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Calendar, { ...calendarProps }) })
6953
7000
  ]
6954
7001
  }
6955
7002
  ) });
@@ -6960,17 +7007,21 @@ DatePicker.displayName = "DatePicker";
6960
7007
  var import_datepicker6 = require("@react-aria/datepicker");
6961
7008
  var import_datepicker7 = require("@react-stately/datepicker");
6962
7009
  var import_react48 = require("react");
6963
- var import_jsx_runtime236 = require("react/jsx-runtime");
7010
+ var import_jsx_runtime237 = require("react/jsx-runtime");
6964
7011
  function TimePicker({
6965
7012
  componentSize = "medium",
6966
7013
  width,
6967
7014
  ref,
6968
7015
  ...props
6969
7016
  }) {
7017
+ const lang = useLanguage();
7018
+ if (!lang) {
7019
+ throw new Error("DatePicker must be used within a DdsProvider");
7020
+ }
6970
7021
  const internalRef = (0, import_react48.useRef)(null);
6971
7022
  const state = (0, import_datepicker7.useTimeFieldState)({
6972
7023
  ...props,
6973
- locale
7024
+ locale: LOCALE[lang]
6974
7025
  });
6975
7026
  const { labelProps, fieldProps } = (0, import_datepicker6.useTimeField)(
6976
7027
  { ...props, hideTimeZone: true, granularity: "hour" },
@@ -6979,7 +7030,7 @@ function TimePicker({
6979
7030
  );
6980
7031
  const iconSize = componentSize === "xsmall" ? "small" : "medium";
6981
7032
  const disabled = props.isDisabled || !!fieldProps["aria-disabled"];
6982
- return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
7033
+ return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
6983
7034
  DateInput,
6984
7035
  {
6985
7036
  ...props,
@@ -6992,7 +7043,7 @@ function TimePicker({
6992
7043
  readOnly: props.isReadOnly,
6993
7044
  labelProps,
6994
7045
  fieldProps,
6995
- prefix: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
7046
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
6996
7047
  Icon,
6997
7048
  {
6998
7049
  icon: TimeIcon,
@@ -7004,7 +7055,7 @@ function TimePicker({
7004
7055
  )
7005
7056
  }
7006
7057
  ),
7007
- children: state.segments.map((segment, i) => /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
7058
+ children: state.segments.map((segment, i) => /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
7008
7059
  DateSegment,
7009
7060
  {
7010
7061
  componentSize,
@@ -7059,7 +7110,7 @@ var DescriptionList_default = {
7059
7110
  };
7060
7111
 
7061
7112
  // src/components/DescriptionList/DescriptionList.tsx
7062
- var import_jsx_runtime237 = require("react/jsx-runtime");
7113
+ var import_jsx_runtime238 = require("react/jsx-runtime");
7063
7114
  var DescriptionList = ({
7064
7115
  appearance = "default",
7065
7116
  direction = "column",
@@ -7068,7 +7119,7 @@ var DescriptionList = ({
7068
7119
  className,
7069
7120
  htmlProps,
7070
7121
  ...rest
7071
- }) => /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
7122
+ }) => /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
7072
7123
  VStack,
7073
7124
  {
7074
7125
  as: "dl",
@@ -7093,14 +7144,14 @@ var DescriptionList = ({
7093
7144
  DescriptionList.displayName = "DescriptionList";
7094
7145
 
7095
7146
  // src/components/DescriptionList/DescriptionListTerm.tsx
7096
- var import_jsx_runtime238 = require("react/jsx-runtime");
7147
+ var import_jsx_runtime239 = require("react/jsx-runtime");
7097
7148
  var DescriptionListTerm = (props) => {
7098
- return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)("dt", { ...props });
7149
+ return /* @__PURE__ */ (0, import_jsx_runtime239.jsx)("dt", { ...props });
7099
7150
  };
7100
7151
  DescriptionListTerm.displayName = "DescriptionListTerm";
7101
7152
 
7102
7153
  // src/components/DescriptionList/DescriptionListDesc.tsx
7103
- var import_jsx_runtime239 = require("react/jsx-runtime");
7154
+ var import_jsx_runtime240 = require("react/jsx-runtime");
7104
7155
  var DescriptionListDesc = ({
7105
7156
  children,
7106
7157
  icon,
@@ -7108,15 +7159,15 @@ var DescriptionListDesc = ({
7108
7159
  className,
7109
7160
  htmlProps,
7110
7161
  ...rest
7111
- }) => /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)("dd", { ...getBaseHTMLProps(id, cn(className, DescriptionList_default.desc), htmlProps, rest), children: [
7112
- icon && /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Icon, { icon }),
7162
+ }) => /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)("dd", { ...getBaseHTMLProps(id, cn(className, DescriptionList_default.desc), htmlProps, rest), children: [
7163
+ icon && /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(Icon, { icon }),
7113
7164
  " ",
7114
7165
  children
7115
7166
  ] });
7116
7167
  DescriptionListDesc.displayName = "DescriptionListDesc";
7117
7168
 
7118
7169
  // src/components/DescriptionList/DescriptionListGroup.tsx
7119
- var import_jsx_runtime240 = require("react/jsx-runtime");
7170
+ var import_jsx_runtime241 = require("react/jsx-runtime");
7120
7171
  var DescriptionListGroup = ({
7121
7172
  children,
7122
7173
  margin,
@@ -7126,7 +7177,7 @@ var DescriptionListGroup = ({
7126
7177
  className,
7127
7178
  htmlProps,
7128
7179
  ...rest
7129
- }) => /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
7180
+ }) => /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
7130
7181
  "div",
7131
7182
  {
7132
7183
  ...getBaseHTMLProps(id, cn(className, DescriptionList_default.group), htmlProps, rest),
@@ -7144,10 +7195,10 @@ var DetailList_default = {
7144
7195
  "list--striped": "DetailList_list--striped",
7145
7196
  "list--striped-with-bp": "DetailList_list--striped-with-bp",
7146
7197
  "list--small": "DetailList_list--small",
7147
- cell: "DetailList_cell",
7148
7198
  "list--medium": "DetailList_list--medium",
7149
7199
  "list--large": "DetailList_list--large",
7150
7200
  column: "DetailList_column",
7201
+ cell: "DetailList_cell",
7151
7202
  term: "DetailList_term"
7152
7203
  };
7153
7204
 
@@ -7157,7 +7208,7 @@ var DetailListContext = (0, import_react49.createContext)({});
7157
7208
  var useDetailListContext = () => (0, import_react49.useContext)(DetailListContext);
7158
7209
 
7159
7210
  // src/components/DetailList/DetailList.tsx
7160
- var import_jsx_runtime241 = require("react/jsx-runtime");
7211
+ var import_jsx_runtime242 = require("react/jsx-runtime");
7161
7212
  var DetailList = ({
7162
7213
  id,
7163
7214
  className,
@@ -7167,7 +7218,7 @@ var DetailList = ({
7167
7218
  size: size2 = "medium",
7168
7219
  smallScreenBreakpoint,
7169
7220
  ...rest
7170
- }) => /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(DetailListContext, { value: { smallScreenBreakpoint }, children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
7221
+ }) => /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(DetailListContext, { value: { smallScreenBreakpoint }, children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
7171
7222
  "dl",
7172
7223
  {
7173
7224
  ...getBaseHTMLProps(
@@ -7188,17 +7239,17 @@ var DetailList = ({
7188
7239
  DetailList.displayName = "DetailList";
7189
7240
 
7190
7241
  // src/components/DetailList/DetailListDesc.tsx
7191
- var import_jsx_runtime242 = require("react/jsx-runtime");
7192
- var DetailListDesc = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime242.jsx)("dd", { className: cn(className, DetailList_default.cell), ...rest });
7242
+ var import_jsx_runtime243 = require("react/jsx-runtime");
7243
+ var DetailListDesc = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime243.jsx)("dd", { className: cn(className, DetailList_default.cell), ...rest });
7193
7244
  DetailListDesc.displayName = "DetailListDesc";
7194
7245
 
7195
7246
  // src/components/DetailList/DetailListRow.tsx
7196
- var import_jsx_runtime243 = require("react/jsx-runtime");
7247
+ var import_jsx_runtime244 = require("react/jsx-runtime");
7197
7248
  var DetailListRow = ({ className, ...rest }) => {
7198
7249
  const { smallScreenBreakpoint: bp } = useDetailListContext();
7199
7250
  const hasBp = !!bp;
7200
- return /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(import_jsx_runtime243.Fragment, { children: [
7201
- /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
7251
+ return /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(import_jsx_runtime244.Fragment, { children: [
7252
+ /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
7202
7253
  Box,
7203
7254
  {
7204
7255
  display: "table-row",
@@ -7207,7 +7258,7 @@ var DetailListRow = ({ className, ...rest }) => {
7207
7258
  ...rest
7208
7259
  }
7209
7260
  ),
7210
- hasBp && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
7261
+ hasBp && /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
7211
7262
  Box,
7212
7263
  {
7213
7264
  display: "flex",
@@ -7222,8 +7273,8 @@ var DetailListRow = ({ className, ...rest }) => {
7222
7273
  DetailListRow.displayName = "DetailListRow";
7223
7274
 
7224
7275
  // src/components/DetailList/DetailListTerm.tsx
7225
- var import_jsx_runtime244 = require("react/jsx-runtime");
7226
- var DetailListTerm = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime244.jsx)("dt", { className: cn(className, DetailList_default.cell, DetailList_default.term), ...rest });
7276
+ var import_jsx_runtime245 = require("react/jsx-runtime");
7277
+ var DetailListTerm = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime245.jsx)("dt", { className: cn(className, DetailList_default.cell, DetailList_default.term), ...rest });
7227
7278
  DetailListTerm.displayName = "DetailListTerm";
7228
7279
 
7229
7280
  // src/components/Drawer/Drawer.tsx
@@ -7250,7 +7301,7 @@ var DrawerContext = (0, import_react50.createContext)({});
7250
7301
  var useDrawerContext = () => (0, import_react50.useContext)(DrawerContext);
7251
7302
 
7252
7303
  // src/components/Drawer/Drawer.tsx
7253
- var import_jsx_runtime245 = require("react/jsx-runtime");
7304
+ var import_jsx_runtime246 = require("react/jsx-runtime");
7254
7305
  var DRAWER_SIZES = createSizes("small", "medium", "large");
7255
7306
  var Drawer = ({
7256
7307
  children,
@@ -7313,7 +7364,7 @@ var Drawer = ({
7313
7364
  return "800px";
7314
7365
  }
7315
7366
  };
7316
- const drawer = /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(
7367
+ const drawer = /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(
7317
7368
  Paper,
7318
7369
  {
7319
7370
  ref: combinedRef,
@@ -7345,7 +7396,7 @@ var Drawer = ({
7345
7396
  elevation: 4,
7346
7397
  "aria-labelledby": headerId,
7347
7398
  children: [
7348
- /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(
7399
+ /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(
7349
7400
  HStack,
7350
7401
  {
7351
7402
  position: "sticky",
@@ -7355,8 +7406,8 @@ var Drawer = ({
7355
7406
  paddingInline: "var(--dds-drawer-content-container-padding)",
7356
7407
  className: Drawer_default["drawer-header"],
7357
7408
  children: [
7358
- hasHeader && /* @__PURE__ */ (0, import_jsx_runtime245.jsx)("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(Heading, { level: 2, typographyType: "headingLarge", children: header }) : header }),
7359
- /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
7409
+ hasHeader && /* @__PURE__ */ (0, import_jsx_runtime246.jsx)("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(Heading, { level: 2, typographyType: "headingLarge", children: header }) : header }),
7410
+ /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
7360
7411
  Button,
7361
7412
  {
7362
7413
  className: cn(Drawer_default["button--close"]),
@@ -7371,7 +7422,7 @@ var Drawer = ({
7371
7422
  ]
7372
7423
  }
7373
7424
  ),
7374
- /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
7425
+ /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
7375
7426
  VStack,
7376
7427
  {
7377
7428
  gap: "x1",
@@ -7383,7 +7434,7 @@ var Drawer = ({
7383
7434
  ]
7384
7435
  }
7385
7436
  );
7386
- const component = withBackdrop ? /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
7437
+ const component = withBackdrop ? /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
7387
7438
  Backdrop,
7388
7439
  {
7389
7440
  zIndex: "drawer",
@@ -7399,7 +7450,7 @@ Drawer.displayName = "Drawer";
7399
7450
 
7400
7451
  // src/components/Drawer/DrawerGroup.tsx
7401
7452
  var import_react52 = require("react");
7402
- var import_jsx_runtime246 = require("react/jsx-runtime");
7453
+ var import_jsx_runtime247 = require("react/jsx-runtime");
7403
7454
  var DrawerGroup = ({
7404
7455
  children,
7405
7456
  isInitiallyOpen,
@@ -7443,7 +7494,7 @@ var DrawerGroup = ({
7443
7494
  onClick: handleOpen
7444
7495
  }) : child);
7445
7496
  });
7446
- return /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
7497
+ return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
7447
7498
  DrawerContext,
7448
7499
  {
7449
7500
  value: {
@@ -7459,14 +7510,14 @@ var DrawerGroup = ({
7459
7510
  DrawerGroup.displayName = "DrawerGroup";
7460
7511
 
7461
7512
  // src/components/EmptyContent/EmptyContent.tsx
7462
- var import_jsx_runtime247 = require("react/jsx-runtime");
7513
+ var import_jsx_runtime248 = require("react/jsx-runtime");
7463
7514
  function EmptyContent({
7464
7515
  headerText,
7465
7516
  message,
7466
7517
  headerHeadingLevel = 2,
7467
7518
  ...rest
7468
7519
  }) {
7469
- return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
7520
+ return /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
7470
7521
  Paper,
7471
7522
  {
7472
7523
  display: "flex",
@@ -7479,9 +7530,9 @@ function EmptyContent({
7479
7530
  background: "surface-medium",
7480
7531
  borderRadius: "surface",
7481
7532
  ...rest,
7482
- children: /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(VStack, { maxWidth: "70ch", gap: "x1", textAlign: "center", children: [
7483
- headerText && /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Heading, { level: headerHeadingLevel, typographyType: "headingMedium", children: headerText }),
7484
- /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Paragraph, { color: "text-medium", children: message })
7533
+ children: /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(VStack, { maxWidth: "70ch", gap: "x1", textAlign: "center", children: [
7534
+ headerText && /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Heading, { level: headerHeadingLevel, typographyType: "headingMedium", children: headerText }),
7535
+ /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Paragraph, { color: "text-medium", children: message })
7485
7536
  ] })
7486
7537
  }
7487
7538
  );
@@ -7501,7 +7552,7 @@ var FavStar_default = {
7501
7552
  };
7502
7553
 
7503
7554
  // src/components/FavStar/FavStar.tsx
7504
- var import_jsx_runtime248 = require("react/jsx-runtime");
7555
+ var import_jsx_runtime249 = require("react/jsx-runtime");
7505
7556
  var FAVSTAR_SIZES = createSizes("medium", "large");
7506
7557
  var FavStar = ({
7507
7558
  id,
@@ -7527,7 +7578,7 @@ var FavStar = ({
7527
7578
  defaultValue: defaultChecked != null ? defaultChecked : false,
7528
7579
  onChange
7529
7580
  });
7530
- return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(
7581
+ return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
7531
7582
  "label",
7532
7583
  {
7533
7584
  className: cn(
@@ -7539,7 +7590,7 @@ var FavStar = ({
7539
7590
  style,
7540
7591
  htmlFor: id != null ? id : generatedId,
7541
7592
  children: [
7542
- /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
7593
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
7543
7594
  HiddenInput,
7544
7595
  {
7545
7596
  ...props,
@@ -7550,8 +7601,8 @@ var FavStar = ({
7550
7601
  "aria-label": (_a = props["aria-label"]) != null ? _a : t(texts8.favourite)
7551
7602
  }
7552
7603
  ),
7553
- /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
7554
- /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
7604
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
7605
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
7555
7606
  Icon,
7556
7607
  {
7557
7608
  iconSize: size2,
@@ -7604,13 +7655,13 @@ var CharCounter_default = {
7604
7655
  };
7605
7656
 
7606
7657
  // src/components/helpers/CharCounter/CharCounter.tsx
7607
- var import_jsx_runtime249 = require("react/jsx-runtime");
7658
+ var import_jsx_runtime250 = require("react/jsx-runtime");
7608
7659
  function CharCounter(props) {
7609
7660
  const { t } = useTranslation();
7610
7661
  const { current, max, id } = props;
7611
7662
  const generatedId = (0, import_react54.useId)();
7612
7663
  const uniqueId = id != null ? id : `${generatedId}-characterCounter`;
7613
- return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
7664
+ return /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
7614
7665
  Typography,
7615
7666
  {
7616
7667
  id: uniqueId,
@@ -7619,19 +7670,19 @@ function CharCounter(props) {
7619
7670
  typographyType: "bodyXsmall",
7620
7671
  color: "textSubtle",
7621
7672
  children: [
7622
- /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)("span", { "aria-hidden": true, children: [
7673
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)("span", { "aria-hidden": true, children: [
7623
7674
  current,
7624
7675
  "/",
7625
7676
  max
7626
7677
  ] }),
7627
- /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(VisuallyHidden, { children: t(texts9.charsWritten(current, max, max - current)) })
7678
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(VisuallyHidden, { children: t(texts9.charsWritten(current, max, max - current)) })
7628
7679
  ]
7629
7680
  }
7630
7681
  );
7631
7682
  }
7632
7683
  var renderCharCounter = (id, isShown, textLength, maxLength) => {
7633
7684
  if (!!maxLength && Number.isInteger(maxLength) && maxLength > 0 && isShown)
7634
- return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(CharCounter, { id, max: maxLength, current: textLength });
7685
+ return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(CharCounter, { id, max: maxLength, current: textLength });
7635
7686
  };
7636
7687
  var texts9 = createTexts({
7637
7688
  charsWritten: (current, max, remain) => ({
@@ -7643,7 +7694,7 @@ var texts9 = createTexts({
7643
7694
  });
7644
7695
 
7645
7696
  // src/components/TextArea/TextArea.tsx
7646
- var import_jsx_runtime250 = require("react/jsx-runtime");
7697
+ var import_jsx_runtime251 = require("react/jsx-runtime");
7647
7698
  var TextArea = ({
7648
7699
  id,
7649
7700
  value,
@@ -7684,7 +7735,6 @@ var TextArea = ({
7684
7735
  };
7685
7736
  const hasErrorMessage = !!errorMessage;
7686
7737
  const hasMessage = hasErrorMessage || !!tip;
7687
- const hasLabel = !!label;
7688
7738
  const tipId = derivativeIdGenerator(uniqueId, "tip");
7689
7739
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
7690
7740
  const characterCounterId = derivativeIdGenerator(
@@ -7693,18 +7743,9 @@ var TextArea = ({
7693
7743
  );
7694
7744
  const showRequiredStyling = required || !!ariaRequired;
7695
7745
  const inputWidth = getInputWidth(width);
7696
- return /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)("div", { className: cn(className, Input_default.container), style: { ...style }, children: [
7697
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
7698
- Label,
7699
- {
7700
- showRequiredStyling,
7701
- htmlFor: uniqueId,
7702
- className: Input_default.label,
7703
- readOnly,
7704
- children: label
7705
- }
7706
- ),
7707
- /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
7746
+ return /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)("div", { className: cn(className, Input_default.container), style: { ...style }, children: [
7747
+ renderLabel({ label, htmlFor: uniqueId, readOnly, showRequiredStyling }),
7748
+ /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
7708
7749
  Box,
7709
7750
  {
7710
7751
  as: "textarea",
@@ -7737,7 +7778,7 @@ var TextArea = ({
7737
7778
  ...rest
7738
7779
  }
7739
7780
  ),
7740
- /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
7781
+ /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(
7741
7782
  Box,
7742
7783
  {
7743
7784
  display: "flex",
@@ -7762,7 +7803,7 @@ TextArea.displayName = "TextArea";
7762
7803
  var getIconSize = (layout) => layout === "vertical" ? "large" : "medium";
7763
7804
 
7764
7805
  // src/components/Feedback/CommentComponent.tsx
7765
- var import_jsx_runtime251 = require("react/jsx-runtime");
7806
+ var import_jsx_runtime252 = require("react/jsx-runtime");
7766
7807
  var CommentComponent = ({
7767
7808
  layout,
7768
7809
  rating,
@@ -7776,9 +7817,9 @@ var CommentComponent = ({
7776
7817
  handleFeedbackTextChange
7777
7818
  }) => {
7778
7819
  const { t } = useTranslation();
7779
- return /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(VStack, { gap: "x1", children: [
7780
- /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)("span", { className: Feedback_default["rating-submitted-title"], children: [
7781
- /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
7820
+ return /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(VStack, { gap: "x1", children: [
7821
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)("span", { className: Feedback_default["rating-submitted-title"], children: [
7822
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
7782
7823
  Icon,
7783
7824
  {
7784
7825
  icon: rating === "positive" ? ThumbUpFilledIcon : ThumbDownFilledIcon,
@@ -7786,12 +7827,12 @@ var CommentComponent = ({
7786
7827
  iconSize: getIconSize(layout)
7787
7828
  }
7788
7829
  ),
7789
- /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(Paragraph, { children: [
7830
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(Paragraph, { children: [
7790
7831
  ratingSubmittedTitle,
7791
7832
  " "
7792
7833
  ] })
7793
7834
  ] }),
7794
- /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
7835
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
7795
7836
  TextArea,
7796
7837
  {
7797
7838
  value: feedbackText,
@@ -7800,7 +7841,7 @@ var CommentComponent = ({
7800
7841
  tip: textAreaTip
7801
7842
  }
7802
7843
  ),
7803
- /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
7844
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
7804
7845
  Button,
7805
7846
  {
7806
7847
  purpose: "secondary",
@@ -7833,7 +7874,7 @@ var Tooltip_default = {
7833
7874
  };
7834
7875
 
7835
7876
  // src/components/Tooltip/Tooltip.tsx
7836
- var import_jsx_runtime252 = require("react/jsx-runtime");
7877
+ var import_jsx_runtime253 = require("react/jsx-runtime");
7837
7878
  var Tooltip = ({
7838
7879
  text,
7839
7880
  placement = "bottom",
@@ -7924,7 +7965,7 @@ var Tooltip = ({
7924
7965
  );
7925
7966
  const openCn = keepMounted && open && inView || isTransientlyMounted ? "open" : "closed";
7926
7967
  const ariaHidden = keepMounted ? !open : void 0;
7927
- return /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
7968
+ return /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
7928
7969
  "div",
7929
7970
  {
7930
7971
  ...getBaseHTMLProps(
@@ -7938,7 +7979,7 @@ var Tooltip = ({
7938
7979
  onMouseOver: combineHandlers(openTooltip, onMouseOver),
7939
7980
  children: [
7940
7981
  anchorElement,
7941
- !keepMounted && (open || hasTransitionedIn) || keepMounted ? /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
7982
+ !keepMounted && (open || hasTransitionedIn) || keepMounted ? /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
7942
7983
  Paper,
7943
7984
  {
7944
7985
  id: uniqueTooltipId,
@@ -7956,15 +7997,15 @@ var Tooltip = ({
7956
7997
  ),
7957
7998
  children: [
7958
7999
  text,
7959
- /* @__PURE__ */ (0, import_jsx_runtime252.jsx)("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)("svg", { width: "36", height: "9", children: [
7960
- /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
8000
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)("svg", { width: "36", height: "9", children: [
8001
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
7961
8002
  "path",
7962
8003
  {
7963
8004
  d: "M16.586 6.586L10 0h16.154a.373.373 0 00-.263.11l-6.477 6.476a2 2 0 01-2.828 0z",
7964
8005
  className: Tooltip_default["svg-arrow__background"]
7965
8006
  }
7966
8007
  ),
7967
- /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
8008
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
7968
8009
  "path",
7969
8010
  {
7970
8011
  fillRule: "evenodd",
@@ -7984,7 +8025,7 @@ var Tooltip = ({
7984
8025
  Tooltip.displayName = "Tooltip";
7985
8026
 
7986
8027
  // src/components/Feedback/RatingComponent.tsx
7987
- var import_jsx_runtime253 = require("react/jsx-runtime");
8028
+ var import_jsx_runtime254 = require("react/jsx-runtime");
7988
8029
  var RatingComponent = ({
7989
8030
  layout,
7990
8031
  ratingLabel,
@@ -7994,7 +8035,7 @@ var RatingComponent = ({
7994
8035
  handleRatingChange
7995
8036
  }) => {
7996
8037
  const { t } = useTranslation();
7997
- const button = (rating, layout2, tooltip) => /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
8038
+ const button = (rating, layout2, tooltip) => /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
7998
8039
  InlineIconButton,
7999
8040
  {
8000
8041
  "aria-label": tooltip,
@@ -8004,7 +8045,7 @@ var RatingComponent = ({
8004
8045
  color: "icon-medium"
8005
8046
  }
8006
8047
  );
8007
- return /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
8048
+ return /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(
8008
8049
  "div",
8009
8050
  {
8010
8051
  className: cn(
@@ -8012,10 +8053,10 @@ var RatingComponent = ({
8012
8053
  Feedback_default[`rating-container--${layout}`]
8013
8054
  ),
8014
8055
  children: [
8015
- /* @__PURE__ */ (0, import_jsx_runtime253.jsx)("h2", { className: typographyStyles_default["label-medium"], children: ratingLabel }),
8016
- loading ? /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Spinner, { tooltip: t(texts11.uploadingFeedback) }) : /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(HStack, { gap: "x1", children: [
8017
- /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Tooltip, { text: thumbUpTooltip, children: button("positive", layout, thumbUpTooltip) }),
8018
- /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)("div", { children: button("negative", layout, thumbDownTooltip) }) })
8056
+ /* @__PURE__ */ (0, import_jsx_runtime254.jsx)("h2", { className: typographyStyles_default["label-medium"], children: ratingLabel }),
8057
+ loading ? /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Spinner, { tooltip: t(texts11.uploadingFeedback) }) : /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(HStack, { gap: "x1", children: [
8058
+ /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Tooltip, { text: thumbUpTooltip, children: button("positive", layout, thumbUpTooltip) }),
8059
+ /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ (0, import_jsx_runtime254.jsx)("div", { children: button("negative", layout, thumbDownTooltip) }) })
8019
8060
  ] })
8020
8061
  ]
8021
8062
  }
@@ -8031,7 +8072,7 @@ var texts11 = createTexts({
8031
8072
  });
8032
8073
 
8033
8074
  // src/components/Feedback/Feedback.tsx
8034
- var import_jsx_runtime254 = require("react/jsx-runtime");
8075
+ var import_jsx_runtime255 = require("react/jsx-runtime");
8035
8076
  var Feedback = ({
8036
8077
  layout = "vertical",
8037
8078
  ratingLabel,
@@ -8086,7 +8127,7 @@ var Feedback = ({
8086
8127
  if (isSubmittedProp === void 0) setIsFeedbackSubmitted(true);
8087
8128
  };
8088
8129
  if (rating === null && !isFeedbackSubmitted) {
8089
- return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
8130
+ return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
8090
8131
  RatingComponent,
8091
8132
  {
8092
8133
  layout,
@@ -8099,7 +8140,7 @@ var Feedback = ({
8099
8140
  );
8100
8141
  }
8101
8142
  if (!feedbackTextAreaExcluded && !isFeedbackSubmitted) {
8102
- return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
8143
+ return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
8103
8144
  CommentComponent,
8104
8145
  {
8105
8146
  layout,
@@ -8115,7 +8156,7 @@ var Feedback = ({
8115
8156
  }
8116
8157
  );
8117
8158
  }
8118
- return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Paragraph, { children: tSubmittedTitle });
8159
+ return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(Paragraph, { children: tSubmittedTitle });
8119
8160
  };
8120
8161
  var texts12 = createTexts({
8121
8162
  ratingQuestion: {
@@ -8160,13 +8201,13 @@ var texts12 = createTexts({
8160
8201
  var container = "Fieldset_container";
8161
8202
 
8162
8203
  // src/components/Fieldset/Fieldset.tsx
8163
- var import_jsx_runtime255 = require("react/jsx-runtime");
8204
+ var import_jsx_runtime256 = require("react/jsx-runtime");
8164
8205
  var Fieldset = ({
8165
8206
  id,
8166
8207
  className,
8167
8208
  htmlProps,
8168
8209
  ...rest
8169
- }) => /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
8210
+ }) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
8170
8211
  "fieldset",
8171
8212
  {
8172
8213
  ...getBaseHTMLProps(id, cn(className, container), htmlProps, rest)
@@ -8175,27 +8216,27 @@ var Fieldset = ({
8175
8216
  Fieldset.displayName = "Fieldset";
8176
8217
 
8177
8218
  // src/components/Fieldset/FieldsetGroup.tsx
8178
- var import_jsx_runtime256 = require("react/jsx-runtime");
8219
+ var import_jsx_runtime257 = require("react/jsx-runtime");
8179
8220
  var FieldsetGroup = ({
8180
8221
  id,
8181
8222
  className,
8182
8223
  htmlProps,
8183
8224
  ...rest
8184
- }) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(VStack, { gap: "x1.5", ...getBaseHTMLProps(id, className, htmlProps, rest) });
8225
+ }) => /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(VStack, { gap: "x1.5", ...getBaseHTMLProps(id, className, htmlProps, rest) });
8185
8226
  FieldsetGroup.displayName = "FieldsetGroup";
8186
8227
 
8187
8228
  // src/components/FileUploader/FileUploader.tsx
8188
8229
  var import_react59 = require("react");
8189
8230
 
8190
8231
  // src/components/FileUploader/ErrorList.tsx
8191
- var import_jsx_runtime257 = require("react/jsx-runtime");
8232
+ var import_jsx_runtime258 = require("react/jsx-runtime");
8192
8233
  var ErrorList = (props) => {
8193
8234
  const { errors } = props;
8194
8235
  if (errors.length < 1) {
8195
8236
  return null;
8196
8237
  }
8197
8238
  if (errors.length === 1) {
8198
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
8239
+ return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
8199
8240
  InputMessage,
8200
8241
  {
8201
8242
  id: errors[0].id,
@@ -8204,8 +8245,8 @@ var ErrorList = (props) => {
8204
8245
  }
8205
8246
  );
8206
8247
  }
8207
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(StylelessList, { children: errors.map(({ id, message }) => {
8208
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
8248
+ return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(StylelessList, { children: errors.map(({ id, message }) => {
8249
+ return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
8209
8250
  InputMessage,
8210
8251
  {
8211
8252
  id,
@@ -8222,24 +8263,33 @@ var FileUploader_default = {
8222
8263
  "input-container": "FileUploader_input-container",
8223
8264
  "input-container--with-errors": "FileUploader_input-container--with-errors",
8224
8265
  "input-container--drag-active": "FileUploader_input-container--drag-active",
8225
- "input-container--no-drag-zone": "FileUploader_input-container--no-drag-zone",
8226
8266
  "file--invalid": "FileUploader_file--invalid",
8227
8267
  "file__icon--invalid": "FileUploader_file__icon--invalid",
8228
8268
  "file__icon--valid": "FileUploader_file__icon--valid",
8229
- file__name: "FileUploader_file__name"
8269
+ file__name: "FileUploader_file__name",
8270
+ "readonly--file-list": "FileUploader_readonly--file-list"
8230
8271
  };
8231
8272
 
8232
8273
  // src/components/FileUploader/File.tsx
8233
- var import_jsx_runtime258 = require("react/jsx-runtime");
8274
+ var import_jsx_runtime259 = require("react/jsx-runtime");
8234
8275
  var File = (props) => {
8235
8276
  const { t } = useTranslation();
8236
- const { parentId, index, file: stateFile, removeFile, isValid } = props;
8277
+ const {
8278
+ parentId,
8279
+ index,
8280
+ file: stateFile,
8281
+ removeFile,
8282
+ isValid,
8283
+ disabled,
8284
+ readOnly
8285
+ } = props;
8237
8286
  const errorsList = stateFile.errors.map((e, errorIndex) => ({
8238
8287
  id: derivativeIdGenerator(parentId, `file-${index}-error-${errorIndex}`),
8239
8288
  message: e
8240
8289
  }));
8241
- return /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)("li", { children: [
8242
- /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(
8290
+ const inactive = disabled || readOnly;
8291
+ return /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)("li", { children: [
8292
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
8243
8293
  Paper,
8244
8294
  {
8245
8295
  display: "flex",
@@ -8248,46 +8298,50 @@ var File = (props) => {
8248
8298
  gap: "x0.75",
8249
8299
  marginBlock: "x0.5 0",
8250
8300
  padding: "x0.5 x1",
8251
- border: isValid ? "border-default" : "border-danger",
8252
- background: "surface-subtle",
8301
+ border: disabled ? "border-subtle" : isValid ? "border-default" : "border-danger",
8302
+ background: inactive ? "surface-field-disabled" : "surface-subtle",
8253
8303
  className: cn(!isValid && FileUploader_default["file--invalid"]),
8254
8304
  children: [
8255
- /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
8256
- "span",
8305
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
8306
+ Typography,
8257
8307
  {
8258
- className: cn(FileUploader_default.file__name, typographyStyles_default["body-medium"]),
8308
+ as: "span",
8309
+ color: disabled ? "text-subtle" : readOnly ? "text-medium" : void 0,
8310
+ className: cn(FileUploader_default.file__name),
8259
8311
  children: stateFile.file.name
8260
8312
  }
8261
8313
  ),
8262
- /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
8263
- Icon,
8264
- {
8265
- icon: isValid ? CheckCircledIcon : ErrorIcon,
8266
- className: FileUploader_default[`file__icon--${isValid ? "valid" : "invalid"}`]
8267
- }
8268
- ),
8269
- /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
8270
- Button,
8271
- {
8272
- size: "small",
8273
- purpose: "tertiary",
8274
- type: "button",
8275
- onClick: removeFile,
8276
- icon: CloseIcon,
8277
- htmlProps: {
8278
- "aria-label": t(texts13.removeFile(stateFile.file.name)),
8279
- "aria-invalid": !isValid ? true : void 0,
8280
- "aria-errormessage": !isValid ? t(texts13.invalidFile) : void 0,
8281
- "aria-describedby": spaceSeparatedIdListGenerator(
8282
- errorsList.map((e) => e.id)
8283
- )
8314
+ !inactive && /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(import_jsx_runtime259.Fragment, { children: [
8315
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
8316
+ Icon,
8317
+ {
8318
+ icon: isValid ? CheckCircledIcon : ErrorIcon,
8319
+ className: FileUploader_default[`file__icon--${isValid ? "valid" : "invalid"}`]
8284
8320
  }
8285
- }
8286
- )
8321
+ ),
8322
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
8323
+ Button,
8324
+ {
8325
+ size: "small",
8326
+ purpose: "tertiary",
8327
+ type: "button",
8328
+ onClick: removeFile,
8329
+ icon: CloseIcon,
8330
+ htmlProps: {
8331
+ "aria-label": t(texts13.removeFile(stateFile.file.name)),
8332
+ "aria-invalid": !isValid ? true : void 0,
8333
+ "aria-errormessage": !isValid ? t(texts13.invalidFile) : void 0,
8334
+ "aria-describedby": spaceSeparatedIdListGenerator(
8335
+ errorsList.map((e) => e.id)
8336
+ )
8337
+ }
8338
+ }
8339
+ )
8340
+ ] })
8287
8341
  ]
8288
8342
  }
8289
8343
  ),
8290
- /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(ErrorList, { errors: errorsList })
8344
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(ErrorList, { errors: errorsList })
8291
8345
  ] });
8292
8346
  };
8293
8347
  var texts13 = createTexts({
@@ -8382,14 +8436,12 @@ var isEventWithFiles = (event) => {
8382
8436
  var isFileAccepted = (file, accept) => {
8383
8437
  return accept !== void 0 ? isAccepted(file, accept) : true;
8384
8438
  };
8385
- var getTooManyFilesErrorMessage = (maxFiles) => `For mange filer, maks ${maxFiles}stk`;
8386
- var getInvalidFileTypeErrorMessage = () => "Ugyldig filtype";
8387
8439
 
8388
8440
  // src/components/FileUploader/useFileUploader.ts
8389
- var calcRootErrors = (files, maxFiles, errorMessage) => {
8441
+ var calcRootErrors = (maxFilesErrorMessage, files, maxFiles, errorMessage) => {
8390
8442
  const errors = [];
8391
8443
  if (maxFiles && maxFiles >= 1 && files.length > maxFiles) {
8392
- errors.push(getTooManyFilesErrorMessage(maxFiles));
8444
+ errors.push(maxFilesErrorMessage + maxFiles);
8393
8445
  }
8394
8446
  if (errorMessage) {
8395
8447
  errors.push(errorMessage);
@@ -8401,11 +8453,14 @@ var useFileUploader = (props) => {
8401
8453
  initialFiles,
8402
8454
  value,
8403
8455
  onChange,
8456
+ onKeyDown,
8404
8457
  accept,
8405
8458
  maxFiles,
8406
8459
  disabled,
8460
+ readOnly,
8407
8461
  errorMessage
8408
8462
  } = props;
8463
+ const { t } = useTranslation();
8409
8464
  const rootRef = (0, import_react58.useRef)(null);
8410
8465
  const inputRef = (0, import_react58.useRef)(null);
8411
8466
  const buttonRef = (0, import_react58.useRef)(null);
@@ -8423,6 +8478,7 @@ var useFileUploader = (props) => {
8423
8478
  isFileDialogActive: false,
8424
8479
  isDragActive: false,
8425
8480
  rootErrors: calcRootErrors(
8481
+ t(texts14.invalidFileAmount),
8426
8482
  initialFileUploaderFiles,
8427
8483
  maxFiles,
8428
8484
  errorMessage
@@ -8435,7 +8491,7 @@ var useFileUploader = (props) => {
8435
8491
  const accepted = isFileAccepted(file, accept);
8436
8492
  return {
8437
8493
  file,
8438
- errors: accepted ? [] : [getInvalidFileTypeErrorMessage()]
8494
+ errors: accepted ? [] : [t(texts14.invalidFileType)]
8439
8495
  };
8440
8496
  });
8441
8497
  dispatch({
@@ -8447,7 +8503,12 @@ var useFileUploader = (props) => {
8447
8503
  (0, import_react58.useEffect)(() => {
8448
8504
  dispatch({
8449
8505
  type: "setRootErrors",
8450
- payload: calcRootErrors(stateFiles, maxFiles, errorMessage)
8506
+ payload: calcRootErrors(
8507
+ t(texts14.invalidFileAmount),
8508
+ stateFiles,
8509
+ maxFiles,
8510
+ errorMessage
8511
+ )
8451
8512
  });
8452
8513
  }, [dispatch, stateFiles, maxFiles, errorMessage]);
8453
8514
  const onRootFocus = (0, import_react58.useCallback)(
@@ -8497,7 +8558,7 @@ var useFileUploader = (props) => {
8497
8558
  const accepted = isFileAccepted(file, accept);
8498
8559
  return {
8499
8560
  file,
8500
- errors: accepted ? [] : [getInvalidFileTypeErrorMessage()]
8561
+ errors: accepted ? [] : [t(texts14.invalidFileType)]
8501
8562
  };
8502
8563
  }).concat(stateFiles);
8503
8564
  onChange(newFiles.map((f) => f.file));
@@ -8569,10 +8630,13 @@ var useFileUploader = (props) => {
8569
8630
  const getInputProps = (0, import_react58.useCallback)(
8570
8631
  () => ({
8571
8632
  type: "file",
8572
- style: { display: "none" },
8573
- tabIndex: -1,
8633
+ tabIndex: readOnly ? void 0 : -1,
8574
8634
  ref: inputRef,
8575
- onChange: setFiles,
8635
+ disabled,
8636
+ "aria-hidden": readOnly ? void 0 : true,
8637
+ onChange: readOnlyChangeHandler(readOnly, setFiles),
8638
+ onKeyDown: readOnlyKeyDownHandler("file", readOnly, onKeyDown),
8639
+ readOnly,
8576
8640
  multiple: !maxFiles || maxFiles > 1,
8577
8641
  ...accept ? { accept: accept.join(",") } : {}
8578
8642
  }),
@@ -8586,9 +8650,23 @@ var useFileUploader = (props) => {
8586
8650
  removeFile
8587
8651
  };
8588
8652
  };
8653
+ var texts14 = createTexts({
8654
+ invalidFileType: {
8655
+ nb: "Ugyldig filtype",
8656
+ no: "Ugyldig filtype",
8657
+ nn: "Ugyldig filtype",
8658
+ en: "Invalid file type"
8659
+ },
8660
+ invalidFileAmount: {
8661
+ nb: "For mange filer. Maksimalt antall er ",
8662
+ no: "For mange filer. Maksimalt antall er ",
8663
+ nn: "For mange filer. Maksimalt antall er ",
8664
+ en: "Too many files. The maximum allowed is "
8665
+ }
8666
+ });
8589
8667
 
8590
8668
  // src/components/FileUploader/FileUploader.tsx
8591
- var import_jsx_runtime259 = require("react/jsx-runtime");
8669
+ var import_jsx_runtime260 = require("react/jsx-runtime");
8592
8670
  var FileUploader = (props) => {
8593
8671
  const {
8594
8672
  id,
@@ -8603,7 +8681,9 @@ var FileUploader = (props) => {
8603
8681
  accept,
8604
8682
  maxFiles,
8605
8683
  disabled,
8684
+ readOnly,
8606
8685
  onChange,
8686
+ onKeyDown,
8607
8687
  width = "var(--dds-input-default-width)",
8608
8688
  errorMessage,
8609
8689
  hideFileList,
@@ -8611,7 +8691,7 @@ var FileUploader = (props) => {
8611
8691
  ...rest
8612
8692
  } = props;
8613
8693
  const { t } = useTranslation();
8614
- const tDropAreaLabel = dropAreaLabel != null ? dropAreaLabel : t(texts14.dragAndDropOr);
8694
+ const tDropAreaLabel = dropAreaLabel != null ? dropAreaLabel : t(texts15.dragAndDropOr);
8615
8695
  const generatedId = (0, import_react59.useId)();
8616
8696
  const uniqueId = id != null ? id : `${generatedId}-fileUploader`;
8617
8697
  const {
@@ -8627,25 +8707,31 @@ var FileUploader = (props) => {
8627
8707
  onChange,
8628
8708
  accept,
8629
8709
  disabled,
8710
+ readOnly,
8630
8711
  maxFiles,
8631
- errorMessage
8712
+ errorMessage,
8713
+ onKeyDown
8632
8714
  });
8633
8715
  const hasLabel = label !== void 0;
8634
8716
  const hasTip = tip !== void 0;
8635
8717
  const hasRootErrors = rootErrors.length > 0;
8636
- const showRequiredMarker = required;
8718
+ const inactive = disabled || readOnly;
8637
8719
  const labelId = derivativeIdGenerator(uniqueId, "label");
8638
8720
  const tipId = derivativeIdGenerator(uniqueId, "tip");
8639
8721
  const buttonId = derivativeIdGenerator(uniqueId, "button");
8640
8722
  const inputId = derivativeIdGenerator(uniqueId, "input");
8641
- const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
8723
+ const fileListId = derivativeIdGenerator(uniqueId, "file-list");
8724
+ const fileListNameId = derivativeIdGenerator(uniqueId, "file-list-name");
8725
+ const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
8642
8726
  File,
8643
8727
  {
8644
8728
  parentId: uniqueId,
8645
8729
  index,
8646
8730
  file: stateFile,
8647
8731
  isValid: stateFile.errors.length === 0,
8648
- removeFile: () => removeFile(stateFile)
8732
+ removeFile: () => removeFile(stateFile),
8733
+ disabled,
8734
+ readOnly
8649
8735
  },
8650
8736
  stateFile.file.name
8651
8737
  ));
@@ -8653,7 +8739,7 @@ var FileUploader = (props) => {
8653
8739
  id: derivativeIdGenerator(uniqueId, `error-${index}`),
8654
8740
  message: e
8655
8741
  }));
8656
- const button = /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
8742
+ const button = /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
8657
8743
  Button,
8658
8744
  {
8659
8745
  ...getButtonProps(),
@@ -8673,7 +8759,17 @@ var FileUploader = (props) => {
8673
8759
  children: btnLabel
8674
8760
  }
8675
8761
  );
8676
- return /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
8762
+ const input = /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
8763
+ HiddenInput,
8764
+ {
8765
+ ...getInputProps(),
8766
+ className: cn(readOnly && focus_default["focusable-sibling"]),
8767
+ id: inputId,
8768
+ "data-testid": "file-uploader-input",
8769
+ "aria-describedby": fileListId
8770
+ }
8771
+ );
8772
+ return /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
8677
8773
  Box,
8678
8774
  {
8679
8775
  id: uniqueId,
@@ -8681,17 +8777,15 @@ var FileUploader = (props) => {
8681
8777
  width,
8682
8778
  ...rest,
8683
8779
  children: [
8684
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
8685
- Label,
8686
- {
8687
- id: labelId,
8688
- showRequiredStyling: showRequiredMarker,
8689
- htmlFor: inputId,
8690
- children: label
8691
- }
8692
- ),
8693
- hasTip && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
8694
- withDragAndDrop ? /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
8780
+ renderLabel({
8781
+ label,
8782
+ id: labelId,
8783
+ showRequiredStyling: required,
8784
+ htmlFor: inputId,
8785
+ readOnly
8786
+ }),
8787
+ hasTip && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
8788
+ inactive ? input : withDragAndDrop ? /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
8695
8789
  VStack,
8696
8790
  {
8697
8791
  gap: "x1",
@@ -8703,31 +8797,45 @@ var FileUploader = (props) => {
8703
8797
  isDragActive && FileUploader_default["input-container--drag-active"]
8704
8798
  ),
8705
8799
  children: [
8706
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
8707
- "input",
8708
- {
8709
- ...getInputProps(),
8710
- id: inputId,
8711
- "data-testid": "file-uploader-input"
8712
- }
8713
- ),
8800
+ input,
8714
8801
  tDropAreaLabel,
8715
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(VisuallyHidden, { children: t(texts14.uploadFileWithButton) }),
8802
+ /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(VisuallyHidden, { children: t(texts15.uploadFileWithButton) }),
8716
8803
  button
8717
8804
  ]
8718
8805
  }
8719
- ) : /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)("div", { className: FileUploader_default["input-container--no-drag-zone"], children: [
8720
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("input", { ...getInputProps(), id: inputId }),
8806
+ ) : /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(Box, { padding: "x 0", children: [
8807
+ input,
8721
8808
  button
8722
8809
  ] }),
8723
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(ErrorList, { errors: rootErrorsList }),
8724
- !hideFileList && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(StylelessList, { children: fileListElements })
8810
+ /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(ErrorList, { errors: rootErrorsList }),
8811
+ !hideFileList && /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
8812
+ "div",
8813
+ {
8814
+ id: fileListId,
8815
+ className: cn(
8816
+ readOnly && focus_default["focus-styled-sibling"],
8817
+ readOnly && FileUploader_default["readonly--file-list"]
8818
+ ),
8819
+ children: [
8820
+ /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(VisuallyHidden, { id: fileListNameId, children: t(texts15.uploadedFiles) }),
8821
+ inactive && fileListElements.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
8822
+ Typography,
8823
+ {
8824
+ italic: true,
8825
+ as: "span",
8826
+ color: disabled ? "text-subtle" : "text-medium",
8827
+ children: t(texts15.noFiles)
8828
+ }
8829
+ ) : /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(StylelessList, { "aria-labelledby": fileListNameId, children: fileListElements })
8830
+ ]
8831
+ }
8832
+ )
8725
8833
  ]
8726
8834
  }
8727
8835
  );
8728
8836
  };
8729
8837
  FileUploader.displayName = "FileUploader";
8730
- var texts14 = createTexts({
8838
+ var texts15 = createTexts({
8731
8839
  dragAndDropOr: {
8732
8840
  nb: "Dra og slipp filer her eller",
8733
8841
  no: "Dra og slipp filer her eller",
@@ -8739,6 +8847,18 @@ var texts14 = createTexts({
8739
8847
  no: "last opp en fil med den p\xE5f\xF8lgende knappen",
8740
8848
  nn: "last opp ei fil med den p\xE5f\xF8lgjande knappen",
8741
8849
  en: "upload using the following button"
8850
+ },
8851
+ noFiles: {
8852
+ nb: "Ingen filer.",
8853
+ no: "Ingen filer.",
8854
+ nn: "Ingen filer.",
8855
+ en: "No files."
8856
+ },
8857
+ uploadedFiles: {
8858
+ nb: "Opplastede filer",
8859
+ no: "Opplastede filer",
8860
+ nn: "Opplasta filer",
8861
+ en: "Uploaded files"
8742
8862
  }
8743
8863
  });
8744
8864
 
@@ -8753,25 +8873,25 @@ var Footer_default = {
8753
8873
  };
8754
8874
 
8755
8875
  // src/components/Footer/Footer.tsx
8756
- var import_jsx_runtime260 = require("react/jsx-runtime");
8757
- var Footer = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Contrast, { as: "footer", className: cn(className, Footer_default.container), ...rest });
8876
+ var import_jsx_runtime261 = require("react/jsx-runtime");
8877
+ var Footer = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Contrast, { as: "footer", className: cn(className, Footer_default.container), ...rest });
8758
8878
 
8759
8879
  // src/components/Footer/FooterListHeader.tsx
8760
- var import_jsx_runtime261 = require("react/jsx-runtime");
8761
- var FooterListHeader = (props) => /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Heading, { level: 2, typographyType: "headingSmall", ...props });
8880
+ var import_jsx_runtime262 = require("react/jsx-runtime");
8881
+ var FooterListHeader = (props) => /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(Heading, { level: 2, typographyType: "headingSmall", ...props });
8762
8882
 
8763
8883
  // src/components/Footer/norges_domstoler_logo.svg
8764
8884
  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';
8765
8885
 
8766
8886
  // src/components/Footer/FooterLogo.tsx
8767
- var import_jsx_runtime262 = require("react/jsx-runtime");
8887
+ var import_jsx_runtime263 = require("react/jsx-runtime");
8768
8888
  var FooterLogo = ({ hideBreakpoint, ...rest }) => {
8769
- return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
8889
+ return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
8770
8890
  Box,
8771
8891
  {
8772
8892
  hideBelow: hideBreakpoint ? hideBreakpoint : void 0,
8773
8893
  width: "fit-content",
8774
- children: /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
8894
+ children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
8775
8895
  "img",
8776
8896
  {
8777
8897
  height: 80,
@@ -8786,33 +8906,33 @@ var FooterLogo = ({ hideBreakpoint, ...rest }) => {
8786
8906
  };
8787
8907
 
8788
8908
  // src/components/Footer/FooterList.tsx
8789
- var import_jsx_runtime263 = require("react/jsx-runtime");
8790
- var FooterList = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(StylelessList, { className: cn(className, Footer_default.list), ...rest });
8909
+ var import_jsx_runtime264 = require("react/jsx-runtime");
8910
+ var FooterList = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(StylelessList, { className: cn(className, Footer_default.list), ...rest });
8791
8911
 
8792
8912
  // src/components/Footer/FooterSocialsList.tsx
8793
- var import_jsx_runtime264 = require("react/jsx-runtime");
8913
+ var import_jsx_runtime265 = require("react/jsx-runtime");
8794
8914
  var FooterSocialsList = ({
8795
8915
  className,
8796
8916
  ...rest
8797
- }) => /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(StylelessList, { className: cn(className, Footer_default["socials-list"]), ...rest });
8917
+ }) => /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(StylelessList, { className: cn(className, Footer_default["socials-list"]), ...rest });
8798
8918
 
8799
8919
  // src/components/Footer/FooterSocialsGroup.tsx
8800
- var import_jsx_runtime265 = require("react/jsx-runtime");
8920
+ var import_jsx_runtime266 = require("react/jsx-runtime");
8801
8921
  var FooterSocialsGroup = ({
8802
8922
  className,
8803
8923
  ...rest
8804
- }) => /* @__PURE__ */ (0, import_jsx_runtime265.jsx)("div", { className: cn(className, Footer_default["socials-group"]), ...rest });
8924
+ }) => /* @__PURE__ */ (0, import_jsx_runtime266.jsx)("div", { className: cn(className, Footer_default["socials-group"]), ...rest });
8805
8925
 
8806
8926
  // src/components/Footer/FooterListGroup.tsx
8807
- var import_jsx_runtime266 = require("react/jsx-runtime");
8927
+ var import_jsx_runtime267 = require("react/jsx-runtime");
8808
8928
  var FooterListGroup = ({
8809
8929
  className,
8810
8930
  ...rest
8811
- }) => /* @__PURE__ */ (0, import_jsx_runtime266.jsx)("div", { className: cn(className, Footer_default["list-group"]), ...rest });
8931
+ }) => /* @__PURE__ */ (0, import_jsx_runtime267.jsx)("div", { className: cn(className, Footer_default["list-group"]), ...rest });
8812
8932
 
8813
8933
  // src/components/Footer/FooterLeft.tsx
8814
- var import_jsx_runtime267 = require("react/jsx-runtime");
8815
- var FooterLeft = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime267.jsx)("div", { className: cn(className, Footer_default["left"]), ...rest });
8934
+ var import_jsx_runtime268 = require("react/jsx-runtime");
8935
+ var FooterLeft = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("div", { className: cn(className, Footer_default["left"]), ...rest });
8816
8936
 
8817
8937
  // src/components/GlobalMessage/GlobalMessage.tsx
8818
8938
  var import_react60 = require("react");
@@ -8829,7 +8949,7 @@ var GlobalMessage_default = {
8829
8949
  };
8830
8950
 
8831
8951
  // src/components/GlobalMessage/GlobalMessage.tsx
8832
- var import_jsx_runtime268 = require("react/jsx-runtime");
8952
+ var import_jsx_runtime269 = require("react/jsx-runtime");
8833
8953
  var icons = {
8834
8954
  info: InfoIcon,
8835
8955
  danger: ErrorIcon,
@@ -8848,7 +8968,7 @@ var GlobalMessage = ({
8848
8968
  }) => {
8849
8969
  const { t } = useTranslation();
8850
8970
  const [isClosed, setClosed] = (0, import_react60.useState)(false);
8851
- return !isClosed ? /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
8971
+ return !isClosed ? /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
8852
8972
  "div",
8853
8973
  {
8854
8974
  ...getBaseHTMLProps(
@@ -8863,17 +8983,17 @@ var GlobalMessage = ({
8863
8983
  rest
8864
8984
  ),
8865
8985
  children: [
8866
- /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
8986
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
8867
8987
  "div",
8868
8988
  {
8869
8989
  className: cn(GlobalMessage_default.content, closable && GlobalMessage_default["content--closable"]),
8870
8990
  children: [
8871
- /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(Icon, { icon: icons[purpose], className: GlobalMessage_default.icon }),
8872
- children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("span", { children: message })
8991
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(Icon, { icon: icons[purpose], className: GlobalMessage_default.icon }),
8992
+ children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("span", { children: message })
8873
8993
  ]
8874
8994
  }
8875
8995
  ),
8876
- closable && /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
8996
+ closable && /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
8877
8997
  Button,
8878
8998
  {
8879
8999
  icon: CloseIcon,
@@ -8898,12 +9018,12 @@ var InlineButton_default = {
8898
9018
  };
8899
9019
 
8900
9020
  // src/components/InlineButton/InlineButton.tsx
8901
- var import_jsx_runtime269 = require("react/jsx-runtime");
9021
+ var import_jsx_runtime270 = require("react/jsx-runtime");
8902
9022
  var InlineButton = ({
8903
9023
  className,
8904
9024
  color,
8905
9025
  ...rest
8906
- }) => /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
9026
+ }) => /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
8907
9027
  StylelessButton,
8908
9028
  {
8909
9029
  className: cn(
@@ -8922,7 +9042,7 @@ var import_react63 = require("react");
8922
9042
 
8923
9043
  // src/components/InlineEdit/InlineEdit.context.tsx
8924
9044
  var import_react61 = require("react");
8925
- var import_jsx_runtime270 = require("react/jsx-runtime");
9045
+ var import_jsx_runtime271 = require("react/jsx-runtime");
8926
9046
  var InlineEditContext = (0, import_react61.createContext)(
8927
9047
  {}
8928
9048
  );
@@ -8966,7 +9086,7 @@ var InlineEditContextProvider = (props) => {
8966
9086
  useOnKeyDown(["Enter"], () => onExitHandler());
8967
9087
  useOnKeyDown(["Escape"], () => onExitHandler());
8968
9088
  useOnClickOutside(inputRef == null ? void 0 : inputRef.current, () => onExitHandler());
8969
- return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
9089
+ return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
8970
9090
  InlineEditContext,
8971
9091
  {
8972
9092
  value: {
@@ -9001,15 +9121,15 @@ var InlineEdit_default = {
9001
9121
  };
9002
9122
 
9003
9123
  // src/components/InlineEdit/InlineEdit.utils.tsx
9004
- var import_jsx_runtime271 = require("react/jsx-runtime");
9124
+ var import_jsx_runtime272 = require("react/jsx-runtime");
9005
9125
  var inlineEditVisuallyHidden = (id, clearable) => {
9006
9126
  const { t } = useTranslation();
9007
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(VisuallyHidden, { id, children: [
9008
- t(texts15.inlineEditInfo),
9009
- !clearable && t(texts15.notClearable)
9127
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)(VisuallyHidden, { id, children: [
9128
+ t(texts16.inlineEditInfo),
9129
+ !clearable && t(texts16.notClearable)
9010
9130
  ] });
9011
9131
  };
9012
- var texts15 = createTexts({
9132
+ var texts16 = createTexts({
9013
9133
  inlineEditInfo: {
9014
9134
  nb: "Escape, Enter eller Tab for \xE5 lagre.",
9015
9135
  no: "Escape, Enter eller Tab for \xE5 lagre.",
@@ -9070,7 +9190,7 @@ function createClearChangeEvent(elementId) {
9070
9190
  }
9071
9191
 
9072
9192
  // src/components/InlineEdit/InlineField.tsx
9073
- var import_jsx_runtime272 = require("react/jsx-runtime");
9193
+ var import_jsx_runtime273 = require("react/jsx-runtime");
9074
9194
  function InlineField(props) {
9075
9195
  const {
9076
9196
  elementType,
@@ -9116,7 +9236,7 @@ function InlineField(props) {
9116
9236
  const cnArgs = [hasErrorState, !isEditing && !hideIcon];
9117
9237
  const iconSize = "small";
9118
9238
  function makeIcon(icon, className2) {
9119
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
9239
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
9120
9240
  Icon,
9121
9241
  {
9122
9242
  iconSize,
@@ -9131,7 +9251,7 @@ function InlineField(props) {
9131
9251
  const renderElement = () => {
9132
9252
  switch (elementType) {
9133
9253
  case "input":
9134
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
9254
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
9135
9255
  "input",
9136
9256
  {
9137
9257
  ...rest,
@@ -9141,7 +9261,7 @@ function InlineField(props) {
9141
9261
  }
9142
9262
  );
9143
9263
  case "textarea":
9144
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
9264
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
9145
9265
  "textarea",
9146
9266
  {
9147
9267
  ...rest,
@@ -9151,8 +9271,8 @@ function InlineField(props) {
9151
9271
  }
9152
9272
  );
9153
9273
  case "select":
9154
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)(import_jsx_runtime272.Fragment, { children: [
9155
- /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
9274
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsxs)(import_jsx_runtime273.Fragment, { children: [
9275
+ /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
9156
9276
  "select",
9157
9277
  {
9158
9278
  ...rest,
@@ -9161,7 +9281,7 @@ function InlineField(props) {
9161
9281
  className: cn(className, ...inlineSelectCns(...cnArgs, hasValue))
9162
9282
  }
9163
9283
  ),
9164
- hasValue && emptiable && /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
9284
+ hasValue && emptiable && /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
9165
9285
  ClearButton,
9166
9286
  {
9167
9287
  "aria-label": t(commonTexts.clearSelect),
@@ -9176,8 +9296,8 @@ function InlineField(props) {
9176
9296
  return null;
9177
9297
  }
9178
9298
  };
9179
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)(Box, { position: "relative", width, children: [
9180
- /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)("div", { className: Input_default["input-group"], children: [
9299
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsxs)(Box, { position: "relative", width, children: [
9300
+ /* @__PURE__ */ (0, import_jsx_runtime273.jsxs)("div", { className: Input_default["input-group"], children: [
9181
9301
  !isEditing && !hideIcon && makeIcon(EditIcon, InlineEdit_default["edit-icon"]),
9182
9302
  renderElement()
9183
9303
  ] }),
@@ -9187,7 +9307,7 @@ function InlineField(props) {
9187
9307
  }
9188
9308
 
9189
9309
  // src/components/InlineEdit/InlineEditTextArea/InlineEditTextArea.tsx
9190
- var import_jsx_runtime273 = require("react/jsx-runtime");
9310
+ var import_jsx_runtime274 = require("react/jsx-runtime");
9191
9311
  var InlineEditTextArea = ({
9192
9312
  onSetValue,
9193
9313
  emptiable,
@@ -9200,7 +9320,7 @@ var InlineEditTextArea = ({
9200
9320
  }) => {
9201
9321
  const textareaRef = (0, import_react63.useRef)(null);
9202
9322
  const combinedRef = useCombinedRef(ref, textareaRef);
9203
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
9323
+ return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
9204
9324
  InlineEditContextProvider,
9205
9325
  {
9206
9326
  onSetValue,
@@ -9210,14 +9330,14 @@ var InlineEditTextArea = ({
9210
9330
  onFocus,
9211
9331
  onChange,
9212
9332
  onBlur,
9213
- children: /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(InlineField, { elementType: "textarea", ...rest, ref: combinedRef })
9333
+ children: /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(InlineField, { elementType: "textarea", ...rest, ref: combinedRef })
9214
9334
  }
9215
9335
  );
9216
9336
  };
9217
9337
 
9218
9338
  // src/components/InlineEdit/InlineEditInput/InlineEditInput.tsx
9219
9339
  var import_react64 = require("react");
9220
- var import_jsx_runtime274 = require("react/jsx-runtime");
9340
+ var import_jsx_runtime275 = require("react/jsx-runtime");
9221
9341
  var InlineEditInput = ({
9222
9342
  onSetValue,
9223
9343
  emptiable,
@@ -9230,7 +9350,7 @@ var InlineEditInput = ({
9230
9350
  }) => {
9231
9351
  const inputRef = (0, import_react64.useRef)(null);
9232
9352
  const combinedRef = useCombinedRef(ref, inputRef);
9233
- return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
9353
+ return /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
9234
9354
  InlineEditContextProvider,
9235
9355
  {
9236
9356
  onSetValue,
@@ -9240,14 +9360,14 @@ var InlineEditInput = ({
9240
9360
  onFocus,
9241
9361
  onChange,
9242
9362
  onBlur,
9243
- children: /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(InlineField, { elementType: "input", ...rest, ref: combinedRef })
9363
+ children: /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(InlineField, { elementType: "input", ...rest, ref: combinedRef })
9244
9364
  }
9245
9365
  );
9246
9366
  };
9247
9367
 
9248
9368
  // src/components/InlineEdit/InlineEditSelect/InlineEditSelect.tsx
9249
9369
  var import_react65 = require("react");
9250
- var import_jsx_runtime275 = require("react/jsx-runtime");
9370
+ var import_jsx_runtime276 = require("react/jsx-runtime");
9251
9371
  var InlineEditSelect = ({
9252
9372
  onSetValue,
9253
9373
  emptiable,
@@ -9260,7 +9380,7 @@ var InlineEditSelect = ({
9260
9380
  }) => {
9261
9381
  const inputRef = (0, import_react65.useRef)(null);
9262
9382
  const combinedRef = useCombinedRef(ref, inputRef);
9263
- return /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
9383
+ return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
9264
9384
  InlineEditContextProvider,
9265
9385
  {
9266
9386
  onSetValue,
@@ -9270,7 +9390,7 @@ var InlineEditSelect = ({
9270
9390
  onFocus,
9271
9391
  onChange,
9272
9392
  onBlur,
9273
- children: /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(InlineField, { elementType: "select", ...rest, ref: combinedRef })
9393
+ children: /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(InlineField, { elementType: "select", ...rest, ref: combinedRef })
9274
9394
  }
9275
9395
  );
9276
9396
  };
@@ -9292,8 +9412,8 @@ var InternalHeader_default = {
9292
9412
  };
9293
9413
 
9294
9414
  // src/components/InternalHeader/NavigationItem.tsx
9295
- var import_jsx_runtime276 = require("react/jsx-runtime");
9296
- var NavigationItem = ({ isCurrent, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
9415
+ var import_jsx_runtime277 = require("react/jsx-runtime");
9416
+ var NavigationItem = ({ isCurrent, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
9297
9417
  "a",
9298
9418
  {
9299
9419
  ...rest,
@@ -9308,7 +9428,7 @@ var NavigationItem = ({ isCurrent, ...rest }) => /* @__PURE__ */ (0, import_jsx_
9308
9428
  );
9309
9429
 
9310
9430
  // src/components/InternalHeader/InternalHeader.tsx
9311
- var import_jsx_runtime277 = require("react/jsx-runtime");
9431
+ var import_jsx_runtime278 = require("react/jsx-runtime");
9312
9432
  var import_react67 = require("react");
9313
9433
  var InternalHeader = (props) => {
9314
9434
  const {
@@ -9338,7 +9458,7 @@ var InternalHeader = (props) => {
9338
9458
  const hasContextMenuElements = !!contextMenuItems && contextMenuItems.length > 0;
9339
9459
  const hasSmallScreenBreakpoint = !!smallScreenBreakpoint;
9340
9460
  const hasNavInContextMenu = hasSmallScreenBreakpoint && hasNavigationElements;
9341
- const navigation = hasNavigationElements ? /* @__PURE__ */ (0, import_jsx_runtime277.jsx)("nav", { "aria-label": t(texts16.siteNavigation), children: /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
9461
+ const navigation = hasNavigationElements ? /* @__PURE__ */ (0, import_jsx_runtime278.jsx)("nav", { "aria-label": t(texts17.siteNavigation), children: /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
9342
9462
  ShowHide,
9343
9463
  {
9344
9464
  as: StylelessList,
@@ -9347,7 +9467,7 @@ var InternalHeader = (props) => {
9347
9467
  children: navItems.map((item, i) => {
9348
9468
  const { href, ...rest2 } = item;
9349
9469
  const isCurrent = href === currentPage;
9350
- return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)("li", { className: InternalHeader_default["nav-list__item"], children: /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
9470
+ return /* @__PURE__ */ (0, import_jsx_runtime278.jsx)("li", { className: InternalHeader_default["nav-list__item"], children: /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
9351
9471
  NavigationItem,
9352
9472
  {
9353
9473
  href,
@@ -9361,7 +9481,7 @@ var InternalHeader = (props) => {
9361
9481
  ) }) : null;
9362
9482
  const hasContextMenu = hasContextMenuElements || !!user || hasNavInContextMenu;
9363
9483
  const hasContextMenuLargeScreen = hasContextMenuElements || !!user;
9364
- return /* @__PURE__ */ (0, import_jsx_runtime277.jsxs)(
9484
+ return /* @__PURE__ */ (0, import_jsx_runtime278.jsxs)(
9365
9485
  Box,
9366
9486
  {
9367
9487
  display: "flex",
@@ -9379,7 +9499,7 @@ var InternalHeader = (props) => {
9379
9499
  rest
9380
9500
  ),
9381
9501
  children: [
9382
- /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(Typography, { typographyType: "headingSmall", bold: true, as: "span", children: applicationHref ? /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
9502
+ /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(Typography, { typographyType: "headingSmall", bold: true, as: "span", children: applicationHref ? /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
9383
9503
  "a",
9384
9504
  {
9385
9505
  href: applicationHref,
@@ -9388,42 +9508,42 @@ var InternalHeader = (props) => {
9388
9508
  children: applicationName
9389
9509
  }
9390
9510
  ) : applicationName }),
9391
- /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(Typography, { typographyType: "bodyMedium", as: "span", children: applicationDesc }),
9392
- (hasContextMenu || navigation !== null) && /* @__PURE__ */ (0, import_jsx_runtime277.jsx)("div", { className: InternalHeader_default["bar-separator"] }),
9511
+ /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(Typography, { typographyType: "bodyMedium", as: "span", children: applicationDesc }),
9512
+ (hasContextMenu || navigation !== null) && /* @__PURE__ */ (0, import_jsx_runtime278.jsx)("div", { className: InternalHeader_default["bar-separator"] }),
9393
9513
  navigation,
9394
- hasContextMenu && /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
9514
+ hasContextMenu && /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
9395
9515
  ShowHide,
9396
9516
  {
9397
9517
  showBelow: !hasContextMenuLargeScreen && hasSmallScreenBreakpoint ? smallScreenBreakpoint : void 0,
9398
9518
  className: cn(InternalHeader_default["context-menu-group"]),
9399
- children: /* @__PURE__ */ (0, import_jsx_runtime277.jsxs)(OverflowMenuGroup, { children: [
9400
- /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
9519
+ children: /* @__PURE__ */ (0, import_jsx_runtime278.jsxs)(OverflowMenuGroup, { children: [
9520
+ /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
9401
9521
  Button,
9402
9522
  {
9403
9523
  icon: hasNavInContextMenu ? MenuIcon : MoreVerticalIcon,
9404
9524
  purpose: "tertiary",
9405
- "aria-label": t(texts16.openMenu)
9525
+ "aria-label": t(texts17.openMenu)
9406
9526
  }
9407
9527
  ),
9408
- /* @__PURE__ */ (0, import_jsx_runtime277.jsxs)(OverflowMenu, { className: InternalHeader_default["context-menu"], children: [
9409
- user && /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(OverflowMenuList, { children: user.href ? /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(OverflowMenuLink, { icon: PersonIcon, ...user }) : /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(OverflowMenuSpan, { icon: PersonIcon, ...user }) }),
9410
- hasNavInContextMenu && /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
9528
+ /* @__PURE__ */ (0, import_jsx_runtime278.jsxs)(OverflowMenu, { className: InternalHeader_default["context-menu"], children: [
9529
+ user && /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(OverflowMenuList, { children: user.href ? /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(OverflowMenuLink, { icon: PersonIcon, ...user }) : /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(OverflowMenuSpan, { icon: PersonIcon, ...user }) }),
9530
+ hasNavInContextMenu && /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
9411
9531
  ShowHide,
9412
9532
  {
9413
9533
  as: "nav",
9414
- "aria-label": t(texts16.siteNavigation),
9534
+ "aria-label": t(texts17.siteNavigation),
9415
9535
  showBelow: smallScreenBreakpoint,
9416
- children: /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(OverflowMenuList, { children: navItems.map((item, i) => /* @__PURE__ */ (0, import_react67.createElement)(OverflowMenuLink, { ...item, key: `nav-${i}` })) })
9536
+ children: /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(OverflowMenuList, { children: navItems.map((item, i) => /* @__PURE__ */ (0, import_react67.createElement)(OverflowMenuLink, { ...item, key: `nav-${i}` })) })
9417
9537
  }
9418
9538
  ),
9419
- hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
9539
+ hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
9420
9540
  ShowHide,
9421
9541
  {
9422
9542
  as: OverflowMenuDivider,
9423
9543
  showBelow: smallScreenBreakpoint
9424
9544
  }
9425
9545
  ),
9426
- hasContextMenuElements && /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(OverflowMenuList, { children: contextMenuItems.map((item, i) => {
9546
+ hasContextMenuElements && /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(OverflowMenuList, { children: contextMenuItems.map((item, i) => {
9427
9547
  return item.href ? /* @__PURE__ */ (0, import_react67.createElement)(
9428
9548
  OverflowMenuLink,
9429
9549
  {
@@ -9447,7 +9567,7 @@ var InternalHeader = (props) => {
9447
9567
  );
9448
9568
  };
9449
9569
  InternalHeader.displayName = "InternalHeader";
9450
- var texts16 = createTexts({
9570
+ var texts17 = createTexts({
9451
9571
  openMenu: {
9452
9572
  nb: "\xC5pne meny",
9453
9573
  no: "\xC5pne meny",
@@ -9472,7 +9592,7 @@ var List_default = {
9472
9592
  };
9473
9593
 
9474
9594
  // src/components/List/List.tsx
9475
- var import_jsx_runtime278 = require("react/jsx-runtime");
9595
+ var import_jsx_runtime279 = require("react/jsx-runtime");
9476
9596
  var List = ({
9477
9597
  listType = "unordered",
9478
9598
  typographyType = "inherit",
@@ -9483,7 +9603,7 @@ var List = ({
9483
9603
  ...rest
9484
9604
  }) => {
9485
9605
  const List2 = listType === "ordered" ? "ol" : "ul";
9486
- return /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
9606
+ return /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
9487
9607
  List2,
9488
9608
  {
9489
9609
  ...getBaseHTMLProps(id, className, htmlProps, rest),
@@ -9499,8 +9619,8 @@ var List = ({
9499
9619
  List.displayName = "List";
9500
9620
 
9501
9621
  // src/components/List/ListItem.tsx
9502
- var import_jsx_runtime279 = require("react/jsx-runtime");
9503
- var ListItem = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime279.jsx)("li", { ...rest, className: cn(className, List_default.li) });
9622
+ var import_jsx_runtime280 = require("react/jsx-runtime");
9623
+ var ListItem = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime280.jsx)("li", { ...rest, className: cn(className, List_default.li) });
9504
9624
  ListItem.displayName = "ListItem";
9505
9625
 
9506
9626
  // src/components/LocalMessage/LocalMessage.tsx
@@ -9525,7 +9645,7 @@ var LocalMessage_default = {
9525
9645
  };
9526
9646
 
9527
9647
  // src/components/LocalMessage/LocalMessage.tsx
9528
- var import_jsx_runtime280 = require("react/jsx-runtime");
9648
+ var import_jsx_runtime281 = require("react/jsx-runtime");
9529
9649
  var icons2 = {
9530
9650
  info: InfoIcon,
9531
9651
  danger: ErrorIcon,
@@ -9549,9 +9669,9 @@ var LocalMessage = ({
9549
9669
  const { t } = useTranslation();
9550
9670
  const [isClosed, setClosed] = (0, import_react68.useState)(false);
9551
9671
  if (isClosed) {
9552
- return /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(import_jsx_runtime280.Fragment, {});
9672
+ return /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(import_jsx_runtime281.Fragment, {});
9553
9673
  }
9554
- return /* @__PURE__ */ (0, import_jsx_runtime280.jsxs)(
9674
+ return /* @__PURE__ */ (0, import_jsx_runtime281.jsxs)(
9555
9675
  Box,
9556
9676
  {
9557
9677
  ...getBaseHTMLProps(
@@ -9572,15 +9692,15 @@ var LocalMessage = ({
9572
9692
  padding: "x0.75 x0.75 x0.75 x0.5",
9573
9693
  gap: "x0.5",
9574
9694
  children: [
9575
- /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(
9695
+ /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
9576
9696
  Icon,
9577
9697
  {
9578
9698
  icon: icons2[purpose],
9579
9699
  className: cn(LocalMessage_default.icon, LocalMessage_default.container__icon)
9580
9700
  }
9581
9701
  ),
9582
- /* @__PURE__ */ (0, import_jsx_runtime280.jsx)("div", { className: LocalMessage_default.container__text, children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime280.jsx)("span", { children: message }) }),
9583
- closable && /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(
9702
+ /* @__PURE__ */ (0, import_jsx_runtime281.jsx)("div", { className: LocalMessage_default.container__text, children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime281.jsx)("span", { children: message }) }),
9703
+ closable && /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
9584
9704
  Button,
9585
9705
  {
9586
9706
  icon: CloseIcon,
@@ -9615,7 +9735,7 @@ var Modal_default = {
9615
9735
  };
9616
9736
 
9617
9737
  // src/components/Modal/Modal.tsx
9618
- var import_jsx_runtime281 = require("react/jsx-runtime");
9738
+ var import_jsx_runtime282 = require("react/jsx-runtime");
9619
9739
  var Modal = ({
9620
9740
  isOpen = false,
9621
9741
  parentElement,
@@ -9666,14 +9786,14 @@ var Modal = ({
9666
9786
  useOnKeyDown(["Escape", "Esc"], () => handleClose());
9667
9787
  const hasTransitionedIn = useMountTransition(isOpen, 200);
9668
9788
  return (isOpen || hasTransitionedIn) && portalTarget ? (0, import_react_dom4.createPortal)(
9669
- /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
9789
+ /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
9670
9790
  Backdrop,
9671
9791
  {
9672
9792
  zIndex: "modal",
9673
9793
  isMounted: isOpen && hasTransitionedIn,
9674
9794
  ref: backdropRef,
9675
9795
  onClick: onBackdropClick,
9676
- children: /* @__PURE__ */ (0, import_jsx_runtime281.jsxs)(
9796
+ children: /* @__PURE__ */ (0, import_jsx_runtime282.jsxs)(
9677
9797
  Paper,
9678
9798
  {
9679
9799
  display: "flex",
@@ -9700,7 +9820,7 @@ var Modal = ({
9700
9820
  id: modalId,
9701
9821
  elevation: 4,
9702
9822
  children: [
9703
- /* @__PURE__ */ (0, import_jsx_runtime281.jsxs)(
9823
+ /* @__PURE__ */ (0, import_jsx_runtime282.jsxs)(
9704
9824
  HStack,
9705
9825
  {
9706
9826
  paddingBlock: "0 x0.75",
@@ -9710,8 +9830,8 @@ var Modal = ({
9710
9830
  width: "100%",
9711
9831
  className: Modal_default["header-container"],
9712
9832
  children: [
9713
- !!header && /* @__PURE__ */ (0, import_jsx_runtime281.jsx)("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(Heading, { level: 2, typographyType: "headingLarge", children: header }) : header }),
9714
- onClose && /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
9833
+ !!header && /* @__PURE__ */ (0, import_jsx_runtime282.jsx)("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(Heading, { level: 2, typographyType: "headingLarge", children: header }) : header }),
9834
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
9715
9835
  Button,
9716
9836
  {
9717
9837
  size: "small",
@@ -9725,7 +9845,7 @@ var Modal = ({
9725
9845
  ]
9726
9846
  }
9727
9847
  ),
9728
- /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(Box, { display: "grid", gap: "x1", children })
9848
+ /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(Box, { display: "grid", gap: "x1", children })
9729
9849
  ]
9730
9850
  }
9731
9851
  )
@@ -9737,7 +9857,7 @@ var Modal = ({
9737
9857
  Modal.displayName = "Modal";
9738
9858
 
9739
9859
  // src/components/Modal/ModalBody.tsx
9740
- var import_jsx_runtime282 = require("react/jsx-runtime");
9860
+ var import_jsx_runtime283 = require("react/jsx-runtime");
9741
9861
  var ModalBody = ({
9742
9862
  children,
9743
9863
  id,
@@ -9747,7 +9867,7 @@ var ModalBody = ({
9747
9867
  height,
9748
9868
  ...rest
9749
9869
  }) => {
9750
- return /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
9870
+ return /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(
9751
9871
  "div",
9752
9872
  {
9753
9873
  ...getBaseHTMLProps(
@@ -9769,8 +9889,8 @@ var ModalBody = ({
9769
9889
  ModalBody.displayName = "ModalBody";
9770
9890
 
9771
9891
  // src/components/Modal/ModalActions.tsx
9772
- var import_jsx_runtime283 = require("react/jsx-runtime");
9773
- var ModalActions = (props) => /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(Box, { display: "flex", flexWrap: "wrap", gap: "x1", ...props });
9892
+ var import_jsx_runtime284 = require("react/jsx-runtime");
9893
+ var ModalActions = (props) => /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Box, { display: "flex", flexWrap: "wrap", gap: "x1", ...props });
9774
9894
  ModalActions.displayName = "ModalActions";
9775
9895
 
9776
9896
  // src/components/Pagination/Pagination.tsx
@@ -10101,7 +10221,7 @@ var getCustomStyles = (size2, hasError, hasIcon, isReadOnly) => ({
10101
10221
  // src/components/Select/SelectComponents.tsx
10102
10222
  var import_react70 = __toESM(require("react"));
10103
10223
  var import_react_select = require("react-select");
10104
- var import_jsx_runtime284 = require("react/jsx-runtime");
10224
+ var import_jsx_runtime285 = require("react/jsx-runtime");
10105
10225
  var {
10106
10226
  Option,
10107
10227
  NoOptionsMessage,
@@ -10125,30 +10245,30 @@ var getIndicatorIconSize = (componentSize) => {
10125
10245
  var DDSOption = ({
10126
10246
  componentSize,
10127
10247
  ...props
10128
- }) => /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)(Option, { ...props, children: [
10129
- props.isSelected && /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
10248
+ }) => /* @__PURE__ */ (0, import_jsx_runtime285.jsxs)(Option, { ...props, children: [
10249
+ props.isSelected && /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
10130
10250
  props.children
10131
10251
  ] });
10132
- var CustomOption = (props) => /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Option, { ...props, children: import_react70.default.createElement(props.customElement, props) });
10252
+ var CustomOption = (props) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(Option, { ...props, children: import_react70.default.createElement(props.customElement, props) });
10133
10253
  var CustomSingleValue = ({
10134
10254
  id,
10135
10255
  Element,
10136
10256
  ...props
10137
- }) => /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(SingleValue, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Element, { ...props }) : props.children }) });
10138
- var DDSNoOptionsMessage = (props) => /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(NoOptionsMessage, { ...props, children: "Ingen treff" });
10257
+ }) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(SingleValue, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime285.jsx)("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(Element, { ...props }) : props.children }) });
10258
+ var DDSNoOptionsMessage = (props) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(NoOptionsMessage, { ...props, children: "Ingen treff" });
10139
10259
  var DDSClearIndicator = ({
10140
10260
  size: size2,
10141
10261
  ...props
10142
- }) => /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(ClearIndicator, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Icon, { icon: CloseSmallIcon, iconSize: getIndicatorIconSize(size2) }) });
10143
- var DDSMultiValueRemove = (props) => /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(MultiValueRemove, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
10262
+ }) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(ClearIndicator, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(Icon, { icon: CloseSmallIcon, iconSize: getIndicatorIconSize(size2) }) });
10263
+ var DDSMultiValueRemove = (props) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(MultiValueRemove, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
10144
10264
  var DDSDropdownIndicator = (props) => {
10145
10265
  const { className, componentSize, ...rest } = props;
10146
- return /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
10266
+ return /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
10147
10267
  DropdownIndicator,
10148
10268
  {
10149
10269
  ...rest,
10150
10270
  className: cn(className, Select_default["dropdown-indicator"]),
10151
- children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
10271
+ children: /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
10152
10272
  Icon,
10153
10273
  {
10154
10274
  icon: ChevronDownIcon,
@@ -10162,7 +10282,7 @@ var DDSInput = ({
10162
10282
  ariaInvalid,
10163
10283
  ariaDescribedby,
10164
10284
  ...props
10165
- }) => /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
10285
+ }) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
10166
10286
  Input2,
10167
10287
  {
10168
10288
  ...props,
@@ -10181,7 +10301,7 @@ function DDSControl(props) {
10181
10301
  innerProps,
10182
10302
  ...rest
10183
10303
  } = props;
10184
- return /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)(
10304
+ return /* @__PURE__ */ (0, import_jsx_runtime285.jsxs)(
10185
10305
  Control,
10186
10306
  {
10187
10307
  ...rest,
@@ -10196,7 +10316,7 @@ function DDSControl(props) {
10196
10316
  readOnly && Select_default["control--readonly"]
10197
10317
  ),
10198
10318
  children: [
10199
- icon && /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
10319
+ icon && /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
10200
10320
  Icon,
10201
10321
  {
10202
10322
  icon,
@@ -10214,14 +10334,13 @@ function DDSControl(props) {
10214
10334
  }
10215
10335
 
10216
10336
  // src/components/Select/Select.tsx
10217
- var import_jsx_runtime285 = require("react/jsx-runtime");
10337
+ var import_jsx_runtime286 = require("react/jsx-runtime");
10218
10338
  function Select({
10219
10339
  id,
10220
10340
  label,
10221
10341
  componentSize = "medium",
10222
10342
  errorMessage,
10223
10343
  tip,
10224
- required,
10225
10344
  "aria-required": ariaRequired,
10226
10345
  readOnly,
10227
10346
  options,
@@ -10254,10 +10373,9 @@ function Select({
10254
10373
  const generatedId = (0, import_react71.useId)();
10255
10374
  const uniqueId = id != null ? id : `${generatedId}-select`;
10256
10375
  const singleValueId = !isMulti ? `${uniqueId}-singleValue` : void 0;
10257
- const hasLabel = !!label;
10258
10376
  const hasErrorMessage = !!errorMessage;
10259
10377
  const hasIcon = !!icon;
10260
- const showRequiredStyling = !!(required || ariaRequired);
10378
+ const showRequiredStyling = !!(rest.required || ariaRequired);
10261
10379
  const tipId = derivativeIdGenerator(uniqueId, "tip");
10262
10380
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
10263
10381
  const inputWidth = getInputWidth(
@@ -10265,7 +10383,7 @@ function Select({
10265
10383
  componentSize === "xsmall" && "var(--dds-input-default-width-xsmall)"
10266
10384
  );
10267
10385
  const customInput = (0, import_react71.useCallback)(
10268
- (props) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
10386
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
10269
10387
  DDSInput,
10270
10388
  {
10271
10389
  ...props,
@@ -10283,7 +10401,7 @@ function Select({
10283
10401
  []
10284
10402
  );
10285
10403
  const customSingleValue = (0, import_react71.useCallback)(
10286
- (props) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
10404
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
10287
10405
  CustomSingleValue,
10288
10406
  {
10289
10407
  ...props,
@@ -10294,15 +10412,15 @@ function Select({
10294
10412
  []
10295
10413
  );
10296
10414
  const customClearIndicator = (0, import_react71.useCallback)(
10297
- (props) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(DDSClearIndicator, { ...props, size: componentSize }),
10415
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(DDSClearIndicator, { ...props, size: componentSize }),
10298
10416
  [componentSize]
10299
10417
  );
10300
10418
  const customDropdownIndicator = (0, import_react71.useCallback)(
10301
- (props) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(DDSDropdownIndicator, { ...props, componentSize }),
10419
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(DDSDropdownIndicator, { ...props, componentSize }),
10302
10420
  [componentSize]
10303
10421
  );
10304
10422
  const customControl = (0, import_react71.useCallback)(
10305
- (props) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
10423
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
10306
10424
  DDSControl,
10307
10425
  {
10308
10426
  ...props,
@@ -10317,9 +10435,9 @@ function Select({
10317
10435
  const customOptionComponent = (0, import_react71.useCallback)(
10318
10436
  (props) => {
10319
10437
  if (customOptionElement) {
10320
- return /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(CustomOption, { ...props, customElement: customOptionElement });
10438
+ return /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(CustomOption, { ...props, customElement: customOptionElement });
10321
10439
  } else {
10322
- return /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(DDSOption, { ...props, componentSize });
10440
+ return /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(DDSOption, { ...props, componentSize });
10323
10441
  }
10324
10442
  },
10325
10443
  [customOptionElement, componentSize]
@@ -10359,12 +10477,11 @@ function Select({
10359
10477
  Control: customControl
10360
10478
  },
10361
10479
  "aria-invalid": hasErrorMessage ? true : void 0,
10362
- required,
10363
10480
  onKeyDown: readOnlyKeyDownHandler("select", readOnly, onKeyDown),
10364
10481
  openMenuOnClick: readOnly ? false : openMenuOnClick ? openMenuOnClick : void 0,
10365
10482
  ...rest
10366
10483
  };
10367
- return /* @__PURE__ */ (0, import_jsx_runtime285.jsxs)(
10484
+ return /* @__PURE__ */ (0, import_jsx_runtime286.jsxs)(
10368
10485
  Box,
10369
10486
  {
10370
10487
  width: inputWidth,
@@ -10377,17 +10494,13 @@ function Select({
10377
10494
  ),
10378
10495
  style,
10379
10496
  children: [
10380
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
10381
- Label,
10382
- {
10383
- htmlFor: uniqueId,
10384
- showRequiredStyling,
10385
- className: Input_default.label,
10386
- readOnly,
10387
- children: label
10388
- }
10389
- ),
10390
- /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(import_react_select2.default, { ...reactSelectProps, ref }),
10497
+ renderLabel({
10498
+ label,
10499
+ htmlFor: uniqueId,
10500
+ showRequiredStyling,
10501
+ readOnly
10502
+ }),
10503
+ /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(import_react_select2.default, { ...reactSelectProps, ref }),
10391
10504
  renderInputMessage(tip, tipId, errorMessage, errorMessageId)
10392
10505
  ]
10393
10506
  }
@@ -10414,7 +10527,7 @@ var NativeSelect_default = {
10414
10527
  };
10415
10528
 
10416
10529
  // src/components/Select/NativeSelect/NativeSelect.tsx
10417
- var import_jsx_runtime286 = require("react/jsx-runtime");
10530
+ var import_jsx_runtime287 = require("react/jsx-runtime");
10418
10531
  var NativeSelect = ({
10419
10532
  ref,
10420
10533
  id,
@@ -10462,7 +10575,6 @@ var NativeSelect = ({
10462
10575
  const uniqueId = id != null ? id : `${generatedId}-native-select`;
10463
10576
  const hasErrorMessage = !!errorMessage;
10464
10577
  const hasTip = !!tip;
10465
- const hasLabel = !!label;
10466
10578
  const tipId = derivativeIdGenerator(uniqueId, "tip");
10467
10579
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
10468
10580
  const showRequiredStyling = !!(required || ariaRequired);
@@ -10481,19 +10593,15 @@ var NativeSelect = ({
10481
10593
  };
10482
10594
  const iconSize = componentSize === "medium" ? "medium" : "small";
10483
10595
  const showClearButton = clearable && hasValue && !readOnly && !rest.disabled;
10484
- return /* @__PURE__ */ (0, import_jsx_runtime286.jsxs)("div", { className, style, children: [
10485
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
10486
- Label,
10487
- {
10488
- className: Input_default.label,
10489
- htmlFor: uniqueId,
10490
- showRequiredStyling,
10491
- readOnly,
10492
- children: label
10493
- }
10494
- ),
10495
- /* @__PURE__ */ (0, import_jsx_runtime286.jsxs)(Box, { position: "relative", width: inputWidth, children: [
10496
- /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
10596
+ return /* @__PURE__ */ (0, import_jsx_runtime287.jsxs)("div", { className, style, children: [
10597
+ renderLabel({
10598
+ label,
10599
+ htmlFor: uniqueId,
10600
+ showRequiredStyling,
10601
+ readOnly
10602
+ }),
10603
+ /* @__PURE__ */ (0, import_jsx_runtime287.jsxs)(Box, { position: "relative", width: inputWidth, children: [
10604
+ /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10497
10605
  "select",
10498
10606
  {
10499
10607
  ref: useCombinedRef(ref, selectRef),
@@ -10527,7 +10635,7 @@ var NativeSelect = ({
10527
10635
  children
10528
10636
  }
10529
10637
  ),
10530
- showClearButton && /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
10638
+ showClearButton && /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10531
10639
  ClearButton,
10532
10640
  {
10533
10641
  "aria-label": t(commonTexts.clearSelect),
@@ -10536,7 +10644,7 @@ var NativeSelect = ({
10536
10644
  className: NativeSelect_default[`clear-button--${iconSize}`]
10537
10645
  }
10538
10646
  ),
10539
- !multiple && /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
10647
+ !multiple && /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10540
10648
  Icon,
10541
10649
  {
10542
10650
  icon: ChevronDownIcon,
@@ -10552,14 +10660,14 @@ var NativeSelectPlaceholder = ({
10552
10660
  children = "-- Velg fra listen --",
10553
10661
  value,
10554
10662
  ...rest
10555
- }) => /* @__PURE__ */ (0, import_jsx_runtime286.jsx)("option", { value: value != null ? value : "", selected: true, ...rest, children });
10663
+ }) => /* @__PURE__ */ (0, import_jsx_runtime287.jsx)("option", { value: value != null ? value : "", selected: true, ...rest, children });
10556
10664
  NativeSelectPlaceholder.displayName = "NativeSelectPlaceholder";
10557
10665
 
10558
10666
  // src/components/Select/utils.ts
10559
10667
  var createSelectOptions = (...args) => args.map((v) => ({ label: v, value: v }));
10560
10668
 
10561
10669
  // src/components/Pagination/Pagination.tsx
10562
- var import_jsx_runtime287 = require("react/jsx-runtime");
10670
+ var import_jsx_runtime288 = require("react/jsx-runtime");
10563
10671
  var Pagination = ({
10564
10672
  itemsAmount,
10565
10673
  defaultItemsPerPage = 10,
@@ -10603,7 +10711,7 @@ var Pagination = ({
10603
10711
  };
10604
10712
  const listItems = items.length > 0 ? items.map((item, i) => {
10605
10713
  const isActive = item === activePage;
10606
- return /* @__PURE__ */ (0, import_jsx_runtime287.jsx)("li", { className: Pagination_default.list__item, children: item !== "truncator" && typeof item === "number" ? /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10714
+ return /* @__PURE__ */ (0, import_jsx_runtime288.jsx)("li", { className: Pagination_default.list__item, children: item !== "truncator" && typeof item === "number" ? /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10607
10715
  Button,
10608
10716
  {
10609
10717
  purpose: isActive ? "primary" : "secondary",
@@ -10611,10 +10719,10 @@ var Pagination = ({
10611
10719
  onClick: (event) => {
10612
10720
  onPageChange(event, item);
10613
10721
  },
10614
- "aria-label": isActive ? t(texts17.currentPage(item)) : t(texts17.page(item)),
10722
+ "aria-label": isActive ? t(texts18.currentPage(item)) : t(texts18.page(item)),
10615
10723
  children: item
10616
10724
  }
10617
- ) : /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10725
+ ) : /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10618
10726
  Icon,
10619
10727
  {
10620
10728
  icon: MoreHorizontalIcon,
@@ -10622,7 +10730,7 @@ var Pagination = ({
10622
10730
  }
10623
10731
  ) }, `pagination-item-${i}`);
10624
10732
  }) : void 0;
10625
- const previousPageButton = /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10733
+ const previousPageButton = /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10626
10734
  Button,
10627
10735
  {
10628
10736
  purpose: "secondary",
@@ -10631,10 +10739,10 @@ var Pagination = ({
10631
10739
  onClick: (event) => {
10632
10740
  onPageChange(event, activePage - 1);
10633
10741
  },
10634
- "aria-label": t(texts17.previousPage)
10742
+ "aria-label": t(texts18.previousPage)
10635
10743
  }
10636
10744
  );
10637
- const nextPageButton = /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10745
+ const nextPageButton = /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10638
10746
  Button,
10639
10747
  {
10640
10748
  purpose: "secondary",
@@ -10643,31 +10751,31 @@ var Pagination = ({
10643
10751
  onClick: (event) => {
10644
10752
  onPageChange(event, activePage + 1);
10645
10753
  },
10646
- "aria-label": t(texts17.nextPage)
10754
+ "aria-label": t(texts18.nextPage)
10647
10755
  }
10648
10756
  );
10649
10757
  const isOnFirstPage = activePage === 1;
10650
10758
  const isOnLastPage = activePage === pagesLength;
10651
- const navigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime287.jsxs)(
10759
+ const navigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(
10652
10760
  Box,
10653
10761
  {
10654
10762
  as: "nav",
10655
10763
  ref,
10656
- "aria-label": t(texts17.pagination),
10764
+ "aria-label": t(texts18.pagination),
10657
10765
  display: "flex",
10658
10766
  alignItems: "center",
10659
10767
  ...!withSelect && !withCounter && {
10660
10768
  ...getBaseHTMLProps(id, className, htmlProps, rest)
10661
10769
  },
10662
10770
  children: [
10663
- /* @__PURE__ */ (0, import_jsx_runtime287.jsxs)(
10771
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(
10664
10772
  ShowHide,
10665
10773
  {
10666
10774
  as: "ol",
10667
10775
  hideBelow: smallScreenBreakpoint,
10668
10776
  className: Pagination_default.list,
10669
10777
  children: [
10670
- /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10778
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10671
10779
  "li",
10672
10780
  {
10673
10781
  className: cn(
@@ -10679,7 +10787,7 @@ var Pagination = ({
10679
10787
  }
10680
10788
  ),
10681
10789
  listItems,
10682
- /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10790
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10683
10791
  "li",
10684
10792
  {
10685
10793
  className: cn(
@@ -10693,14 +10801,14 @@ var Pagination = ({
10693
10801
  ]
10694
10802
  }
10695
10803
  ),
10696
- !!smallScreenBreakpoint && /* @__PURE__ */ (0, import_jsx_runtime287.jsxs)(
10804
+ !!smallScreenBreakpoint && /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(
10697
10805
  ShowHide,
10698
10806
  {
10699
10807
  as: "ol",
10700
10808
  showBelow: smallScreenBreakpoint,
10701
10809
  className: Pagination_default.list,
10702
10810
  children: [
10703
- /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10811
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10704
10812
  "li",
10705
10813
  {
10706
10814
  className: cn(
@@ -10708,7 +10816,7 @@ var Pagination = ({
10708
10816
  isOnFirstPage && Pagination_default["list__item--hidden"]
10709
10817
  ),
10710
10818
  "aria-hidden": isOnFirstPage,
10711
- children: /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10819
+ children: /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10712
10820
  Button,
10713
10821
  {
10714
10822
  purpose: "secondary",
@@ -10717,12 +10825,12 @@ var Pagination = ({
10717
10825
  onClick: (event) => {
10718
10826
  onPageChange(event, 1);
10719
10827
  },
10720
- "aria-label": t(texts17.firstPage)
10828
+ "aria-label": t(texts18.firstPage)
10721
10829
  }
10722
10830
  )
10723
10831
  }
10724
10832
  ),
10725
- /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10833
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10726
10834
  "li",
10727
10835
  {
10728
10836
  className: cn(
@@ -10733,7 +10841,7 @@ var Pagination = ({
10733
10841
  children: previousPageButton
10734
10842
  }
10735
10843
  ),
10736
- /* @__PURE__ */ (0, import_jsx_runtime287.jsx)("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10844
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsx)("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10737
10845
  Button,
10738
10846
  {
10739
10847
  size: "small",
@@ -10743,7 +10851,7 @@ var Pagination = ({
10743
10851
  children: activePage
10744
10852
  }
10745
10853
  ) }),
10746
- /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10854
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10747
10855
  "li",
10748
10856
  {
10749
10857
  className: cn(
@@ -10754,7 +10862,7 @@ var Pagination = ({
10754
10862
  children: nextPageButton
10755
10863
  }
10756
10864
  ),
10757
- /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10865
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10758
10866
  "li",
10759
10867
  {
10760
10868
  className: cn(
@@ -10762,7 +10870,7 @@ var Pagination = ({
10762
10870
  isOnLastPage && Pagination_default["list__item--hidden"]
10763
10871
  ),
10764
10872
  "aria-hidden": isOnLastPage,
10765
- children: /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10873
+ children: /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10766
10874
  Button,
10767
10875
  {
10768
10876
  purpose: "secondary",
@@ -10771,7 +10879,7 @@ var Pagination = ({
10771
10879
  onClick: (event) => {
10772
10880
  onPageChange(event, pagesLength);
10773
10881
  },
10774
- "aria-label": t(texts17.lastPage)
10882
+ "aria-label": t(texts18.lastPage)
10775
10883
  }
10776
10884
  )
10777
10885
  }
@@ -10784,7 +10892,7 @@ var Pagination = ({
10784
10892
  ) : null;
10785
10893
  const activePageFirstItem = activePage === 1 ? 1 : activePage * itemsPerPage - itemsPerPage + 1;
10786
10894
  const activePageLastItem = activePage === pagesLength ? itemsAmount : activePage * itemsPerPage;
10787
- return !withCounter && !withSelect ? navigation : /* @__PURE__ */ (0, import_jsx_runtime287.jsxs)(
10895
+ return !withCounter && !withSelect ? navigation : /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(
10788
10896
  Box,
10789
10897
  {
10790
10898
  display: "flex",
@@ -10795,8 +10903,8 @@ var Pagination = ({
10795
10903
  alignItems: styleUpToBreakpoint("center", smallScreenBreakpoint),
10796
10904
  ...getBaseHTMLProps(id, className, htmlProps, rest),
10797
10905
  children: [
10798
- /* @__PURE__ */ (0, import_jsx_runtime287.jsxs)("div", { className: Pagination_default.indicators, children: [
10799
- withSelect && /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10906
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)("div", { className: Pagination_default.indicators, children: [
10907
+ withSelect && /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10800
10908
  Select,
10801
10909
  {
10802
10910
  options: selectOptions,
@@ -10809,11 +10917,11 @@ var Pagination = ({
10809
10917
  isClearable: false,
10810
10918
  onChange: handleSelectChange,
10811
10919
  componentSize: "small",
10812
- "aria-label": t(texts17.itemsPerPage)
10920
+ "aria-label": t(texts18.itemsPerPage)
10813
10921
  }
10814
10922
  ),
10815
- withCounter && /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(Paragraph, { children: t(
10816
- texts17.showsAmountOfTotalItems(
10923
+ withCounter && /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(Paragraph, { children: t(
10924
+ texts18.showsAmountOfTotalItems(
10817
10925
  activePageFirstItem,
10818
10926
  activePageLastItem,
10819
10927
  itemsAmount
@@ -10826,7 +10934,7 @@ var Pagination = ({
10826
10934
  );
10827
10935
  };
10828
10936
  Pagination.displayName = "Pagination";
10829
- var texts17 = createTexts({
10937
+ var texts18 = createTexts({
10830
10938
  pagination: {
10831
10939
  nb: "Paginering",
10832
10940
  no: "Paginering",
@@ -10964,12 +11072,12 @@ var COUNTRIES = {
10964
11072
  CO: { name: "Colombia", id: "CO", dialCode: "+57" },
10965
11073
  KM: { name: "Komorene (\u202B\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631\u202C\u200E)", id: "KM", dialCode: "+269" },
10966
11074
  CD: {
10967
- name: "Kongo (DR) (Jamhuri ya Kisoemokrasia ya Kongo)",
11075
+ name: "Kongo, den demokratiske republikken (R\xE9publique d\xE9mocratique du Congo)",
10968
11076
  id: "CD",
10969
11077
  dialCode: "+243"
10970
11078
  },
10971
11079
  CG: {
10972
- name: "Kongo (Republikken) (Congo-Brazzaville)",
11080
+ name: "Kongo, republikken (R\xE9publique du Congo)",
10973
11081
  id: "CG",
10974
11082
  dialCode: "+242"
10975
11083
  },
@@ -11047,7 +11155,7 @@ var COUNTRIES = {
11047
11155
  IR: { name: "Iran (\u202B\u0627\u06CC\u0631\u0627\u0646\u202C\u200E)", id: "IR", dialCode: "+98" },
11048
11156
  IQ: { name: "Irak (\u202B\u0627\u0644\u0639\u0631\u0627\u0642\u202C\u200E)", id: "IQ", dialCode: "+964" },
11049
11157
  IE: { name: "Irland (\xC9ire)", id: "IE", dialCode: "+353" },
11050
- IM: { name: "Isle of Man", id: "IM", dialCode: "+44" },
11158
+ IM: { name: "Man (Isle of Man)", id: "IM", dialCode: "+44" },
11051
11159
  IL: { name: "Israel (\u202B\u05D9\u05E9\u05E8\u05D0\u05DC\u202C\u200E)", id: "IL", dialCode: "+972" },
11052
11160
  IT: { name: "Italia", id: "IT", dialCode: "+39" },
11053
11161
  JM: { name: "Jamaica", id: "JM", dialCode: "+1" },
@@ -11071,7 +11179,7 @@ var COUNTRIES = {
11071
11179
  LU: { name: "Luxembourg", id: "LU", dialCode: "+352" },
11072
11180
  MO: { name: "Macao (\u6FB3\u9580)", id: "MO", dialCode: "+853" },
11073
11181
  MK: {
11074
- name: "Nord-Makedonia (FYROM) (\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430)",
11182
+ name: "Nord-Makedonia (\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430)",
11075
11183
  id: "MK",
11076
11184
  dialCode: "+389"
11077
11185
  },
@@ -11160,7 +11268,7 @@ var COUNTRIES = {
11160
11268
  },
11161
11269
  LC: { name: "Saint Lucia", id: "LC", dialCode: "+1758" },
11162
11270
  MF: {
11163
- name: "Saint Martin (Saint-Martin (partie fran\xE7aise))",
11271
+ name: "Saint-Martin (Collectivit\xE9 de Saint-Martin)",
11164
11272
  id: "MF",
11165
11273
  dialCode: "+590"
11166
11274
  },
@@ -11284,7 +11392,7 @@ var PhoneInput_default = {
11284
11392
  };
11285
11393
 
11286
11394
  // src/components/PhoneInput/PhoneInput.tsx
11287
- var import_jsx_runtime288 = require("react/jsx-runtime");
11395
+ var import_jsx_runtime289 = require("react/jsx-runtime");
11288
11396
  var prioritizedCountries = [
11289
11397
  COUNTRIES.NO,
11290
11398
  COUNTRIES.SE,
@@ -11343,8 +11451,8 @@ var PhoneInput = ({
11343
11451
  }) => {
11344
11452
  var _a;
11345
11453
  const { t } = useTranslation();
11346
- const tGroupLabel = groupLabel != null ? groupLabel : t(texts18.countryCodeAndPhoneNumber);
11347
- const tSelectLabel = selectLabel != null ? selectLabel : t(texts18.countryCode);
11454
+ const tGroupLabel = groupLabel != null ? groupLabel : t(texts19.countryCodeAndPhoneNumber);
11455
+ const tSelectLabel = selectLabel != null ? selectLabel : t(texts19.countryCode);
11348
11456
  const generatedId = (0, import_react74.useId)();
11349
11457
  const uniqueId = (_a = props.id) != null ? _a : generatedId;
11350
11458
  const phoneInputId = `${uniqueId}-phone-input`;
@@ -11352,7 +11460,6 @@ var PhoneInput = ({
11352
11460
  const selectId = `${uniqueId}-country-code`;
11353
11461
  const hasErrorMessage = !!errorMessage;
11354
11462
  const hasTip = !!tip;
11355
- const hasLabel = !!label;
11356
11463
  const hasMessage = hasErrorMessage || hasTip;
11357
11464
  const tipId = derivativeIdGenerator(phoneInputId, "tip");
11358
11465
  const errorMessageId = derivativeIdGenerator(phoneInputId, "errorMessage");
@@ -11422,18 +11529,14 @@ var PhoneInput = ({
11422
11529
  const showRequiredStyling = !!(required || ariaRequired);
11423
11530
  const bp = props.smallScreenBreakpoint;
11424
11531
  const widthDefault = componentSize === "xsmall" && "var(--dds-input-default-width-xsmall)";
11425
- return /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)("div", { className: cn(className, Input_default.container), style, children: [
11426
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
11427
- Label,
11428
- {
11429
- htmlFor: phoneNumberId,
11430
- showRequiredStyling,
11431
- className: Input_default.label,
11432
- readOnly,
11433
- children: label
11434
- }
11435
- ),
11436
- /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(
11532
+ return /* @__PURE__ */ (0, import_jsx_runtime289.jsxs)("div", { className: cn(className, Input_default.container), style, children: [
11533
+ renderLabel({
11534
+ label,
11535
+ htmlFor: phoneNumberId,
11536
+ showRequiredStyling,
11537
+ readOnly
11538
+ }),
11539
+ /* @__PURE__ */ (0, import_jsx_runtime289.jsxs)(
11437
11540
  Box,
11438
11541
  {
11439
11542
  display: "flex",
@@ -11446,8 +11549,8 @@ var PhoneInput = ({
11446
11549
  role: "group",
11447
11550
  "aria-label": tGroupLabel,
11448
11551
  children: [
11449
- /* @__PURE__ */ (0, import_jsx_runtime288.jsx)("label", { className: utilStyles_default["visually-hidden"], htmlFor: selectId, children: tSelectLabel }),
11450
- /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
11552
+ /* @__PURE__ */ (0, import_jsx_runtime289.jsx)("label", { className: utilStyles_default["visually-hidden"], htmlFor: selectId, children: tSelectLabel }),
11553
+ /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
11451
11554
  NativeSelect,
11452
11555
  {
11453
11556
  width: styleUpToBreakpoint(
@@ -11468,11 +11571,11 @@ var PhoneInput = ({
11468
11571
  hasTip ? tipId : void 0,
11469
11572
  ariaDescribedby
11470
11573
  ]),
11471
- children: countryOptions.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime288.jsx)("option", { value: item.countryCode, children: item.label }, index))
11574
+ children: countryOptions.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime289.jsx)("option", { value: item.countryCode, children: item.label }, index))
11472
11575
  }
11473
11576
  ),
11474
- /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(Box, { width: "100%", className: Input_default["input-group"], children: [
11475
- /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
11577
+ /* @__PURE__ */ (0, import_jsx_runtime289.jsxs)(Box, { width: "100%", className: Input_default["input-group"], children: [
11578
+ /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
11476
11579
  "span",
11477
11580
  {
11478
11581
  className: cn(
@@ -11484,7 +11587,7 @@ var PhoneInput = ({
11484
11587
  children: callingCode
11485
11588
  }
11486
11589
  ),
11487
- /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
11590
+ /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
11488
11591
  Box,
11489
11592
  {
11490
11593
  as: StatefulInput,
@@ -11522,7 +11625,7 @@ var getCallingCode = (s) => {
11522
11625
  var _a;
11523
11626
  return (_a = s.substring(s.indexOf("+"), s.length)) != null ? _a : "";
11524
11627
  };
11525
- var texts18 = createTexts({
11628
+ var texts19 = createTexts({
11526
11629
  countryCode: {
11527
11630
  nb: "Landskode",
11528
11631
  no: "Landskode",
@@ -11555,7 +11658,7 @@ var PopoverContext = (0, import_react75.createContext)({});
11555
11658
  var usePopoverContext = () => (0, import_react75.useContext)(PopoverContext);
11556
11659
 
11557
11660
  // src/components/Popover/Popover.tsx
11558
- var import_jsx_runtime289 = require("react/jsx-runtime");
11661
+ var import_jsx_runtime290 = require("react/jsx-runtime");
11559
11662
  var Popover = ({
11560
11663
  id,
11561
11664
  header,
@@ -11643,7 +11746,7 @@ var Popover = ({
11643
11746
  });
11644
11747
  const hasTitle = !!header;
11645
11748
  const openCn = hasTransitionedIn && isOpen ? "open" : "closed";
11646
- const popover = /* @__PURE__ */ (0, import_jsx_runtime289.jsxs)(
11749
+ const popover = /* @__PURE__ */ (0, import_jsx_runtime290.jsxs)(
11647
11750
  Paper,
11648
11751
  {
11649
11752
  ...getBaseHTMLProps(
@@ -11674,15 +11777,15 @@ var Popover = ({
11674
11777
  elevation: 3,
11675
11778
  border: "border-subtle",
11676
11779
  children: [
11677
- header && /* @__PURE__ */ (0, import_jsx_runtime289.jsx)("div", { className: Popover_default.header, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(Heading, { level: 2, typographyType: "headingMedium", children: header }) : header }),
11678
- /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
11780
+ header && /* @__PURE__ */ (0, import_jsx_runtime290.jsx)("div", { className: Popover_default.header, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(Heading, { level: 2, typographyType: "headingMedium", children: header }) : header }),
11781
+ /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
11679
11782
  "div",
11680
11783
  {
11681
11784
  className: !hasTitle && withCloseButton ? Popover_default["content--closable--no-header"] : "",
11682
11785
  children
11683
11786
  }
11684
11787
  ),
11685
- withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
11788
+ withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
11686
11789
  Button,
11687
11790
  {
11688
11791
  icon: CloseIcon,
@@ -11702,7 +11805,7 @@ Popover.displayName = "Popover";
11702
11805
 
11703
11806
  // src/components/Popover/PopoverGroup.tsx
11704
11807
  var import_react77 = require("react");
11705
- var import_jsx_runtime290 = require("react/jsx-runtime");
11808
+ var import_jsx_runtime291 = require("react/jsx-runtime");
11706
11809
  var PopoverGroup = ({
11707
11810
  isOpen: propIsOpen,
11708
11811
  setIsOpen: propSetIsOpen,
@@ -11763,7 +11866,7 @@ var PopoverGroup = ({
11763
11866
  ref: combinedAnchorRef
11764
11867
  }) : child);
11765
11868
  });
11766
- return /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
11869
+ return /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(
11767
11870
  PopoverContext,
11768
11871
  {
11769
11872
  value: {
@@ -11814,7 +11917,7 @@ var ProgressTracker_default = {
11814
11917
 
11815
11918
  // src/components/ProgressTracker/ProgressTrackerItem.tsx
11816
11919
  var import_react79 = require("react");
11817
- var import_jsx_runtime291 = require("react/jsx-runtime");
11920
+ var import_jsx_runtime292 = require("react/jsx-runtime");
11818
11921
  var toItemState = (active, completed, disabled) => {
11819
11922
  if (disabled) {
11820
11923
  return "disabled";
@@ -11846,6 +11949,7 @@ var ProgressTrackerItem = (props) => {
11846
11949
  ...rest
11847
11950
  } = props;
11848
11951
  const { t } = useTranslation();
11952
+ const stepNumber = index + 1;
11849
11953
  const { activeStep, handleStepChange, direction } = useProgressTrackerContext();
11850
11954
  const active = activeStep === index;
11851
11955
  const itemState = toItemState(active, completed, disabled);
@@ -11857,20 +11961,20 @@ var ProgressTrackerItem = (props) => {
11857
11961
  };
11858
11962
  const stepNumberContent = (0, import_react79.useMemo)(() => {
11859
11963
  if (completed) {
11860
- return /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(Icon, { icon: CheckIcon, iconSize: "small" });
11964
+ return /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(Icon, { icon: CheckIcon, iconSize: "small" });
11861
11965
  }
11862
11966
  if (icon !== void 0) {
11863
- return /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(Icon, { icon, iconSize: "small" });
11967
+ return /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(Icon, { icon, iconSize: "small" });
11864
11968
  }
11865
- return index + 1;
11969
+ return stepNumber;
11866
11970
  }, [completed, icon, index]);
11867
11971
  function getTextColor2() {
11868
11972
  if (disabled) return "text-subtle";
11869
11973
  if (active) return "text-action-resting";
11870
11974
  }
11871
11975
  const isInactiveLink = disabled || active;
11872
- const stepContent = /* @__PURE__ */ (0, import_jsx_runtime291.jsxs)(import_jsx_runtime291.Fragment, { children: [
11873
- /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(
11976
+ const stepContent = /* @__PURE__ */ (0, import_jsx_runtime292.jsxs)(import_jsx_runtime292.Fragment, { children: [
11977
+ /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
11874
11978
  Box,
11875
11979
  {
11876
11980
  display: "flex",
@@ -11885,7 +11989,7 @@ var ProgressTrackerItem = (props) => {
11885
11989
  children: stepNumberContent
11886
11990
  }
11887
11991
  ),
11888
- /* @__PURE__ */ (0, import_jsx_runtime291.jsxs)(
11992
+ /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
11889
11993
  Typography,
11890
11994
  {
11891
11995
  as: "div",
@@ -11895,22 +11999,19 @@ var ProgressTrackerItem = (props) => {
11895
11999
  isInactiveLink && ProgressTracker_default["item-text--inactive-link"]
11896
12000
  ),
11897
12001
  color: getTextColor2(),
11898
- children: [
11899
- /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(VisuallyHidden, { children: t(texts19.stepTextBefore(index + 1)) }),
11900
- children,
11901
- /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(VisuallyHidden, { children: completed ? t(texts19.completed) : t(texts19.uncompleted) })
11902
- ]
12002
+ children
11903
12003
  }
11904
12004
  )
11905
12005
  ] });
11906
- return /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(
12006
+ const ariaLabel = props["aria-label"] ? props["aria-label"] : `${children}, ${stepNumber}. ${completed ? t(texts20.completed) : t(texts20.uncompleted)}`;
12007
+ return /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
11907
12008
  Box,
11908
12009
  {
11909
12010
  as: "li",
11910
12011
  display: direction === "row" ? "flex" : void 0,
11911
12012
  "aria-current": active ? "step" : void 0,
11912
12013
  className: cn(ProgressTracker_default["list-item"], ProgressTracker_default[`list-item--${direction}`]),
11913
- children: handleStepChange ? /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(
12014
+ children: handleStepChange ? /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
11914
12015
  Box,
11915
12016
  {
11916
12017
  as: StylelessButton,
@@ -11929,11 +12030,12 @@ var ProgressTrackerItem = (props) => {
11929
12030
  htmlProps,
11930
12031
  rest
11931
12032
  ),
12033
+ "aria-label": ariaLabel,
11932
12034
  onClick: () => handleClick(),
11933
12035
  disabled,
11934
12036
  children: stepContent
11935
12037
  }
11936
- ) : /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(
12038
+ ) : /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
11937
12039
  "div",
11938
12040
  {
11939
12041
  ...getBaseHTMLProps(
@@ -11942,6 +12044,7 @@ var ProgressTrackerItem = (props) => {
11942
12044
  htmlProps,
11943
12045
  rest
11944
12046
  ),
12047
+ "aria-label": ariaLabel,
11945
12048
  children: stepContent
11946
12049
  }
11947
12050
  )
@@ -11949,29 +12052,23 @@ var ProgressTrackerItem = (props) => {
11949
12052
  );
11950
12053
  };
11951
12054
  ProgressTrackerItem.displayName = "ProgressTracker.Item";
11952
- var texts19 = createTexts({
11953
- stepTextBefore: (index) => ({
11954
- nb: `${index}. trinn, `,
11955
- no: `${index}. trinn, `,
11956
- nn: `${index}. trinn, `,
11957
- en: `${index}. step, `
11958
- }),
12055
+ var texts20 = createTexts({
11959
12056
  uncompleted: {
11960
- nb: ", ikke ferdig",
11961
- no: ", ikke ferdig",
11962
- nn: ", ikkje ferdig",
11963
- en: "uncompleted"
12057
+ nb: "trinn ikke ferdig",
12058
+ no: "trinn ikke ferdig",
12059
+ nn: "trinn ikkje ferdig",
12060
+ en: "step uncompleted"
11964
12061
  },
11965
12062
  completed: {
11966
- nb: ", ferdig",
11967
- no: ", ferdig",
11968
- nn: ", ferdig",
11969
- en: ", completed"
12063
+ nb: "trinn ferdig",
12064
+ no: "trinn ferdig",
12065
+ nn: "trinn ferdig",
12066
+ en: "step completed"
11970
12067
  }
11971
12068
  });
11972
12069
 
11973
12070
  // src/components/ProgressTracker/ProgressTracker.tsx
11974
- var import_jsx_runtime292 = require("react/jsx-runtime");
12071
+ var import_jsx_runtime293 = require("react/jsx-runtime");
11975
12072
  var ProgressTracker = (() => {
11976
12073
  const Res = ({
11977
12074
  id,
@@ -12001,7 +12098,7 @@ var ProgressTracker = (() => {
12001
12098
  }, [children]);
12002
12099
  const isRow = direction === "row";
12003
12100
  const { "aria-label": ariaLabel } = htmlProps;
12004
- return /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
12101
+ return /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12005
12102
  ProgressTrackerContext,
12006
12103
  {
12007
12104
  value: {
@@ -12009,12 +12106,12 @@ var ProgressTracker = (() => {
12009
12106
  handleStepChange: handleChange,
12010
12107
  direction
12011
12108
  },
12012
- children: /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
12109
+ children: /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12013
12110
  "nav",
12014
12111
  {
12015
- "aria-label": ariaLabel != null ? ariaLabel : t(texts20.stepProgression),
12112
+ "aria-label": ariaLabel != null ? ariaLabel : t(texts21.stepProgression),
12016
12113
  ...getBaseHTMLProps(id, className, htmlProps, rest),
12017
- children: /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
12114
+ children: /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12018
12115
  Box,
12019
12116
  {
12020
12117
  as: StylelessOList,
@@ -12050,7 +12147,7 @@ function passIndexPropToProgressTrackerItem(children) {
12050
12147
  })
12051
12148
  );
12052
12149
  }
12053
- var texts20 = createTexts({
12150
+ var texts21 = createTexts({
12054
12151
  stepProgression: {
12055
12152
  nb: "Stegprogresjon",
12056
12153
  no: "Stegprogresjon",
@@ -12073,7 +12170,7 @@ var ProgressBar_default = {
12073
12170
  };
12074
12171
 
12075
12172
  // src/components/ProgressBar/ProgressBar.tsx
12076
- var import_jsx_runtime293 = require("react/jsx-runtime");
12173
+ var import_jsx_runtime294 = require("react/jsx-runtime");
12077
12174
  var PROGRESS_BAR_SIZES = createSizes("small", "medium");
12078
12175
  var ProgressBar = ({
12079
12176
  label,
@@ -12093,16 +12190,15 @@ var ProgressBar = ({
12093
12190
  const uniqueId = id != null ? id : `${generatedId}-searchInput`;
12094
12191
  const hasErrorMessage = !!errorMessage;
12095
12192
  const hasTip = !!tip;
12096
- const hasLabel = !!label;
12097
12193
  const hasValidMax = !!max && max > 0;
12098
12194
  const hasValidValue = !!value && value > 0 && (max !== void 0 && value <= max || max === void 0 && value <= 1);
12099
12195
  const tipId = derivativeIdGenerator(uniqueId, "tip");
12100
12196
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
12101
12197
  const fillPrecentage = hasValidValue && value / (max != null ? max : 1) * 100 + "%";
12102
12198
  const isIndeterminate = !hasValidValue && !hasErrorMessage;
12103
- return /* @__PURE__ */ (0, import_jsx_runtime293.jsxs)(Box, { width: "100%", className, style, children: [
12104
- hasLabel ? /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(Label, { htmlFor: uniqueId, children: label }) : void 0,
12105
- /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12199
+ return /* @__PURE__ */ (0, import_jsx_runtime294.jsxs)(Box, { width: "100%", className, style, children: [
12200
+ renderLabel({ label, htmlFor: uniqueId }),
12201
+ /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
12106
12202
  "progress",
12107
12203
  {
12108
12204
  id: uniqueId,
@@ -12118,13 +12214,13 @@ var ProgressBar = ({
12118
12214
  children: fillPrecentage
12119
12215
  }
12120
12216
  ),
12121
- /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12217
+ /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
12122
12218
  Box,
12123
12219
  {
12124
12220
  width: getInputWidth(width),
12125
12221
  height: size2 === "small" ? "x0.75" : "x1.5",
12126
12222
  className: cn(ProgressBar_default.progress),
12127
- children: /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12223
+ children: /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
12128
12224
  Box,
12129
12225
  {
12130
12226
  height: "100%",
@@ -12173,7 +12269,7 @@ var typographyTypes2 = {
12173
12269
 
12174
12270
  // src/components/Search/SearchSuggestionItem.tsx
12175
12271
  var import_react83 = require("react");
12176
- var import_jsx_runtime294 = require("react/jsx-runtime");
12272
+ var import_jsx_runtime295 = require("react/jsx-runtime");
12177
12273
  var SearchSuggestionItem = ({
12178
12274
  focus,
12179
12275
  className,
@@ -12188,7 +12284,7 @@ var SearchSuggestionItem = ({
12188
12284
  (_a = itemRef.current) == null ? void 0 : _a.focus();
12189
12285
  }
12190
12286
  }, [focus]);
12191
- return /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
12287
+ return /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
12192
12288
  StylelessButton,
12193
12289
  {
12194
12290
  ref: combinedRef,
@@ -12206,7 +12302,7 @@ var SearchSuggestionItem = ({
12206
12302
  SearchSuggestionItem.displayName = "SearchSuggestionItem";
12207
12303
 
12208
12304
  // src/components/Search/SearchSuggestions.tsx
12209
- var import_jsx_runtime295 = require("react/jsx-runtime");
12305
+ var import_jsx_runtime296 = require("react/jsx-runtime");
12210
12306
  var SearchSuggestions = ({
12211
12307
  id,
12212
12308
  searchId,
@@ -12226,7 +12322,7 @@ var SearchSuggestions = ({
12226
12322
  const { t } = useTranslation();
12227
12323
  const [focus] = useRoveFocus(suggestions == null ? void 0 : suggestions.length, showSuggestions);
12228
12324
  const suggestionsToRender = maxSuggestions ? suggestions == null ? void 0 : suggestions.slice(maxSuggestions) : suggestions;
12229
- return /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)(
12325
+ return /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)(
12230
12326
  Paper,
12231
12327
  {
12232
12328
  ...getBaseHTMLProps(
@@ -12250,7 +12346,7 @@ var SearchSuggestions = ({
12250
12346
  overflowY: "scroll",
12251
12347
  marginBlock: "x0.25 0",
12252
12348
  children: [
12253
- /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
12349
+ /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
12254
12350
  Box,
12255
12351
  {
12256
12352
  as: "h2",
@@ -12260,13 +12356,13 @@ var SearchSuggestions = ({
12260
12356
  children: "S\xF8keforslag"
12261
12357
  }
12262
12358
  ),
12263
- /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(StylelessList, { role: "listbox", "aria-labelledby": suggestionsHeaderId, children: suggestionsToRender.map((suggestion, index) => {
12264
- return /* @__PURE__ */ (0, import_jsx_runtime295.jsx)("li", { role: "option", children: /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
12359
+ /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(StylelessList, { role: "listbox", "aria-labelledby": suggestionsHeaderId, children: suggestionsToRender.map((suggestion, index) => {
12360
+ return /* @__PURE__ */ (0, import_jsx_runtime296.jsx)("li", { role: "option", children: /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
12265
12361
  SearchSuggestionItem,
12266
12362
  {
12267
12363
  index,
12268
12364
  focus: focus === index && showSuggestions,
12269
- "aria-label": t(texts21.search(suggestion)),
12365
+ "aria-label": t(texts22.search(suggestion)),
12270
12366
  onClick: onSuggestionClick,
12271
12367
  "aria-setsize": suggestionsToRender.length,
12272
12368
  "aria-posinset": index,
@@ -12280,7 +12376,7 @@ var SearchSuggestions = ({
12280
12376
  );
12281
12377
  };
12282
12378
  SearchSuggestions.displayName = "SearchSuggestions";
12283
- var texts21 = createTexts({
12379
+ var texts22 = createTexts({
12284
12380
  search: (suggestion) => ({
12285
12381
  no: `${suggestion} s\xF8k`,
12286
12382
  nb: `${suggestion} s\xF8k`,
@@ -12290,7 +12386,7 @@ var texts21 = createTexts({
12290
12386
  });
12291
12387
 
12292
12388
  // src/components/Search/Search.tsx
12293
- var import_jsx_runtime296 = require("react/jsx-runtime");
12389
+ var import_jsx_runtime297 = require("react/jsx-runtime");
12294
12390
  var getIconSize2 = (size2) => {
12295
12391
  switch (size2) {
12296
12392
  case "large":
@@ -12339,7 +12435,6 @@ var Search = ({
12339
12435
  var _a;
12340
12436
  const generatedId = (0, import_react84.useId)();
12341
12437
  const uniqueId = id != null ? id : `${generatedId}-searchInput`;
12342
- const hasLabel = !!label;
12343
12438
  const tipId = derivativeIdGenerator(uniqueId, "tip");
12344
12439
  const suggestionsId = derivativeIdGenerator(uniqueId, "suggestions");
12345
12440
  const suggestionsDescriptionId = derivativeIdGenerator(
@@ -12367,14 +12462,14 @@ var Search = ({
12367
12462
  } = buttonProps != null ? buttonProps : {};
12368
12463
  const hasSuggestions = !!context.suggestions;
12369
12464
  const showSearchButton = !!buttonProps && !!onClick;
12370
- const inputGroup = /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)(
12465
+ const inputGroup = /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)(
12371
12466
  HStack,
12372
12467
  {
12373
12468
  position: "relative",
12374
12469
  width: !showSearchButton ? width : void 0,
12375
12470
  className: !showSearchButton ? className : void 0,
12376
12471
  children: [
12377
- showIcon && /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
12472
+ showIcon && /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12378
12473
  Icon,
12379
12474
  {
12380
12475
  icon: SearchIcon,
@@ -12385,7 +12480,7 @@ var Search = ({
12385
12480
  )
12386
12481
  }
12387
12482
  ),
12388
- /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
12483
+ /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12389
12484
  Box,
12390
12485
  {
12391
12486
  as: Input,
@@ -12414,8 +12509,8 @@ var Search = ({
12414
12509
  )
12415
12510
  }
12416
12511
  ),
12417
- hasSuggestions && /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)(import_jsx_runtime296.Fragment, { children: [
12418
- /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
12512
+ hasSuggestions && /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)(import_jsx_runtime297.Fragment, { children: [
12513
+ /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12419
12514
  SearchSuggestions,
12420
12515
  {
12421
12516
  id: suggestionsId,
@@ -12427,13 +12522,13 @@ var Search = ({
12427
12522
  componentSize
12428
12523
  }
12429
12524
  ),
12430
- /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(VisuallyHidden, { id: suggestionsDescriptionId, children: t(texts22.useArrowKeys) })
12525
+ /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(VisuallyHidden, { id: suggestionsDescriptionId, children: t(texts23.useArrowKeys) })
12431
12526
  ] }),
12432
- hasValue && /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
12527
+ hasValue && /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12433
12528
  ClearButton,
12434
12529
  {
12435
12530
  size: getIconSize2(componentSize),
12436
- "aria-label": t(texts22.clearSearch),
12531
+ "aria-label": t(texts23.clearSearch),
12437
12532
  onClick: clearInput,
12438
12533
  className: Search_default["clear-button"]
12439
12534
  }
@@ -12441,10 +12536,10 @@ var Search = ({
12441
12536
  ]
12442
12537
  }
12443
12538
  );
12444
- return /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)(VStack, { gap: "x0.125", children: [
12445
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(Label, { htmlFor: uniqueId, children: label }),
12446
- /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)("div", { children: [
12447
- showSearchButton ? /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)(
12539
+ return /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)("div", { children: [
12540
+ renderLabel({ htmlFor: uniqueId, label }),
12541
+ /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)("div", { children: [
12542
+ showSearchButton ? /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)(
12448
12543
  Grid,
12449
12544
  {
12450
12545
  className,
@@ -12456,13 +12551,13 @@ var Search = ({
12456
12551
  style,
12457
12552
  children: [
12458
12553
  inputGroup,
12459
- /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
12554
+ /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12460
12555
  Button,
12461
12556
  {
12462
12557
  size: componentSize,
12463
12558
  onClick,
12464
12559
  ...otherButtonProps,
12465
- children: buttonLabel != null ? buttonLabel : t(texts22.search)
12560
+ children: buttonLabel != null ? buttonLabel : t(texts23.search)
12466
12561
  }
12467
12562
  )
12468
12563
  ]
@@ -12473,7 +12568,7 @@ var Search = ({
12473
12568
  ] });
12474
12569
  };
12475
12570
  Search.displayName = "Search";
12476
- var texts22 = createTexts({
12571
+ var texts23 = createTexts({
12477
12572
  clearSearch: {
12478
12573
  nb: "T\xF8m s\xF8k",
12479
12574
  no: "T\xF8m s\xF8k",
@@ -12496,7 +12591,7 @@ var texts22 = createTexts({
12496
12591
 
12497
12592
  // src/components/Search/SearchAutocompleteWrapper.tsx
12498
12593
  var import_react85 = require("react");
12499
- var import_jsx_runtime297 = require("react/jsx-runtime");
12594
+ var import_jsx_runtime298 = require("react/jsx-runtime");
12500
12595
  var SearchAutocompleteWrapper = (props) => {
12501
12596
  const {
12502
12597
  value,
@@ -12572,7 +12667,7 @@ var SearchAutocompleteWrapper = (props) => {
12572
12667
  inputValue,
12573
12668
  onSugggestionClick: handleSuggestionClick
12574
12669
  };
12575
- return /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(AutocompleteSearchContext, { value: contextProps, children });
12670
+ return /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(AutocompleteSearchContext, { value: contextProps, children });
12576
12671
  };
12577
12672
  SearchAutocompleteWrapper.displayName = "SearchAutocompleteWrapper";
12578
12673
 
@@ -12588,7 +12683,7 @@ var Skeleton_default = {
12588
12683
  };
12589
12684
 
12590
12685
  // src/components/Skeleton/Skeleton.tsx
12591
- var import_jsx_runtime298 = require("react/jsx-runtime");
12686
+ var import_jsx_runtime299 = require("react/jsx-runtime");
12592
12687
  var Skeleton = ({
12593
12688
  width,
12594
12689
  height,
@@ -12598,7 +12693,7 @@ var Skeleton = ({
12598
12693
  ref,
12599
12694
  ...rest
12600
12695
  }) => {
12601
- return /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
12696
+ return /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(
12602
12697
  Box,
12603
12698
  {
12604
12699
  width,
@@ -12618,7 +12713,7 @@ var SkipToContent_default = {
12618
12713
  };
12619
12714
 
12620
12715
  // src/components/SkipToContent/SkipToContent.tsx
12621
- var import_jsx_runtime299 = require("react/jsx-runtime");
12716
+ var import_jsx_runtime300 = require("react/jsx-runtime");
12622
12717
  var SkipToContent = ({
12623
12718
  text = "Til hovedinnhold",
12624
12719
  top = 0,
@@ -12628,12 +12723,12 @@ var SkipToContent = ({
12628
12723
  ...rest
12629
12724
  }) => {
12630
12725
  const { className: htmlPropsClassName, style, ...restHtmlProps } = htmlProps;
12631
- return /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(
12726
+ return /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(
12632
12727
  Contrast,
12633
12728
  {
12634
12729
  className: cn(className, htmlPropsClassName, SkipToContent_default.wrapper),
12635
12730
  style: { ...style, top },
12636
- children: /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(Link, { ...getBaseHTMLProps(id, restHtmlProps, rest), children: text })
12731
+ children: /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(Link, { ...getBaseHTMLProps(id, restHtmlProps, rest), children: text })
12637
12732
  }
12638
12733
  );
12639
12734
  };
@@ -12651,7 +12746,7 @@ var SplitButton_default = {
12651
12746
  };
12652
12747
 
12653
12748
  // src/components/SplitButton/SplitButton.tsx
12654
- var import_jsx_runtime300 = require("react/jsx-runtime");
12749
+ var import_jsx_runtime301 = require("react/jsx-runtime");
12655
12750
  var SplitButton = ({
12656
12751
  size: size2,
12657
12752
  primaryAction,
@@ -12666,8 +12761,8 @@ var SplitButton = ({
12666
12761
  purpose,
12667
12762
  size: size2
12668
12763
  };
12669
- return /* @__PURE__ */ (0, import_jsx_runtime300.jsxs)("div", { className: cn(className, SplitButton_default.container), ...rest, children: [
12670
- /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(
12764
+ return /* @__PURE__ */ (0, import_jsx_runtime301.jsxs)("div", { className: cn(className, SplitButton_default.container), ...rest, children: [
12765
+ /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(
12671
12766
  Button,
12672
12767
  {
12673
12768
  ...buttonStyleProps,
@@ -12676,13 +12771,13 @@ var SplitButton = ({
12676
12771
  className: SplitButton_default.main
12677
12772
  }
12678
12773
  ),
12679
- /* @__PURE__ */ (0, import_jsx_runtime300.jsxs)(OverflowMenuGroup, { isOpen, setIsOpen, children: [
12680
- /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(
12774
+ /* @__PURE__ */ (0, import_jsx_runtime301.jsxs)(OverflowMenuGroup, { isOpen, setIsOpen, children: [
12775
+ /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(
12681
12776
  Button,
12682
12777
  {
12683
12778
  ...buttonStyleProps,
12684
12779
  icon: isOpen ? ChevronUpIcon : ChevronDownIcon,
12685
- "aria-label": t(texts23.moreActions),
12780
+ "aria-label": t(texts24.moreActions),
12686
12781
  purpose,
12687
12782
  className: cn(
12688
12783
  SplitButton_default.option,
@@ -12691,12 +12786,12 @@ var SplitButton = ({
12691
12786
  type: "button"
12692
12787
  }
12693
12788
  ),
12694
- /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(OverflowMenuList, { children: secondaryActions.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(OverflowMenuButton, { ...item, children: item.children }, index)) }) })
12789
+ /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(OverflowMenuList, { children: secondaryActions.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(OverflowMenuButton, { ...item, children: item.children }, index)) }) })
12695
12790
  ] })
12696
12791
  ] });
12697
12792
  };
12698
12793
  SplitButton.displayName = "SplitButton";
12699
- var texts23 = createTexts({
12794
+ var texts24 = createTexts({
12700
12795
  moreActions: {
12701
12796
  nb: "Flere handlinger",
12702
12797
  no: "Flere handlinger",
@@ -12717,14 +12812,14 @@ var CollapsibleTableContext = (0, import_react87.createContext)({
12717
12812
  var useCollapsibleTableContext = () => (0, import_react87.useContext)(CollapsibleTableContext);
12718
12813
 
12719
12814
  // src/components/Table/normal/Body.tsx
12720
- var import_jsx_runtime301 = require("react/jsx-runtime");
12721
- var Body = (props) => /* @__PURE__ */ (0, import_jsx_runtime301.jsx)("tbody", { ...props });
12815
+ var import_jsx_runtime302 = require("react/jsx-runtime");
12816
+ var Body = (props) => /* @__PURE__ */ (0, import_jsx_runtime302.jsx)("tbody", { ...props });
12722
12817
  Body.displayName = "Table.Body";
12723
12818
 
12724
12819
  // src/components/Table/normal/Head.tsx
12725
12820
  var import_react88 = require("react");
12726
- var import_jsx_runtime302 = require("react/jsx-runtime");
12727
- var Head = ({ children, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime302.jsx)("thead", { ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(HeadContext, { value: true, children }) });
12821
+ var import_jsx_runtime303 = require("react/jsx-runtime");
12822
+ var Head = ({ children, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime303.jsx)("thead", { ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(HeadContext, { value: true, children }) });
12728
12823
  var HeadContext = (0, import_react88.createContext)(false);
12729
12824
  function useIsInTableHead() {
12730
12825
  const isInTableHead = (0, import_react88.useContext)(HeadContext);
@@ -12757,7 +12852,7 @@ var Table_default = {
12757
12852
  };
12758
12853
 
12759
12854
  // src/components/Table/normal/Cell.tsx
12760
- var import_jsx_runtime303 = require("react/jsx-runtime");
12855
+ var import_jsx_runtime304 = require("react/jsx-runtime");
12761
12856
  var Cell = ({
12762
12857
  children,
12763
12858
  type: _type,
@@ -12770,7 +12865,7 @@ var Cell = ({
12770
12865
  const type = _type != null ? _type : isInHead ? "head" : "data";
12771
12866
  const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
12772
12867
  const isComplexLayout = layout === "text and icon";
12773
- return isCollapsibleChild ? /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(
12868
+ return isCollapsibleChild ? /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(
12774
12869
  "th",
12775
12870
  {
12776
12871
  ...rest,
@@ -12779,26 +12874,26 @@ var Cell = ({
12779
12874
  !isComplexLayout && Table_default[`cell--${layout}`],
12780
12875
  Table_default["cell--head"]
12781
12876
  ),
12782
- children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime303.jsx)("div", { className: Table_default.cell__inner, children }) : children
12877
+ children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime304.jsx)("div", { className: Table_default.cell__inner, children }) : children
12783
12878
  }
12784
- ) : /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(
12879
+ ) : /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(
12785
12880
  "td",
12786
12881
  {
12787
12882
  ...rest,
12788
12883
  className: cn(className, !isComplexLayout && Table_default[`cell--${layout}`]),
12789
- children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime303.jsx)("div", { className: Table_default.cell__inner, children }) : children
12884
+ children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime304.jsx)("div", { className: Table_default.cell__inner, children }) : children
12790
12885
  }
12791
12886
  );
12792
12887
  };
12793
12888
  Cell.displayName = "Table.Cell";
12794
12889
 
12795
12890
  // src/components/Table/normal/Foot.tsx
12796
- var import_jsx_runtime304 = require("react/jsx-runtime");
12797
- var Foot = (props) => /* @__PURE__ */ (0, import_jsx_runtime304.jsx)("tfoot", { ...props });
12891
+ var import_jsx_runtime305 = require("react/jsx-runtime");
12892
+ var Foot = (props) => /* @__PURE__ */ (0, import_jsx_runtime305.jsx)("tfoot", { ...props });
12798
12893
  Foot.displayName = "Table.Foot";
12799
12894
 
12800
12895
  // src/components/Table/normal/Row.tsx
12801
- var import_jsx_runtime305 = require("react/jsx-runtime");
12896
+ var import_jsx_runtime306 = require("react/jsx-runtime");
12802
12897
  var Row = ({
12803
12898
  type: _type,
12804
12899
  mode = "normal",
@@ -12809,7 +12904,7 @@ var Row = ({
12809
12904
  }) => {
12810
12905
  const isInHeader = useIsInTableHead();
12811
12906
  const type = _type != null ? _type : isInHeader ? "head" : "body";
12812
- return /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
12907
+ return /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
12813
12908
  "tr",
12814
12909
  {
12815
12910
  className: cn(
@@ -12829,12 +12924,12 @@ var Row = ({
12829
12924
  Row.displayName = "Table.Row";
12830
12925
 
12831
12926
  // src/components/Table/normal/SortCell.tsx
12832
- var import_jsx_runtime306 = require("react/jsx-runtime");
12927
+ var import_jsx_runtime307 = require("react/jsx-runtime");
12833
12928
  var makeSortIcon = (isSorted, sortOrder) => {
12834
12929
  if (!isSorted || !sortOrder) {
12835
- return /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
12930
+ return /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
12836
12931
  }
12837
- return sortOrder === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
12932
+ return sortOrder === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
12838
12933
  };
12839
12934
  var SortCell = ({
12840
12935
  isSorted,
@@ -12844,17 +12939,17 @@ var SortCell = ({
12844
12939
  ...rest
12845
12940
  }) => {
12846
12941
  const { t } = useTranslation();
12847
- return /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
12942
+ return /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
12848
12943
  Cell,
12849
12944
  {
12850
12945
  type: "head",
12851
12946
  "aria-sort": isSorted && sortOrder ? sortOrder : void 0,
12852
12947
  ...rest,
12853
- children: /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)(
12948
+ children: /* @__PURE__ */ (0, import_jsx_runtime307.jsxs)(
12854
12949
  StylelessButton,
12855
12950
  {
12856
12951
  onClick,
12857
- "aria-description": t(texts24.changeSort),
12952
+ "aria-description": t(texts25.changeSort),
12858
12953
  className: cn(Table_default["sort-button"], focusable),
12859
12954
  children: [
12860
12955
  children,
@@ -12867,7 +12962,7 @@ var SortCell = ({
12867
12962
  );
12868
12963
  };
12869
12964
  SortCell.displayName = "Table.SortCell";
12870
- var texts24 = createTexts({
12965
+ var texts25 = createTexts({
12871
12966
  changeSort: {
12872
12967
  nb: "Aktiver for \xE5 endre sorteringsrekkef\xF8lge",
12873
12968
  no: "Aktiver for \xE5 endre sorteringsrekkef\xF8lge",
@@ -12877,7 +12972,7 @@ var texts24 = createTexts({
12877
12972
  });
12878
12973
 
12879
12974
  // src/components/Table/normal/Table.tsx
12880
- var import_jsx_runtime307 = require("react/jsx-runtime");
12975
+ var import_jsx_runtime308 = require("react/jsx-runtime");
12881
12976
  var Table = ({
12882
12977
  size: size2 = "medium",
12883
12978
  stickyHeader,
@@ -12885,7 +12980,7 @@ var Table = ({
12885
12980
  className,
12886
12981
  children,
12887
12982
  ...rest
12888
- }) => /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
12983
+ }) => /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12889
12984
  "table",
12890
12985
  {
12891
12986
  ...rest,
@@ -12904,7 +12999,7 @@ Table.displayName = "Table";
12904
12999
 
12905
13000
  // src/components/Table/normal/TableWrapper.tsx
12906
13001
  var import_react89 = require("react");
12907
- var import_jsx_runtime308 = require("react/jsx-runtime");
13002
+ var import_jsx_runtime309 = require("react/jsx-runtime");
12908
13003
  var TableWrapper = ({ className, ...rest }) => {
12909
13004
  const themeContext = (0, import_react89.useContext)(ThemeContext);
12910
13005
  const container2 = themeContext == null ? void 0 : themeContext.el;
@@ -12929,7 +13024,7 @@ var TableWrapper = ({ className, ...rest }) => {
12929
13024
  window.addEventListener("resize", handleResize);
12930
13025
  return () => window.removeEventListener("resize", handleResize);
12931
13026
  });
12932
- return /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
13027
+ return /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
12933
13028
  "div",
12934
13029
  {
12935
13030
  ref: wrapperRef,
@@ -12956,7 +13051,7 @@ Table2.Row = Row;
12956
13051
  Table2.Foot = Foot;
12957
13052
 
12958
13053
  // src/components/Table/collapsible/CollapsibleRow.tsx
12959
- var import_jsx_runtime309 = require("react/jsx-runtime");
13054
+ var import_jsx_runtime310 = require("react/jsx-runtime");
12960
13055
  var CollapsibleRow = ({
12961
13056
  type: _type,
12962
13057
  className,
@@ -12999,40 +13094,40 @@ var CollapsibleRow = ({
12999
13094
  const collapsedRenderedChildren = isCollapsed && collapsedHeaderValues.length > 0 ? collapsedChildren.map(function(child, index) {
13000
13095
  const id = derivativeIdGenerator(prefix2, index.toString());
13001
13096
  collapsibleIds.push(id);
13002
- return /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(import_react90.Fragment, { children: [
13003
- /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
13097
+ return /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)(import_react90.Fragment, { children: [
13098
+ /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
13004
13099
  (0, import_react90.isValidElement)(child) && (0, import_react90.cloneElement)(child, {
13005
13100
  collapsibleProps: { isCollapsibleChild: true }
13006
13101
  })
13007
13102
  ] }, `DL-${index}`);
13008
13103
  }) : null;
13009
- const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(Row, { ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
13104
+ const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(Row, { ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
13010
13105
  const definingColumnCells = childrenArray.slice().filter((column, index) => definingColumnIndex.indexOf(index) > -1).sort((a, b) => {
13011
13106
  return definingColumnIndex.indexOf(childrenArray.indexOf(a)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
13012
13107
  });
13013
13108
  const headerRow = () => {
13014
13109
  if (type !== "head" || !isCollapsed) return null;
13015
- return /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(Row, { ref, ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(import_jsx_runtime309.Fragment, { children: [
13110
+ return /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(Row, { ref, ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)(import_jsx_runtime310.Fragment, { children: [
13016
13111
  definingColumnCells,
13017
- /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(Table2.Cell, { type: "head", layout: "center", children: [
13018
- t(texts25.expand),
13019
- /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(VisuallyHidden, { children: t(texts25.row) })
13112
+ /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)(Table2.Cell, { type: "head", layout: "center", children: [
13113
+ t(texts26.expand),
13114
+ /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(VisuallyHidden, { children: t(texts26.row) })
13020
13115
  ] })
13021
13116
  ] }) });
13022
13117
  };
13023
13118
  const idList = spaceSeparatedIdListGenerator(collapsibleIds);
13024
13119
  const rowWithChevron = () => {
13025
13120
  if (type !== "body" || !isCollapsed) return null;
13026
- return /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
13121
+ return /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
13027
13122
  definingColumnCells,
13028
- /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(Table2.Cell, { children: /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
13123
+ /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(Table2.Cell, { children: /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
13029
13124
  StylelessButton,
13030
13125
  {
13031
13126
  onClick: () => setChildrenCollapsed(!childrenCollapsed),
13032
13127
  "aria-expanded": !childrenCollapsed,
13033
13128
  "aria-controls": idList,
13034
13129
  className: cn(Table_default["collapse-button"], focusable),
13035
- children: /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
13130
+ children: /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
13036
13131
  AnimatedChevronUpDown,
13037
13132
  {
13038
13133
  isUp: childrenCollapsed ? false : true,
@@ -13044,16 +13139,16 @@ var CollapsibleRow = ({
13044
13139
  ) })
13045
13140
  ] });
13046
13141
  };
13047
- return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(import_jsx_runtime309.Fragment, { children: [
13142
+ return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)(import_jsx_runtime310.Fragment, { children: [
13048
13143
  headerRow(),
13049
- type === "body" && /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(import_jsx_runtime309.Fragment, { children: [
13144
+ type === "body" && /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)(import_jsx_runtime310.Fragment, { children: [
13050
13145
  rowWithChevron(),
13051
13146
  childrenCollapsed ? null : collapsedRows
13052
13147
  ] })
13053
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(Row, { ref, ...rowProps(), children });
13148
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(Row, { ref, ...rowProps(), children });
13054
13149
  };
13055
13150
  CollapsibleRow.displayName = "CollapsibleTable.Row";
13056
- var texts25 = createTexts({
13151
+ var texts26 = createTexts({
13057
13152
  expand: {
13058
13153
  nb: "Utvid",
13059
13154
  no: "Utvid",
@@ -13069,14 +13164,14 @@ var texts25 = createTexts({
13069
13164
  });
13070
13165
 
13071
13166
  // src/components/Table/collapsible/CollapsibleTable.tsx
13072
- var import_jsx_runtime310 = require("react/jsx-runtime");
13167
+ var import_jsx_runtime311 = require("react/jsx-runtime");
13073
13168
  var CollapsibleTable = ({
13074
13169
  isCollapsed,
13075
13170
  headerValues,
13076
13171
  definingColumnIndex = [0],
13077
13172
  ...rest
13078
13173
  }) => {
13079
- return /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
13174
+ return /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(
13080
13175
  CollapsibleTableContext,
13081
13176
  {
13082
13177
  value: {
@@ -13084,7 +13179,7 @@ var CollapsibleTable = ({
13084
13179
  headerValues,
13085
13180
  definingColumnIndex
13086
13181
  },
13087
- children: /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(Table2, { ...rest })
13182
+ children: /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(Table2, { ...rest })
13088
13183
  }
13089
13184
  );
13090
13185
  };
@@ -13130,13 +13225,13 @@ var Tabs_default = {
13130
13225
 
13131
13226
  // src/components/Tabs/TabWidthContext.tsx
13132
13227
  var import_react92 = require("react");
13133
- var import_jsx_runtime311 = require("react/jsx-runtime");
13228
+ var import_jsx_runtime312 = require("react/jsx-runtime");
13134
13229
  var TabContext = (0, import_react92.createContext)(null);
13135
13230
  function TabWidthContextProvider({
13136
13231
  children,
13137
13232
  onChangeWidths
13138
13233
  }) {
13139
- return /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(
13234
+ return /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(
13140
13235
  TabContext,
13141
13236
  {
13142
13237
  value: {
@@ -13168,7 +13263,7 @@ function useSetTabWidth(index, width) {
13168
13263
  }
13169
13264
 
13170
13265
  // src/components/Tabs/AddTabButton.tsx
13171
- var import_jsx_runtime312 = require("react/jsx-runtime");
13266
+ var import_jsx_runtime313 = require("react/jsx-runtime");
13172
13267
  var AddTabButton = ({
13173
13268
  ref,
13174
13269
  children,
@@ -13181,7 +13276,7 @@ var AddTabButton = ({
13181
13276
  const buttonRef = (0, import_react93.useRef)(null);
13182
13277
  const combinedRef = useCombinedRef(ref, buttonRef);
13183
13278
  const { tabContentDirection, size: size2 } = useTabsContext();
13184
- return /* @__PURE__ */ (0, import_jsx_runtime312.jsxs)(
13279
+ return /* @__PURE__ */ (0, import_jsx_runtime313.jsxs)(
13185
13280
  "button",
13186
13281
  {
13187
13282
  ...rest,
@@ -13194,8 +13289,8 @@ var AddTabButton = ({
13194
13289
  focus_default["focusable--inset"]
13195
13290
  ),
13196
13291
  children: [
13197
- /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(Icon, { icon: PlusIcon, iconSize: "inherit" }),
13198
- /* @__PURE__ */ (0, import_jsx_runtime312.jsx)("span", { children })
13292
+ /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(Icon, { icon: PlusIcon, iconSize: "inherit" }),
13293
+ /* @__PURE__ */ (0, import_jsx_runtime313.jsx)("span", { children })
13199
13294
  ]
13200
13295
  }
13201
13296
  );
@@ -13204,7 +13299,7 @@ AddTabButton.displayName = "AddTabButton";
13204
13299
 
13205
13300
  // src/components/Tabs/Tabs.tsx
13206
13301
  var import_react94 = require("react");
13207
- var import_jsx_runtime313 = require("react/jsx-runtime");
13302
+ var import_jsx_runtime314 = require("react/jsx-runtime");
13208
13303
  var TABS_SIZES = createSizes("small", "medium");
13209
13304
  var Tabs = ({
13210
13305
  id,
@@ -13234,7 +13329,7 @@ var Tabs = ({
13234
13329
  setActiveTab(activeTab);
13235
13330
  }
13236
13331
  }, [activeTab, thisActiveTab]);
13237
- return /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
13332
+ return /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
13238
13333
  TabsContext,
13239
13334
  {
13240
13335
  value: {
@@ -13249,7 +13344,7 @@ var Tabs = ({
13249
13344
  tabContentDirection,
13250
13345
  addTabButtonProps
13251
13346
  },
13252
- children: /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
13347
+ children: /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
13253
13348
  Box,
13254
13349
  {
13255
13350
  ...getBaseHTMLProps(uniqueId, className, htmlProps, rest),
@@ -13264,7 +13359,7 @@ Tabs.displayName = "Tabs";
13264
13359
 
13265
13360
  // src/components/Tabs/Tab.tsx
13266
13361
  var import_react95 = require("react");
13267
- var import_jsx_runtime314 = require("react/jsx-runtime");
13362
+ var import_jsx_runtime315 = require("react/jsx-runtime");
13268
13363
  var Tab = ({
13269
13364
  active = false,
13270
13365
  icon,
@@ -13306,7 +13401,7 @@ var Tab = ({
13306
13401
  handleSelect();
13307
13402
  onKeyDown == null ? void 0 : onKeyDown(e);
13308
13403
  };
13309
- return /* @__PURE__ */ (0, import_jsx_runtime314.jsxs)(
13404
+ return /* @__PURE__ */ (0, import_jsx_runtime315.jsxs)(
13310
13405
  "button",
13311
13406
  {
13312
13407
  ...getBaseHTMLProps(
@@ -13330,8 +13425,8 @@ var Tab = ({
13330
13425
  onKeyDown: handleOnKeyDown,
13331
13426
  tabIndex: focus ? 0 : -1,
13332
13427
  children: [
13333
- icon && /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(Icon, { icon, iconSize: "inherit" }),
13334
- /* @__PURE__ */ (0, import_jsx_runtime314.jsx)("span", { children })
13428
+ icon && /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(Icon, { icon, iconSize: "inherit" }),
13429
+ /* @__PURE__ */ (0, import_jsx_runtime315.jsx)("span", { children })
13335
13430
  ]
13336
13431
  }
13337
13432
  );
@@ -13340,7 +13435,7 @@ Tab.displayName = "Tab";
13340
13435
 
13341
13436
  // src/components/Tabs/TabList.tsx
13342
13437
  var import_react96 = require("react");
13343
- var import_jsx_runtime315 = require("react/jsx-runtime");
13438
+ var import_jsx_runtime316 = require("react/jsx-runtime");
13344
13439
  var TabList = ({
13345
13440
  children,
13346
13441
  id,
@@ -13398,7 +13493,7 @@ var TabList = ({
13398
13493
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
13399
13494
  ["--dds-tab-widths"]: widths.join(" ")
13400
13495
  };
13401
- return /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ (0, import_jsx_runtime315.jsxs)(
13496
+ return /* @__PURE__ */ (0, import_jsx_runtime316.jsx)(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ (0, import_jsx_runtime316.jsxs)(
13402
13497
  "div",
13403
13498
  {
13404
13499
  ...rest,
@@ -13418,7 +13513,7 @@ var TabList = ({
13418
13513
  style: { ...style, ...customWidths },
13419
13514
  children: [
13420
13515
  tabListChildren,
13421
- hasButton && /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
13516
+ hasButton && /* @__PURE__ */ (0, import_jsx_runtime316.jsx)(
13422
13517
  AddTabButton,
13423
13518
  {
13424
13519
  index: tabListChildren ? tabListChildren.length : 0,
@@ -13432,7 +13527,7 @@ var TabList = ({
13432
13527
  TabList.displayName = "TabList";
13433
13528
 
13434
13529
  // src/components/Tabs/TabPanel.tsx
13435
- var import_jsx_runtime316 = require("react/jsx-runtime");
13530
+ var import_jsx_runtime317 = require("react/jsx-runtime");
13436
13531
  var TabPanel = ({
13437
13532
  active = false,
13438
13533
  children,
@@ -13441,7 +13536,7 @@ var TabPanel = ({
13441
13536
  htmlProps,
13442
13537
  padding = "x0.25",
13443
13538
  ...rest
13444
- }) => /* @__PURE__ */ (0, import_jsx_runtime316.jsx)(
13539
+ }) => /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(
13445
13540
  Box,
13446
13541
  {
13447
13542
  padding,
@@ -13456,7 +13551,7 @@ TabPanel.displayName = "TabPanel";
13456
13551
 
13457
13552
  // src/components/Tabs/TabPanels.tsx
13458
13553
  var import_react97 = require("react");
13459
- var import_jsx_runtime317 = require("react/jsx-runtime");
13554
+ var import_jsx_runtime318 = require("react/jsx-runtime");
13460
13555
  var TabPanels = ({ children, ref, ...rest }) => {
13461
13556
  const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
13462
13557
  const combinedRef = useCombinedRef(ref, tabPanelsRef);
@@ -13471,7 +13566,7 @@ var TabPanels = ({ children, ref, ...rest }) => {
13471
13566
  }
13472
13567
  });
13473
13568
  });
13474
- return /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(Box, { ref: combinedRef, ...rest, children: panelChildren });
13569
+ return /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(Box, { ref: combinedRef, ...rest, children: panelChildren });
13475
13570
  };
13476
13571
  TabPanels.displayName = "TabPanels";
13477
13572
 
@@ -13492,7 +13587,7 @@ var Tag_default = {
13492
13587
  };
13493
13588
 
13494
13589
  // src/components/Tag/Tag.tsx
13495
- var import_jsx_runtime318 = require("react/jsx-runtime");
13590
+ var import_jsx_runtime319 = require("react/jsx-runtime");
13496
13591
  var icons3 = {
13497
13592
  info: InfoIcon,
13498
13593
  danger: ErrorIcon,
@@ -13512,7 +13607,7 @@ var Tag = ({
13512
13607
  ...rest
13513
13608
  }) => {
13514
13609
  const icon = icons3[purpose];
13515
- return /* @__PURE__ */ (0, import_jsx_runtime318.jsxs)(
13610
+ return /* @__PURE__ */ (0, import_jsx_runtime319.jsxs)(
13516
13611
  TextOverflowEllipsisWrapper,
13517
13612
  {
13518
13613
  ...getBaseHTMLProps(
@@ -13528,8 +13623,8 @@ var Tag = ({
13528
13623
  rest
13529
13624
  ),
13530
13625
  children: [
13531
- withIcon && icon && /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(Icon, { icon, iconSize: "small" }),
13532
- /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(TextOverflowEllipsisInner, { children: children != null ? children : text })
13626
+ withIcon && icon && /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(Icon, { icon, iconSize: "small" }),
13627
+ /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(TextOverflowEllipsisInner, { children: children != null ? children : text })
13533
13628
  ]
13534
13629
  }
13535
13630
  );
@@ -13559,7 +13654,7 @@ var TextInput_default = {
13559
13654
  };
13560
13655
 
13561
13656
  // src/components/TextInput/TextInput.tsx
13562
- var import_jsx_runtime319 = require("react/jsx-runtime");
13657
+ var import_jsx_runtime320 = require("react/jsx-runtime");
13563
13658
  var TextInput = ({
13564
13659
  label,
13565
13660
  disabled,
@@ -13611,7 +13706,6 @@ var TextInput = ({
13611
13706
  const uniqueId = id != null ? id : `${generatedId}-textInput`;
13612
13707
  const hasErrorMessage = !!errorMessage;
13613
13708
  const hasTip = !!tip;
13614
- const hasLabel = !!label;
13615
13709
  const hasMessage = hasErrorMessage || hasTip;
13616
13710
  const hasBottomContainer = hasErrorMessage || hasTip || !!maxLength;
13617
13711
  const hasIcon = !!icon;
@@ -13654,8 +13748,8 @@ var TextInput = ({
13654
13748
  const suffixPaddingInlineEnd = suffixLength ? `calc(var(--dds-spacing-x1) + ${suffixLength}px)` : void 0;
13655
13749
  let extendedInput = null;
13656
13750
  if (hasIcon) {
13657
- extendedInput = /* @__PURE__ */ (0, import_jsx_runtime319.jsxs)(Box, { className: Input_default["input-group"], width: inputWidth, children: [
13658
- /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
13751
+ extendedInput = /* @__PURE__ */ (0, import_jsx_runtime320.jsxs)(Box, { className: Input_default["input-group"], width: inputWidth, children: [
13752
+ /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
13659
13753
  Icon,
13660
13754
  {
13661
13755
  icon,
@@ -13666,7 +13760,7 @@ var TextInput = ({
13666
13760
  )
13667
13761
  }
13668
13762
  ),
13669
- /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
13763
+ /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
13670
13764
  StatefulInput,
13671
13765
  {
13672
13766
  className: cn(
@@ -13679,7 +13773,7 @@ var TextInput = ({
13679
13773
  )
13680
13774
  ] });
13681
13775
  } else if (hasAffix) {
13682
- extendedInput = /* @__PURE__ */ (0, import_jsx_runtime319.jsxs)(
13776
+ extendedInput = /* @__PURE__ */ (0, import_jsx_runtime320.jsxs)(
13683
13777
  Box,
13684
13778
  {
13685
13779
  position: "relative",
@@ -13687,7 +13781,7 @@ var TextInput = ({
13687
13781
  alignItems: "center",
13688
13782
  width: inputWidth,
13689
13783
  children: [
13690
- prefix2 && /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
13784
+ prefix2 && /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
13691
13785
  "span",
13692
13786
  {
13693
13787
  ref: prefixRef,
@@ -13700,7 +13794,7 @@ var TextInput = ({
13700
13794
  children: prefix2
13701
13795
  }
13702
13796
  ),
13703
- /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
13797
+ /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
13704
13798
  StatefulInput,
13705
13799
  {
13706
13800
  style: {
@@ -13711,7 +13805,7 @@ var TextInput = ({
13711
13805
  ...generalInputProps
13712
13806
  }
13713
13807
  ),
13714
- suffix && /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
13808
+ suffix && /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
13715
13809
  "span",
13716
13810
  {
13717
13811
  ref: suffixRef,
@@ -13728,7 +13822,7 @@ var TextInput = ({
13728
13822
  }
13729
13823
  );
13730
13824
  }
13731
- return /* @__PURE__ */ (0, import_jsx_runtime319.jsxs)(
13825
+ return /* @__PURE__ */ (0, import_jsx_runtime320.jsxs)(
13732
13826
  "div",
13733
13827
  {
13734
13828
  className: cn(
@@ -13740,19 +13834,9 @@ var TextInput = ({
13740
13834
  ),
13741
13835
  style,
13742
13836
  children: [
13743
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
13744
- Box,
13745
- {
13746
- as: Label,
13747
- display: "block",
13748
- htmlFor: uniqueId,
13749
- showRequiredStyling,
13750
- readOnly,
13751
- children: label
13752
- }
13753
- ),
13754
- extendedInput ? extendedInput : /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(Box, { as: StatefulInput, width: inputWidth, ...generalInputProps }),
13755
- hasBottomContainer && /* @__PURE__ */ (0, import_jsx_runtime319.jsxs)(
13837
+ renderLabel({ label, htmlFor: uniqueId, showRequiredStyling, readOnly }),
13838
+ extendedInput ? extendedInput : /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(Box, { as: StatefulInput, width: inputWidth, ...generalInputProps }),
13839
+ hasBottomContainer && /* @__PURE__ */ (0, import_jsx_runtime320.jsxs)(
13756
13840
  Box,
13757
13841
  {
13758
13842
  display: "flex",
@@ -13795,7 +13879,7 @@ var Toggle_default = {
13795
13879
  };
13796
13880
 
13797
13881
  // src/components/Toggle/Toggle.tsx
13798
- var import_jsx_runtime320 = require("react/jsx-runtime");
13882
+ var import_jsx_runtime321 = require("react/jsx-runtime");
13799
13883
  var TOGGLE_SIZES = createSizes("medium", "large");
13800
13884
  var Toggle = ({
13801
13885
  id,
@@ -13820,7 +13904,7 @@ var Toggle = ({
13820
13904
  defaultValue: defaultChecked != null ? defaultChecked : false,
13821
13905
  onChange
13822
13906
  });
13823
- return /* @__PURE__ */ (0, import_jsx_runtime320.jsxs)(
13907
+ return /* @__PURE__ */ (0, import_jsx_runtime321.jsxs)(
13824
13908
  "label",
13825
13909
  {
13826
13910
  htmlFor: uniqueId,
@@ -13832,7 +13916,7 @@ var Toggle = ({
13832
13916
  readOnly && Toggle_default["label--read-only"]
13833
13917
  ),
13834
13918
  children: [
13835
- /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
13919
+ /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(
13836
13920
  HiddenInput,
13837
13921
  {
13838
13922
  ...getBaseHTMLProps(
@@ -13855,7 +13939,7 @@ var Toggle = ({
13855
13939
  onClick: readOnlyClickHandler(readOnly || isLoading, htmlProps.onClick)
13856
13940
  }
13857
13941
  ),
13858
- /* @__PURE__ */ (0, import_jsx_runtime320.jsx)("span", { className: cn(Toggle_default.track, focus_default["focus-styled-sibling"]), children: /* @__PURE__ */ (0, import_jsx_runtime320.jsx)("span", { className: Toggle_default.thumb, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(Spinner, { size: `var(--dds-icon-size-${size2})` }) : /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
13942
+ /* @__PURE__ */ (0, import_jsx_runtime321.jsx)("span", { className: cn(Toggle_default.track, focus_default["focus-styled-sibling"]), children: /* @__PURE__ */ (0, import_jsx_runtime321.jsx)("span", { className: Toggle_default.thumb, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(Spinner, { size: `var(--dds-icon-size-${size2})` }) : /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(
13859
13943
  Icon,
13860
13944
  {
13861
13945
  className: Toggle_default.checkmark,
@@ -13863,8 +13947,8 @@ var Toggle = ({
13863
13947
  iconSize
13864
13948
  }
13865
13949
  ) }) }),
13866
- /* @__PURE__ */ (0, import_jsx_runtime320.jsxs)("span", { className: cn(readOnly && Toggle_default["labeltext--readonly"]), children: [
13867
- readOnly && /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
13950
+ /* @__PURE__ */ (0, import_jsx_runtime321.jsxs)("span", { className: cn(readOnly && Toggle_default["labeltext--readonly"]), children: [
13951
+ readOnly && /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(
13868
13952
  Icon,
13869
13953
  {
13870
13954
  icon: LockIcon,
@@ -13874,7 +13958,7 @@ var Toggle = ({
13874
13958
  ),
13875
13959
  children,
13876
13960
  " ",
13877
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(VisuallyHidden, { children: t(commonTexts.loading) })
13961
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(VisuallyHidden, { children: t(commonTexts.loading) })
13878
13962
  ] })
13879
13963
  ]
13880
13964
  }
@@ -13908,7 +13992,7 @@ var ToggleBar_default = {
13908
13992
  };
13909
13993
 
13910
13994
  // src/components/ToggleBar/ToggleBar.tsx
13911
- var import_jsx_runtime321 = require("react/jsx-runtime");
13995
+ var import_jsx_runtime322 = require("react/jsx-runtime");
13912
13996
  var ToggleBar = (props) => {
13913
13997
  const {
13914
13998
  children,
@@ -13931,7 +14015,7 @@ var ToggleBar = (props) => {
13931
14015
  (e) => onChange && onChange(e, e.target.value)
13932
14016
  );
13933
14017
  const labelId = label && `${uniqueId}-label`;
13934
- return /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(
14018
+ return /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(
13935
14019
  ToggleBarContext,
13936
14020
  {
13937
14021
  value: {
@@ -13940,7 +14024,7 @@ var ToggleBar = (props) => {
13940
14024
  name,
13941
14025
  value: groupValue
13942
14026
  },
13943
- children: /* @__PURE__ */ (0, import_jsx_runtime321.jsxs)(
14027
+ children: /* @__PURE__ */ (0, import_jsx_runtime322.jsxs)(
13944
14028
  VStack,
13945
14029
  {
13946
14030
  ...getBaseHTMLProps(id, className, htmlProps, rest),
@@ -13949,8 +14033,8 @@ var ToggleBar = (props) => {
13949
14033
  role: "radiogroup",
13950
14034
  "aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
13951
14035
  children: [
13952
- label && /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(Typography, { id: labelId, as: "span", typographyType: "labelMedium", children: label }),
13953
- /* @__PURE__ */ (0, import_jsx_runtime321.jsx)("div", { className: ToggleBar_default.bar, children })
14036
+ label && /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(Typography, { id: labelId, as: "span", typographyType: "labelMedium", children: label }),
14037
+ /* @__PURE__ */ (0, import_jsx_runtime322.jsx)("div", { className: ToggleBar_default.bar, children })
13954
14038
  ]
13955
14039
  }
13956
14040
  )
@@ -13961,7 +14045,7 @@ ToggleBar.displayName = "ToggleBar";
13961
14045
 
13962
14046
  // src/components/ToggleBar/ToggleRadio.tsx
13963
14047
  var import_react102 = require("react");
13964
- var import_jsx_runtime322 = require("react/jsx-runtime");
14048
+ var import_jsx_runtime323 = require("react/jsx-runtime");
13965
14049
  var typographyTypes3 = {
13966
14050
  large: "bodyLarge",
13967
14051
  medium: "bodyMedium",
@@ -14001,8 +14085,8 @@ var ToggleRadio = ({
14001
14085
  (_a = group == null ? void 0 : group.onChange) == null ? void 0 : _a.call(group, event);
14002
14086
  };
14003
14087
  const contentTypeCn = label ? "with-text" : "just-icon";
14004
- return /* @__PURE__ */ (0, import_jsx_runtime322.jsxs)("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
14005
- /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(
14088
+ return /* @__PURE__ */ (0, import_jsx_runtime323.jsxs)("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
14089
+ /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(
14006
14090
  HiddenInput,
14007
14091
  {
14008
14092
  ...getBaseHTMLProps(
@@ -14020,7 +14104,7 @@ var ToggleRadio = ({
14020
14104
  "aria-labelledby": ariaLabelledBy
14021
14105
  }
14022
14106
  ),
14023
- /* @__PURE__ */ (0, import_jsx_runtime322.jsxs)(
14107
+ /* @__PURE__ */ (0, import_jsx_runtime323.jsxs)(
14024
14108
  Typography,
14025
14109
  {
14026
14110
  as: "span",
@@ -14031,8 +14115,8 @@ var ToggleRadio = ({
14031
14115
  focus_default["focus-styled-sibling"]
14032
14116
  ),
14033
14117
  children: [
14034
- icon && /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(Icon, { icon, iconSize: "inherit" }),
14035
- label && /* @__PURE__ */ (0, import_jsx_runtime322.jsx)("span", { children: label })
14118
+ icon && /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(Icon, { icon, iconSize: "inherit" }),
14119
+ label && /* @__PURE__ */ (0, import_jsx_runtime323.jsx)("span", { children: label })
14036
14120
  ]
14037
14121
  }
14038
14122
  )
@@ -14052,7 +14136,7 @@ var ToggleButton_default = {
14052
14136
  };
14053
14137
 
14054
14138
  // src/components/ToggleButton/ToggleButton.tsx
14055
- var import_jsx_runtime323 = require("react/jsx-runtime");
14139
+ var import_jsx_runtime324 = require("react/jsx-runtime");
14056
14140
  var ToggleButton = ({
14057
14141
  id,
14058
14142
  label,
@@ -14065,8 +14149,8 @@ var ToggleButton = ({
14065
14149
  const generatedId = (0, import_react103.useId)();
14066
14150
  const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
14067
14151
  const hasIcon = !!icon;
14068
- return /* @__PURE__ */ (0, import_jsx_runtime323.jsxs)(Box, { as: "label", htmlFor: uniqueId, width: "fit-content", children: [
14069
- /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(
14152
+ return /* @__PURE__ */ (0, import_jsx_runtime324.jsxs)(Box, { as: "label", htmlFor: uniqueId, width: "fit-content", children: [
14153
+ /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(
14070
14154
  HiddenInput,
14071
14155
  {
14072
14156
  ...getBaseHTMLProps(
@@ -14078,7 +14162,7 @@ var ToggleButton = ({
14078
14162
  type: "checkbox"
14079
14163
  }
14080
14164
  ),
14081
- /* @__PURE__ */ (0, import_jsx_runtime323.jsxs)(
14165
+ /* @__PURE__ */ (0, import_jsx_runtime324.jsxs)(
14082
14166
  "span",
14083
14167
  {
14084
14168
  className: cn(
@@ -14089,7 +14173,7 @@ var ToggleButton = ({
14089
14173
  focus_default["focus-styled-sibling"]
14090
14174
  ),
14091
14175
  children: [
14092
- hasIcon && /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(Icon, { icon, iconSize: "inherit" }),
14176
+ hasIcon && /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(Icon, { icon, iconSize: "inherit" }),
14093
14177
  " ",
14094
14178
  label
14095
14179
  ]
@@ -14101,7 +14185,7 @@ ToggleButton.displayName = "ToggleButton";
14101
14185
 
14102
14186
  // src/components/ToggleButton/ToggleButtonGroup.tsx
14103
14187
  var import_react104 = require("react");
14104
- var import_jsx_runtime324 = require("react/jsx-runtime");
14188
+ var import_jsx_runtime325 = require("react/jsx-runtime");
14105
14189
  var ToggleButtonGroup = (props) => {
14106
14190
  const {
14107
14191
  children,
@@ -14115,16 +14199,15 @@ var ToggleButtonGroup = (props) => {
14115
14199
  } = props;
14116
14200
  const generatedId = (0, import_react104.useId)();
14117
14201
  const uniqueLabelId = labelId != null ? labelId : `${generatedId}-ToggleButtonGroupLabel`;
14118
- return /* @__PURE__ */ (0, import_jsx_runtime324.jsxs)(
14119
- VStack,
14202
+ return /* @__PURE__ */ (0, import_jsx_runtime325.jsxs)(
14203
+ "div",
14120
14204
  {
14121
- gap: "x0.5",
14122
14205
  ...getBaseHTMLProps(id, className, htmlProps, rest),
14123
14206
  role: "group",
14124
14207
  "aria-labelledby": label ? uniqueLabelId : void 0,
14125
14208
  children: [
14126
- !!label && /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(Typography, { as: "span", typographyType: "labelMedium", id: uniqueLabelId, children: label }),
14127
- /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(Box, { display: "flex", flexWrap: "wrap", gap: "x0.75", flexDirection: direction, children })
14209
+ renderGroupLabel({ label, id: uniqueLabelId }),
14210
+ /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(Box, { display: "flex", flexWrap: "wrap", gap: "x0.75", flexDirection: direction, children })
14128
14211
  ]
14129
14212
  }
14130
14213
  );