@norges-domstoler/dds-components 21.12.0 → 21.13.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.mjs CHANGED
@@ -4760,34 +4760,38 @@ var Label2 = ({
4760
4760
  }
4761
4761
  );
4762
4762
  };
4763
- var GroupLabel = ({
4763
+ var renderGroupLabel = ({
4764
4764
  id,
4765
- showRequiredMarker,
4765
+ showRequiredStyling,
4766
4766
  readOnly,
4767
- children
4767
+ label
4768
4768
  }) => {
4769
- return /* @__PURE__ */ jsxs32(
4770
- Typography,
4771
- {
4772
- as: "span",
4773
- typographyType: "labelMedium",
4774
- id,
4775
- className: readOnly ? Label_default["read-only"] : void 0,
4776
- children: [
4777
- readOnly && /* @__PURE__ */ jsx210(
4778
- Icon,
4779
- {
4780
- icon: LockIcon,
4781
- className: Label_default["read-only__icon"],
4782
- iconSize: "small"
4783
- }
4784
- ),
4785
- children,
4786
- " ",
4787
- showRequiredMarker && /* @__PURE__ */ jsx210(RequiredMarker, {})
4788
- ]
4789
- }
4790
- );
4769
+ const hasLabel = !!label;
4770
+ if (hasLabel)
4771
+ return /* @__PURE__ */ jsxs32(
4772
+ Typography,
4773
+ {
4774
+ as: "span",
4775
+ typographyType: "labelMedium",
4776
+ id,
4777
+ className: readOnly ? Label_default["read-only"] : void 0,
4778
+ withMargins: true,
4779
+ children: [
4780
+ readOnly && /* @__PURE__ */ jsx210(
4781
+ Icon,
4782
+ {
4783
+ icon: LockIcon,
4784
+ className: Label_default["read-only__icon"],
4785
+ iconSize: "small"
4786
+ }
4787
+ ),
4788
+ label,
4789
+ " ",
4790
+ showRequiredStyling && /* @__PURE__ */ jsx210(RequiredMarker, {})
4791
+ ]
4792
+ }
4793
+ );
4794
+ else return null;
4791
4795
  };
4792
4796
 
4793
4797
  // src/components/SelectionControl/SelectionControl.utils.tsx
@@ -4965,7 +4969,7 @@ var CheckboxGroup = (props) => {
4965
4969
  const generatedId = useId5();
4966
4970
  const uniqueGroupId = groupId != null ? groupId : `${generatedId}-checkboxGroup`;
4967
4971
  const hasErrorMessage = !!errorMessage;
4968
- const showRequiredMarker = required || convertBooleanishToBoolean(ariaRequired);
4972
+ const showRequiredStyling = required || convertBooleanishToBoolean(ariaRequired);
4969
4973
  const errorMessageId = derivativeIdGenerator(uniqueGroupId, "errorMessage");
4970
4974
  const tipId = derivativeIdGenerator(uniqueGroupId, "tip");
4971
4975
  const contextProps = {
@@ -4986,15 +4990,12 @@ var CheckboxGroup = (props) => {
4986
4990
  rest
4987
4991
  ),
4988
4992
  children: [
4989
- label !== void 0 ? /* @__PURE__ */ jsx213(
4990
- GroupLabel,
4991
- {
4992
- id: uniqueGroupId,
4993
- readOnly,
4994
- showRequiredMarker,
4995
- children: label
4996
- }
4997
- ) : null,
4993
+ renderGroupLabel({
4994
+ label,
4995
+ id: uniqueGroupId,
4996
+ readOnly,
4997
+ showRequiredStyling
4998
+ }),
4998
4999
  renderInputMessage(tip, tipId),
4999
5000
  /* @__PURE__ */ jsx213(CheckboxGroupContext, { value: { ...contextProps }, children: /* @__PURE__ */ jsx213(
5000
5001
  "div",
@@ -5157,7 +5158,7 @@ var RadioButtonGroup = ({
5157
5158
  onChange
5158
5159
  });
5159
5160
  const hasErrorMessage = !!errorMessage;
5160
- const showRequiredMarker = required || convertBooleanishToBoolean(ariaRequired);
5161
+ const showRequiredStyling = required || convertBooleanishToBoolean(ariaRequired);
5161
5162
  const tipId = tip && `${uniqueGroupId}-tip`;
5162
5163
  const errorMessageId = errorMessage && `${uniqueGroupId}-errorMessage`;
5163
5164
  const contextProps = {
@@ -5181,15 +5182,12 @@ var RadioButtonGroup = ({
5181
5182
  rest
5182
5183
  ),
5183
5184
  children: [
5184
- label !== void 0 ? /* @__PURE__ */ jsx215(
5185
- GroupLabel,
5186
- {
5187
- id: uniqueGroupId,
5188
- readOnly,
5189
- showRequiredMarker,
5190
- children: label
5191
- }
5192
- ) : null,
5185
+ renderGroupLabel({
5186
+ label,
5187
+ id: uniqueGroupId,
5188
+ readOnly,
5189
+ showRequiredStyling
5190
+ }),
5193
5191
  renderInputMessage(tip, tipId),
5194
5192
  /* @__PURE__ */ jsx215(RadioButtonGroupContext, { value: { ...contextProps }, children: /* @__PURE__ */ jsx215(
5195
5193
  "div",
@@ -6307,7 +6305,6 @@ var Input_default = {
6307
6305
  "input--small": "Input_input--small",
6308
6306
  "input--xsmall": "Input_input--xsmall",
6309
6307
  "input--with-affix": "Input_input--with-affix",
6310
- label: "Input_label",
6311
6308
  "input-group__absolute-element": "Input_input-group__absolute-element"
6312
6309
  };
6313
6310
 
@@ -6361,8 +6358,18 @@ function getInputWidth(width, defaultW) {
6361
6358
  return width != null ? width : fallback;
6362
6359
  }
6363
6360
 
6361
+ // src/components/Typography/Label/Label.utils.tsx
6362
+ import { jsx as jsx233 } from "react/jsx-runtime";
6363
+ function renderLabel(props) {
6364
+ const { label, ...rest } = props;
6365
+ const hasLabel = !!label;
6366
+ if (hasLabel)
6367
+ return /* @__PURE__ */ jsx233(Label, { ...rest, withMargins: true, children: label });
6368
+ return null;
6369
+ }
6370
+
6364
6371
  // src/components/date-inputs/common/DateInput.tsx
6365
- import { jsx as jsx233, jsxs as jsxs46 } from "react/jsx-runtime";
6372
+ import { jsx as jsx234, jsxs as jsxs46 } from "react/jsx-runtime";
6366
6373
  function DateInput({
6367
6374
  errorMessage,
6368
6375
  tip,
@@ -6388,7 +6395,6 @@ function DateInput({
6388
6395
  var _a;
6389
6396
  const hasErrorMessage = !!errorMessage;
6390
6397
  const hasTip = !!tip;
6391
- const hasLabel = props.label != null;
6392
6398
  const hasMessage = hasErrorMessage || hasTip;
6393
6399
  const { isOpen } = useContext12(CalendarPopoverContext);
6394
6400
  return /* @__PURE__ */ jsxs46(
@@ -6398,16 +6404,12 @@ function DateInput({
6398
6404
  className: cn(className, Input_default.container),
6399
6405
  ref,
6400
6406
  children: [
6401
- hasLabel && /* @__PURE__ */ jsx233(
6402
- Label,
6403
- {
6404
- ...labelProps,
6405
- showRequiredStyling: required,
6406
- className: Input_default.label,
6407
- readOnly,
6408
- children: props.label
6409
- }
6410
- ),
6407
+ renderLabel({
6408
+ ...labelProps,
6409
+ label: props.label,
6410
+ showRequiredStyling: required,
6411
+ readOnly
6412
+ }),
6411
6413
  /* @__PURE__ */ jsxs46(
6412
6414
  Box,
6413
6415
  {
@@ -6431,7 +6433,7 @@ function DateInput({
6431
6433
  ),
6432
6434
  children: [
6433
6435
  button,
6434
- /* @__PURE__ */ jsx233(
6436
+ /* @__PURE__ */ jsx234(
6435
6437
  "div",
6436
6438
  {
6437
6439
  ...fieldProps,
@@ -6444,7 +6446,7 @@ function DateInput({
6444
6446
  ]
6445
6447
  }
6446
6448
  ),
6447
- hasMessage && /* @__PURE__ */ jsx233(
6449
+ hasMessage && /* @__PURE__ */ jsx234(
6448
6450
  InputMessage,
6449
6451
  {
6450
6452
  messageType: hasErrorMessage ? "error" : "tip",
@@ -6458,7 +6460,7 @@ function DateInput({
6458
6460
  DateInput.displayName = "DateInput";
6459
6461
 
6460
6462
  // src/components/date-inputs/DatePicker/DateField/DateField.tsx
6461
- import { jsx as jsx234 } from "react/jsx-runtime";
6463
+ import { jsx as jsx235 } from "react/jsx-runtime";
6462
6464
  function DateField({
6463
6465
  componentSize = "medium",
6464
6466
  buttonProps,
@@ -6486,7 +6488,7 @@ function DateField({
6486
6488
  const clearDate = () => {
6487
6489
  state.setValue(null);
6488
6490
  };
6489
- return /* @__PURE__ */ jsx234(
6491
+ return /* @__PURE__ */ jsx235(
6490
6492
  DateInput,
6491
6493
  {
6492
6494
  ...props,
@@ -6499,7 +6501,7 @@ function DateField({
6499
6501
  ref,
6500
6502
  internalRef,
6501
6503
  readOnly: props.isReadOnly,
6502
- prefix: /* @__PURE__ */ jsx234(
6504
+ prefix: /* @__PURE__ */ jsx235(
6503
6505
  CalendarButton,
6504
6506
  {
6505
6507
  componentSize,
@@ -6508,7 +6510,7 @@ function DateField({
6508
6510
  isDisabled: disabled || props.isReadOnly
6509
6511
  }
6510
6512
  ),
6511
- suffix: showClearButton && /* @__PURE__ */ jsx234(
6513
+ suffix: showClearButton && /* @__PURE__ */ jsx235(
6512
6514
  ClearButton,
6513
6515
  {
6514
6516
  absolute: false,
@@ -6524,7 +6526,7 @@ function DateField({
6524
6526
  ),
6525
6527
  labelProps,
6526
6528
  fieldProps,
6527
- children: state.segments.map((segment, i) => /* @__PURE__ */ jsx234(
6529
+ children: state.segments.map((segment, i) => /* @__PURE__ */ jsx235(
6528
6530
  DateSegment,
6529
6531
  {
6530
6532
  "aria-readonly": props.isReadOnly,
@@ -6569,7 +6571,7 @@ function createDOMRef(ref) {
6569
6571
  }
6570
6572
 
6571
6573
  // src/components/date-inputs/DatePicker/DatePicker.tsx
6572
- import { jsx as jsx235, jsxs as jsxs47 } from "react/jsx-runtime";
6574
+ import { jsx as jsx236, jsxs as jsxs47 } from "react/jsx-runtime";
6573
6575
  var refIsFocusable = (ref) => {
6574
6576
  return typeof ref === "object" && ref !== null && "focus" in ref;
6575
6577
  };
@@ -6594,14 +6596,14 @@ function DatePicker({
6594
6596
  state,
6595
6597
  internalRef
6596
6598
  );
6597
- return /* @__PURE__ */ jsx235(I18nProvider, { locale, children: /* @__PURE__ */ jsxs47(
6599
+ return /* @__PURE__ */ jsx236(I18nProvider, { locale, children: /* @__PURE__ */ jsxs47(
6598
6600
  CalendarPopover,
6599
6601
  {
6600
6602
  isOpen: state.isOpen,
6601
6603
  onClose: state.close,
6602
6604
  showWeekNumbers,
6603
6605
  children: [
6604
- /* @__PURE__ */ jsx235(CalendarPopoverAnchor, { children: /* @__PURE__ */ jsx235(
6606
+ /* @__PURE__ */ jsx236(CalendarPopoverAnchor, { children: /* @__PURE__ */ jsx236(
6605
6607
  DateField,
6606
6608
  {
6607
6609
  ...fieldProps,
@@ -6617,7 +6619,7 @@ function DatePicker({
6617
6619
  clearable
6618
6620
  }
6619
6621
  ) }),
6620
- /* @__PURE__ */ jsx235(CalendarPopoverContent, { smallScreenBreakpoint, children: /* @__PURE__ */ jsx235(Calendar, { ...calendarProps }) })
6622
+ /* @__PURE__ */ jsx236(CalendarPopoverContent, { smallScreenBreakpoint, children: /* @__PURE__ */ jsx236(Calendar, { ...calendarProps }) })
6621
6623
  ]
6622
6624
  }
6623
6625
  ) });
@@ -6628,7 +6630,7 @@ DatePicker.displayName = "DatePicker";
6628
6630
  import { useTimeField } from "@react-aria/datepicker";
6629
6631
  import { useTimeFieldState } from "@react-stately/datepicker";
6630
6632
  import { useRef as useRef18 } from "react";
6631
- import { jsx as jsx236 } from "react/jsx-runtime";
6633
+ import { jsx as jsx237 } from "react/jsx-runtime";
6632
6634
  function TimePicker({
6633
6635
  componentSize = "medium",
6634
6636
  width,
@@ -6647,7 +6649,7 @@ function TimePicker({
6647
6649
  );
6648
6650
  const iconSize = componentSize === "xsmall" ? "small" : "medium";
6649
6651
  const disabled = props.isDisabled || !!fieldProps["aria-disabled"];
6650
- return /* @__PURE__ */ jsx236(
6652
+ return /* @__PURE__ */ jsx237(
6651
6653
  DateInput,
6652
6654
  {
6653
6655
  ...props,
@@ -6660,7 +6662,7 @@ function TimePicker({
6660
6662
  readOnly: props.isReadOnly,
6661
6663
  labelProps,
6662
6664
  fieldProps,
6663
- prefix: /* @__PURE__ */ jsx236(
6665
+ prefix: /* @__PURE__ */ jsx237(
6664
6666
  Icon,
6665
6667
  {
6666
6668
  icon: TimeIcon,
@@ -6672,7 +6674,7 @@ function TimePicker({
6672
6674
  )
6673
6675
  }
6674
6676
  ),
6675
- children: state.segments.map((segment, i) => /* @__PURE__ */ jsx236(
6677
+ children: state.segments.map((segment, i) => /* @__PURE__ */ jsx237(
6676
6678
  DateSegment,
6677
6679
  {
6678
6680
  componentSize,
@@ -6731,7 +6733,7 @@ var DescriptionList_default = {
6731
6733
  };
6732
6734
 
6733
6735
  // src/components/DescriptionList/DescriptionList.tsx
6734
- import { jsx as jsx237 } from "react/jsx-runtime";
6736
+ import { jsx as jsx238 } from "react/jsx-runtime";
6735
6737
  var DescriptionList = ({
6736
6738
  appearance = "default",
6737
6739
  direction = "column",
@@ -6740,7 +6742,7 @@ var DescriptionList = ({
6740
6742
  className,
6741
6743
  htmlProps,
6742
6744
  ...rest
6743
- }) => /* @__PURE__ */ jsx237(
6745
+ }) => /* @__PURE__ */ jsx238(
6744
6746
  VStack,
6745
6747
  {
6746
6748
  as: "dl",
@@ -6765,14 +6767,14 @@ var DescriptionList = ({
6765
6767
  DescriptionList.displayName = "DescriptionList";
6766
6768
 
6767
6769
  // src/components/DescriptionList/DescriptionListTerm.tsx
6768
- import { jsx as jsx238 } from "react/jsx-runtime";
6770
+ import { jsx as jsx239 } from "react/jsx-runtime";
6769
6771
  var DescriptionListTerm = (props) => {
6770
- return /* @__PURE__ */ jsx238("dt", { ...props });
6772
+ return /* @__PURE__ */ jsx239("dt", { ...props });
6771
6773
  };
6772
6774
  DescriptionListTerm.displayName = "DescriptionListTerm";
6773
6775
 
6774
6776
  // src/components/DescriptionList/DescriptionListDesc.tsx
6775
- import { jsx as jsx239, jsxs as jsxs48 } from "react/jsx-runtime";
6777
+ import { jsx as jsx240, jsxs as jsxs48 } from "react/jsx-runtime";
6776
6778
  var DescriptionListDesc = ({
6777
6779
  children,
6778
6780
  icon,
@@ -6781,14 +6783,14 @@ var DescriptionListDesc = ({
6781
6783
  htmlProps,
6782
6784
  ...rest
6783
6785
  }) => /* @__PURE__ */ jsxs48("dd", { ...getBaseHTMLProps(id, cn(className, DescriptionList_default.desc), htmlProps, rest), children: [
6784
- icon && /* @__PURE__ */ jsx239(Icon, { icon }),
6786
+ icon && /* @__PURE__ */ jsx240(Icon, { icon }),
6785
6787
  " ",
6786
6788
  children
6787
6789
  ] });
6788
6790
  DescriptionListDesc.displayName = "DescriptionListDesc";
6789
6791
 
6790
6792
  // src/components/DescriptionList/DescriptionListGroup.tsx
6791
- import { jsx as jsx240 } from "react/jsx-runtime";
6793
+ import { jsx as jsx241 } from "react/jsx-runtime";
6792
6794
  var DescriptionListGroup = ({
6793
6795
  children,
6794
6796
  margin,
@@ -6798,7 +6800,7 @@ var DescriptionListGroup = ({
6798
6800
  className,
6799
6801
  htmlProps,
6800
6802
  ...rest
6801
- }) => /* @__PURE__ */ jsx240(
6803
+ }) => /* @__PURE__ */ jsx241(
6802
6804
  "div",
6803
6805
  {
6804
6806
  ...getBaseHTMLProps(id, cn(className, DescriptionList_default.group), htmlProps, rest),
@@ -6816,10 +6818,10 @@ var DetailList_default = {
6816
6818
  "list--striped": "DetailList_list--striped",
6817
6819
  "list--striped-with-bp": "DetailList_list--striped-with-bp",
6818
6820
  "list--small": "DetailList_list--small",
6819
- cell: "DetailList_cell",
6820
6821
  "list--medium": "DetailList_list--medium",
6821
6822
  "list--large": "DetailList_list--large",
6822
6823
  column: "DetailList_column",
6824
+ cell: "DetailList_cell",
6823
6825
  term: "DetailList_term"
6824
6826
  };
6825
6827
 
@@ -6829,7 +6831,7 @@ var DetailListContext = createContext10({});
6829
6831
  var useDetailListContext = () => useContext13(DetailListContext);
6830
6832
 
6831
6833
  // src/components/DetailList/DetailList.tsx
6832
- import { jsx as jsx241 } from "react/jsx-runtime";
6834
+ import { jsx as jsx242 } from "react/jsx-runtime";
6833
6835
  var DetailList = ({
6834
6836
  id,
6835
6837
  className,
@@ -6839,7 +6841,7 @@ var DetailList = ({
6839
6841
  size: size2 = "medium",
6840
6842
  smallScreenBreakpoint,
6841
6843
  ...rest
6842
- }) => /* @__PURE__ */ jsx241(DetailListContext, { value: { smallScreenBreakpoint }, children: /* @__PURE__ */ jsx241(
6844
+ }) => /* @__PURE__ */ jsx242(DetailListContext, { value: { smallScreenBreakpoint }, children: /* @__PURE__ */ jsx242(
6843
6845
  "dl",
6844
6846
  {
6845
6847
  ...getBaseHTMLProps(
@@ -6860,17 +6862,17 @@ var DetailList = ({
6860
6862
  DetailList.displayName = "DetailList";
6861
6863
 
6862
6864
  // src/components/DetailList/DetailListDesc.tsx
6863
- import { jsx as jsx242 } from "react/jsx-runtime";
6864
- var DetailListDesc = ({ className, ...rest }) => /* @__PURE__ */ jsx242("dd", { className: cn(className, DetailList_default.cell), ...rest });
6865
+ import { jsx as jsx243 } from "react/jsx-runtime";
6866
+ var DetailListDesc = ({ className, ...rest }) => /* @__PURE__ */ jsx243("dd", { className: cn(className, DetailList_default.cell), ...rest });
6865
6867
  DetailListDesc.displayName = "DetailListDesc";
6866
6868
 
6867
6869
  // src/components/DetailList/DetailListRow.tsx
6868
- import { Fragment as Fragment5, jsx as jsx243, jsxs as jsxs49 } from "react/jsx-runtime";
6870
+ import { Fragment as Fragment5, jsx as jsx244, jsxs as jsxs49 } from "react/jsx-runtime";
6869
6871
  var DetailListRow = ({ className, ...rest }) => {
6870
6872
  const { smallScreenBreakpoint: bp } = useDetailListContext();
6871
6873
  const hasBp = !!bp;
6872
6874
  return /* @__PURE__ */ jsxs49(Fragment5, { children: [
6873
- /* @__PURE__ */ jsx243(
6875
+ /* @__PURE__ */ jsx244(
6874
6876
  Box,
6875
6877
  {
6876
6878
  display: "table-row",
@@ -6879,7 +6881,7 @@ var DetailListRow = ({ className, ...rest }) => {
6879
6881
  ...rest
6880
6882
  }
6881
6883
  ),
6882
- hasBp && /* @__PURE__ */ jsx243(
6884
+ hasBp && /* @__PURE__ */ jsx244(
6883
6885
  Box,
6884
6886
  {
6885
6887
  display: "flex",
@@ -6894,8 +6896,8 @@ var DetailListRow = ({ className, ...rest }) => {
6894
6896
  DetailListRow.displayName = "DetailListRow";
6895
6897
 
6896
6898
  // src/components/DetailList/DetailListTerm.tsx
6897
- import { jsx as jsx244 } from "react/jsx-runtime";
6898
- var DetailListTerm = ({ className, ...rest }) => /* @__PURE__ */ jsx244("dt", { className: cn(className, DetailList_default.cell, DetailList_default.term), ...rest });
6899
+ import { jsx as jsx245 } from "react/jsx-runtime";
6900
+ var DetailListTerm = ({ className, ...rest }) => /* @__PURE__ */ jsx245("dt", { className: cn(className, DetailList_default.cell, DetailList_default.term), ...rest });
6899
6901
  DetailListTerm.displayName = "DetailListTerm";
6900
6902
 
6901
6903
  // src/components/Drawer/Drawer.tsx
@@ -6926,7 +6928,7 @@ var DrawerContext = createContext11({});
6926
6928
  var useDrawerContext = () => useContext14(DrawerContext);
6927
6929
 
6928
6930
  // src/components/Drawer/Drawer.tsx
6929
- import { jsx as jsx245, jsxs as jsxs50 } from "react/jsx-runtime";
6931
+ import { jsx as jsx246, jsxs as jsxs50 } from "react/jsx-runtime";
6930
6932
  var DRAWER_SIZES = createSizes("small", "medium", "large");
6931
6933
  var Drawer = ({
6932
6934
  children,
@@ -7031,8 +7033,8 @@ var Drawer = ({
7031
7033
  paddingInline: "var(--dds-drawer-content-container-padding)",
7032
7034
  className: Drawer_default["drawer-header"],
7033
7035
  children: [
7034
- hasHeader && /* @__PURE__ */ jsx245("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ jsx245(Heading, { level: 2, typographyType: "headingLarge", children: header }) : header }),
7035
- /* @__PURE__ */ jsx245(
7036
+ hasHeader && /* @__PURE__ */ jsx246("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ jsx246(Heading, { level: 2, typographyType: "headingLarge", children: header }) : header }),
7037
+ /* @__PURE__ */ jsx246(
7036
7038
  Button,
7037
7039
  {
7038
7040
  className: cn(Drawer_default["button--close"]),
@@ -7047,7 +7049,7 @@ var Drawer = ({
7047
7049
  ]
7048
7050
  }
7049
7051
  ),
7050
- /* @__PURE__ */ jsx245(
7052
+ /* @__PURE__ */ jsx246(
7051
7053
  VStack,
7052
7054
  {
7053
7055
  gap: "x1",
@@ -7059,7 +7061,7 @@ var Drawer = ({
7059
7061
  ]
7060
7062
  }
7061
7063
  );
7062
- const component = withBackdrop ? /* @__PURE__ */ jsx245(
7064
+ const component = withBackdrop ? /* @__PURE__ */ jsx246(
7063
7065
  Backdrop,
7064
7066
  {
7065
7067
  zIndex: "drawer",
@@ -7082,7 +7084,7 @@ import {
7082
7084
  useRef as useRef20,
7083
7085
  useState as useState13
7084
7086
  } from "react";
7085
- import { jsx as jsx246 } from "react/jsx-runtime";
7087
+ import { jsx as jsx247 } from "react/jsx-runtime";
7086
7088
  var DrawerGroup = ({
7087
7089
  children,
7088
7090
  isInitiallyOpen,
@@ -7126,7 +7128,7 @@ var DrawerGroup = ({
7126
7128
  onClick: handleOpen
7127
7129
  }) : child);
7128
7130
  });
7129
- return /* @__PURE__ */ jsx246(
7131
+ return /* @__PURE__ */ jsx247(
7130
7132
  DrawerContext,
7131
7133
  {
7132
7134
  value: {
@@ -7142,14 +7144,14 @@ var DrawerGroup = ({
7142
7144
  DrawerGroup.displayName = "DrawerGroup";
7143
7145
 
7144
7146
  // src/components/EmptyContent/EmptyContent.tsx
7145
- import { jsx as jsx247, jsxs as jsxs51 } from "react/jsx-runtime";
7147
+ import { jsx as jsx248, jsxs as jsxs51 } from "react/jsx-runtime";
7146
7148
  function EmptyContent({
7147
7149
  headerText,
7148
7150
  message,
7149
7151
  headerHeadingLevel = 2,
7150
7152
  ...rest
7151
7153
  }) {
7152
- return /* @__PURE__ */ jsx247(
7154
+ return /* @__PURE__ */ jsx248(
7153
7155
  Paper,
7154
7156
  {
7155
7157
  display: "flex",
@@ -7163,8 +7165,8 @@ function EmptyContent({
7163
7165
  borderRadius: "surface",
7164
7166
  ...rest,
7165
7167
  children: /* @__PURE__ */ jsxs51(VStack, { maxWidth: "70ch", gap: "x1", textAlign: "center", children: [
7166
- headerText && /* @__PURE__ */ jsx247(Heading, { level: headerHeadingLevel, typographyType: "headingMedium", children: headerText }),
7167
- /* @__PURE__ */ jsx247(Paragraph, { color: "text-medium", children: message })
7168
+ headerText && /* @__PURE__ */ jsx248(Heading, { level: headerHeadingLevel, typographyType: "headingMedium", children: headerText }),
7169
+ /* @__PURE__ */ jsx248(Paragraph, { color: "text-medium", children: message })
7168
7170
  ] })
7169
7171
  }
7170
7172
  );
@@ -7184,7 +7186,7 @@ var FavStar_default = {
7184
7186
  };
7185
7187
 
7186
7188
  // src/components/FavStar/FavStar.tsx
7187
- import { jsx as jsx248, jsxs as jsxs52 } from "react/jsx-runtime";
7189
+ import { jsx as jsx249, jsxs as jsxs52 } from "react/jsx-runtime";
7188
7190
  var FAVSTAR_SIZES = createSizes("medium", "large");
7189
7191
  var FavStar = ({
7190
7192
  id,
@@ -7222,7 +7224,7 @@ var FavStar = ({
7222
7224
  style,
7223
7225
  htmlFor: id != null ? id : generatedId,
7224
7226
  children: [
7225
- /* @__PURE__ */ jsx248(
7227
+ /* @__PURE__ */ jsx249(
7226
7228
  HiddenInput,
7227
7229
  {
7228
7230
  ...props,
@@ -7233,8 +7235,8 @@ var FavStar = ({
7233
7235
  "aria-label": (_a = props["aria-label"]) != null ? _a : t(texts8.favourite)
7234
7236
  }
7235
7237
  ),
7236
- /* @__PURE__ */ jsx248(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
7237
- /* @__PURE__ */ jsx248(
7238
+ /* @__PURE__ */ jsx249(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
7239
+ /* @__PURE__ */ jsx249(
7238
7240
  Icon,
7239
7241
  {
7240
7242
  iconSize: size2,
@@ -7292,7 +7294,7 @@ var CharCounter_default = {
7292
7294
  };
7293
7295
 
7294
7296
  // src/components/helpers/CharCounter/CharCounter.tsx
7295
- import { jsx as jsx249, jsxs as jsxs53 } from "react/jsx-runtime";
7297
+ import { jsx as jsx250, jsxs as jsxs53 } from "react/jsx-runtime";
7296
7298
  function CharCounter(props) {
7297
7299
  const { t } = useTranslation();
7298
7300
  const { current, max, id } = props;
@@ -7312,14 +7314,14 @@ function CharCounter(props) {
7312
7314
  "/",
7313
7315
  max
7314
7316
  ] }),
7315
- /* @__PURE__ */ jsx249(VisuallyHidden, { children: t(texts9.charsWritten(current, max, max - current)) })
7317
+ /* @__PURE__ */ jsx250(VisuallyHidden, { children: t(texts9.charsWritten(current, max, max - current)) })
7316
7318
  ]
7317
7319
  }
7318
7320
  );
7319
7321
  }
7320
7322
  var renderCharCounter = (id, isShown, textLength, maxLength) => {
7321
7323
  if (!!maxLength && Number.isInteger(maxLength) && maxLength > 0 && isShown)
7322
- return /* @__PURE__ */ jsx249(CharCounter, { id, max: maxLength, current: textLength });
7324
+ return /* @__PURE__ */ jsx250(CharCounter, { id, max: maxLength, current: textLength });
7323
7325
  };
7324
7326
  var texts9 = createTexts({
7325
7327
  charsWritten: (current, max, remain) => ({
@@ -7331,7 +7333,7 @@ var texts9 = createTexts({
7331
7333
  });
7332
7334
 
7333
7335
  // src/components/TextArea/TextArea.tsx
7334
- import { jsx as jsx250, jsxs as jsxs54 } from "react/jsx-runtime";
7336
+ import { jsx as jsx251, jsxs as jsxs54 } from "react/jsx-runtime";
7335
7337
  var TextArea = ({
7336
7338
  id,
7337
7339
  value,
@@ -7372,7 +7374,6 @@ var TextArea = ({
7372
7374
  };
7373
7375
  const hasErrorMessage = !!errorMessage;
7374
7376
  const hasMessage = hasErrorMessage || !!tip;
7375
- const hasLabel = !!label;
7376
7377
  const tipId = derivativeIdGenerator(uniqueId, "tip");
7377
7378
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
7378
7379
  const characterCounterId = derivativeIdGenerator(
@@ -7382,17 +7383,8 @@ var TextArea = ({
7382
7383
  const showRequiredStyling = required || !!ariaRequired;
7383
7384
  const inputWidth = getInputWidth(width);
7384
7385
  return /* @__PURE__ */ jsxs54("div", { className: cn(className, Input_default.container), style: { ...style }, children: [
7385
- hasLabel && /* @__PURE__ */ jsx250(
7386
- Label,
7387
- {
7388
- showRequiredStyling,
7389
- htmlFor: uniqueId,
7390
- className: Input_default.label,
7391
- readOnly,
7392
- children: label
7393
- }
7394
- ),
7395
- /* @__PURE__ */ jsx250(
7386
+ renderLabel({ label, htmlFor: uniqueId, readOnly, showRequiredStyling }),
7387
+ /* @__PURE__ */ jsx251(
7396
7388
  Box,
7397
7389
  {
7398
7390
  as: "textarea",
@@ -7450,7 +7442,7 @@ TextArea.displayName = "TextArea";
7450
7442
  var getIconSize = (layout) => layout === "vertical" ? "large" : "medium";
7451
7443
 
7452
7444
  // src/components/Feedback/CommentComponent.tsx
7453
- import { jsx as jsx251, jsxs as jsxs55 } from "react/jsx-runtime";
7445
+ import { jsx as jsx252, jsxs as jsxs55 } from "react/jsx-runtime";
7454
7446
  var CommentComponent = ({
7455
7447
  layout,
7456
7448
  rating,
@@ -7466,7 +7458,7 @@ var CommentComponent = ({
7466
7458
  const { t } = useTranslation();
7467
7459
  return /* @__PURE__ */ jsxs55(VStack, { gap: "x1", children: [
7468
7460
  /* @__PURE__ */ jsxs55("span", { className: Feedback_default["rating-submitted-title"], children: [
7469
- /* @__PURE__ */ jsx251(
7461
+ /* @__PURE__ */ jsx252(
7470
7462
  Icon,
7471
7463
  {
7472
7464
  icon: rating === "positive" ? ThumbUpFilledIcon : ThumbDownFilledIcon,
@@ -7479,7 +7471,7 @@ var CommentComponent = ({
7479
7471
  " "
7480
7472
  ] })
7481
7473
  ] }),
7482
- /* @__PURE__ */ jsx251(
7474
+ /* @__PURE__ */ jsx252(
7483
7475
  TextArea,
7484
7476
  {
7485
7477
  value: feedbackText,
@@ -7488,7 +7480,7 @@ var CommentComponent = ({
7488
7480
  tip: textAreaTip
7489
7481
  }
7490
7482
  ),
7491
- /* @__PURE__ */ jsx251(
7483
+ /* @__PURE__ */ jsx252(
7492
7484
  Button,
7493
7485
  {
7494
7486
  purpose: "secondary",
@@ -7528,7 +7520,7 @@ var Tooltip_default = {
7528
7520
  };
7529
7521
 
7530
7522
  // src/components/Tooltip/Tooltip.tsx
7531
- import { jsx as jsx252, jsxs as jsxs56 } from "react/jsx-runtime";
7523
+ import { jsx as jsx253, jsxs as jsxs56 } from "react/jsx-runtime";
7532
7524
  var Tooltip = ({
7533
7525
  text,
7534
7526
  placement = "bottom",
@@ -7651,15 +7643,15 @@ var Tooltip = ({
7651
7643
  ),
7652
7644
  children: [
7653
7645
  text,
7654
- /* @__PURE__ */ jsx252("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ jsxs56("svg", { width: "36", height: "9", children: [
7655
- /* @__PURE__ */ jsx252(
7646
+ /* @__PURE__ */ jsx253("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ jsxs56("svg", { width: "36", height: "9", children: [
7647
+ /* @__PURE__ */ jsx253(
7656
7648
  "path",
7657
7649
  {
7658
7650
  d: "M16.586 6.586L10 0h16.154a.373.373 0 00-.263.11l-6.477 6.476a2 2 0 01-2.828 0z",
7659
7651
  className: Tooltip_default["svg-arrow__background"]
7660
7652
  }
7661
7653
  ),
7662
- /* @__PURE__ */ jsx252(
7654
+ /* @__PURE__ */ jsx253(
7663
7655
  "path",
7664
7656
  {
7665
7657
  fillRule: "evenodd",
@@ -7679,7 +7671,7 @@ var Tooltip = ({
7679
7671
  Tooltip.displayName = "Tooltip";
7680
7672
 
7681
7673
  // src/components/Feedback/RatingComponent.tsx
7682
- import { jsx as jsx253, jsxs as jsxs57 } from "react/jsx-runtime";
7674
+ import { jsx as jsx254, jsxs as jsxs57 } from "react/jsx-runtime";
7683
7675
  var RatingComponent = ({
7684
7676
  layout,
7685
7677
  ratingLabel,
@@ -7689,7 +7681,7 @@ var RatingComponent = ({
7689
7681
  handleRatingChange
7690
7682
  }) => {
7691
7683
  const { t } = useTranslation();
7692
- const button = (rating, layout2, tooltip) => /* @__PURE__ */ jsx253(
7684
+ const button = (rating, layout2, tooltip) => /* @__PURE__ */ jsx254(
7693
7685
  InlineIconButton,
7694
7686
  {
7695
7687
  "aria-label": tooltip,
@@ -7707,10 +7699,10 @@ var RatingComponent = ({
7707
7699
  Feedback_default[`rating-container--${layout}`]
7708
7700
  ),
7709
7701
  children: [
7710
- /* @__PURE__ */ jsx253("h2", { className: typographyStyles_default["label-medium"], children: ratingLabel }),
7711
- loading ? /* @__PURE__ */ jsx253(Spinner, { tooltip: t(texts11.uploadingFeedback) }) : /* @__PURE__ */ jsxs57(HStack, { gap: "x1", children: [
7712
- /* @__PURE__ */ jsx253(Tooltip, { text: thumbUpTooltip, children: button("positive", layout, thumbUpTooltip) }),
7713
- /* @__PURE__ */ jsx253(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ jsx253("div", { children: button("negative", layout, thumbDownTooltip) }) })
7702
+ /* @__PURE__ */ jsx254("h2", { className: typographyStyles_default["label-medium"], children: ratingLabel }),
7703
+ loading ? /* @__PURE__ */ jsx254(Spinner, { tooltip: t(texts11.uploadingFeedback) }) : /* @__PURE__ */ jsxs57(HStack, { gap: "x1", children: [
7704
+ /* @__PURE__ */ jsx254(Tooltip, { text: thumbUpTooltip, children: button("positive", layout, thumbUpTooltip) }),
7705
+ /* @__PURE__ */ jsx254(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ jsx254("div", { children: button("negative", layout, thumbDownTooltip) }) })
7714
7706
  ] })
7715
7707
  ]
7716
7708
  }
@@ -7726,7 +7718,7 @@ var texts11 = createTexts({
7726
7718
  });
7727
7719
 
7728
7720
  // src/components/Feedback/Feedback.tsx
7729
- import { jsx as jsx254 } from "react/jsx-runtime";
7721
+ import { jsx as jsx255 } from "react/jsx-runtime";
7730
7722
  var Feedback = ({
7731
7723
  layout = "vertical",
7732
7724
  ratingLabel,
@@ -7781,7 +7773,7 @@ var Feedback = ({
7781
7773
  if (isSubmittedProp === void 0) setIsFeedbackSubmitted(true);
7782
7774
  };
7783
7775
  if (rating === null && !isFeedbackSubmitted) {
7784
- return /* @__PURE__ */ jsx254(
7776
+ return /* @__PURE__ */ jsx255(
7785
7777
  RatingComponent,
7786
7778
  {
7787
7779
  layout,
@@ -7794,7 +7786,7 @@ var Feedback = ({
7794
7786
  );
7795
7787
  }
7796
7788
  if (!feedbackTextAreaExcluded && !isFeedbackSubmitted) {
7797
- return /* @__PURE__ */ jsx254(
7789
+ return /* @__PURE__ */ jsx255(
7798
7790
  CommentComponent,
7799
7791
  {
7800
7792
  layout,
@@ -7810,7 +7802,7 @@ var Feedback = ({
7810
7802
  }
7811
7803
  );
7812
7804
  }
7813
- return /* @__PURE__ */ jsx254(Paragraph, { children: tSubmittedTitle });
7805
+ return /* @__PURE__ */ jsx255(Paragraph, { children: tSubmittedTitle });
7814
7806
  };
7815
7807
  var texts12 = createTexts({
7816
7808
  ratingQuestion: {
@@ -7855,13 +7847,13 @@ var texts12 = createTexts({
7855
7847
  var container = "Fieldset_container";
7856
7848
 
7857
7849
  // src/components/Fieldset/Fieldset.tsx
7858
- import { jsx as jsx255 } from "react/jsx-runtime";
7850
+ import { jsx as jsx256 } from "react/jsx-runtime";
7859
7851
  var Fieldset = ({
7860
7852
  id,
7861
7853
  className,
7862
7854
  htmlProps,
7863
7855
  ...rest
7864
- }) => /* @__PURE__ */ jsx255(
7856
+ }) => /* @__PURE__ */ jsx256(
7865
7857
  "fieldset",
7866
7858
  {
7867
7859
  ...getBaseHTMLProps(id, cn(className, container), htmlProps, rest)
@@ -7870,27 +7862,27 @@ var Fieldset = ({
7870
7862
  Fieldset.displayName = "Fieldset";
7871
7863
 
7872
7864
  // src/components/Fieldset/FieldsetGroup.tsx
7873
- import { jsx as jsx256 } from "react/jsx-runtime";
7865
+ import { jsx as jsx257 } from "react/jsx-runtime";
7874
7866
  var FieldsetGroup = ({
7875
7867
  id,
7876
7868
  className,
7877
7869
  htmlProps,
7878
7870
  ...rest
7879
- }) => /* @__PURE__ */ jsx256(VStack, { gap: "x1.5", ...getBaseHTMLProps(id, className, htmlProps, rest) });
7871
+ }) => /* @__PURE__ */ jsx257(VStack, { gap: "x1.5", ...getBaseHTMLProps(id, className, htmlProps, rest) });
7880
7872
  FieldsetGroup.displayName = "FieldsetGroup";
7881
7873
 
7882
7874
  // src/components/FileUploader/FileUploader.tsx
7883
7875
  import { useId as useId14 } from "react";
7884
7876
 
7885
7877
  // src/components/FileUploader/ErrorList.tsx
7886
- import { jsx as jsx257 } from "react/jsx-runtime";
7878
+ import { jsx as jsx258 } from "react/jsx-runtime";
7887
7879
  var ErrorList = (props) => {
7888
7880
  const { errors } = props;
7889
7881
  if (errors.length < 1) {
7890
7882
  return null;
7891
7883
  }
7892
7884
  if (errors.length === 1) {
7893
- return /* @__PURE__ */ jsx257(
7885
+ return /* @__PURE__ */ jsx258(
7894
7886
  InputMessage,
7895
7887
  {
7896
7888
  id: errors[0].id,
@@ -7899,8 +7891,8 @@ var ErrorList = (props) => {
7899
7891
  }
7900
7892
  );
7901
7893
  }
7902
- return /* @__PURE__ */ jsx257(StylelessList, { children: errors.map(({ id, message }) => {
7903
- return /* @__PURE__ */ jsx257("li", { children: /* @__PURE__ */ jsx257(
7894
+ return /* @__PURE__ */ jsx258(StylelessList, { children: errors.map(({ id, message }) => {
7895
+ return /* @__PURE__ */ jsx258("li", { children: /* @__PURE__ */ jsx258(
7904
7896
  InputMessage,
7905
7897
  {
7906
7898
  id,
@@ -7925,7 +7917,7 @@ var FileUploader_default = {
7925
7917
  };
7926
7918
 
7927
7919
  // src/components/FileUploader/File.tsx
7928
- import { jsx as jsx258, jsxs as jsxs58 } from "react/jsx-runtime";
7920
+ import { jsx as jsx259, jsxs as jsxs58 } from "react/jsx-runtime";
7929
7921
  var File = (props) => {
7930
7922
  const { t } = useTranslation();
7931
7923
  const { parentId, index, file: stateFile, removeFile, isValid } = props;
@@ -7947,21 +7939,21 @@ var File = (props) => {
7947
7939
  background: "surface-subtle",
7948
7940
  className: cn(!isValid && FileUploader_default["file--invalid"]),
7949
7941
  children: [
7950
- /* @__PURE__ */ jsx258(
7942
+ /* @__PURE__ */ jsx259(
7951
7943
  "span",
7952
7944
  {
7953
7945
  className: cn(FileUploader_default.file__name, typographyStyles_default["body-medium"]),
7954
7946
  children: stateFile.file.name
7955
7947
  }
7956
7948
  ),
7957
- /* @__PURE__ */ jsx258(
7949
+ /* @__PURE__ */ jsx259(
7958
7950
  Icon,
7959
7951
  {
7960
7952
  icon: isValid ? CheckCircledIcon : ErrorIcon,
7961
7953
  className: FileUploader_default[`file__icon--${isValid ? "valid" : "invalid"}`]
7962
7954
  }
7963
7955
  ),
7964
- /* @__PURE__ */ jsx258(
7956
+ /* @__PURE__ */ jsx259(
7965
7957
  Button,
7966
7958
  {
7967
7959
  size: "small",
@@ -7982,7 +7974,7 @@ var File = (props) => {
7982
7974
  ]
7983
7975
  }
7984
7976
  ),
7985
- /* @__PURE__ */ jsx258(ErrorList, { errors: errorsList })
7977
+ /* @__PURE__ */ jsx259(ErrorList, { errors: errorsList })
7986
7978
  ] });
7987
7979
  };
7988
7980
  var texts13 = createTexts({
@@ -8285,7 +8277,7 @@ var useFileUploader = (props) => {
8285
8277
  };
8286
8278
 
8287
8279
  // src/components/FileUploader/FileUploader.tsx
8288
- import { jsx as jsx259, jsxs as jsxs59 } from "react/jsx-runtime";
8280
+ import { jsx as jsx260, jsxs as jsxs59 } from "react/jsx-runtime";
8289
8281
  var FileUploader = (props) => {
8290
8282
  const {
8291
8283
  id,
@@ -8330,12 +8322,11 @@ var FileUploader = (props) => {
8330
8322
  const hasLabel = label !== void 0;
8331
8323
  const hasTip = tip !== void 0;
8332
8324
  const hasRootErrors = rootErrors.length > 0;
8333
- const showRequiredMarker = required;
8334
8325
  const labelId = derivativeIdGenerator(uniqueId, "label");
8335
8326
  const tipId = derivativeIdGenerator(uniqueId, "tip");
8336
8327
  const buttonId = derivativeIdGenerator(uniqueId, "button");
8337
8328
  const inputId = derivativeIdGenerator(uniqueId, "input");
8338
- const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ jsx259(
8329
+ const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ jsx260(
8339
8330
  File,
8340
8331
  {
8341
8332
  parentId: uniqueId,
@@ -8350,7 +8341,7 @@ var FileUploader = (props) => {
8350
8341
  id: derivativeIdGenerator(uniqueId, `error-${index}`),
8351
8342
  message: e
8352
8343
  }));
8353
- const button = /* @__PURE__ */ jsx259(
8344
+ const button = /* @__PURE__ */ jsx260(
8354
8345
  Button,
8355
8346
  {
8356
8347
  ...getButtonProps(),
@@ -8378,16 +8369,13 @@ var FileUploader = (props) => {
8378
8369
  width,
8379
8370
  ...rest,
8380
8371
  children: [
8381
- hasLabel && /* @__PURE__ */ jsx259(
8382
- Label,
8383
- {
8384
- id: labelId,
8385
- showRequiredStyling: showRequiredMarker,
8386
- htmlFor: inputId,
8387
- children: label
8388
- }
8389
- ),
8390
- hasTip && /* @__PURE__ */ jsx259(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
8372
+ renderLabel({
8373
+ label,
8374
+ id: labelId,
8375
+ showRequiredStyling: required,
8376
+ htmlFor: inputId
8377
+ }),
8378
+ hasTip && /* @__PURE__ */ jsx260(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
8391
8379
  withDragAndDrop ? /* @__PURE__ */ jsxs59(
8392
8380
  VStack,
8393
8381
  {
@@ -8400,7 +8388,7 @@ var FileUploader = (props) => {
8400
8388
  isDragActive && FileUploader_default["input-container--drag-active"]
8401
8389
  ),
8402
8390
  children: [
8403
- /* @__PURE__ */ jsx259(
8391
+ /* @__PURE__ */ jsx260(
8404
8392
  "input",
8405
8393
  {
8406
8394
  ...getInputProps(),
@@ -8409,16 +8397,16 @@ var FileUploader = (props) => {
8409
8397
  }
8410
8398
  ),
8411
8399
  tDropAreaLabel,
8412
- /* @__PURE__ */ jsx259(VisuallyHidden, { children: t(texts14.uploadFileWithButton) }),
8400
+ /* @__PURE__ */ jsx260(VisuallyHidden, { children: t(texts14.uploadFileWithButton) }),
8413
8401
  button
8414
8402
  ]
8415
8403
  }
8416
8404
  ) : /* @__PURE__ */ jsxs59("div", { className: FileUploader_default["input-container--no-drag-zone"], children: [
8417
- /* @__PURE__ */ jsx259("input", { ...getInputProps(), id: inputId }),
8405
+ /* @__PURE__ */ jsx260("input", { ...getInputProps(), id: inputId }),
8418
8406
  button
8419
8407
  ] }),
8420
- /* @__PURE__ */ jsx259(ErrorList, { errors: rootErrorsList }),
8421
- !hideFileList && /* @__PURE__ */ jsx259(StylelessList, { children: fileListElements })
8408
+ /* @__PURE__ */ jsx260(ErrorList, { errors: rootErrorsList }),
8409
+ !hideFileList && /* @__PURE__ */ jsx260(StylelessList, { children: fileListElements })
8422
8410
  ]
8423
8411
  }
8424
8412
  );
@@ -8450,25 +8438,25 @@ var Footer_default = {
8450
8438
  };
8451
8439
 
8452
8440
  // src/components/Footer/Footer.tsx
8453
- import { jsx as jsx260 } from "react/jsx-runtime";
8454
- var Footer = ({ className, ...rest }) => /* @__PURE__ */ jsx260(Contrast, { as: "footer", className: cn(className, Footer_default.container), ...rest });
8441
+ import { jsx as jsx261 } from "react/jsx-runtime";
8442
+ var Footer = ({ className, ...rest }) => /* @__PURE__ */ jsx261(Contrast, { as: "footer", className: cn(className, Footer_default.container), ...rest });
8455
8443
 
8456
8444
  // src/components/Footer/FooterListHeader.tsx
8457
- import { jsx as jsx261 } from "react/jsx-runtime";
8458
- var FooterListHeader = (props) => /* @__PURE__ */ jsx261(Heading, { level: 2, typographyType: "headingSmall", ...props });
8445
+ import { jsx as jsx262 } from "react/jsx-runtime";
8446
+ var FooterListHeader = (props) => /* @__PURE__ */ jsx262(Heading, { level: 2, typographyType: "headingSmall", ...props });
8459
8447
 
8460
8448
  // src/components/Footer/norges_domstoler_logo.svg
8461
8449
  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';
8462
8450
 
8463
8451
  // src/components/Footer/FooterLogo.tsx
8464
- import { jsx as jsx262 } from "react/jsx-runtime";
8452
+ import { jsx as jsx263 } from "react/jsx-runtime";
8465
8453
  var FooterLogo = ({ hideBreakpoint, ...rest }) => {
8466
- return /* @__PURE__ */ jsx262(
8454
+ return /* @__PURE__ */ jsx263(
8467
8455
  Box,
8468
8456
  {
8469
8457
  hideBelow: hideBreakpoint ? hideBreakpoint : void 0,
8470
8458
  width: "fit-content",
8471
- children: /* @__PURE__ */ jsx262(
8459
+ children: /* @__PURE__ */ jsx263(
8472
8460
  "img",
8473
8461
  {
8474
8462
  height: 80,
@@ -8483,33 +8471,33 @@ var FooterLogo = ({ hideBreakpoint, ...rest }) => {
8483
8471
  };
8484
8472
 
8485
8473
  // src/components/Footer/FooterList.tsx
8486
- import { jsx as jsx263 } from "react/jsx-runtime";
8487
- var FooterList = ({ className, ...rest }) => /* @__PURE__ */ jsx263(StylelessList, { className: cn(className, Footer_default.list), ...rest });
8474
+ import { jsx as jsx264 } from "react/jsx-runtime";
8475
+ var FooterList = ({ className, ...rest }) => /* @__PURE__ */ jsx264(StylelessList, { className: cn(className, Footer_default.list), ...rest });
8488
8476
 
8489
8477
  // src/components/Footer/FooterSocialsList.tsx
8490
- import { jsx as jsx264 } from "react/jsx-runtime";
8478
+ import { jsx as jsx265 } from "react/jsx-runtime";
8491
8479
  var FooterSocialsList = ({
8492
8480
  className,
8493
8481
  ...rest
8494
- }) => /* @__PURE__ */ jsx264(StylelessList, { className: cn(className, Footer_default["socials-list"]), ...rest });
8482
+ }) => /* @__PURE__ */ jsx265(StylelessList, { className: cn(className, Footer_default["socials-list"]), ...rest });
8495
8483
 
8496
8484
  // src/components/Footer/FooterSocialsGroup.tsx
8497
- import { jsx as jsx265 } from "react/jsx-runtime";
8485
+ import { jsx as jsx266 } from "react/jsx-runtime";
8498
8486
  var FooterSocialsGroup = ({
8499
8487
  className,
8500
8488
  ...rest
8501
- }) => /* @__PURE__ */ jsx265("div", { className: cn(className, Footer_default["socials-group"]), ...rest });
8489
+ }) => /* @__PURE__ */ jsx266("div", { className: cn(className, Footer_default["socials-group"]), ...rest });
8502
8490
 
8503
8491
  // src/components/Footer/FooterListGroup.tsx
8504
- import { jsx as jsx266 } from "react/jsx-runtime";
8492
+ import { jsx as jsx267 } from "react/jsx-runtime";
8505
8493
  var FooterListGroup = ({
8506
8494
  className,
8507
8495
  ...rest
8508
- }) => /* @__PURE__ */ jsx266("div", { className: cn(className, Footer_default["list-group"]), ...rest });
8496
+ }) => /* @__PURE__ */ jsx267("div", { className: cn(className, Footer_default["list-group"]), ...rest });
8509
8497
 
8510
8498
  // src/components/Footer/FooterLeft.tsx
8511
- import { jsx as jsx267 } from "react/jsx-runtime";
8512
- var FooterLeft = ({ className, ...rest }) => /* @__PURE__ */ jsx267("div", { className: cn(className, Footer_default["left"]), ...rest });
8499
+ import { jsx as jsx268 } from "react/jsx-runtime";
8500
+ var FooterLeft = ({ className, ...rest }) => /* @__PURE__ */ jsx268("div", { className: cn(className, Footer_default["left"]), ...rest });
8513
8501
 
8514
8502
  // src/components/GlobalMessage/GlobalMessage.tsx
8515
8503
  import { useState as useState17 } from "react";
@@ -8526,7 +8514,7 @@ var GlobalMessage_default = {
8526
8514
  };
8527
8515
 
8528
8516
  // src/components/GlobalMessage/GlobalMessage.tsx
8529
- import { jsx as jsx268, jsxs as jsxs60 } from "react/jsx-runtime";
8517
+ import { jsx as jsx269, jsxs as jsxs60 } from "react/jsx-runtime";
8530
8518
  var icons = {
8531
8519
  info: InfoIcon,
8532
8520
  danger: ErrorIcon,
@@ -8565,12 +8553,12 @@ var GlobalMessage = ({
8565
8553
  {
8566
8554
  className: cn(GlobalMessage_default.content, closable && GlobalMessage_default["content--closable"]),
8567
8555
  children: [
8568
- /* @__PURE__ */ jsx268(Icon, { icon: icons[purpose], className: GlobalMessage_default.icon }),
8569
- children != null ? children : /* @__PURE__ */ jsx268("span", { children: message })
8556
+ /* @__PURE__ */ jsx269(Icon, { icon: icons[purpose], className: GlobalMessage_default.icon }),
8557
+ children != null ? children : /* @__PURE__ */ jsx269("span", { children: message })
8570
8558
  ]
8571
8559
  }
8572
8560
  ),
8573
- closable && /* @__PURE__ */ jsx268(
8561
+ closable && /* @__PURE__ */ jsx269(
8574
8562
  Button,
8575
8563
  {
8576
8564
  icon: CloseIcon,
@@ -8595,12 +8583,12 @@ var InlineButton_default = {
8595
8583
  };
8596
8584
 
8597
8585
  // src/components/InlineButton/InlineButton.tsx
8598
- import { jsx as jsx269 } from "react/jsx-runtime";
8586
+ import { jsx as jsx270 } from "react/jsx-runtime";
8599
8587
  var InlineButton = ({
8600
8588
  className,
8601
8589
  color,
8602
8590
  ...rest
8603
- }) => /* @__PURE__ */ jsx269(
8591
+ }) => /* @__PURE__ */ jsx270(
8604
8592
  StylelessButton,
8605
8593
  {
8606
8594
  className: cn(
@@ -8623,7 +8611,7 @@ import {
8623
8611
  useContext as useContext16,
8624
8612
  useState as useState18
8625
8613
  } from "react";
8626
- import { jsx as jsx270 } from "react/jsx-runtime";
8614
+ import { jsx as jsx271 } from "react/jsx-runtime";
8627
8615
  var InlineEditContext = createContext12(
8628
8616
  {}
8629
8617
  );
@@ -8667,7 +8655,7 @@ var InlineEditContextProvider = (props) => {
8667
8655
  useOnKeyDown(["Enter"], () => onExitHandler());
8668
8656
  useOnKeyDown(["Escape"], () => onExitHandler());
8669
8657
  useOnClickOutside(inputRef == null ? void 0 : inputRef.current, () => onExitHandler());
8670
- return /* @__PURE__ */ jsx270(
8658
+ return /* @__PURE__ */ jsx271(
8671
8659
  InlineEditContext,
8672
8660
  {
8673
8661
  value: {
@@ -8771,7 +8759,7 @@ function createClearChangeEvent(elementId) {
8771
8759
  }
8772
8760
 
8773
8761
  // src/components/InlineEdit/InlineField.tsx
8774
- import { Fragment as Fragment6, jsx as jsx271, jsxs as jsxs62 } from "react/jsx-runtime";
8762
+ import { Fragment as Fragment6, jsx as jsx272, jsxs as jsxs62 } from "react/jsx-runtime";
8775
8763
  function InlineField(props) {
8776
8764
  const {
8777
8765
  elementType,
@@ -8817,7 +8805,7 @@ function InlineField(props) {
8817
8805
  const cnArgs = [hasErrorState, !isEditing && !hideIcon];
8818
8806
  const iconSize = "small";
8819
8807
  function makeIcon(icon, className2) {
8820
- return /* @__PURE__ */ jsx271(
8808
+ return /* @__PURE__ */ jsx272(
8821
8809
  Icon,
8822
8810
  {
8823
8811
  iconSize,
@@ -8832,7 +8820,7 @@ function InlineField(props) {
8832
8820
  const renderElement = () => {
8833
8821
  switch (elementType) {
8834
8822
  case "input":
8835
- return /* @__PURE__ */ jsx271(
8823
+ return /* @__PURE__ */ jsx272(
8836
8824
  "input",
8837
8825
  {
8838
8826
  ...rest,
@@ -8842,7 +8830,7 @@ function InlineField(props) {
8842
8830
  }
8843
8831
  );
8844
8832
  case "textarea":
8845
- return /* @__PURE__ */ jsx271(
8833
+ return /* @__PURE__ */ jsx272(
8846
8834
  "textarea",
8847
8835
  {
8848
8836
  ...rest,
@@ -8853,7 +8841,7 @@ function InlineField(props) {
8853
8841
  );
8854
8842
  case "select":
8855
8843
  return /* @__PURE__ */ jsxs62(Fragment6, { children: [
8856
- /* @__PURE__ */ jsx271(
8844
+ /* @__PURE__ */ jsx272(
8857
8845
  "select",
8858
8846
  {
8859
8847
  ...rest,
@@ -8862,7 +8850,7 @@ function InlineField(props) {
8862
8850
  className: cn(className, ...inlineSelectCns(...cnArgs, hasValue))
8863
8851
  }
8864
8852
  ),
8865
- hasValue && emptiable && /* @__PURE__ */ jsx271(
8853
+ hasValue && emptiable && /* @__PURE__ */ jsx272(
8866
8854
  ClearButton,
8867
8855
  {
8868
8856
  "aria-label": t(commonTexts.clearSelect),
@@ -8888,7 +8876,7 @@ function InlineField(props) {
8888
8876
  }
8889
8877
 
8890
8878
  // src/components/InlineEdit/InlineEditTextArea/InlineEditTextArea.tsx
8891
- import { jsx as jsx272 } from "react/jsx-runtime";
8879
+ import { jsx as jsx273 } from "react/jsx-runtime";
8892
8880
  var InlineEditTextArea = ({
8893
8881
  onSetValue,
8894
8882
  emptiable,
@@ -8901,7 +8889,7 @@ var InlineEditTextArea = ({
8901
8889
  }) => {
8902
8890
  const textareaRef = useRef25(null);
8903
8891
  const combinedRef = useCombinedRef(ref, textareaRef);
8904
- return /* @__PURE__ */ jsx272(
8892
+ return /* @__PURE__ */ jsx273(
8905
8893
  InlineEditContextProvider,
8906
8894
  {
8907
8895
  onSetValue,
@@ -8911,14 +8899,14 @@ var InlineEditTextArea = ({
8911
8899
  onFocus,
8912
8900
  onChange,
8913
8901
  onBlur,
8914
- children: /* @__PURE__ */ jsx272(InlineField, { elementType: "textarea", ...rest, ref: combinedRef })
8902
+ children: /* @__PURE__ */ jsx273(InlineField, { elementType: "textarea", ...rest, ref: combinedRef })
8915
8903
  }
8916
8904
  );
8917
8905
  };
8918
8906
 
8919
8907
  // src/components/InlineEdit/InlineEditInput/InlineEditInput.tsx
8920
8908
  import { useRef as useRef26 } from "react";
8921
- import { jsx as jsx273 } from "react/jsx-runtime";
8909
+ import { jsx as jsx274 } from "react/jsx-runtime";
8922
8910
  var InlineEditInput = ({
8923
8911
  onSetValue,
8924
8912
  emptiable,
@@ -8931,7 +8919,7 @@ var InlineEditInput = ({
8931
8919
  }) => {
8932
8920
  const inputRef = useRef26(null);
8933
8921
  const combinedRef = useCombinedRef(ref, inputRef);
8934
- return /* @__PURE__ */ jsx273(
8922
+ return /* @__PURE__ */ jsx274(
8935
8923
  InlineEditContextProvider,
8936
8924
  {
8937
8925
  onSetValue,
@@ -8941,14 +8929,14 @@ var InlineEditInput = ({
8941
8929
  onFocus,
8942
8930
  onChange,
8943
8931
  onBlur,
8944
- children: /* @__PURE__ */ jsx273(InlineField, { elementType: "input", ...rest, ref: combinedRef })
8932
+ children: /* @__PURE__ */ jsx274(InlineField, { elementType: "input", ...rest, ref: combinedRef })
8945
8933
  }
8946
8934
  );
8947
8935
  };
8948
8936
 
8949
8937
  // src/components/InlineEdit/InlineEditSelect/InlineEditSelect.tsx
8950
8938
  import { useRef as useRef27 } from "react";
8951
- import { jsx as jsx274 } from "react/jsx-runtime";
8939
+ import { jsx as jsx275 } from "react/jsx-runtime";
8952
8940
  var InlineEditSelect = ({
8953
8941
  onSetValue,
8954
8942
  emptiable,
@@ -8961,7 +8949,7 @@ var InlineEditSelect = ({
8961
8949
  }) => {
8962
8950
  const inputRef = useRef27(null);
8963
8951
  const combinedRef = useCombinedRef(ref, inputRef);
8964
- return /* @__PURE__ */ jsx274(
8952
+ return /* @__PURE__ */ jsx275(
8965
8953
  InlineEditContextProvider,
8966
8954
  {
8967
8955
  onSetValue,
@@ -8971,7 +8959,7 @@ var InlineEditSelect = ({
8971
8959
  onFocus,
8972
8960
  onChange,
8973
8961
  onBlur,
8974
- children: /* @__PURE__ */ jsx274(InlineField, { elementType: "select", ...rest, ref: combinedRef })
8962
+ children: /* @__PURE__ */ jsx275(InlineField, { elementType: "select", ...rest, ref: combinedRef })
8975
8963
  }
8976
8964
  );
8977
8965
  };
@@ -8993,8 +8981,8 @@ var InternalHeader_default = {
8993
8981
  };
8994
8982
 
8995
8983
  // src/components/InternalHeader/NavigationItem.tsx
8996
- import { jsx as jsx275 } from "react/jsx-runtime";
8997
- var NavigationItem = ({ isCurrent, ...rest }) => /* @__PURE__ */ jsx275(
8984
+ import { jsx as jsx276 } from "react/jsx-runtime";
8985
+ var NavigationItem = ({ isCurrent, ...rest }) => /* @__PURE__ */ jsx276(
8998
8986
  "a",
8999
8987
  {
9000
8988
  ...rest,
@@ -9009,7 +8997,7 @@ var NavigationItem = ({ isCurrent, ...rest }) => /* @__PURE__ */ jsx275(
9009
8997
  );
9010
8998
 
9011
8999
  // src/components/InternalHeader/InternalHeader.tsx
9012
- import { jsx as jsx276, jsxs as jsxs63 } from "react/jsx-runtime";
9000
+ import { jsx as jsx277, jsxs as jsxs63 } from "react/jsx-runtime";
9013
9001
  import { createElement as createElement2 } from "react";
9014
9002
  var InternalHeader = (props) => {
9015
9003
  const {
@@ -9039,7 +9027,7 @@ var InternalHeader = (props) => {
9039
9027
  const hasContextMenuElements = !!contextMenuItems && contextMenuItems.length > 0;
9040
9028
  const hasSmallScreenBreakpoint = !!smallScreenBreakpoint;
9041
9029
  const hasNavInContextMenu = hasSmallScreenBreakpoint && hasNavigationElements;
9042
- const navigation = hasNavigationElements ? /* @__PURE__ */ jsx276("nav", { "aria-label": t(texts16.siteNavigation), children: /* @__PURE__ */ jsx276(
9030
+ const navigation = hasNavigationElements ? /* @__PURE__ */ jsx277("nav", { "aria-label": t(texts16.siteNavigation), children: /* @__PURE__ */ jsx277(
9043
9031
  ShowHide,
9044
9032
  {
9045
9033
  as: StylelessList,
@@ -9048,7 +9036,7 @@ var InternalHeader = (props) => {
9048
9036
  children: navItems.map((item, i) => {
9049
9037
  const { href, ...rest2 } = item;
9050
9038
  const isCurrent = href === currentPage;
9051
- return /* @__PURE__ */ jsx276("li", { className: InternalHeader_default["nav-list__item"], children: /* @__PURE__ */ jsx276(
9039
+ return /* @__PURE__ */ jsx277("li", { className: InternalHeader_default["nav-list__item"], children: /* @__PURE__ */ jsx277(
9052
9040
  NavigationItem,
9053
9041
  {
9054
9042
  href,
@@ -9080,7 +9068,7 @@ var InternalHeader = (props) => {
9080
9068
  rest
9081
9069
  ),
9082
9070
  children: [
9083
- /* @__PURE__ */ jsx276(Typography, { typographyType: "headingSmall", bold: true, as: "span", children: applicationHref ? /* @__PURE__ */ jsx276(
9071
+ /* @__PURE__ */ jsx277(Typography, { typographyType: "headingSmall", bold: true, as: "span", children: applicationHref ? /* @__PURE__ */ jsx277(
9084
9072
  "a",
9085
9073
  {
9086
9074
  href: applicationHref,
@@ -9089,16 +9077,16 @@ var InternalHeader = (props) => {
9089
9077
  children: applicationName
9090
9078
  }
9091
9079
  ) : applicationName }),
9092
- /* @__PURE__ */ jsx276(Typography, { typographyType: "bodyMedium", as: "span", children: applicationDesc }),
9093
- (hasContextMenu || navigation !== null) && /* @__PURE__ */ jsx276("div", { className: InternalHeader_default["bar-separator"] }),
9080
+ /* @__PURE__ */ jsx277(Typography, { typographyType: "bodyMedium", as: "span", children: applicationDesc }),
9081
+ (hasContextMenu || navigation !== null) && /* @__PURE__ */ jsx277("div", { className: InternalHeader_default["bar-separator"] }),
9094
9082
  navigation,
9095
- hasContextMenu && /* @__PURE__ */ jsx276(
9083
+ hasContextMenu && /* @__PURE__ */ jsx277(
9096
9084
  ShowHide,
9097
9085
  {
9098
9086
  showBelow: !hasContextMenuLargeScreen && hasSmallScreenBreakpoint ? smallScreenBreakpoint : void 0,
9099
9087
  className: cn(InternalHeader_default["context-menu-group"]),
9100
9088
  children: /* @__PURE__ */ jsxs63(OverflowMenuGroup, { children: [
9101
- /* @__PURE__ */ jsx276(
9089
+ /* @__PURE__ */ jsx277(
9102
9090
  Button,
9103
9091
  {
9104
9092
  icon: hasNavInContextMenu ? MenuIcon : MoreVerticalIcon,
@@ -9107,24 +9095,24 @@ var InternalHeader = (props) => {
9107
9095
  }
9108
9096
  ),
9109
9097
  /* @__PURE__ */ jsxs63(OverflowMenu, { className: InternalHeader_default["context-menu"], children: [
9110
- user && /* @__PURE__ */ jsx276(OverflowMenuList, { children: user.href ? /* @__PURE__ */ jsx276(OverflowMenuLink, { icon: PersonIcon, ...user }) : /* @__PURE__ */ jsx276(OverflowMenuSpan, { icon: PersonIcon, ...user }) }),
9111
- hasNavInContextMenu && /* @__PURE__ */ jsx276(
9098
+ user && /* @__PURE__ */ jsx277(OverflowMenuList, { children: user.href ? /* @__PURE__ */ jsx277(OverflowMenuLink, { icon: PersonIcon, ...user }) : /* @__PURE__ */ jsx277(OverflowMenuSpan, { icon: PersonIcon, ...user }) }),
9099
+ hasNavInContextMenu && /* @__PURE__ */ jsx277(
9112
9100
  ShowHide,
9113
9101
  {
9114
9102
  as: "nav",
9115
9103
  "aria-label": t(texts16.siteNavigation),
9116
9104
  showBelow: smallScreenBreakpoint,
9117
- children: /* @__PURE__ */ jsx276(OverflowMenuList, { children: navItems.map((item, i) => /* @__PURE__ */ createElement2(OverflowMenuLink, { ...item, key: `nav-${i}` })) })
9105
+ children: /* @__PURE__ */ jsx277(OverflowMenuList, { children: navItems.map((item, i) => /* @__PURE__ */ createElement2(OverflowMenuLink, { ...item, key: `nav-${i}` })) })
9118
9106
  }
9119
9107
  ),
9120
- hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */ jsx276(
9108
+ hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */ jsx277(
9121
9109
  ShowHide,
9122
9110
  {
9123
9111
  as: OverflowMenuDivider,
9124
9112
  showBelow: smallScreenBreakpoint
9125
9113
  }
9126
9114
  ),
9127
- hasContextMenuElements && /* @__PURE__ */ jsx276(OverflowMenuList, { children: contextMenuItems.map((item, i) => {
9115
+ hasContextMenuElements && /* @__PURE__ */ jsx277(OverflowMenuList, { children: contextMenuItems.map((item, i) => {
9128
9116
  return item.href ? /* @__PURE__ */ createElement2(
9129
9117
  OverflowMenuLink,
9130
9118
  {
@@ -9173,7 +9161,7 @@ var List_default = {
9173
9161
  };
9174
9162
 
9175
9163
  // src/components/List/List.tsx
9176
- import { jsx as jsx277 } from "react/jsx-runtime";
9164
+ import { jsx as jsx278 } from "react/jsx-runtime";
9177
9165
  var List = ({
9178
9166
  listType = "unordered",
9179
9167
  typographyType = "inherit",
@@ -9184,7 +9172,7 @@ var List = ({
9184
9172
  ...rest
9185
9173
  }) => {
9186
9174
  const List2 = listType === "ordered" ? "ol" : "ul";
9187
- return /* @__PURE__ */ jsx277(
9175
+ return /* @__PURE__ */ jsx278(
9188
9176
  List2,
9189
9177
  {
9190
9178
  ...getBaseHTMLProps(id, className, htmlProps, rest),
@@ -9200,8 +9188,8 @@ var List = ({
9200
9188
  List.displayName = "List";
9201
9189
 
9202
9190
  // src/components/List/ListItem.tsx
9203
- import { jsx as jsx278 } from "react/jsx-runtime";
9204
- var ListItem = ({ className, ...rest }) => /* @__PURE__ */ jsx278("li", { ...rest, className: cn(className, List_default.li) });
9191
+ import { jsx as jsx279 } from "react/jsx-runtime";
9192
+ var ListItem = ({ className, ...rest }) => /* @__PURE__ */ jsx279("li", { ...rest, className: cn(className, List_default.li) });
9205
9193
  ListItem.displayName = "ListItem";
9206
9194
 
9207
9195
  // src/components/LocalMessage/LocalMessage.tsx
@@ -9226,7 +9214,7 @@ var LocalMessage_default = {
9226
9214
  };
9227
9215
 
9228
9216
  // src/components/LocalMessage/LocalMessage.tsx
9229
- import { Fragment as Fragment7, jsx as jsx279, jsxs as jsxs64 } from "react/jsx-runtime";
9217
+ import { Fragment as Fragment7, jsx as jsx280, jsxs as jsxs64 } from "react/jsx-runtime";
9230
9218
  var icons2 = {
9231
9219
  info: InfoIcon,
9232
9220
  danger: ErrorIcon,
@@ -9250,7 +9238,7 @@ var LocalMessage = ({
9250
9238
  const { t } = useTranslation();
9251
9239
  const [isClosed, setClosed] = useState20(false);
9252
9240
  if (isClosed) {
9253
- return /* @__PURE__ */ jsx279(Fragment7, {});
9241
+ return /* @__PURE__ */ jsx280(Fragment7, {});
9254
9242
  }
9255
9243
  return /* @__PURE__ */ jsxs64(
9256
9244
  Box,
@@ -9273,15 +9261,15 @@ var LocalMessage = ({
9273
9261
  padding: "x0.75 x0.75 x0.75 x0.5",
9274
9262
  gap: "x0.5",
9275
9263
  children: [
9276
- /* @__PURE__ */ jsx279(
9264
+ /* @__PURE__ */ jsx280(
9277
9265
  Icon,
9278
9266
  {
9279
9267
  icon: icons2[purpose],
9280
9268
  className: cn(LocalMessage_default.icon, LocalMessage_default.container__icon)
9281
9269
  }
9282
9270
  ),
9283
- /* @__PURE__ */ jsx279("div", { className: LocalMessage_default.container__text, children: children != null ? children : /* @__PURE__ */ jsx279("span", { children: message }) }),
9284
- closable && /* @__PURE__ */ jsx279(
9271
+ /* @__PURE__ */ jsx280("div", { className: LocalMessage_default.container__text, children: children != null ? children : /* @__PURE__ */ jsx280("span", { children: message }) }),
9272
+ closable && /* @__PURE__ */ jsx280(
9285
9273
  Button,
9286
9274
  {
9287
9275
  icon: CloseIcon,
@@ -9321,7 +9309,7 @@ var Modal_default = {
9321
9309
  };
9322
9310
 
9323
9311
  // src/components/Modal/Modal.tsx
9324
- import { jsx as jsx280, jsxs as jsxs65 } from "react/jsx-runtime";
9312
+ import { jsx as jsx281, jsxs as jsxs65 } from "react/jsx-runtime";
9325
9313
  var Modal = ({
9326
9314
  isOpen = false,
9327
9315
  parentElement,
@@ -9372,7 +9360,7 @@ var Modal = ({
9372
9360
  useOnKeyDown(["Escape", "Esc"], () => handleClose());
9373
9361
  const hasTransitionedIn = useMountTransition(isOpen, 200);
9374
9362
  return (isOpen || hasTransitionedIn) && portalTarget ? createPortal3(
9375
- /* @__PURE__ */ jsx280(
9363
+ /* @__PURE__ */ jsx281(
9376
9364
  Backdrop,
9377
9365
  {
9378
9366
  zIndex: "modal",
@@ -9416,8 +9404,8 @@ var Modal = ({
9416
9404
  width: "100%",
9417
9405
  className: Modal_default["header-container"],
9418
9406
  children: [
9419
- !!header && /* @__PURE__ */ jsx280("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ jsx280(Heading, { level: 2, typographyType: "headingLarge", children: header }) : header }),
9420
- onClose && /* @__PURE__ */ jsx280(
9407
+ !!header && /* @__PURE__ */ jsx281("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ jsx281(Heading, { level: 2, typographyType: "headingLarge", children: header }) : header }),
9408
+ onClose && /* @__PURE__ */ jsx281(
9421
9409
  Button,
9422
9410
  {
9423
9411
  size: "small",
@@ -9431,7 +9419,7 @@ var Modal = ({
9431
9419
  ]
9432
9420
  }
9433
9421
  ),
9434
- /* @__PURE__ */ jsx280(Box, { display: "grid", gap: "x1", children })
9422
+ /* @__PURE__ */ jsx281(Box, { display: "grid", gap: "x1", children })
9435
9423
  ]
9436
9424
  }
9437
9425
  )
@@ -9443,7 +9431,7 @@ var Modal = ({
9443
9431
  Modal.displayName = "Modal";
9444
9432
 
9445
9433
  // src/components/Modal/ModalBody.tsx
9446
- import { jsx as jsx281 } from "react/jsx-runtime";
9434
+ import { jsx as jsx282 } from "react/jsx-runtime";
9447
9435
  var ModalBody = ({
9448
9436
  children,
9449
9437
  id,
@@ -9453,7 +9441,7 @@ var ModalBody = ({
9453
9441
  height,
9454
9442
  ...rest
9455
9443
  }) => {
9456
- return /* @__PURE__ */ jsx281(
9444
+ return /* @__PURE__ */ jsx282(
9457
9445
  "div",
9458
9446
  {
9459
9447
  ...getBaseHTMLProps(
@@ -9475,8 +9463,8 @@ var ModalBody = ({
9475
9463
  ModalBody.displayName = "ModalBody";
9476
9464
 
9477
9465
  // src/components/Modal/ModalActions.tsx
9478
- import { jsx as jsx282 } from "react/jsx-runtime";
9479
- var ModalActions = (props) => /* @__PURE__ */ jsx282(Box, { display: "flex", flexWrap: "wrap", gap: "x1", ...props });
9466
+ import { jsx as jsx283 } from "react/jsx-runtime";
9467
+ var ModalActions = (props) => /* @__PURE__ */ jsx283(Box, { display: "flex", flexWrap: "wrap", gap: "x1", ...props });
9480
9468
  ModalActions.displayName = "ModalActions";
9481
9469
 
9482
9470
  // src/components/Pagination/Pagination.tsx
@@ -9815,7 +9803,7 @@ import React from "react";
9815
9803
  import {
9816
9804
  components
9817
9805
  } from "react-select";
9818
- import { jsx as jsx283, jsxs as jsxs66 } from "react/jsx-runtime";
9806
+ import { jsx as jsx284, jsxs as jsxs66 } from "react/jsx-runtime";
9819
9807
  var {
9820
9808
  Option,
9821
9809
  NoOptionsMessage,
@@ -9840,29 +9828,29 @@ var DDSOption = ({
9840
9828
  componentSize,
9841
9829
  ...props
9842
9830
  }) => /* @__PURE__ */ jsxs66(Option, { ...props, children: [
9843
- props.isSelected && /* @__PURE__ */ jsx283(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
9831
+ props.isSelected && /* @__PURE__ */ jsx284(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
9844
9832
  props.children
9845
9833
  ] });
9846
- var CustomOption = (props) => /* @__PURE__ */ jsx283(Option, { ...props, children: React.createElement(props.customElement, props) });
9834
+ var CustomOption = (props) => /* @__PURE__ */ jsx284(Option, { ...props, children: React.createElement(props.customElement, props) });
9847
9835
  var CustomSingleValue = ({
9848
9836
  id,
9849
9837
  Element,
9850
9838
  ...props
9851
- }) => /* @__PURE__ */ jsx283(SingleValue, { ...props, children: /* @__PURE__ */ jsx283("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ jsx283(Element, { ...props }) : props.children }) });
9852
- var DDSNoOptionsMessage = (props) => /* @__PURE__ */ jsx283(NoOptionsMessage, { ...props, children: "Ingen treff" });
9839
+ }) => /* @__PURE__ */ jsx284(SingleValue, { ...props, children: /* @__PURE__ */ jsx284("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ jsx284(Element, { ...props }) : props.children }) });
9840
+ var DDSNoOptionsMessage = (props) => /* @__PURE__ */ jsx284(NoOptionsMessage, { ...props, children: "Ingen treff" });
9853
9841
  var DDSClearIndicator = ({
9854
9842
  size: size2,
9855
9843
  ...props
9856
- }) => /* @__PURE__ */ jsx283(ClearIndicator, { ...props, children: /* @__PURE__ */ jsx283(Icon, { icon: CloseSmallIcon, iconSize: getIndicatorIconSize(size2) }) });
9857
- var DDSMultiValueRemove = (props) => /* @__PURE__ */ jsx283(MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx283(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
9844
+ }) => /* @__PURE__ */ jsx284(ClearIndicator, { ...props, children: /* @__PURE__ */ jsx284(Icon, { icon: CloseSmallIcon, iconSize: getIndicatorIconSize(size2) }) });
9845
+ var DDSMultiValueRemove = (props) => /* @__PURE__ */ jsx284(MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx284(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
9858
9846
  var DDSDropdownIndicator = (props) => {
9859
9847
  const { className, componentSize, ...rest } = props;
9860
- return /* @__PURE__ */ jsx283(
9848
+ return /* @__PURE__ */ jsx284(
9861
9849
  DropdownIndicator,
9862
9850
  {
9863
9851
  ...rest,
9864
9852
  className: cn(className, Select_default["dropdown-indicator"]),
9865
- children: /* @__PURE__ */ jsx283(
9853
+ children: /* @__PURE__ */ jsx284(
9866
9854
  Icon,
9867
9855
  {
9868
9856
  icon: ChevronDownIcon,
@@ -9876,7 +9864,7 @@ var DDSInput = ({
9876
9864
  ariaInvalid,
9877
9865
  ariaDescribedby,
9878
9866
  ...props
9879
- }) => /* @__PURE__ */ jsx283(
9867
+ }) => /* @__PURE__ */ jsx284(
9880
9868
  Input2,
9881
9869
  {
9882
9870
  ...props,
@@ -9910,7 +9898,7 @@ function DDSControl(props) {
9910
9898
  readOnly && Select_default["control--readonly"]
9911
9899
  ),
9912
9900
  children: [
9913
- icon && /* @__PURE__ */ jsx283(
9901
+ icon && /* @__PURE__ */ jsx284(
9914
9902
  Icon,
9915
9903
  {
9916
9904
  icon,
@@ -9928,14 +9916,13 @@ function DDSControl(props) {
9928
9916
  }
9929
9917
 
9930
9918
  // src/components/Select/Select.tsx
9931
- import { jsx as jsx284, jsxs as jsxs67 } from "react/jsx-runtime";
9919
+ import { jsx as jsx285, jsxs as jsxs67 } from "react/jsx-runtime";
9932
9920
  function Select({
9933
9921
  id,
9934
9922
  label,
9935
9923
  componentSize = "medium",
9936
9924
  errorMessage,
9937
9925
  tip,
9938
- required,
9939
9926
  "aria-required": ariaRequired,
9940
9927
  readOnly,
9941
9928
  options,
@@ -9968,10 +9955,9 @@ function Select({
9968
9955
  const generatedId = useId17();
9969
9956
  const uniqueId = id != null ? id : `${generatedId}-select`;
9970
9957
  const singleValueId = !isMulti ? `${uniqueId}-singleValue` : void 0;
9971
- const hasLabel = !!label;
9972
9958
  const hasErrorMessage = !!errorMessage;
9973
9959
  const hasIcon = !!icon;
9974
- const showRequiredStyling = !!(required || ariaRequired);
9960
+ const showRequiredStyling = !!(rest.required || ariaRequired);
9975
9961
  const tipId = derivativeIdGenerator(uniqueId, "tip");
9976
9962
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
9977
9963
  const inputWidth = getInputWidth(
@@ -9979,7 +9965,7 @@ function Select({
9979
9965
  componentSize === "xsmall" && "var(--dds-input-default-width-xsmall)"
9980
9966
  );
9981
9967
  const customInput = useCallback7(
9982
- (props) => /* @__PURE__ */ jsx284(
9968
+ (props) => /* @__PURE__ */ jsx285(
9983
9969
  DDSInput,
9984
9970
  {
9985
9971
  ...props,
@@ -9997,7 +9983,7 @@ function Select({
9997
9983
  []
9998
9984
  );
9999
9985
  const customSingleValue = useCallback7(
10000
- (props) => /* @__PURE__ */ jsx284(
9986
+ (props) => /* @__PURE__ */ jsx285(
10001
9987
  CustomSingleValue,
10002
9988
  {
10003
9989
  ...props,
@@ -10008,15 +9994,15 @@ function Select({
10008
9994
  []
10009
9995
  );
10010
9996
  const customClearIndicator = useCallback7(
10011
- (props) => /* @__PURE__ */ jsx284(DDSClearIndicator, { ...props, size: componentSize }),
9997
+ (props) => /* @__PURE__ */ jsx285(DDSClearIndicator, { ...props, size: componentSize }),
10012
9998
  [componentSize]
10013
9999
  );
10014
10000
  const customDropdownIndicator = useCallback7(
10015
- (props) => /* @__PURE__ */ jsx284(DDSDropdownIndicator, { ...props, componentSize }),
10001
+ (props) => /* @__PURE__ */ jsx285(DDSDropdownIndicator, { ...props, componentSize }),
10016
10002
  [componentSize]
10017
10003
  );
10018
10004
  const customControl = useCallback7(
10019
- (props) => /* @__PURE__ */ jsx284(
10005
+ (props) => /* @__PURE__ */ jsx285(
10020
10006
  DDSControl,
10021
10007
  {
10022
10008
  ...props,
@@ -10031,9 +10017,9 @@ function Select({
10031
10017
  const customOptionComponent = useCallback7(
10032
10018
  (props) => {
10033
10019
  if (customOptionElement) {
10034
- return /* @__PURE__ */ jsx284(CustomOption, { ...props, customElement: customOptionElement });
10020
+ return /* @__PURE__ */ jsx285(CustomOption, { ...props, customElement: customOptionElement });
10035
10021
  } else {
10036
- return /* @__PURE__ */ jsx284(DDSOption, { ...props, componentSize });
10022
+ return /* @__PURE__ */ jsx285(DDSOption, { ...props, componentSize });
10037
10023
  }
10038
10024
  },
10039
10025
  [customOptionElement, componentSize]
@@ -10073,7 +10059,6 @@ function Select({
10073
10059
  Control: customControl
10074
10060
  },
10075
10061
  "aria-invalid": hasErrorMessage ? true : void 0,
10076
- required,
10077
10062
  onKeyDown: readOnlyKeyDownHandler("select", readOnly, onKeyDown),
10078
10063
  openMenuOnClick: readOnly ? false : openMenuOnClick ? openMenuOnClick : void 0,
10079
10064
  ...rest
@@ -10091,17 +10076,13 @@ function Select({
10091
10076
  ),
10092
10077
  style,
10093
10078
  children: [
10094
- hasLabel && /* @__PURE__ */ jsx284(
10095
- Label,
10096
- {
10097
- htmlFor: uniqueId,
10098
- showRequiredStyling,
10099
- className: Input_default.label,
10100
- readOnly,
10101
- children: label
10102
- }
10103
- ),
10104
- /* @__PURE__ */ jsx284(ReactSelect, { ...reactSelectProps, ref }),
10079
+ renderLabel({
10080
+ label,
10081
+ htmlFor: uniqueId,
10082
+ showRequiredStyling,
10083
+ readOnly
10084
+ }),
10085
+ /* @__PURE__ */ jsx285(ReactSelect, { ...reactSelectProps, ref }),
10105
10086
  renderInputMessage(tip, tipId, errorMessage, errorMessageId)
10106
10087
  ]
10107
10088
  }
@@ -10128,7 +10109,7 @@ var NativeSelect_default = {
10128
10109
  };
10129
10110
 
10130
10111
  // src/components/Select/NativeSelect/NativeSelect.tsx
10131
- import { jsx as jsx285, jsxs as jsxs68 } from "react/jsx-runtime";
10112
+ import { jsx as jsx286, jsxs as jsxs68 } from "react/jsx-runtime";
10132
10113
  var NativeSelect = ({
10133
10114
  ref,
10134
10115
  id,
@@ -10176,7 +10157,6 @@ var NativeSelect = ({
10176
10157
  const uniqueId = id != null ? id : `${generatedId}-native-select`;
10177
10158
  const hasErrorMessage = !!errorMessage;
10178
10159
  const hasTip = !!tip;
10179
- const hasLabel = !!label;
10180
10160
  const tipId = derivativeIdGenerator(uniqueId, "tip");
10181
10161
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
10182
10162
  const showRequiredStyling = !!(required || ariaRequired);
@@ -10196,18 +10176,14 @@ var NativeSelect = ({
10196
10176
  const iconSize = componentSize === "medium" ? "medium" : "small";
10197
10177
  const showClearButton = clearable && hasValue && !readOnly && !rest.disabled;
10198
10178
  return /* @__PURE__ */ jsxs68("div", { className, style, children: [
10199
- hasLabel && /* @__PURE__ */ jsx285(
10200
- Label,
10201
- {
10202
- className: Input_default.label,
10203
- htmlFor: uniqueId,
10204
- showRequiredStyling,
10205
- readOnly,
10206
- children: label
10207
- }
10208
- ),
10179
+ renderLabel({
10180
+ label,
10181
+ htmlFor: uniqueId,
10182
+ showRequiredStyling,
10183
+ readOnly
10184
+ }),
10209
10185
  /* @__PURE__ */ jsxs68(Box, { position: "relative", width: inputWidth, children: [
10210
- /* @__PURE__ */ jsx285(
10186
+ /* @__PURE__ */ jsx286(
10211
10187
  "select",
10212
10188
  {
10213
10189
  ref: useCombinedRef(ref, selectRef),
@@ -10241,7 +10217,7 @@ var NativeSelect = ({
10241
10217
  children
10242
10218
  }
10243
10219
  ),
10244
- showClearButton && /* @__PURE__ */ jsx285(
10220
+ showClearButton && /* @__PURE__ */ jsx286(
10245
10221
  ClearButton,
10246
10222
  {
10247
10223
  "aria-label": t(commonTexts.clearSelect),
@@ -10250,7 +10226,7 @@ var NativeSelect = ({
10250
10226
  className: NativeSelect_default[`clear-button--${iconSize}`]
10251
10227
  }
10252
10228
  ),
10253
- !multiple && /* @__PURE__ */ jsx285(
10229
+ !multiple && /* @__PURE__ */ jsx286(
10254
10230
  Icon,
10255
10231
  {
10256
10232
  icon: ChevronDownIcon,
@@ -10266,14 +10242,14 @@ var NativeSelectPlaceholder = ({
10266
10242
  children = "-- Velg fra listen --",
10267
10243
  value,
10268
10244
  ...rest
10269
- }) => /* @__PURE__ */ jsx285("option", { value: value != null ? value : "", selected: true, ...rest, children });
10245
+ }) => /* @__PURE__ */ jsx286("option", { value: value != null ? value : "", selected: true, ...rest, children });
10270
10246
  NativeSelectPlaceholder.displayName = "NativeSelectPlaceholder";
10271
10247
 
10272
10248
  // src/components/Select/utils.ts
10273
10249
  var createSelectOptions = (...args) => args.map((v) => ({ label: v, value: v }));
10274
10250
 
10275
10251
  // src/components/Pagination/Pagination.tsx
10276
- import { jsx as jsx286, jsxs as jsxs69 } from "react/jsx-runtime";
10252
+ import { jsx as jsx287, jsxs as jsxs69 } from "react/jsx-runtime";
10277
10253
  var Pagination = ({
10278
10254
  itemsAmount,
10279
10255
  defaultItemsPerPage = 10,
@@ -10317,7 +10293,7 @@ var Pagination = ({
10317
10293
  };
10318
10294
  const listItems = items.length > 0 ? items.map((item, i) => {
10319
10295
  const isActive = item === activePage;
10320
- return /* @__PURE__ */ jsx286("li", { className: Pagination_default.list__item, children: item !== "truncator" && typeof item === "number" ? /* @__PURE__ */ jsx286(
10296
+ return /* @__PURE__ */ jsx287("li", { className: Pagination_default.list__item, children: item !== "truncator" && typeof item === "number" ? /* @__PURE__ */ jsx287(
10321
10297
  Button,
10322
10298
  {
10323
10299
  purpose: isActive ? "primary" : "secondary",
@@ -10328,7 +10304,7 @@ var Pagination = ({
10328
10304
  "aria-label": isActive ? t(texts17.currentPage(item)) : t(texts17.page(item)),
10329
10305
  children: item
10330
10306
  }
10331
- ) : /* @__PURE__ */ jsx286(
10307
+ ) : /* @__PURE__ */ jsx287(
10332
10308
  Icon,
10333
10309
  {
10334
10310
  icon: MoreHorizontalIcon,
@@ -10336,7 +10312,7 @@ var Pagination = ({
10336
10312
  }
10337
10313
  ) }, `pagination-item-${i}`);
10338
10314
  }) : void 0;
10339
- const previousPageButton = /* @__PURE__ */ jsx286(
10315
+ const previousPageButton = /* @__PURE__ */ jsx287(
10340
10316
  Button,
10341
10317
  {
10342
10318
  purpose: "secondary",
@@ -10348,7 +10324,7 @@ var Pagination = ({
10348
10324
  "aria-label": t(texts17.previousPage)
10349
10325
  }
10350
10326
  );
10351
- const nextPageButton = /* @__PURE__ */ jsx286(
10327
+ const nextPageButton = /* @__PURE__ */ jsx287(
10352
10328
  Button,
10353
10329
  {
10354
10330
  purpose: "secondary",
@@ -10381,7 +10357,7 @@ var Pagination = ({
10381
10357
  hideBelow: smallScreenBreakpoint,
10382
10358
  className: Pagination_default.list,
10383
10359
  children: [
10384
- /* @__PURE__ */ jsx286(
10360
+ /* @__PURE__ */ jsx287(
10385
10361
  "li",
10386
10362
  {
10387
10363
  className: cn(
@@ -10393,7 +10369,7 @@ var Pagination = ({
10393
10369
  }
10394
10370
  ),
10395
10371
  listItems,
10396
- /* @__PURE__ */ jsx286(
10372
+ /* @__PURE__ */ jsx287(
10397
10373
  "li",
10398
10374
  {
10399
10375
  className: cn(
@@ -10414,7 +10390,7 @@ var Pagination = ({
10414
10390
  showBelow: smallScreenBreakpoint,
10415
10391
  className: Pagination_default.list,
10416
10392
  children: [
10417
- /* @__PURE__ */ jsx286(
10393
+ /* @__PURE__ */ jsx287(
10418
10394
  "li",
10419
10395
  {
10420
10396
  className: cn(
@@ -10422,7 +10398,7 @@ var Pagination = ({
10422
10398
  isOnFirstPage && Pagination_default["list__item--hidden"]
10423
10399
  ),
10424
10400
  "aria-hidden": isOnFirstPage,
10425
- children: /* @__PURE__ */ jsx286(
10401
+ children: /* @__PURE__ */ jsx287(
10426
10402
  Button,
10427
10403
  {
10428
10404
  purpose: "secondary",
@@ -10436,7 +10412,7 @@ var Pagination = ({
10436
10412
  )
10437
10413
  }
10438
10414
  ),
10439
- /* @__PURE__ */ jsx286(
10415
+ /* @__PURE__ */ jsx287(
10440
10416
  "li",
10441
10417
  {
10442
10418
  className: cn(
@@ -10447,7 +10423,7 @@ var Pagination = ({
10447
10423
  children: previousPageButton
10448
10424
  }
10449
10425
  ),
10450
- /* @__PURE__ */ jsx286("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ jsx286(
10426
+ /* @__PURE__ */ jsx287("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ jsx287(
10451
10427
  Button,
10452
10428
  {
10453
10429
  size: "small",
@@ -10457,7 +10433,7 @@ var Pagination = ({
10457
10433
  children: activePage
10458
10434
  }
10459
10435
  ) }),
10460
- /* @__PURE__ */ jsx286(
10436
+ /* @__PURE__ */ jsx287(
10461
10437
  "li",
10462
10438
  {
10463
10439
  className: cn(
@@ -10468,7 +10444,7 @@ var Pagination = ({
10468
10444
  children: nextPageButton
10469
10445
  }
10470
10446
  ),
10471
- /* @__PURE__ */ jsx286(
10447
+ /* @__PURE__ */ jsx287(
10472
10448
  "li",
10473
10449
  {
10474
10450
  className: cn(
@@ -10476,7 +10452,7 @@ var Pagination = ({
10476
10452
  isOnLastPage && Pagination_default["list__item--hidden"]
10477
10453
  ),
10478
10454
  "aria-hidden": isOnLastPage,
10479
- children: /* @__PURE__ */ jsx286(
10455
+ children: /* @__PURE__ */ jsx287(
10480
10456
  Button,
10481
10457
  {
10482
10458
  purpose: "secondary",
@@ -10510,7 +10486,7 @@ var Pagination = ({
10510
10486
  ...getBaseHTMLProps(id, className, htmlProps, rest),
10511
10487
  children: [
10512
10488
  /* @__PURE__ */ jsxs69("div", { className: Pagination_default.indicators, children: [
10513
- withSelect && /* @__PURE__ */ jsx286(
10489
+ withSelect && /* @__PURE__ */ jsx287(
10514
10490
  Select,
10515
10491
  {
10516
10492
  options: selectOptions,
@@ -10526,7 +10502,7 @@ var Pagination = ({
10526
10502
  "aria-label": t(texts17.itemsPerPage)
10527
10503
  }
10528
10504
  ),
10529
- withCounter && /* @__PURE__ */ jsx286(Paragraph, { children: t(
10505
+ withCounter && /* @__PURE__ */ jsx287(Paragraph, { children: t(
10530
10506
  texts17.showsAmountOfTotalItems(
10531
10507
  activePageFirstItem,
10532
10508
  activePageLastItem,
@@ -11004,7 +10980,7 @@ var PhoneInput_default = {
11004
10980
  };
11005
10981
 
11006
10982
  // src/components/PhoneInput/PhoneInput.tsx
11007
- import { jsx as jsx287, jsxs as jsxs70 } from "react/jsx-runtime";
10983
+ import { jsx as jsx288, jsxs as jsxs70 } from "react/jsx-runtime";
11008
10984
  var prioritizedCountries = [
11009
10985
  COUNTRIES.NO,
11010
10986
  COUNTRIES.SE,
@@ -11072,7 +11048,6 @@ var PhoneInput = ({
11072
11048
  const selectId = `${uniqueId}-country-code`;
11073
11049
  const hasErrorMessage = !!errorMessage;
11074
11050
  const hasTip = !!tip;
11075
- const hasLabel = !!label;
11076
11051
  const hasMessage = hasErrorMessage || hasTip;
11077
11052
  const tipId = derivativeIdGenerator(phoneInputId, "tip");
11078
11053
  const errorMessageId = derivativeIdGenerator(phoneInputId, "errorMessage");
@@ -11143,16 +11118,12 @@ var PhoneInput = ({
11143
11118
  const bp = props.smallScreenBreakpoint;
11144
11119
  const widthDefault = componentSize === "xsmall" && "var(--dds-input-default-width-xsmall)";
11145
11120
  return /* @__PURE__ */ jsxs70("div", { className: cn(className, Input_default.container), style, children: [
11146
- hasLabel && /* @__PURE__ */ jsx287(
11147
- Label,
11148
- {
11149
- htmlFor: phoneNumberId,
11150
- showRequiredStyling,
11151
- className: Input_default.label,
11152
- readOnly,
11153
- children: label
11154
- }
11155
- ),
11121
+ renderLabel({
11122
+ label,
11123
+ htmlFor: phoneNumberId,
11124
+ showRequiredStyling,
11125
+ readOnly
11126
+ }),
11156
11127
  /* @__PURE__ */ jsxs70(
11157
11128
  Box,
11158
11129
  {
@@ -11166,8 +11137,8 @@ var PhoneInput = ({
11166
11137
  role: "group",
11167
11138
  "aria-label": tGroupLabel,
11168
11139
  children: [
11169
- /* @__PURE__ */ jsx287("label", { className: utilStyles_default["visually-hidden"], htmlFor: selectId, children: tSelectLabel }),
11170
- /* @__PURE__ */ jsx287(
11140
+ /* @__PURE__ */ jsx288("label", { className: utilStyles_default["visually-hidden"], htmlFor: selectId, children: tSelectLabel }),
11141
+ /* @__PURE__ */ jsx288(
11171
11142
  NativeSelect,
11172
11143
  {
11173
11144
  width: styleUpToBreakpoint(
@@ -11188,11 +11159,11 @@ var PhoneInput = ({
11188
11159
  hasTip ? tipId : void 0,
11189
11160
  ariaDescribedby
11190
11161
  ]),
11191
- children: countryOptions.map((item, index) => /* @__PURE__ */ jsx287("option", { value: item.countryCode, children: item.label }, index))
11162
+ children: countryOptions.map((item, index) => /* @__PURE__ */ jsx288("option", { value: item.countryCode, children: item.label }, index))
11192
11163
  }
11193
11164
  ),
11194
11165
  /* @__PURE__ */ jsxs70(Box, { width: "100%", className: Input_default["input-group"], children: [
11195
- /* @__PURE__ */ jsx287(
11166
+ /* @__PURE__ */ jsx288(
11196
11167
  "span",
11197
11168
  {
11198
11169
  className: cn(
@@ -11204,7 +11175,7 @@ var PhoneInput = ({
11204
11175
  children: callingCode
11205
11176
  }
11206
11177
  ),
11207
- /* @__PURE__ */ jsx287(
11178
+ /* @__PURE__ */ jsx288(
11208
11179
  Box,
11209
11180
  {
11210
11181
  as: StatefulInput,
@@ -11282,7 +11253,7 @@ var PopoverContext = createContext13({});
11282
11253
  var usePopoverContext = () => useContext19(PopoverContext);
11283
11254
 
11284
11255
  // src/components/Popover/Popover.tsx
11285
- import { jsx as jsx288, jsxs as jsxs71 } from "react/jsx-runtime";
11256
+ import { jsx as jsx289, jsxs as jsxs71 } from "react/jsx-runtime";
11286
11257
  var Popover = ({
11287
11258
  id,
11288
11259
  header,
@@ -11401,15 +11372,15 @@ var Popover = ({
11401
11372
  elevation: 3,
11402
11373
  border: "border-subtle",
11403
11374
  children: [
11404
- header && /* @__PURE__ */ jsx288("div", { className: Popover_default.header, children: typeof header === "string" ? /* @__PURE__ */ jsx288(Heading, { level: 2, typographyType: "headingMedium", children: header }) : header }),
11405
- /* @__PURE__ */ jsx288(
11375
+ header && /* @__PURE__ */ jsx289("div", { className: Popover_default.header, children: typeof header === "string" ? /* @__PURE__ */ jsx289(Heading, { level: 2, typographyType: "headingMedium", children: header }) : header }),
11376
+ /* @__PURE__ */ jsx289(
11406
11377
  "div",
11407
11378
  {
11408
11379
  className: !hasTitle && withCloseButton ? Popover_default["content--closable--no-header"] : "",
11409
11380
  children
11410
11381
  }
11411
11382
  ),
11412
- withCloseButton && /* @__PURE__ */ jsx288(
11383
+ withCloseButton && /* @__PURE__ */ jsx289(
11413
11384
  Button,
11414
11385
  {
11415
11386
  icon: CloseIcon,
@@ -11436,7 +11407,7 @@ import {
11436
11407
  useRef as useRef31,
11437
11408
  useState as useState24
11438
11409
  } from "react";
11439
- import { jsx as jsx289 } from "react/jsx-runtime";
11410
+ import { jsx as jsx290 } from "react/jsx-runtime";
11440
11411
  var PopoverGroup = ({
11441
11412
  isOpen: propIsOpen,
11442
11413
  setIsOpen: propSetIsOpen,
@@ -11497,7 +11468,7 @@ var PopoverGroup = ({
11497
11468
  ref: combinedAnchorRef
11498
11469
  }) : child);
11499
11470
  });
11500
- return /* @__PURE__ */ jsx289(
11471
+ return /* @__PURE__ */ jsx290(
11501
11472
  PopoverContext,
11502
11473
  {
11503
11474
  value: {
@@ -11555,7 +11526,7 @@ var ProgressTracker_default = {
11555
11526
 
11556
11527
  // src/components/ProgressTracker/ProgressTrackerItem.tsx
11557
11528
  import { useMemo as useMemo2 } from "react";
11558
- import { Fragment as Fragment8, jsx as jsx290, jsxs as jsxs72 } from "react/jsx-runtime";
11529
+ import { Fragment as Fragment8, jsx as jsx291, jsxs as jsxs72 } from "react/jsx-runtime";
11559
11530
  var toItemState = (active, completed, disabled) => {
11560
11531
  if (disabled) {
11561
11532
  return "disabled";
@@ -11598,10 +11569,10 @@ var ProgressTrackerItem = (props) => {
11598
11569
  };
11599
11570
  const stepNumberContent = useMemo2(() => {
11600
11571
  if (completed) {
11601
- return /* @__PURE__ */ jsx290(Icon, { icon: CheckIcon, iconSize: "small" });
11572
+ return /* @__PURE__ */ jsx291(Icon, { icon: CheckIcon, iconSize: "small" });
11602
11573
  }
11603
11574
  if (icon !== void 0) {
11604
- return /* @__PURE__ */ jsx290(Icon, { icon, iconSize: "small" });
11575
+ return /* @__PURE__ */ jsx291(Icon, { icon, iconSize: "small" });
11605
11576
  }
11606
11577
  return index + 1;
11607
11578
  }, [completed, icon, index]);
@@ -11611,7 +11582,7 @@ var ProgressTrackerItem = (props) => {
11611
11582
  }
11612
11583
  const isInactiveLink = disabled || active;
11613
11584
  const stepContent = /* @__PURE__ */ jsxs72(Fragment8, { children: [
11614
- /* @__PURE__ */ jsx290(
11585
+ /* @__PURE__ */ jsx291(
11615
11586
  Box,
11616
11587
  {
11617
11588
  display: "flex",
@@ -11637,21 +11608,21 @@ var ProgressTrackerItem = (props) => {
11637
11608
  ),
11638
11609
  color: getTextColor2(),
11639
11610
  children: [
11640
- /* @__PURE__ */ jsx290(VisuallyHidden, { children: t(texts19.stepTextBefore(index + 1)) }),
11611
+ /* @__PURE__ */ jsx291(VisuallyHidden, { children: t(texts19.stepTextBefore(index + 1)) }),
11641
11612
  children,
11642
- /* @__PURE__ */ jsx290(VisuallyHidden, { children: completed ? t(texts19.completed) : t(texts19.uncompleted) })
11613
+ /* @__PURE__ */ jsx291(VisuallyHidden, { children: completed ? t(texts19.completed) : t(texts19.uncompleted) })
11643
11614
  ]
11644
11615
  }
11645
11616
  )
11646
11617
  ] });
11647
- return /* @__PURE__ */ jsx290(
11618
+ return /* @__PURE__ */ jsx291(
11648
11619
  Box,
11649
11620
  {
11650
11621
  as: "li",
11651
11622
  display: direction === "row" ? "flex" : void 0,
11652
11623
  "aria-current": active ? "step" : void 0,
11653
11624
  className: cn(ProgressTracker_default["list-item"], ProgressTracker_default[`list-item--${direction}`]),
11654
- children: handleStepChange ? /* @__PURE__ */ jsx290(
11625
+ children: handleStepChange ? /* @__PURE__ */ jsx291(
11655
11626
  Box,
11656
11627
  {
11657
11628
  as: StylelessButton,
@@ -11674,7 +11645,7 @@ var ProgressTrackerItem = (props) => {
11674
11645
  disabled,
11675
11646
  children: stepContent
11676
11647
  }
11677
- ) : /* @__PURE__ */ jsx290(
11648
+ ) : /* @__PURE__ */ jsx291(
11678
11649
  "div",
11679
11650
  {
11680
11651
  ...getBaseHTMLProps(
@@ -11712,7 +11683,7 @@ var texts19 = createTexts({
11712
11683
  });
11713
11684
 
11714
11685
  // src/components/ProgressTracker/ProgressTracker.tsx
11715
- import { jsx as jsx291 } from "react/jsx-runtime";
11686
+ import { jsx as jsx292 } from "react/jsx-runtime";
11716
11687
  var ProgressTracker = (() => {
11717
11688
  const Res = ({
11718
11689
  id,
@@ -11742,7 +11713,7 @@ var ProgressTracker = (() => {
11742
11713
  }, [children]);
11743
11714
  const isRow = direction === "row";
11744
11715
  const { "aria-label": ariaLabel } = htmlProps;
11745
- return /* @__PURE__ */ jsx291(
11716
+ return /* @__PURE__ */ jsx292(
11746
11717
  ProgressTrackerContext,
11747
11718
  {
11748
11719
  value: {
@@ -11750,12 +11721,12 @@ var ProgressTracker = (() => {
11750
11721
  handleStepChange: handleChange,
11751
11722
  direction
11752
11723
  },
11753
- children: /* @__PURE__ */ jsx291(
11724
+ children: /* @__PURE__ */ jsx292(
11754
11725
  "nav",
11755
11726
  {
11756
11727
  "aria-label": ariaLabel != null ? ariaLabel : t(texts20.stepProgression),
11757
11728
  ...getBaseHTMLProps(id, className, htmlProps, rest),
11758
- children: /* @__PURE__ */ jsx291(
11729
+ children: /* @__PURE__ */ jsx292(
11759
11730
  Box,
11760
11731
  {
11761
11732
  as: StylelessOList,
@@ -11814,7 +11785,7 @@ var ProgressBar_default = {
11814
11785
  };
11815
11786
 
11816
11787
  // src/components/ProgressBar/ProgressBar.tsx
11817
- import { jsx as jsx292, jsxs as jsxs73 } from "react/jsx-runtime";
11788
+ import { jsx as jsx293, jsxs as jsxs73 } from "react/jsx-runtime";
11818
11789
  var PROGRESS_BAR_SIZES = createSizes("small", "medium");
11819
11790
  var ProgressBar = ({
11820
11791
  label,
@@ -11834,7 +11805,6 @@ var ProgressBar = ({
11834
11805
  const uniqueId = id != null ? id : `${generatedId}-searchInput`;
11835
11806
  const hasErrorMessage = !!errorMessage;
11836
11807
  const hasTip = !!tip;
11837
- const hasLabel = !!label;
11838
11808
  const hasValidMax = !!max && max > 0;
11839
11809
  const hasValidValue = !!value && value > 0 && (max !== void 0 && value <= max || max === void 0 && value <= 1);
11840
11810
  const tipId = derivativeIdGenerator(uniqueId, "tip");
@@ -11842,8 +11812,8 @@ var ProgressBar = ({
11842
11812
  const fillPrecentage = hasValidValue && value / (max != null ? max : 1) * 100 + "%";
11843
11813
  const isIndeterminate = !hasValidValue && !hasErrorMessage;
11844
11814
  return /* @__PURE__ */ jsxs73(Box, { width: "100%", className, style, children: [
11845
- hasLabel ? /* @__PURE__ */ jsx292(Label, { htmlFor: uniqueId, children: label }) : void 0,
11846
- /* @__PURE__ */ jsx292(
11815
+ renderLabel({ label, htmlFor: uniqueId }),
11816
+ /* @__PURE__ */ jsx293(
11847
11817
  "progress",
11848
11818
  {
11849
11819
  id: uniqueId,
@@ -11859,13 +11829,13 @@ var ProgressBar = ({
11859
11829
  children: fillPrecentage
11860
11830
  }
11861
11831
  ),
11862
- /* @__PURE__ */ jsx292(
11832
+ /* @__PURE__ */ jsx293(
11863
11833
  Box,
11864
11834
  {
11865
11835
  width: getInputWidth(width),
11866
11836
  height: size2 === "small" ? "x0.75" : "x1.5",
11867
11837
  className: cn(ProgressBar_default.progress),
11868
- children: /* @__PURE__ */ jsx292(
11838
+ children: /* @__PURE__ */ jsx293(
11869
11839
  Box,
11870
11840
  {
11871
11841
  height: "100%",
@@ -11920,7 +11890,7 @@ var typographyTypes2 = {
11920
11890
 
11921
11891
  // src/components/Search/SearchSuggestionItem.tsx
11922
11892
  import { useEffect as useEffect29, useRef as useRef32 } from "react";
11923
- import { jsx as jsx293 } from "react/jsx-runtime";
11893
+ import { jsx as jsx294 } from "react/jsx-runtime";
11924
11894
  var SearchSuggestionItem = ({
11925
11895
  focus,
11926
11896
  className,
@@ -11935,7 +11905,7 @@ var SearchSuggestionItem = ({
11935
11905
  (_a = itemRef.current) == null ? void 0 : _a.focus();
11936
11906
  }
11937
11907
  }, [focus]);
11938
- return /* @__PURE__ */ jsx293(
11908
+ return /* @__PURE__ */ jsx294(
11939
11909
  StylelessButton,
11940
11910
  {
11941
11911
  ref: combinedRef,
@@ -11953,7 +11923,7 @@ var SearchSuggestionItem = ({
11953
11923
  SearchSuggestionItem.displayName = "SearchSuggestionItem";
11954
11924
 
11955
11925
  // src/components/Search/SearchSuggestions.tsx
11956
- import { jsx as jsx294, jsxs as jsxs74 } from "react/jsx-runtime";
11926
+ import { jsx as jsx295, jsxs as jsxs74 } from "react/jsx-runtime";
11957
11927
  var SearchSuggestions = ({
11958
11928
  id,
11959
11929
  searchId,
@@ -11997,7 +11967,7 @@ var SearchSuggestions = ({
11997
11967
  overflowY: "scroll",
11998
11968
  marginBlock: "x0.25 0",
11999
11969
  children: [
12000
- /* @__PURE__ */ jsx294(
11970
+ /* @__PURE__ */ jsx295(
12001
11971
  Box,
12002
11972
  {
12003
11973
  as: "h2",
@@ -12007,8 +11977,8 @@ var SearchSuggestions = ({
12007
11977
  children: "S\xF8keforslag"
12008
11978
  }
12009
11979
  ),
12010
- /* @__PURE__ */ jsx294(StylelessList, { role: "listbox", "aria-labelledby": suggestionsHeaderId, children: suggestionsToRender.map((suggestion, index) => {
12011
- return /* @__PURE__ */ jsx294("li", { role: "option", children: /* @__PURE__ */ jsx294(
11980
+ /* @__PURE__ */ jsx295(StylelessList, { role: "listbox", "aria-labelledby": suggestionsHeaderId, children: suggestionsToRender.map((suggestion, index) => {
11981
+ return /* @__PURE__ */ jsx295("li", { role: "option", children: /* @__PURE__ */ jsx295(
12012
11982
  SearchSuggestionItem,
12013
11983
  {
12014
11984
  index,
@@ -12037,7 +12007,7 @@ var texts21 = createTexts({
12037
12007
  });
12038
12008
 
12039
12009
  // src/components/Search/Search.tsx
12040
- import { Fragment as Fragment9, jsx as jsx295, jsxs as jsxs75 } from "react/jsx-runtime";
12010
+ import { Fragment as Fragment9, jsx as jsx296, jsxs as jsxs75 } from "react/jsx-runtime";
12041
12011
  var getIconSize2 = (size2) => {
12042
12012
  switch (size2) {
12043
12013
  case "large":
@@ -12086,7 +12056,6 @@ var Search = ({
12086
12056
  var _a;
12087
12057
  const generatedId = useId23();
12088
12058
  const uniqueId = id != null ? id : `${generatedId}-searchInput`;
12089
- const hasLabel = !!label;
12090
12059
  const tipId = derivativeIdGenerator(uniqueId, "tip");
12091
12060
  const suggestionsId = derivativeIdGenerator(uniqueId, "suggestions");
12092
12061
  const suggestionsDescriptionId = derivativeIdGenerator(
@@ -12121,7 +12090,7 @@ var Search = ({
12121
12090
  width: !showSearchButton ? width : void 0,
12122
12091
  className: !showSearchButton ? className : void 0,
12123
12092
  children: [
12124
- showIcon && /* @__PURE__ */ jsx295(
12093
+ showIcon && /* @__PURE__ */ jsx296(
12125
12094
  Icon,
12126
12095
  {
12127
12096
  icon: SearchIcon,
@@ -12132,7 +12101,7 @@ var Search = ({
12132
12101
  )
12133
12102
  }
12134
12103
  ),
12135
- /* @__PURE__ */ jsx295(
12104
+ /* @__PURE__ */ jsx296(
12136
12105
  Box,
12137
12106
  {
12138
12107
  as: Input,
@@ -12162,7 +12131,7 @@ var Search = ({
12162
12131
  }
12163
12132
  ),
12164
12133
  hasSuggestions && /* @__PURE__ */ jsxs75(Fragment9, { children: [
12165
- /* @__PURE__ */ jsx295(
12134
+ /* @__PURE__ */ jsx296(
12166
12135
  SearchSuggestions,
12167
12136
  {
12168
12137
  id: suggestionsId,
@@ -12174,9 +12143,9 @@ var Search = ({
12174
12143
  componentSize
12175
12144
  }
12176
12145
  ),
12177
- /* @__PURE__ */ jsx295(VisuallyHidden, { id: suggestionsDescriptionId, children: t(texts22.useArrowKeys) })
12146
+ /* @__PURE__ */ jsx296(VisuallyHidden, { id: suggestionsDescriptionId, children: t(texts22.useArrowKeys) })
12178
12147
  ] }),
12179
- hasValue && /* @__PURE__ */ jsx295(
12148
+ hasValue && /* @__PURE__ */ jsx296(
12180
12149
  ClearButton,
12181
12150
  {
12182
12151
  size: getIconSize2(componentSize),
@@ -12188,8 +12157,8 @@ var Search = ({
12188
12157
  ]
12189
12158
  }
12190
12159
  );
12191
- return /* @__PURE__ */ jsxs75(VStack, { gap: "x0.125", children: [
12192
- hasLabel && /* @__PURE__ */ jsx295(Label, { htmlFor: uniqueId, children: label }),
12160
+ return /* @__PURE__ */ jsxs75("div", { children: [
12161
+ renderLabel({ htmlFor: uniqueId, label }),
12193
12162
  /* @__PURE__ */ jsxs75("div", { children: [
12194
12163
  showSearchButton ? /* @__PURE__ */ jsxs75(
12195
12164
  Grid,
@@ -12203,7 +12172,7 @@ var Search = ({
12203
12172
  style,
12204
12173
  children: [
12205
12174
  inputGroup,
12206
- /* @__PURE__ */ jsx295(
12175
+ /* @__PURE__ */ jsx296(
12207
12176
  Button,
12208
12177
  {
12209
12178
  size: componentSize,
@@ -12247,7 +12216,7 @@ import {
12247
12216
  useRef as useRef33,
12248
12217
  useState as useState27
12249
12218
  } from "react";
12250
- import { jsx as jsx296 } from "react/jsx-runtime";
12219
+ import { jsx as jsx297 } from "react/jsx-runtime";
12251
12220
  var SearchAutocompleteWrapper = (props) => {
12252
12221
  const {
12253
12222
  value,
@@ -12323,7 +12292,7 @@ var SearchAutocompleteWrapper = (props) => {
12323
12292
  inputValue,
12324
12293
  onSugggestionClick: handleSuggestionClick
12325
12294
  };
12326
- return /* @__PURE__ */ jsx296(AutocompleteSearchContext, { value: contextProps, children });
12295
+ return /* @__PURE__ */ jsx297(AutocompleteSearchContext, { value: contextProps, children });
12327
12296
  };
12328
12297
  SearchAutocompleteWrapper.displayName = "SearchAutocompleteWrapper";
12329
12298
 
@@ -12339,7 +12308,7 @@ var Skeleton_default = {
12339
12308
  };
12340
12309
 
12341
12310
  // src/components/Skeleton/Skeleton.tsx
12342
- import { jsx as jsx297 } from "react/jsx-runtime";
12311
+ import { jsx as jsx298 } from "react/jsx-runtime";
12343
12312
  var Skeleton = ({
12344
12313
  width,
12345
12314
  height,
@@ -12349,7 +12318,7 @@ var Skeleton = ({
12349
12318
  ref,
12350
12319
  ...rest
12351
12320
  }) => {
12352
- return /* @__PURE__ */ jsx297(
12321
+ return /* @__PURE__ */ jsx298(
12353
12322
  Box,
12354
12323
  {
12355
12324
  width,
@@ -12369,7 +12338,7 @@ var SkipToContent_default = {
12369
12338
  };
12370
12339
 
12371
12340
  // src/components/SkipToContent/SkipToContent.tsx
12372
- import { jsx as jsx298 } from "react/jsx-runtime";
12341
+ import { jsx as jsx299 } from "react/jsx-runtime";
12373
12342
  var SkipToContent = ({
12374
12343
  text = "Til hovedinnhold",
12375
12344
  top = 0,
@@ -12379,12 +12348,12 @@ var SkipToContent = ({
12379
12348
  ...rest
12380
12349
  }) => {
12381
12350
  const { className: htmlPropsClassName, style, ...restHtmlProps } = htmlProps;
12382
- return /* @__PURE__ */ jsx298(
12351
+ return /* @__PURE__ */ jsx299(
12383
12352
  Contrast,
12384
12353
  {
12385
12354
  className: cn(className, htmlPropsClassName, SkipToContent_default.wrapper),
12386
12355
  style: { ...style, top },
12387
- children: /* @__PURE__ */ jsx298(Link, { ...getBaseHTMLProps(id, restHtmlProps, rest), children: text })
12356
+ children: /* @__PURE__ */ jsx299(Link, { ...getBaseHTMLProps(id, restHtmlProps, rest), children: text })
12388
12357
  }
12389
12358
  );
12390
12359
  };
@@ -12402,7 +12371,7 @@ var SplitButton_default = {
12402
12371
  };
12403
12372
 
12404
12373
  // src/components/SplitButton/SplitButton.tsx
12405
- import { jsx as jsx299, jsxs as jsxs76 } from "react/jsx-runtime";
12374
+ import { jsx as jsx300, jsxs as jsxs76 } from "react/jsx-runtime";
12406
12375
  var SplitButton = ({
12407
12376
  size: size2,
12408
12377
  primaryAction,
@@ -12418,7 +12387,7 @@ var SplitButton = ({
12418
12387
  size: size2
12419
12388
  };
12420
12389
  return /* @__PURE__ */ jsxs76("div", { className: cn(className, SplitButton_default.container), ...rest, children: [
12421
- /* @__PURE__ */ jsx299(
12390
+ /* @__PURE__ */ jsx300(
12422
12391
  Button,
12423
12392
  {
12424
12393
  ...buttonStyleProps,
@@ -12428,7 +12397,7 @@ var SplitButton = ({
12428
12397
  }
12429
12398
  ),
12430
12399
  /* @__PURE__ */ jsxs76(OverflowMenuGroup, { isOpen, setIsOpen, children: [
12431
- /* @__PURE__ */ jsx299(
12400
+ /* @__PURE__ */ jsx300(
12432
12401
  Button,
12433
12402
  {
12434
12403
  ...buttonStyleProps,
@@ -12442,7 +12411,7 @@ var SplitButton = ({
12442
12411
  type: "button"
12443
12412
  }
12444
12413
  ),
12445
- /* @__PURE__ */ jsx299(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ jsx299(OverflowMenuList, { children: secondaryActions.map((item, index) => /* @__PURE__ */ jsx299(OverflowMenuButton, { ...item, children: item.children }, index)) }) })
12414
+ /* @__PURE__ */ jsx300(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ jsx300(OverflowMenuList, { children: secondaryActions.map((item, index) => /* @__PURE__ */ jsx300(OverflowMenuButton, { ...item, children: item.children }, index)) }) })
12446
12415
  ] })
12447
12416
  ] });
12448
12417
  };
@@ -12475,14 +12444,14 @@ var CollapsibleTableContext = createContext16({
12475
12444
  var useCollapsibleTableContext = () => useContext23(CollapsibleTableContext);
12476
12445
 
12477
12446
  // src/components/Table/normal/Body.tsx
12478
- import { jsx as jsx300 } from "react/jsx-runtime";
12479
- var Body = (props) => /* @__PURE__ */ jsx300("tbody", { ...props });
12447
+ import { jsx as jsx301 } from "react/jsx-runtime";
12448
+ var Body = (props) => /* @__PURE__ */ jsx301("tbody", { ...props });
12480
12449
  Body.displayName = "Table.Body";
12481
12450
 
12482
12451
  // src/components/Table/normal/Head.tsx
12483
12452
  import { createContext as createContext17, useContext as useContext24 } from "react";
12484
- import { jsx as jsx301 } from "react/jsx-runtime";
12485
- var Head = ({ children, ...rest }) => /* @__PURE__ */ jsx301("thead", { ...rest, children: /* @__PURE__ */ jsx301(HeadContext, { value: true, children }) });
12453
+ import { jsx as jsx302 } from "react/jsx-runtime";
12454
+ var Head = ({ children, ...rest }) => /* @__PURE__ */ jsx302("thead", { ...rest, children: /* @__PURE__ */ jsx302(HeadContext, { value: true, children }) });
12486
12455
  var HeadContext = createContext17(false);
12487
12456
  function useIsInTableHead() {
12488
12457
  const isInTableHead = useContext24(HeadContext);
@@ -12515,7 +12484,7 @@ var Table_default = {
12515
12484
  };
12516
12485
 
12517
12486
  // src/components/Table/normal/Cell.tsx
12518
- import { jsx as jsx302 } from "react/jsx-runtime";
12487
+ import { jsx as jsx303 } from "react/jsx-runtime";
12519
12488
  var Cell = ({
12520
12489
  children,
12521
12490
  type: _type,
@@ -12528,7 +12497,7 @@ var Cell = ({
12528
12497
  const type = _type != null ? _type : isInHead ? "head" : "data";
12529
12498
  const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
12530
12499
  const isComplexLayout = layout === "text and icon";
12531
- return isCollapsibleChild ? /* @__PURE__ */ jsx302(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ jsx302(
12500
+ return isCollapsibleChild ? /* @__PURE__ */ jsx303(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ jsx303(
12532
12501
  "th",
12533
12502
  {
12534
12503
  ...rest,
@@ -12537,26 +12506,26 @@ var Cell = ({
12537
12506
  !isComplexLayout && Table_default[`cell--${layout}`],
12538
12507
  Table_default["cell--head"]
12539
12508
  ),
12540
- children: isComplexLayout ? /* @__PURE__ */ jsx302("div", { className: Table_default.cell__inner, children }) : children
12509
+ children: isComplexLayout ? /* @__PURE__ */ jsx303("div", { className: Table_default.cell__inner, children }) : children
12541
12510
  }
12542
- ) : /* @__PURE__ */ jsx302(
12511
+ ) : /* @__PURE__ */ jsx303(
12543
12512
  "td",
12544
12513
  {
12545
12514
  ...rest,
12546
12515
  className: cn(className, !isComplexLayout && Table_default[`cell--${layout}`]),
12547
- children: isComplexLayout ? /* @__PURE__ */ jsx302("div", { className: Table_default.cell__inner, children }) : children
12516
+ children: isComplexLayout ? /* @__PURE__ */ jsx303("div", { className: Table_default.cell__inner, children }) : children
12548
12517
  }
12549
12518
  );
12550
12519
  };
12551
12520
  Cell.displayName = "Table.Cell";
12552
12521
 
12553
12522
  // src/components/Table/normal/Foot.tsx
12554
- import { jsx as jsx303 } from "react/jsx-runtime";
12555
- var Foot = (props) => /* @__PURE__ */ jsx303("tfoot", { ...props });
12523
+ import { jsx as jsx304 } from "react/jsx-runtime";
12524
+ var Foot = (props) => /* @__PURE__ */ jsx304("tfoot", { ...props });
12556
12525
  Foot.displayName = "Table.Foot";
12557
12526
 
12558
12527
  // src/components/Table/normal/Row.tsx
12559
- import { jsx as jsx304 } from "react/jsx-runtime";
12528
+ import { jsx as jsx305 } from "react/jsx-runtime";
12560
12529
  var Row = ({
12561
12530
  type: _type,
12562
12531
  mode = "normal",
@@ -12567,7 +12536,7 @@ var Row = ({
12567
12536
  }) => {
12568
12537
  const isInHeader = useIsInTableHead();
12569
12538
  const type = _type != null ? _type : isInHeader ? "head" : "body";
12570
- return /* @__PURE__ */ jsx304(
12539
+ return /* @__PURE__ */ jsx305(
12571
12540
  "tr",
12572
12541
  {
12573
12542
  className: cn(
@@ -12587,12 +12556,12 @@ var Row = ({
12587
12556
  Row.displayName = "Table.Row";
12588
12557
 
12589
12558
  // src/components/Table/normal/SortCell.tsx
12590
- import { jsx as jsx305, jsxs as jsxs77 } from "react/jsx-runtime";
12559
+ import { jsx as jsx306, jsxs as jsxs77 } from "react/jsx-runtime";
12591
12560
  var makeSortIcon = (isSorted, sortOrder) => {
12592
12561
  if (!isSorted || !sortOrder) {
12593
- return /* @__PURE__ */ jsx305(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
12562
+ return /* @__PURE__ */ jsx306(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
12594
12563
  }
12595
- return sortOrder === "ascending" ? /* @__PURE__ */ jsx305(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ jsx305(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
12564
+ return sortOrder === "ascending" ? /* @__PURE__ */ jsx306(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ jsx306(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
12596
12565
  };
12597
12566
  var SortCell = ({
12598
12567
  isSorted,
@@ -12602,7 +12571,7 @@ var SortCell = ({
12602
12571
  ...rest
12603
12572
  }) => {
12604
12573
  const { t } = useTranslation();
12605
- return /* @__PURE__ */ jsx305(
12574
+ return /* @__PURE__ */ jsx306(
12606
12575
  Cell,
12607
12576
  {
12608
12577
  type: "head",
@@ -12635,7 +12604,7 @@ var texts24 = createTexts({
12635
12604
  });
12636
12605
 
12637
12606
  // src/components/Table/normal/Table.tsx
12638
- import { jsx as jsx306 } from "react/jsx-runtime";
12607
+ import { jsx as jsx307 } from "react/jsx-runtime";
12639
12608
  var Table = ({
12640
12609
  size: size2 = "medium",
12641
12610
  stickyHeader,
@@ -12643,7 +12612,7 @@ var Table = ({
12643
12612
  className,
12644
12613
  children,
12645
12614
  ...rest
12646
- }) => /* @__PURE__ */ jsx306(
12615
+ }) => /* @__PURE__ */ jsx307(
12647
12616
  "table",
12648
12617
  {
12649
12618
  ...rest,
@@ -12667,7 +12636,7 @@ import {
12667
12636
  useRef as useRef34,
12668
12637
  useState as useState29
12669
12638
  } from "react";
12670
- import { jsx as jsx307 } from "react/jsx-runtime";
12639
+ import { jsx as jsx308 } from "react/jsx-runtime";
12671
12640
  var TableWrapper = ({ className, ...rest }) => {
12672
12641
  const themeContext = useContext25(ThemeContext);
12673
12642
  const container2 = themeContext == null ? void 0 : themeContext.el;
@@ -12692,7 +12661,7 @@ var TableWrapper = ({ className, ...rest }) => {
12692
12661
  window.addEventListener("resize", handleResize);
12693
12662
  return () => window.removeEventListener("resize", handleResize);
12694
12663
  });
12695
- return /* @__PURE__ */ jsx307(
12664
+ return /* @__PURE__ */ jsx308(
12696
12665
  "div",
12697
12666
  {
12698
12667
  ref: wrapperRef,
@@ -12719,7 +12688,7 @@ Table2.Row = Row;
12719
12688
  Table2.Foot = Foot;
12720
12689
 
12721
12690
  // src/components/Table/collapsible/CollapsibleRow.tsx
12722
- import { Fragment as Fragment11, jsx as jsx308, jsxs as jsxs78 } from "react/jsx-runtime";
12691
+ import { Fragment as Fragment11, jsx as jsx309, jsxs as jsxs78 } from "react/jsx-runtime";
12723
12692
  var CollapsibleRow = ({
12724
12693
  type: _type,
12725
12694
  className,
@@ -12763,23 +12732,23 @@ var CollapsibleRow = ({
12763
12732
  const id = derivativeIdGenerator(prefix2, index.toString());
12764
12733
  collapsibleIds.push(id);
12765
12734
  return /* @__PURE__ */ jsxs78(Fragment10, { children: [
12766
- /* @__PURE__ */ jsx308(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
12735
+ /* @__PURE__ */ jsx309(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
12767
12736
  isValidElement6(child) && cloneElement6(child, {
12768
12737
  collapsibleProps: { isCollapsibleChild: true }
12769
12738
  })
12770
12739
  ] }, `DL-${index}`);
12771
12740
  }) : null;
12772
- const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsx308(Row, { ...rowProps(), children: /* @__PURE__ */ jsx308(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ jsx308(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
12741
+ const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsx309(Row, { ...rowProps(), children: /* @__PURE__ */ jsx309(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ jsx309(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
12773
12742
  const definingColumnCells = childrenArray.slice().filter((column, index) => definingColumnIndex.indexOf(index) > -1).sort((a, b) => {
12774
12743
  return definingColumnIndex.indexOf(childrenArray.indexOf(a)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
12775
12744
  });
12776
12745
  const headerRow = () => {
12777
12746
  if (type !== "head" || !isCollapsed) return null;
12778
- return /* @__PURE__ */ jsx308(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs78(Fragment11, { children: [
12747
+ return /* @__PURE__ */ jsx309(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs78(Fragment11, { children: [
12779
12748
  definingColumnCells,
12780
12749
  /* @__PURE__ */ jsxs78(Table2.Cell, { type: "head", layout: "center", children: [
12781
12750
  t(texts25.expand),
12782
- /* @__PURE__ */ jsx308(VisuallyHidden, { children: t(texts25.row) })
12751
+ /* @__PURE__ */ jsx309(VisuallyHidden, { children: t(texts25.row) })
12783
12752
  ] })
12784
12753
  ] }) });
12785
12754
  };
@@ -12788,14 +12757,14 @@ var CollapsibleRow = ({
12788
12757
  if (type !== "body" || !isCollapsed) return null;
12789
12758
  return /* @__PURE__ */ jsxs78(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
12790
12759
  definingColumnCells,
12791
- /* @__PURE__ */ jsx308(Table2.Cell, { children: /* @__PURE__ */ jsx308(
12760
+ /* @__PURE__ */ jsx309(Table2.Cell, { children: /* @__PURE__ */ jsx309(
12792
12761
  StylelessButton,
12793
12762
  {
12794
12763
  onClick: () => setChildrenCollapsed(!childrenCollapsed),
12795
12764
  "aria-expanded": !childrenCollapsed,
12796
12765
  "aria-controls": idList,
12797
12766
  className: cn(Table_default["collapse-button"], focusable),
12798
- children: /* @__PURE__ */ jsx308(
12767
+ children: /* @__PURE__ */ jsx309(
12799
12768
  AnimatedChevronUpDown,
12800
12769
  {
12801
12770
  isUp: childrenCollapsed ? false : true,
@@ -12813,7 +12782,7 @@ var CollapsibleRow = ({
12813
12782
  rowWithChevron(),
12814
12783
  childrenCollapsed ? null : collapsedRows
12815
12784
  ] })
12816
- ] }) : /* @__PURE__ */ jsx308(Row, { ref, ...rowProps(), children });
12785
+ ] }) : /* @__PURE__ */ jsx309(Row, { ref, ...rowProps(), children });
12817
12786
  };
12818
12787
  CollapsibleRow.displayName = "CollapsibleTable.Row";
12819
12788
  var texts25 = createTexts({
@@ -12832,14 +12801,14 @@ var texts25 = createTexts({
12832
12801
  });
12833
12802
 
12834
12803
  // src/components/Table/collapsible/CollapsibleTable.tsx
12835
- import { jsx as jsx309 } from "react/jsx-runtime";
12804
+ import { jsx as jsx310 } from "react/jsx-runtime";
12836
12805
  var CollapsibleTable = ({
12837
12806
  isCollapsed,
12838
12807
  headerValues,
12839
12808
  definingColumnIndex = [0],
12840
12809
  ...rest
12841
12810
  }) => {
12842
- return /* @__PURE__ */ jsx309(
12811
+ return /* @__PURE__ */ jsx310(
12843
12812
  CollapsibleTableContext,
12844
12813
  {
12845
12814
  value: {
@@ -12847,7 +12816,7 @@ var CollapsibleTable = ({
12847
12816
  headerValues,
12848
12817
  definingColumnIndex
12849
12818
  },
12850
- children: /* @__PURE__ */ jsx309(Table2, { ...rest })
12819
+ children: /* @__PURE__ */ jsx310(Table2, { ...rest })
12851
12820
  }
12852
12821
  );
12853
12822
  };
@@ -12897,13 +12866,13 @@ import {
12897
12866
  useContext as useContext27,
12898
12867
  useLayoutEffect as useLayoutEffect3
12899
12868
  } from "react";
12900
- import { jsx as jsx310 } from "react/jsx-runtime";
12869
+ import { jsx as jsx311 } from "react/jsx-runtime";
12901
12870
  var TabContext = createContext19(null);
12902
12871
  function TabWidthContextProvider({
12903
12872
  children,
12904
12873
  onChangeWidths
12905
12874
  }) {
12906
- return /* @__PURE__ */ jsx310(
12875
+ return /* @__PURE__ */ jsx311(
12907
12876
  TabContext,
12908
12877
  {
12909
12878
  value: {
@@ -12935,7 +12904,7 @@ function useSetTabWidth(index, width) {
12935
12904
  }
12936
12905
 
12937
12906
  // src/components/Tabs/AddTabButton.tsx
12938
- import { jsx as jsx311, jsxs as jsxs79 } from "react/jsx-runtime";
12907
+ import { jsx as jsx312, jsxs as jsxs79 } from "react/jsx-runtime";
12939
12908
  var AddTabButton = ({
12940
12909
  ref,
12941
12910
  children,
@@ -12961,8 +12930,8 @@ var AddTabButton = ({
12961
12930
  focus_default["focusable--inset"]
12962
12931
  ),
12963
12932
  children: [
12964
- /* @__PURE__ */ jsx311(Icon, { icon: PlusIcon, iconSize: "inherit" }),
12965
- /* @__PURE__ */ jsx311("span", { children })
12933
+ /* @__PURE__ */ jsx312(Icon, { icon: PlusIcon, iconSize: "inherit" }),
12934
+ /* @__PURE__ */ jsx312("span", { children })
12966
12935
  ]
12967
12936
  }
12968
12937
  );
@@ -12971,7 +12940,7 @@ AddTabButton.displayName = "AddTabButton";
12971
12940
 
12972
12941
  // src/components/Tabs/Tabs.tsx
12973
12942
  import { useEffect as useEffect33, useId as useId24, useRef as useRef36, useState as useState31 } from "react";
12974
- import { jsx as jsx312 } from "react/jsx-runtime";
12943
+ import { jsx as jsx313 } from "react/jsx-runtime";
12975
12944
  var TABS_SIZES = createSizes("small", "medium");
12976
12945
  var Tabs = ({
12977
12946
  id,
@@ -13001,7 +12970,7 @@ var Tabs = ({
13001
12970
  setActiveTab(activeTab);
13002
12971
  }
13003
12972
  }, [activeTab, thisActiveTab]);
13004
- return /* @__PURE__ */ jsx312(
12973
+ return /* @__PURE__ */ jsx313(
13005
12974
  TabsContext,
13006
12975
  {
13007
12976
  value: {
@@ -13016,7 +12985,7 @@ var Tabs = ({
13016
12985
  tabContentDirection,
13017
12986
  addTabButtonProps
13018
12987
  },
13019
- children: /* @__PURE__ */ jsx312(
12988
+ children: /* @__PURE__ */ jsx313(
13020
12989
  Box,
13021
12990
  {
13022
12991
  ...getBaseHTMLProps(uniqueId, className, htmlProps, rest),
@@ -13035,7 +13004,7 @@ import {
13035
13004
  useEffect as useEffect34,
13036
13005
  useRef as useRef37
13037
13006
  } from "react";
13038
- import { jsx as jsx313, jsxs as jsxs80 } from "react/jsx-runtime";
13007
+ import { jsx as jsx314, jsxs as jsxs80 } from "react/jsx-runtime";
13039
13008
  var Tab = ({
13040
13009
  active = false,
13041
13010
  icon,
@@ -13101,8 +13070,8 @@ var Tab = ({
13101
13070
  onKeyDown: handleOnKeyDown,
13102
13071
  tabIndex: focus ? 0 : -1,
13103
13072
  children: [
13104
- icon && /* @__PURE__ */ jsx313(Icon, { icon, iconSize: "inherit" }),
13105
- /* @__PURE__ */ jsx313("span", { children })
13073
+ icon && /* @__PURE__ */ jsx314(Icon, { icon, iconSize: "inherit" }),
13074
+ /* @__PURE__ */ jsx314("span", { children })
13106
13075
  ]
13107
13076
  }
13108
13077
  );
@@ -13116,7 +13085,7 @@ import {
13116
13085
  isValidElement as isValidElement7,
13117
13086
  useState as useState32
13118
13087
  } from "react";
13119
- import { jsx as jsx314, jsxs as jsxs81 } from "react/jsx-runtime";
13088
+ import { jsx as jsx315, jsxs as jsxs81 } from "react/jsx-runtime";
13120
13089
  var TabList = ({
13121
13090
  children,
13122
13091
  id,
@@ -13174,7 +13143,7 @@ var TabList = ({
13174
13143
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
13175
13144
  ["--dds-tab-widths"]: widths.join(" ")
13176
13145
  };
13177
- return /* @__PURE__ */ jsx314(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ jsxs81(
13146
+ return /* @__PURE__ */ jsx315(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ jsxs81(
13178
13147
  "div",
13179
13148
  {
13180
13149
  ...rest,
@@ -13194,7 +13163,7 @@ var TabList = ({
13194
13163
  style: { ...style, ...customWidths },
13195
13164
  children: [
13196
13165
  tabListChildren,
13197
- hasButton && /* @__PURE__ */ jsx314(
13166
+ hasButton && /* @__PURE__ */ jsx315(
13198
13167
  AddTabButton,
13199
13168
  {
13200
13169
  index: tabListChildren ? tabListChildren.length : 0,
@@ -13208,7 +13177,7 @@ var TabList = ({
13208
13177
  TabList.displayName = "TabList";
13209
13178
 
13210
13179
  // src/components/Tabs/TabPanel.tsx
13211
- import { jsx as jsx315 } from "react/jsx-runtime";
13180
+ import { jsx as jsx316 } from "react/jsx-runtime";
13212
13181
  var TabPanel = ({
13213
13182
  active = false,
13214
13183
  children,
@@ -13217,7 +13186,7 @@ var TabPanel = ({
13217
13186
  htmlProps,
13218
13187
  padding = "x0.25",
13219
13188
  ...rest
13220
- }) => /* @__PURE__ */ jsx315(
13189
+ }) => /* @__PURE__ */ jsx316(
13221
13190
  Box,
13222
13191
  {
13223
13192
  padding,
@@ -13236,7 +13205,7 @@ import {
13236
13205
  cloneElement as cloneElement8,
13237
13206
  isValidElement as isValidElement8
13238
13207
  } from "react";
13239
- import { jsx as jsx316 } from "react/jsx-runtime";
13208
+ import { jsx as jsx317 } from "react/jsx-runtime";
13240
13209
  var TabPanels = ({ children, ref, ...rest }) => {
13241
13210
  const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
13242
13211
  const combinedRef = useCombinedRef(ref, tabPanelsRef);
@@ -13251,7 +13220,7 @@ var TabPanels = ({ children, ref, ...rest }) => {
13251
13220
  }
13252
13221
  });
13253
13222
  });
13254
- return /* @__PURE__ */ jsx316(Box, { ref: combinedRef, ...rest, children: panelChildren });
13223
+ return /* @__PURE__ */ jsx317(Box, { ref: combinedRef, ...rest, children: panelChildren });
13255
13224
  };
13256
13225
  TabPanels.displayName = "TabPanels";
13257
13226
 
@@ -13272,7 +13241,7 @@ var Tag_default = {
13272
13241
  };
13273
13242
 
13274
13243
  // src/components/Tag/Tag.tsx
13275
- import { jsx as jsx317, jsxs as jsxs82 } from "react/jsx-runtime";
13244
+ import { jsx as jsx318, jsxs as jsxs82 } from "react/jsx-runtime";
13276
13245
  var icons3 = {
13277
13246
  info: InfoIcon,
13278
13247
  danger: ErrorIcon,
@@ -13308,8 +13277,8 @@ var Tag = ({
13308
13277
  rest
13309
13278
  ),
13310
13279
  children: [
13311
- withIcon && icon && /* @__PURE__ */ jsx317(Icon, { icon, iconSize: "small" }),
13312
- /* @__PURE__ */ jsx317(TextOverflowEllipsisInner, { children: children != null ? children : text })
13280
+ withIcon && icon && /* @__PURE__ */ jsx318(Icon, { icon, iconSize: "small" }),
13281
+ /* @__PURE__ */ jsx318(TextOverflowEllipsisInner, { children: children != null ? children : text })
13313
13282
  ]
13314
13283
  }
13315
13284
  );
@@ -13339,7 +13308,7 @@ var TextInput_default = {
13339
13308
  };
13340
13309
 
13341
13310
  // src/components/TextInput/TextInput.tsx
13342
- import { jsx as jsx318, jsxs as jsxs83 } from "react/jsx-runtime";
13311
+ import { jsx as jsx319, jsxs as jsxs83 } from "react/jsx-runtime";
13343
13312
  var TextInput = ({
13344
13313
  label,
13345
13314
  disabled,
@@ -13391,7 +13360,6 @@ var TextInput = ({
13391
13360
  const uniqueId = id != null ? id : `${generatedId}-textInput`;
13392
13361
  const hasErrorMessage = !!errorMessage;
13393
13362
  const hasTip = !!tip;
13394
- const hasLabel = !!label;
13395
13363
  const hasMessage = hasErrorMessage || hasTip;
13396
13364
  const hasBottomContainer = hasErrorMessage || hasTip || !!maxLength;
13397
13365
  const hasIcon = !!icon;
@@ -13435,7 +13403,7 @@ var TextInput = ({
13435
13403
  let extendedInput = null;
13436
13404
  if (hasIcon) {
13437
13405
  extendedInput = /* @__PURE__ */ jsxs83(Box, { className: Input_default["input-group"], width: inputWidth, children: [
13438
- /* @__PURE__ */ jsx318(
13406
+ /* @__PURE__ */ jsx319(
13439
13407
  Icon,
13440
13408
  {
13441
13409
  icon,
@@ -13446,7 +13414,7 @@ var TextInput = ({
13446
13414
  )
13447
13415
  }
13448
13416
  ),
13449
- /* @__PURE__ */ jsx318(
13417
+ /* @__PURE__ */ jsx319(
13450
13418
  StatefulInput,
13451
13419
  {
13452
13420
  className: cn(
@@ -13467,7 +13435,7 @@ var TextInput = ({
13467
13435
  alignItems: "center",
13468
13436
  width: inputWidth,
13469
13437
  children: [
13470
- prefix2 && /* @__PURE__ */ jsx318(
13438
+ prefix2 && /* @__PURE__ */ jsx319(
13471
13439
  "span",
13472
13440
  {
13473
13441
  ref: prefixRef,
@@ -13480,7 +13448,7 @@ var TextInput = ({
13480
13448
  children: prefix2
13481
13449
  }
13482
13450
  ),
13483
- /* @__PURE__ */ jsx318(
13451
+ /* @__PURE__ */ jsx319(
13484
13452
  StatefulInput,
13485
13453
  {
13486
13454
  style: {
@@ -13491,7 +13459,7 @@ var TextInput = ({
13491
13459
  ...generalInputProps
13492
13460
  }
13493
13461
  ),
13494
- suffix && /* @__PURE__ */ jsx318(
13462
+ suffix && /* @__PURE__ */ jsx319(
13495
13463
  "span",
13496
13464
  {
13497
13465
  ref: suffixRef,
@@ -13520,18 +13488,8 @@ var TextInput = ({
13520
13488
  ),
13521
13489
  style,
13522
13490
  children: [
13523
- hasLabel && /* @__PURE__ */ jsx318(
13524
- Box,
13525
- {
13526
- as: Label,
13527
- display: "block",
13528
- htmlFor: uniqueId,
13529
- showRequiredStyling,
13530
- readOnly,
13531
- children: label
13532
- }
13533
- ),
13534
- extendedInput ? extendedInput : /* @__PURE__ */ jsx318(Box, { as: StatefulInput, width: inputWidth, ...generalInputProps }),
13491
+ renderLabel({ label, htmlFor: uniqueId, showRequiredStyling, readOnly }),
13492
+ extendedInput ? extendedInput : /* @__PURE__ */ jsx319(Box, { as: StatefulInput, width: inputWidth, ...generalInputProps }),
13535
13493
  hasBottomContainer && /* @__PURE__ */ jsxs83(
13536
13494
  Box,
13537
13495
  {
@@ -13575,7 +13533,7 @@ var Toggle_default = {
13575
13533
  };
13576
13534
 
13577
13535
  // src/components/Toggle/Toggle.tsx
13578
- import { jsx as jsx319, jsxs as jsxs84 } from "react/jsx-runtime";
13536
+ import { jsx as jsx320, jsxs as jsxs84 } from "react/jsx-runtime";
13579
13537
  var TOGGLE_SIZES = createSizes("medium", "large");
13580
13538
  var Toggle = ({
13581
13539
  id,
@@ -13612,7 +13570,7 @@ var Toggle = ({
13612
13570
  readOnly && Toggle_default["label--read-only"]
13613
13571
  ),
13614
13572
  children: [
13615
- /* @__PURE__ */ jsx319(
13573
+ /* @__PURE__ */ jsx320(
13616
13574
  HiddenInput,
13617
13575
  {
13618
13576
  ...getBaseHTMLProps(
@@ -13635,7 +13593,7 @@ var Toggle = ({
13635
13593
  onClick: readOnlyClickHandler(readOnly || isLoading, htmlProps.onClick)
13636
13594
  }
13637
13595
  ),
13638
- /* @__PURE__ */ jsx319("span", { className: cn(Toggle_default.track, focus_default["focus-styled-sibling"]), children: /* @__PURE__ */ jsx319("span", { className: Toggle_default.thumb, children: isLoading ? /* @__PURE__ */ jsx319(Spinner, { size: `var(--dds-icon-size-${size2})` }) : /* @__PURE__ */ jsx319(
13596
+ /* @__PURE__ */ jsx320("span", { className: cn(Toggle_default.track, focus_default["focus-styled-sibling"]), children: /* @__PURE__ */ jsx320("span", { className: Toggle_default.thumb, children: isLoading ? /* @__PURE__ */ jsx320(Spinner, { size: `var(--dds-icon-size-${size2})` }) : /* @__PURE__ */ jsx320(
13639
13597
  Icon,
13640
13598
  {
13641
13599
  className: Toggle_default.checkmark,
@@ -13644,7 +13602,7 @@ var Toggle = ({
13644
13602
  }
13645
13603
  ) }) }),
13646
13604
  /* @__PURE__ */ jsxs84("span", { className: cn(readOnly && Toggle_default["labeltext--readonly"]), children: [
13647
- readOnly && /* @__PURE__ */ jsx319(
13605
+ readOnly && /* @__PURE__ */ jsx320(
13648
13606
  Icon,
13649
13607
  {
13650
13608
  icon: LockIcon,
@@ -13654,7 +13612,7 @@ var Toggle = ({
13654
13612
  ),
13655
13613
  children,
13656
13614
  " ",
13657
- isLoading && /* @__PURE__ */ jsx319(VisuallyHidden, { children: t(commonTexts.loading) })
13615
+ isLoading && /* @__PURE__ */ jsx320(VisuallyHidden, { children: t(commonTexts.loading) })
13658
13616
  ] })
13659
13617
  ]
13660
13618
  }
@@ -13688,7 +13646,7 @@ var ToggleBar_default = {
13688
13646
  };
13689
13647
 
13690
13648
  // src/components/ToggleBar/ToggleBar.tsx
13691
- import { jsx as jsx320, jsxs as jsxs85 } from "react/jsx-runtime";
13649
+ import { jsx as jsx321, jsxs as jsxs85 } from "react/jsx-runtime";
13692
13650
  var ToggleBar = (props) => {
13693
13651
  const {
13694
13652
  children,
@@ -13711,7 +13669,7 @@ var ToggleBar = (props) => {
13711
13669
  (e) => onChange && onChange(e, e.target.value)
13712
13670
  );
13713
13671
  const labelId = label && `${uniqueId}-label`;
13714
- return /* @__PURE__ */ jsx320(
13672
+ return /* @__PURE__ */ jsx321(
13715
13673
  ToggleBarContext,
13716
13674
  {
13717
13675
  value: {
@@ -13729,8 +13687,8 @@ var ToggleBar = (props) => {
13729
13687
  role: "radiogroup",
13730
13688
  "aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
13731
13689
  children: [
13732
- label && /* @__PURE__ */ jsx320(Typography, { id: labelId, as: "span", typographyType: "labelMedium", children: label }),
13733
- /* @__PURE__ */ jsx320("div", { className: ToggleBar_default.bar, children })
13690
+ label && /* @__PURE__ */ jsx321(Typography, { id: labelId, as: "span", typographyType: "labelMedium", children: label }),
13691
+ /* @__PURE__ */ jsx321("div", { className: ToggleBar_default.bar, children })
13734
13692
  ]
13735
13693
  }
13736
13694
  )
@@ -13741,7 +13699,7 @@ ToggleBar.displayName = "ToggleBar";
13741
13699
 
13742
13700
  // src/components/ToggleBar/ToggleRadio.tsx
13743
13701
  import { useId as useId28 } from "react";
13744
- import { jsx as jsx321, jsxs as jsxs86 } from "react/jsx-runtime";
13702
+ import { jsx as jsx322, jsxs as jsxs86 } from "react/jsx-runtime";
13745
13703
  var typographyTypes3 = {
13746
13704
  large: "bodyLarge",
13747
13705
  medium: "bodyMedium",
@@ -13782,7 +13740,7 @@ var ToggleRadio = ({
13782
13740
  };
13783
13741
  const contentTypeCn = label ? "with-text" : "just-icon";
13784
13742
  return /* @__PURE__ */ jsxs86("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
13785
- /* @__PURE__ */ jsx321(
13743
+ /* @__PURE__ */ jsx322(
13786
13744
  HiddenInput,
13787
13745
  {
13788
13746
  ...getBaseHTMLProps(
@@ -13811,8 +13769,8 @@ var ToggleRadio = ({
13811
13769
  focus_default["focus-styled-sibling"]
13812
13770
  ),
13813
13771
  children: [
13814
- icon && /* @__PURE__ */ jsx321(Icon, { icon, iconSize: "inherit" }),
13815
- label && /* @__PURE__ */ jsx321("span", { children: label })
13772
+ icon && /* @__PURE__ */ jsx322(Icon, { icon, iconSize: "inherit" }),
13773
+ label && /* @__PURE__ */ jsx322("span", { children: label })
13816
13774
  ]
13817
13775
  }
13818
13776
  )
@@ -13832,7 +13790,7 @@ var ToggleButton_default = {
13832
13790
  };
13833
13791
 
13834
13792
  // src/components/ToggleButton/ToggleButton.tsx
13835
- import { jsx as jsx322, jsxs as jsxs87 } from "react/jsx-runtime";
13793
+ import { jsx as jsx323, jsxs as jsxs87 } from "react/jsx-runtime";
13836
13794
  var ToggleButton = ({
13837
13795
  id,
13838
13796
  label,
@@ -13846,7 +13804,7 @@ var ToggleButton = ({
13846
13804
  const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
13847
13805
  const hasIcon = !!icon;
13848
13806
  return /* @__PURE__ */ jsxs87(Box, { as: "label", htmlFor: uniqueId, width: "fit-content", children: [
13849
- /* @__PURE__ */ jsx322(
13807
+ /* @__PURE__ */ jsx323(
13850
13808
  HiddenInput,
13851
13809
  {
13852
13810
  ...getBaseHTMLProps(
@@ -13869,7 +13827,7 @@ var ToggleButton = ({
13869
13827
  focus_default["focus-styled-sibling"]
13870
13828
  ),
13871
13829
  children: [
13872
- hasIcon && /* @__PURE__ */ jsx322(Icon, { icon, iconSize: "inherit" }),
13830
+ hasIcon && /* @__PURE__ */ jsx323(Icon, { icon, iconSize: "inherit" }),
13873
13831
  " ",
13874
13832
  label
13875
13833
  ]
@@ -13881,7 +13839,7 @@ ToggleButton.displayName = "ToggleButton";
13881
13839
 
13882
13840
  // src/components/ToggleButton/ToggleButtonGroup.tsx
13883
13841
  import { useId as useId30 } from "react";
13884
- import { jsx as jsx323, jsxs as jsxs88 } from "react/jsx-runtime";
13842
+ import { jsx as jsx324, jsxs as jsxs88 } from "react/jsx-runtime";
13885
13843
  var ToggleButtonGroup = (props) => {
13886
13844
  const {
13887
13845
  children,
@@ -13896,15 +13854,14 @@ var ToggleButtonGroup = (props) => {
13896
13854
  const generatedId = useId30();
13897
13855
  const uniqueLabelId = labelId != null ? labelId : `${generatedId}-ToggleButtonGroupLabel`;
13898
13856
  return /* @__PURE__ */ jsxs88(
13899
- VStack,
13857
+ "div",
13900
13858
  {
13901
- gap: "x0.5",
13902
13859
  ...getBaseHTMLProps(id, className, htmlProps, rest),
13903
13860
  role: "group",
13904
13861
  "aria-labelledby": label ? uniqueLabelId : void 0,
13905
13862
  children: [
13906
- !!label && /* @__PURE__ */ jsx323(Typography, { as: "span", typographyType: "labelMedium", id: uniqueLabelId, children: label }),
13907
- /* @__PURE__ */ jsx323(Box, { display: "flex", flexWrap: "wrap", gap: "x0.75", flexDirection: direction, children })
13863
+ renderGroupLabel({ label, id: uniqueLabelId }),
13864
+ /* @__PURE__ */ jsx324(Box, { display: "flex", flexWrap: "wrap", gap: "x0.75", flexDirection: direction, children })
13908
13865
  ]
13909
13866
  }
13910
13867
  );