@norges-domstoler/dds-components 22.11.0 → 23.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -13,9 +13,7 @@ var typographyStyles_default = {
13
13
  "a--nested__parent": "typographyStyles_a--nested__parent",
14
14
  "a--nested__child": "typographyStyles_a--nested__child",
15
15
  "a--margins": "typographyStyles_a--margins",
16
- "a--external": "typographyStyles_a--external",
17
- svg: "typographyStyles_svg",
18
- a__icon: "typographyStyles_a__icon",
16
+ "a--with-icon": "typographyStyles_a--with-icon",
19
17
  "a--visited": "typographyStyles_a--visited",
20
18
  "body-short-xsmall": "typographyStyles_body-short-xsmall",
21
19
  "body-short-xsmall--margins": "typographyStyles_body-short-xsmall--margins",
@@ -239,7 +237,8 @@ var useFloatPosition = (arrowRef, options = {}) => {
239
237
  strategy,
240
238
  middlewareData,
241
239
  placement: actualPlacement,
242
- refs
240
+ refs,
241
+ isPositioned
243
242
  } = useFloating({
244
243
  placement,
245
244
  middleware,
@@ -247,6 +246,7 @@ var useFloatPosition = (arrowRef, options = {}) => {
247
246
  });
248
247
  return {
249
248
  refs,
249
+ isPositioned,
250
250
  styles: {
251
251
  floating: {
252
252
  position: strategy,
@@ -348,6 +348,21 @@ var TEXT_COLORS = [
348
348
  "icon-subtle",
349
349
  "icon-medium"
350
350
  ];
351
+ var ICON_COLORS = [
352
+ ...TEXT_COLORS,
353
+ "brand-primary-default",
354
+ "brand-primary-strong",
355
+ "brand-primary-medium",
356
+ "brand-primary-subtle",
357
+ "brand-secondary-default",
358
+ "brand-secondary-strong",
359
+ "brand-secondary-medium",
360
+ "brand-secondary-subtle",
361
+ "brand-tertiary-default",
362
+ "brand-tertiary-strong",
363
+ "brand-tertiary-medium",
364
+ "brand-tertiary-subtle"
365
+ ];
351
366
  var TEXT_COLOR_VALUES = TEXT_COLORS.reduce(
352
367
  (acc, key) => {
353
368
  acc[key] = `var(--dds-color-${key})`;
@@ -355,6 +370,13 @@ var TEXT_COLOR_VALUES = TEXT_COLORS.reduce(
355
370
  },
356
371
  {}
357
372
  );
373
+ var ICON_COLOR_VALUES = ICON_COLORS.reduce(
374
+ (acc, key) => {
375
+ acc[key] = `var(--dds-color-${key})`;
376
+ return acc;
377
+ },
378
+ {}
379
+ );
358
380
  var isTextColor = (value) => {
359
381
  return typeof value === "string" && TEXT_COLORS.includes(value);
360
382
  };
@@ -362,6 +384,13 @@ var getTextColor = (color) => {
362
384
  if (isTextColor(color)) return TEXT_COLOR_VALUES[color];
363
385
  return color;
364
386
  };
387
+ var isIconColor = (value) => {
388
+ return typeof value === "string" && ICON_COLORS.includes(value);
389
+ };
390
+ var getIconColor = (color) => {
391
+ if (isIconColor(color)) return ICON_COLOR_VALUES[color];
392
+ return color;
393
+ };
365
394
 
366
395
  // src/utils/combineHandlers.tsx
367
396
  var combineHandlers = (handler1, handler2) => {
@@ -552,7 +581,7 @@ import { useEffect as useEffect5 } from "react";
552
581
  function useOnClickOutside(element, handler) {
553
582
  useEffect5(() => {
554
583
  const listener = (event) => {
555
- const elements = Array.isArray(element) ? element : [element].filter(Boolean);
584
+ const elements = Array.isArray(element) ? element.map((ref) => ref == null ? void 0 : ref.current).filter((el) => Boolean(el)) : (element == null ? void 0 : element.current) ? [element.current] : [];
556
585
  const hasClickedInside = elements.some(
557
586
  (el) => el == null ? void 0 : el.contains(event.target)
558
587
  );
@@ -1052,6 +1081,7 @@ var layout_default = {
1052
1081
  "dds-a-i": "layout_dds-a-i",
1053
1082
  "dds-a-c": "layout_dds-a-c",
1054
1083
  "dds-j-i": "layout_dds-j-i",
1084
+ "dds-pl-i": "layout_dds-pl-i",
1055
1085
  "dds-j-c": "layout_dds-j-c",
1056
1086
  "dds-wrap": "layout_dds-wrap",
1057
1087
  "dds-basis": "layout_dds-basis",
@@ -1220,6 +1250,7 @@ var Box = ({
1220
1250
  alignItems,
1221
1251
  alignContent,
1222
1252
  justifyItems,
1253
+ placeItems,
1223
1254
  justifyContent,
1224
1255
  flexWrap,
1225
1256
  flexBasis,
@@ -1258,6 +1289,7 @@ var Box = ({
1258
1289
  ...getResponsiveCSSProperties(alignItems, "r", "a-i"),
1259
1290
  ...getResponsiveCSSProperties(alignContent, "r", "a-c"),
1260
1291
  ...getResponsiveCSSProperties(justifyItems, "r", "j-i"),
1292
+ ...getResponsiveCSSProperties(placeItems, "r", "pl-i"),
1261
1293
  ...getResponsiveCSSProperties(justifyContent, "r", "j-c"),
1262
1294
  ...getResponsiveCSSProperties(flexWrap, "r", "wrap"),
1263
1295
  ...getResponsiveCSSProperties(flexBasis, "r", "basis"),
@@ -1301,6 +1333,7 @@ var Box = ({
1301
1333
  alignItems && layout_default["dds-a-i"],
1302
1334
  justifyContent && layout_default["dds-j-c"],
1303
1335
  justifyItems && layout_default["dds-j-i"],
1336
+ placeItems && layout_default["dds-pl-i"],
1304
1337
  flexWrap && layout_default["dds-wrap"],
1305
1338
  flexBasis && layout_default["dds-basis"],
1306
1339
  flexFlow && layout_default["dds-flow"],
@@ -1619,7 +1652,42 @@ var commonTexts = createTexts({
1619
1652
  nn: "Innlastning p\xE5g\xE5r",
1620
1653
  en: "Loading",
1621
1654
  se: "Vie\u017E\u017Eamin"
1622
- }
1655
+ },
1656
+ nextPage: {
1657
+ nb: "Neste side",
1658
+ no: "Neste side",
1659
+ nn: "Neste side",
1660
+ en: "Next page",
1661
+ se: "Boahte siidu"
1662
+ },
1663
+ previousPage: {
1664
+ nb: "Forrige side",
1665
+ no: "Forrige side",
1666
+ nn: "F\xF8rre side",
1667
+ en: "Previous page",
1668
+ se: "Ovddit siidu"
1669
+ },
1670
+ page: (page) => ({
1671
+ nb: `Side ${page}`,
1672
+ no: `Side ${page}`,
1673
+ nn: `Side ${page}`,
1674
+ en: `Page ${page}`,
1675
+ se: `Siidu ${page}`
1676
+ }),
1677
+ currentPage: (page) => ({
1678
+ nb: `N\xE5v\xE6rende side (${page})`,
1679
+ no: `N\xE5v\xE6rende side (${page})`,
1680
+ nn: `Noverande side (${page})`,
1681
+ en: `Current page (${page})`,
1682
+ se: `D\xE1la siidu (${page})`
1683
+ }),
1684
+ pageOf: (current, max) => ({
1685
+ nb: `Side ${current} av ${max}`,
1686
+ no: `Side ${current} av ${max}`,
1687
+ nn: `Side ${current} ${max}`,
1688
+ en: `Page ${current} of ${max}`,
1689
+ se: `Siidu ${current} ${max}`
1690
+ })
1623
1691
  });
1624
1692
 
1625
1693
  // src/components/Spinner/Spinner.tsx
@@ -2078,7 +2146,7 @@ function SvgWrapper({
2078
2146
  "svg",
2079
2147
  {
2080
2148
  ...props,
2081
- fill: getTextColor(fill),
2149
+ fill: getIconColor(fill),
2082
2150
  xmlns: "http://www.w3.org/2000/svg",
2083
2151
  viewBox: `0 0 ${size} ${size}`,
2084
2152
  className: cn(className, Icon_default.svg),
@@ -3823,7 +3891,7 @@ var getColorCn = (color) => {
3823
3891
  };
3824
3892
 
3825
3893
  // src/components/Typography/Typography/Typography.tsx
3826
- import { jsx as jsx197, jsxs as jsxs70 } from "react/jsx-runtime";
3894
+ import { jsx as jsx197 } from "react/jsx-runtime";
3827
3895
  var isAnchorProps = (props) => props.typographyType === "a";
3828
3896
  var Typography = (props) => {
3829
3897
  const {
@@ -3844,15 +3912,10 @@ var Typography = (props) => {
3844
3912
  const as = propAs ? propAs : getElementType(typographyType);
3845
3913
  const typographyCn = getTypographyCn(typographyType);
3846
3914
  let relProp;
3847
- let targetProp;
3848
- let externalLinkProp;
3849
3915
  if (isAnchorProps(props)) {
3850
- const { externalLink, target } = props;
3851
3916
  relProp = as === "a" ? "noopener noreferer" : void 0;
3852
- targetProp = as !== "a" ? void 0 : externalLink ? "_blank" : target;
3853
- externalLinkProp = as === "a" && externalLink ? externalLink : void 0;
3854
3917
  }
3855
- return /* @__PURE__ */ jsxs70(
3918
+ return /* @__PURE__ */ jsx197(
3856
3919
  Box,
3857
3920
  {
3858
3921
  ...getBaseHTMLProps(
@@ -3861,7 +3924,6 @@ var Typography = (props) => {
3861
3924
  className,
3862
3925
  getColorCn(color),
3863
3926
  Typography_default.container,
3864
- externalLinkProp && typographyStyles_default["a--external"],
3865
3927
  typographyStyles_default[typographyCn],
3866
3928
  withMargins && typographyStyles_default[`${typographyCn}--margins`],
3867
3929
  isLegend(as) && typographyStyles_default.legend,
@@ -3881,11 +3943,7 @@ var Typography = (props) => {
3881
3943
  ),
3882
3944
  as,
3883
3945
  rel: relProp,
3884
- target: targetProp,
3885
- children: [
3886
- children,
3887
- externalLinkProp && /* @__PURE__ */ jsx197(Icon, { icon: OpenExternalIcon, iconSize: "inherit" })
3888
- ]
3946
+ children
3889
3947
  }
3890
3948
  );
3891
3949
  };
@@ -3977,7 +4035,7 @@ var Label_default = {
3977
4035
  };
3978
4036
 
3979
4037
  // src/components/Typography/Label/Label.tsx
3980
- import { Fragment, jsx as jsx200, jsxs as jsxs71 } from "react/jsx-runtime";
4038
+ import { Fragment, jsx as jsx200, jsxs as jsxs70 } from "react/jsx-runtime";
3981
4039
  var Label = ({
3982
4040
  showRequiredStyling,
3983
4041
  readOnly,
@@ -3989,7 +4047,7 @@ var Label = ({
3989
4047
  afterLabelContent,
3990
4048
  ...rest
3991
4049
  }) => {
3992
- const content = /* @__PURE__ */ jsxs71(Fragment, { children: [
4050
+ const content = /* @__PURE__ */ jsxs70(Fragment, { children: [
3993
4051
  readOnly && /* @__PURE__ */ jsx200(
3994
4052
  Icon,
3995
4053
  {
@@ -4010,7 +4068,7 @@ var Label = ({
4010
4068
  rest
4011
4069
  )
4012
4070
  };
4013
- const render = afterLabelContent ? /* @__PURE__ */ jsxs71(
4071
+ const render = afterLabelContent ? /* @__PURE__ */ jsxs70(
4014
4072
  Typography,
4015
4073
  {
4016
4074
  typographyType: "labelMedium",
@@ -4068,7 +4126,7 @@ var Legend = ({
4068
4126
  Legend.displayName = "Legend";
4069
4127
 
4070
4128
  // src/components/Typography/Link/Link.tsx
4071
- import { jsx as jsx202, jsxs as jsxs72 } from "react/jsx-runtime";
4129
+ import { jsx as jsx202 } from "react/jsx-runtime";
4072
4130
  var Link = ({
4073
4131
  id,
4074
4132
  className,
@@ -4077,21 +4135,19 @@ var Link = ({
4077
4135
  typographyType,
4078
4136
  withMargins,
4079
4137
  withVisited,
4080
- external,
4081
- target,
4082
4138
  style,
4083
4139
  color,
4084
4140
  as: propAs,
4085
4141
  isAnchor: propIsAnchor,
4142
+ withIconStyling,
4086
4143
  ...rest
4087
4144
  }) => {
4088
4145
  const as = propAs ? propAs : "a";
4089
4146
  const isAnchor = as === "a" || propIsAnchor;
4090
4147
  const aProps = isAnchor ? {
4091
- rel: "noopener noreferrer",
4092
- target: external ? "_blank" : target
4148
+ rel: "noopener noreferrer"
4093
4149
  } : {};
4094
- return /* @__PURE__ */ jsxs72(
4150
+ return /* @__PURE__ */ jsx202(
4095
4151
  ElementAs,
4096
4152
  {
4097
4153
  as,
@@ -4100,7 +4156,7 @@ var Link = ({
4100
4156
  cn(
4101
4157
  className,
4102
4158
  typographyStyles_default.a,
4103
- external && typographyStyles_default["a--external"],
4159
+ withIconStyling && typographyStyles_default["a--with-icon"],
4104
4160
  withVisited && typographyStyles_default["a--visited"],
4105
4161
  typographyType && typographyStyles_default[getTypographyCn(typographyType)],
4106
4162
  typographyType && withMargins && typographyStyles_default[`${getTypographyCn(typographyType)}--margins`],
@@ -4115,17 +4171,7 @@ var Link = ({
4115
4171
  rest
4116
4172
  ),
4117
4173
  ...aProps,
4118
- children: [
4119
- children,
4120
- external && /* @__PURE__ */ jsx202(
4121
- Icon,
4122
- {
4123
- iconSize: "inherit",
4124
- icon: OpenExternalIcon,
4125
- className: typographyStyles_default.svg
4126
- }
4127
- )
4128
- ]
4174
+ children
4129
4175
  }
4130
4176
  );
4131
4177
  };
@@ -4154,7 +4200,7 @@ var Paragraph = ({
4154
4200
  Paragraph.displayName = "Paragraph";
4155
4201
 
4156
4202
  // src/components/Accordion/AccordionHeader.tsx
4157
- import { jsx as jsx204, jsxs as jsxs73 } from "react/jsx-runtime";
4203
+ import { jsx as jsx204, jsxs as jsxs71 } from "react/jsx-runtime";
4158
4204
  var AccordionHeader = ({
4159
4205
  children,
4160
4206
  className,
@@ -4185,7 +4231,7 @@ var AccordionHeader = ({
4185
4231
  rest
4186
4232
  ),
4187
4233
  ...restHeaderProps,
4188
- children: /* @__PURE__ */ jsxs73(
4234
+ children: /* @__PURE__ */ jsxs71(
4189
4235
  "div",
4190
4236
  {
4191
4237
  className: cn(
@@ -4252,7 +4298,7 @@ var BackLink_default = {
4252
4298
  };
4253
4299
 
4254
4300
  // src/components/BackLink/BackLink.tsx
4255
- import { jsx as jsx206, jsxs as jsxs74 } from "react/jsx-runtime";
4301
+ import { jsx as jsx206, jsxs as jsxs72 } from "react/jsx-runtime";
4256
4302
  var BackLink = ({ label, ref, as = "a", ...rest }) => {
4257
4303
  const { t } = useTranslation();
4258
4304
  return /* @__PURE__ */ jsx206(
@@ -4261,7 +4307,7 @@ var BackLink = ({ label, ref, as = "a", ...rest }) => {
4261
4307
  ref,
4262
4308
  "aria-label": t(texts.goBack),
4263
4309
  className: typographyStyles_default["body-short-medium"],
4264
- children: /* @__PURE__ */ jsxs74(
4310
+ children: /* @__PURE__ */ jsxs72(
4265
4311
  HStack,
4266
4312
  {
4267
4313
  as,
@@ -4353,7 +4399,7 @@ var ButtonGroupContext = createContext4({});
4353
4399
  var useButtonGroupContext = () => useContext4(ButtonGroupContext);
4354
4400
 
4355
4401
  // src/components/Button/Button.tsx
4356
- import { Fragment as Fragment2, jsx as jsx208, jsxs as jsxs75 } from "react/jsx-runtime";
4402
+ import { Fragment as Fragment2, jsx as jsx208, jsxs as jsxs73 } from "react/jsx-runtime";
4357
4403
  var Button = ({
4358
4404
  as: propAs,
4359
4405
  children,
@@ -4408,8 +4454,8 @@ var Button = ({
4408
4454
  iconState
4409
4455
  }
4410
4456
  );
4411
- const content = /* @__PURE__ */ jsxs75(Fragment2, { children: [
4412
- hasLabel && /* @__PURE__ */ jsxs75(Fragment2, { children: [
4457
+ const content = /* @__PURE__ */ jsxs73(Fragment2, { children: [
4458
+ hasLabel && /* @__PURE__ */ jsxs73(Fragment2, { children: [
4413
4459
  iconPosition === "left" && iconElement,
4414
4460
  /* @__PURE__ */ jsx208("span", { "aria-hidden": loading, className: cn(loading && invisible), children }),
4415
4461
  iconPosition === "right" && iconElement
@@ -4707,7 +4753,7 @@ var VisuallyHidden = ({
4707
4753
  VisuallyHidden.displayName = "VisuallyHidden";
4708
4754
 
4709
4755
  // src/components/Toggle/Toggle.tsx
4710
- import { Fragment as Fragment3, jsx as jsx214, jsxs as jsxs76 } from "react/jsx-runtime";
4756
+ import { Fragment as Fragment3, jsx as jsx214, jsxs as jsxs74 } from "react/jsx-runtime";
4711
4757
  var TOGGLE_SIZES = createSizes("medium", "large");
4712
4758
  var Toggle = ({
4713
4759
  id,
@@ -4735,7 +4781,7 @@ var Toggle = ({
4735
4781
  onChange
4736
4782
  });
4737
4783
  const isColorScheme = variant === "colorScheme";
4738
- const marker = isColorScheme ? /* @__PURE__ */ jsxs76(Fragment3, { children: [
4784
+ const marker = isColorScheme ? /* @__PURE__ */ jsxs74(Fragment3, { children: [
4739
4785
  /* @__PURE__ */ jsx214(
4740
4786
  Icon,
4741
4787
  {
@@ -4754,7 +4800,7 @@ var Toggle = ({
4754
4800
  )
4755
4801
  ] }) : /* @__PURE__ */ jsx214(Icon, { className: Toggle_default.checkmark, icon: CheckIcon, iconSize });
4756
4802
  console.log("disabled", disabled);
4757
- return /* @__PURE__ */ jsxs76(
4803
+ return /* @__PURE__ */ jsxs74(
4758
4804
  "label",
4759
4805
  {
4760
4806
  htmlFor: uniqueId,
@@ -4793,7 +4839,7 @@ var Toggle = ({
4793
4839
  }
4794
4840
  ),
4795
4841
  /* @__PURE__ */ jsx214("span", { className: cn(Toggle_default.track, focus_default["focus-styled-sibling"]), children: /* @__PURE__ */ jsx214("span", { className: Toggle_default.thumb, children: isLoading ? /* @__PURE__ */ jsx214(Spinner, { size: `var(--dds-size-icon-${size2})` }) : marker }) }),
4796
- /* @__PURE__ */ jsxs76("span", { className: cn(readOnly && Toggle_default["labeltext--readonly"]), children: [
4842
+ /* @__PURE__ */ jsxs74("span", { className: cn(readOnly && Toggle_default["labeltext--readonly"]), children: [
4797
4843
  readOnly && /* @__PURE__ */ jsx214(
4798
4844
  Icon,
4799
4845
  {
@@ -4957,7 +5003,7 @@ var OverflowMenuGroup = ({
4957
5003
  if (isOpen) onClose == null ? void 0 : onClose();
4958
5004
  toggle();
4959
5005
  };
4960
- useOnClickOutside([menuRef.current, buttonRef.current], () => {
5006
+ useOnClickOutside([menuRef, buttonRef], () => {
4961
5007
  handleClose();
4962
5008
  });
4963
5009
  useOnKeyDown(["Esc", "Escape"], () => {
@@ -4996,7 +5042,7 @@ var OverflowMenuGroup = ({
4996
5042
  OverflowMenuGroup.displayName = "OverflowMenuGroup";
4997
5043
 
4998
5044
  // src/components/Breadcrumbs/Breadcrumbs.tsx
4999
- import { Fragment as Fragment4, jsx as jsx222, jsxs as jsxs77 } from "react/jsx-runtime";
5045
+ import { Fragment as Fragment4, jsx as jsx222, jsxs as jsxs75 } from "react/jsx-runtime";
5000
5046
  var Breadcrumbs = ({
5001
5047
  children,
5002
5048
  smallScreenBreakpoint,
@@ -5023,7 +5069,7 @@ var Breadcrumbs = ({
5023
5069
  padding: "x0"
5024
5070
  };
5025
5071
  const bChildren = childrenArray.map((item, index) => {
5026
- return /* @__PURE__ */ jsxs77(
5072
+ return /* @__PURE__ */ jsxs75(
5027
5073
  HStack,
5028
5074
  {
5029
5075
  ...responsiveLiProps,
@@ -5044,11 +5090,11 @@ var Breadcrumbs = ({
5044
5090
  return /* @__PURE__ */ jsx222(OverflowMenuSpan, { children: item.props.children }, index);
5045
5091
  }
5046
5092
  }) : [];
5047
- const bChildrenSmallScreen = /* @__PURE__ */ jsxs77(Fragment4, { children: [
5093
+ const bChildrenSmallScreen = /* @__PURE__ */ jsxs75(Fragment4, { children: [
5048
5094
  /* @__PURE__ */ jsx222(HStack, { ...responsiveLiProps, children: childrenArray[0] }),
5049
- bChildrenTruncated.length > 0 && /* @__PURE__ */ jsxs77(HStack, { ...responsiveLiProps, children: [
5095
+ bChildrenTruncated.length > 0 && /* @__PURE__ */ jsxs75(HStack, { ...responsiveLiProps, children: [
5050
5096
  chevronIcon,
5051
- /* @__PURE__ */ jsxs77(OverflowMenuGroup, { children: [
5097
+ /* @__PURE__ */ jsxs75(OverflowMenuGroup, { children: [
5052
5098
  /* @__PURE__ */ jsx222(
5053
5099
  Button,
5054
5100
  {
@@ -5061,7 +5107,7 @@ var Breadcrumbs = ({
5061
5107
  /* @__PURE__ */ jsx222(OverflowMenu, { portal: false, children: /* @__PURE__ */ jsx222(OverflowMenuList, { children: bChildrenTruncated }) })
5062
5108
  ] })
5063
5109
  ] }),
5064
- /* @__PURE__ */ jsxs77(HStack, { ...responsiveLiProps, children: [
5110
+ /* @__PURE__ */ jsxs75(HStack, { ...responsiveLiProps, children: [
5065
5111
  chevronIcon,
5066
5112
  childrenArray[childrenArray.length - 1]
5067
5113
  ] })
@@ -5073,7 +5119,7 @@ var Breadcrumbs = ({
5073
5119
  alignItems: "center",
5074
5120
  gap: "x0.5"
5075
5121
  };
5076
- return /* @__PURE__ */ jsxs77(
5122
+ return /* @__PURE__ */ jsxs75(
5077
5123
  "nav",
5078
5124
  {
5079
5125
  ...getBaseHTMLProps(
@@ -5272,7 +5318,7 @@ var CardExpandable = ({
5272
5318
  CardExpandable.displayName = "CardExpandable";
5273
5319
 
5274
5320
  // src/components/Card/CardExpandable/CardExpandableHeader.tsx
5275
- import { jsx as jsx226, jsxs as jsxs78 } from "react/jsx-runtime";
5321
+ import { jsx as jsx226, jsxs as jsxs76 } from "react/jsx-runtime";
5276
5322
  var CardExpandableHeader = ({
5277
5323
  children,
5278
5324
  className,
@@ -5316,7 +5362,7 @@ var CardExpandableHeader = ({
5316
5362
  typographyStyles_default[getTypographyCn(typographyType)],
5317
5363
  bold && typographyStyles_default.bold
5318
5364
  ),
5319
- children: /* @__PURE__ */ jsxs78("div", { className: (AccordionBase_default.header__content, CardExpandable_default.header__content), children: [
5365
+ children: /* @__PURE__ */ jsxs76("div", { className: (AccordionBase_default.header__content, CardExpandable_default.header__content), children: [
5320
5366
  children,
5321
5367
  /* @__PURE__ */ jsx226(
5322
5368
  Icon,
@@ -5401,7 +5447,7 @@ var SelectionControl_default = {
5401
5447
  };
5402
5448
 
5403
5449
  // src/components/SelectionControl/SelectionControl.styles.tsx
5404
- import { jsx as jsx228, jsxs as jsxs79 } from "react/jsx-runtime";
5450
+ import { jsx as jsx228, jsxs as jsxs77 } from "react/jsx-runtime";
5405
5451
  var SelectionControl = ({
5406
5452
  controlType,
5407
5453
  className,
@@ -5453,7 +5499,7 @@ var renderGroupLabel = ({
5453
5499
  }) => {
5454
5500
  const hasLabel = !!label;
5455
5501
  if (hasLabel)
5456
- return /* @__PURE__ */ jsxs79(
5502
+ return /* @__PURE__ */ jsxs77(
5457
5503
  Typography,
5458
5504
  {
5459
5505
  as: "span",
@@ -5487,7 +5533,7 @@ var selectionControlTypographyProps = {
5487
5533
  };
5488
5534
 
5489
5535
  // src/components/SelectionControl/Checkbox/Checkbox.tsx
5490
- import { jsx as jsx229, jsxs as jsxs80 } from "react/jsx-runtime";
5536
+ import { jsx as jsx229, jsxs as jsxs78 } from "react/jsx-runtime";
5491
5537
  var Checkbox = ({
5492
5538
  id,
5493
5539
  name,
@@ -5511,7 +5557,7 @@ var Checkbox = ({
5511
5557
  const isReadOnly = readOnly || (checkboxGroup == null ? void 0 : checkboxGroup.readOnly);
5512
5558
  const hasError = error || (checkboxGroup == null ? void 0 : checkboxGroup.error);
5513
5559
  const isDisabled = disabled || (checkboxGroup == null ? void 0 : checkboxGroup.disabled);
5514
- return /* @__PURE__ */ jsxs80(
5560
+ return /* @__PURE__ */ jsxs78(
5515
5561
  Label2,
5516
5562
  {
5517
5563
  disabled: isDisabled,
@@ -5576,7 +5622,7 @@ function convertBooleanishToBoolean(value) {
5576
5622
  }
5577
5623
 
5578
5624
  // src/components/InputMessage/InputMessage.tsx
5579
- import { Fragment as Fragment5, jsx as jsx230, jsxs as jsxs81 } from "react/jsx-runtime";
5625
+ import { Fragment as Fragment5, jsx as jsx230, jsxs as jsxs79 } from "react/jsx-runtime";
5580
5626
  var InputMessage = ({
5581
5627
  messageType,
5582
5628
  id,
@@ -5598,7 +5644,7 @@ var InputMessage = ({
5598
5644
  as: "span",
5599
5645
  children
5600
5646
  };
5601
- return isError ? /* @__PURE__ */ jsxs81(
5647
+ return isError ? /* @__PURE__ */ jsxs79(
5602
5648
  Paper,
5603
5649
  {
5604
5650
  ...commonProps,
@@ -5635,7 +5681,7 @@ var renderInputMessage = ({
5635
5681
  errorMessage,
5636
5682
  errorMessageId,
5637
5683
  noSpacing
5638
- }) => /* @__PURE__ */ jsxs81(Fragment5, { children: [
5684
+ }) => /* @__PURE__ */ jsxs79(Fragment5, { children: [
5639
5685
  errorMessage && /* @__PURE__ */ jsx230(
5640
5686
  InputMessage,
5641
5687
  {
@@ -5649,7 +5695,7 @@ var renderInputMessage = ({
5649
5695
  ] });
5650
5696
 
5651
5697
  // src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
5652
- import { jsx as jsx231, jsxs as jsxs82 } from "react/jsx-runtime";
5698
+ import { jsx as jsx231, jsxs as jsxs80 } from "react/jsx-runtime";
5653
5699
  var CheckboxGroup = (props) => {
5654
5700
  const {
5655
5701
  label,
@@ -5682,7 +5728,7 @@ var CheckboxGroup = (props) => {
5682
5728
  disabled,
5683
5729
  readOnly
5684
5730
  };
5685
- return /* @__PURE__ */ jsxs82(
5731
+ return /* @__PURE__ */ jsxs80(
5686
5732
  "div",
5687
5733
  {
5688
5734
  ...getBaseHTMLProps(
@@ -5728,7 +5774,7 @@ var useRadioButtonGroup = () => {
5728
5774
  };
5729
5775
 
5730
5776
  // src/components/SelectionControl/RadioButton/RadioButton.tsx
5731
- import { jsx as jsx232, jsxs as jsxs83 } from "react/jsx-runtime";
5777
+ import { jsx as jsx232, jsxs as jsxs81 } from "react/jsx-runtime";
5732
5778
  var getIsChecked = ({
5733
5779
  value,
5734
5780
  groupValue,
@@ -5783,7 +5829,7 @@ var RadioButton = ({
5783
5829
  groupValue: radioButtonGroup == null ? void 0 : radioButtonGroup.value,
5784
5830
  checked
5785
5831
  });
5786
- return /* @__PURE__ */ jsxs83(
5832
+ return /* @__PURE__ */ jsxs81(
5787
5833
  Label2,
5788
5834
  {
5789
5835
  disabled: isDisabled,
@@ -5832,7 +5878,7 @@ RadioButton.displayName = "RadioButton";
5832
5878
 
5833
5879
  // src/components/SelectionControl/RadioButton/RadioButtonGroup.tsx
5834
5880
  import { useId as useId8 } from "react";
5835
- import { jsx as jsx233, jsxs as jsxs84 } from "react/jsx-runtime";
5881
+ import { jsx as jsx233, jsxs as jsxs82 } from "react/jsx-runtime";
5836
5882
  var RadioButtonGroup = ({
5837
5883
  name,
5838
5884
  label,
@@ -5876,7 +5922,7 @@ var RadioButtonGroup = ({
5876
5922
  value: groupValue,
5877
5923
  onChange: handleChange
5878
5924
  };
5879
- return /* @__PURE__ */ jsxs84(
5925
+ return /* @__PURE__ */ jsxs82(
5880
5926
  "div",
5881
5927
  {
5882
5928
  ...getBaseHTMLProps(
@@ -5994,7 +6040,7 @@ CardSelectable.displayName = "CardSelectable";
5994
6040
 
5995
6041
  // src/components/Card/CardSelectionControl/CardSelectableGroup.tsx
5996
6042
  import { useId as useId9 } from "react";
5997
- import { jsx as jsx235, jsxs as jsxs85 } from "react/jsx-runtime";
6043
+ import { jsx as jsx235, jsxs as jsxs83 } from "react/jsx-runtime";
5998
6044
  var CardSelectableGroup = ({
5999
6045
  name,
6000
6046
  cardType,
@@ -6057,7 +6103,7 @@ var CardSelectableGroup = ({
6057
6103
  children: /* @__PURE__ */ jsx235(CardSelectableContext, { value: generalContextProps, children: cardType === "radio" ? /* @__PURE__ */ jsx235(RadioButtonGroupContext, { value: contextProps, children }) : cardType === "checkbox" ? /* @__PURE__ */ jsx235(CheckboxGroupContext, { value: contextProps, children }) : null })
6058
6104
  }
6059
6105
  );
6060
- return hasErrorMessage ? /* @__PURE__ */ jsxs85("div", { children: [
6106
+ return hasErrorMessage ? /* @__PURE__ */ jsxs83("div", { children: [
6061
6107
  mainContent,
6062
6108
  renderInputMessage({ errorMessage, errorMessageId })
6063
6109
  ] }) : mainContent;
@@ -6096,7 +6142,7 @@ var InlineIconButton = ({
6096
6142
  InlineIconButton.displayName = "InlineIconButton";
6097
6143
 
6098
6144
  // src/components/Chip/Chip.tsx
6099
- import { jsx as jsx237, jsxs as jsxs86 } from "react/jsx-runtime";
6145
+ import { jsx as jsx237, jsxs as jsxs84 } from "react/jsx-runtime";
6100
6146
  var Chip = ({
6101
6147
  children,
6102
6148
  onClose,
@@ -6113,7 +6159,7 @@ var Chip = ({
6113
6159
  setIsOpen(false);
6114
6160
  onClose == null ? void 0 : onClose();
6115
6161
  };
6116
- return isOpen ? /* @__PURE__ */ jsxs86(
6162
+ return isOpen ? /* @__PURE__ */ jsxs84(
6117
6163
  Box,
6118
6164
  {
6119
6165
  display: "inline-flex",
@@ -6173,7 +6219,7 @@ var CookieBanner_default = {
6173
6219
  };
6174
6220
 
6175
6221
  // src/components/CookieBanner/CookieBannerCheckbox.tsx
6176
- import { jsx as jsx239, jsxs as jsxs87 } from "react/jsx-runtime";
6222
+ import { jsx as jsx239, jsxs as jsxs85 } from "react/jsx-runtime";
6177
6223
  function CookieBannerCheckbox({
6178
6224
  headerText,
6179
6225
  description,
@@ -6193,7 +6239,7 @@ function CookieBannerCheckbox({
6193
6239
  htmlProps,
6194
6240
  rest
6195
6241
  ),
6196
- children: /* @__PURE__ */ jsxs87(VStack, { gap: "x0.5", children: [
6242
+ children: /* @__PURE__ */ jsxs85(VStack, { gap: "x0.5", children: [
6197
6243
  /* @__PURE__ */ jsx239(Typography, { as: "span", typographyType: "headingSmall", children: headerText }),
6198
6244
  /* @__PURE__ */ jsx239(Typography, { as: "span", typographyType: "bodyLongSmall", children: description })
6199
6245
  ] })
@@ -6203,7 +6249,7 @@ function CookieBannerCheckbox({
6203
6249
  CookieBannerCheckbox.displayName = "CookieBannerCheckbox";
6204
6250
 
6205
6251
  // src/components/CookieBanner/CookieBanner.tsx
6206
- import { jsx as jsx240, jsxs as jsxs88 } from "react/jsx-runtime";
6252
+ import { jsx as jsx240, jsxs as jsxs86 } from "react/jsx-runtime";
6207
6253
  import { createElement } from "react";
6208
6254
  function CookieBanner({
6209
6255
  headerText,
@@ -6254,8 +6300,8 @@ function CookieBanner({
6254
6300
  border: "border-default",
6255
6301
  background: "brand-tertiary-medium",
6256
6302
  elevation: "large",
6257
- children: /* @__PURE__ */ jsxs88(VStack, { maxWidth: "70ch", gap: "x1", children: [
6258
- hasBp && isCollapsedOnBreakpoint ? /* @__PURE__ */ jsxs88(HStack, { alignItems: "center", justifyContent: "space-between", gap: "x1", children: [
6303
+ children: /* @__PURE__ */ jsxs86(VStack, { maxWidth: "70ch", gap: "x1", children: [
6304
+ hasBp && isCollapsedOnBreakpoint ? /* @__PURE__ */ jsxs86(HStack, { alignItems: "center", justifyContent: "space-between", gap: "x1", children: [
6259
6305
  heading,
6260
6306
  /* @__PURE__ */ jsx240(
6261
6307
  ShowHide,
@@ -6270,7 +6316,7 @@ function CookieBanner({
6270
6316
  }
6271
6317
  )
6272
6318
  ] }) : heading,
6273
- /* @__PURE__ */ jsxs88(
6319
+ /* @__PURE__ */ jsxs86(
6274
6320
  VStack,
6275
6321
  {
6276
6322
  gap: "x1",
@@ -6460,7 +6506,7 @@ import {
6460
6506
  useRef as useRef13
6461
6507
  } from "react";
6462
6508
  import { createPortal as createPortal2 } from "react-dom";
6463
- import { Fragment as Fragment6, jsx as jsx242, jsxs as jsxs89 } from "react/jsx-runtime";
6509
+ import { Fragment as Fragment6, jsx as jsx242, jsxs as jsxs87 } from "react/jsx-runtime";
6464
6510
  var CalendarPopoverContext = createContext9({
6465
6511
  anchorRef: null,
6466
6512
  closeButtonRef: null,
@@ -6512,7 +6558,7 @@ var CalendarPopoverContent = ({
6512
6558
  const hasTransitionedIn = useMountTransition(isOpen, 500);
6513
6559
  const isMounted = isOpen && hasTransitionedIn;
6514
6560
  const combinedRef = useCombinedRef(refs.setFloating, ref);
6515
- useOnClickOutside([ref.current, modalRef.current], onClose);
6561
+ useOnClickOutside([ref, modalRef], onClose);
6516
6562
  useEffect18(() => {
6517
6563
  var _a;
6518
6564
  refs.setReference((_a = anchorRef == null ? void 0 : anchorRef.current) != null ? _a : null);
@@ -6540,9 +6586,9 @@ var CalendarPopoverContent = ({
6540
6586
  border: "border-default",
6541
6587
  padding: "x0.75"
6542
6588
  };
6543
- return /* @__PURE__ */ jsxs89(Fragment6, { children: [
6589
+ return /* @__PURE__ */ jsxs87(Fragment6, { children: [
6544
6590
  portalTarget && hasBreakpoint && createPortal2(
6545
- /* @__PURE__ */ jsx242(ShowHide, { showBelow: smallScreenBreakpoint, children: /* @__PURE__ */ jsx242(Backdrop, { zIndex: "modal", isMounted, children: /* @__PURE__ */ jsxs89(
6591
+ /* @__PURE__ */ jsx242(ShowHide, { showBelow: smallScreenBreakpoint, children: /* @__PURE__ */ jsx242(Backdrop, { zIndex: "modal", isMounted, children: /* @__PURE__ */ jsxs87(
6546
6592
  Paper,
6547
6593
  {
6548
6594
  ref: modalRef,
@@ -6582,7 +6628,7 @@ var CalendarPopoverContent = ({
6582
6628
  };
6583
6629
 
6584
6630
  // src/components/date-inputs/DatePicker/Calendar/CalendarGrid.tsx
6585
- import { jsx as jsx243, jsxs as jsxs90 } from "react/jsx-runtime";
6631
+ import { jsx as jsx243, jsxs as jsxs88 } from "react/jsx-runtime";
6586
6632
  function CalendarGrid({ state, ...props }) {
6587
6633
  const { t } = useTranslation();
6588
6634
  const { locale } = useLocale();
@@ -6606,7 +6652,7 @@ function CalendarGrid({ state, ...props }) {
6606
6652
  typographyStyles_default["text-color--subtle"],
6607
6653
  DateInput_default.calendar__th
6608
6654
  );
6609
- return /* @__PURE__ */ jsxs90(
6655
+ return /* @__PURE__ */ jsxs88(
6610
6656
  "table",
6611
6657
  {
6612
6658
  ...gridProps,
@@ -6619,12 +6665,12 @@ function CalendarGrid({ state, ...props }) {
6619
6665
  cellPadding: "0",
6620
6666
  className: typographyStyles_default["body-short-xsmall"],
6621
6667
  children: [
6622
- /* @__PURE__ */ jsx243("thead", { ...headerProps, children: /* @__PURE__ */ jsxs90("tr", { children: [
6623
- showWeekNumbers && /* @__PURE__ */ jsxs90("th", { className: cn(thCn), children: [
6668
+ /* @__PURE__ */ jsx243("thead", { ...headerProps, children: /* @__PURE__ */ jsxs88("tr", { children: [
6669
+ showWeekNumbers && /* @__PURE__ */ jsxs88("th", { className: cn(thCn), children: [
6624
6670
  /* @__PURE__ */ jsx243("span", { "aria-hidden": true, children: "#" }),
6625
6671
  /* @__PURE__ */ jsx243(VisuallyHidden, { children: t(texts6.weekNumber) })
6626
6672
  ] }),
6627
- weekDays.map((day, index) => /* @__PURE__ */ jsxs90("th", { className: thCn, children: [
6673
+ weekDays.map((day, index) => /* @__PURE__ */ jsxs88("th", { className: thCn, children: [
6628
6674
  /* @__PURE__ */ jsx243("span", { "aria-hidden": true, children: day.short }),
6629
6675
  /* @__PURE__ */ jsx243(VisuallyHidden, { children: day.full })
6630
6676
  ] }, index))
@@ -6633,7 +6679,7 @@ function CalendarGrid({ state, ...props }) {
6633
6679
  const datesInWeek = state.getDatesInWeek(weekIndex);
6634
6680
  const firstExistingDay = datesInWeek.find(Boolean);
6635
6681
  const weekNumber = firstExistingDay ? getWeekNumber(firstExistingDay) : "";
6636
- return /* @__PURE__ */ jsxs90("tr", { children: [
6682
+ return /* @__PURE__ */ jsxs88("tr", { children: [
6637
6683
  showWeekNumbers && /* @__PURE__ */ jsx243("td", { className: cn(thCn, DateInput_default["calendar__week-number"]), children: weekNumber }),
6638
6684
  datesInWeek.map(
6639
6685
  (date, i) => date ? /* @__PURE__ */ jsx243(
@@ -6762,7 +6808,7 @@ var texts6 = createTexts({
6762
6808
  });
6763
6809
 
6764
6810
  // src/components/date-inputs/DatePicker/Calendar/Calendar.tsx
6765
- import { jsx as jsx244, jsxs as jsxs91 } from "react/jsx-runtime";
6811
+ import { jsx as jsx244, jsxs as jsxs89 } from "react/jsx-runtime";
6766
6812
  function createCalendar(identifier) {
6767
6813
  switch (identifier) {
6768
6814
  case "gregory":
@@ -6794,8 +6840,8 @@ function Calendar(props) {
6794
6840
  }
6795
6841
  }
6796
6842
  };
6797
- return /* @__PURE__ */ jsxs91(VStack, { ...calendarProps, gap: "x0.25", height: "337px", children: [
6798
- /* @__PURE__ */ jsxs91(HStack, { justifyContent: "space-between", alignItems: "center", children: [
6843
+ return /* @__PURE__ */ jsxs89(VStack, { ...calendarProps, gap: "x0.25", height: "337px", children: [
6844
+ /* @__PURE__ */ jsxs89(HStack, { justifyContent: "space-between", alignItems: "center", children: [
6799
6845
  /* @__PURE__ */ jsx244(
6800
6846
  Button,
6801
6847
  {
@@ -6996,7 +7042,7 @@ var texts8 = createTexts({
6996
7042
  // src/components/date-inputs/DatePicker/DateField/DateSegment.tsx
6997
7043
  import { useDateSegment } from "@react-aria/datepicker";
6998
7044
  import { useRef as useRef15 } from "react";
6999
- import { jsx as jsx246, jsxs as jsxs92 } from "react/jsx-runtime";
7045
+ import { jsx as jsx246, jsxs as jsxs90 } from "react/jsx-runtime";
7000
7046
  function DateSegment({
7001
7047
  segment,
7002
7048
  state,
@@ -7006,7 +7052,7 @@ function DateSegment({
7006
7052
  }) {
7007
7053
  const ref = useRef15(null);
7008
7054
  const { segmentProps } = useDateSegment(segment, state, ref);
7009
- return /* @__PURE__ */ jsxs92(
7055
+ return /* @__PURE__ */ jsxs90(
7010
7056
  "div",
7011
7057
  {
7012
7058
  ...segmentProps,
@@ -7125,7 +7171,7 @@ function renderLabel(props) {
7125
7171
  }
7126
7172
 
7127
7173
  // src/components/date-inputs/common/DateInput.tsx
7128
- import { jsx as jsx250, jsxs as jsxs93 } from "react/jsx-runtime";
7174
+ import { jsx as jsx250, jsxs as jsxs91 } from "react/jsx-runtime";
7129
7175
  function DateInput({
7130
7176
  errorMessage,
7131
7177
  tip,
@@ -7153,7 +7199,7 @@ function DateInput({
7153
7199
  }) {
7154
7200
  const hasErrorMessage = !!errorMessage;
7155
7201
  const { isOpen } = useContext13(CalendarPopoverContext);
7156
- return /* @__PURE__ */ jsxs93(
7202
+ return /* @__PURE__ */ jsxs91(
7157
7203
  "div",
7158
7204
  {
7159
7205
  ...groupProps,
@@ -7167,7 +7213,7 @@ function DateInput({
7167
7213
  readOnly,
7168
7214
  afterLabelContent
7169
7215
  }),
7170
- /* @__PURE__ */ jsxs93(
7216
+ /* @__PURE__ */ jsxs91(
7171
7217
  Box,
7172
7218
  {
7173
7219
  style,
@@ -7333,7 +7379,7 @@ function createDOMRef(ref) {
7333
7379
  }
7334
7380
 
7335
7381
  // src/components/date-inputs/DatePicker/DatePicker.tsx
7336
- import { jsx as jsx252, jsxs as jsxs94 } from "react/jsx-runtime";
7382
+ import { jsx as jsx252, jsxs as jsxs92 } from "react/jsx-runtime";
7337
7383
  var refIsFocusable = (ref) => {
7338
7384
  return typeof ref === "object" && ref !== null && "focus" in ref;
7339
7385
  };
@@ -7368,7 +7414,7 @@ function DatePicker({
7368
7414
  const uniqueId = (_a = props.id) != null ? _a : useId11();
7369
7415
  const errorMessageId = hasErrorMessage ? `${uniqueId}-errorMessage` : void 0;
7370
7416
  const tipId = hasTip ? `${uniqueId}-tip` : void 0;
7371
- return /* @__PURE__ */ jsx252(I18nProvider, { locale: LOCALE[lang], children: /* @__PURE__ */ jsxs94(
7417
+ return /* @__PURE__ */ jsx252(I18nProvider, { locale: LOCALE[lang], children: /* @__PURE__ */ jsxs92(
7372
7418
  CalendarPopover,
7373
7419
  {
7374
7420
  isOpen: state.isOpen,
@@ -7596,7 +7642,7 @@ var DescriptionListTerm = (props) => {
7596
7642
  DescriptionListTerm.displayName = "DescriptionListTerm";
7597
7643
 
7598
7644
  // src/components/DescriptionList/DescriptionListDesc.tsx
7599
- import { jsx as jsx256, jsxs as jsxs95 } from "react/jsx-runtime";
7645
+ import { jsx as jsx256, jsxs as jsxs93 } from "react/jsx-runtime";
7600
7646
  var DescriptionListDesc = ({
7601
7647
  children,
7602
7648
  icon,
@@ -7605,7 +7651,7 @@ var DescriptionListDesc = ({
7605
7651
  style,
7606
7652
  htmlProps,
7607
7653
  ...rest
7608
- }) => /* @__PURE__ */ jsxs95(
7654
+ }) => /* @__PURE__ */ jsxs93(
7609
7655
  "dd",
7610
7656
  {
7611
7657
  ...getBaseHTMLProps(
@@ -7740,11 +7786,11 @@ var DetailListDesc = ({ className, ...rest }) => /* @__PURE__ */ jsx259(Box, { a
7740
7786
  DetailListDesc.displayName = "DetailListDesc";
7741
7787
 
7742
7788
  // src/components/DetailList/DetailListRow.tsx
7743
- import { Fragment as Fragment7, jsx as jsx260, jsxs as jsxs96 } from "react/jsx-runtime";
7789
+ import { Fragment as Fragment7, jsx as jsx260, jsxs as jsxs94 } from "react/jsx-runtime";
7744
7790
  var DetailListRow = ({ className, ...rest }) => {
7745
7791
  const { smallScreenBreakpoint: bp } = useDetailListContext();
7746
7792
  const hasBp = !!bp;
7747
- return /* @__PURE__ */ jsxs96(Fragment7, { children: [
7793
+ return /* @__PURE__ */ jsxs94(Fragment7, { children: [
7748
7794
  /* @__PURE__ */ jsx260(
7749
7795
  Box,
7750
7796
  {
@@ -7806,7 +7852,7 @@ var DrawerContext = createContext11({});
7806
7852
  var useDrawerContext = () => useContext15(DrawerContext);
7807
7853
 
7808
7854
  // src/components/Drawer/Drawer.tsx
7809
- import { jsx as jsx262, jsxs as jsxs97 } from "react/jsx-runtime";
7855
+ import { jsx as jsx262, jsxs as jsxs95 } from "react/jsx-runtime";
7810
7856
  var DRAWER_SIZES = createSizes("small", "medium", "large");
7811
7857
  var Drawer = ({
7812
7858
  children,
@@ -7830,7 +7876,7 @@ var Drawer = ({
7830
7876
  }
7831
7877
  const { t } = useTranslation();
7832
7878
  const portalTarget = parentElement != null ? parentElement : themeContext == null ? void 0 : themeContext.el;
7833
- const { isOpen = false, onClose, drawerId, triggerEl } = useDrawerContext();
7879
+ const { isOpen = false, onClose, drawerId, triggerRef } = useDrawerContext();
7834
7880
  const hasHeader = !!header;
7835
7881
  const headerId = hasHeader ? `${drawerId}-header` : void 0;
7836
7882
  const drawerRef = useFocusTrap(isOpen);
@@ -7845,8 +7891,8 @@ var Drawer = ({
7845
7891
  return () => handleElementWithBackdropUnmount(document.body);
7846
7892
  }
7847
7893
  }, [isOpen]);
7848
- const elements = [drawerRef.current];
7849
- if (triggerEl) elements.push(triggerEl);
7894
+ const elements = [drawerRef];
7895
+ if (triggerRef) elements.push(triggerRef);
7850
7896
  useOnClickOutside(elements, () => {
7851
7897
  if (isOpen && !withBackdrop) {
7852
7898
  onClose == null ? void 0 : onClose();
@@ -7871,7 +7917,7 @@ var Drawer = ({
7871
7917
  return "800px";
7872
7918
  }
7873
7919
  };
7874
- const drawer = /* @__PURE__ */ jsxs97(
7920
+ const drawer = /* @__PURE__ */ jsxs95(
7875
7921
  Paper,
7876
7922
  {
7877
7923
  ref: combinedRef,
@@ -7904,7 +7950,7 @@ var Drawer = ({
7904
7950
  elevation: "large",
7905
7951
  "aria-labelledby": headerId,
7906
7952
  children: [
7907
- /* @__PURE__ */ jsxs97(
7953
+ /* @__PURE__ */ jsxs95(
7908
7954
  HStack,
7909
7955
  {
7910
7956
  position: "sticky",
@@ -8016,7 +8062,7 @@ var DrawerGroup = ({
8016
8062
  drawerId: uniqueDrawerId,
8017
8063
  isOpen,
8018
8064
  onClose: handleClose,
8019
- triggerEl: triggerRef.current
8065
+ triggerRef
8020
8066
  },
8021
8067
  children: Children7
8022
8068
  }
@@ -8025,7 +8071,7 @@ var DrawerGroup = ({
8025
8071
  DrawerGroup.displayName = "DrawerGroup";
8026
8072
 
8027
8073
  // src/components/EmptyContent/EmptyContent.tsx
8028
- import { jsx as jsx264, jsxs as jsxs98 } from "react/jsx-runtime";
8074
+ import { jsx as jsx264, jsxs as jsxs96 } from "react/jsx-runtime";
8029
8075
  function EmptyContent({
8030
8076
  headerText,
8031
8077
  children,
@@ -8045,7 +8091,7 @@ function EmptyContent({
8045
8091
  background: "surface-medium",
8046
8092
  borderRadius: "surface",
8047
8093
  ...rest,
8048
- children: /* @__PURE__ */ jsxs98(
8094
+ children: /* @__PURE__ */ jsxs96(
8049
8095
  VStack,
8050
8096
  {
8051
8097
  maxWidth: "70ch",
@@ -8111,7 +8157,7 @@ var ListItem = ({ className, ...rest }) => /* @__PURE__ */ jsx266("li", { ...res
8111
8157
  ListItem.displayName = "ListItem";
8112
8158
 
8113
8159
  // src/components/ErrorSummary/ErrorSummary.tsx
8114
- import { jsx as jsx267, jsxs as jsxs99 } from "react/jsx-runtime";
8160
+ import { jsx as jsx267, jsxs as jsxs97 } from "react/jsx-runtime";
8115
8161
  var ErrorSummary = ({
8116
8162
  heading: pHeading,
8117
8163
  className,
@@ -8123,7 +8169,7 @@ var ErrorSummary = ({
8123
8169
  }) => {
8124
8170
  const { t } = useTranslation();
8125
8171
  const heading = typeof pHeading === "string" ? /* @__PURE__ */ jsx267(Heading, { level: 2, typographyType: "headingSmall", children: pHeading }) : pHeading ? pHeading : /* @__PURE__ */ jsx267(Heading, { level: 2, typographyType: "headingSmall", children: t(texts10.toProceedCorrectErrors) });
8126
- return /* @__PURE__ */ jsxs99(
8172
+ return /* @__PURE__ */ jsxs97(
8127
8173
  Paper,
8128
8174
  {
8129
8175
  ...getBaseHTMLProps(
@@ -8180,7 +8226,7 @@ var FavStar_default = {
8180
8226
  };
8181
8227
 
8182
8228
  // src/components/FavStar/FavStar.tsx
8183
- import { jsx as jsx269, jsxs as jsxs100 } from "react/jsx-runtime";
8229
+ import { jsx as jsx269, jsxs as jsxs98 } from "react/jsx-runtime";
8184
8230
  var FAVSTAR_SIZES = createSizes("medium", "large");
8185
8231
  var FavStar = ({
8186
8232
  id,
@@ -8208,7 +8254,7 @@ var FavStar = ({
8208
8254
  defaultValue: defaultChecked != null ? defaultChecked : false,
8209
8255
  onChange
8210
8256
  });
8211
- return /* @__PURE__ */ jsxs100(
8257
+ return /* @__PURE__ */ jsxs98(
8212
8258
  "label",
8213
8259
  {
8214
8260
  className: cn(
@@ -8291,13 +8337,13 @@ var CharCounter_default = {
8291
8337
  };
8292
8338
 
8293
8339
  // src/components/helpers/CharCounter/CharCounter.tsx
8294
- import { jsx as jsx270, jsxs as jsxs101 } from "react/jsx-runtime";
8340
+ import { jsx as jsx270, jsxs as jsxs99 } from "react/jsx-runtime";
8295
8341
  function CharCounter(props) {
8296
8342
  const { t } = useTranslation();
8297
8343
  const { current, max, id } = props;
8298
8344
  const generatedId = useId15();
8299
8345
  const uniqueId = id != null ? id : `${generatedId}-characterCounter`;
8300
- return /* @__PURE__ */ jsxs101(
8346
+ return /* @__PURE__ */ jsxs99(
8301
8347
  Typography,
8302
8348
  {
8303
8349
  id: uniqueId,
@@ -8306,7 +8352,7 @@ function CharCounter(props) {
8306
8352
  typographyType: "bodyShortXsmall",
8307
8353
  color: "text-subtle",
8308
8354
  children: [
8309
- /* @__PURE__ */ jsxs101("span", { "aria-hidden": true, children: [
8355
+ /* @__PURE__ */ jsxs99("span", { "aria-hidden": true, children: [
8310
8356
  current,
8311
8357
  "/",
8312
8358
  max
@@ -8331,7 +8377,7 @@ var texts12 = createTexts({
8331
8377
  });
8332
8378
 
8333
8379
  // src/components/TextArea/TextArea.tsx
8334
- import { jsx as jsx271, jsxs as jsxs102 } from "react/jsx-runtime";
8380
+ import { jsx as jsx271, jsxs as jsxs100 } from "react/jsx-runtime";
8335
8381
  var TextArea = ({
8336
8382
  id,
8337
8383
  value,
@@ -8380,7 +8426,7 @@ var TextArea = ({
8380
8426
  );
8381
8427
  const showRequiredStyling = required || !!ariaRequired;
8382
8428
  const inputWidth = getInputWidth(width);
8383
- return /* @__PURE__ */ jsxs102("div", { className: cn(className, Input_default.container), style: { ...style }, children: [
8429
+ return /* @__PURE__ */ jsxs100("div", { className: cn(className, Input_default.container), style: { ...style }, children: [
8384
8430
  renderLabel({ label, htmlFor: uniqueId, readOnly, showRequiredStyling }),
8385
8431
  /* @__PURE__ */ jsx271(
8386
8432
  Box,
@@ -8415,7 +8461,7 @@ var TextArea = ({
8415
8461
  ...rest
8416
8462
  }
8417
8463
  ),
8418
- /* @__PURE__ */ jsxs102(
8464
+ /* @__PURE__ */ jsxs100(
8419
8465
  Box,
8420
8466
  {
8421
8467
  display: "flex",
@@ -8440,7 +8486,7 @@ TextArea.displayName = "TextArea";
8440
8486
  var getIconSize = (layout) => layout === "vertical" ? "large" : "medium";
8441
8487
 
8442
8488
  // src/components/Feedback/CommentComponent.tsx
8443
- import { jsx as jsx272, jsxs as jsxs103 } from "react/jsx-runtime";
8489
+ import { jsx as jsx272, jsxs as jsxs101 } from "react/jsx-runtime";
8444
8490
  var CommentComponent = ({
8445
8491
  layout,
8446
8492
  rating,
@@ -8454,8 +8500,8 @@ var CommentComponent = ({
8454
8500
  handleFeedbackTextChange
8455
8501
  }) => {
8456
8502
  const { t } = useTranslation();
8457
- return /* @__PURE__ */ jsxs103(VStack, { gap: "x1", children: [
8458
- /* @__PURE__ */ jsxs103("span", { className: Feedback_default["rating-submitted-title"], children: [
8503
+ return /* @__PURE__ */ jsxs101(VStack, { gap: "x1", children: [
8504
+ /* @__PURE__ */ jsxs101("span", { className: Feedback_default["rating-submitted-title"], children: [
8459
8505
  /* @__PURE__ */ jsx272(
8460
8506
  Icon,
8461
8507
  {
@@ -8464,7 +8510,7 @@ var CommentComponent = ({
8464
8510
  iconSize: getIconSize(layout)
8465
8511
  }
8466
8512
  ),
8467
- /* @__PURE__ */ jsxs103(Paragraph, { children: [
8513
+ /* @__PURE__ */ jsxs101(Paragraph, { children: [
8468
8514
  ratingSubmittedTitle,
8469
8515
  " "
8470
8516
  ] })
@@ -8516,7 +8562,7 @@ var Tooltip_default = {
8516
8562
  };
8517
8563
 
8518
8564
  // src/components/Tooltip/Tooltip.tsx
8519
- import { jsx as jsx273, jsxs as jsxs104 } from "react/jsx-runtime";
8565
+ import { jsx as jsx273, jsxs as jsxs102 } from "react/jsx-runtime";
8520
8566
  var Tooltip = ({
8521
8567
  text,
8522
8568
  placement = "bottom",
@@ -8607,7 +8653,7 @@ var Tooltip = ({
8607
8653
  );
8608
8654
  const openCn = keepMounted && open && inView || isTransientlyMounted ? "open" : "closed";
8609
8655
  const ariaHidden = keepMounted ? !open : void 0;
8610
- return /* @__PURE__ */ jsxs104(
8656
+ return /* @__PURE__ */ jsxs102(
8611
8657
  Box,
8612
8658
  {
8613
8659
  ...getBaseHTMLProps(id, className, style, htmlProps, rest),
@@ -8645,7 +8691,7 @@ var Tooltip = ({
8645
8691
  Tooltip.displayName = "Tooltip";
8646
8692
 
8647
8693
  // src/components/Feedback/RatingComponent.tsx
8648
- import { jsx as jsx274, jsxs as jsxs105 } from "react/jsx-runtime";
8694
+ import { jsx as jsx274, jsxs as jsxs103 } from "react/jsx-runtime";
8649
8695
  var RatingComponent = ({
8650
8696
  layout,
8651
8697
  ratingLabel,
@@ -8665,7 +8711,7 @@ var RatingComponent = ({
8665
8711
  color: "icon-medium"
8666
8712
  }
8667
8713
  );
8668
- return /* @__PURE__ */ jsxs105(
8714
+ return /* @__PURE__ */ jsxs103(
8669
8715
  "div",
8670
8716
  {
8671
8717
  className: cn(
@@ -8674,7 +8720,7 @@ var RatingComponent = ({
8674
8720
  ),
8675
8721
  children: [
8676
8722
  /* @__PURE__ */ jsx274("h2", { className: typographyStyles_default["label-medium"], children: ratingLabel }),
8677
- loading ? /* @__PURE__ */ jsx274(Spinner, { tooltip: t(texts14.uploadingFeedback) }) : /* @__PURE__ */ jsxs105(HStack, { gap: "x1", children: [
8723
+ loading ? /* @__PURE__ */ jsx274(Spinner, { tooltip: t(texts14.uploadingFeedback) }) : /* @__PURE__ */ jsxs103(HStack, { gap: "x1", children: [
8678
8724
  /* @__PURE__ */ jsx274(Tooltip, { text: thumbUpTooltip, children: button("positive", layout, thumbUpTooltip) }),
8679
8725
  /* @__PURE__ */ jsx274(Tooltip, { text: thumbDownTooltip, children: button("negative", layout, thumbDownTooltip) })
8680
8726
  ] })
@@ -8897,7 +8943,7 @@ var FileUploader_default = {
8897
8943
  };
8898
8944
 
8899
8945
  // src/components/FileUploader/File.tsx
8900
- import { Fragment as Fragment8, jsx as jsx279, jsxs as jsxs106 } from "react/jsx-runtime";
8946
+ import { Fragment as Fragment8, jsx as jsx279, jsxs as jsxs104 } from "react/jsx-runtime";
8901
8947
  var File2 = (props) => {
8902
8948
  const { t } = useTranslation();
8903
8949
  const {
@@ -8971,8 +9017,8 @@ var File2 = (props) => {
8971
9017
  );
8972
9018
  break;
8973
9019
  }
8974
- return /* @__PURE__ */ jsxs106("li", { children: [
8975
- /* @__PURE__ */ jsxs106(
9020
+ return /* @__PURE__ */ jsxs104("li", { children: [
9021
+ /* @__PURE__ */ jsxs104(
8976
9022
  Paper,
8977
9023
  {
8978
9024
  marginBlock: "x0.5 0",
@@ -8981,7 +9027,7 @@ var File2 = (props) => {
8981
9027
  background: inactive ? "surface-field-disabled" : "surface-subtle",
8982
9028
  className: cn(hasError && FileUploader_default["file--invalid"]),
8983
9029
  children: [
8984
- /* @__PURE__ */ jsxs106(HStack, { alignItems: "center", justifyContent: "space-between", gap: "x0.75", children: [
9030
+ /* @__PURE__ */ jsxs104(HStack, { alignItems: "center", justifyContent: "space-between", gap: "x0.75", children: [
8985
9031
  /* @__PURE__ */ jsx279(
8986
9032
  Typography,
8987
9033
  {
@@ -8991,7 +9037,7 @@ var File2 = (props) => {
8991
9037
  children: fileUrl ? /* @__PURE__ */ jsx279(Link, { href: fileUrl, target: "_blank", children: stateFile.name }) : stateFile.name
8992
9038
  }
8993
9039
  ),
8994
- !inactive && /* @__PURE__ */ jsxs106(Fragment8, { children: [
9040
+ !inactive && /* @__PURE__ */ jsxs104(Fragment8, { children: [
8995
9041
  statusIndicator,
8996
9042
  /* @__PURE__ */ jsx279(
8997
9043
  Button,
@@ -9394,7 +9440,7 @@ var texts17 = createTexts({
9394
9440
  });
9395
9441
 
9396
9442
  // src/components/FileUploader/FileUploader.tsx
9397
- import { jsx as jsx280, jsxs as jsxs107 } from "react/jsx-runtime";
9443
+ import { jsx as jsx280, jsxs as jsxs105 } from "react/jsx-runtime";
9398
9444
  var FileUploader = (props) => {
9399
9445
  const {
9400
9446
  id,
@@ -9518,7 +9564,7 @@ var FileUploader = (props) => {
9518
9564
  "aria-describedby": fileListId
9519
9565
  }
9520
9566
  );
9521
- return /* @__PURE__ */ jsxs107(
9567
+ return /* @__PURE__ */ jsxs105(
9522
9568
  Box,
9523
9569
  {
9524
9570
  id: uniqueId,
@@ -9535,7 +9581,7 @@ var FileUploader = (props) => {
9535
9581
  afterLabelContent
9536
9582
  }),
9537
9583
  renderInputMessage({ tip, tipId }),
9538
- inactive ? input : withDragAndDrop ? /* @__PURE__ */ jsxs107(
9584
+ inactive ? input : withDragAndDrop ? /* @__PURE__ */ jsxs105(
9539
9585
  VStack,
9540
9586
  {
9541
9587
  gap: "x1",
@@ -9553,12 +9599,12 @@ var FileUploader = (props) => {
9553
9599
  button
9554
9600
  ]
9555
9601
  }
9556
- ) : /* @__PURE__ */ jsxs107(Box, { padding: "x 0", children: [
9602
+ ) : /* @__PURE__ */ jsxs105(Box, { padding: "x 0", children: [
9557
9603
  input,
9558
9604
  button
9559
9605
  ] }),
9560
9606
  /* @__PURE__ */ jsx280(ErrorList, { errors: rootErrorsList }),
9561
- !hideFileList && /* @__PURE__ */ jsxs107(
9607
+ !hideFileList && /* @__PURE__ */ jsxs105(
9562
9608
  "div",
9563
9609
  {
9564
9610
  id: fileListId,
@@ -9718,7 +9764,7 @@ var FormSummary_default = {
9718
9764
  };
9719
9765
 
9720
9766
  // src/components/FormSummary/FormSummary.components.tsx
9721
- import { jsx as jsx290, jsxs as jsxs108 } from "react/jsx-runtime";
9767
+ import { jsx as jsx290, jsxs as jsxs106 } from "react/jsx-runtime";
9722
9768
  function FormSummaryHeader({ ...props }) {
9723
9769
  return /* @__PURE__ */ jsx290(
9724
9770
  HStack,
@@ -9766,10 +9812,10 @@ function FormSummaryValue({
9766
9812
  }
9767
9813
  function FormSummaryEmptyValue() {
9768
9814
  const { t } = useTranslation();
9769
- return /* @__PURE__ */ jsxs108("span", { children: [
9815
+ return /* @__PURE__ */ jsxs106("span", { children: [
9770
9816
  /* @__PURE__ */ jsx290("span", { "aria-hidden": true, children: "-" }),
9771
9817
  " ",
9772
- /* @__PURE__ */ jsxs108(VisuallyHidden, { children: [
9818
+ /* @__PURE__ */ jsxs106(VisuallyHidden, { children: [
9773
9819
  " ",
9774
9820
  t(texts19.noValue),
9775
9821
  " "
@@ -9804,7 +9850,7 @@ var GlobalMessage_default = {
9804
9850
  };
9805
9851
 
9806
9852
  // src/components/GlobalMessage/GlobalMessage.tsx
9807
- import { jsx as jsx291, jsxs as jsxs109 } from "react/jsx-runtime";
9853
+ import { jsx as jsx291, jsxs as jsxs107 } from "react/jsx-runtime";
9808
9854
  var G_MESSAGE_PURPOSES = createPurposes("info", "warning", "danger");
9809
9855
  var icons = {
9810
9856
  info: InfoIcon,
@@ -9824,7 +9870,7 @@ var GlobalMessage = ({
9824
9870
  }) => {
9825
9871
  const { t } = useTranslation();
9826
9872
  const [isClosed, setClosed] = useState18(false);
9827
- return !isClosed ? /* @__PURE__ */ jsxs109(
9873
+ return !isClosed ? /* @__PURE__ */ jsxs107(
9828
9874
  "div",
9829
9875
  {
9830
9876
  ...getBaseHTMLProps(
@@ -9840,7 +9886,7 @@ var GlobalMessage = ({
9840
9886
  rest
9841
9887
  ),
9842
9888
  children: [
9843
- /* @__PURE__ */ jsxs109(
9889
+ /* @__PURE__ */ jsxs107(
9844
9890
  "div",
9845
9891
  {
9846
9892
  className: cn(GlobalMessage_default.content, closable && GlobalMessage_default["content--closable"]),
@@ -9956,7 +10002,7 @@ var InlineEditContextProvider = (props) => {
9956
10002
  };
9957
10003
  useOnKeyDown(["Enter"], () => onExitHandler());
9958
10004
  useOnKeyDown(["Escape"], () => onExitHandler());
9959
- useOnClickOutside(inputRef == null ? void 0 : inputRef.current, () => onExitHandler());
10005
+ useOnClickOutside(inputRef, () => onExitHandler());
9960
10006
  return /* @__PURE__ */ jsx293(
9961
10007
  InlineEditContext,
9962
10008
  {
@@ -9992,10 +10038,10 @@ var InlineEdit_default = {
9992
10038
  };
9993
10039
 
9994
10040
  // src/components/InlineEdit/InlineEdit.utils.tsx
9995
- import { jsxs as jsxs110 } from "react/jsx-runtime";
10041
+ import { jsxs as jsxs108 } from "react/jsx-runtime";
9996
10042
  var inlineEditVisuallyHidden = (id, clearable) => {
9997
10043
  const { t } = useTranslation();
9998
- return /* @__PURE__ */ jsxs110(VisuallyHidden, { id, children: [
10044
+ return /* @__PURE__ */ jsxs108(VisuallyHidden, { id, children: [
9999
10045
  t(texts20.inlineEditInfo),
10000
10046
  " ",
10001
10047
  !clearable && t(texts20.notClearable)
@@ -10072,7 +10118,7 @@ function createClearChangeEvent(elementId) {
10072
10118
  }
10073
10119
 
10074
10120
  // src/components/InlineEdit/InlineField.tsx
10075
- import { Fragment as Fragment9, jsx as jsx294, jsxs as jsxs111 } from "react/jsx-runtime";
10121
+ import { Fragment as Fragment9, jsx as jsx294, jsxs as jsxs109 } from "react/jsx-runtime";
10076
10122
  function InlineField(props) {
10077
10123
  const {
10078
10124
  elementType,
@@ -10153,7 +10199,7 @@ function InlineField(props) {
10153
10199
  }
10154
10200
  );
10155
10201
  case "select":
10156
- return /* @__PURE__ */ jsxs111(Fragment9, { children: [
10202
+ return /* @__PURE__ */ jsxs109(Fragment9, { children: [
10157
10203
  /* @__PURE__ */ jsx294(
10158
10204
  "select",
10159
10205
  {
@@ -10178,8 +10224,8 @@ function InlineField(props) {
10178
10224
  return null;
10179
10225
  }
10180
10226
  };
10181
- return /* @__PURE__ */ jsxs111(Box, { position: "relative", width, children: [
10182
- /* @__PURE__ */ jsxs111("div", { className: Input_default["input-group"], children: [
10227
+ return /* @__PURE__ */ jsxs109(Box, { position: "relative", width, children: [
10228
+ /* @__PURE__ */ jsxs109("div", { className: Input_default["input-group"], children: [
10183
10229
  !isEditing && !hideIcon && makeIcon(EditIcon, InlineEdit_default["edit-icon"]),
10184
10230
  renderElement()
10185
10231
  ] }),
@@ -10310,7 +10356,7 @@ var NavigationItem = ({ isCurrent, ...rest }) => /* @__PURE__ */ jsx298(
10310
10356
  );
10311
10357
 
10312
10358
  // src/components/InternalHeader/InternalHeader.tsx
10313
- import { jsx as jsx299, jsxs as jsxs112 } from "react/jsx-runtime";
10359
+ import { jsx as jsx299, jsxs as jsxs110 } from "react/jsx-runtime";
10314
10360
  import { createElement as createElement2 } from "react";
10315
10361
  var InternalHeader = (props) => {
10316
10362
  const {
@@ -10364,7 +10410,7 @@ var InternalHeader = (props) => {
10364
10410
  ) }) : null;
10365
10411
  const hasContextMenu = hasContextMenuElements || !!user || hasNavInContextMenu;
10366
10412
  const hasContextMenuLargeScreen = hasContextMenuElements || !!user;
10367
- return /* @__PURE__ */ jsxs112(
10413
+ return /* @__PURE__ */ jsxs110(
10368
10414
  Box,
10369
10415
  {
10370
10416
  display: "flex",
@@ -10400,7 +10446,7 @@ var InternalHeader = (props) => {
10400
10446
  {
10401
10447
  showBelow: !hasContextMenuLargeScreen && hasSmallScreenBreakpoint ? smallScreenBreakpoint : void 0,
10402
10448
  className: cn(InternalHeader_default["context-menu-group"]),
10403
- children: /* @__PURE__ */ jsxs112(OverflowMenuGroup, { children: [
10449
+ children: /* @__PURE__ */ jsxs110(OverflowMenuGroup, { children: [
10404
10450
  /* @__PURE__ */ jsx299(
10405
10451
  Button,
10406
10452
  {
@@ -10409,7 +10455,7 @@ var InternalHeader = (props) => {
10409
10455
  "aria-label": t(texts21.openMenu)
10410
10456
  }
10411
10457
  ),
10412
- /* @__PURE__ */ jsxs112(OverflowMenu, { className: InternalHeader_default["context-menu"], children: [
10458
+ /* @__PURE__ */ jsxs110(OverflowMenu, { className: InternalHeader_default["context-menu"], children: [
10413
10459
  user && /* @__PURE__ */ jsx299(OverflowMenuList, { children: user.href ? /* @__PURE__ */ jsx299(OverflowMenuLink, { icon: PersonIcon, ...user }) : /* @__PURE__ */ jsx299(OverflowMenuSpan, { icon: PersonIcon, ...user }) }),
10414
10460
  hasNavInContextMenu && /* @__PURE__ */ jsx299(
10415
10461
  ShowHide,
@@ -10490,7 +10536,7 @@ var LocalMessage_default = {
10490
10536
  };
10491
10537
 
10492
10538
  // src/components/LocalMessage/LocalMessage.tsx
10493
- import { Fragment as Fragment10, jsx as jsx300, jsxs as jsxs113 } from "react/jsx-runtime";
10539
+ import { Fragment as Fragment10, jsx as jsx300, jsxs as jsxs111 } from "react/jsx-runtime";
10494
10540
  var L_MESSAGE_PURPOSES = createPurposes(
10495
10541
  "info",
10496
10542
  "success",
@@ -10523,7 +10569,7 @@ var LocalMessage = ({
10523
10569
  if (isClosed) {
10524
10570
  return /* @__PURE__ */ jsx300(Fragment10, {});
10525
10571
  }
10526
- return /* @__PURE__ */ jsxs113(
10572
+ return /* @__PURE__ */ jsxs111(
10527
10573
  Box,
10528
10574
  {
10529
10575
  ...getBaseHTMLProps(
@@ -10594,7 +10640,7 @@ var Modal_default = {
10594
10640
  };
10595
10641
 
10596
10642
  // src/components/Modal/Modal.tsx
10597
- import { jsx as jsx301, jsxs as jsxs114 } from "react/jsx-runtime";
10643
+ import { jsx as jsx301, jsxs as jsxs112 } from "react/jsx-runtime";
10598
10644
  var Modal = ({
10599
10645
  isOpen = false,
10600
10646
  parentElement,
@@ -10653,7 +10699,7 @@ var Modal = ({
10653
10699
  isMounted: isOpen && hasTransitionedIn,
10654
10700
  ref: backdropRef,
10655
10701
  onClick: onBackdropClick,
10656
- children: /* @__PURE__ */ jsxs114(
10702
+ children: /* @__PURE__ */ jsxs112(
10657
10703
  Paper,
10658
10704
  {
10659
10705
  display: "flex",
@@ -10681,7 +10727,7 @@ var Modal = ({
10681
10727
  id: modalId,
10682
10728
  elevation: "large",
10683
10729
  children: [
10684
- /* @__PURE__ */ jsxs114(
10730
+ /* @__PURE__ */ jsxs112(
10685
10731
  HStack,
10686
10732
  {
10687
10733
  paddingBlock: "0 x0.75",
@@ -10756,6 +10802,189 @@ import { jsx as jsx303 } from "react/jsx-runtime";
10756
10802
  var ModalActions = (props) => /* @__PURE__ */ jsx303(Box, { display: "flex", flexWrap: "wrap", gap: "x1", ...props });
10757
10803
  ModalActions.displayName = "ModalActions";
10758
10804
 
10805
+ // src/components/NewsPopover/NewsPopover.module.css
10806
+ var NewsPopover_default = {
10807
+ "close-button": "NewsPopover_close-button",
10808
+ "img-wrapper": "NewsPopover_img-wrapper"
10809
+ };
10810
+
10811
+ // src/components/NewsPopover/NewsPopover.tsx
10812
+ import { Fragment as Fragment11, jsx as jsx304, jsxs as jsxs113 } from "react/jsx-runtime";
10813
+ var NewsPopover = ({
10814
+ id,
10815
+ className,
10816
+ style,
10817
+ htmlProps,
10818
+ header,
10819
+ news,
10820
+ defaultActiveSlide = 0,
10821
+ activeSlide: activeSlideProp,
10822
+ setActiveSlide: setActiveSlideProp,
10823
+ isOpen: isOpenProp,
10824
+ isInitiallyOpen = true,
10825
+ setIsOpen: setIsOpenProp,
10826
+ smallScreenBreakpoint = "xs",
10827
+ closeOnClickOutside = true,
10828
+ ref,
10829
+ ...rest
10830
+ }) => {
10831
+ if (news.length === 0) {
10832
+ throw new Error('NewsPopover must have at least one item in "news" prop');
10833
+ }
10834
+ if (header.length > 35) {
10835
+ console.warn(
10836
+ "[NewsPopover] header exceeds recommended length (about 35 characters). This may cause wrapping or layout issues depending on theme."
10837
+ );
10838
+ }
10839
+ news.forEach((n, i) => {
10840
+ if (n.heading.length > 35) {
10841
+ console.warn(
10842
+ `[NewsPopover] news[${i}].heading exceeds recommended length (about 35 characters). This may cause wrapping or layout issues depending on theme.`
10843
+ );
10844
+ }
10845
+ if (n.text.length > 135) {
10846
+ console.warn(
10847
+ `[NewsPopover] news[${i}].text exceeds recommended length (about 135 characters). This may cause wrapping or layout issues depending on theme.`
10848
+ );
10849
+ }
10850
+ });
10851
+ const { t } = useTranslation();
10852
+ const [activeSlide, setActiveSlide] = useControllableState({
10853
+ value: activeSlideProp,
10854
+ defaultValue: defaultActiveSlide,
10855
+ onChange: setActiveSlideProp
10856
+ });
10857
+ const [isOpen, setIsOpen] = useControllableState({
10858
+ onChange: setIsOpenProp,
10859
+ value: isOpenProp,
10860
+ defaultValue: isInitiallyOpen
10861
+ });
10862
+ function handleSlideChange(slide) {
10863
+ setActiveSlide(slide);
10864
+ }
10865
+ const popoverRef = useFocusTrap(true);
10866
+ const combinedRef = useCombinedRef(ref, popoverRef);
10867
+ useOnClickOutside(popoverRef, () => {
10868
+ if (closeOnClickOutside && isOpen) {
10869
+ setIsOpen(false);
10870
+ }
10871
+ });
10872
+ useOnKeyDown("Escape", () => setIsOpen(false));
10873
+ const isList = news.length > 1;
10874
+ const slideContent = (el, i) => /* @__PURE__ */ jsxs113(Fragment11, { children: [
10875
+ /* @__PURE__ */ jsxs113(
10876
+ Paper,
10877
+ {
10878
+ background: "brand-secondary-subtle",
10879
+ width: "100%",
10880
+ borderRadius: "0",
10881
+ display: "grid",
10882
+ placeItems: "center",
10883
+ paddingBlock: "x0.5",
10884
+ children: [
10885
+ i !== void 0 && /* @__PURE__ */ jsx304(VisuallyHidden, { children: t(commonTexts.pageOf(i + 1, news.length)) }),
10886
+ /* @__PURE__ */ jsx304(Box, { height: "113px", maxWidth: "380px", className: NewsPopover_default["img-wrapper"], children: el.image })
10887
+ ]
10888
+ }
10889
+ ),
10890
+ /* @__PURE__ */ jsxs113(VStack, { gap: "x0.75", alignItems: "center", margin: "x0.75 x0.75 x1 x0.75", children: [
10891
+ /* @__PURE__ */ jsx304(Heading, { level: 3, children: el.heading }),
10892
+ /* @__PURE__ */ jsx304(Paragraph, { textAlign: "center", children: el.text })
10893
+ ] })
10894
+ ] });
10895
+ const content = isList ? /* @__PURE__ */ jsx304(Box, { as: StylelessList, width: "100%", children: news.map((el, i) => {
10896
+ const active = activeSlide === i;
10897
+ return /* @__PURE__ */ jsx304("li", { "aria-current": active, hidden: !active, children: slideContent(el, i) }, i);
10898
+ }) }) : /* @__PURE__ */ jsx304(Box, { width: "100%", children: slideContent(news[0]) });
10899
+ function handleNext() {
10900
+ if (activeSlide === news.length - 1) handleSlideChange(0);
10901
+ else handleSlideChange(activeSlide + 1);
10902
+ }
10903
+ function handlePrevious() {
10904
+ if (activeSlide === 0) handleSlideChange(news.length - 1);
10905
+ else handleSlideChange(activeSlide - 1);
10906
+ }
10907
+ const headerId = "dds-news-popover-header";
10908
+ return isOpen ? /* @__PURE__ */ jsxs113(
10909
+ Paper,
10910
+ {
10911
+ ...getBaseHTMLProps(
10912
+ id,
10913
+ cn(className, focusable),
10914
+ style,
10915
+ htmlProps,
10916
+ rest
10917
+ ),
10918
+ ref: combinedRef,
10919
+ position: "relative",
10920
+ border: "border-subtle",
10921
+ role: "dialog",
10922
+ "aria-labelledby": headerId,
10923
+ height: isList ? "368px" : "327px",
10924
+ width: styleUpToBreakpoint("100%", smallScreenBreakpoint, "405px"),
10925
+ children: [
10926
+ /* @__PURE__ */ jsx304(HStack, { margin: "x0.75 x3 x0.75 x0.75", children: /* @__PURE__ */ jsx304(Heading, { id: headerId, level: 2, typographyType: "headingSmall", children: header }) }),
10927
+ /* @__PURE__ */ jsxs113(
10928
+ VStack,
10929
+ {
10930
+ alignItems: "center",
10931
+ height: isList ? "299px" : void 0,
10932
+ "aria-live": "polite",
10933
+ children: [
10934
+ content,
10935
+ isList && /* @__PURE__ */ jsxs113(HStack, { alignItems: "center", gap: "x1", marginBlock: "auto 0", children: [
10936
+ /* @__PURE__ */ jsx304(
10937
+ Button,
10938
+ {
10939
+ "aria-label": t(commonTexts.previousPage),
10940
+ size: "small",
10941
+ purpose: "tertiary",
10942
+ icon: ChevronLeftIcon,
10943
+ onClick: () => handlePrevious()
10944
+ }
10945
+ ),
10946
+ news.map((slide, i) => {
10947
+ const active = activeSlide === i;
10948
+ return /* @__PURE__ */ jsx304(
10949
+ Icon,
10950
+ {
10951
+ iconSize: "small",
10952
+ icon: CircleFilledIcon,
10953
+ color: active ? "brand-tertiary-default" : "brand-tertiary-subtle"
10954
+ }
10955
+ );
10956
+ }),
10957
+ /* @__PURE__ */ jsx304(
10958
+ Button,
10959
+ {
10960
+ "aria-label": t(commonTexts.nextPage),
10961
+ size: "small",
10962
+ purpose: "tertiary",
10963
+ icon: ChevronRightIcon,
10964
+ onClick: () => handleNext()
10965
+ }
10966
+ )
10967
+ ] }),
10968
+ /* @__PURE__ */ jsx304(
10969
+ Button,
10970
+ {
10971
+ icon: CloseIcon,
10972
+ purpose: "tertiary",
10973
+ size: "small",
10974
+ "aria-label": t(commonTexts.close),
10975
+ onClick: () => setIsOpen(false),
10976
+ className: NewsPopover_default["close-button"]
10977
+ }
10978
+ )
10979
+ ]
10980
+ }
10981
+ )
10982
+ ]
10983
+ }
10984
+ ) : null;
10985
+ };
10986
+ NewsPopover.displayName = "NewsPopover";
10987
+
10759
10988
  // src/components/Pagination/Pagination.tsx
10760
10989
  import { useState as useState23 } from "react";
10761
10990
 
@@ -11067,7 +11296,7 @@ import React from "react";
11067
11296
  import {
11068
11297
  components
11069
11298
  } from "react-select";
11070
- import { jsx as jsx304, jsxs as jsxs115 } from "react/jsx-runtime";
11299
+ import { jsx as jsx305, jsxs as jsxs114 } from "react/jsx-runtime";
11071
11300
  var {
11072
11301
  Option,
11073
11302
  NoOptionsMessage,
@@ -11080,25 +11309,25 @@ var {
11080
11309
  } = components;
11081
11310
  var DDSOption = ({
11082
11311
  ...props
11083
- }) => /* @__PURE__ */ jsxs115(Option, { ...props, children: [
11084
- props.isSelected && /* @__PURE__ */ jsx304(Icon, { icon: CheckIcon, iconSize: "small" }),
11312
+ }) => /* @__PURE__ */ jsxs114(Option, { ...props, children: [
11313
+ props.isSelected && /* @__PURE__ */ jsx305(Icon, { icon: CheckIcon, iconSize: "small" }),
11085
11314
  props.children
11086
11315
  ] });
11087
- var CustomOption = (props) => /* @__PURE__ */ jsx304(Option, { ...props, children: React.createElement(props.customElement, props) });
11316
+ var CustomOption = (props) => /* @__PURE__ */ jsx305(Option, { ...props, children: React.createElement(props.customElement, props) });
11088
11317
  var CustomSingleValue = ({
11089
11318
  id,
11090
11319
  Element,
11091
11320
  ...props
11092
- }) => /* @__PURE__ */ jsx304(SingleValue, { ...props, children: /* @__PURE__ */ jsx304("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ jsx304(Element, { ...props }) : props.children }) });
11093
- var DDSNoOptionsMessage = (props) => /* @__PURE__ */ jsx304(NoOptionsMessage, { ...props, children: "Ingen treff" });
11321
+ }) => /* @__PURE__ */ jsx305(SingleValue, { ...props, children: /* @__PURE__ */ jsx305("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ jsx305(Element, { ...props }) : props.children }) });
11322
+ var DDSNoOptionsMessage = (props) => /* @__PURE__ */ jsx305(NoOptionsMessage, { ...props, children: "Ingen treff" });
11094
11323
  var DDSClearIndicator = ({
11095
11324
  ...props
11096
- }) => /* @__PURE__ */ jsx304(ClearIndicator, { ...props, children: /* @__PURE__ */ jsx304(Icon, { icon: CloseSmallIcon, iconSize: "component" }) });
11097
- var DDSMultiValueRemove = (props) => /* @__PURE__ */ jsx304(MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx304(Icon, { icon: CloseSmallIcon, iconSize: "component" }) });
11325
+ }) => /* @__PURE__ */ jsx305(ClearIndicator, { ...props, children: /* @__PURE__ */ jsx305(Icon, { icon: CloseSmallIcon, iconSize: "component" }) });
11326
+ var DDSMultiValueRemove = (props) => /* @__PURE__ */ jsx305(MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx305(Icon, { icon: CloseSmallIcon, iconSize: "component" }) });
11098
11327
  var DDSDropdownIndicator = (props) => {
11099
11328
  const { className, componentSize, ...rest } = props;
11100
11329
  const iconState = rest.selectProps.menuIsOpen ? "up" : "down";
11101
- return /* @__PURE__ */ jsx304(
11330
+ return /* @__PURE__ */ jsx305(
11102
11331
  DropdownIndicator,
11103
11332
  {
11104
11333
  ...rest,
@@ -11107,7 +11336,7 @@ var DDSDropdownIndicator = (props) => {
11107
11336
  Select_default["dropdown-indicator"],
11108
11337
  Input_default[`input-with-el-right--${componentSize}`]
11109
11338
  ),
11110
- children: /* @__PURE__ */ jsx304(
11339
+ children: /* @__PURE__ */ jsx305(
11111
11340
  Icon,
11112
11341
  {
11113
11342
  icon: AnimatedChevronUpDownIcon,
@@ -11122,7 +11351,7 @@ var DDSInput = ({
11122
11351
  ariaInvalid,
11123
11352
  ariaDescribedby,
11124
11353
  ...props
11125
- }) => /* @__PURE__ */ jsx304(
11354
+ }) => /* @__PURE__ */ jsx305(
11126
11355
  Input2,
11127
11356
  {
11128
11357
  ...props,
@@ -11142,7 +11371,7 @@ function DDSControl(props) {
11142
11371
  ...rest
11143
11372
  } = props;
11144
11373
  const hasIcon = !!icon;
11145
- return /* @__PURE__ */ jsxs115(
11374
+ return /* @__PURE__ */ jsxs114(
11146
11375
  Control,
11147
11376
  {
11148
11377
  ...rest,
@@ -11159,7 +11388,7 @@ function DDSControl(props) {
11159
11388
  hasIcon && Input_default[`input-with-icon--${componentSize}`]
11160
11389
  ),
11161
11390
  children: [
11162
- hasIcon && /* @__PURE__ */ jsx304(
11391
+ hasIcon && /* @__PURE__ */ jsx305(
11163
11392
  Icon,
11164
11393
  {
11165
11394
  icon,
@@ -11177,7 +11406,7 @@ function DDSControl(props) {
11177
11406
  }
11178
11407
 
11179
11408
  // src/components/Select/Select.tsx
11180
- import { jsx as jsx305, jsxs as jsxs116 } from "react/jsx-runtime";
11409
+ import { jsx as jsx306, jsxs as jsxs115 } from "react/jsx-runtime";
11181
11410
  function Select({
11182
11411
  id,
11183
11412
  label,
@@ -11228,7 +11457,7 @@ function Select({
11228
11457
  componentSize === "xsmall" && "var(--dds-input-default-width-xsmall)"
11229
11458
  );
11230
11459
  const customInput = useCallback7(
11231
- (props) => /* @__PURE__ */ jsx305(
11460
+ (props) => /* @__PURE__ */ jsx306(
11232
11461
  DDSInput,
11233
11462
  {
11234
11463
  ...props,
@@ -11246,7 +11475,7 @@ function Select({
11246
11475
  []
11247
11476
  );
11248
11477
  const customSingleValue = useCallback7(
11249
- (props) => /* @__PURE__ */ jsx305(
11478
+ (props) => /* @__PURE__ */ jsx306(
11250
11479
  CustomSingleValue,
11251
11480
  {
11252
11481
  ...props,
@@ -11257,15 +11486,15 @@ function Select({
11257
11486
  []
11258
11487
  );
11259
11488
  const customClearIndicator = useCallback7(
11260
- (props) => /* @__PURE__ */ jsx305(DDSClearIndicator, { ...props }),
11489
+ (props) => /* @__PURE__ */ jsx306(DDSClearIndicator, { ...props }),
11261
11490
  []
11262
11491
  );
11263
11492
  const customDropdownIndicator = useCallback7(
11264
- (props) => /* @__PURE__ */ jsx305(DDSDropdownIndicator, { ...props, componentSize }),
11493
+ (props) => /* @__PURE__ */ jsx306(DDSDropdownIndicator, { ...props, componentSize }),
11265
11494
  []
11266
11495
  );
11267
11496
  const customControl = useCallback7(
11268
- (props) => /* @__PURE__ */ jsx305(
11497
+ (props) => /* @__PURE__ */ jsx306(
11269
11498
  DDSControl,
11270
11499
  {
11271
11500
  ...props,
@@ -11280,9 +11509,9 @@ function Select({
11280
11509
  const customOptionComponent = useCallback7(
11281
11510
  (props) => {
11282
11511
  if (customOptionElement) {
11283
- return /* @__PURE__ */ jsx305(CustomOption, { ...props, customElement: customOptionElement });
11512
+ return /* @__PURE__ */ jsx306(CustomOption, { ...props, customElement: customOptionElement });
11284
11513
  } else {
11285
- return /* @__PURE__ */ jsx305(DDSOption, { ...props });
11514
+ return /* @__PURE__ */ jsx306(DDSOption, { ...props });
11286
11515
  }
11287
11516
  },
11288
11517
  [customOptionElement, componentSize]
@@ -11323,7 +11552,7 @@ function Select({
11323
11552
  openMenuOnClick: readOnly ? false : openMenuOnClick ? openMenuOnClick : void 0,
11324
11553
  ...rest
11325
11554
  };
11326
- return /* @__PURE__ */ jsxs116(
11555
+ return /* @__PURE__ */ jsxs115(
11327
11556
  Box,
11328
11557
  {
11329
11558
  width: inputWidth,
@@ -11344,7 +11573,7 @@ function Select({
11344
11573
  readOnly,
11345
11574
  afterLabelContent
11346
11575
  }),
11347
- /* @__PURE__ */ jsx305(ReactSelect, { ...reactSelectProps, ref }),
11576
+ /* @__PURE__ */ jsx306(ReactSelect, { ...reactSelectProps, ref }),
11348
11577
  renderInputMessage({ tip, tipId, errorMessage, errorMessageId })
11349
11578
  ]
11350
11579
  }
@@ -11373,7 +11602,7 @@ var NativeSelect_default = {
11373
11602
  };
11374
11603
 
11375
11604
  // src/components/Select/NativeSelect/NativeSelect.tsx
11376
- import { jsx as jsx306, jsxs as jsxs117 } from "react/jsx-runtime";
11605
+ import { jsx as jsx307, jsxs as jsxs116 } from "react/jsx-runtime";
11377
11606
  var NativeSelect = ({
11378
11607
  ref,
11379
11608
  id,
@@ -11442,7 +11671,7 @@ var NativeSelect = ({
11442
11671
  const iconSize = componentSize === "medium" ? "medium" : "small";
11443
11672
  const showClearButton = clearable && hasValue && !readOnly && !rest.disabled;
11444
11673
  const hasIcon = !!icon;
11445
- return /* @__PURE__ */ jsxs117("div", { className, style, children: [
11674
+ return /* @__PURE__ */ jsxs116("div", { className, style, children: [
11446
11675
  renderLabel({
11447
11676
  label,
11448
11677
  htmlFor: uniqueId,
@@ -11450,7 +11679,7 @@ var NativeSelect = ({
11450
11679
  readOnly,
11451
11680
  afterLabelContent
11452
11681
  }),
11453
- /* @__PURE__ */ jsxs117(
11682
+ /* @__PURE__ */ jsxs116(
11454
11683
  Box,
11455
11684
  {
11456
11685
  position: "relative",
@@ -11460,7 +11689,7 @@ var NativeSelect = ({
11460
11689
  Input_default["input-group"]
11461
11690
  ),
11462
11691
  children: [
11463
- hasIcon && /* @__PURE__ */ jsx306(
11692
+ hasIcon && /* @__PURE__ */ jsx307(
11464
11693
  Icon,
11465
11694
  {
11466
11695
  icon,
@@ -11471,7 +11700,7 @@ var NativeSelect = ({
11471
11700
  iconSize: "component"
11472
11701
  }
11473
11702
  ),
11474
- /* @__PURE__ */ jsx306(
11703
+ /* @__PURE__ */ jsx307(
11475
11704
  "select",
11476
11705
  {
11477
11706
  ref: useCombinedRef(ref, selectRef),
@@ -11505,7 +11734,7 @@ var NativeSelect = ({
11505
11734
  children
11506
11735
  }
11507
11736
  ),
11508
- showClearButton && /* @__PURE__ */ jsx306(
11737
+ showClearButton && /* @__PURE__ */ jsx307(
11509
11738
  ClearButton,
11510
11739
  {
11511
11740
  "aria-label": t(commonTexts.clearSelect),
@@ -11514,7 +11743,7 @@ var NativeSelect = ({
11514
11743
  className: NativeSelect_default[`clear-button--${componentSize}`]
11515
11744
  }
11516
11745
  ),
11517
- !multiple && /* @__PURE__ */ jsx306(
11746
+ !multiple && /* @__PURE__ */ jsx307(
11518
11747
  Icon,
11519
11748
  {
11520
11749
  icon: ChevronDownIcon,
@@ -11537,7 +11766,7 @@ var NativeSelect = ({
11537
11766
  var createSelectOptions = (...args) => args.map((v) => ({ label: v, value: v }));
11538
11767
 
11539
11768
  // src/components/Pagination/Pagination.tsx
11540
- import { jsx as jsx307, jsxs as jsxs118 } from "react/jsx-runtime";
11769
+ import { jsx as jsx308, jsxs as jsxs117 } from "react/jsx-runtime";
11541
11770
  var Pagination = ({
11542
11771
  itemsAmount,
11543
11772
  defaultItemsPerPage = 10,
@@ -11592,7 +11821,7 @@ var Pagination = ({
11592
11821
  };
11593
11822
  const listItems = items.length > 0 ? items.map((item, i) => {
11594
11823
  const isActive = item === activePage;
11595
- return /* @__PURE__ */ jsx307("li", { className: Pagination_default.list__item, children: item !== "truncator" && typeof item === "number" ? /* @__PURE__ */ jsx307(
11824
+ return /* @__PURE__ */ jsx308("li", { className: Pagination_default.list__item, children: item !== "truncator" && typeof item === "number" ? /* @__PURE__ */ jsx308(
11596
11825
  Button,
11597
11826
  {
11598
11827
  purpose: isActive ? "primary" : "secondary",
@@ -11600,10 +11829,10 @@ var Pagination = ({
11600
11829
  onClick: (event) => {
11601
11830
  onPageChange(event, item);
11602
11831
  },
11603
- "aria-label": isActive ? t(texts22.currentPage(item)) : t(texts22.page(item)),
11832
+ "aria-label": isActive ? t(commonTexts.currentPage(item)) : t(commonTexts.page(item)),
11604
11833
  children: item
11605
11834
  }
11606
- ) : /* @__PURE__ */ jsx307(
11835
+ ) : /* @__PURE__ */ jsx308(
11607
11836
  Icon,
11608
11837
  {
11609
11838
  icon: MoreHorizontalIcon,
@@ -11611,7 +11840,7 @@ var Pagination = ({
11611
11840
  }
11612
11841
  ) }, `pagination-item-${i}`);
11613
11842
  }) : void 0;
11614
- const previousPageButton = /* @__PURE__ */ jsx307(
11843
+ const previousPageButton = /* @__PURE__ */ jsx308(
11615
11844
  Button,
11616
11845
  {
11617
11846
  purpose: "secondary",
@@ -11620,10 +11849,10 @@ var Pagination = ({
11620
11849
  onClick: (event) => {
11621
11850
  onPageChange(event, activePage - 1);
11622
11851
  },
11623
- "aria-label": t(texts22.previousPage)
11852
+ "aria-label": t(commonTexts.previousPage)
11624
11853
  }
11625
11854
  );
11626
- const nextPageButton = /* @__PURE__ */ jsx307(
11855
+ const nextPageButton = /* @__PURE__ */ jsx308(
11627
11856
  Button,
11628
11857
  {
11629
11858
  purpose: "secondary",
@@ -11632,13 +11861,13 @@ var Pagination = ({
11632
11861
  onClick: (event) => {
11633
11862
  onPageChange(event, activePage + 1);
11634
11863
  },
11635
- "aria-label": t(texts22.nextPage)
11864
+ "aria-label": t(commonTexts.nextPage)
11636
11865
  }
11637
11866
  );
11638
11867
  const isOnFirstPage = activePage === 1;
11639
11868
  const isOnLastPage = activePage === pagesLength;
11640
11869
  const baseHTMLProps = getBaseHTMLProps(id, className, style, htmlProps, rest);
11641
- const navigation = withPagination ? /* @__PURE__ */ jsxs118(
11870
+ const navigation = withPagination ? /* @__PURE__ */ jsxs117(
11642
11871
  Box,
11643
11872
  {
11644
11873
  as: "nav",
@@ -11650,14 +11879,14 @@ var Pagination = ({
11650
11879
  ...baseHTMLProps
11651
11880
  },
11652
11881
  children: [
11653
- /* @__PURE__ */ jsxs118(
11882
+ /* @__PURE__ */ jsxs117(
11654
11883
  ShowHide,
11655
11884
  {
11656
11885
  as: "ol",
11657
11886
  hideBelow: smallScreenBreakpoint,
11658
11887
  className: Pagination_default.list,
11659
11888
  children: [
11660
- /* @__PURE__ */ jsx307(
11889
+ /* @__PURE__ */ jsx308(
11661
11890
  "li",
11662
11891
  {
11663
11892
  className: cn(
@@ -11669,7 +11898,7 @@ var Pagination = ({
11669
11898
  }
11670
11899
  ),
11671
11900
  listItems,
11672
- /* @__PURE__ */ jsx307(
11901
+ /* @__PURE__ */ jsx308(
11673
11902
  "li",
11674
11903
  {
11675
11904
  className: cn(
@@ -11683,14 +11912,14 @@ var Pagination = ({
11683
11912
  ]
11684
11913
  }
11685
11914
  ),
11686
- !!smallScreenBreakpoint && /* @__PURE__ */ jsxs118(
11915
+ !!smallScreenBreakpoint && /* @__PURE__ */ jsxs117(
11687
11916
  ShowHide,
11688
11917
  {
11689
11918
  as: "ol",
11690
11919
  showBelow: smallScreenBreakpoint,
11691
11920
  className: Pagination_default.list,
11692
11921
  children: [
11693
- /* @__PURE__ */ jsx307(
11922
+ /* @__PURE__ */ jsx308(
11694
11923
  "li",
11695
11924
  {
11696
11925
  className: cn(
@@ -11698,7 +11927,7 @@ var Pagination = ({
11698
11927
  isOnFirstPage && Pagination_default["list__item--hidden"]
11699
11928
  ),
11700
11929
  "aria-hidden": isOnFirstPage,
11701
- children: /* @__PURE__ */ jsx307(
11930
+ children: /* @__PURE__ */ jsx308(
11702
11931
  Button,
11703
11932
  {
11704
11933
  purpose: "secondary",
@@ -11712,7 +11941,7 @@ var Pagination = ({
11712
11941
  )
11713
11942
  }
11714
11943
  ),
11715
- /* @__PURE__ */ jsx307(
11944
+ /* @__PURE__ */ jsx308(
11716
11945
  "li",
11717
11946
  {
11718
11947
  className: cn(
@@ -11723,7 +11952,7 @@ var Pagination = ({
11723
11952
  children: previousPageButton
11724
11953
  }
11725
11954
  ),
11726
- /* @__PURE__ */ jsx307("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ jsx307(
11955
+ /* @__PURE__ */ jsx308("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ jsx308(
11727
11956
  Button,
11728
11957
  {
11729
11958
  size: "small",
@@ -11733,7 +11962,7 @@ var Pagination = ({
11733
11962
  children: activePage
11734
11963
  }
11735
11964
  ) }),
11736
- /* @__PURE__ */ jsx307(
11965
+ /* @__PURE__ */ jsx308(
11737
11966
  "li",
11738
11967
  {
11739
11968
  className: cn(
@@ -11744,7 +11973,7 @@ var Pagination = ({
11744
11973
  children: nextPageButton
11745
11974
  }
11746
11975
  ),
11747
- /* @__PURE__ */ jsx307(
11976
+ /* @__PURE__ */ jsx308(
11748
11977
  "li",
11749
11978
  {
11750
11979
  className: cn(
@@ -11752,7 +11981,7 @@ var Pagination = ({
11752
11981
  isOnLastPage && Pagination_default["list__item--hidden"]
11753
11982
  ),
11754
11983
  "aria-hidden": isOnLastPage,
11755
- children: /* @__PURE__ */ jsx307(
11984
+ children: /* @__PURE__ */ jsx308(
11756
11985
  Button,
11757
11986
  {
11758
11987
  purpose: "secondary",
@@ -11774,7 +12003,7 @@ var Pagination = ({
11774
12003
  ) : null;
11775
12004
  const activePageFirstItem = activePage === 1 ? 1 : activePage * itemsPerPage - itemsPerPage + 1;
11776
12005
  const activePageLastItem = activePage === pagesLength ? itemsAmount : activePage * itemsPerPage;
11777
- return !withCounter && !withSelect ? navigation : /* @__PURE__ */ jsxs118(
12006
+ return !withCounter && !withSelect ? navigation : /* @__PURE__ */ jsxs117(
11778
12007
  Box,
11779
12008
  {
11780
12009
  display: "flex",
@@ -11785,7 +12014,7 @@ var Pagination = ({
11785
12014
  alignItems: styleUpToBreakpoint("center", smallScreenBreakpoint),
11786
12015
  ...baseHTMLProps,
11787
12016
  children: [
11788
- /* @__PURE__ */ jsxs118(
12017
+ /* @__PURE__ */ jsxs117(
11789
12018
  Box,
11790
12019
  {
11791
12020
  display: "grid",
@@ -11793,7 +12022,7 @@ var Pagination = ({
11793
12022
  alignItems: "center",
11794
12023
  className: Pagination_default.indicators,
11795
12024
  children: [
11796
- withSelect && /* @__PURE__ */ jsx307(
12025
+ withSelect && /* @__PURE__ */ jsx308(
11797
12026
  Select,
11798
12027
  {
11799
12028
  options: tSelectOptions,
@@ -11809,7 +12038,7 @@ var Pagination = ({
11809
12038
  "aria-label": t(texts22.itemsPerPage)
11810
12039
  }
11811
12040
  ),
11812
- withCounter && /* @__PURE__ */ jsx307(Paragraph, { typographyType: "bodyShortMedium", children: t(
12041
+ withCounter && /* @__PURE__ */ jsx308(Paragraph, { typographyType: "bodyShortMedium", children: t(
11813
12042
  texts22.showsAmountOfTotalItems(
11814
12043
  activePageFirstItem,
11815
12044
  activePageLastItem,
@@ -11840,20 +12069,6 @@ var texts22 = createTexts({
11840
12069
  en: "Items per page",
11841
12070
  se: "Elementat juohki siidui"
11842
12071
  },
11843
- nextPage: {
11844
- nb: "Neste side",
11845
- no: "Neste side",
11846
- nn: "Neste side",
11847
- en: "Next page",
11848
- se: "Boahte siidu"
11849
- },
11850
- previousPage: {
11851
- nb: "Forrige side",
11852
- no: "Forrige side",
11853
- nn: "F\xF8rre side",
11854
- en: "Previous page",
11855
- se: "Ovddit siidu"
11856
- },
11857
12072
  firstPage: {
11858
12073
  nb: "F\xF8rste side",
11859
12074
  no: "F\xF8rste side",
@@ -11868,20 +12083,6 @@ var texts22 = createTexts({
11868
12083
  en: "Last page",
11869
12084
  se: "Ma\u014Bimu\u0161 siidu"
11870
12085
  },
11871
- currentPage: (page) => ({
11872
- nb: `N\xE5v\xE6rende side (${page})`,
11873
- no: `N\xE5v\xE6rende side (${page})`,
11874
- nn: `Noverande side (${page})`,
11875
- en: `Current page (${page})`,
11876
- se: `D\xE1la siidu (${page})`
11877
- }),
11878
- page: (page) => ({
11879
- nb: `Side ${page}`,
11880
- no: `Side ${page}`,
11881
- nn: `Side ${page}`,
11882
- en: `Page ${page}`,
11883
- se: `Siidu ${page}`
11884
- }),
11885
12086
  showsAmountOfTotalItems: (first, last, total) => ({
11886
12087
  nb: `Viser ${first}-${last} av ${total}`,
11887
12088
  no: `Viser ${first}-${last} av ${total}`,
@@ -12305,7 +12506,7 @@ var PhoneInput_default = {
12305
12506
  };
12306
12507
 
12307
12508
  // src/components/PhoneInput/PhoneInput.tsx
12308
- import { jsx as jsx308, jsxs as jsxs119 } from "react/jsx-runtime";
12509
+ import { jsx as jsx309, jsxs as jsxs118 } from "react/jsx-runtime";
12309
12510
  var prioritizedCountries = [
12310
12511
  COUNTRIES.NO,
12311
12512
  COUNTRIES.SE,
@@ -12443,7 +12644,7 @@ var PhoneInput = ({
12443
12644
  const showRequiredStyling = !!(required || ariaRequired);
12444
12645
  const bp = props.smallScreenBreakpoint;
12445
12646
  const widthDefault = componentSize === "xsmall" && "var(--dds-input-default-width-xsmall)";
12446
- return /* @__PURE__ */ jsxs119("div", { className: cn(className, Input_default.container), style, children: [
12647
+ return /* @__PURE__ */ jsxs118("div", { className: cn(className, Input_default.container), style, children: [
12447
12648
  renderLabel({
12448
12649
  label,
12449
12650
  htmlFor: phoneNumberId,
@@ -12451,7 +12652,7 @@ var PhoneInput = ({
12451
12652
  readOnly,
12452
12653
  afterLabelContent
12453
12654
  }),
12454
- /* @__PURE__ */ jsxs119(
12655
+ /* @__PURE__ */ jsxs118(
12455
12656
  Box,
12456
12657
  {
12457
12658
  display: "flex",
@@ -12464,8 +12665,8 @@ var PhoneInput = ({
12464
12665
  role: "group",
12465
12666
  "aria-label": tGroupLabel,
12466
12667
  children: [
12467
- /* @__PURE__ */ jsx308("label", { className: utilStyles_default["visually-hidden"], htmlFor: selectId, children: tSelectLabel }),
12468
- /* @__PURE__ */ jsx308(
12668
+ /* @__PURE__ */ jsx309("label", { className: utilStyles_default["visually-hidden"], htmlFor: selectId, children: tSelectLabel }),
12669
+ /* @__PURE__ */ jsx309(
12469
12670
  NativeSelect,
12470
12671
  {
12471
12672
  width: styleUpToBreakpoint(
@@ -12486,11 +12687,11 @@ var PhoneInput = ({
12486
12687
  hasTip ? tipId : void 0,
12487
12688
  ariaDescribedby
12488
12689
  ]),
12489
- children: countryOptions.map((item, index) => /* @__PURE__ */ jsx308("option", { value: item.countryCode, children: item.label }, index))
12690
+ children: countryOptions.map((item, index) => /* @__PURE__ */ jsx309("option", { value: item.countryCode, children: item.label }, index))
12490
12691
  }
12491
12692
  ),
12492
- /* @__PURE__ */ jsxs119(Box, { width: "100%", display: "flex", className: Input_default["input-group"], children: [
12493
- /* @__PURE__ */ jsx308(
12693
+ /* @__PURE__ */ jsxs118(Box, { width: "100%", display: "flex", className: Input_default["input-group"], children: [
12694
+ /* @__PURE__ */ jsx309(
12494
12695
  "span",
12495
12696
  {
12496
12697
  className: cn(
@@ -12502,7 +12703,7 @@ var PhoneInput = ({
12502
12703
  children: callingCode
12503
12704
  }
12504
12705
  ),
12505
- /* @__PURE__ */ jsx308(
12706
+ /* @__PURE__ */ jsx309(
12506
12707
  Box,
12507
12708
  {
12508
12709
  as: StatefulInput,
@@ -12582,7 +12783,7 @@ var PopoverContext = createContext13({});
12582
12783
  var usePopoverContext = () => useContext20(PopoverContext);
12583
12784
 
12584
12785
  // src/components/Popover/Popover.tsx
12585
- import { jsx as jsx309, jsxs as jsxs120 } from "react/jsx-runtime";
12786
+ import { jsx as jsx310, jsxs as jsxs119 } from "react/jsx-runtime";
12586
12787
  var Popover = ({
12587
12788
  id,
12588
12789
  header,
@@ -12604,7 +12805,11 @@ var Popover = ({
12604
12805
  ref,
12605
12806
  ...rest
12606
12807
  }) => {
12607
- const { refs, styles: positionStyles } = useFloatPosition(null, {
12808
+ const {
12809
+ refs,
12810
+ styles: positionStyles,
12811
+ isPositioned: localIsPositioned
12812
+ } = useFloatPosition(null, {
12608
12813
  offset,
12609
12814
  placement
12610
12815
  });
@@ -12614,6 +12819,7 @@ var Popover = ({
12614
12819
  const portalTarget = parentElement != null ? parentElement : themeContext == null ? void 0 : themeContext.el;
12615
12820
  const {
12616
12821
  floatStyling: contextFloatStyling,
12822
+ isPositioned: contextIsPositioned,
12617
12823
  setFloatOptions,
12618
12824
  floatingRef: contextFloatingRef,
12619
12825
  popoverId: contextPopoverId,
@@ -12631,28 +12837,31 @@ var Popover = ({
12631
12837
  isOpen = false,
12632
12838
  floatingRef,
12633
12839
  floatStyling,
12634
- onClose
12840
+ onClose,
12841
+ isPositioned = false
12635
12842
  ] = hasContext ? [
12636
12843
  contextPopoverId,
12637
12844
  contextAnchorEl,
12638
12845
  contextIsOpen,
12639
12846
  contextFloatingRef,
12640
12847
  contextFloatStyling,
12641
- contextOnClose
12848
+ contextOnClose,
12849
+ contextIsPositioned
12642
12850
  ] : [
12643
12851
  uniquePopoverId,
12644
12852
  (anchorRef == null ? void 0 : anchorRef.current) && anchorRef.current,
12645
12853
  propIsOpen,
12646
12854
  refs.setFloating,
12647
12855
  positionStyles.floating,
12648
- propOnClose
12856
+ propOnClose,
12857
+ localIsPositioned
12649
12858
  ];
12650
12859
  if (!hasContext) {
12651
12860
  refs.setReference(anchorEl || null);
12652
12861
  }
12653
12862
  const hasTransitionedIn = useMountTransition(isOpen, 400);
12654
12863
  const popoverRef = useReturnFocusOnBlur(
12655
- isOpen && hasTransitionedIn && returnFocusOnBlur,
12864
+ isOpen && hasTransitionedIn && isPositioned && returnFocusOnBlur,
12656
12865
  () => {
12657
12866
  onClose == null ? void 0 : onClose();
12658
12867
  onBlur == null ? void 0 : onBlur();
@@ -12663,7 +12872,7 @@ var Popover = ({
12663
12872
  useEffect28(() => {
12664
12873
  setFloatOptions == null ? void 0 : setFloatOptions({ placement, offset });
12665
12874
  }, [placement, offset]);
12666
- useOnClickOutside([popoverRef.current, anchorEl], () => {
12875
+ useOnClickOutside([popoverRef, anchorRef], () => {
12667
12876
  if (isOpen && !hasContext) onClose == null ? void 0 : onClose();
12668
12877
  });
12669
12878
  useOnKeyDown("Escape", () => {
@@ -12671,7 +12880,7 @@ var Popover = ({
12671
12880
  });
12672
12881
  const hasTitle = !!header;
12673
12882
  const openCn = hasTransitionedIn && isOpen ? "open" : "closed";
12674
- const popover = /* @__PURE__ */ jsxs120(
12883
+ const popover = /* @__PURE__ */ jsxs119(
12675
12884
  Paper,
12676
12885
  {
12677
12886
  ...getBaseHTMLProps(
@@ -12702,15 +12911,15 @@ var Popover = ({
12702
12911
  elevation: "large",
12703
12912
  border: "border-subtle",
12704
12913
  children: [
12705
- header && /* @__PURE__ */ jsx309("div", { className: Popover_default.header, children: typeof header === "string" ? /* @__PURE__ */ jsx309(Heading, { level: 2, typographyType: "headingMedium", children: header }) : header }),
12706
- /* @__PURE__ */ jsx309(
12914
+ header && /* @__PURE__ */ jsx310("div", { className: Popover_default.header, children: typeof header === "string" ? /* @__PURE__ */ jsx310(Heading, { level: 2, typographyType: "headingMedium", children: header }) : header }),
12915
+ /* @__PURE__ */ jsx310(
12707
12916
  "div",
12708
12917
  {
12709
12918
  className: !hasTitle && withCloseButton ? Popover_default["content--closable--no-header"] : "",
12710
12919
  children
12711
12920
  }
12712
12921
  ),
12713
- withCloseButton && /* @__PURE__ */ jsx309(
12922
+ withCloseButton && /* @__PURE__ */ jsx310(
12714
12923
  Button,
12715
12924
  {
12716
12925
  icon: CloseIcon,
@@ -12737,7 +12946,7 @@ import {
12737
12946
  useRef as useRef32,
12738
12947
  useState as useState25
12739
12948
  } from "react";
12740
- import { jsx as jsx310 } from "react/jsx-runtime";
12949
+ import { jsx as jsx311 } from "react/jsx-runtime";
12741
12950
  var PopoverGroup = ({
12742
12951
  isOpen: propIsOpen,
12743
12952
  setIsOpen: propSetIsOpen,
@@ -12754,7 +12963,11 @@ var PopoverGroup = ({
12754
12963
  const generatedId = useId25();
12755
12964
  const uniquePopoverId = popoverId != null ? popoverId : `${generatedId}-popover`;
12756
12965
  const [floatOptions, setFloatOptions] = useState25();
12757
- const { refs, styles: positionStyles } = useFloatPosition(null, floatOptions);
12966
+ const {
12967
+ refs,
12968
+ styles: positionStyles,
12969
+ isPositioned
12970
+ } = useFloatPosition(null, floatOptions);
12758
12971
  const handleClose = () => {
12759
12972
  setOpen(false);
12760
12973
  onClose == null ? void 0 : onClose();
@@ -12783,8 +12996,8 @@ var PopoverGroup = ({
12783
12996
  (_a2 = buttonRef.current) == null ? void 0 : _a2.focus();
12784
12997
  }
12785
12998
  });
12786
- const elements = [popoverRef.current];
12787
- if (buttonRef.current) elements.push(buttonRef.current);
12999
+ const elements = [popoverRef];
13000
+ if (buttonRef) elements.push(buttonRef);
12788
13001
  useOnClickOutside(elements, () => {
12789
13002
  if (open) handleClose();
12790
13003
  });
@@ -12798,11 +13011,12 @@ var PopoverGroup = ({
12798
13011
  ref: combinedAnchorRef
12799
13012
  }) : child);
12800
13013
  });
12801
- return /* @__PURE__ */ jsx310(
13014
+ return /* @__PURE__ */ jsx311(
12802
13015
  PopoverContext,
12803
13016
  {
12804
13017
  value: {
12805
13018
  floatStyling: positionStyles.floating,
13019
+ isPositioned,
12806
13020
  setFloatOptions,
12807
13021
  floatingRef: combinedPopoverRef,
12808
13022
  popoverId: uniquePopoverId,
@@ -12856,7 +13070,7 @@ var ProgressTracker_default = {
12856
13070
 
12857
13071
  // src/components/ProgressTracker/ProgressTrackerItem.tsx
12858
13072
  import { useMemo as useMemo2 } from "react";
12859
- import { Fragment as Fragment11, jsx as jsx311, jsxs as jsxs121 } from "react/jsx-runtime";
13073
+ import { Fragment as Fragment12, jsx as jsx312, jsxs as jsxs120 } from "react/jsx-runtime";
12860
13074
  var toItemState = (active, completed, disabled) => {
12861
13075
  if (disabled) {
12862
13076
  return "disabled";
@@ -12901,10 +13115,10 @@ var ProgressTrackerItem = (props) => {
12901
13115
  };
12902
13116
  const stepNumberContent = useMemo2(() => {
12903
13117
  if (completed) {
12904
- return /* @__PURE__ */ jsx311(Icon, { icon: CheckIcon, iconSize: "small" });
13118
+ return /* @__PURE__ */ jsx312(Icon, { icon: CheckIcon, iconSize: "small" });
12905
13119
  }
12906
13120
  if (icon !== void 0) {
12907
- return /* @__PURE__ */ jsx311(Icon, { icon, iconSize: "small" });
13121
+ return /* @__PURE__ */ jsx312(Icon, { icon, iconSize: "small" });
12908
13122
  }
12909
13123
  return stepNumber;
12910
13124
  }, [completed, icon, index]);
@@ -12913,8 +13127,8 @@ var ProgressTrackerItem = (props) => {
12913
13127
  if (active) return "text-action-resting";
12914
13128
  }
12915
13129
  const isInactiveLink = disabled || active;
12916
- const stepContent = /* @__PURE__ */ jsxs121(Fragment11, { children: [
12917
- /* @__PURE__ */ jsx311(
13130
+ const stepContent = /* @__PURE__ */ jsxs120(Fragment12, { children: [
13131
+ /* @__PURE__ */ jsx312(
12918
13132
  Box,
12919
13133
  {
12920
13134
  display: "flex",
@@ -12929,7 +13143,7 @@ var ProgressTrackerItem = (props) => {
12929
13143
  children: stepNumberContent
12930
13144
  }
12931
13145
  ),
12932
- /* @__PURE__ */ jsx311(
13146
+ /* @__PURE__ */ jsx312(
12933
13147
  Typography,
12934
13148
  {
12935
13149
  as: "div",
@@ -12945,14 +13159,14 @@ var ProgressTrackerItem = (props) => {
12945
13159
  )
12946
13160
  ] });
12947
13161
  const ariaLabel = (htmlProps == null ? void 0 : htmlProps["aria-label"]) ? htmlProps == null ? void 0 : htmlProps["aria-label"] : `${children}, ${stepNumber}. ${completed ? t(texts24.completed) : t(texts24.uncompleted)}`;
12948
- return /* @__PURE__ */ jsx311(
13162
+ return /* @__PURE__ */ jsx312(
12949
13163
  Box,
12950
13164
  {
12951
13165
  as: "li",
12952
13166
  display: direction === "row" ? "flex" : void 0,
12953
13167
  "aria-current": active ? "step" : void 0,
12954
13168
  className: cn(ProgressTracker_default["list-item"], ProgressTracker_default[`list-item--${direction}`]),
12955
- children: handleStepChange ? /* @__PURE__ */ jsx311(
13169
+ children: handleStepChange ? /* @__PURE__ */ jsx312(
12956
13170
  Box,
12957
13171
  {
12958
13172
  as: StylelessButton,
@@ -12977,7 +13191,7 @@ var ProgressTrackerItem = (props) => {
12977
13191
  disabled,
12978
13192
  children: stepContent
12979
13193
  }
12980
- ) : /* @__PURE__ */ jsx311(
13194
+ ) : /* @__PURE__ */ jsx312(
12981
13195
  "div",
12982
13196
  {
12983
13197
  ...getBaseHTMLProps(
@@ -13013,7 +13227,7 @@ var texts24 = createTexts({
13013
13227
  });
13014
13228
 
13015
13229
  // src/components/ProgressTracker/ProgressTracker.tsx
13016
- import { jsx as jsx312 } from "react/jsx-runtime";
13230
+ import { jsx as jsx313 } from "react/jsx-runtime";
13017
13231
  var ProgressTracker = (() => {
13018
13232
  const Res = ({
13019
13233
  id,
@@ -13044,7 +13258,7 @@ var ProgressTracker = (() => {
13044
13258
  }, [children]);
13045
13259
  const isRow = direction === "row";
13046
13260
  const { "aria-label": ariaLabel } = htmlProps;
13047
- return /* @__PURE__ */ jsx312(
13261
+ return /* @__PURE__ */ jsx313(
13048
13262
  ProgressTrackerContext,
13049
13263
  {
13050
13264
  value: {
@@ -13052,12 +13266,12 @@ var ProgressTracker = (() => {
13052
13266
  handleStepChange: handleChange,
13053
13267
  direction
13054
13268
  },
13055
- children: /* @__PURE__ */ jsx312(
13269
+ children: /* @__PURE__ */ jsx313(
13056
13270
  "nav",
13057
13271
  {
13058
13272
  "aria-label": ariaLabel != null ? ariaLabel : t(texts25.stepProgression),
13059
13273
  ...getBaseHTMLProps(id, className, style, htmlProps, rest),
13060
- children: /* @__PURE__ */ jsx312(
13274
+ children: /* @__PURE__ */ jsx313(
13061
13275
  Box,
13062
13276
  {
13063
13277
  as: StylelessOList,
@@ -13117,7 +13331,7 @@ var ProgressBar_default = {
13117
13331
  };
13118
13332
 
13119
13333
  // src/components/ProgressBar/ProgressBar.tsx
13120
- import { jsx as jsx313, jsxs as jsxs122 } from "react/jsx-runtime";
13334
+ import { jsx as jsx314, jsxs as jsxs121 } from "react/jsx-runtime";
13121
13335
  var PROGRESS_BAR_SIZES = createSizes("small", "medium");
13122
13336
  var ProgressBar = ({
13123
13337
  label,
@@ -13143,9 +13357,9 @@ var ProgressBar = ({
13143
13357
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
13144
13358
  const fillPrecentage = hasValidValue && value / (max != null ? max : 1) * 100 + "%";
13145
13359
  const isIndeterminate = !hasValidValue && !hasErrorMessage;
13146
- return /* @__PURE__ */ jsxs122(Box, { width: "100%", className, style, children: [
13360
+ return /* @__PURE__ */ jsxs121(Box, { width: "100%", className, style, children: [
13147
13361
  renderLabel({ label, htmlFor: uniqueId }),
13148
- /* @__PURE__ */ jsx313(
13362
+ /* @__PURE__ */ jsx314(
13149
13363
  "progress",
13150
13364
  {
13151
13365
  id: uniqueId,
@@ -13161,13 +13375,13 @@ var ProgressBar = ({
13161
13375
  children: fillPrecentage
13162
13376
  }
13163
13377
  ),
13164
- /* @__PURE__ */ jsx313(
13378
+ /* @__PURE__ */ jsx314(
13165
13379
  Box,
13166
13380
  {
13167
13381
  width: getInputWidth(width),
13168
13382
  height: size2 === "small" ? "x0.75" : "x1.5",
13169
13383
  className: cn(ProgressBar_default.progress),
13170
- children: /* @__PURE__ */ jsx313(
13384
+ children: /* @__PURE__ */ jsx314(
13171
13385
  Box,
13172
13386
  {
13173
13387
  height: "100%",
@@ -13213,7 +13427,7 @@ var Search_default = {
13213
13427
 
13214
13428
  // src/components/Search/SearchSuggestionItem.tsx
13215
13429
  import { useEffect as useEffect30, useRef as useRef33 } from "react";
13216
- import { jsx as jsx314 } from "react/jsx-runtime";
13430
+ import { jsx as jsx315 } from "react/jsx-runtime";
13217
13431
  var SearchSuggestionItem = ({
13218
13432
  focus,
13219
13433
  ref,
@@ -13227,7 +13441,7 @@ var SearchSuggestionItem = ({
13227
13441
  (_a = itemRef.current) == null ? void 0 : _a.focus();
13228
13442
  }
13229
13443
  }, [focus]);
13230
- return /* @__PURE__ */ jsx314(
13444
+ return /* @__PURE__ */ jsx315(
13231
13445
  DropdownItem,
13232
13446
  {
13233
13447
  as: StylelessButton,
@@ -13240,7 +13454,7 @@ var SearchSuggestionItem = ({
13240
13454
  SearchSuggestionItem.displayName = "SearchSuggestionItem";
13241
13455
 
13242
13456
  // src/components/Search/SearchSuggestions.tsx
13243
- import { jsx as jsx315, jsxs as jsxs123 } from "react/jsx-runtime";
13457
+ import { jsx as jsx316, jsxs as jsxs122 } from "react/jsx-runtime";
13244
13458
  var SearchSuggestions = ({
13245
13459
  id,
13246
13460
  searchId,
@@ -13260,7 +13474,7 @@ var SearchSuggestions = ({
13260
13474
  const { t } = useTranslation();
13261
13475
  const [focus] = useRoveFocus(suggestions == null ? void 0 : suggestions.length, showSuggestions);
13262
13476
  const suggestionsToRender = maxSuggestions ? suggestions == null ? void 0 : suggestions.slice(maxSuggestions) : suggestions;
13263
- return /* @__PURE__ */ jsxs123(
13477
+ return /* @__PURE__ */ jsxs122(
13264
13478
  Paper,
13265
13479
  {
13266
13480
  ...getBaseHTMLProps(
@@ -13285,9 +13499,9 @@ var SearchSuggestions = ({
13285
13499
  overflowY: "scroll",
13286
13500
  marginBlock: "x0.25 0",
13287
13501
  children: [
13288
- /* @__PURE__ */ jsx315(DropdownHeader, { id: suggestionsHeaderId, children: t(texts26.searchSuggestions) }),
13289
- /* @__PURE__ */ jsx315(StylelessList, { role: "listbox", "aria-labelledby": suggestionsHeaderId, children: suggestionsToRender.map((suggestion, index) => {
13290
- return /* @__PURE__ */ jsx315("li", { role: "option", children: /* @__PURE__ */ jsx315(
13502
+ /* @__PURE__ */ jsx316(DropdownHeader, { id: suggestionsHeaderId, children: t(texts26.searchSuggestions) }),
13503
+ /* @__PURE__ */ jsx316(StylelessList, { role: "listbox", "aria-labelledby": suggestionsHeaderId, children: suggestionsToRender.map((suggestion, index) => {
13504
+ return /* @__PURE__ */ jsx316("li", { role: "option", children: /* @__PURE__ */ jsx316(
13291
13505
  SearchSuggestionItem,
13292
13506
  {
13293
13507
  index,
@@ -13323,7 +13537,7 @@ var texts26 = createTexts({
13323
13537
  });
13324
13538
 
13325
13539
  // src/components/Search/Search.tsx
13326
- import { Fragment as Fragment12, jsx as jsx316, jsxs as jsxs124 } from "react/jsx-runtime";
13540
+ import { Fragment as Fragment13, jsx as jsx317, jsxs as jsxs123 } from "react/jsx-runtime";
13327
13541
  var Search = ({
13328
13542
  componentSize = "medium",
13329
13543
  buttonProps,
@@ -13371,7 +13585,7 @@ var Search = ({
13371
13585
  } = buttonProps != null ? buttonProps : {};
13372
13586
  const hasSuggestions = !!context.suggestions;
13373
13587
  const showSearchButton = !!buttonProps && !!onClick;
13374
- const inputGroup = /* @__PURE__ */ jsxs124(
13588
+ const inputGroup = /* @__PURE__ */ jsxs123(
13375
13589
  HStack,
13376
13590
  {
13377
13591
  position: "relative",
@@ -13382,7 +13596,7 @@ var Search = ({
13382
13596
  Input_default["input-group"]
13383
13597
  ),
13384
13598
  children: [
13385
- showIcon && /* @__PURE__ */ jsx316(
13599
+ showIcon && /* @__PURE__ */ jsx317(
13386
13600
  Icon,
13387
13601
  {
13388
13602
  icon: SearchIcon,
@@ -13393,7 +13607,7 @@ var Search = ({
13393
13607
  )
13394
13608
  }
13395
13609
  ),
13396
- /* @__PURE__ */ jsx316(
13610
+ /* @__PURE__ */ jsx317(
13397
13611
  Box,
13398
13612
  {
13399
13613
  as: Input,
@@ -13423,8 +13637,8 @@ var Search = ({
13423
13637
  )
13424
13638
  }
13425
13639
  ),
13426
- hasSuggestions && /* @__PURE__ */ jsxs124(Fragment12, { children: [
13427
- /* @__PURE__ */ jsx316(
13640
+ hasSuggestions && /* @__PURE__ */ jsxs123(Fragment13, { children: [
13641
+ /* @__PURE__ */ jsx317(
13428
13642
  SearchSuggestions,
13429
13643
  {
13430
13644
  id: suggestionsId,
@@ -13435,9 +13649,9 @@ var Search = ({
13435
13649
  showSuggestions: context.showSuggestions
13436
13650
  }
13437
13651
  ),
13438
- /* @__PURE__ */ jsx316(VisuallyHidden, { id: suggestionsDescriptionId, children: t(texts27.useArrowKeys) })
13652
+ /* @__PURE__ */ jsx317(VisuallyHidden, { id: suggestionsDescriptionId, children: t(texts27.useArrowKeys) })
13439
13653
  ] }),
13440
- hasValue && /* @__PURE__ */ jsx316(
13654
+ hasValue && /* @__PURE__ */ jsx317(
13441
13655
  ClearButton,
13442
13656
  {
13443
13657
  size: "component",
@@ -13452,10 +13666,10 @@ var Search = ({
13452
13666
  ]
13453
13667
  }
13454
13668
  );
13455
- return /* @__PURE__ */ jsxs124("div", { children: [
13669
+ return /* @__PURE__ */ jsxs123("div", { children: [
13456
13670
  renderLabel({ htmlFor: uniqueId, label }),
13457
- /* @__PURE__ */ jsxs124("div", { children: [
13458
- showSearchButton ? /* @__PURE__ */ jsxs124(
13671
+ /* @__PURE__ */ jsxs123("div", { children: [
13672
+ showSearchButton ? /* @__PURE__ */ jsxs123(
13459
13673
  Grid,
13460
13674
  {
13461
13675
  className,
@@ -13467,7 +13681,7 @@ var Search = ({
13467
13681
  style,
13468
13682
  children: [
13469
13683
  inputGroup,
13470
- /* @__PURE__ */ jsx316(
13684
+ /* @__PURE__ */ jsx317(
13471
13685
  Button,
13472
13686
  {
13473
13687
  size: componentSize,
@@ -13514,7 +13728,7 @@ import {
13514
13728
  useRef as useRef34,
13515
13729
  useState as useState28
13516
13730
  } from "react";
13517
- import { jsx as jsx317 } from "react/jsx-runtime";
13731
+ import { jsx as jsx318 } from "react/jsx-runtime";
13518
13732
  var SearchAutocompleteWrapper = (props) => {
13519
13733
  const {
13520
13734
  value,
@@ -13577,7 +13791,7 @@ var SearchAutocompleteWrapper = (props) => {
13577
13791
  };
13578
13792
  const inputRef = useRef34(null);
13579
13793
  const suggestionsRef = useRef34(null);
13580
- useOnClickOutside([inputRef.current, suggestionsRef.current], () => {
13794
+ useOnClickOutside([inputRef, suggestionsRef], () => {
13581
13795
  closeSuggestions();
13582
13796
  });
13583
13797
  useOnKeyDown("Tab", () => closeSuggestions());
@@ -13590,7 +13804,7 @@ var SearchAutocompleteWrapper = (props) => {
13590
13804
  inputValue,
13591
13805
  onSugggestionClick: handleSuggestionClick
13592
13806
  };
13593
- return /* @__PURE__ */ jsx317(AutocompleteSearchContext, { value: contextProps, children });
13807
+ return /* @__PURE__ */ jsx318(AutocompleteSearchContext, { value: contextProps, children });
13594
13808
  };
13595
13809
  SearchAutocompleteWrapper.displayName = "SearchAutocompleteWrapper";
13596
13810
 
@@ -13606,7 +13820,7 @@ var Skeleton_default = {
13606
13820
  };
13607
13821
 
13608
13822
  // src/components/Skeleton/Skeleton.tsx
13609
- import { jsx as jsx318 } from "react/jsx-runtime";
13823
+ import { jsx as jsx319 } from "react/jsx-runtime";
13610
13824
  var Skeleton = ({
13611
13825
  width,
13612
13826
  height,
@@ -13616,7 +13830,7 @@ var Skeleton = ({
13616
13830
  ref,
13617
13831
  ...rest
13618
13832
  }) => {
13619
- return /* @__PURE__ */ jsx318(
13833
+ return /* @__PURE__ */ jsx319(
13620
13834
  Box,
13621
13835
  {
13622
13836
  width,
@@ -13636,7 +13850,7 @@ var SkipToContent_default = {
13636
13850
  };
13637
13851
 
13638
13852
  // src/components/SkipToContent/SkipToContent.tsx
13639
- import { jsx as jsx319 } from "react/jsx-runtime";
13853
+ import { jsx as jsx320 } from "react/jsx-runtime";
13640
13854
  var SkipToContent = ({
13641
13855
  text = "Til hovedinnhold",
13642
13856
  top = 0,
@@ -13646,7 +13860,7 @@ var SkipToContent = ({
13646
13860
  style,
13647
13861
  ...rest
13648
13862
  }) => {
13649
- return /* @__PURE__ */ jsx319(
13863
+ return /* @__PURE__ */ jsx320(
13650
13864
  Contrast,
13651
13865
  {
13652
13866
  padding: "x0.25",
@@ -13658,7 +13872,7 @@ var SkipToContent = ({
13658
13872
  className: cn(className, SkipToContent_default.wrapper),
13659
13873
  style,
13660
13874
  top,
13661
- children: /* @__PURE__ */ jsx319(Link, { ...rest, ...htmlProps, id, typographyType: "bodyShortMedium", children: text })
13875
+ children: /* @__PURE__ */ jsx320(Link, { ...rest, ...htmlProps, id, typographyType: "bodyShortMedium", children: text })
13662
13876
  }
13663
13877
  );
13664
13878
  };
@@ -13676,7 +13890,7 @@ var SplitButton_default = {
13676
13890
  };
13677
13891
 
13678
13892
  // src/components/SplitButton/SplitButton.tsx
13679
- import { jsx as jsx320, jsxs as jsxs125 } from "react/jsx-runtime";
13893
+ import { jsx as jsx321, jsxs as jsxs124 } from "react/jsx-runtime";
13680
13894
  var SplitButton = ({
13681
13895
  size: size2,
13682
13896
  primaryAction,
@@ -13691,8 +13905,8 @@ var SplitButton = ({
13691
13905
  purpose,
13692
13906
  size: size2
13693
13907
  };
13694
- return /* @__PURE__ */ jsxs125("div", { className: cn(className, SplitButton_default.container), ...rest, children: [
13695
- /* @__PURE__ */ jsx320(
13908
+ return /* @__PURE__ */ jsxs124("div", { className: cn(className, SplitButton_default.container), ...rest, children: [
13909
+ /* @__PURE__ */ jsx321(
13696
13910
  Button,
13697
13911
  {
13698
13912
  ...buttonStyleProps,
@@ -13701,8 +13915,8 @@ var SplitButton = ({
13701
13915
  className: SplitButton_default.main
13702
13916
  }
13703
13917
  ),
13704
- /* @__PURE__ */ jsxs125(OverflowMenuGroup, { isOpen, setIsOpen, children: [
13705
- /* @__PURE__ */ jsx320(
13918
+ /* @__PURE__ */ jsxs124(OverflowMenuGroup, { isOpen, setIsOpen, children: [
13919
+ /* @__PURE__ */ jsx321(
13706
13920
  Button,
13707
13921
  {
13708
13922
  ...buttonStyleProps,
@@ -13716,7 +13930,7 @@ var SplitButton = ({
13716
13930
  type: "button"
13717
13931
  }
13718
13932
  ),
13719
- /* @__PURE__ */ jsx320(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ jsx320(OverflowMenuList, { children: secondaryActions.map((item, index) => /* @__PURE__ */ jsx320(OverflowMenuButton, { ...item, children: item.children }, index)) }) })
13933
+ /* @__PURE__ */ jsx321(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ jsx321(OverflowMenuList, { children: secondaryActions.map((item, index) => /* @__PURE__ */ jsx321(OverflowMenuButton, { ...item, children: item.children }, index)) }) })
13720
13934
  ] })
13721
13935
  ] });
13722
13936
  };
@@ -13734,7 +13948,7 @@ var texts28 = createTexts({
13734
13948
  // src/components/Table/collapsible/CollapsibleRow.tsx
13735
13949
  import {
13736
13950
  Children as Children4,
13737
- Fragment as Fragment13,
13951
+ Fragment as Fragment14,
13738
13952
  cloneElement as cloneElement6,
13739
13953
  isValidElement as isValidElement6,
13740
13954
  useEffect as useEffect33,
@@ -13750,14 +13964,14 @@ var CollapsibleTableContext = createContext16({
13750
13964
  var useCollapsibleTableContext = () => useContext24(CollapsibleTableContext);
13751
13965
 
13752
13966
  // src/components/Table/normal/Body.tsx
13753
- import { jsx as jsx321 } from "react/jsx-runtime";
13754
- var Body = (props) => /* @__PURE__ */ jsx321("tbody", { ...props });
13967
+ import { jsx as jsx322 } from "react/jsx-runtime";
13968
+ var Body = (props) => /* @__PURE__ */ jsx322("tbody", { ...props });
13755
13969
  Body.displayName = "Table.Body";
13756
13970
 
13757
13971
  // src/components/Table/normal/Head.tsx
13758
13972
  import { createContext as createContext17, useContext as useContext25 } from "react";
13759
- import { jsx as jsx322 } from "react/jsx-runtime";
13760
- var Head = ({ children, ...rest }) => /* @__PURE__ */ jsx322("thead", { ...rest, children: /* @__PURE__ */ jsx322(HeadContext, { value: true, children }) });
13973
+ import { jsx as jsx323 } from "react/jsx-runtime";
13974
+ var Head = ({ children, ...rest }) => /* @__PURE__ */ jsx323("thead", { ...rest, children: /* @__PURE__ */ jsx323(HeadContext, { value: true, children }) });
13761
13975
  var HeadContext = createContext17(false);
13762
13976
  function useIsInTableHead() {
13763
13977
  const isInTableHead = useContext25(HeadContext);
@@ -13765,7 +13979,7 @@ function useIsInTableHead() {
13765
13979
  }
13766
13980
 
13767
13981
  // src/components/Table/normal/Cell.tsx
13768
- import { jsx as jsx323 } from "react/jsx-runtime";
13982
+ import { jsx as jsx324 } from "react/jsx-runtime";
13769
13983
  var Cell = ({
13770
13984
  children,
13771
13985
  type: _type,
@@ -13778,7 +13992,7 @@ var Cell = ({
13778
13992
  const type = _type != null ? _type : isInHead ? "head" : "data";
13779
13993
  const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
13780
13994
  const isComplexLayout = layout === "text and icon";
13781
- return isCollapsibleChild ? /* @__PURE__ */ jsx323(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ jsx323(
13995
+ return isCollapsibleChild ? /* @__PURE__ */ jsx324(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ jsx324(
13782
13996
  "th",
13783
13997
  {
13784
13998
  ...rest,
@@ -13787,26 +14001,26 @@ var Cell = ({
13787
14001
  !isComplexLayout && Table_default[`cell--${layout}`],
13788
14002
  Table_default["cell--head"]
13789
14003
  ),
13790
- children: isComplexLayout ? /* @__PURE__ */ jsx323("div", { className: Table_default.cell__inner, children }) : children
14004
+ children: isComplexLayout ? /* @__PURE__ */ jsx324("div", { className: Table_default.cell__inner, children }) : children
13791
14005
  }
13792
- ) : /* @__PURE__ */ jsx323(
14006
+ ) : /* @__PURE__ */ jsx324(
13793
14007
  "td",
13794
14008
  {
13795
14009
  ...rest,
13796
14010
  className: cn(className, !isComplexLayout && Table_default[`cell--${layout}`]),
13797
- children: isComplexLayout ? /* @__PURE__ */ jsx323("div", { className: Table_default.cell__inner, children }) : children
14011
+ children: isComplexLayout ? /* @__PURE__ */ jsx324("div", { className: Table_default.cell__inner, children }) : children
13798
14012
  }
13799
14013
  );
13800
14014
  };
13801
14015
  Cell.displayName = "Table.Cell";
13802
14016
 
13803
14017
  // src/components/Table/normal/Foot.tsx
13804
- import { jsx as jsx324 } from "react/jsx-runtime";
13805
- var Foot = (props) => /* @__PURE__ */ jsx324("tfoot", { ...props });
14018
+ import { jsx as jsx325 } from "react/jsx-runtime";
14019
+ var Foot = (props) => /* @__PURE__ */ jsx325("tfoot", { ...props });
13806
14020
  Foot.displayName = "Table.Foot";
13807
14021
 
13808
14022
  // src/components/Table/normal/Row.tsx
13809
- import { jsx as jsx325 } from "react/jsx-runtime";
14023
+ import { jsx as jsx326 } from "react/jsx-runtime";
13810
14024
  var Row = ({
13811
14025
  type: _type,
13812
14026
  mode = "normal",
@@ -13817,7 +14031,7 @@ var Row = ({
13817
14031
  }) => {
13818
14032
  const isInHeader = useIsInTableHead();
13819
14033
  const type = _type != null ? _type : isInHeader ? "head" : "body";
13820
- return /* @__PURE__ */ jsx325(
14034
+ return /* @__PURE__ */ jsx326(
13821
14035
  "tr",
13822
14036
  {
13823
14037
  className: cn(
@@ -13837,7 +14051,7 @@ var Row = ({
13837
14051
  Row.displayName = "Table.Row";
13838
14052
 
13839
14053
  // src/components/Table/normal/SortCell.tsx
13840
- import { jsx as jsx326, jsxs as jsxs126 } from "react/jsx-runtime";
14054
+ import { jsx as jsx327, jsxs as jsxs125 } from "react/jsx-runtime";
13841
14055
  var SortCell = ({
13842
14056
  isSorted,
13843
14057
  sortOrder,
@@ -13851,13 +14065,13 @@ var SortCell = ({
13851
14065
  if (sortOrder === "ascending") return ChevronDownIcon;
13852
14066
  return ChevronUpIcon;
13853
14067
  };
13854
- return /* @__PURE__ */ jsx326(
14068
+ return /* @__PURE__ */ jsx327(
13855
14069
  Cell,
13856
14070
  {
13857
14071
  type: "head",
13858
14072
  "aria-sort": isSorted && sortOrder ? sortOrder : void 0,
13859
14073
  ...rest,
13860
- children: /* @__PURE__ */ jsxs126(
14074
+ children: /* @__PURE__ */ jsxs125(
13861
14075
  StylelessButton,
13862
14076
  {
13863
14077
  onClick,
@@ -13866,7 +14080,7 @@ var SortCell = ({
13866
14080
  children: [
13867
14081
  children,
13868
14082
  " ",
13869
- /* @__PURE__ */ jsx326(Icon, { icon: SortIcon(), iconSize: "component" })
14083
+ /* @__PURE__ */ jsx327(Icon, { icon: SortIcon(), iconSize: "component" })
13870
14084
  ]
13871
14085
  }
13872
14086
  )
@@ -13885,7 +14099,7 @@ var texts29 = createTexts({
13885
14099
  });
13886
14100
 
13887
14101
  // src/components/Table/normal/Table.tsx
13888
- import { jsx as jsx327 } from "react/jsx-runtime";
14102
+ import { jsx as jsx328 } from "react/jsx-runtime";
13889
14103
  var Table = ({
13890
14104
  size: size2 = "medium",
13891
14105
  stickyHeader,
@@ -13904,7 +14118,7 @@ var Table = ({
13904
14118
  return "medium";
13905
14119
  }
13906
14120
  };
13907
- return /* @__PURE__ */ jsx327(
14121
+ return /* @__PURE__ */ jsx328(
13908
14122
  "table",
13909
14123
  {
13910
14124
  ...rest,
@@ -13931,7 +14145,7 @@ import {
13931
14145
  useRef as useRef35,
13932
14146
  useState as useState30
13933
14147
  } from "react";
13934
- import { jsx as jsx328 } from "react/jsx-runtime";
14148
+ import { jsx as jsx329 } from "react/jsx-runtime";
13935
14149
  var TableWrapper = ({ className, ...rest }) => {
13936
14150
  const themeContext = useContext26(ThemeContext);
13937
14151
  const container2 = themeContext == null ? void 0 : themeContext.el;
@@ -13956,7 +14170,7 @@ var TableWrapper = ({ className, ...rest }) => {
13956
14170
  window.addEventListener("resize", handleResize);
13957
14171
  return () => window.removeEventListener("resize", handleResize);
13958
14172
  });
13959
- return /* @__PURE__ */ jsx328(
14173
+ return /* @__PURE__ */ jsx329(
13960
14174
  "div",
13961
14175
  {
13962
14176
  ref: wrapperRef,
@@ -13983,7 +14197,7 @@ Table2.Row = Row;
13983
14197
  Table2.Foot = Foot;
13984
14198
 
13985
14199
  // src/components/Table/collapsible/CollapsibleRow.tsx
13986
- import { Fragment as Fragment14, jsx as jsx329, jsxs as jsxs127 } from "react/jsx-runtime";
14200
+ import { Fragment as Fragment15, jsx as jsx330, jsxs as jsxs126 } from "react/jsx-runtime";
13987
14201
  var CollapsibleRow = ({
13988
14202
  type: _type,
13989
14203
  className,
@@ -14026,24 +14240,24 @@ var CollapsibleRow = ({
14026
14240
  const collapsedRenderedChildren = isCollapsed && collapsedHeaderValues.length > 0 ? collapsedChildren.map(function(child, index) {
14027
14241
  const id = derivativeIdGenerator(prefix2, index.toString());
14028
14242
  collapsibleIds.push(id);
14029
- return /* @__PURE__ */ jsxs127(Fragment13, { children: [
14030
- /* @__PURE__ */ jsx329(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
14243
+ return /* @__PURE__ */ jsxs126(Fragment14, { children: [
14244
+ /* @__PURE__ */ jsx330(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
14031
14245
  isValidElement6(child) && cloneElement6(child, {
14032
14246
  collapsibleProps: { isCollapsibleChild: true }
14033
14247
  })
14034
14248
  ] }, `DL-${index}`);
14035
14249
  }) : null;
14036
- const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsx329(Row, { ...rowProps(), children: /* @__PURE__ */ jsx329(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ jsx329(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
14250
+ const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsx330(Row, { ...rowProps(), children: /* @__PURE__ */ jsx330(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ jsx330(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
14037
14251
  const definingColumnCells = childrenArray.slice().filter((column, index) => definingColumnIndex.indexOf(index) > -1).sort((a, b) => {
14038
14252
  return definingColumnIndex.indexOf(childrenArray.indexOf(a)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
14039
14253
  });
14040
14254
  const headerRow = () => {
14041
14255
  if (type !== "head" || !isCollapsed) return null;
14042
- return /* @__PURE__ */ jsx329(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs127(Fragment14, { children: [
14256
+ return /* @__PURE__ */ jsx330(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs126(Fragment15, { children: [
14043
14257
  definingColumnCells,
14044
- /* @__PURE__ */ jsxs127(Table2.Cell, { type: "head", layout: "center", children: [
14258
+ /* @__PURE__ */ jsxs126(Table2.Cell, { type: "head", layout: "center", children: [
14045
14259
  t(texts30.expand),
14046
- /* @__PURE__ */ jsx329(VisuallyHidden, { children: t(texts30.row) })
14260
+ /* @__PURE__ */ jsx330(VisuallyHidden, { children: t(texts30.row) })
14047
14261
  ] })
14048
14262
  ] }) });
14049
14263
  };
@@ -14051,16 +14265,16 @@ var CollapsibleRow = ({
14051
14265
  const rowWithChevron = () => {
14052
14266
  if (type !== "body" || !isCollapsed) return null;
14053
14267
  const iconState = childrenCollapsed ? "down" : "up";
14054
- return /* @__PURE__ */ jsxs127(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
14268
+ return /* @__PURE__ */ jsxs126(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
14055
14269
  definingColumnCells,
14056
- /* @__PURE__ */ jsx329(Table2.Cell, { children: /* @__PURE__ */ jsx329(
14270
+ /* @__PURE__ */ jsx330(Table2.Cell, { children: /* @__PURE__ */ jsx330(
14057
14271
  StylelessButton,
14058
14272
  {
14059
14273
  onClick: () => setChildrenCollapsed(!childrenCollapsed),
14060
14274
  "aria-expanded": !childrenCollapsed,
14061
14275
  "aria-controls": idList,
14062
14276
  className: cn(Table_default["collapse-button"], focusable),
14063
- children: /* @__PURE__ */ jsx329(
14277
+ children: /* @__PURE__ */ jsx330(
14064
14278
  Icon,
14065
14279
  {
14066
14280
  icon: AnimatedChevronUpDownIcon,
@@ -14072,13 +14286,13 @@ var CollapsibleRow = ({
14072
14286
  ) })
14073
14287
  ] });
14074
14288
  };
14075
- return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsxs127(Fragment14, { children: [
14289
+ return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsxs126(Fragment15, { children: [
14076
14290
  headerRow(),
14077
- type === "body" && /* @__PURE__ */ jsxs127(Fragment14, { children: [
14291
+ type === "body" && /* @__PURE__ */ jsxs126(Fragment15, { children: [
14078
14292
  rowWithChevron(),
14079
14293
  childrenCollapsed ? null : collapsedRows
14080
14294
  ] })
14081
- ] }) : /* @__PURE__ */ jsx329(Row, { ref, ...rowProps(), children });
14295
+ ] }) : /* @__PURE__ */ jsx330(Row, { ref, ...rowProps(), children });
14082
14296
  };
14083
14297
  CollapsibleRow.displayName = "CollapsibleTable.Row";
14084
14298
  var texts30 = createTexts({
@@ -14099,14 +14313,14 @@ var texts30 = createTexts({
14099
14313
  });
14100
14314
 
14101
14315
  // src/components/Table/collapsible/CollapsibleTable.tsx
14102
- import { jsx as jsx330 } from "react/jsx-runtime";
14316
+ import { jsx as jsx331 } from "react/jsx-runtime";
14103
14317
  var CollapsibleTable = ({
14104
14318
  isCollapsed,
14105
14319
  headerValues,
14106
14320
  definingColumnIndex = [0],
14107
14321
  ...rest
14108
14322
  }) => {
14109
- return /* @__PURE__ */ jsx330(
14323
+ return /* @__PURE__ */ jsx331(
14110
14324
  CollapsibleTableContext,
14111
14325
  {
14112
14326
  value: {
@@ -14114,7 +14328,7 @@ var CollapsibleTable = ({
14114
14328
  headerValues,
14115
14329
  definingColumnIndex
14116
14330
  },
14117
- children: /* @__PURE__ */ jsx330(Table2, { ...rest })
14331
+ children: /* @__PURE__ */ jsx331(Table2, { ...rest })
14118
14332
  }
14119
14333
  );
14120
14334
  };
@@ -14164,13 +14378,13 @@ import {
14164
14378
  useContext as useContext28,
14165
14379
  useLayoutEffect as useLayoutEffect4
14166
14380
  } from "react";
14167
- import { jsx as jsx331 } from "react/jsx-runtime";
14381
+ import { jsx as jsx332 } from "react/jsx-runtime";
14168
14382
  var TabContext = createContext19(null);
14169
14383
  function TabWidthContextProvider({
14170
14384
  children,
14171
14385
  onChangeWidths
14172
14386
  }) {
14173
- return /* @__PURE__ */ jsx331(
14387
+ return /* @__PURE__ */ jsx332(
14174
14388
  TabContext,
14175
14389
  {
14176
14390
  value: {
@@ -14202,7 +14416,7 @@ function useSetTabWidth(index, width) {
14202
14416
  }
14203
14417
 
14204
14418
  // src/components/Tabs/AddTabButton.tsx
14205
- import { jsx as jsx332, jsxs as jsxs128 } from "react/jsx-runtime";
14419
+ import { jsx as jsx333, jsxs as jsxs127 } from "react/jsx-runtime";
14206
14420
  var AddTabButton = ({
14207
14421
  ref,
14208
14422
  children,
@@ -14215,7 +14429,7 @@ var AddTabButton = ({
14215
14429
  const buttonRef = useRef36(null);
14216
14430
  const combinedRef = useCombinedRef(ref, buttonRef);
14217
14431
  const { tabContentDirection, size: size2 } = useTabsContext();
14218
- return /* @__PURE__ */ jsxs128(
14432
+ return /* @__PURE__ */ jsxs127(
14219
14433
  "button",
14220
14434
  {
14221
14435
  ...rest,
@@ -14228,8 +14442,8 @@ var AddTabButton = ({
14228
14442
  focus_default["focusable--inset"]
14229
14443
  ),
14230
14444
  children: [
14231
- /* @__PURE__ */ jsx332(Icon, { icon: PlusIcon, iconSize: "inherit" }),
14232
- /* @__PURE__ */ jsx332("span", { children })
14445
+ /* @__PURE__ */ jsx333(Icon, { icon: PlusIcon, iconSize: "inherit" }),
14446
+ /* @__PURE__ */ jsx333("span", { children })
14233
14447
  ]
14234
14448
  }
14235
14449
  );
@@ -14238,7 +14452,7 @@ AddTabButton.displayName = "AddTabButton";
14238
14452
 
14239
14453
  // src/components/Tabs/Tabs.tsx
14240
14454
  import { useEffect as useEffect34, useId as useId28, useRef as useRef37, useState as useState32 } from "react";
14241
- import { jsx as jsx333 } from "react/jsx-runtime";
14455
+ import { jsx as jsx334 } from "react/jsx-runtime";
14242
14456
  var TABS_SIZES = createSizes("small", "medium");
14243
14457
  var Tabs = ({
14244
14458
  id,
@@ -14269,7 +14483,7 @@ var Tabs = ({
14269
14483
  setActiveTab(activeTab);
14270
14484
  }
14271
14485
  }, [activeTab, thisActiveTab]);
14272
- return /* @__PURE__ */ jsx333(
14486
+ return /* @__PURE__ */ jsx334(
14273
14487
  TabsContext,
14274
14488
  {
14275
14489
  value: {
@@ -14284,7 +14498,7 @@ var Tabs = ({
14284
14498
  tabContentDirection,
14285
14499
  addTabButtonProps
14286
14500
  },
14287
- children: /* @__PURE__ */ jsx333(
14501
+ children: /* @__PURE__ */ jsx334(
14288
14502
  Box,
14289
14503
  {
14290
14504
  ...getBaseHTMLProps(uniqueId, className, style, htmlProps, rest),
@@ -14303,7 +14517,7 @@ import {
14303
14517
  useEffect as useEffect35,
14304
14518
  useRef as useRef38
14305
14519
  } from "react";
14306
- import { jsx as jsx334, jsxs as jsxs129 } from "react/jsx-runtime";
14520
+ import { jsx as jsx335, jsxs as jsxs128 } from "react/jsx-runtime";
14307
14521
  var Tab = ({
14308
14522
  active = false,
14309
14523
  icon,
@@ -14346,7 +14560,7 @@ var Tab = ({
14346
14560
  handleSelect();
14347
14561
  onKeyDown == null ? void 0 : onKeyDown(e);
14348
14562
  };
14349
- return /* @__PURE__ */ jsxs129(
14563
+ return /* @__PURE__ */ jsxs128(
14350
14564
  "button",
14351
14565
  {
14352
14566
  ...getBaseHTMLProps(
@@ -14371,8 +14585,8 @@ var Tab = ({
14371
14585
  onKeyDown: handleOnKeyDown,
14372
14586
  tabIndex: focus ? 0 : -1,
14373
14587
  children: [
14374
- icon && /* @__PURE__ */ jsx334(Icon, { icon, iconSize: "component" }),
14375
- /* @__PURE__ */ jsx334("span", { children })
14588
+ icon && /* @__PURE__ */ jsx335(Icon, { icon, iconSize: "component" }),
14589
+ /* @__PURE__ */ jsx335("span", { children })
14376
14590
  ]
14377
14591
  }
14378
14592
  );
@@ -14386,7 +14600,7 @@ import {
14386
14600
  isValidElement as isValidElement7,
14387
14601
  useState as useState33
14388
14602
  } from "react";
14389
- import { jsx as jsx335, jsxs as jsxs130 } from "react/jsx-runtime";
14603
+ import { jsx as jsx336, jsxs as jsxs129 } from "react/jsx-runtime";
14390
14604
  var TabList = ({
14391
14605
  children,
14392
14606
  id,
@@ -14444,7 +14658,7 @@ var TabList = ({
14444
14658
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
14445
14659
  ["--dds-tab-widths"]: widths.join(" ")
14446
14660
  };
14447
- return /* @__PURE__ */ jsx335(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ jsxs130(
14661
+ return /* @__PURE__ */ jsx336(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ jsxs129(
14448
14662
  "div",
14449
14663
  {
14450
14664
  ...rest,
@@ -14464,7 +14678,7 @@ var TabList = ({
14464
14678
  style: { ...style, ...customWidths },
14465
14679
  children: [
14466
14680
  tabListChildren,
14467
- hasButton && /* @__PURE__ */ jsx335(
14681
+ hasButton && /* @__PURE__ */ jsx336(
14468
14682
  AddTabButton,
14469
14683
  {
14470
14684
  index: tabListChildren ? tabListChildren.length : 0,
@@ -14478,7 +14692,7 @@ var TabList = ({
14478
14692
  TabList.displayName = "TabList";
14479
14693
 
14480
14694
  // src/components/Tabs/TabPanel.tsx
14481
- import { jsx as jsx336 } from "react/jsx-runtime";
14695
+ import { jsx as jsx337 } from "react/jsx-runtime";
14482
14696
  var TabPanel = ({
14483
14697
  active = false,
14484
14698
  children,
@@ -14488,7 +14702,7 @@ var TabPanel = ({
14488
14702
  htmlProps,
14489
14703
  padding = "x0.25",
14490
14704
  ...rest
14491
- }) => /* @__PURE__ */ jsx336(
14705
+ }) => /* @__PURE__ */ jsx337(
14492
14706
  Box,
14493
14707
  {
14494
14708
  padding,
@@ -14507,7 +14721,7 @@ import {
14507
14721
  cloneElement as cloneElement8,
14508
14722
  isValidElement as isValidElement8
14509
14723
  } from "react";
14510
- import { jsx as jsx337 } from "react/jsx-runtime";
14724
+ import { jsx as jsx338 } from "react/jsx-runtime";
14511
14725
  var TabPanels = ({ children, ref, ...rest }) => {
14512
14726
  const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
14513
14727
  const combinedRef = useCombinedRef(ref, tabPanelsRef);
@@ -14522,7 +14736,7 @@ var TabPanels = ({ children, ref, ...rest }) => {
14522
14736
  }
14523
14737
  });
14524
14738
  });
14525
- return /* @__PURE__ */ jsx337(Box, { ref: combinedRef, ...rest, children: panelChildren });
14739
+ return /* @__PURE__ */ jsx338(Box, { ref: combinedRef, ...rest, children: panelChildren });
14526
14740
  };
14527
14741
  TabPanels.displayName = "TabPanels";
14528
14742
 
@@ -14543,7 +14757,7 @@ var Tag_default = {
14543
14757
  };
14544
14758
 
14545
14759
  // src/components/Tag/Tag.tsx
14546
- import { jsx as jsx338, jsxs as jsxs131 } from "react/jsx-runtime";
14760
+ import { jsx as jsx339, jsxs as jsxs130 } from "react/jsx-runtime";
14547
14761
  var icons3 = {
14548
14762
  info: InfoIcon,
14549
14763
  danger: ErrorIcon,
@@ -14570,7 +14784,7 @@ var Tag = ({
14570
14784
  ...rest
14571
14785
  }) => {
14572
14786
  const icon = icons3[purpose];
14573
- return /* @__PURE__ */ jsxs131(
14787
+ return /* @__PURE__ */ jsxs130(
14574
14788
  TextOverflowEllipsisWrapper,
14575
14789
  {
14576
14790
  ...getBaseHTMLProps(
@@ -14587,8 +14801,8 @@ var Tag = ({
14587
14801
  rest
14588
14802
  ),
14589
14803
  children: [
14590
- withIcon && icon && /* @__PURE__ */ jsx338(Icon, { icon, iconSize: "component" }),
14591
- /* @__PURE__ */ jsx338(TextOverflowEllipsisInner, { children })
14804
+ withIcon && icon && /* @__PURE__ */ jsx339(Icon, { icon, iconSize: "component" }),
14805
+ /* @__PURE__ */ jsx339(TextOverflowEllipsisInner, { children })
14592
14806
  ]
14593
14807
  }
14594
14808
  );
@@ -14611,7 +14825,7 @@ var TextInput_default = {
14611
14825
  };
14612
14826
 
14613
14827
  // src/components/TextInput/TextInput.tsx
14614
- import { jsx as jsx339, jsxs as jsxs132 } from "react/jsx-runtime";
14828
+ import { jsx as jsx340, jsxs as jsxs131 } from "react/jsx-runtime";
14615
14829
  var TextInput = ({
14616
14830
  label,
14617
14831
  afterLabelContent,
@@ -14711,7 +14925,7 @@ var TextInput = ({
14711
14925
  disabled && TextInput_default["affix--disabled"]
14712
14926
  ];
14713
14927
  if (hasIcon) {
14714
- extendedInput = /* @__PURE__ */ jsxs132(
14928
+ extendedInput = /* @__PURE__ */ jsxs131(
14715
14929
  Box,
14716
14930
  {
14717
14931
  className: cn(
@@ -14720,7 +14934,7 @@ var TextInput = ({
14720
14934
  ),
14721
14935
  width: inputWidth,
14722
14936
  children: [
14723
- /* @__PURE__ */ jsx339(
14937
+ /* @__PURE__ */ jsx340(
14724
14938
  Icon,
14725
14939
  {
14726
14940
  icon,
@@ -14731,7 +14945,7 @@ var TextInput = ({
14731
14945
  )
14732
14946
  }
14733
14947
  ),
14734
- /* @__PURE__ */ jsx339(
14948
+ /* @__PURE__ */ jsx340(
14735
14949
  StatefulInput,
14736
14950
  {
14737
14951
  className: cn(
@@ -14745,7 +14959,7 @@ var TextInput = ({
14745
14959
  }
14746
14960
  );
14747
14961
  } else if (hasAffix) {
14748
- extendedInput = /* @__PURE__ */ jsxs132(
14962
+ extendedInput = /* @__PURE__ */ jsxs131(
14749
14963
  Box,
14750
14964
  {
14751
14965
  position: "relative",
@@ -14753,7 +14967,7 @@ var TextInput = ({
14753
14967
  alignItems: "center",
14754
14968
  width: inputWidth,
14755
14969
  children: [
14756
- prefix2 && /* @__PURE__ */ jsx339(
14970
+ prefix2 && /* @__PURE__ */ jsx340(
14757
14971
  "span",
14758
14972
  {
14759
14973
  ref: prefixRef,
@@ -14766,7 +14980,7 @@ var TextInput = ({
14766
14980
  children: prefix2
14767
14981
  }
14768
14982
  ),
14769
- /* @__PURE__ */ jsx339(
14983
+ /* @__PURE__ */ jsx340(
14770
14984
  StatefulInput,
14771
14985
  {
14772
14986
  style: {
@@ -14777,7 +14991,7 @@ var TextInput = ({
14777
14991
  ...generalInputProps
14778
14992
  }
14779
14993
  ),
14780
- suffix && /* @__PURE__ */ jsx339(
14994
+ suffix && /* @__PURE__ */ jsx340(
14781
14995
  "span",
14782
14996
  {
14783
14997
  ref: suffixRef,
@@ -14795,7 +15009,7 @@ var TextInput = ({
14795
15009
  }
14796
15010
  );
14797
15011
  }
14798
- return /* @__PURE__ */ jsxs132(
15012
+ return /* @__PURE__ */ jsxs131(
14799
15013
  "div",
14800
15014
  {
14801
15015
  className: cn(
@@ -14814,8 +15028,8 @@ var TextInput = ({
14814
15028
  readOnly,
14815
15029
  afterLabelContent
14816
15030
  }),
14817
- extendedInput ? extendedInput : /* @__PURE__ */ jsx339(Box, { as: StatefulInput, width: inputWidth, ...generalInputProps }),
14818
- hasBottomContainer && /* @__PURE__ */ jsxs132(
15031
+ extendedInput ? extendedInput : /* @__PURE__ */ jsx340(Box, { as: StatefulInput, width: inputWidth, ...generalInputProps }),
15032
+ hasBottomContainer && /* @__PURE__ */ jsxs131(
14819
15033
  Box,
14820
15034
  {
14821
15035
  display: "flex",
@@ -14860,7 +15074,7 @@ var ToggleBar_default = {
14860
15074
  };
14861
15075
 
14862
15076
  // src/components/ToggleBar/ToggleBar.tsx
14863
- import { jsx as jsx340, jsxs as jsxs133 } from "react/jsx-runtime";
15077
+ import { jsx as jsx341, jsxs as jsxs132 } from "react/jsx-runtime";
14864
15078
  var ToggleBar = (props) => {
14865
15079
  const {
14866
15080
  children,
@@ -14885,7 +15099,7 @@ var ToggleBar = (props) => {
14885
15099
  (e) => onChange && onChange(e, e.target.value)
14886
15100
  );
14887
15101
  const labelId = label && `${uniqueId}-label`;
14888
- return /* @__PURE__ */ jsx340(
15102
+ return /* @__PURE__ */ jsx341(
14889
15103
  ToggleBarContext,
14890
15104
  {
14891
15105
  value: {
@@ -14895,7 +15109,7 @@ var ToggleBar = (props) => {
14895
15109
  name,
14896
15110
  value: groupValue
14897
15111
  },
14898
- children: /* @__PURE__ */ jsxs133(
15112
+ children: /* @__PURE__ */ jsxs132(
14899
15113
  VStack,
14900
15114
  {
14901
15115
  ...getBaseHTMLProps(id, className, style, htmlProps, rest),
@@ -14904,8 +15118,8 @@ var ToggleBar = (props) => {
14904
15118
  role: "radiogroup",
14905
15119
  "aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
14906
15120
  children: [
14907
- label && /* @__PURE__ */ jsx340(Typography, { id: labelId, as: "span", typographyType: "labelMedium", children: label }),
14908
- /* @__PURE__ */ jsx340("div", { className: ToggleBar_default.bar, children })
15121
+ label && /* @__PURE__ */ jsx341(Typography, { id: labelId, as: "span", typographyType: "labelMedium", children: label }),
15122
+ /* @__PURE__ */ jsx341("div", { className: ToggleBar_default.bar, children })
14909
15123
  ]
14910
15124
  }
14911
15125
  )
@@ -14916,7 +15130,7 @@ ToggleBar.displayName = "ToggleBar";
14916
15130
 
14917
15131
  // src/components/ToggleBar/ToggleRadio.tsx
14918
15132
  import { useId as useId31 } from "react";
14919
- import { jsx as jsx341, jsxs as jsxs134 } from "react/jsx-runtime";
15133
+ import { jsx as jsx342, jsxs as jsxs133 } from "react/jsx-runtime";
14920
15134
  var typographyTypes = {
14921
15135
  large: "bodyShortLarge",
14922
15136
  medium: "bodyShortMedium",
@@ -14959,13 +15173,13 @@ var ToggleRadio = ({
14959
15173
  const hasLabel = !!label;
14960
15174
  const hasIcon = !!icon;
14961
15175
  const contentTypeCn = !hasLabel ? "just-icon" : !hasIcon ? "just-text" : "with-text-and-icon";
14962
- return /* @__PURE__ */ jsxs134(
15176
+ return /* @__PURE__ */ jsxs133(
14963
15177
  "label",
14964
15178
  {
14965
15179
  htmlFor: uniqueId,
14966
15180
  className: cn(ToggleBar_default.label, ToggleBar_default[`label--${group.purpose}`]),
14967
15181
  children: [
14968
- /* @__PURE__ */ jsx341(
15182
+ /* @__PURE__ */ jsx342(
14969
15183
  HiddenInput,
14970
15184
  {
14971
15185
  ...getBaseHTMLProps(
@@ -14984,7 +15198,7 @@ var ToggleRadio = ({
14984
15198
  "aria-labelledby": ariaLabelledBy
14985
15199
  }
14986
15200
  ),
14987
- /* @__PURE__ */ jsxs134(
15201
+ /* @__PURE__ */ jsxs133(
14988
15202
  Typography,
14989
15203
  {
14990
15204
  as: "span",
@@ -14997,8 +15211,8 @@ var ToggleRadio = ({
14997
15211
  focus_default["focus-styled-sibling"]
14998
15212
  ),
14999
15213
  children: [
15000
- icon && /* @__PURE__ */ jsx341(Icon, { icon, iconSize: "component" }),
15001
- label && /* @__PURE__ */ jsx341("span", { children: label })
15214
+ icon && /* @__PURE__ */ jsx342(Icon, { icon, iconSize: "component" }),
15215
+ label && /* @__PURE__ */ jsx342("span", { children: label })
15002
15216
  ]
15003
15217
  }
15004
15218
  )
@@ -15020,7 +15234,7 @@ var ToggleButton_default = {
15020
15234
  };
15021
15235
 
15022
15236
  // src/components/ToggleButton/ToggleButton.tsx
15023
- import { jsx as jsx342, jsxs as jsxs135 } from "react/jsx-runtime";
15237
+ import { jsx as jsx343, jsxs as jsxs134 } from "react/jsx-runtime";
15024
15238
  var ToggleButton = ({
15025
15239
  id,
15026
15240
  label,
@@ -15034,8 +15248,8 @@ var ToggleButton = ({
15034
15248
  const generatedId = useId32();
15035
15249
  const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
15036
15250
  const hasIcon = !!icon;
15037
- return /* @__PURE__ */ jsxs135(Box, { as: "label", htmlFor: uniqueId, width: "fit-content", children: [
15038
- /* @__PURE__ */ jsx342(
15251
+ return /* @__PURE__ */ jsxs134(Box, { as: "label", htmlFor: uniqueId, width: "fit-content", children: [
15252
+ /* @__PURE__ */ jsx343(
15039
15253
  HiddenInput,
15040
15254
  {
15041
15255
  ...getBaseHTMLProps(
@@ -15048,7 +15262,7 @@ var ToggleButton = ({
15048
15262
  type: "checkbox"
15049
15263
  }
15050
15264
  ),
15051
- /* @__PURE__ */ jsxs135(
15265
+ /* @__PURE__ */ jsxs134(
15052
15266
  "span",
15053
15267
  {
15054
15268
  className: cn(
@@ -15059,7 +15273,7 @@ var ToggleButton = ({
15059
15273
  focus_default["focus-styled-sibling"]
15060
15274
  ),
15061
15275
  children: [
15062
- hasIcon && /* @__PURE__ */ jsx342(Icon, { icon, iconSize: "component" }),
15276
+ hasIcon && /* @__PURE__ */ jsx343(Icon, { icon, iconSize: "component" }),
15063
15277
  " ",
15064
15278
  label
15065
15279
  ]
@@ -15071,7 +15285,7 @@ ToggleButton.displayName = "ToggleButton";
15071
15285
 
15072
15286
  // src/components/ToggleButton/ToggleButtonGroup.tsx
15073
15287
  import { useId as useId33 } from "react";
15074
- import { jsx as jsx343, jsxs as jsxs136 } from "react/jsx-runtime";
15288
+ import { jsx as jsx344, jsxs as jsxs135 } from "react/jsx-runtime";
15075
15289
  var ToggleButtonGroup = (props) => {
15076
15290
  const {
15077
15291
  children,
@@ -15086,7 +15300,7 @@ var ToggleButtonGroup = (props) => {
15086
15300
  } = props;
15087
15301
  const generatedId = useId33();
15088
15302
  const uniqueLabelId = labelId != null ? labelId : `${generatedId}-ToggleButtonGroupLabel`;
15089
- return /* @__PURE__ */ jsxs136(
15303
+ return /* @__PURE__ */ jsxs135(
15090
15304
  "div",
15091
15305
  {
15092
15306
  ...getBaseHTMLProps(id, className, style, htmlProps, rest),
@@ -15094,7 +15308,7 @@ var ToggleButtonGroup = (props) => {
15094
15308
  "aria-labelledby": label ? uniqueLabelId : void 0,
15095
15309
  children: [
15096
15310
  renderGroupLabel({ label, id: uniqueLabelId }),
15097
- /* @__PURE__ */ jsx343(Box, { display: "flex", flexWrap: "wrap", gap: "x0.75", flexDirection: direction, children })
15311
+ /* @__PURE__ */ jsx344(Box, { display: "flex", flexWrap: "wrap", gap: "x0.75", flexDirection: direction, children })
15098
15312
  ]
15099
15313
  }
15100
15314
  );
@@ -15313,6 +15527,7 @@ export {
15313
15527
  MoreHorizontalIcon,
15314
15528
  MoreVerticalIcon,
15315
15529
  NativeSelect,
15530
+ NewsPopover,
15316
15531
  NotarialIcon,
15317
15532
  NotebookPenIcon,
15318
15533
  NotificationsIcon,