@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.js CHANGED
@@ -5113,34 +5113,38 @@ var Label2 = ({
5113
5113
  }
5114
5114
  );
5115
5115
  };
5116
- var GroupLabel = ({
5116
+ var renderGroupLabel = ({
5117
5117
  id,
5118
- showRequiredMarker,
5118
+ showRequiredStyling,
5119
5119
  readOnly,
5120
- children
5120
+ label
5121
5121
  }) => {
5122
- return /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(
5123
- Typography,
5124
- {
5125
- as: "span",
5126
- typographyType: "labelMedium",
5127
- id,
5128
- className: readOnly ? Label_default["read-only"] : void 0,
5129
- children: [
5130
- readOnly && /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
5131
- Icon,
5132
- {
5133
- icon: LockIcon,
5134
- className: Label_default["read-only__icon"],
5135
- iconSize: "small"
5136
- }
5137
- ),
5138
- children,
5139
- " ",
5140
- showRequiredMarker && /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(RequiredMarker, {})
5141
- ]
5142
- }
5143
- );
5122
+ const hasLabel = !!label;
5123
+ if (hasLabel)
5124
+ return /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(
5125
+ Typography,
5126
+ {
5127
+ as: "span",
5128
+ typographyType: "labelMedium",
5129
+ id,
5130
+ className: readOnly ? Label_default["read-only"] : void 0,
5131
+ withMargins: true,
5132
+ children: [
5133
+ readOnly && /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
5134
+ Icon,
5135
+ {
5136
+ icon: LockIcon,
5137
+ className: Label_default["read-only__icon"],
5138
+ iconSize: "small"
5139
+ }
5140
+ ),
5141
+ label,
5142
+ " ",
5143
+ showRequiredStyling && /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(RequiredMarker, {})
5144
+ ]
5145
+ }
5146
+ );
5147
+ else return null;
5144
5148
  };
5145
5149
 
5146
5150
  // src/components/SelectionControl/SelectionControl.utils.tsx
@@ -5318,7 +5322,7 @@ var CheckboxGroup = (props) => {
5318
5322
  const generatedId = (0, import_react28.useId)();
5319
5323
  const uniqueGroupId = groupId != null ? groupId : `${generatedId}-checkboxGroup`;
5320
5324
  const hasErrorMessage = !!errorMessage;
5321
- const showRequiredMarker = required || convertBooleanishToBoolean(ariaRequired);
5325
+ const showRequiredStyling = required || convertBooleanishToBoolean(ariaRequired);
5322
5326
  const errorMessageId = derivativeIdGenerator(uniqueGroupId, "errorMessage");
5323
5327
  const tipId = derivativeIdGenerator(uniqueGroupId, "tip");
5324
5328
  const contextProps = {
@@ -5339,15 +5343,12 @@ var CheckboxGroup = (props) => {
5339
5343
  rest
5340
5344
  ),
5341
5345
  children: [
5342
- label !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
5343
- GroupLabel,
5344
- {
5345
- id: uniqueGroupId,
5346
- readOnly,
5347
- showRequiredMarker,
5348
- children: label
5349
- }
5350
- ) : null,
5346
+ renderGroupLabel({
5347
+ label,
5348
+ id: uniqueGroupId,
5349
+ readOnly,
5350
+ showRequiredStyling
5351
+ }),
5351
5352
  renderInputMessage(tip, tipId),
5352
5353
  /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(CheckboxGroupContext, { value: { ...contextProps }, children: /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
5353
5354
  "div",
@@ -5510,7 +5511,7 @@ var RadioButtonGroup = ({
5510
5511
  onChange
5511
5512
  });
5512
5513
  const hasErrorMessage = !!errorMessage;
5513
- const showRequiredMarker = required || convertBooleanishToBoolean(ariaRequired);
5514
+ const showRequiredStyling = required || convertBooleanishToBoolean(ariaRequired);
5514
5515
  const tipId = tip && `${uniqueGroupId}-tip`;
5515
5516
  const errorMessageId = errorMessage && `${uniqueGroupId}-errorMessage`;
5516
5517
  const contextProps = {
@@ -5534,15 +5535,12 @@ var RadioButtonGroup = ({
5534
5535
  rest
5535
5536
  ),
5536
5537
  children: [
5537
- label !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
5538
- GroupLabel,
5539
- {
5540
- id: uniqueGroupId,
5541
- readOnly,
5542
- showRequiredMarker,
5543
- children: label
5544
- }
5545
- ) : null,
5538
+ renderGroupLabel({
5539
+ label,
5540
+ id: uniqueGroupId,
5541
+ readOnly,
5542
+ showRequiredStyling
5543
+ }),
5546
5544
  renderInputMessage(tip, tipId),
5547
5545
  /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(RadioButtonGroupContext, { value: { ...contextProps }, children: /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
5548
5546
  "div",
@@ -6639,7 +6637,6 @@ var Input_default = {
6639
6637
  "input--small": "Input_input--small",
6640
6638
  "input--xsmall": "Input_input--xsmall",
6641
6639
  "input--with-affix": "Input_input--with-affix",
6642
- label: "Input_label",
6643
6640
  "input-group__absolute-element": "Input_input-group__absolute-element"
6644
6641
  };
6645
6642
 
@@ -6693,8 +6690,18 @@ function getInputWidth(width, defaultW) {
6693
6690
  return width != null ? width : fallback;
6694
6691
  }
6695
6692
 
6696
- // src/components/date-inputs/common/DateInput.tsx
6693
+ // src/components/Typography/Label/Label.utils.tsx
6697
6694
  var import_jsx_runtime233 = require("react/jsx-runtime");
6695
+ function renderLabel(props) {
6696
+ const { label, ...rest } = props;
6697
+ const hasLabel = !!label;
6698
+ if (hasLabel)
6699
+ return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Label, { ...rest, withMargins: true, children: label });
6700
+ return null;
6701
+ }
6702
+
6703
+ // src/components/date-inputs/common/DateInput.tsx
6704
+ var import_jsx_runtime234 = require("react/jsx-runtime");
6698
6705
  function DateInput({
6699
6706
  errorMessage,
6700
6707
  tip,
@@ -6720,27 +6727,22 @@ function DateInput({
6720
6727
  var _a;
6721
6728
  const hasErrorMessage = !!errorMessage;
6722
6729
  const hasTip = !!tip;
6723
- const hasLabel = props.label != null;
6724
6730
  const hasMessage = hasErrorMessage || hasTip;
6725
6731
  const { isOpen } = (0, import_react44.useContext)(CalendarPopoverContext);
6726
- return /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
6732
+ return /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(
6727
6733
  "div",
6728
6734
  {
6729
6735
  ...groupProps,
6730
6736
  className: cn(className, Input_default.container),
6731
6737
  ref,
6732
6738
  children: [
6733
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
6734
- Label,
6735
- {
6736
- ...labelProps,
6737
- showRequiredStyling: required,
6738
- className: Input_default.label,
6739
- readOnly,
6740
- children: props.label
6741
- }
6742
- ),
6743
- /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
6739
+ renderLabel({
6740
+ ...labelProps,
6741
+ label: props.label,
6742
+ showRequiredStyling: required,
6743
+ readOnly
6744
+ }),
6745
+ /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(
6744
6746
  Box,
6745
6747
  {
6746
6748
  style,
@@ -6763,7 +6765,7 @@ function DateInput({
6763
6765
  ),
6764
6766
  children: [
6765
6767
  button,
6766
- /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
6768
+ /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
6767
6769
  "div",
6768
6770
  {
6769
6771
  ...fieldProps,
@@ -6776,7 +6778,7 @@ function DateInput({
6776
6778
  ]
6777
6779
  }
6778
6780
  ),
6779
- hasMessage && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
6781
+ hasMessage && /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
6780
6782
  InputMessage,
6781
6783
  {
6782
6784
  messageType: hasErrorMessage ? "error" : "tip",
@@ -6790,7 +6792,7 @@ function DateInput({
6790
6792
  DateInput.displayName = "DateInput";
6791
6793
 
6792
6794
  // src/components/date-inputs/DatePicker/DateField/DateField.tsx
6793
- var import_jsx_runtime234 = require("react/jsx-runtime");
6795
+ var import_jsx_runtime235 = require("react/jsx-runtime");
6794
6796
  function DateField({
6795
6797
  componentSize = "medium",
6796
6798
  buttonProps,
@@ -6818,7 +6820,7 @@ function DateField({
6818
6820
  const clearDate = () => {
6819
6821
  state.setValue(null);
6820
6822
  };
6821
- return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
6823
+ return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
6822
6824
  DateInput,
6823
6825
  {
6824
6826
  ...props,
@@ -6831,7 +6833,7 @@ function DateField({
6831
6833
  ref,
6832
6834
  internalRef,
6833
6835
  readOnly: props.isReadOnly,
6834
- prefix: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
6836
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
6835
6837
  CalendarButton,
6836
6838
  {
6837
6839
  componentSize,
@@ -6840,7 +6842,7 @@ function DateField({
6840
6842
  isDisabled: disabled || props.isReadOnly
6841
6843
  }
6842
6844
  ),
6843
- suffix: showClearButton && /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
6845
+ suffix: showClearButton && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
6844
6846
  ClearButton,
6845
6847
  {
6846
6848
  absolute: false,
@@ -6856,7 +6858,7 @@ function DateField({
6856
6858
  ),
6857
6859
  labelProps,
6858
6860
  fieldProps,
6859
- children: state.segments.map((segment, i) => /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
6861
+ children: state.segments.map((segment, i) => /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
6860
6862
  DateSegment,
6861
6863
  {
6862
6864
  "aria-readonly": props.isReadOnly,
@@ -6901,7 +6903,7 @@ function createDOMRef(ref) {
6901
6903
  }
6902
6904
 
6903
6905
  // src/components/date-inputs/DatePicker/DatePicker.tsx
6904
- var import_jsx_runtime235 = require("react/jsx-runtime");
6906
+ var import_jsx_runtime236 = require("react/jsx-runtime");
6905
6907
  var refIsFocusable = (ref) => {
6906
6908
  return typeof ref === "object" && ref !== null && "focus" in ref;
6907
6909
  };
@@ -6926,14 +6928,14 @@ function DatePicker({
6926
6928
  state,
6927
6929
  internalRef
6928
6930
  );
6929
- return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(import_i18n14.I18nProvider, { locale, children: /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(
6931
+ return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(import_i18n14.I18nProvider, { locale, children: /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(
6930
6932
  CalendarPopover,
6931
6933
  {
6932
6934
  isOpen: state.isOpen,
6933
6935
  onClose: state.close,
6934
6936
  showWeekNumbers,
6935
6937
  children: [
6936
- /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(CalendarPopoverAnchor, { children: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
6938
+ /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(CalendarPopoverAnchor, { children: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
6937
6939
  DateField,
6938
6940
  {
6939
6941
  ...fieldProps,
@@ -6949,7 +6951,7 @@ function DatePicker({
6949
6951
  clearable
6950
6952
  }
6951
6953
  ) }),
6952
- /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(CalendarPopoverContent, { smallScreenBreakpoint, children: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Calendar, { ...calendarProps }) })
6954
+ /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(CalendarPopoverContent, { smallScreenBreakpoint, children: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Calendar, { ...calendarProps }) })
6953
6955
  ]
6954
6956
  }
6955
6957
  ) });
@@ -6960,7 +6962,7 @@ DatePicker.displayName = "DatePicker";
6960
6962
  var import_datepicker6 = require("@react-aria/datepicker");
6961
6963
  var import_datepicker7 = require("@react-stately/datepicker");
6962
6964
  var import_react48 = require("react");
6963
- var import_jsx_runtime236 = require("react/jsx-runtime");
6965
+ var import_jsx_runtime237 = require("react/jsx-runtime");
6964
6966
  function TimePicker({
6965
6967
  componentSize = "medium",
6966
6968
  width,
@@ -6979,7 +6981,7 @@ function TimePicker({
6979
6981
  );
6980
6982
  const iconSize = componentSize === "xsmall" ? "small" : "medium";
6981
6983
  const disabled = props.isDisabled || !!fieldProps["aria-disabled"];
6982
- return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
6984
+ return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
6983
6985
  DateInput,
6984
6986
  {
6985
6987
  ...props,
@@ -6992,7 +6994,7 @@ function TimePicker({
6992
6994
  readOnly: props.isReadOnly,
6993
6995
  labelProps,
6994
6996
  fieldProps,
6995
- prefix: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
6997
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
6996
6998
  Icon,
6997
6999
  {
6998
7000
  icon: TimeIcon,
@@ -7004,7 +7006,7 @@ function TimePicker({
7004
7006
  )
7005
7007
  }
7006
7008
  ),
7007
- children: state.segments.map((segment, i) => /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
7009
+ children: state.segments.map((segment, i) => /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
7008
7010
  DateSegment,
7009
7011
  {
7010
7012
  componentSize,
@@ -7059,7 +7061,7 @@ var DescriptionList_default = {
7059
7061
  };
7060
7062
 
7061
7063
  // src/components/DescriptionList/DescriptionList.tsx
7062
- var import_jsx_runtime237 = require("react/jsx-runtime");
7064
+ var import_jsx_runtime238 = require("react/jsx-runtime");
7063
7065
  var DescriptionList = ({
7064
7066
  appearance = "default",
7065
7067
  direction = "column",
@@ -7068,7 +7070,7 @@ var DescriptionList = ({
7068
7070
  className,
7069
7071
  htmlProps,
7070
7072
  ...rest
7071
- }) => /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
7073
+ }) => /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
7072
7074
  VStack,
7073
7075
  {
7074
7076
  as: "dl",
@@ -7093,14 +7095,14 @@ var DescriptionList = ({
7093
7095
  DescriptionList.displayName = "DescriptionList";
7094
7096
 
7095
7097
  // src/components/DescriptionList/DescriptionListTerm.tsx
7096
- var import_jsx_runtime238 = require("react/jsx-runtime");
7098
+ var import_jsx_runtime239 = require("react/jsx-runtime");
7097
7099
  var DescriptionListTerm = (props) => {
7098
- return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)("dt", { ...props });
7100
+ return /* @__PURE__ */ (0, import_jsx_runtime239.jsx)("dt", { ...props });
7099
7101
  };
7100
7102
  DescriptionListTerm.displayName = "DescriptionListTerm";
7101
7103
 
7102
7104
  // src/components/DescriptionList/DescriptionListDesc.tsx
7103
- var import_jsx_runtime239 = require("react/jsx-runtime");
7105
+ var import_jsx_runtime240 = require("react/jsx-runtime");
7104
7106
  var DescriptionListDesc = ({
7105
7107
  children,
7106
7108
  icon,
@@ -7108,15 +7110,15 @@ var DescriptionListDesc = ({
7108
7110
  className,
7109
7111
  htmlProps,
7110
7112
  ...rest
7111
- }) => /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)("dd", { ...getBaseHTMLProps(id, cn(className, DescriptionList_default.desc), htmlProps, rest), children: [
7112
- icon && /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Icon, { icon }),
7113
+ }) => /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)("dd", { ...getBaseHTMLProps(id, cn(className, DescriptionList_default.desc), htmlProps, rest), children: [
7114
+ icon && /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(Icon, { icon }),
7113
7115
  " ",
7114
7116
  children
7115
7117
  ] });
7116
7118
  DescriptionListDesc.displayName = "DescriptionListDesc";
7117
7119
 
7118
7120
  // src/components/DescriptionList/DescriptionListGroup.tsx
7119
- var import_jsx_runtime240 = require("react/jsx-runtime");
7121
+ var import_jsx_runtime241 = require("react/jsx-runtime");
7120
7122
  var DescriptionListGroup = ({
7121
7123
  children,
7122
7124
  margin,
@@ -7126,7 +7128,7 @@ var DescriptionListGroup = ({
7126
7128
  className,
7127
7129
  htmlProps,
7128
7130
  ...rest
7129
- }) => /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
7131
+ }) => /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
7130
7132
  "div",
7131
7133
  {
7132
7134
  ...getBaseHTMLProps(id, cn(className, DescriptionList_default.group), htmlProps, rest),
@@ -7144,10 +7146,10 @@ var DetailList_default = {
7144
7146
  "list--striped": "DetailList_list--striped",
7145
7147
  "list--striped-with-bp": "DetailList_list--striped-with-bp",
7146
7148
  "list--small": "DetailList_list--small",
7147
- cell: "DetailList_cell",
7148
7149
  "list--medium": "DetailList_list--medium",
7149
7150
  "list--large": "DetailList_list--large",
7150
7151
  column: "DetailList_column",
7152
+ cell: "DetailList_cell",
7151
7153
  term: "DetailList_term"
7152
7154
  };
7153
7155
 
@@ -7157,7 +7159,7 @@ var DetailListContext = (0, import_react49.createContext)({});
7157
7159
  var useDetailListContext = () => (0, import_react49.useContext)(DetailListContext);
7158
7160
 
7159
7161
  // src/components/DetailList/DetailList.tsx
7160
- var import_jsx_runtime241 = require("react/jsx-runtime");
7162
+ var import_jsx_runtime242 = require("react/jsx-runtime");
7161
7163
  var DetailList = ({
7162
7164
  id,
7163
7165
  className,
@@ -7167,7 +7169,7 @@ var DetailList = ({
7167
7169
  size: size2 = "medium",
7168
7170
  smallScreenBreakpoint,
7169
7171
  ...rest
7170
- }) => /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(DetailListContext, { value: { smallScreenBreakpoint }, children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
7172
+ }) => /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(DetailListContext, { value: { smallScreenBreakpoint }, children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
7171
7173
  "dl",
7172
7174
  {
7173
7175
  ...getBaseHTMLProps(
@@ -7188,17 +7190,17 @@ var DetailList = ({
7188
7190
  DetailList.displayName = "DetailList";
7189
7191
 
7190
7192
  // src/components/DetailList/DetailListDesc.tsx
7191
- var import_jsx_runtime242 = require("react/jsx-runtime");
7192
- var DetailListDesc = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime242.jsx)("dd", { className: cn(className, DetailList_default.cell), ...rest });
7193
+ var import_jsx_runtime243 = require("react/jsx-runtime");
7194
+ var DetailListDesc = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime243.jsx)("dd", { className: cn(className, DetailList_default.cell), ...rest });
7193
7195
  DetailListDesc.displayName = "DetailListDesc";
7194
7196
 
7195
7197
  // src/components/DetailList/DetailListRow.tsx
7196
- var import_jsx_runtime243 = require("react/jsx-runtime");
7198
+ var import_jsx_runtime244 = require("react/jsx-runtime");
7197
7199
  var DetailListRow = ({ className, ...rest }) => {
7198
7200
  const { smallScreenBreakpoint: bp } = useDetailListContext();
7199
7201
  const hasBp = !!bp;
7200
- return /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(import_jsx_runtime243.Fragment, { children: [
7201
- /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
7202
+ return /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(import_jsx_runtime244.Fragment, { children: [
7203
+ /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
7202
7204
  Box,
7203
7205
  {
7204
7206
  display: "table-row",
@@ -7207,7 +7209,7 @@ var DetailListRow = ({ className, ...rest }) => {
7207
7209
  ...rest
7208
7210
  }
7209
7211
  ),
7210
- hasBp && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
7212
+ hasBp && /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
7211
7213
  Box,
7212
7214
  {
7213
7215
  display: "flex",
@@ -7222,8 +7224,8 @@ var DetailListRow = ({ className, ...rest }) => {
7222
7224
  DetailListRow.displayName = "DetailListRow";
7223
7225
 
7224
7226
  // src/components/DetailList/DetailListTerm.tsx
7225
- var import_jsx_runtime244 = require("react/jsx-runtime");
7226
- var DetailListTerm = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime244.jsx)("dt", { className: cn(className, DetailList_default.cell, DetailList_default.term), ...rest });
7227
+ var import_jsx_runtime245 = require("react/jsx-runtime");
7228
+ var DetailListTerm = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime245.jsx)("dt", { className: cn(className, DetailList_default.cell, DetailList_default.term), ...rest });
7227
7229
  DetailListTerm.displayName = "DetailListTerm";
7228
7230
 
7229
7231
  // src/components/Drawer/Drawer.tsx
@@ -7250,7 +7252,7 @@ var DrawerContext = (0, import_react50.createContext)({});
7250
7252
  var useDrawerContext = () => (0, import_react50.useContext)(DrawerContext);
7251
7253
 
7252
7254
  // src/components/Drawer/Drawer.tsx
7253
- var import_jsx_runtime245 = require("react/jsx-runtime");
7255
+ var import_jsx_runtime246 = require("react/jsx-runtime");
7254
7256
  var DRAWER_SIZES = createSizes("small", "medium", "large");
7255
7257
  var Drawer = ({
7256
7258
  children,
@@ -7313,7 +7315,7 @@ var Drawer = ({
7313
7315
  return "800px";
7314
7316
  }
7315
7317
  };
7316
- const drawer = /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(
7318
+ const drawer = /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(
7317
7319
  Paper,
7318
7320
  {
7319
7321
  ref: combinedRef,
@@ -7345,7 +7347,7 @@ var Drawer = ({
7345
7347
  elevation: 4,
7346
7348
  "aria-labelledby": headerId,
7347
7349
  children: [
7348
- /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(
7350
+ /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(
7349
7351
  HStack,
7350
7352
  {
7351
7353
  position: "sticky",
@@ -7355,8 +7357,8 @@ var Drawer = ({
7355
7357
  paddingInline: "var(--dds-drawer-content-container-padding)",
7356
7358
  className: Drawer_default["drawer-header"],
7357
7359
  children: [
7358
- hasHeader && /* @__PURE__ */ (0, import_jsx_runtime245.jsx)("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(Heading, { level: 2, typographyType: "headingLarge", children: header }) : header }),
7359
- /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
7360
+ hasHeader && /* @__PURE__ */ (0, import_jsx_runtime246.jsx)("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(Heading, { level: 2, typographyType: "headingLarge", children: header }) : header }),
7361
+ /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
7360
7362
  Button,
7361
7363
  {
7362
7364
  className: cn(Drawer_default["button--close"]),
@@ -7371,7 +7373,7 @@ var Drawer = ({
7371
7373
  ]
7372
7374
  }
7373
7375
  ),
7374
- /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
7376
+ /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
7375
7377
  VStack,
7376
7378
  {
7377
7379
  gap: "x1",
@@ -7383,7 +7385,7 @@ var Drawer = ({
7383
7385
  ]
7384
7386
  }
7385
7387
  );
7386
- const component = withBackdrop ? /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
7388
+ const component = withBackdrop ? /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
7387
7389
  Backdrop,
7388
7390
  {
7389
7391
  zIndex: "drawer",
@@ -7399,7 +7401,7 @@ Drawer.displayName = "Drawer";
7399
7401
 
7400
7402
  // src/components/Drawer/DrawerGroup.tsx
7401
7403
  var import_react52 = require("react");
7402
- var import_jsx_runtime246 = require("react/jsx-runtime");
7404
+ var import_jsx_runtime247 = require("react/jsx-runtime");
7403
7405
  var DrawerGroup = ({
7404
7406
  children,
7405
7407
  isInitiallyOpen,
@@ -7443,7 +7445,7 @@ var DrawerGroup = ({
7443
7445
  onClick: handleOpen
7444
7446
  }) : child);
7445
7447
  });
7446
- return /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
7448
+ return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
7447
7449
  DrawerContext,
7448
7450
  {
7449
7451
  value: {
@@ -7459,14 +7461,14 @@ var DrawerGroup = ({
7459
7461
  DrawerGroup.displayName = "DrawerGroup";
7460
7462
 
7461
7463
  // src/components/EmptyContent/EmptyContent.tsx
7462
- var import_jsx_runtime247 = require("react/jsx-runtime");
7464
+ var import_jsx_runtime248 = require("react/jsx-runtime");
7463
7465
  function EmptyContent({
7464
7466
  headerText,
7465
7467
  message,
7466
7468
  headerHeadingLevel = 2,
7467
7469
  ...rest
7468
7470
  }) {
7469
- return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
7471
+ return /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
7470
7472
  Paper,
7471
7473
  {
7472
7474
  display: "flex",
@@ -7479,9 +7481,9 @@ function EmptyContent({
7479
7481
  background: "surface-medium",
7480
7482
  borderRadius: "surface",
7481
7483
  ...rest,
7482
- children: /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(VStack, { maxWidth: "70ch", gap: "x1", textAlign: "center", children: [
7483
- headerText && /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Heading, { level: headerHeadingLevel, typographyType: "headingMedium", children: headerText }),
7484
- /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Paragraph, { color: "text-medium", children: message })
7484
+ children: /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(VStack, { maxWidth: "70ch", gap: "x1", textAlign: "center", children: [
7485
+ headerText && /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Heading, { level: headerHeadingLevel, typographyType: "headingMedium", children: headerText }),
7486
+ /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Paragraph, { color: "text-medium", children: message })
7485
7487
  ] })
7486
7488
  }
7487
7489
  );
@@ -7501,7 +7503,7 @@ var FavStar_default = {
7501
7503
  };
7502
7504
 
7503
7505
  // src/components/FavStar/FavStar.tsx
7504
- var import_jsx_runtime248 = require("react/jsx-runtime");
7506
+ var import_jsx_runtime249 = require("react/jsx-runtime");
7505
7507
  var FAVSTAR_SIZES = createSizes("medium", "large");
7506
7508
  var FavStar = ({
7507
7509
  id,
@@ -7527,7 +7529,7 @@ var FavStar = ({
7527
7529
  defaultValue: defaultChecked != null ? defaultChecked : false,
7528
7530
  onChange
7529
7531
  });
7530
- return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(
7532
+ return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
7531
7533
  "label",
7532
7534
  {
7533
7535
  className: cn(
@@ -7539,7 +7541,7 @@ var FavStar = ({
7539
7541
  style,
7540
7542
  htmlFor: id != null ? id : generatedId,
7541
7543
  children: [
7542
- /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
7544
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
7543
7545
  HiddenInput,
7544
7546
  {
7545
7547
  ...props,
@@ -7550,8 +7552,8 @@ var FavStar = ({
7550
7552
  "aria-label": (_a = props["aria-label"]) != null ? _a : t(texts8.favourite)
7551
7553
  }
7552
7554
  ),
7553
- /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
7554
- /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
7555
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
7556
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
7555
7557
  Icon,
7556
7558
  {
7557
7559
  iconSize: size2,
@@ -7604,13 +7606,13 @@ var CharCounter_default = {
7604
7606
  };
7605
7607
 
7606
7608
  // src/components/helpers/CharCounter/CharCounter.tsx
7607
- var import_jsx_runtime249 = require("react/jsx-runtime");
7609
+ var import_jsx_runtime250 = require("react/jsx-runtime");
7608
7610
  function CharCounter(props) {
7609
7611
  const { t } = useTranslation();
7610
7612
  const { current, max, id } = props;
7611
7613
  const generatedId = (0, import_react54.useId)();
7612
7614
  const uniqueId = id != null ? id : `${generatedId}-characterCounter`;
7613
- return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
7615
+ return /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
7614
7616
  Typography,
7615
7617
  {
7616
7618
  id: uniqueId,
@@ -7619,19 +7621,19 @@ function CharCounter(props) {
7619
7621
  typographyType: "bodyXsmall",
7620
7622
  color: "textSubtle",
7621
7623
  children: [
7622
- /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)("span", { "aria-hidden": true, children: [
7624
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)("span", { "aria-hidden": true, children: [
7623
7625
  current,
7624
7626
  "/",
7625
7627
  max
7626
7628
  ] }),
7627
- /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(VisuallyHidden, { children: t(texts9.charsWritten(current, max, max - current)) })
7629
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(VisuallyHidden, { children: t(texts9.charsWritten(current, max, max - current)) })
7628
7630
  ]
7629
7631
  }
7630
7632
  );
7631
7633
  }
7632
7634
  var renderCharCounter = (id, isShown, textLength, maxLength) => {
7633
7635
  if (!!maxLength && Number.isInteger(maxLength) && maxLength > 0 && isShown)
7634
- return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(CharCounter, { id, max: maxLength, current: textLength });
7636
+ return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(CharCounter, { id, max: maxLength, current: textLength });
7635
7637
  };
7636
7638
  var texts9 = createTexts({
7637
7639
  charsWritten: (current, max, remain) => ({
@@ -7643,7 +7645,7 @@ var texts9 = createTexts({
7643
7645
  });
7644
7646
 
7645
7647
  // src/components/TextArea/TextArea.tsx
7646
- var import_jsx_runtime250 = require("react/jsx-runtime");
7648
+ var import_jsx_runtime251 = require("react/jsx-runtime");
7647
7649
  var TextArea = ({
7648
7650
  id,
7649
7651
  value,
@@ -7684,7 +7686,6 @@ var TextArea = ({
7684
7686
  };
7685
7687
  const hasErrorMessage = !!errorMessage;
7686
7688
  const hasMessage = hasErrorMessage || !!tip;
7687
- const hasLabel = !!label;
7688
7689
  const tipId = derivativeIdGenerator(uniqueId, "tip");
7689
7690
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
7690
7691
  const characterCounterId = derivativeIdGenerator(
@@ -7693,18 +7694,9 @@ var TextArea = ({
7693
7694
  );
7694
7695
  const showRequiredStyling = required || !!ariaRequired;
7695
7696
  const inputWidth = getInputWidth(width);
7696
- return /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)("div", { className: cn(className, Input_default.container), style: { ...style }, children: [
7697
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
7698
- Label,
7699
- {
7700
- showRequiredStyling,
7701
- htmlFor: uniqueId,
7702
- className: Input_default.label,
7703
- readOnly,
7704
- children: label
7705
- }
7706
- ),
7707
- /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
7697
+ return /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)("div", { className: cn(className, Input_default.container), style: { ...style }, children: [
7698
+ renderLabel({ label, htmlFor: uniqueId, readOnly, showRequiredStyling }),
7699
+ /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
7708
7700
  Box,
7709
7701
  {
7710
7702
  as: "textarea",
@@ -7737,7 +7729,7 @@ var TextArea = ({
7737
7729
  ...rest
7738
7730
  }
7739
7731
  ),
7740
- /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
7732
+ /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(
7741
7733
  Box,
7742
7734
  {
7743
7735
  display: "flex",
@@ -7762,7 +7754,7 @@ TextArea.displayName = "TextArea";
7762
7754
  var getIconSize = (layout) => layout === "vertical" ? "large" : "medium";
7763
7755
 
7764
7756
  // src/components/Feedback/CommentComponent.tsx
7765
- var import_jsx_runtime251 = require("react/jsx-runtime");
7757
+ var import_jsx_runtime252 = require("react/jsx-runtime");
7766
7758
  var CommentComponent = ({
7767
7759
  layout,
7768
7760
  rating,
@@ -7776,9 +7768,9 @@ var CommentComponent = ({
7776
7768
  handleFeedbackTextChange
7777
7769
  }) => {
7778
7770
  const { t } = useTranslation();
7779
- return /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(VStack, { gap: "x1", children: [
7780
- /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)("span", { className: Feedback_default["rating-submitted-title"], children: [
7781
- /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
7771
+ return /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(VStack, { gap: "x1", children: [
7772
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)("span", { className: Feedback_default["rating-submitted-title"], children: [
7773
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
7782
7774
  Icon,
7783
7775
  {
7784
7776
  icon: rating === "positive" ? ThumbUpFilledIcon : ThumbDownFilledIcon,
@@ -7786,12 +7778,12 @@ var CommentComponent = ({
7786
7778
  iconSize: getIconSize(layout)
7787
7779
  }
7788
7780
  ),
7789
- /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(Paragraph, { children: [
7781
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(Paragraph, { children: [
7790
7782
  ratingSubmittedTitle,
7791
7783
  " "
7792
7784
  ] })
7793
7785
  ] }),
7794
- /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
7786
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
7795
7787
  TextArea,
7796
7788
  {
7797
7789
  value: feedbackText,
@@ -7800,7 +7792,7 @@ var CommentComponent = ({
7800
7792
  tip: textAreaTip
7801
7793
  }
7802
7794
  ),
7803
- /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
7795
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
7804
7796
  Button,
7805
7797
  {
7806
7798
  purpose: "secondary",
@@ -7833,7 +7825,7 @@ var Tooltip_default = {
7833
7825
  };
7834
7826
 
7835
7827
  // src/components/Tooltip/Tooltip.tsx
7836
- var import_jsx_runtime252 = require("react/jsx-runtime");
7828
+ var import_jsx_runtime253 = require("react/jsx-runtime");
7837
7829
  var Tooltip = ({
7838
7830
  text,
7839
7831
  placement = "bottom",
@@ -7924,7 +7916,7 @@ var Tooltip = ({
7924
7916
  );
7925
7917
  const openCn = keepMounted && open && inView || isTransientlyMounted ? "open" : "closed";
7926
7918
  const ariaHidden = keepMounted ? !open : void 0;
7927
- return /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
7919
+ return /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
7928
7920
  "div",
7929
7921
  {
7930
7922
  ...getBaseHTMLProps(
@@ -7938,7 +7930,7 @@ var Tooltip = ({
7938
7930
  onMouseOver: combineHandlers(openTooltip, onMouseOver),
7939
7931
  children: [
7940
7932
  anchorElement,
7941
- !keepMounted && (open || hasTransitionedIn) || keepMounted ? /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
7933
+ !keepMounted && (open || hasTransitionedIn) || keepMounted ? /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
7942
7934
  Paper,
7943
7935
  {
7944
7936
  id: uniqueTooltipId,
@@ -7956,15 +7948,15 @@ var Tooltip = ({
7956
7948
  ),
7957
7949
  children: [
7958
7950
  text,
7959
- /* @__PURE__ */ (0, import_jsx_runtime252.jsx)("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)("svg", { width: "36", height: "9", children: [
7960
- /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
7951
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)("svg", { width: "36", height: "9", children: [
7952
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
7961
7953
  "path",
7962
7954
  {
7963
7955
  d: "M16.586 6.586L10 0h16.154a.373.373 0 00-.263.11l-6.477 6.476a2 2 0 01-2.828 0z",
7964
7956
  className: Tooltip_default["svg-arrow__background"]
7965
7957
  }
7966
7958
  ),
7967
- /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
7959
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
7968
7960
  "path",
7969
7961
  {
7970
7962
  fillRule: "evenodd",
@@ -7984,7 +7976,7 @@ var Tooltip = ({
7984
7976
  Tooltip.displayName = "Tooltip";
7985
7977
 
7986
7978
  // src/components/Feedback/RatingComponent.tsx
7987
- var import_jsx_runtime253 = require("react/jsx-runtime");
7979
+ var import_jsx_runtime254 = require("react/jsx-runtime");
7988
7980
  var RatingComponent = ({
7989
7981
  layout,
7990
7982
  ratingLabel,
@@ -7994,7 +7986,7 @@ var RatingComponent = ({
7994
7986
  handleRatingChange
7995
7987
  }) => {
7996
7988
  const { t } = useTranslation();
7997
- const button = (rating, layout2, tooltip) => /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
7989
+ const button = (rating, layout2, tooltip) => /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
7998
7990
  InlineIconButton,
7999
7991
  {
8000
7992
  "aria-label": tooltip,
@@ -8004,7 +7996,7 @@ var RatingComponent = ({
8004
7996
  color: "icon-medium"
8005
7997
  }
8006
7998
  );
8007
- return /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
7999
+ return /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(
8008
8000
  "div",
8009
8001
  {
8010
8002
  className: cn(
@@ -8012,10 +8004,10 @@ var RatingComponent = ({
8012
8004
  Feedback_default[`rating-container--${layout}`]
8013
8005
  ),
8014
8006
  children: [
8015
- /* @__PURE__ */ (0, import_jsx_runtime253.jsx)("h2", { className: typographyStyles_default["label-medium"], children: ratingLabel }),
8016
- loading ? /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Spinner, { tooltip: t(texts11.uploadingFeedback) }) : /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(HStack, { gap: "x1", children: [
8017
- /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Tooltip, { text: thumbUpTooltip, children: button("positive", layout, thumbUpTooltip) }),
8018
- /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)("div", { children: button("negative", layout, thumbDownTooltip) }) })
8007
+ /* @__PURE__ */ (0, import_jsx_runtime254.jsx)("h2", { className: typographyStyles_default["label-medium"], children: ratingLabel }),
8008
+ loading ? /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Spinner, { tooltip: t(texts11.uploadingFeedback) }) : /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(HStack, { gap: "x1", children: [
8009
+ /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Tooltip, { text: thumbUpTooltip, children: button("positive", layout, thumbUpTooltip) }),
8010
+ /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ (0, import_jsx_runtime254.jsx)("div", { children: button("negative", layout, thumbDownTooltip) }) })
8019
8011
  ] })
8020
8012
  ]
8021
8013
  }
@@ -8031,7 +8023,7 @@ var texts11 = createTexts({
8031
8023
  });
8032
8024
 
8033
8025
  // src/components/Feedback/Feedback.tsx
8034
- var import_jsx_runtime254 = require("react/jsx-runtime");
8026
+ var import_jsx_runtime255 = require("react/jsx-runtime");
8035
8027
  var Feedback = ({
8036
8028
  layout = "vertical",
8037
8029
  ratingLabel,
@@ -8086,7 +8078,7 @@ var Feedback = ({
8086
8078
  if (isSubmittedProp === void 0) setIsFeedbackSubmitted(true);
8087
8079
  };
8088
8080
  if (rating === null && !isFeedbackSubmitted) {
8089
- return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
8081
+ return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
8090
8082
  RatingComponent,
8091
8083
  {
8092
8084
  layout,
@@ -8099,7 +8091,7 @@ var Feedback = ({
8099
8091
  );
8100
8092
  }
8101
8093
  if (!feedbackTextAreaExcluded && !isFeedbackSubmitted) {
8102
- return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
8094
+ return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
8103
8095
  CommentComponent,
8104
8096
  {
8105
8097
  layout,
@@ -8115,7 +8107,7 @@ var Feedback = ({
8115
8107
  }
8116
8108
  );
8117
8109
  }
8118
- return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Paragraph, { children: tSubmittedTitle });
8110
+ return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(Paragraph, { children: tSubmittedTitle });
8119
8111
  };
8120
8112
  var texts12 = createTexts({
8121
8113
  ratingQuestion: {
@@ -8160,13 +8152,13 @@ var texts12 = createTexts({
8160
8152
  var container = "Fieldset_container";
8161
8153
 
8162
8154
  // src/components/Fieldset/Fieldset.tsx
8163
- var import_jsx_runtime255 = require("react/jsx-runtime");
8155
+ var import_jsx_runtime256 = require("react/jsx-runtime");
8164
8156
  var Fieldset = ({
8165
8157
  id,
8166
8158
  className,
8167
8159
  htmlProps,
8168
8160
  ...rest
8169
- }) => /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
8161
+ }) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
8170
8162
  "fieldset",
8171
8163
  {
8172
8164
  ...getBaseHTMLProps(id, cn(className, container), htmlProps, rest)
@@ -8175,27 +8167,27 @@ var Fieldset = ({
8175
8167
  Fieldset.displayName = "Fieldset";
8176
8168
 
8177
8169
  // src/components/Fieldset/FieldsetGroup.tsx
8178
- var import_jsx_runtime256 = require("react/jsx-runtime");
8170
+ var import_jsx_runtime257 = require("react/jsx-runtime");
8179
8171
  var FieldsetGroup = ({
8180
8172
  id,
8181
8173
  className,
8182
8174
  htmlProps,
8183
8175
  ...rest
8184
- }) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(VStack, { gap: "x1.5", ...getBaseHTMLProps(id, className, htmlProps, rest) });
8176
+ }) => /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(VStack, { gap: "x1.5", ...getBaseHTMLProps(id, className, htmlProps, rest) });
8185
8177
  FieldsetGroup.displayName = "FieldsetGroup";
8186
8178
 
8187
8179
  // src/components/FileUploader/FileUploader.tsx
8188
8180
  var import_react59 = require("react");
8189
8181
 
8190
8182
  // src/components/FileUploader/ErrorList.tsx
8191
- var import_jsx_runtime257 = require("react/jsx-runtime");
8183
+ var import_jsx_runtime258 = require("react/jsx-runtime");
8192
8184
  var ErrorList = (props) => {
8193
8185
  const { errors } = props;
8194
8186
  if (errors.length < 1) {
8195
8187
  return null;
8196
8188
  }
8197
8189
  if (errors.length === 1) {
8198
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
8190
+ return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
8199
8191
  InputMessage,
8200
8192
  {
8201
8193
  id: errors[0].id,
@@ -8204,8 +8196,8 @@ var ErrorList = (props) => {
8204
8196
  }
8205
8197
  );
8206
8198
  }
8207
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(StylelessList, { children: errors.map(({ id, message }) => {
8208
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
8199
+ return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(StylelessList, { children: errors.map(({ id, message }) => {
8200
+ return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
8209
8201
  InputMessage,
8210
8202
  {
8211
8203
  id,
@@ -8230,7 +8222,7 @@ var FileUploader_default = {
8230
8222
  };
8231
8223
 
8232
8224
  // src/components/FileUploader/File.tsx
8233
- var import_jsx_runtime258 = require("react/jsx-runtime");
8225
+ var import_jsx_runtime259 = require("react/jsx-runtime");
8234
8226
  var File = (props) => {
8235
8227
  const { t } = useTranslation();
8236
8228
  const { parentId, index, file: stateFile, removeFile, isValid } = props;
@@ -8238,8 +8230,8 @@ var File = (props) => {
8238
8230
  id: derivativeIdGenerator(parentId, `file-${index}-error-${errorIndex}`),
8239
8231
  message: e
8240
8232
  }));
8241
- return /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)("li", { children: [
8242
- /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(
8233
+ return /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)("li", { children: [
8234
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
8243
8235
  Paper,
8244
8236
  {
8245
8237
  display: "flex",
@@ -8252,21 +8244,21 @@ var File = (props) => {
8252
8244
  background: "surface-subtle",
8253
8245
  className: cn(!isValid && FileUploader_default["file--invalid"]),
8254
8246
  children: [
8255
- /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
8247
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
8256
8248
  "span",
8257
8249
  {
8258
8250
  className: cn(FileUploader_default.file__name, typographyStyles_default["body-medium"]),
8259
8251
  children: stateFile.file.name
8260
8252
  }
8261
8253
  ),
8262
- /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
8254
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
8263
8255
  Icon,
8264
8256
  {
8265
8257
  icon: isValid ? CheckCircledIcon : ErrorIcon,
8266
8258
  className: FileUploader_default[`file__icon--${isValid ? "valid" : "invalid"}`]
8267
8259
  }
8268
8260
  ),
8269
- /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
8261
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
8270
8262
  Button,
8271
8263
  {
8272
8264
  size: "small",
@@ -8287,7 +8279,7 @@ var File = (props) => {
8287
8279
  ]
8288
8280
  }
8289
8281
  ),
8290
- /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(ErrorList, { errors: errorsList })
8282
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(ErrorList, { errors: errorsList })
8291
8283
  ] });
8292
8284
  };
8293
8285
  var texts13 = createTexts({
@@ -8588,7 +8580,7 @@ var useFileUploader = (props) => {
8588
8580
  };
8589
8581
 
8590
8582
  // src/components/FileUploader/FileUploader.tsx
8591
- var import_jsx_runtime259 = require("react/jsx-runtime");
8583
+ var import_jsx_runtime260 = require("react/jsx-runtime");
8592
8584
  var FileUploader = (props) => {
8593
8585
  const {
8594
8586
  id,
@@ -8633,12 +8625,11 @@ var FileUploader = (props) => {
8633
8625
  const hasLabel = label !== void 0;
8634
8626
  const hasTip = tip !== void 0;
8635
8627
  const hasRootErrors = rootErrors.length > 0;
8636
- const showRequiredMarker = required;
8637
8628
  const labelId = derivativeIdGenerator(uniqueId, "label");
8638
8629
  const tipId = derivativeIdGenerator(uniqueId, "tip");
8639
8630
  const buttonId = derivativeIdGenerator(uniqueId, "button");
8640
8631
  const inputId = derivativeIdGenerator(uniqueId, "input");
8641
- const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
8632
+ const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
8642
8633
  File,
8643
8634
  {
8644
8635
  parentId: uniqueId,
@@ -8653,7 +8644,7 @@ var FileUploader = (props) => {
8653
8644
  id: derivativeIdGenerator(uniqueId, `error-${index}`),
8654
8645
  message: e
8655
8646
  }));
8656
- const button = /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
8647
+ const button = /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
8657
8648
  Button,
8658
8649
  {
8659
8650
  ...getButtonProps(),
@@ -8673,7 +8664,7 @@ var FileUploader = (props) => {
8673
8664
  children: btnLabel
8674
8665
  }
8675
8666
  );
8676
- return /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
8667
+ return /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
8677
8668
  Box,
8678
8669
  {
8679
8670
  id: uniqueId,
@@ -8681,17 +8672,14 @@ var FileUploader = (props) => {
8681
8672
  width,
8682
8673
  ...rest,
8683
8674
  children: [
8684
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
8685
- Label,
8686
- {
8687
- id: labelId,
8688
- showRequiredStyling: showRequiredMarker,
8689
- htmlFor: inputId,
8690
- children: label
8691
- }
8692
- ),
8693
- hasTip && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
8694
- withDragAndDrop ? /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
8675
+ renderLabel({
8676
+ label,
8677
+ id: labelId,
8678
+ showRequiredStyling: required,
8679
+ htmlFor: inputId
8680
+ }),
8681
+ hasTip && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
8682
+ withDragAndDrop ? /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
8695
8683
  VStack,
8696
8684
  {
8697
8685
  gap: "x1",
@@ -8703,7 +8691,7 @@ var FileUploader = (props) => {
8703
8691
  isDragActive && FileUploader_default["input-container--drag-active"]
8704
8692
  ),
8705
8693
  children: [
8706
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
8694
+ /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
8707
8695
  "input",
8708
8696
  {
8709
8697
  ...getInputProps(),
@@ -8712,16 +8700,16 @@ var FileUploader = (props) => {
8712
8700
  }
8713
8701
  ),
8714
8702
  tDropAreaLabel,
8715
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(VisuallyHidden, { children: t(texts14.uploadFileWithButton) }),
8703
+ /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(VisuallyHidden, { children: t(texts14.uploadFileWithButton) }),
8716
8704
  button
8717
8705
  ]
8718
8706
  }
8719
- ) : /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)("div", { className: FileUploader_default["input-container--no-drag-zone"], children: [
8720
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("input", { ...getInputProps(), id: inputId }),
8707
+ ) : /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)("div", { className: FileUploader_default["input-container--no-drag-zone"], children: [
8708
+ /* @__PURE__ */ (0, import_jsx_runtime260.jsx)("input", { ...getInputProps(), id: inputId }),
8721
8709
  button
8722
8710
  ] }),
8723
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(ErrorList, { errors: rootErrorsList }),
8724
- !hideFileList && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(StylelessList, { children: fileListElements })
8711
+ /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(ErrorList, { errors: rootErrorsList }),
8712
+ !hideFileList && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(StylelessList, { children: fileListElements })
8725
8713
  ]
8726
8714
  }
8727
8715
  );
@@ -8753,25 +8741,25 @@ var Footer_default = {
8753
8741
  };
8754
8742
 
8755
8743
  // src/components/Footer/Footer.tsx
8756
- var import_jsx_runtime260 = require("react/jsx-runtime");
8757
- var Footer = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Contrast, { as: "footer", className: cn(className, Footer_default.container), ...rest });
8744
+ var import_jsx_runtime261 = require("react/jsx-runtime");
8745
+ var Footer = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Contrast, { as: "footer", className: cn(className, Footer_default.container), ...rest });
8758
8746
 
8759
8747
  // src/components/Footer/FooterListHeader.tsx
8760
- var import_jsx_runtime261 = require("react/jsx-runtime");
8761
- var FooterListHeader = (props) => /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Heading, { level: 2, typographyType: "headingSmall", ...props });
8748
+ var import_jsx_runtime262 = require("react/jsx-runtime");
8749
+ var FooterListHeader = (props) => /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(Heading, { level: 2, typographyType: "headingSmall", ...props });
8762
8750
 
8763
8751
  // src/components/Footer/norges_domstoler_logo.svg
8764
8752
  var norges_domstoler_logo_default = 'data:image/svg+xml,<svg width="151" height="80" viewBox="0 0 151 80" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="Logo" clip-path="url(%23clip0_18254_1882)">%0A<path id="Vector" d="M0 19.5721V0.38501H3.50998L9.51314 13.2128C10.169 14.6541 10.6734 16.1596 11.0182 17.7051H11.1848C10.9502 16.2655 10.8311 14.8093 10.8287 13.3507V0.38501H13.0174V19.5721H9.51314L3.50998 6.77306C2.84978 5.3389 2.34334 3.83883 1.99914 2.29798H1.83829C2.07013 3.73991 2.18921 5.19772 2.19446 6.65817V19.5721H0Z" fill="white"/>%0A<path id="Vector_2" d="M19.2848 17.4063C17.9942 15.7059 17.3489 13.2299 17.3489 9.97846C17.3489 6.72699 17.9942 4.25104 19.2848 2.55062C20.5716 0.850208 22.4118 0 24.8054 0C27.199 0 29.0488 0.844463 30.3548 2.53339C31.6416 4.25679 32.2907 6.70401 32.2907 10.0014C32.2907 13.2989 31.6416 15.7461 30.3548 17.4695C29.068 19.1929 27.2182 20.0029 24.8054 20.0029C22.3927 20.0029 20.5716 19.101 19.2848 17.4063ZM21.3357 4.05572C20.6003 5.31955 20.2308 7.29379 20.2269 9.97846C20.2231 12.6631 20.5927 14.6355 21.3357 15.8954C21.6776 16.4998 22.1813 16.9969 22.7902 17.3307C23.3991 17.6646 24.089 17.8221 24.7825 17.7854C25.4832 17.8288 26.182 17.6747 26.7994 17.3406C27.4169 17.0064 27.9282 16.5058 28.2752 15.8954C29.0143 14.6355 29.3858 12.6631 29.3897 9.97846C29.3935 7.29379 29.0297 5.31955 28.2982 4.05572C27.9502 3.44633 27.4387 2.9464 26.8215 2.61242C26.2042 2.27844 25.5059 2.12372 24.8054 2.16573C24.1083 2.12541 23.4138 2.28107 22.8006 2.6151C22.1874 2.94912 21.6799 3.44817 21.3357 4.05572Z" fill="white"/>%0A<path id="Vector_3" d="M48.594 15.5968C48.8111 16.9446 49.1318 18.2737 49.5534 19.5721H46.5317C46.4288 19.2619 46.3463 18.9453 46.2847 18.6243C46.21 18.2681 46.1238 17.7856 46.0376 17.1709C45.9515 16.5562 45.8825 16.1254 45.8423 15.8668C45.5513 13.9903 45.1415 12.7207 44.613 12.0581C44.0845 11.3956 43.2151 11.0681 42.0049 11.0758H39.1326V19.5721H36.4556V0.38501H43.0045C44.7968 0.38501 46.1813 0.815859 47.1693 1.6833C47.6677 2.13766 48.0592 2.69689 48.3154 3.32072C48.5717 3.94454 48.6865 4.61743 48.6515 5.29094C48.6898 5.93617 48.5867 6.58197 48.3496 7.18326C48.1125 7.78455 47.7469 8.32682 47.2785 8.7722C46.2192 9.64565 44.8691 10.0868 43.4985 10.0073H42.7287V10.1681L43.5272 10.1969C44.1017 10.2313 44.4866 10.2658 44.7566 10.2945C45.102 10.3329 45.4427 10.4061 45.7734 10.5128C46.1234 10.601 46.4442 10.7792 46.704 11.0298C46.968 11.3147 47.2064 11.6223 47.4164 11.949C47.7076 12.4082 47.9301 12.9075 48.077 13.4311C48.2551 14.0343 48.4332 14.7581 48.594 15.5968ZM39.167 9.09964H42.43C42.8862 9.13106 43.3441 9.06822 43.775 8.91503C44.2059 8.76184 44.6006 8.52159 44.9347 8.20922C45.241 7.86617 45.4755 7.4653 45.6245 7.03021C45.7734 6.59512 45.8338 6.13462 45.8021 5.67583C45.8021 3.48138 44.6781 2.38415 42.43 2.38415H39.167V9.09964Z" fill="white"/>%0A<path id="Vector_4" d="M63.8634 6.27892C63.8374 5.16647 63.448 4.0931 62.7547 3.22277C62.4351 2.8708 62.0419 2.59361 61.6031 2.41091C61.1642 2.22821 60.6904 2.14451 60.2155 2.16575C59.518 2.12433 58.8231 2.28288 58.2125 2.62276C57.6019 2.96264 57.1011 3.46974 56.7688 4.08447C56.0334 5.36744 55.6658 7.33211 55.6658 9.97848C55.6658 12.6248 56.0315 14.5933 56.763 15.884C57.0847 16.4915 57.5726 16.995 58.1697 17.3358C58.7668 17.6765 59.4484 17.8404 60.1351 17.8084C62.8581 17.8084 64.2196 15.974 64.2196 12.3051V11.6214H59.9168V9.64529H66.7415V19.572H64.5757V17.6246C64.5824 16.3521 64.6552 15.0808 64.794 13.8159H64.6274C64.4283 15.9338 63.9132 17.4867 63.0821 18.4748C62.2491 19.4629 61.0198 19.9512 59.3941 19.9512C58.4312 19.9882 57.4753 19.7741 56.6202 19.3299C55.7651 18.8857 55.0403 18.2268 54.5169 17.4178C53.3679 15.7289 52.7935 13.2759 52.7935 10.0589C52.7935 6.77296 53.4292 4.28361 54.7007 2.59086C55.9722 0.898101 57.8009 0.0344883 60.1868 2.04411e-05C61.7689 -0.0690547 63.3242 0.425623 64.5757 1.39597C65.1677 1.92295 65.6473 2.56392 65.9859 3.28052C66.3244 3.99712 66.515 4.77464 66.5461 5.56659L63.8634 6.27892Z" fill="white"/>%0A<path id="Vector_5" d="M74.824 17.5673H82.8034V19.5721H72.1125V0.38501H82.6368V2.38415H74.824V8.66305H82.0048V10.6622H74.824V17.5673Z" fill="white"/>%0A<path id="Vector_6" d="M93.0633 19.9512C90.9953 19.9512 89.3695 19.4342 88.1804 18.3887C87.5786 17.8382 87.1032 17.164 86.7869 16.4123C86.4705 15.6606 86.3207 14.8493 86.3478 14.0342L89.0421 13.2645C89.1876 16.3283 90.5491 17.8602 93.1265 17.8602C94.0518 17.9146 94.9669 17.6422 95.7116 17.0904C96.0388 16.8086 96.2951 16.4538 96.4598 16.0546C96.6245 15.6554 96.6929 15.2231 96.6595 14.7925C96.6595 13.3334 95.838 12.284 94.195 11.6445L91.0699 10.3806C88.4159 9.32362 87.0908 7.55236 87.0947 5.06684C87.054 4.35555 87.1815 3.64468 87.467 2.99192C87.7524 2.33915 88.1878 1.76287 88.7376 1.30984C90.0484 0.449859 91.5818 -0.00830078 93.1495 -0.00830078C94.7172 -0.00830078 96.2507 0.449859 97.5614 1.30984C98.139 1.77201 98.6034 2.36008 98.919 3.02914C99.2346 3.6982 99.3931 4.43055 99.3825 5.17024L96.7801 5.9113C96.6155 3.36451 95.4014 2.09302 93.138 2.09685C92.2848 2.02806 91.4347 2.26195 90.7368 2.75749C90.4435 3.00371 90.2126 3.31574 90.0629 3.66814C89.9131 4.02055 89.8488 4.40335 89.8751 4.78535C89.835 5.48253 90.0539 6.16994 90.4897 6.71555C91.0398 7.27423 91.7096 7.70051 92.4487 7.96214L95.3612 9.15703C98.042 10.2294 99.3825 12.0006 99.3825 14.4708C99.4281 15.2308 99.2996 15.9911 99.0069 16.694C98.7143 17.3968 98.2651 18.0236 97.6935 18.5266C96.602 19.4802 95.051 19.9512 93.0633 19.9512Z" fill="white"/>%0A<path id="Vector_7" d="M5.2104 35.4617C7.95251 35.4617 9.98037 36.308 11.294 38.0008C12.6076 39.6936 13.2644 42.045 13.2644 45.0552C13.2644 48.0884 12.6076 50.4456 11.294 52.1269C9.98037 53.8082 7.95251 54.6488 5.2104 54.6488H0V35.4617H5.2104ZM4.96338 52.6497C6.97401 52.6497 8.3757 52.0063 9.17995 50.7195C9.9842 49.4327 10.3863 47.5427 10.3863 45.0552C10.3863 42.5678 9.9842 40.6836 9.17995 39.3968C8.3757 38.11 6.97401 37.4666 4.96338 37.4666H2.71148V52.6497H4.96338Z" fill="white"/>%0A<path id="Vector_8" d="M18.5954 52.4831C17.3047 50.7903 16.6594 48.3144 16.6594 45.0552C16.6594 41.7961 17.3047 39.3202 18.5954 37.6274C19.8898 35.9308 21.732 35.0825 24.1217 35.0825C26.5115 35.0825 28.3613 35.927 29.6711 37.6159C30.954 39.3048 31.5955 41.7846 31.5955 45.0552C31.5955 48.3259 30.9521 50.8152 29.6653 52.5233C28.3823 54.1969 26.5364 55.0337 24.1275 55.0337C21.7185 55.0337 19.8745 54.1835 18.5954 52.4831ZM20.6807 39.1382C19.9147 40.3944 19.5317 42.3667 19.5317 45.0552C19.5317 47.7437 19.9147 49.718 20.6807 50.978C21.0254 51.5787 21.5302 52.0719 22.1388 52.4025C22.7474 52.7332 23.4359 52.8884 24.1275 52.8507C24.8279 52.8921 25.5259 52.7371 26.143 52.4031C26.7601 52.0692 27.2717 51.5697 27.6202 50.9607C28.3555 49.7084 28.7232 47.7399 28.7232 45.0552C28.7232 42.3706 28.3536 40.3982 27.6145 39.1382C27.2674 38.5293 26.7569 38.0296 26.1407 37.6956C25.5245 37.3616 24.8271 37.2067 24.1275 37.2483C23.434 37.2116 22.7441 37.3691 22.1352 37.703C21.5264 38.0368 21.0226 38.5339 20.6807 39.1382Z" fill="white"/>%0A<path id="Vector_9" d="M35.7661 54.6488V35.4617H39.7414L42.8148 46.1237C43.5024 48.2936 43.9079 50.5429 44.0212 52.8163H44.2337C44.2993 50.5424 44.6861 48.2893 45.3827 46.1237L48.5939 35.4617H52.2762V54.6488H49.6911V43.7684C49.6911 41.5223 49.7773 39.414 49.9382 37.4493H49.7486C49.4555 39.2625 49.0527 41.0562 48.5422 42.8206L45.0954 54.6603H42.6827L39.121 42.5965C38.6304 40.9144 38.2467 39.2029 37.9721 37.4723H37.7767C37.9261 39.2417 38.0008 41.2638 38.0008 43.5272V54.6488H35.7661Z" fill="white"/>%0A<path id="Vector_10" d="M63.2314 55.0338C61.171 55.0338 59.5452 54.513 58.3542 53.4713C57.7505 52.9221 57.2734 52.2482 56.9559 51.4963C56.6385 50.7444 56.4884 49.9325 56.5159 49.1168L59.1699 48.3471C59.3155 51.4109 60.6769 52.9428 63.2544 52.9428C64.1809 52.9928 65.0963 52.7208 65.8452 52.173C66.1703 51.8898 66.4248 51.5346 66.5883 51.1356C66.7519 50.7367 66.82 50.3051 66.7873 49.8751C66.7873 48.416 65.9659 47.3647 64.3229 46.7213L61.1978 45.4632C58.5476 44.3986 57.2225 42.6254 57.2225 40.1437C57.1827 39.4334 57.3107 38.7236 57.5962 38.0719C57.8816 37.4202 58.3164 36.8449 58.8655 36.3924C60.1497 35.4549 61.7185 34.9902 63.3061 35.0769C64.8757 35.0068 66.4227 35.4705 67.695 36.3924C68.2714 36.8566 68.7344 37.4461 69.0489 38.116C69.3635 38.7859 69.5213 39.5186 69.5103 40.2586L66.9022 40.9997C66.7414 38.4605 65.5273 37.1909 63.2601 37.1909C62.4071 37.1241 61.5576 37.3578 60.8589 37.8516C60.5656 38.0978 60.3347 38.4098 60.185 38.7622C60.0352 39.1146 59.9709 39.4974 59.9972 39.8794C59.9571 40.5766 60.176 41.264 60.6118 41.8096C61.1632 42.3762 61.8346 42.812 62.5765 43.085L65.535 44.2339C68.2158 45.3139 69.5563 47.0871 69.5563 49.5534C69.6008 50.3128 69.4725 51.0723 69.181 51.7748C68.8894 52.4773 68.4422 53.1045 67.8731 53.6092C66.7529 54.5743 65.2076 55.0338 63.2314 55.0338Z" fill="white"/>%0A<path id="Vector_11" d="M85.8997 35.4617V37.6274H80.6376V54.6488H77.9491V37.6274H72.687V35.4617H85.8997Z" fill="white"/>%0A<path id="Vector_12" d="M90.4092 52.4831C89.1148 50.7903 88.4675 48.3144 88.4675 45.0552C88.4675 41.7961 89.1128 39.3202 90.4035 37.6274C91.6903 35.9308 93.5305 35.0825 95.9241 35.0825C98.3177 35.0825 100.167 35.927 101.473 37.6159C102.76 39.3048 103.404 41.7942 103.404 45.084C103.404 48.3737 102.76 50.8631 101.473 52.552C100.19 54.2065 98.3445 55.0337 95.9356 55.0337C93.5267 55.0337 91.6845 54.1835 90.4092 52.4831ZM92.4888 39.1382C91.7228 40.3944 91.3399 42.3667 91.3399 45.0552C91.3399 47.7437 91.7228 49.718 92.4888 50.978C92.866 51.5576 93.382 52.034 93.9899 52.3637C94.5978 52.6934 95.2785 52.8661 95.97 52.8661C96.6616 52.8661 97.3423 52.6934 97.9502 52.3637C98.5581 52.034 99.0741 51.5576 99.4513 50.978C100.171 49.7141 100.531 47.7399 100.531 45.0552C100.531 42.3706 100.162 40.3982 99.4226 39.1382C99.0454 38.5586 98.5294 38.0823 97.9215 37.7525C97.3136 37.4228 96.6329 37.2501 95.9413 37.2501C95.2497 37.2501 94.5691 37.4228 93.9612 37.7525C93.3532 38.0823 92.8373 38.5586 92.4601 39.1382H92.4888Z" fill="white"/>%0A<path id="Vector_13" d="M107.58 35.4617H110.297V52.4831H117.915V54.6488H107.574L107.58 35.4617Z" fill="white"/>%0A<path id="Vector_14" d="M124.544 52.6497H132.518V54.6488H121.833V35.4617H132.357V37.4666H124.544V43.7397H131.725V45.7446H124.544V52.6497Z" fill="white"/>%0A<path id="Vector_15" d="M149.321 50.6735C149.534 52.022 149.855 53.3513 150.28 54.6488H147.264C147.163 54.3399 147.081 54.0253 147.017 53.7067C146.942 53.3505 146.862 52.8622 146.77 52.2533C146.678 51.6444 146.615 51.2078 146.581 50.9493C146.289 49.0688 145.878 47.7993 145.345 47.1405C144.817 46.4857 143.949 46.1525 142.743 46.1525H139.871V54.6488H137.154V35.4617H143.731C145.52 35.4617 146.908 35.8963 147.896 36.7657C148.392 37.2209 148.781 37.7807 149.034 38.4047C149.288 39.0286 149.399 39.701 149.361 40.3733C149.394 41.0129 149.289 41.6521 149.052 42.247C148.815 42.8419 148.452 43.3786 147.988 43.8201C146.93 44.6951 145.579 45.1365 144.208 45.0552H143.438V45.2218H144.231C144.805 45.2563 145.19 45.285 145.466 45.3137C145.811 45.3579 146.151 45.4309 146.483 45.532C146.833 45.6236 147.153 45.8036 147.413 46.0548C147.676 46.3411 147.914 46.6485 148.126 46.9739C148.422 47.451 148.645 47.97 148.786 48.5135C148.982 49.1167 149.154 49.8348 149.321 50.6735ZM139.894 44.1821H143.151C143.608 44.2136 144.067 44.1508 144.499 43.9976C144.931 43.8445 145.326 43.6042 145.661 43.2916C146.273 42.5923 146.583 41.6795 146.523 40.7525C146.523 38.5638 145.403 37.4666 143.151 37.4666H139.894V44.1821Z" fill="white"/>%0A<path id="Vector_16" d="M150.389 75.0137H0V80H150.389V75.0137Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_18254_1882">%0A<rect width="150.389" height="80" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';
8765
8753
 
8766
8754
  // src/components/Footer/FooterLogo.tsx
8767
- var import_jsx_runtime262 = require("react/jsx-runtime");
8755
+ var import_jsx_runtime263 = require("react/jsx-runtime");
8768
8756
  var FooterLogo = ({ hideBreakpoint, ...rest }) => {
8769
- return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
8757
+ return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
8770
8758
  Box,
8771
8759
  {
8772
8760
  hideBelow: hideBreakpoint ? hideBreakpoint : void 0,
8773
8761
  width: "fit-content",
8774
- children: /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
8762
+ children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
8775
8763
  "img",
8776
8764
  {
8777
8765
  height: 80,
@@ -8786,33 +8774,33 @@ var FooterLogo = ({ hideBreakpoint, ...rest }) => {
8786
8774
  };
8787
8775
 
8788
8776
  // src/components/Footer/FooterList.tsx
8789
- var import_jsx_runtime263 = require("react/jsx-runtime");
8790
- var FooterList = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(StylelessList, { className: cn(className, Footer_default.list), ...rest });
8777
+ var import_jsx_runtime264 = require("react/jsx-runtime");
8778
+ var FooterList = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(StylelessList, { className: cn(className, Footer_default.list), ...rest });
8791
8779
 
8792
8780
  // src/components/Footer/FooterSocialsList.tsx
8793
- var import_jsx_runtime264 = require("react/jsx-runtime");
8781
+ var import_jsx_runtime265 = require("react/jsx-runtime");
8794
8782
  var FooterSocialsList = ({
8795
8783
  className,
8796
8784
  ...rest
8797
- }) => /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(StylelessList, { className: cn(className, Footer_default["socials-list"]), ...rest });
8785
+ }) => /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(StylelessList, { className: cn(className, Footer_default["socials-list"]), ...rest });
8798
8786
 
8799
8787
  // src/components/Footer/FooterSocialsGroup.tsx
8800
- var import_jsx_runtime265 = require("react/jsx-runtime");
8788
+ var import_jsx_runtime266 = require("react/jsx-runtime");
8801
8789
  var FooterSocialsGroup = ({
8802
8790
  className,
8803
8791
  ...rest
8804
- }) => /* @__PURE__ */ (0, import_jsx_runtime265.jsx)("div", { className: cn(className, Footer_default["socials-group"]), ...rest });
8792
+ }) => /* @__PURE__ */ (0, import_jsx_runtime266.jsx)("div", { className: cn(className, Footer_default["socials-group"]), ...rest });
8805
8793
 
8806
8794
  // src/components/Footer/FooterListGroup.tsx
8807
- var import_jsx_runtime266 = require("react/jsx-runtime");
8795
+ var import_jsx_runtime267 = require("react/jsx-runtime");
8808
8796
  var FooterListGroup = ({
8809
8797
  className,
8810
8798
  ...rest
8811
- }) => /* @__PURE__ */ (0, import_jsx_runtime266.jsx)("div", { className: cn(className, Footer_default["list-group"]), ...rest });
8799
+ }) => /* @__PURE__ */ (0, import_jsx_runtime267.jsx)("div", { className: cn(className, Footer_default["list-group"]), ...rest });
8812
8800
 
8813
8801
  // src/components/Footer/FooterLeft.tsx
8814
- var import_jsx_runtime267 = require("react/jsx-runtime");
8815
- var FooterLeft = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime267.jsx)("div", { className: cn(className, Footer_default["left"]), ...rest });
8802
+ var import_jsx_runtime268 = require("react/jsx-runtime");
8803
+ var FooterLeft = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("div", { className: cn(className, Footer_default["left"]), ...rest });
8816
8804
 
8817
8805
  // src/components/GlobalMessage/GlobalMessage.tsx
8818
8806
  var import_react60 = require("react");
@@ -8829,7 +8817,7 @@ var GlobalMessage_default = {
8829
8817
  };
8830
8818
 
8831
8819
  // src/components/GlobalMessage/GlobalMessage.tsx
8832
- var import_jsx_runtime268 = require("react/jsx-runtime");
8820
+ var import_jsx_runtime269 = require("react/jsx-runtime");
8833
8821
  var icons = {
8834
8822
  info: InfoIcon,
8835
8823
  danger: ErrorIcon,
@@ -8848,7 +8836,7 @@ var GlobalMessage = ({
8848
8836
  }) => {
8849
8837
  const { t } = useTranslation();
8850
8838
  const [isClosed, setClosed] = (0, import_react60.useState)(false);
8851
- return !isClosed ? /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
8839
+ return !isClosed ? /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
8852
8840
  "div",
8853
8841
  {
8854
8842
  ...getBaseHTMLProps(
@@ -8863,17 +8851,17 @@ var GlobalMessage = ({
8863
8851
  rest
8864
8852
  ),
8865
8853
  children: [
8866
- /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
8854
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
8867
8855
  "div",
8868
8856
  {
8869
8857
  className: cn(GlobalMessage_default.content, closable && GlobalMessage_default["content--closable"]),
8870
8858
  children: [
8871
- /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(Icon, { icon: icons[purpose], className: GlobalMessage_default.icon }),
8872
- children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("span", { children: message })
8859
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(Icon, { icon: icons[purpose], className: GlobalMessage_default.icon }),
8860
+ children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("span", { children: message })
8873
8861
  ]
8874
8862
  }
8875
8863
  ),
8876
- closable && /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
8864
+ closable && /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
8877
8865
  Button,
8878
8866
  {
8879
8867
  icon: CloseIcon,
@@ -8898,12 +8886,12 @@ var InlineButton_default = {
8898
8886
  };
8899
8887
 
8900
8888
  // src/components/InlineButton/InlineButton.tsx
8901
- var import_jsx_runtime269 = require("react/jsx-runtime");
8889
+ var import_jsx_runtime270 = require("react/jsx-runtime");
8902
8890
  var InlineButton = ({
8903
8891
  className,
8904
8892
  color,
8905
8893
  ...rest
8906
- }) => /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
8894
+ }) => /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
8907
8895
  StylelessButton,
8908
8896
  {
8909
8897
  className: cn(
@@ -8922,7 +8910,7 @@ var import_react63 = require("react");
8922
8910
 
8923
8911
  // src/components/InlineEdit/InlineEdit.context.tsx
8924
8912
  var import_react61 = require("react");
8925
- var import_jsx_runtime270 = require("react/jsx-runtime");
8913
+ var import_jsx_runtime271 = require("react/jsx-runtime");
8926
8914
  var InlineEditContext = (0, import_react61.createContext)(
8927
8915
  {}
8928
8916
  );
@@ -8966,7 +8954,7 @@ var InlineEditContextProvider = (props) => {
8966
8954
  useOnKeyDown(["Enter"], () => onExitHandler());
8967
8955
  useOnKeyDown(["Escape"], () => onExitHandler());
8968
8956
  useOnClickOutside(inputRef == null ? void 0 : inputRef.current, () => onExitHandler());
8969
- return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
8957
+ return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
8970
8958
  InlineEditContext,
8971
8959
  {
8972
8960
  value: {
@@ -9001,10 +8989,10 @@ var InlineEdit_default = {
9001
8989
  };
9002
8990
 
9003
8991
  // src/components/InlineEdit/InlineEdit.utils.tsx
9004
- var import_jsx_runtime271 = require("react/jsx-runtime");
8992
+ var import_jsx_runtime272 = require("react/jsx-runtime");
9005
8993
  var inlineEditVisuallyHidden = (id, clearable) => {
9006
8994
  const { t } = useTranslation();
9007
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(VisuallyHidden, { id, children: [
8995
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)(VisuallyHidden, { id, children: [
9008
8996
  t(texts15.inlineEditInfo),
9009
8997
  !clearable && t(texts15.notClearable)
9010
8998
  ] });
@@ -9070,7 +9058,7 @@ function createClearChangeEvent(elementId) {
9070
9058
  }
9071
9059
 
9072
9060
  // src/components/InlineEdit/InlineField.tsx
9073
- var import_jsx_runtime272 = require("react/jsx-runtime");
9061
+ var import_jsx_runtime273 = require("react/jsx-runtime");
9074
9062
  function InlineField(props) {
9075
9063
  const {
9076
9064
  elementType,
@@ -9116,7 +9104,7 @@ function InlineField(props) {
9116
9104
  const cnArgs = [hasErrorState, !isEditing && !hideIcon];
9117
9105
  const iconSize = "small";
9118
9106
  function makeIcon(icon, className2) {
9119
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
9107
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
9120
9108
  Icon,
9121
9109
  {
9122
9110
  iconSize,
@@ -9131,7 +9119,7 @@ function InlineField(props) {
9131
9119
  const renderElement = () => {
9132
9120
  switch (elementType) {
9133
9121
  case "input":
9134
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
9122
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
9135
9123
  "input",
9136
9124
  {
9137
9125
  ...rest,
@@ -9141,7 +9129,7 @@ function InlineField(props) {
9141
9129
  }
9142
9130
  );
9143
9131
  case "textarea":
9144
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
9132
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
9145
9133
  "textarea",
9146
9134
  {
9147
9135
  ...rest,
@@ -9151,8 +9139,8 @@ function InlineField(props) {
9151
9139
  }
9152
9140
  );
9153
9141
  case "select":
9154
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)(import_jsx_runtime272.Fragment, { children: [
9155
- /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
9142
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsxs)(import_jsx_runtime273.Fragment, { children: [
9143
+ /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
9156
9144
  "select",
9157
9145
  {
9158
9146
  ...rest,
@@ -9161,7 +9149,7 @@ function InlineField(props) {
9161
9149
  className: cn(className, ...inlineSelectCns(...cnArgs, hasValue))
9162
9150
  }
9163
9151
  ),
9164
- hasValue && emptiable && /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
9152
+ hasValue && emptiable && /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
9165
9153
  ClearButton,
9166
9154
  {
9167
9155
  "aria-label": t(commonTexts.clearSelect),
@@ -9176,8 +9164,8 @@ function InlineField(props) {
9176
9164
  return null;
9177
9165
  }
9178
9166
  };
9179
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)(Box, { position: "relative", width, children: [
9180
- /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)("div", { className: Input_default["input-group"], children: [
9167
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsxs)(Box, { position: "relative", width, children: [
9168
+ /* @__PURE__ */ (0, import_jsx_runtime273.jsxs)("div", { className: Input_default["input-group"], children: [
9181
9169
  !isEditing && !hideIcon && makeIcon(EditIcon, InlineEdit_default["edit-icon"]),
9182
9170
  renderElement()
9183
9171
  ] }),
@@ -9187,7 +9175,7 @@ function InlineField(props) {
9187
9175
  }
9188
9176
 
9189
9177
  // src/components/InlineEdit/InlineEditTextArea/InlineEditTextArea.tsx
9190
- var import_jsx_runtime273 = require("react/jsx-runtime");
9178
+ var import_jsx_runtime274 = require("react/jsx-runtime");
9191
9179
  var InlineEditTextArea = ({
9192
9180
  onSetValue,
9193
9181
  emptiable,
@@ -9200,7 +9188,7 @@ var InlineEditTextArea = ({
9200
9188
  }) => {
9201
9189
  const textareaRef = (0, import_react63.useRef)(null);
9202
9190
  const combinedRef = useCombinedRef(ref, textareaRef);
9203
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
9191
+ return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
9204
9192
  InlineEditContextProvider,
9205
9193
  {
9206
9194
  onSetValue,
@@ -9210,14 +9198,14 @@ var InlineEditTextArea = ({
9210
9198
  onFocus,
9211
9199
  onChange,
9212
9200
  onBlur,
9213
- children: /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(InlineField, { elementType: "textarea", ...rest, ref: combinedRef })
9201
+ children: /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(InlineField, { elementType: "textarea", ...rest, ref: combinedRef })
9214
9202
  }
9215
9203
  );
9216
9204
  };
9217
9205
 
9218
9206
  // src/components/InlineEdit/InlineEditInput/InlineEditInput.tsx
9219
9207
  var import_react64 = require("react");
9220
- var import_jsx_runtime274 = require("react/jsx-runtime");
9208
+ var import_jsx_runtime275 = require("react/jsx-runtime");
9221
9209
  var InlineEditInput = ({
9222
9210
  onSetValue,
9223
9211
  emptiable,
@@ -9230,7 +9218,7 @@ var InlineEditInput = ({
9230
9218
  }) => {
9231
9219
  const inputRef = (0, import_react64.useRef)(null);
9232
9220
  const combinedRef = useCombinedRef(ref, inputRef);
9233
- return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
9221
+ return /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
9234
9222
  InlineEditContextProvider,
9235
9223
  {
9236
9224
  onSetValue,
@@ -9240,14 +9228,14 @@ var InlineEditInput = ({
9240
9228
  onFocus,
9241
9229
  onChange,
9242
9230
  onBlur,
9243
- children: /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(InlineField, { elementType: "input", ...rest, ref: combinedRef })
9231
+ children: /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(InlineField, { elementType: "input", ...rest, ref: combinedRef })
9244
9232
  }
9245
9233
  );
9246
9234
  };
9247
9235
 
9248
9236
  // src/components/InlineEdit/InlineEditSelect/InlineEditSelect.tsx
9249
9237
  var import_react65 = require("react");
9250
- var import_jsx_runtime275 = require("react/jsx-runtime");
9238
+ var import_jsx_runtime276 = require("react/jsx-runtime");
9251
9239
  var InlineEditSelect = ({
9252
9240
  onSetValue,
9253
9241
  emptiable,
@@ -9260,7 +9248,7 @@ var InlineEditSelect = ({
9260
9248
  }) => {
9261
9249
  const inputRef = (0, import_react65.useRef)(null);
9262
9250
  const combinedRef = useCombinedRef(ref, inputRef);
9263
- return /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
9251
+ return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
9264
9252
  InlineEditContextProvider,
9265
9253
  {
9266
9254
  onSetValue,
@@ -9270,7 +9258,7 @@ var InlineEditSelect = ({
9270
9258
  onFocus,
9271
9259
  onChange,
9272
9260
  onBlur,
9273
- children: /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(InlineField, { elementType: "select", ...rest, ref: combinedRef })
9261
+ children: /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(InlineField, { elementType: "select", ...rest, ref: combinedRef })
9274
9262
  }
9275
9263
  );
9276
9264
  };
@@ -9292,8 +9280,8 @@ var InternalHeader_default = {
9292
9280
  };
9293
9281
 
9294
9282
  // src/components/InternalHeader/NavigationItem.tsx
9295
- var import_jsx_runtime276 = require("react/jsx-runtime");
9296
- var NavigationItem = ({ isCurrent, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
9283
+ var import_jsx_runtime277 = require("react/jsx-runtime");
9284
+ var NavigationItem = ({ isCurrent, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
9297
9285
  "a",
9298
9286
  {
9299
9287
  ...rest,
@@ -9308,7 +9296,7 @@ var NavigationItem = ({ isCurrent, ...rest }) => /* @__PURE__ */ (0, import_jsx_
9308
9296
  );
9309
9297
 
9310
9298
  // src/components/InternalHeader/InternalHeader.tsx
9311
- var import_jsx_runtime277 = require("react/jsx-runtime");
9299
+ var import_jsx_runtime278 = require("react/jsx-runtime");
9312
9300
  var import_react67 = require("react");
9313
9301
  var InternalHeader = (props) => {
9314
9302
  const {
@@ -9338,7 +9326,7 @@ var InternalHeader = (props) => {
9338
9326
  const hasContextMenuElements = !!contextMenuItems && contextMenuItems.length > 0;
9339
9327
  const hasSmallScreenBreakpoint = !!smallScreenBreakpoint;
9340
9328
  const hasNavInContextMenu = hasSmallScreenBreakpoint && hasNavigationElements;
9341
- const navigation = hasNavigationElements ? /* @__PURE__ */ (0, import_jsx_runtime277.jsx)("nav", { "aria-label": t(texts16.siteNavigation), children: /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
9329
+ const navigation = hasNavigationElements ? /* @__PURE__ */ (0, import_jsx_runtime278.jsx)("nav", { "aria-label": t(texts16.siteNavigation), children: /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
9342
9330
  ShowHide,
9343
9331
  {
9344
9332
  as: StylelessList,
@@ -9347,7 +9335,7 @@ var InternalHeader = (props) => {
9347
9335
  children: navItems.map((item, i) => {
9348
9336
  const { href, ...rest2 } = item;
9349
9337
  const isCurrent = href === currentPage;
9350
- return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)("li", { className: InternalHeader_default["nav-list__item"], children: /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
9338
+ return /* @__PURE__ */ (0, import_jsx_runtime278.jsx)("li", { className: InternalHeader_default["nav-list__item"], children: /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
9351
9339
  NavigationItem,
9352
9340
  {
9353
9341
  href,
@@ -9361,7 +9349,7 @@ var InternalHeader = (props) => {
9361
9349
  ) }) : null;
9362
9350
  const hasContextMenu = hasContextMenuElements || !!user || hasNavInContextMenu;
9363
9351
  const hasContextMenuLargeScreen = hasContextMenuElements || !!user;
9364
- return /* @__PURE__ */ (0, import_jsx_runtime277.jsxs)(
9352
+ return /* @__PURE__ */ (0, import_jsx_runtime278.jsxs)(
9365
9353
  Box,
9366
9354
  {
9367
9355
  display: "flex",
@@ -9379,7 +9367,7 @@ var InternalHeader = (props) => {
9379
9367
  rest
9380
9368
  ),
9381
9369
  children: [
9382
- /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(Typography, { typographyType: "headingSmall", bold: true, as: "span", children: applicationHref ? /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
9370
+ /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(Typography, { typographyType: "headingSmall", bold: true, as: "span", children: applicationHref ? /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
9383
9371
  "a",
9384
9372
  {
9385
9373
  href: applicationHref,
@@ -9388,16 +9376,16 @@ var InternalHeader = (props) => {
9388
9376
  children: applicationName
9389
9377
  }
9390
9378
  ) : applicationName }),
9391
- /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(Typography, { typographyType: "bodyMedium", as: "span", children: applicationDesc }),
9392
- (hasContextMenu || navigation !== null) && /* @__PURE__ */ (0, import_jsx_runtime277.jsx)("div", { className: InternalHeader_default["bar-separator"] }),
9379
+ /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(Typography, { typographyType: "bodyMedium", as: "span", children: applicationDesc }),
9380
+ (hasContextMenu || navigation !== null) && /* @__PURE__ */ (0, import_jsx_runtime278.jsx)("div", { className: InternalHeader_default["bar-separator"] }),
9393
9381
  navigation,
9394
- hasContextMenu && /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
9382
+ hasContextMenu && /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
9395
9383
  ShowHide,
9396
9384
  {
9397
9385
  showBelow: !hasContextMenuLargeScreen && hasSmallScreenBreakpoint ? smallScreenBreakpoint : void 0,
9398
9386
  className: cn(InternalHeader_default["context-menu-group"]),
9399
- children: /* @__PURE__ */ (0, import_jsx_runtime277.jsxs)(OverflowMenuGroup, { children: [
9400
- /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
9387
+ children: /* @__PURE__ */ (0, import_jsx_runtime278.jsxs)(OverflowMenuGroup, { children: [
9388
+ /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
9401
9389
  Button,
9402
9390
  {
9403
9391
  icon: hasNavInContextMenu ? MenuIcon : MoreVerticalIcon,
@@ -9405,25 +9393,25 @@ var InternalHeader = (props) => {
9405
9393
  "aria-label": t(texts16.openMenu)
9406
9394
  }
9407
9395
  ),
9408
- /* @__PURE__ */ (0, import_jsx_runtime277.jsxs)(OverflowMenu, { className: InternalHeader_default["context-menu"], children: [
9409
- user && /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(OverflowMenuList, { children: user.href ? /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(OverflowMenuLink, { icon: PersonIcon, ...user }) : /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(OverflowMenuSpan, { icon: PersonIcon, ...user }) }),
9410
- hasNavInContextMenu && /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
9396
+ /* @__PURE__ */ (0, import_jsx_runtime278.jsxs)(OverflowMenu, { className: InternalHeader_default["context-menu"], children: [
9397
+ user && /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(OverflowMenuList, { children: user.href ? /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(OverflowMenuLink, { icon: PersonIcon, ...user }) : /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(OverflowMenuSpan, { icon: PersonIcon, ...user }) }),
9398
+ hasNavInContextMenu && /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
9411
9399
  ShowHide,
9412
9400
  {
9413
9401
  as: "nav",
9414
9402
  "aria-label": t(texts16.siteNavigation),
9415
9403
  showBelow: smallScreenBreakpoint,
9416
- children: /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(OverflowMenuList, { children: navItems.map((item, i) => /* @__PURE__ */ (0, import_react67.createElement)(OverflowMenuLink, { ...item, key: `nav-${i}` })) })
9404
+ children: /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(OverflowMenuList, { children: navItems.map((item, i) => /* @__PURE__ */ (0, import_react67.createElement)(OverflowMenuLink, { ...item, key: `nav-${i}` })) })
9417
9405
  }
9418
9406
  ),
9419
- hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
9407
+ hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
9420
9408
  ShowHide,
9421
9409
  {
9422
9410
  as: OverflowMenuDivider,
9423
9411
  showBelow: smallScreenBreakpoint
9424
9412
  }
9425
9413
  ),
9426
- hasContextMenuElements && /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(OverflowMenuList, { children: contextMenuItems.map((item, i) => {
9414
+ hasContextMenuElements && /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(OverflowMenuList, { children: contextMenuItems.map((item, i) => {
9427
9415
  return item.href ? /* @__PURE__ */ (0, import_react67.createElement)(
9428
9416
  OverflowMenuLink,
9429
9417
  {
@@ -9472,7 +9460,7 @@ var List_default = {
9472
9460
  };
9473
9461
 
9474
9462
  // src/components/List/List.tsx
9475
- var import_jsx_runtime278 = require("react/jsx-runtime");
9463
+ var import_jsx_runtime279 = require("react/jsx-runtime");
9476
9464
  var List = ({
9477
9465
  listType = "unordered",
9478
9466
  typographyType = "inherit",
@@ -9483,7 +9471,7 @@ var List = ({
9483
9471
  ...rest
9484
9472
  }) => {
9485
9473
  const List2 = listType === "ordered" ? "ol" : "ul";
9486
- return /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
9474
+ return /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
9487
9475
  List2,
9488
9476
  {
9489
9477
  ...getBaseHTMLProps(id, className, htmlProps, rest),
@@ -9499,8 +9487,8 @@ var List = ({
9499
9487
  List.displayName = "List";
9500
9488
 
9501
9489
  // src/components/List/ListItem.tsx
9502
- var import_jsx_runtime279 = require("react/jsx-runtime");
9503
- var ListItem = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime279.jsx)("li", { ...rest, className: cn(className, List_default.li) });
9490
+ var import_jsx_runtime280 = require("react/jsx-runtime");
9491
+ var ListItem = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime280.jsx)("li", { ...rest, className: cn(className, List_default.li) });
9504
9492
  ListItem.displayName = "ListItem";
9505
9493
 
9506
9494
  // src/components/LocalMessage/LocalMessage.tsx
@@ -9525,7 +9513,7 @@ var LocalMessage_default = {
9525
9513
  };
9526
9514
 
9527
9515
  // src/components/LocalMessage/LocalMessage.tsx
9528
- var import_jsx_runtime280 = require("react/jsx-runtime");
9516
+ var import_jsx_runtime281 = require("react/jsx-runtime");
9529
9517
  var icons2 = {
9530
9518
  info: InfoIcon,
9531
9519
  danger: ErrorIcon,
@@ -9549,9 +9537,9 @@ var LocalMessage = ({
9549
9537
  const { t } = useTranslation();
9550
9538
  const [isClosed, setClosed] = (0, import_react68.useState)(false);
9551
9539
  if (isClosed) {
9552
- return /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(import_jsx_runtime280.Fragment, {});
9540
+ return /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(import_jsx_runtime281.Fragment, {});
9553
9541
  }
9554
- return /* @__PURE__ */ (0, import_jsx_runtime280.jsxs)(
9542
+ return /* @__PURE__ */ (0, import_jsx_runtime281.jsxs)(
9555
9543
  Box,
9556
9544
  {
9557
9545
  ...getBaseHTMLProps(
@@ -9572,15 +9560,15 @@ var LocalMessage = ({
9572
9560
  padding: "x0.75 x0.75 x0.75 x0.5",
9573
9561
  gap: "x0.5",
9574
9562
  children: [
9575
- /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(
9563
+ /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
9576
9564
  Icon,
9577
9565
  {
9578
9566
  icon: icons2[purpose],
9579
9567
  className: cn(LocalMessage_default.icon, LocalMessage_default.container__icon)
9580
9568
  }
9581
9569
  ),
9582
- /* @__PURE__ */ (0, import_jsx_runtime280.jsx)("div", { className: LocalMessage_default.container__text, children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime280.jsx)("span", { children: message }) }),
9583
- closable && /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(
9570
+ /* @__PURE__ */ (0, import_jsx_runtime281.jsx)("div", { className: LocalMessage_default.container__text, children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime281.jsx)("span", { children: message }) }),
9571
+ closable && /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
9584
9572
  Button,
9585
9573
  {
9586
9574
  icon: CloseIcon,
@@ -9615,7 +9603,7 @@ var Modal_default = {
9615
9603
  };
9616
9604
 
9617
9605
  // src/components/Modal/Modal.tsx
9618
- var import_jsx_runtime281 = require("react/jsx-runtime");
9606
+ var import_jsx_runtime282 = require("react/jsx-runtime");
9619
9607
  var Modal = ({
9620
9608
  isOpen = false,
9621
9609
  parentElement,
@@ -9666,14 +9654,14 @@ var Modal = ({
9666
9654
  useOnKeyDown(["Escape", "Esc"], () => handleClose());
9667
9655
  const hasTransitionedIn = useMountTransition(isOpen, 200);
9668
9656
  return (isOpen || hasTransitionedIn) && portalTarget ? (0, import_react_dom4.createPortal)(
9669
- /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
9657
+ /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
9670
9658
  Backdrop,
9671
9659
  {
9672
9660
  zIndex: "modal",
9673
9661
  isMounted: isOpen && hasTransitionedIn,
9674
9662
  ref: backdropRef,
9675
9663
  onClick: onBackdropClick,
9676
- children: /* @__PURE__ */ (0, import_jsx_runtime281.jsxs)(
9664
+ children: /* @__PURE__ */ (0, import_jsx_runtime282.jsxs)(
9677
9665
  Paper,
9678
9666
  {
9679
9667
  display: "flex",
@@ -9700,7 +9688,7 @@ var Modal = ({
9700
9688
  id: modalId,
9701
9689
  elevation: 4,
9702
9690
  children: [
9703
- /* @__PURE__ */ (0, import_jsx_runtime281.jsxs)(
9691
+ /* @__PURE__ */ (0, import_jsx_runtime282.jsxs)(
9704
9692
  HStack,
9705
9693
  {
9706
9694
  paddingBlock: "0 x0.75",
@@ -9710,8 +9698,8 @@ var Modal = ({
9710
9698
  width: "100%",
9711
9699
  className: Modal_default["header-container"],
9712
9700
  children: [
9713
- !!header && /* @__PURE__ */ (0, import_jsx_runtime281.jsx)("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(Heading, { level: 2, typographyType: "headingLarge", children: header }) : header }),
9714
- onClose && /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
9701
+ !!header && /* @__PURE__ */ (0, import_jsx_runtime282.jsx)("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(Heading, { level: 2, typographyType: "headingLarge", children: header }) : header }),
9702
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
9715
9703
  Button,
9716
9704
  {
9717
9705
  size: "small",
@@ -9725,7 +9713,7 @@ var Modal = ({
9725
9713
  ]
9726
9714
  }
9727
9715
  ),
9728
- /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(Box, { display: "grid", gap: "x1", children })
9716
+ /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(Box, { display: "grid", gap: "x1", children })
9729
9717
  ]
9730
9718
  }
9731
9719
  )
@@ -9737,7 +9725,7 @@ var Modal = ({
9737
9725
  Modal.displayName = "Modal";
9738
9726
 
9739
9727
  // src/components/Modal/ModalBody.tsx
9740
- var import_jsx_runtime282 = require("react/jsx-runtime");
9728
+ var import_jsx_runtime283 = require("react/jsx-runtime");
9741
9729
  var ModalBody = ({
9742
9730
  children,
9743
9731
  id,
@@ -9747,7 +9735,7 @@ var ModalBody = ({
9747
9735
  height,
9748
9736
  ...rest
9749
9737
  }) => {
9750
- return /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
9738
+ return /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(
9751
9739
  "div",
9752
9740
  {
9753
9741
  ...getBaseHTMLProps(
@@ -9769,8 +9757,8 @@ var ModalBody = ({
9769
9757
  ModalBody.displayName = "ModalBody";
9770
9758
 
9771
9759
  // src/components/Modal/ModalActions.tsx
9772
- var import_jsx_runtime283 = require("react/jsx-runtime");
9773
- var ModalActions = (props) => /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(Box, { display: "flex", flexWrap: "wrap", gap: "x1", ...props });
9760
+ var import_jsx_runtime284 = require("react/jsx-runtime");
9761
+ var ModalActions = (props) => /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Box, { display: "flex", flexWrap: "wrap", gap: "x1", ...props });
9774
9762
  ModalActions.displayName = "ModalActions";
9775
9763
 
9776
9764
  // src/components/Pagination/Pagination.tsx
@@ -10101,7 +10089,7 @@ var getCustomStyles = (size2, hasError, hasIcon, isReadOnly) => ({
10101
10089
  // src/components/Select/SelectComponents.tsx
10102
10090
  var import_react70 = __toESM(require("react"));
10103
10091
  var import_react_select = require("react-select");
10104
- var import_jsx_runtime284 = require("react/jsx-runtime");
10092
+ var import_jsx_runtime285 = require("react/jsx-runtime");
10105
10093
  var {
10106
10094
  Option,
10107
10095
  NoOptionsMessage,
@@ -10125,30 +10113,30 @@ var getIndicatorIconSize = (componentSize) => {
10125
10113
  var DDSOption = ({
10126
10114
  componentSize,
10127
10115
  ...props
10128
- }) => /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)(Option, { ...props, children: [
10129
- props.isSelected && /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
10116
+ }) => /* @__PURE__ */ (0, import_jsx_runtime285.jsxs)(Option, { ...props, children: [
10117
+ props.isSelected && /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
10130
10118
  props.children
10131
10119
  ] });
10132
- var CustomOption = (props) => /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Option, { ...props, children: import_react70.default.createElement(props.customElement, props) });
10120
+ var CustomOption = (props) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(Option, { ...props, children: import_react70.default.createElement(props.customElement, props) });
10133
10121
  var CustomSingleValue = ({
10134
10122
  id,
10135
10123
  Element,
10136
10124
  ...props
10137
- }) => /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(SingleValue, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Element, { ...props }) : props.children }) });
10138
- var DDSNoOptionsMessage = (props) => /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(NoOptionsMessage, { ...props, children: "Ingen treff" });
10125
+ }) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(SingleValue, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime285.jsx)("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(Element, { ...props }) : props.children }) });
10126
+ var DDSNoOptionsMessage = (props) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(NoOptionsMessage, { ...props, children: "Ingen treff" });
10139
10127
  var DDSClearIndicator = ({
10140
10128
  size: size2,
10141
10129
  ...props
10142
- }) => /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(ClearIndicator, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Icon, { icon: CloseSmallIcon, iconSize: getIndicatorIconSize(size2) }) });
10143
- var DDSMultiValueRemove = (props) => /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(MultiValueRemove, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
10130
+ }) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(ClearIndicator, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(Icon, { icon: CloseSmallIcon, iconSize: getIndicatorIconSize(size2) }) });
10131
+ var DDSMultiValueRemove = (props) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(MultiValueRemove, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
10144
10132
  var DDSDropdownIndicator = (props) => {
10145
10133
  const { className, componentSize, ...rest } = props;
10146
- return /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
10134
+ return /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
10147
10135
  DropdownIndicator,
10148
10136
  {
10149
10137
  ...rest,
10150
10138
  className: cn(className, Select_default["dropdown-indicator"]),
10151
- children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
10139
+ children: /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
10152
10140
  Icon,
10153
10141
  {
10154
10142
  icon: ChevronDownIcon,
@@ -10162,7 +10150,7 @@ var DDSInput = ({
10162
10150
  ariaInvalid,
10163
10151
  ariaDescribedby,
10164
10152
  ...props
10165
- }) => /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
10153
+ }) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
10166
10154
  Input2,
10167
10155
  {
10168
10156
  ...props,
@@ -10181,7 +10169,7 @@ function DDSControl(props) {
10181
10169
  innerProps,
10182
10170
  ...rest
10183
10171
  } = props;
10184
- return /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)(
10172
+ return /* @__PURE__ */ (0, import_jsx_runtime285.jsxs)(
10185
10173
  Control,
10186
10174
  {
10187
10175
  ...rest,
@@ -10196,7 +10184,7 @@ function DDSControl(props) {
10196
10184
  readOnly && Select_default["control--readonly"]
10197
10185
  ),
10198
10186
  children: [
10199
- icon && /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
10187
+ icon && /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
10200
10188
  Icon,
10201
10189
  {
10202
10190
  icon,
@@ -10214,14 +10202,13 @@ function DDSControl(props) {
10214
10202
  }
10215
10203
 
10216
10204
  // src/components/Select/Select.tsx
10217
- var import_jsx_runtime285 = require("react/jsx-runtime");
10205
+ var import_jsx_runtime286 = require("react/jsx-runtime");
10218
10206
  function Select({
10219
10207
  id,
10220
10208
  label,
10221
10209
  componentSize = "medium",
10222
10210
  errorMessage,
10223
10211
  tip,
10224
- required,
10225
10212
  "aria-required": ariaRequired,
10226
10213
  readOnly,
10227
10214
  options,
@@ -10254,10 +10241,9 @@ function Select({
10254
10241
  const generatedId = (0, import_react71.useId)();
10255
10242
  const uniqueId = id != null ? id : `${generatedId}-select`;
10256
10243
  const singleValueId = !isMulti ? `${uniqueId}-singleValue` : void 0;
10257
- const hasLabel = !!label;
10258
10244
  const hasErrorMessage = !!errorMessage;
10259
10245
  const hasIcon = !!icon;
10260
- const showRequiredStyling = !!(required || ariaRequired);
10246
+ const showRequiredStyling = !!(rest.required || ariaRequired);
10261
10247
  const tipId = derivativeIdGenerator(uniqueId, "tip");
10262
10248
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
10263
10249
  const inputWidth = getInputWidth(
@@ -10265,7 +10251,7 @@ function Select({
10265
10251
  componentSize === "xsmall" && "var(--dds-input-default-width-xsmall)"
10266
10252
  );
10267
10253
  const customInput = (0, import_react71.useCallback)(
10268
- (props) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
10254
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
10269
10255
  DDSInput,
10270
10256
  {
10271
10257
  ...props,
@@ -10283,7 +10269,7 @@ function Select({
10283
10269
  []
10284
10270
  );
10285
10271
  const customSingleValue = (0, import_react71.useCallback)(
10286
- (props) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
10272
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
10287
10273
  CustomSingleValue,
10288
10274
  {
10289
10275
  ...props,
@@ -10294,15 +10280,15 @@ function Select({
10294
10280
  []
10295
10281
  );
10296
10282
  const customClearIndicator = (0, import_react71.useCallback)(
10297
- (props) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(DDSClearIndicator, { ...props, size: componentSize }),
10283
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(DDSClearIndicator, { ...props, size: componentSize }),
10298
10284
  [componentSize]
10299
10285
  );
10300
10286
  const customDropdownIndicator = (0, import_react71.useCallback)(
10301
- (props) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(DDSDropdownIndicator, { ...props, componentSize }),
10287
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(DDSDropdownIndicator, { ...props, componentSize }),
10302
10288
  [componentSize]
10303
10289
  );
10304
10290
  const customControl = (0, import_react71.useCallback)(
10305
- (props) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
10291
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
10306
10292
  DDSControl,
10307
10293
  {
10308
10294
  ...props,
@@ -10317,9 +10303,9 @@ function Select({
10317
10303
  const customOptionComponent = (0, import_react71.useCallback)(
10318
10304
  (props) => {
10319
10305
  if (customOptionElement) {
10320
- return /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(CustomOption, { ...props, customElement: customOptionElement });
10306
+ return /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(CustomOption, { ...props, customElement: customOptionElement });
10321
10307
  } else {
10322
- return /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(DDSOption, { ...props, componentSize });
10308
+ return /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(DDSOption, { ...props, componentSize });
10323
10309
  }
10324
10310
  },
10325
10311
  [customOptionElement, componentSize]
@@ -10359,12 +10345,11 @@ function Select({
10359
10345
  Control: customControl
10360
10346
  },
10361
10347
  "aria-invalid": hasErrorMessage ? true : void 0,
10362
- required,
10363
10348
  onKeyDown: readOnlyKeyDownHandler("select", readOnly, onKeyDown),
10364
10349
  openMenuOnClick: readOnly ? false : openMenuOnClick ? openMenuOnClick : void 0,
10365
10350
  ...rest
10366
10351
  };
10367
- return /* @__PURE__ */ (0, import_jsx_runtime285.jsxs)(
10352
+ return /* @__PURE__ */ (0, import_jsx_runtime286.jsxs)(
10368
10353
  Box,
10369
10354
  {
10370
10355
  width: inputWidth,
@@ -10377,17 +10362,13 @@ function Select({
10377
10362
  ),
10378
10363
  style,
10379
10364
  children: [
10380
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
10381
- Label,
10382
- {
10383
- htmlFor: uniqueId,
10384
- showRequiredStyling,
10385
- className: Input_default.label,
10386
- readOnly,
10387
- children: label
10388
- }
10389
- ),
10390
- /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(import_react_select2.default, { ...reactSelectProps, ref }),
10365
+ renderLabel({
10366
+ label,
10367
+ htmlFor: uniqueId,
10368
+ showRequiredStyling,
10369
+ readOnly
10370
+ }),
10371
+ /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(import_react_select2.default, { ...reactSelectProps, ref }),
10391
10372
  renderInputMessage(tip, tipId, errorMessage, errorMessageId)
10392
10373
  ]
10393
10374
  }
@@ -10414,7 +10395,7 @@ var NativeSelect_default = {
10414
10395
  };
10415
10396
 
10416
10397
  // src/components/Select/NativeSelect/NativeSelect.tsx
10417
- var import_jsx_runtime286 = require("react/jsx-runtime");
10398
+ var import_jsx_runtime287 = require("react/jsx-runtime");
10418
10399
  var NativeSelect = ({
10419
10400
  ref,
10420
10401
  id,
@@ -10462,7 +10443,6 @@ var NativeSelect = ({
10462
10443
  const uniqueId = id != null ? id : `${generatedId}-native-select`;
10463
10444
  const hasErrorMessage = !!errorMessage;
10464
10445
  const hasTip = !!tip;
10465
- const hasLabel = !!label;
10466
10446
  const tipId = derivativeIdGenerator(uniqueId, "tip");
10467
10447
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
10468
10448
  const showRequiredStyling = !!(required || ariaRequired);
@@ -10481,19 +10461,15 @@ var NativeSelect = ({
10481
10461
  };
10482
10462
  const iconSize = componentSize === "medium" ? "medium" : "small";
10483
10463
  const showClearButton = clearable && hasValue && !readOnly && !rest.disabled;
10484
- return /* @__PURE__ */ (0, import_jsx_runtime286.jsxs)("div", { className, style, children: [
10485
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
10486
- Label,
10487
- {
10488
- className: Input_default.label,
10489
- htmlFor: uniqueId,
10490
- showRequiredStyling,
10491
- readOnly,
10492
- children: label
10493
- }
10494
- ),
10495
- /* @__PURE__ */ (0, import_jsx_runtime286.jsxs)(Box, { position: "relative", width: inputWidth, children: [
10496
- /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
10464
+ return /* @__PURE__ */ (0, import_jsx_runtime287.jsxs)("div", { className, style, children: [
10465
+ renderLabel({
10466
+ label,
10467
+ htmlFor: uniqueId,
10468
+ showRequiredStyling,
10469
+ readOnly
10470
+ }),
10471
+ /* @__PURE__ */ (0, import_jsx_runtime287.jsxs)(Box, { position: "relative", width: inputWidth, children: [
10472
+ /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10497
10473
  "select",
10498
10474
  {
10499
10475
  ref: useCombinedRef(ref, selectRef),
@@ -10527,7 +10503,7 @@ var NativeSelect = ({
10527
10503
  children
10528
10504
  }
10529
10505
  ),
10530
- showClearButton && /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
10506
+ showClearButton && /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10531
10507
  ClearButton,
10532
10508
  {
10533
10509
  "aria-label": t(commonTexts.clearSelect),
@@ -10536,7 +10512,7 @@ var NativeSelect = ({
10536
10512
  className: NativeSelect_default[`clear-button--${iconSize}`]
10537
10513
  }
10538
10514
  ),
10539
- !multiple && /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
10515
+ !multiple && /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10540
10516
  Icon,
10541
10517
  {
10542
10518
  icon: ChevronDownIcon,
@@ -10552,14 +10528,14 @@ var NativeSelectPlaceholder = ({
10552
10528
  children = "-- Velg fra listen --",
10553
10529
  value,
10554
10530
  ...rest
10555
- }) => /* @__PURE__ */ (0, import_jsx_runtime286.jsx)("option", { value: value != null ? value : "", selected: true, ...rest, children });
10531
+ }) => /* @__PURE__ */ (0, import_jsx_runtime287.jsx)("option", { value: value != null ? value : "", selected: true, ...rest, children });
10556
10532
  NativeSelectPlaceholder.displayName = "NativeSelectPlaceholder";
10557
10533
 
10558
10534
  // src/components/Select/utils.ts
10559
10535
  var createSelectOptions = (...args) => args.map((v) => ({ label: v, value: v }));
10560
10536
 
10561
10537
  // src/components/Pagination/Pagination.tsx
10562
- var import_jsx_runtime287 = require("react/jsx-runtime");
10538
+ var import_jsx_runtime288 = require("react/jsx-runtime");
10563
10539
  var Pagination = ({
10564
10540
  itemsAmount,
10565
10541
  defaultItemsPerPage = 10,
@@ -10603,7 +10579,7 @@ var Pagination = ({
10603
10579
  };
10604
10580
  const listItems = items.length > 0 ? items.map((item, i) => {
10605
10581
  const isActive = item === activePage;
10606
- return /* @__PURE__ */ (0, import_jsx_runtime287.jsx)("li", { className: Pagination_default.list__item, children: item !== "truncator" && typeof item === "number" ? /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10582
+ return /* @__PURE__ */ (0, import_jsx_runtime288.jsx)("li", { className: Pagination_default.list__item, children: item !== "truncator" && typeof item === "number" ? /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10607
10583
  Button,
10608
10584
  {
10609
10585
  purpose: isActive ? "primary" : "secondary",
@@ -10614,7 +10590,7 @@ var Pagination = ({
10614
10590
  "aria-label": isActive ? t(texts17.currentPage(item)) : t(texts17.page(item)),
10615
10591
  children: item
10616
10592
  }
10617
- ) : /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10593
+ ) : /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10618
10594
  Icon,
10619
10595
  {
10620
10596
  icon: MoreHorizontalIcon,
@@ -10622,7 +10598,7 @@ var Pagination = ({
10622
10598
  }
10623
10599
  ) }, `pagination-item-${i}`);
10624
10600
  }) : void 0;
10625
- const previousPageButton = /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10601
+ const previousPageButton = /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10626
10602
  Button,
10627
10603
  {
10628
10604
  purpose: "secondary",
@@ -10634,7 +10610,7 @@ var Pagination = ({
10634
10610
  "aria-label": t(texts17.previousPage)
10635
10611
  }
10636
10612
  );
10637
- const nextPageButton = /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10613
+ const nextPageButton = /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10638
10614
  Button,
10639
10615
  {
10640
10616
  purpose: "secondary",
@@ -10648,7 +10624,7 @@ var Pagination = ({
10648
10624
  );
10649
10625
  const isOnFirstPage = activePage === 1;
10650
10626
  const isOnLastPage = activePage === pagesLength;
10651
- const navigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime287.jsxs)(
10627
+ const navigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(
10652
10628
  Box,
10653
10629
  {
10654
10630
  as: "nav",
@@ -10660,14 +10636,14 @@ var Pagination = ({
10660
10636
  ...getBaseHTMLProps(id, className, htmlProps, rest)
10661
10637
  },
10662
10638
  children: [
10663
- /* @__PURE__ */ (0, import_jsx_runtime287.jsxs)(
10639
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(
10664
10640
  ShowHide,
10665
10641
  {
10666
10642
  as: "ol",
10667
10643
  hideBelow: smallScreenBreakpoint,
10668
10644
  className: Pagination_default.list,
10669
10645
  children: [
10670
- /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10646
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10671
10647
  "li",
10672
10648
  {
10673
10649
  className: cn(
@@ -10679,7 +10655,7 @@ var Pagination = ({
10679
10655
  }
10680
10656
  ),
10681
10657
  listItems,
10682
- /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10658
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10683
10659
  "li",
10684
10660
  {
10685
10661
  className: cn(
@@ -10693,14 +10669,14 @@ var Pagination = ({
10693
10669
  ]
10694
10670
  }
10695
10671
  ),
10696
- !!smallScreenBreakpoint && /* @__PURE__ */ (0, import_jsx_runtime287.jsxs)(
10672
+ !!smallScreenBreakpoint && /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(
10697
10673
  ShowHide,
10698
10674
  {
10699
10675
  as: "ol",
10700
10676
  showBelow: smallScreenBreakpoint,
10701
10677
  className: Pagination_default.list,
10702
10678
  children: [
10703
- /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10679
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10704
10680
  "li",
10705
10681
  {
10706
10682
  className: cn(
@@ -10708,7 +10684,7 @@ var Pagination = ({
10708
10684
  isOnFirstPage && Pagination_default["list__item--hidden"]
10709
10685
  ),
10710
10686
  "aria-hidden": isOnFirstPage,
10711
- children: /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10687
+ children: /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10712
10688
  Button,
10713
10689
  {
10714
10690
  purpose: "secondary",
@@ -10722,7 +10698,7 @@ var Pagination = ({
10722
10698
  )
10723
10699
  }
10724
10700
  ),
10725
- /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10701
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10726
10702
  "li",
10727
10703
  {
10728
10704
  className: cn(
@@ -10733,7 +10709,7 @@ var Pagination = ({
10733
10709
  children: previousPageButton
10734
10710
  }
10735
10711
  ),
10736
- /* @__PURE__ */ (0, import_jsx_runtime287.jsx)("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10712
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsx)("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10737
10713
  Button,
10738
10714
  {
10739
10715
  size: "small",
@@ -10743,7 +10719,7 @@ var Pagination = ({
10743
10719
  children: activePage
10744
10720
  }
10745
10721
  ) }),
10746
- /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10722
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10747
10723
  "li",
10748
10724
  {
10749
10725
  className: cn(
@@ -10754,7 +10730,7 @@ var Pagination = ({
10754
10730
  children: nextPageButton
10755
10731
  }
10756
10732
  ),
10757
- /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10733
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10758
10734
  "li",
10759
10735
  {
10760
10736
  className: cn(
@@ -10762,7 +10738,7 @@ var Pagination = ({
10762
10738
  isOnLastPage && Pagination_default["list__item--hidden"]
10763
10739
  ),
10764
10740
  "aria-hidden": isOnLastPage,
10765
- children: /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10741
+ children: /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10766
10742
  Button,
10767
10743
  {
10768
10744
  purpose: "secondary",
@@ -10784,7 +10760,7 @@ var Pagination = ({
10784
10760
  ) : null;
10785
10761
  const activePageFirstItem = activePage === 1 ? 1 : activePage * itemsPerPage - itemsPerPage + 1;
10786
10762
  const activePageLastItem = activePage === pagesLength ? itemsAmount : activePage * itemsPerPage;
10787
- return !withCounter && !withSelect ? navigation : /* @__PURE__ */ (0, import_jsx_runtime287.jsxs)(
10763
+ return !withCounter && !withSelect ? navigation : /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(
10788
10764
  Box,
10789
10765
  {
10790
10766
  display: "flex",
@@ -10795,8 +10771,8 @@ var Pagination = ({
10795
10771
  alignItems: styleUpToBreakpoint("center", smallScreenBreakpoint),
10796
10772
  ...getBaseHTMLProps(id, className, htmlProps, rest),
10797
10773
  children: [
10798
- /* @__PURE__ */ (0, import_jsx_runtime287.jsxs)("div", { className: Pagination_default.indicators, children: [
10799
- withSelect && /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
10774
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)("div", { className: Pagination_default.indicators, children: [
10775
+ withSelect && /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
10800
10776
  Select,
10801
10777
  {
10802
10778
  options: selectOptions,
@@ -10812,7 +10788,7 @@ var Pagination = ({
10812
10788
  "aria-label": t(texts17.itemsPerPage)
10813
10789
  }
10814
10790
  ),
10815
- withCounter && /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(Paragraph, { children: t(
10791
+ withCounter && /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(Paragraph, { children: t(
10816
10792
  texts17.showsAmountOfTotalItems(
10817
10793
  activePageFirstItem,
10818
10794
  activePageLastItem,
@@ -11284,7 +11260,7 @@ var PhoneInput_default = {
11284
11260
  };
11285
11261
 
11286
11262
  // src/components/PhoneInput/PhoneInput.tsx
11287
- var import_jsx_runtime288 = require("react/jsx-runtime");
11263
+ var import_jsx_runtime289 = require("react/jsx-runtime");
11288
11264
  var prioritizedCountries = [
11289
11265
  COUNTRIES.NO,
11290
11266
  COUNTRIES.SE,
@@ -11352,7 +11328,6 @@ var PhoneInput = ({
11352
11328
  const selectId = `${uniqueId}-country-code`;
11353
11329
  const hasErrorMessage = !!errorMessage;
11354
11330
  const hasTip = !!tip;
11355
- const hasLabel = !!label;
11356
11331
  const hasMessage = hasErrorMessage || hasTip;
11357
11332
  const tipId = derivativeIdGenerator(phoneInputId, "tip");
11358
11333
  const errorMessageId = derivativeIdGenerator(phoneInputId, "errorMessage");
@@ -11422,18 +11397,14 @@ var PhoneInput = ({
11422
11397
  const showRequiredStyling = !!(required || ariaRequired);
11423
11398
  const bp = props.smallScreenBreakpoint;
11424
11399
  const widthDefault = componentSize === "xsmall" && "var(--dds-input-default-width-xsmall)";
11425
- return /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)("div", { className: cn(className, Input_default.container), style, children: [
11426
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
11427
- Label,
11428
- {
11429
- htmlFor: phoneNumberId,
11430
- showRequiredStyling,
11431
- className: Input_default.label,
11432
- readOnly,
11433
- children: label
11434
- }
11435
- ),
11436
- /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(
11400
+ return /* @__PURE__ */ (0, import_jsx_runtime289.jsxs)("div", { className: cn(className, Input_default.container), style, children: [
11401
+ renderLabel({
11402
+ label,
11403
+ htmlFor: phoneNumberId,
11404
+ showRequiredStyling,
11405
+ readOnly
11406
+ }),
11407
+ /* @__PURE__ */ (0, import_jsx_runtime289.jsxs)(
11437
11408
  Box,
11438
11409
  {
11439
11410
  display: "flex",
@@ -11446,8 +11417,8 @@ var PhoneInput = ({
11446
11417
  role: "group",
11447
11418
  "aria-label": tGroupLabel,
11448
11419
  children: [
11449
- /* @__PURE__ */ (0, import_jsx_runtime288.jsx)("label", { className: utilStyles_default["visually-hidden"], htmlFor: selectId, children: tSelectLabel }),
11450
- /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
11420
+ /* @__PURE__ */ (0, import_jsx_runtime289.jsx)("label", { className: utilStyles_default["visually-hidden"], htmlFor: selectId, children: tSelectLabel }),
11421
+ /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
11451
11422
  NativeSelect,
11452
11423
  {
11453
11424
  width: styleUpToBreakpoint(
@@ -11468,11 +11439,11 @@ var PhoneInput = ({
11468
11439
  hasTip ? tipId : void 0,
11469
11440
  ariaDescribedby
11470
11441
  ]),
11471
- children: countryOptions.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime288.jsx)("option", { value: item.countryCode, children: item.label }, index))
11442
+ children: countryOptions.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime289.jsx)("option", { value: item.countryCode, children: item.label }, index))
11472
11443
  }
11473
11444
  ),
11474
- /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(Box, { width: "100%", className: Input_default["input-group"], children: [
11475
- /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
11445
+ /* @__PURE__ */ (0, import_jsx_runtime289.jsxs)(Box, { width: "100%", className: Input_default["input-group"], children: [
11446
+ /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
11476
11447
  "span",
11477
11448
  {
11478
11449
  className: cn(
@@ -11484,7 +11455,7 @@ var PhoneInput = ({
11484
11455
  children: callingCode
11485
11456
  }
11486
11457
  ),
11487
- /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
11458
+ /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
11488
11459
  Box,
11489
11460
  {
11490
11461
  as: StatefulInput,
@@ -11555,7 +11526,7 @@ var PopoverContext = (0, import_react75.createContext)({});
11555
11526
  var usePopoverContext = () => (0, import_react75.useContext)(PopoverContext);
11556
11527
 
11557
11528
  // src/components/Popover/Popover.tsx
11558
- var import_jsx_runtime289 = require("react/jsx-runtime");
11529
+ var import_jsx_runtime290 = require("react/jsx-runtime");
11559
11530
  var Popover = ({
11560
11531
  id,
11561
11532
  header,
@@ -11643,7 +11614,7 @@ var Popover = ({
11643
11614
  });
11644
11615
  const hasTitle = !!header;
11645
11616
  const openCn = hasTransitionedIn && isOpen ? "open" : "closed";
11646
- const popover = /* @__PURE__ */ (0, import_jsx_runtime289.jsxs)(
11617
+ const popover = /* @__PURE__ */ (0, import_jsx_runtime290.jsxs)(
11647
11618
  Paper,
11648
11619
  {
11649
11620
  ...getBaseHTMLProps(
@@ -11674,15 +11645,15 @@ var Popover = ({
11674
11645
  elevation: 3,
11675
11646
  border: "border-subtle",
11676
11647
  children: [
11677
- header && /* @__PURE__ */ (0, import_jsx_runtime289.jsx)("div", { className: Popover_default.header, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(Heading, { level: 2, typographyType: "headingMedium", children: header }) : header }),
11678
- /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
11648
+ header && /* @__PURE__ */ (0, import_jsx_runtime290.jsx)("div", { className: Popover_default.header, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(Heading, { level: 2, typographyType: "headingMedium", children: header }) : header }),
11649
+ /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
11679
11650
  "div",
11680
11651
  {
11681
11652
  className: !hasTitle && withCloseButton ? Popover_default["content--closable--no-header"] : "",
11682
11653
  children
11683
11654
  }
11684
11655
  ),
11685
- withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
11656
+ withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
11686
11657
  Button,
11687
11658
  {
11688
11659
  icon: CloseIcon,
@@ -11702,7 +11673,7 @@ Popover.displayName = "Popover";
11702
11673
 
11703
11674
  // src/components/Popover/PopoverGroup.tsx
11704
11675
  var import_react77 = require("react");
11705
- var import_jsx_runtime290 = require("react/jsx-runtime");
11676
+ var import_jsx_runtime291 = require("react/jsx-runtime");
11706
11677
  var PopoverGroup = ({
11707
11678
  isOpen: propIsOpen,
11708
11679
  setIsOpen: propSetIsOpen,
@@ -11763,7 +11734,7 @@ var PopoverGroup = ({
11763
11734
  ref: combinedAnchorRef
11764
11735
  }) : child);
11765
11736
  });
11766
- return /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
11737
+ return /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(
11767
11738
  PopoverContext,
11768
11739
  {
11769
11740
  value: {
@@ -11814,7 +11785,7 @@ var ProgressTracker_default = {
11814
11785
 
11815
11786
  // src/components/ProgressTracker/ProgressTrackerItem.tsx
11816
11787
  var import_react79 = require("react");
11817
- var import_jsx_runtime291 = require("react/jsx-runtime");
11788
+ var import_jsx_runtime292 = require("react/jsx-runtime");
11818
11789
  var toItemState = (active, completed, disabled) => {
11819
11790
  if (disabled) {
11820
11791
  return "disabled";
@@ -11857,10 +11828,10 @@ var ProgressTrackerItem = (props) => {
11857
11828
  };
11858
11829
  const stepNumberContent = (0, import_react79.useMemo)(() => {
11859
11830
  if (completed) {
11860
- return /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(Icon, { icon: CheckIcon, iconSize: "small" });
11831
+ return /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(Icon, { icon: CheckIcon, iconSize: "small" });
11861
11832
  }
11862
11833
  if (icon !== void 0) {
11863
- return /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(Icon, { icon, iconSize: "small" });
11834
+ return /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(Icon, { icon, iconSize: "small" });
11864
11835
  }
11865
11836
  return index + 1;
11866
11837
  }, [completed, icon, index]);
@@ -11869,8 +11840,8 @@ var ProgressTrackerItem = (props) => {
11869
11840
  if (active) return "text-action-resting";
11870
11841
  }
11871
11842
  const isInactiveLink = disabled || active;
11872
- const stepContent = /* @__PURE__ */ (0, import_jsx_runtime291.jsxs)(import_jsx_runtime291.Fragment, { children: [
11873
- /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(
11843
+ const stepContent = /* @__PURE__ */ (0, import_jsx_runtime292.jsxs)(import_jsx_runtime292.Fragment, { children: [
11844
+ /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
11874
11845
  Box,
11875
11846
  {
11876
11847
  display: "flex",
@@ -11885,7 +11856,7 @@ var ProgressTrackerItem = (props) => {
11885
11856
  children: stepNumberContent
11886
11857
  }
11887
11858
  ),
11888
- /* @__PURE__ */ (0, import_jsx_runtime291.jsxs)(
11859
+ /* @__PURE__ */ (0, import_jsx_runtime292.jsxs)(
11889
11860
  Typography,
11890
11861
  {
11891
11862
  as: "div",
@@ -11896,21 +11867,21 @@ var ProgressTrackerItem = (props) => {
11896
11867
  ),
11897
11868
  color: getTextColor2(),
11898
11869
  children: [
11899
- /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(VisuallyHidden, { children: t(texts19.stepTextBefore(index + 1)) }),
11870
+ /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(VisuallyHidden, { children: t(texts19.stepTextBefore(index + 1)) }),
11900
11871
  children,
11901
- /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(VisuallyHidden, { children: completed ? t(texts19.completed) : t(texts19.uncompleted) })
11872
+ /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(VisuallyHidden, { children: completed ? t(texts19.completed) : t(texts19.uncompleted) })
11902
11873
  ]
11903
11874
  }
11904
11875
  )
11905
11876
  ] });
11906
- return /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(
11877
+ return /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
11907
11878
  Box,
11908
11879
  {
11909
11880
  as: "li",
11910
11881
  display: direction === "row" ? "flex" : void 0,
11911
11882
  "aria-current": active ? "step" : void 0,
11912
11883
  className: cn(ProgressTracker_default["list-item"], ProgressTracker_default[`list-item--${direction}`]),
11913
- children: handleStepChange ? /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(
11884
+ children: handleStepChange ? /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
11914
11885
  Box,
11915
11886
  {
11916
11887
  as: StylelessButton,
@@ -11933,7 +11904,7 @@ var ProgressTrackerItem = (props) => {
11933
11904
  disabled,
11934
11905
  children: stepContent
11935
11906
  }
11936
- ) : /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(
11907
+ ) : /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
11937
11908
  "div",
11938
11909
  {
11939
11910
  ...getBaseHTMLProps(
@@ -11971,7 +11942,7 @@ var texts19 = createTexts({
11971
11942
  });
11972
11943
 
11973
11944
  // src/components/ProgressTracker/ProgressTracker.tsx
11974
- var import_jsx_runtime292 = require("react/jsx-runtime");
11945
+ var import_jsx_runtime293 = require("react/jsx-runtime");
11975
11946
  var ProgressTracker = (() => {
11976
11947
  const Res = ({
11977
11948
  id,
@@ -12001,7 +11972,7 @@ var ProgressTracker = (() => {
12001
11972
  }, [children]);
12002
11973
  const isRow = direction === "row";
12003
11974
  const { "aria-label": ariaLabel } = htmlProps;
12004
- return /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
11975
+ return /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12005
11976
  ProgressTrackerContext,
12006
11977
  {
12007
11978
  value: {
@@ -12009,12 +11980,12 @@ var ProgressTracker = (() => {
12009
11980
  handleStepChange: handleChange,
12010
11981
  direction
12011
11982
  },
12012
- children: /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
11983
+ children: /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12013
11984
  "nav",
12014
11985
  {
12015
11986
  "aria-label": ariaLabel != null ? ariaLabel : t(texts20.stepProgression),
12016
11987
  ...getBaseHTMLProps(id, className, htmlProps, rest),
12017
- children: /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
11988
+ children: /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12018
11989
  Box,
12019
11990
  {
12020
11991
  as: StylelessOList,
@@ -12073,7 +12044,7 @@ var ProgressBar_default = {
12073
12044
  };
12074
12045
 
12075
12046
  // src/components/ProgressBar/ProgressBar.tsx
12076
- var import_jsx_runtime293 = require("react/jsx-runtime");
12047
+ var import_jsx_runtime294 = require("react/jsx-runtime");
12077
12048
  var PROGRESS_BAR_SIZES = createSizes("small", "medium");
12078
12049
  var ProgressBar = ({
12079
12050
  label,
@@ -12093,16 +12064,15 @@ var ProgressBar = ({
12093
12064
  const uniqueId = id != null ? id : `${generatedId}-searchInput`;
12094
12065
  const hasErrorMessage = !!errorMessage;
12095
12066
  const hasTip = !!tip;
12096
- const hasLabel = !!label;
12097
12067
  const hasValidMax = !!max && max > 0;
12098
12068
  const hasValidValue = !!value && value > 0 && (max !== void 0 && value <= max || max === void 0 && value <= 1);
12099
12069
  const tipId = derivativeIdGenerator(uniqueId, "tip");
12100
12070
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
12101
12071
  const fillPrecentage = hasValidValue && value / (max != null ? max : 1) * 100 + "%";
12102
12072
  const isIndeterminate = !hasValidValue && !hasErrorMessage;
12103
- return /* @__PURE__ */ (0, import_jsx_runtime293.jsxs)(Box, { width: "100%", className, style, children: [
12104
- hasLabel ? /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(Label, { htmlFor: uniqueId, children: label }) : void 0,
12105
- /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12073
+ return /* @__PURE__ */ (0, import_jsx_runtime294.jsxs)(Box, { width: "100%", className, style, children: [
12074
+ renderLabel({ label, htmlFor: uniqueId }),
12075
+ /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
12106
12076
  "progress",
12107
12077
  {
12108
12078
  id: uniqueId,
@@ -12118,13 +12088,13 @@ var ProgressBar = ({
12118
12088
  children: fillPrecentage
12119
12089
  }
12120
12090
  ),
12121
- /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12091
+ /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
12122
12092
  Box,
12123
12093
  {
12124
12094
  width: getInputWidth(width),
12125
12095
  height: size2 === "small" ? "x0.75" : "x1.5",
12126
12096
  className: cn(ProgressBar_default.progress),
12127
- children: /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12097
+ children: /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
12128
12098
  Box,
12129
12099
  {
12130
12100
  height: "100%",
@@ -12173,7 +12143,7 @@ var typographyTypes2 = {
12173
12143
 
12174
12144
  // src/components/Search/SearchSuggestionItem.tsx
12175
12145
  var import_react83 = require("react");
12176
- var import_jsx_runtime294 = require("react/jsx-runtime");
12146
+ var import_jsx_runtime295 = require("react/jsx-runtime");
12177
12147
  var SearchSuggestionItem = ({
12178
12148
  focus,
12179
12149
  className,
@@ -12188,7 +12158,7 @@ var SearchSuggestionItem = ({
12188
12158
  (_a = itemRef.current) == null ? void 0 : _a.focus();
12189
12159
  }
12190
12160
  }, [focus]);
12191
- return /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
12161
+ return /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
12192
12162
  StylelessButton,
12193
12163
  {
12194
12164
  ref: combinedRef,
@@ -12206,7 +12176,7 @@ var SearchSuggestionItem = ({
12206
12176
  SearchSuggestionItem.displayName = "SearchSuggestionItem";
12207
12177
 
12208
12178
  // src/components/Search/SearchSuggestions.tsx
12209
- var import_jsx_runtime295 = require("react/jsx-runtime");
12179
+ var import_jsx_runtime296 = require("react/jsx-runtime");
12210
12180
  var SearchSuggestions = ({
12211
12181
  id,
12212
12182
  searchId,
@@ -12226,7 +12196,7 @@ var SearchSuggestions = ({
12226
12196
  const { t } = useTranslation();
12227
12197
  const [focus] = useRoveFocus(suggestions == null ? void 0 : suggestions.length, showSuggestions);
12228
12198
  const suggestionsToRender = maxSuggestions ? suggestions == null ? void 0 : suggestions.slice(maxSuggestions) : suggestions;
12229
- return /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)(
12199
+ return /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)(
12230
12200
  Paper,
12231
12201
  {
12232
12202
  ...getBaseHTMLProps(
@@ -12250,7 +12220,7 @@ var SearchSuggestions = ({
12250
12220
  overflowY: "scroll",
12251
12221
  marginBlock: "x0.25 0",
12252
12222
  children: [
12253
- /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
12223
+ /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
12254
12224
  Box,
12255
12225
  {
12256
12226
  as: "h2",
@@ -12260,8 +12230,8 @@ var SearchSuggestions = ({
12260
12230
  children: "S\xF8keforslag"
12261
12231
  }
12262
12232
  ),
12263
- /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(StylelessList, { role: "listbox", "aria-labelledby": suggestionsHeaderId, children: suggestionsToRender.map((suggestion, index) => {
12264
- return /* @__PURE__ */ (0, import_jsx_runtime295.jsx)("li", { role: "option", children: /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
12233
+ /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(StylelessList, { role: "listbox", "aria-labelledby": suggestionsHeaderId, children: suggestionsToRender.map((suggestion, index) => {
12234
+ return /* @__PURE__ */ (0, import_jsx_runtime296.jsx)("li", { role: "option", children: /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
12265
12235
  SearchSuggestionItem,
12266
12236
  {
12267
12237
  index,
@@ -12290,7 +12260,7 @@ var texts21 = createTexts({
12290
12260
  });
12291
12261
 
12292
12262
  // src/components/Search/Search.tsx
12293
- var import_jsx_runtime296 = require("react/jsx-runtime");
12263
+ var import_jsx_runtime297 = require("react/jsx-runtime");
12294
12264
  var getIconSize2 = (size2) => {
12295
12265
  switch (size2) {
12296
12266
  case "large":
@@ -12339,7 +12309,6 @@ var Search = ({
12339
12309
  var _a;
12340
12310
  const generatedId = (0, import_react84.useId)();
12341
12311
  const uniqueId = id != null ? id : `${generatedId}-searchInput`;
12342
- const hasLabel = !!label;
12343
12312
  const tipId = derivativeIdGenerator(uniqueId, "tip");
12344
12313
  const suggestionsId = derivativeIdGenerator(uniqueId, "suggestions");
12345
12314
  const suggestionsDescriptionId = derivativeIdGenerator(
@@ -12367,14 +12336,14 @@ var Search = ({
12367
12336
  } = buttonProps != null ? buttonProps : {};
12368
12337
  const hasSuggestions = !!context.suggestions;
12369
12338
  const showSearchButton = !!buttonProps && !!onClick;
12370
- const inputGroup = /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)(
12339
+ const inputGroup = /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)(
12371
12340
  HStack,
12372
12341
  {
12373
12342
  position: "relative",
12374
12343
  width: !showSearchButton ? width : void 0,
12375
12344
  className: !showSearchButton ? className : void 0,
12376
12345
  children: [
12377
- showIcon && /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
12346
+ showIcon && /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12378
12347
  Icon,
12379
12348
  {
12380
12349
  icon: SearchIcon,
@@ -12385,7 +12354,7 @@ var Search = ({
12385
12354
  )
12386
12355
  }
12387
12356
  ),
12388
- /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
12357
+ /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12389
12358
  Box,
12390
12359
  {
12391
12360
  as: Input,
@@ -12414,8 +12383,8 @@ var Search = ({
12414
12383
  )
12415
12384
  }
12416
12385
  ),
12417
- hasSuggestions && /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)(import_jsx_runtime296.Fragment, { children: [
12418
- /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
12386
+ hasSuggestions && /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)(import_jsx_runtime297.Fragment, { children: [
12387
+ /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12419
12388
  SearchSuggestions,
12420
12389
  {
12421
12390
  id: suggestionsId,
@@ -12427,9 +12396,9 @@ var Search = ({
12427
12396
  componentSize
12428
12397
  }
12429
12398
  ),
12430
- /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(VisuallyHidden, { id: suggestionsDescriptionId, children: t(texts22.useArrowKeys) })
12399
+ /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(VisuallyHidden, { id: suggestionsDescriptionId, children: t(texts22.useArrowKeys) })
12431
12400
  ] }),
12432
- hasValue && /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
12401
+ hasValue && /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12433
12402
  ClearButton,
12434
12403
  {
12435
12404
  size: getIconSize2(componentSize),
@@ -12441,10 +12410,10 @@ var Search = ({
12441
12410
  ]
12442
12411
  }
12443
12412
  );
12444
- return /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)(VStack, { gap: "x0.125", children: [
12445
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(Label, { htmlFor: uniqueId, children: label }),
12446
- /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)("div", { children: [
12447
- showSearchButton ? /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)(
12413
+ return /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)("div", { children: [
12414
+ renderLabel({ htmlFor: uniqueId, label }),
12415
+ /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)("div", { children: [
12416
+ showSearchButton ? /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)(
12448
12417
  Grid,
12449
12418
  {
12450
12419
  className,
@@ -12456,7 +12425,7 @@ var Search = ({
12456
12425
  style,
12457
12426
  children: [
12458
12427
  inputGroup,
12459
- /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
12428
+ /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12460
12429
  Button,
12461
12430
  {
12462
12431
  size: componentSize,
@@ -12496,7 +12465,7 @@ var texts22 = createTexts({
12496
12465
 
12497
12466
  // src/components/Search/SearchAutocompleteWrapper.tsx
12498
12467
  var import_react85 = require("react");
12499
- var import_jsx_runtime297 = require("react/jsx-runtime");
12468
+ var import_jsx_runtime298 = require("react/jsx-runtime");
12500
12469
  var SearchAutocompleteWrapper = (props) => {
12501
12470
  const {
12502
12471
  value,
@@ -12572,7 +12541,7 @@ var SearchAutocompleteWrapper = (props) => {
12572
12541
  inputValue,
12573
12542
  onSugggestionClick: handleSuggestionClick
12574
12543
  };
12575
- return /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(AutocompleteSearchContext, { value: contextProps, children });
12544
+ return /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(AutocompleteSearchContext, { value: contextProps, children });
12576
12545
  };
12577
12546
  SearchAutocompleteWrapper.displayName = "SearchAutocompleteWrapper";
12578
12547
 
@@ -12588,7 +12557,7 @@ var Skeleton_default = {
12588
12557
  };
12589
12558
 
12590
12559
  // src/components/Skeleton/Skeleton.tsx
12591
- var import_jsx_runtime298 = require("react/jsx-runtime");
12560
+ var import_jsx_runtime299 = require("react/jsx-runtime");
12592
12561
  var Skeleton = ({
12593
12562
  width,
12594
12563
  height,
@@ -12598,7 +12567,7 @@ var Skeleton = ({
12598
12567
  ref,
12599
12568
  ...rest
12600
12569
  }) => {
12601
- return /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
12570
+ return /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(
12602
12571
  Box,
12603
12572
  {
12604
12573
  width,
@@ -12618,7 +12587,7 @@ var SkipToContent_default = {
12618
12587
  };
12619
12588
 
12620
12589
  // src/components/SkipToContent/SkipToContent.tsx
12621
- var import_jsx_runtime299 = require("react/jsx-runtime");
12590
+ var import_jsx_runtime300 = require("react/jsx-runtime");
12622
12591
  var SkipToContent = ({
12623
12592
  text = "Til hovedinnhold",
12624
12593
  top = 0,
@@ -12628,12 +12597,12 @@ var SkipToContent = ({
12628
12597
  ...rest
12629
12598
  }) => {
12630
12599
  const { className: htmlPropsClassName, style, ...restHtmlProps } = htmlProps;
12631
- return /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(
12600
+ return /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(
12632
12601
  Contrast,
12633
12602
  {
12634
12603
  className: cn(className, htmlPropsClassName, SkipToContent_default.wrapper),
12635
12604
  style: { ...style, top },
12636
- children: /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(Link, { ...getBaseHTMLProps(id, restHtmlProps, rest), children: text })
12605
+ children: /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(Link, { ...getBaseHTMLProps(id, restHtmlProps, rest), children: text })
12637
12606
  }
12638
12607
  );
12639
12608
  };
@@ -12651,7 +12620,7 @@ var SplitButton_default = {
12651
12620
  };
12652
12621
 
12653
12622
  // src/components/SplitButton/SplitButton.tsx
12654
- var import_jsx_runtime300 = require("react/jsx-runtime");
12623
+ var import_jsx_runtime301 = require("react/jsx-runtime");
12655
12624
  var SplitButton = ({
12656
12625
  size: size2,
12657
12626
  primaryAction,
@@ -12666,8 +12635,8 @@ var SplitButton = ({
12666
12635
  purpose,
12667
12636
  size: size2
12668
12637
  };
12669
- return /* @__PURE__ */ (0, import_jsx_runtime300.jsxs)("div", { className: cn(className, SplitButton_default.container), ...rest, children: [
12670
- /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(
12638
+ return /* @__PURE__ */ (0, import_jsx_runtime301.jsxs)("div", { className: cn(className, SplitButton_default.container), ...rest, children: [
12639
+ /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(
12671
12640
  Button,
12672
12641
  {
12673
12642
  ...buttonStyleProps,
@@ -12676,8 +12645,8 @@ var SplitButton = ({
12676
12645
  className: SplitButton_default.main
12677
12646
  }
12678
12647
  ),
12679
- /* @__PURE__ */ (0, import_jsx_runtime300.jsxs)(OverflowMenuGroup, { isOpen, setIsOpen, children: [
12680
- /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(
12648
+ /* @__PURE__ */ (0, import_jsx_runtime301.jsxs)(OverflowMenuGroup, { isOpen, setIsOpen, children: [
12649
+ /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(
12681
12650
  Button,
12682
12651
  {
12683
12652
  ...buttonStyleProps,
@@ -12691,7 +12660,7 @@ var SplitButton = ({
12691
12660
  type: "button"
12692
12661
  }
12693
12662
  ),
12694
- /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(OverflowMenuList, { children: secondaryActions.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(OverflowMenuButton, { ...item, children: item.children }, index)) }) })
12663
+ /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(OverflowMenuList, { children: secondaryActions.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(OverflowMenuButton, { ...item, children: item.children }, index)) }) })
12695
12664
  ] })
12696
12665
  ] });
12697
12666
  };
@@ -12717,14 +12686,14 @@ var CollapsibleTableContext = (0, import_react87.createContext)({
12717
12686
  var useCollapsibleTableContext = () => (0, import_react87.useContext)(CollapsibleTableContext);
12718
12687
 
12719
12688
  // src/components/Table/normal/Body.tsx
12720
- var import_jsx_runtime301 = require("react/jsx-runtime");
12721
- var Body = (props) => /* @__PURE__ */ (0, import_jsx_runtime301.jsx)("tbody", { ...props });
12689
+ var import_jsx_runtime302 = require("react/jsx-runtime");
12690
+ var Body = (props) => /* @__PURE__ */ (0, import_jsx_runtime302.jsx)("tbody", { ...props });
12722
12691
  Body.displayName = "Table.Body";
12723
12692
 
12724
12693
  // src/components/Table/normal/Head.tsx
12725
12694
  var import_react88 = require("react");
12726
- var import_jsx_runtime302 = require("react/jsx-runtime");
12727
- var Head = ({ children, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime302.jsx)("thead", { ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(HeadContext, { value: true, children }) });
12695
+ var import_jsx_runtime303 = require("react/jsx-runtime");
12696
+ var Head = ({ children, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime303.jsx)("thead", { ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(HeadContext, { value: true, children }) });
12728
12697
  var HeadContext = (0, import_react88.createContext)(false);
12729
12698
  function useIsInTableHead() {
12730
12699
  const isInTableHead = (0, import_react88.useContext)(HeadContext);
@@ -12757,7 +12726,7 @@ var Table_default = {
12757
12726
  };
12758
12727
 
12759
12728
  // src/components/Table/normal/Cell.tsx
12760
- var import_jsx_runtime303 = require("react/jsx-runtime");
12729
+ var import_jsx_runtime304 = require("react/jsx-runtime");
12761
12730
  var Cell = ({
12762
12731
  children,
12763
12732
  type: _type,
@@ -12770,7 +12739,7 @@ var Cell = ({
12770
12739
  const type = _type != null ? _type : isInHead ? "head" : "data";
12771
12740
  const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
12772
12741
  const isComplexLayout = layout === "text and icon";
12773
- return isCollapsibleChild ? /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(
12742
+ return isCollapsibleChild ? /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(
12774
12743
  "th",
12775
12744
  {
12776
12745
  ...rest,
@@ -12779,26 +12748,26 @@ var Cell = ({
12779
12748
  !isComplexLayout && Table_default[`cell--${layout}`],
12780
12749
  Table_default["cell--head"]
12781
12750
  ),
12782
- children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime303.jsx)("div", { className: Table_default.cell__inner, children }) : children
12751
+ children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime304.jsx)("div", { className: Table_default.cell__inner, children }) : children
12783
12752
  }
12784
- ) : /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(
12753
+ ) : /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(
12785
12754
  "td",
12786
12755
  {
12787
12756
  ...rest,
12788
12757
  className: cn(className, !isComplexLayout && Table_default[`cell--${layout}`]),
12789
- children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime303.jsx)("div", { className: Table_default.cell__inner, children }) : children
12758
+ children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime304.jsx)("div", { className: Table_default.cell__inner, children }) : children
12790
12759
  }
12791
12760
  );
12792
12761
  };
12793
12762
  Cell.displayName = "Table.Cell";
12794
12763
 
12795
12764
  // src/components/Table/normal/Foot.tsx
12796
- var import_jsx_runtime304 = require("react/jsx-runtime");
12797
- var Foot = (props) => /* @__PURE__ */ (0, import_jsx_runtime304.jsx)("tfoot", { ...props });
12765
+ var import_jsx_runtime305 = require("react/jsx-runtime");
12766
+ var Foot = (props) => /* @__PURE__ */ (0, import_jsx_runtime305.jsx)("tfoot", { ...props });
12798
12767
  Foot.displayName = "Table.Foot";
12799
12768
 
12800
12769
  // src/components/Table/normal/Row.tsx
12801
- var import_jsx_runtime305 = require("react/jsx-runtime");
12770
+ var import_jsx_runtime306 = require("react/jsx-runtime");
12802
12771
  var Row = ({
12803
12772
  type: _type,
12804
12773
  mode = "normal",
@@ -12809,7 +12778,7 @@ var Row = ({
12809
12778
  }) => {
12810
12779
  const isInHeader = useIsInTableHead();
12811
12780
  const type = _type != null ? _type : isInHeader ? "head" : "body";
12812
- return /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
12781
+ return /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
12813
12782
  "tr",
12814
12783
  {
12815
12784
  className: cn(
@@ -12829,12 +12798,12 @@ var Row = ({
12829
12798
  Row.displayName = "Table.Row";
12830
12799
 
12831
12800
  // src/components/Table/normal/SortCell.tsx
12832
- var import_jsx_runtime306 = require("react/jsx-runtime");
12801
+ var import_jsx_runtime307 = require("react/jsx-runtime");
12833
12802
  var makeSortIcon = (isSorted, sortOrder) => {
12834
12803
  if (!isSorted || !sortOrder) {
12835
- return /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
12804
+ return /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
12836
12805
  }
12837
- return sortOrder === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
12806
+ return sortOrder === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
12838
12807
  };
12839
12808
  var SortCell = ({
12840
12809
  isSorted,
@@ -12844,13 +12813,13 @@ var SortCell = ({
12844
12813
  ...rest
12845
12814
  }) => {
12846
12815
  const { t } = useTranslation();
12847
- return /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
12816
+ return /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
12848
12817
  Cell,
12849
12818
  {
12850
12819
  type: "head",
12851
12820
  "aria-sort": isSorted && sortOrder ? sortOrder : void 0,
12852
12821
  ...rest,
12853
- children: /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)(
12822
+ children: /* @__PURE__ */ (0, import_jsx_runtime307.jsxs)(
12854
12823
  StylelessButton,
12855
12824
  {
12856
12825
  onClick,
@@ -12877,7 +12846,7 @@ var texts24 = createTexts({
12877
12846
  });
12878
12847
 
12879
12848
  // src/components/Table/normal/Table.tsx
12880
- var import_jsx_runtime307 = require("react/jsx-runtime");
12849
+ var import_jsx_runtime308 = require("react/jsx-runtime");
12881
12850
  var Table = ({
12882
12851
  size: size2 = "medium",
12883
12852
  stickyHeader,
@@ -12885,7 +12854,7 @@ var Table = ({
12885
12854
  className,
12886
12855
  children,
12887
12856
  ...rest
12888
- }) => /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
12857
+ }) => /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12889
12858
  "table",
12890
12859
  {
12891
12860
  ...rest,
@@ -12904,7 +12873,7 @@ Table.displayName = "Table";
12904
12873
 
12905
12874
  // src/components/Table/normal/TableWrapper.tsx
12906
12875
  var import_react89 = require("react");
12907
- var import_jsx_runtime308 = require("react/jsx-runtime");
12876
+ var import_jsx_runtime309 = require("react/jsx-runtime");
12908
12877
  var TableWrapper = ({ className, ...rest }) => {
12909
12878
  const themeContext = (0, import_react89.useContext)(ThemeContext);
12910
12879
  const container2 = themeContext == null ? void 0 : themeContext.el;
@@ -12929,7 +12898,7 @@ var TableWrapper = ({ className, ...rest }) => {
12929
12898
  window.addEventListener("resize", handleResize);
12930
12899
  return () => window.removeEventListener("resize", handleResize);
12931
12900
  });
12932
- return /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12901
+ return /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
12933
12902
  "div",
12934
12903
  {
12935
12904
  ref: wrapperRef,
@@ -12956,7 +12925,7 @@ Table2.Row = Row;
12956
12925
  Table2.Foot = Foot;
12957
12926
 
12958
12927
  // src/components/Table/collapsible/CollapsibleRow.tsx
12959
- var import_jsx_runtime309 = require("react/jsx-runtime");
12928
+ var import_jsx_runtime310 = require("react/jsx-runtime");
12960
12929
  var CollapsibleRow = ({
12961
12930
  type: _type,
12962
12931
  className,
@@ -12999,40 +12968,40 @@ var CollapsibleRow = ({
12999
12968
  const collapsedRenderedChildren = isCollapsed && collapsedHeaderValues.length > 0 ? collapsedChildren.map(function(child, index) {
13000
12969
  const id = derivativeIdGenerator(prefix2, index.toString());
13001
12970
  collapsibleIds.push(id);
13002
- return /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(import_react90.Fragment, { children: [
13003
- /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
12971
+ return /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)(import_react90.Fragment, { children: [
12972
+ /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
13004
12973
  (0, import_react90.isValidElement)(child) && (0, import_react90.cloneElement)(child, {
13005
12974
  collapsibleProps: { isCollapsibleChild: true }
13006
12975
  })
13007
12976
  ] }, `DL-${index}`);
13008
12977
  }) : null;
13009
- const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(Row, { ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
12978
+ const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(Row, { ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
13010
12979
  const definingColumnCells = childrenArray.slice().filter((column, index) => definingColumnIndex.indexOf(index) > -1).sort((a, b) => {
13011
12980
  return definingColumnIndex.indexOf(childrenArray.indexOf(a)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
13012
12981
  });
13013
12982
  const headerRow = () => {
13014
12983
  if (type !== "head" || !isCollapsed) return null;
13015
- return /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(Row, { ref, ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(import_jsx_runtime309.Fragment, { children: [
12984
+ return /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(Row, { ref, ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)(import_jsx_runtime310.Fragment, { children: [
13016
12985
  definingColumnCells,
13017
- /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(Table2.Cell, { type: "head", layout: "center", children: [
12986
+ /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)(Table2.Cell, { type: "head", layout: "center", children: [
13018
12987
  t(texts25.expand),
13019
- /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(VisuallyHidden, { children: t(texts25.row) })
12988
+ /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(VisuallyHidden, { children: t(texts25.row) })
13020
12989
  ] })
13021
12990
  ] }) });
13022
12991
  };
13023
12992
  const idList = spaceSeparatedIdListGenerator(collapsibleIds);
13024
12993
  const rowWithChevron = () => {
13025
12994
  if (type !== "body" || !isCollapsed) return null;
13026
- return /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
12995
+ return /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
13027
12996
  definingColumnCells,
13028
- /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(Table2.Cell, { children: /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
12997
+ /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(Table2.Cell, { children: /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
13029
12998
  StylelessButton,
13030
12999
  {
13031
13000
  onClick: () => setChildrenCollapsed(!childrenCollapsed),
13032
13001
  "aria-expanded": !childrenCollapsed,
13033
13002
  "aria-controls": idList,
13034
13003
  className: cn(Table_default["collapse-button"], focusable),
13035
- children: /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
13004
+ children: /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
13036
13005
  AnimatedChevronUpDown,
13037
13006
  {
13038
13007
  isUp: childrenCollapsed ? false : true,
@@ -13044,13 +13013,13 @@ var CollapsibleRow = ({
13044
13013
  ) })
13045
13014
  ] });
13046
13015
  };
13047
- return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(import_jsx_runtime309.Fragment, { children: [
13016
+ return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)(import_jsx_runtime310.Fragment, { children: [
13048
13017
  headerRow(),
13049
- type === "body" && /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(import_jsx_runtime309.Fragment, { children: [
13018
+ type === "body" && /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)(import_jsx_runtime310.Fragment, { children: [
13050
13019
  rowWithChevron(),
13051
13020
  childrenCollapsed ? null : collapsedRows
13052
13021
  ] })
13053
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(Row, { ref, ...rowProps(), children });
13022
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(Row, { ref, ...rowProps(), children });
13054
13023
  };
13055
13024
  CollapsibleRow.displayName = "CollapsibleTable.Row";
13056
13025
  var texts25 = createTexts({
@@ -13069,14 +13038,14 @@ var texts25 = createTexts({
13069
13038
  });
13070
13039
 
13071
13040
  // src/components/Table/collapsible/CollapsibleTable.tsx
13072
- var import_jsx_runtime310 = require("react/jsx-runtime");
13041
+ var import_jsx_runtime311 = require("react/jsx-runtime");
13073
13042
  var CollapsibleTable = ({
13074
13043
  isCollapsed,
13075
13044
  headerValues,
13076
13045
  definingColumnIndex = [0],
13077
13046
  ...rest
13078
13047
  }) => {
13079
- return /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
13048
+ return /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(
13080
13049
  CollapsibleTableContext,
13081
13050
  {
13082
13051
  value: {
@@ -13084,7 +13053,7 @@ var CollapsibleTable = ({
13084
13053
  headerValues,
13085
13054
  definingColumnIndex
13086
13055
  },
13087
- children: /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(Table2, { ...rest })
13056
+ children: /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(Table2, { ...rest })
13088
13057
  }
13089
13058
  );
13090
13059
  };
@@ -13130,13 +13099,13 @@ var Tabs_default = {
13130
13099
 
13131
13100
  // src/components/Tabs/TabWidthContext.tsx
13132
13101
  var import_react92 = require("react");
13133
- var import_jsx_runtime311 = require("react/jsx-runtime");
13102
+ var import_jsx_runtime312 = require("react/jsx-runtime");
13134
13103
  var TabContext = (0, import_react92.createContext)(null);
13135
13104
  function TabWidthContextProvider({
13136
13105
  children,
13137
13106
  onChangeWidths
13138
13107
  }) {
13139
- return /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(
13108
+ return /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(
13140
13109
  TabContext,
13141
13110
  {
13142
13111
  value: {
@@ -13168,7 +13137,7 @@ function useSetTabWidth(index, width) {
13168
13137
  }
13169
13138
 
13170
13139
  // src/components/Tabs/AddTabButton.tsx
13171
- var import_jsx_runtime312 = require("react/jsx-runtime");
13140
+ var import_jsx_runtime313 = require("react/jsx-runtime");
13172
13141
  var AddTabButton = ({
13173
13142
  ref,
13174
13143
  children,
@@ -13181,7 +13150,7 @@ var AddTabButton = ({
13181
13150
  const buttonRef = (0, import_react93.useRef)(null);
13182
13151
  const combinedRef = useCombinedRef(ref, buttonRef);
13183
13152
  const { tabContentDirection, size: size2 } = useTabsContext();
13184
- return /* @__PURE__ */ (0, import_jsx_runtime312.jsxs)(
13153
+ return /* @__PURE__ */ (0, import_jsx_runtime313.jsxs)(
13185
13154
  "button",
13186
13155
  {
13187
13156
  ...rest,
@@ -13194,8 +13163,8 @@ var AddTabButton = ({
13194
13163
  focus_default["focusable--inset"]
13195
13164
  ),
13196
13165
  children: [
13197
- /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(Icon, { icon: PlusIcon, iconSize: "inherit" }),
13198
- /* @__PURE__ */ (0, import_jsx_runtime312.jsx)("span", { children })
13166
+ /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(Icon, { icon: PlusIcon, iconSize: "inherit" }),
13167
+ /* @__PURE__ */ (0, import_jsx_runtime313.jsx)("span", { children })
13199
13168
  ]
13200
13169
  }
13201
13170
  );
@@ -13204,7 +13173,7 @@ AddTabButton.displayName = "AddTabButton";
13204
13173
 
13205
13174
  // src/components/Tabs/Tabs.tsx
13206
13175
  var import_react94 = require("react");
13207
- var import_jsx_runtime313 = require("react/jsx-runtime");
13176
+ var import_jsx_runtime314 = require("react/jsx-runtime");
13208
13177
  var TABS_SIZES = createSizes("small", "medium");
13209
13178
  var Tabs = ({
13210
13179
  id,
@@ -13234,7 +13203,7 @@ var Tabs = ({
13234
13203
  setActiveTab(activeTab);
13235
13204
  }
13236
13205
  }, [activeTab, thisActiveTab]);
13237
- return /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
13206
+ return /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
13238
13207
  TabsContext,
13239
13208
  {
13240
13209
  value: {
@@ -13249,7 +13218,7 @@ var Tabs = ({
13249
13218
  tabContentDirection,
13250
13219
  addTabButtonProps
13251
13220
  },
13252
- children: /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
13221
+ children: /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
13253
13222
  Box,
13254
13223
  {
13255
13224
  ...getBaseHTMLProps(uniqueId, className, htmlProps, rest),
@@ -13264,7 +13233,7 @@ Tabs.displayName = "Tabs";
13264
13233
 
13265
13234
  // src/components/Tabs/Tab.tsx
13266
13235
  var import_react95 = require("react");
13267
- var import_jsx_runtime314 = require("react/jsx-runtime");
13236
+ var import_jsx_runtime315 = require("react/jsx-runtime");
13268
13237
  var Tab = ({
13269
13238
  active = false,
13270
13239
  icon,
@@ -13306,7 +13275,7 @@ var Tab = ({
13306
13275
  handleSelect();
13307
13276
  onKeyDown == null ? void 0 : onKeyDown(e);
13308
13277
  };
13309
- return /* @__PURE__ */ (0, import_jsx_runtime314.jsxs)(
13278
+ return /* @__PURE__ */ (0, import_jsx_runtime315.jsxs)(
13310
13279
  "button",
13311
13280
  {
13312
13281
  ...getBaseHTMLProps(
@@ -13330,8 +13299,8 @@ var Tab = ({
13330
13299
  onKeyDown: handleOnKeyDown,
13331
13300
  tabIndex: focus ? 0 : -1,
13332
13301
  children: [
13333
- icon && /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(Icon, { icon, iconSize: "inherit" }),
13334
- /* @__PURE__ */ (0, import_jsx_runtime314.jsx)("span", { children })
13302
+ icon && /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(Icon, { icon, iconSize: "inherit" }),
13303
+ /* @__PURE__ */ (0, import_jsx_runtime315.jsx)("span", { children })
13335
13304
  ]
13336
13305
  }
13337
13306
  );
@@ -13340,7 +13309,7 @@ Tab.displayName = "Tab";
13340
13309
 
13341
13310
  // src/components/Tabs/TabList.tsx
13342
13311
  var import_react96 = require("react");
13343
- var import_jsx_runtime315 = require("react/jsx-runtime");
13312
+ var import_jsx_runtime316 = require("react/jsx-runtime");
13344
13313
  var TabList = ({
13345
13314
  children,
13346
13315
  id,
@@ -13398,7 +13367,7 @@ var TabList = ({
13398
13367
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
13399
13368
  ["--dds-tab-widths"]: widths.join(" ")
13400
13369
  };
13401
- return /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ (0, import_jsx_runtime315.jsxs)(
13370
+ return /* @__PURE__ */ (0, import_jsx_runtime316.jsx)(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ (0, import_jsx_runtime316.jsxs)(
13402
13371
  "div",
13403
13372
  {
13404
13373
  ...rest,
@@ -13418,7 +13387,7 @@ var TabList = ({
13418
13387
  style: { ...style, ...customWidths },
13419
13388
  children: [
13420
13389
  tabListChildren,
13421
- hasButton && /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
13390
+ hasButton && /* @__PURE__ */ (0, import_jsx_runtime316.jsx)(
13422
13391
  AddTabButton,
13423
13392
  {
13424
13393
  index: tabListChildren ? tabListChildren.length : 0,
@@ -13432,7 +13401,7 @@ var TabList = ({
13432
13401
  TabList.displayName = "TabList";
13433
13402
 
13434
13403
  // src/components/Tabs/TabPanel.tsx
13435
- var import_jsx_runtime316 = require("react/jsx-runtime");
13404
+ var import_jsx_runtime317 = require("react/jsx-runtime");
13436
13405
  var TabPanel = ({
13437
13406
  active = false,
13438
13407
  children,
@@ -13441,7 +13410,7 @@ var TabPanel = ({
13441
13410
  htmlProps,
13442
13411
  padding = "x0.25",
13443
13412
  ...rest
13444
- }) => /* @__PURE__ */ (0, import_jsx_runtime316.jsx)(
13413
+ }) => /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(
13445
13414
  Box,
13446
13415
  {
13447
13416
  padding,
@@ -13456,7 +13425,7 @@ TabPanel.displayName = "TabPanel";
13456
13425
 
13457
13426
  // src/components/Tabs/TabPanels.tsx
13458
13427
  var import_react97 = require("react");
13459
- var import_jsx_runtime317 = require("react/jsx-runtime");
13428
+ var import_jsx_runtime318 = require("react/jsx-runtime");
13460
13429
  var TabPanels = ({ children, ref, ...rest }) => {
13461
13430
  const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
13462
13431
  const combinedRef = useCombinedRef(ref, tabPanelsRef);
@@ -13471,7 +13440,7 @@ var TabPanels = ({ children, ref, ...rest }) => {
13471
13440
  }
13472
13441
  });
13473
13442
  });
13474
- return /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(Box, { ref: combinedRef, ...rest, children: panelChildren });
13443
+ return /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(Box, { ref: combinedRef, ...rest, children: panelChildren });
13475
13444
  };
13476
13445
  TabPanels.displayName = "TabPanels";
13477
13446
 
@@ -13492,7 +13461,7 @@ var Tag_default = {
13492
13461
  };
13493
13462
 
13494
13463
  // src/components/Tag/Tag.tsx
13495
- var import_jsx_runtime318 = require("react/jsx-runtime");
13464
+ var import_jsx_runtime319 = require("react/jsx-runtime");
13496
13465
  var icons3 = {
13497
13466
  info: InfoIcon,
13498
13467
  danger: ErrorIcon,
@@ -13512,7 +13481,7 @@ var Tag = ({
13512
13481
  ...rest
13513
13482
  }) => {
13514
13483
  const icon = icons3[purpose];
13515
- return /* @__PURE__ */ (0, import_jsx_runtime318.jsxs)(
13484
+ return /* @__PURE__ */ (0, import_jsx_runtime319.jsxs)(
13516
13485
  TextOverflowEllipsisWrapper,
13517
13486
  {
13518
13487
  ...getBaseHTMLProps(
@@ -13528,8 +13497,8 @@ var Tag = ({
13528
13497
  rest
13529
13498
  ),
13530
13499
  children: [
13531
- withIcon && icon && /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(Icon, { icon, iconSize: "small" }),
13532
- /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(TextOverflowEllipsisInner, { children: children != null ? children : text })
13500
+ withIcon && icon && /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(Icon, { icon, iconSize: "small" }),
13501
+ /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(TextOverflowEllipsisInner, { children: children != null ? children : text })
13533
13502
  ]
13534
13503
  }
13535
13504
  );
@@ -13559,7 +13528,7 @@ var TextInput_default = {
13559
13528
  };
13560
13529
 
13561
13530
  // src/components/TextInput/TextInput.tsx
13562
- var import_jsx_runtime319 = require("react/jsx-runtime");
13531
+ var import_jsx_runtime320 = require("react/jsx-runtime");
13563
13532
  var TextInput = ({
13564
13533
  label,
13565
13534
  disabled,
@@ -13611,7 +13580,6 @@ var TextInput = ({
13611
13580
  const uniqueId = id != null ? id : `${generatedId}-textInput`;
13612
13581
  const hasErrorMessage = !!errorMessage;
13613
13582
  const hasTip = !!tip;
13614
- const hasLabel = !!label;
13615
13583
  const hasMessage = hasErrorMessage || hasTip;
13616
13584
  const hasBottomContainer = hasErrorMessage || hasTip || !!maxLength;
13617
13585
  const hasIcon = !!icon;
@@ -13654,8 +13622,8 @@ var TextInput = ({
13654
13622
  const suffixPaddingInlineEnd = suffixLength ? `calc(var(--dds-spacing-x1) + ${suffixLength}px)` : void 0;
13655
13623
  let extendedInput = null;
13656
13624
  if (hasIcon) {
13657
- extendedInput = /* @__PURE__ */ (0, import_jsx_runtime319.jsxs)(Box, { className: Input_default["input-group"], width: inputWidth, children: [
13658
- /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
13625
+ extendedInput = /* @__PURE__ */ (0, import_jsx_runtime320.jsxs)(Box, { className: Input_default["input-group"], width: inputWidth, children: [
13626
+ /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
13659
13627
  Icon,
13660
13628
  {
13661
13629
  icon,
@@ -13666,7 +13634,7 @@ var TextInput = ({
13666
13634
  )
13667
13635
  }
13668
13636
  ),
13669
- /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
13637
+ /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
13670
13638
  StatefulInput,
13671
13639
  {
13672
13640
  className: cn(
@@ -13679,7 +13647,7 @@ var TextInput = ({
13679
13647
  )
13680
13648
  ] });
13681
13649
  } else if (hasAffix) {
13682
- extendedInput = /* @__PURE__ */ (0, import_jsx_runtime319.jsxs)(
13650
+ extendedInput = /* @__PURE__ */ (0, import_jsx_runtime320.jsxs)(
13683
13651
  Box,
13684
13652
  {
13685
13653
  position: "relative",
@@ -13687,7 +13655,7 @@ var TextInput = ({
13687
13655
  alignItems: "center",
13688
13656
  width: inputWidth,
13689
13657
  children: [
13690
- prefix2 && /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
13658
+ prefix2 && /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
13691
13659
  "span",
13692
13660
  {
13693
13661
  ref: prefixRef,
@@ -13700,7 +13668,7 @@ var TextInput = ({
13700
13668
  children: prefix2
13701
13669
  }
13702
13670
  ),
13703
- /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
13671
+ /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
13704
13672
  StatefulInput,
13705
13673
  {
13706
13674
  style: {
@@ -13711,7 +13679,7 @@ var TextInput = ({
13711
13679
  ...generalInputProps
13712
13680
  }
13713
13681
  ),
13714
- suffix && /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
13682
+ suffix && /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
13715
13683
  "span",
13716
13684
  {
13717
13685
  ref: suffixRef,
@@ -13728,7 +13696,7 @@ var TextInput = ({
13728
13696
  }
13729
13697
  );
13730
13698
  }
13731
- return /* @__PURE__ */ (0, import_jsx_runtime319.jsxs)(
13699
+ return /* @__PURE__ */ (0, import_jsx_runtime320.jsxs)(
13732
13700
  "div",
13733
13701
  {
13734
13702
  className: cn(
@@ -13740,19 +13708,9 @@ var TextInput = ({
13740
13708
  ),
13741
13709
  style,
13742
13710
  children: [
13743
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
13744
- Box,
13745
- {
13746
- as: Label,
13747
- display: "block",
13748
- htmlFor: uniqueId,
13749
- showRequiredStyling,
13750
- readOnly,
13751
- children: label
13752
- }
13753
- ),
13754
- extendedInput ? extendedInput : /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(Box, { as: StatefulInput, width: inputWidth, ...generalInputProps }),
13755
- hasBottomContainer && /* @__PURE__ */ (0, import_jsx_runtime319.jsxs)(
13711
+ renderLabel({ label, htmlFor: uniqueId, showRequiredStyling, readOnly }),
13712
+ extendedInput ? extendedInput : /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(Box, { as: StatefulInput, width: inputWidth, ...generalInputProps }),
13713
+ hasBottomContainer && /* @__PURE__ */ (0, import_jsx_runtime320.jsxs)(
13756
13714
  Box,
13757
13715
  {
13758
13716
  display: "flex",
@@ -13795,7 +13753,7 @@ var Toggle_default = {
13795
13753
  };
13796
13754
 
13797
13755
  // src/components/Toggle/Toggle.tsx
13798
- var import_jsx_runtime320 = require("react/jsx-runtime");
13756
+ var import_jsx_runtime321 = require("react/jsx-runtime");
13799
13757
  var TOGGLE_SIZES = createSizes("medium", "large");
13800
13758
  var Toggle = ({
13801
13759
  id,
@@ -13820,7 +13778,7 @@ var Toggle = ({
13820
13778
  defaultValue: defaultChecked != null ? defaultChecked : false,
13821
13779
  onChange
13822
13780
  });
13823
- return /* @__PURE__ */ (0, import_jsx_runtime320.jsxs)(
13781
+ return /* @__PURE__ */ (0, import_jsx_runtime321.jsxs)(
13824
13782
  "label",
13825
13783
  {
13826
13784
  htmlFor: uniqueId,
@@ -13832,7 +13790,7 @@ var Toggle = ({
13832
13790
  readOnly && Toggle_default["label--read-only"]
13833
13791
  ),
13834
13792
  children: [
13835
- /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
13793
+ /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(
13836
13794
  HiddenInput,
13837
13795
  {
13838
13796
  ...getBaseHTMLProps(
@@ -13855,7 +13813,7 @@ var Toggle = ({
13855
13813
  onClick: readOnlyClickHandler(readOnly || isLoading, htmlProps.onClick)
13856
13814
  }
13857
13815
  ),
13858
- /* @__PURE__ */ (0, import_jsx_runtime320.jsx)("span", { className: cn(Toggle_default.track, focus_default["focus-styled-sibling"]), children: /* @__PURE__ */ (0, import_jsx_runtime320.jsx)("span", { className: Toggle_default.thumb, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(Spinner, { size: `var(--dds-icon-size-${size2})` }) : /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
13816
+ /* @__PURE__ */ (0, import_jsx_runtime321.jsx)("span", { className: cn(Toggle_default.track, focus_default["focus-styled-sibling"]), children: /* @__PURE__ */ (0, import_jsx_runtime321.jsx)("span", { className: Toggle_default.thumb, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(Spinner, { size: `var(--dds-icon-size-${size2})` }) : /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(
13859
13817
  Icon,
13860
13818
  {
13861
13819
  className: Toggle_default.checkmark,
@@ -13863,8 +13821,8 @@ var Toggle = ({
13863
13821
  iconSize
13864
13822
  }
13865
13823
  ) }) }),
13866
- /* @__PURE__ */ (0, import_jsx_runtime320.jsxs)("span", { className: cn(readOnly && Toggle_default["labeltext--readonly"]), children: [
13867
- readOnly && /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
13824
+ /* @__PURE__ */ (0, import_jsx_runtime321.jsxs)("span", { className: cn(readOnly && Toggle_default["labeltext--readonly"]), children: [
13825
+ readOnly && /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(
13868
13826
  Icon,
13869
13827
  {
13870
13828
  icon: LockIcon,
@@ -13874,7 +13832,7 @@ var Toggle = ({
13874
13832
  ),
13875
13833
  children,
13876
13834
  " ",
13877
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(VisuallyHidden, { children: t(commonTexts.loading) })
13835
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(VisuallyHidden, { children: t(commonTexts.loading) })
13878
13836
  ] })
13879
13837
  ]
13880
13838
  }
@@ -13908,7 +13866,7 @@ var ToggleBar_default = {
13908
13866
  };
13909
13867
 
13910
13868
  // src/components/ToggleBar/ToggleBar.tsx
13911
- var import_jsx_runtime321 = require("react/jsx-runtime");
13869
+ var import_jsx_runtime322 = require("react/jsx-runtime");
13912
13870
  var ToggleBar = (props) => {
13913
13871
  const {
13914
13872
  children,
@@ -13931,7 +13889,7 @@ var ToggleBar = (props) => {
13931
13889
  (e) => onChange && onChange(e, e.target.value)
13932
13890
  );
13933
13891
  const labelId = label && `${uniqueId}-label`;
13934
- return /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(
13892
+ return /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(
13935
13893
  ToggleBarContext,
13936
13894
  {
13937
13895
  value: {
@@ -13940,7 +13898,7 @@ var ToggleBar = (props) => {
13940
13898
  name,
13941
13899
  value: groupValue
13942
13900
  },
13943
- children: /* @__PURE__ */ (0, import_jsx_runtime321.jsxs)(
13901
+ children: /* @__PURE__ */ (0, import_jsx_runtime322.jsxs)(
13944
13902
  VStack,
13945
13903
  {
13946
13904
  ...getBaseHTMLProps(id, className, htmlProps, rest),
@@ -13949,8 +13907,8 @@ var ToggleBar = (props) => {
13949
13907
  role: "radiogroup",
13950
13908
  "aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
13951
13909
  children: [
13952
- label && /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(Typography, { id: labelId, as: "span", typographyType: "labelMedium", children: label }),
13953
- /* @__PURE__ */ (0, import_jsx_runtime321.jsx)("div", { className: ToggleBar_default.bar, children })
13910
+ label && /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(Typography, { id: labelId, as: "span", typographyType: "labelMedium", children: label }),
13911
+ /* @__PURE__ */ (0, import_jsx_runtime322.jsx)("div", { className: ToggleBar_default.bar, children })
13954
13912
  ]
13955
13913
  }
13956
13914
  )
@@ -13961,7 +13919,7 @@ ToggleBar.displayName = "ToggleBar";
13961
13919
 
13962
13920
  // src/components/ToggleBar/ToggleRadio.tsx
13963
13921
  var import_react102 = require("react");
13964
- var import_jsx_runtime322 = require("react/jsx-runtime");
13922
+ var import_jsx_runtime323 = require("react/jsx-runtime");
13965
13923
  var typographyTypes3 = {
13966
13924
  large: "bodyLarge",
13967
13925
  medium: "bodyMedium",
@@ -14001,8 +13959,8 @@ var ToggleRadio = ({
14001
13959
  (_a = group == null ? void 0 : group.onChange) == null ? void 0 : _a.call(group, event);
14002
13960
  };
14003
13961
  const contentTypeCn = label ? "with-text" : "just-icon";
14004
- return /* @__PURE__ */ (0, import_jsx_runtime322.jsxs)("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
14005
- /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(
13962
+ return /* @__PURE__ */ (0, import_jsx_runtime323.jsxs)("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
13963
+ /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(
14006
13964
  HiddenInput,
14007
13965
  {
14008
13966
  ...getBaseHTMLProps(
@@ -14020,7 +13978,7 @@ var ToggleRadio = ({
14020
13978
  "aria-labelledby": ariaLabelledBy
14021
13979
  }
14022
13980
  ),
14023
- /* @__PURE__ */ (0, import_jsx_runtime322.jsxs)(
13981
+ /* @__PURE__ */ (0, import_jsx_runtime323.jsxs)(
14024
13982
  Typography,
14025
13983
  {
14026
13984
  as: "span",
@@ -14031,8 +13989,8 @@ var ToggleRadio = ({
14031
13989
  focus_default["focus-styled-sibling"]
14032
13990
  ),
14033
13991
  children: [
14034
- icon && /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(Icon, { icon, iconSize: "inherit" }),
14035
- label && /* @__PURE__ */ (0, import_jsx_runtime322.jsx)("span", { children: label })
13992
+ icon && /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(Icon, { icon, iconSize: "inherit" }),
13993
+ label && /* @__PURE__ */ (0, import_jsx_runtime323.jsx)("span", { children: label })
14036
13994
  ]
14037
13995
  }
14038
13996
  )
@@ -14052,7 +14010,7 @@ var ToggleButton_default = {
14052
14010
  };
14053
14011
 
14054
14012
  // src/components/ToggleButton/ToggleButton.tsx
14055
- var import_jsx_runtime323 = require("react/jsx-runtime");
14013
+ var import_jsx_runtime324 = require("react/jsx-runtime");
14056
14014
  var ToggleButton = ({
14057
14015
  id,
14058
14016
  label,
@@ -14065,8 +14023,8 @@ var ToggleButton = ({
14065
14023
  const generatedId = (0, import_react103.useId)();
14066
14024
  const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
14067
14025
  const hasIcon = !!icon;
14068
- return /* @__PURE__ */ (0, import_jsx_runtime323.jsxs)(Box, { as: "label", htmlFor: uniqueId, width: "fit-content", children: [
14069
- /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(
14026
+ return /* @__PURE__ */ (0, import_jsx_runtime324.jsxs)(Box, { as: "label", htmlFor: uniqueId, width: "fit-content", children: [
14027
+ /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(
14070
14028
  HiddenInput,
14071
14029
  {
14072
14030
  ...getBaseHTMLProps(
@@ -14078,7 +14036,7 @@ var ToggleButton = ({
14078
14036
  type: "checkbox"
14079
14037
  }
14080
14038
  ),
14081
- /* @__PURE__ */ (0, import_jsx_runtime323.jsxs)(
14039
+ /* @__PURE__ */ (0, import_jsx_runtime324.jsxs)(
14082
14040
  "span",
14083
14041
  {
14084
14042
  className: cn(
@@ -14089,7 +14047,7 @@ var ToggleButton = ({
14089
14047
  focus_default["focus-styled-sibling"]
14090
14048
  ),
14091
14049
  children: [
14092
- hasIcon && /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(Icon, { icon, iconSize: "inherit" }),
14050
+ hasIcon && /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(Icon, { icon, iconSize: "inherit" }),
14093
14051
  " ",
14094
14052
  label
14095
14053
  ]
@@ -14101,7 +14059,7 @@ ToggleButton.displayName = "ToggleButton";
14101
14059
 
14102
14060
  // src/components/ToggleButton/ToggleButtonGroup.tsx
14103
14061
  var import_react104 = require("react");
14104
- var import_jsx_runtime324 = require("react/jsx-runtime");
14062
+ var import_jsx_runtime325 = require("react/jsx-runtime");
14105
14063
  var ToggleButtonGroup = (props) => {
14106
14064
  const {
14107
14065
  children,
@@ -14115,16 +14073,15 @@ var ToggleButtonGroup = (props) => {
14115
14073
  } = props;
14116
14074
  const generatedId = (0, import_react104.useId)();
14117
14075
  const uniqueLabelId = labelId != null ? labelId : `${generatedId}-ToggleButtonGroupLabel`;
14118
- return /* @__PURE__ */ (0, import_jsx_runtime324.jsxs)(
14119
- VStack,
14076
+ return /* @__PURE__ */ (0, import_jsx_runtime325.jsxs)(
14077
+ "div",
14120
14078
  {
14121
- gap: "x0.5",
14122
14079
  ...getBaseHTMLProps(id, className, htmlProps, rest),
14123
14080
  role: "group",
14124
14081
  "aria-labelledby": label ? uniqueLabelId : void 0,
14125
14082
  children: [
14126
- !!label && /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(Typography, { as: "span", typographyType: "labelMedium", id: uniqueLabelId, children: label }),
14127
- /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(Box, { display: "flex", flexWrap: "wrap", gap: "x0.75", flexDirection: direction, children })
14083
+ renderGroupLabel({ label, id: uniqueLabelId }),
14084
+ /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(Box, { display: "flex", flexWrap: "wrap", gap: "x0.75", flexDirection: direction, children })
14128
14085
  ]
14129
14086
  }
14130
14087
  );