@norges-domstoler/dds-components 22.10.0 → 23.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -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",
@@ -348,6 +346,21 @@ var TEXT_COLORS = [
348
346
  "icon-subtle",
349
347
  "icon-medium"
350
348
  ];
349
+ var ICON_COLORS = [
350
+ ...TEXT_COLORS,
351
+ "brand-primary-default",
352
+ "brand-primary-strong",
353
+ "brand-primary-medium",
354
+ "brand-primary-subtle",
355
+ "brand-secondary-default",
356
+ "brand-secondary-strong",
357
+ "brand-secondary-medium",
358
+ "brand-secondary-subtle",
359
+ "brand-tertiary-default",
360
+ "brand-tertiary-strong",
361
+ "brand-tertiary-medium",
362
+ "brand-tertiary-subtle"
363
+ ];
351
364
  var TEXT_COLOR_VALUES = TEXT_COLORS.reduce(
352
365
  (acc, key) => {
353
366
  acc[key] = `var(--dds-color-${key})`;
@@ -355,6 +368,13 @@ var TEXT_COLOR_VALUES = TEXT_COLORS.reduce(
355
368
  },
356
369
  {}
357
370
  );
371
+ var ICON_COLOR_VALUES = ICON_COLORS.reduce(
372
+ (acc, key) => {
373
+ acc[key] = `var(--dds-color-${key})`;
374
+ return acc;
375
+ },
376
+ {}
377
+ );
358
378
  var isTextColor = (value) => {
359
379
  return typeof value === "string" && TEXT_COLORS.includes(value);
360
380
  };
@@ -362,6 +382,13 @@ var getTextColor = (color) => {
362
382
  if (isTextColor(color)) return TEXT_COLOR_VALUES[color];
363
383
  return color;
364
384
  };
385
+ var isIconColor = (value) => {
386
+ return typeof value === "string" && ICON_COLORS.includes(value);
387
+ };
388
+ var getIconColor = (color) => {
389
+ if (isIconColor(color)) return ICON_COLOR_VALUES[color];
390
+ return color;
391
+ };
365
392
 
366
393
  // src/utils/combineHandlers.tsx
367
394
  var combineHandlers = (handler1, handler2) => {
@@ -552,7 +579,7 @@ import { useEffect as useEffect5 } from "react";
552
579
  function useOnClickOutside(element, handler) {
553
580
  useEffect5(() => {
554
581
  const listener = (event) => {
555
- const elements = Array.isArray(element) ? element : [element].filter(Boolean);
582
+ 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
583
  const hasClickedInside = elements.some(
557
584
  (el) => el == null ? void 0 : el.contains(event.target)
558
585
  );
@@ -1052,6 +1079,7 @@ var layout_default = {
1052
1079
  "dds-a-i": "layout_dds-a-i",
1053
1080
  "dds-a-c": "layout_dds-a-c",
1054
1081
  "dds-j-i": "layout_dds-j-i",
1082
+ "dds-pl-i": "layout_dds-pl-i",
1055
1083
  "dds-j-c": "layout_dds-j-c",
1056
1084
  "dds-wrap": "layout_dds-wrap",
1057
1085
  "dds-basis": "layout_dds-basis",
@@ -1220,6 +1248,7 @@ var Box = ({
1220
1248
  alignItems,
1221
1249
  alignContent,
1222
1250
  justifyItems,
1251
+ placeItems,
1223
1252
  justifyContent,
1224
1253
  flexWrap,
1225
1254
  flexBasis,
@@ -1258,6 +1287,7 @@ var Box = ({
1258
1287
  ...getResponsiveCSSProperties(alignItems, "r", "a-i"),
1259
1288
  ...getResponsiveCSSProperties(alignContent, "r", "a-c"),
1260
1289
  ...getResponsiveCSSProperties(justifyItems, "r", "j-i"),
1290
+ ...getResponsiveCSSProperties(placeItems, "r", "pl-i"),
1261
1291
  ...getResponsiveCSSProperties(justifyContent, "r", "j-c"),
1262
1292
  ...getResponsiveCSSProperties(flexWrap, "r", "wrap"),
1263
1293
  ...getResponsiveCSSProperties(flexBasis, "r", "basis"),
@@ -1301,6 +1331,7 @@ var Box = ({
1301
1331
  alignItems && layout_default["dds-a-i"],
1302
1332
  justifyContent && layout_default["dds-j-c"],
1303
1333
  justifyItems && layout_default["dds-j-i"],
1334
+ placeItems && layout_default["dds-pl-i"],
1304
1335
  flexWrap && layout_default["dds-wrap"],
1305
1336
  flexBasis && layout_default["dds-basis"],
1306
1337
  flexFlow && layout_default["dds-flow"],
@@ -1619,7 +1650,42 @@ var commonTexts = createTexts({
1619
1650
  nn: "Innlastning p\xE5g\xE5r",
1620
1651
  en: "Loading",
1621
1652
  se: "Vie\u017E\u017Eamin"
1622
- }
1653
+ },
1654
+ nextPage: {
1655
+ nb: "Neste side",
1656
+ no: "Neste side",
1657
+ nn: "Neste side",
1658
+ en: "Next page",
1659
+ se: "Boahte siidu"
1660
+ },
1661
+ previousPage: {
1662
+ nb: "Forrige side",
1663
+ no: "Forrige side",
1664
+ nn: "F\xF8rre side",
1665
+ en: "Previous page",
1666
+ se: "Ovddit siidu"
1667
+ },
1668
+ page: (page) => ({
1669
+ nb: `Side ${page}`,
1670
+ no: `Side ${page}`,
1671
+ nn: `Side ${page}`,
1672
+ en: `Page ${page}`,
1673
+ se: `Siidu ${page}`
1674
+ }),
1675
+ currentPage: (page) => ({
1676
+ nb: `N\xE5v\xE6rende side (${page})`,
1677
+ no: `N\xE5v\xE6rende side (${page})`,
1678
+ nn: `Noverande side (${page})`,
1679
+ en: `Current page (${page})`,
1680
+ se: `D\xE1la siidu (${page})`
1681
+ }),
1682
+ pageOf: (current, max) => ({
1683
+ nb: `Side ${current} av ${max}`,
1684
+ no: `Side ${current} av ${max}`,
1685
+ nn: `Side ${current} ${max}`,
1686
+ en: `Page ${current} of ${max}`,
1687
+ se: `Siidu ${current} ${max}`
1688
+ })
1623
1689
  });
1624
1690
 
1625
1691
  // src/components/Spinner/Spinner.tsx
@@ -2078,7 +2144,7 @@ function SvgWrapper({
2078
2144
  "svg",
2079
2145
  {
2080
2146
  ...props,
2081
- fill: getTextColor(fill),
2147
+ fill: getIconColor(fill),
2082
2148
  xmlns: "http://www.w3.org/2000/svg",
2083
2149
  viewBox: `0 0 ${size} ${size}`,
2084
2150
  className: cn(className, Icon_default.svg),
@@ -3823,7 +3889,7 @@ var getColorCn = (color) => {
3823
3889
  };
3824
3890
 
3825
3891
  // src/components/Typography/Typography/Typography.tsx
3826
- import { jsx as jsx197, jsxs as jsxs70 } from "react/jsx-runtime";
3892
+ import { jsx as jsx197 } from "react/jsx-runtime";
3827
3893
  var isAnchorProps = (props) => props.typographyType === "a";
3828
3894
  var Typography = (props) => {
3829
3895
  const {
@@ -3844,16 +3910,11 @@ var Typography = (props) => {
3844
3910
  const as = propAs ? propAs : getElementType(typographyType);
3845
3911
  const typographyCn = getTypographyCn(typographyType);
3846
3912
  let relProp;
3847
- let targetProp;
3848
- let externalLinkProp;
3849
3913
  if (isAnchorProps(props)) {
3850
- const { externalLink, target } = props;
3851
3914
  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
3915
  }
3855
- return /* @__PURE__ */ jsxs70(
3856
- ElementAs,
3916
+ return /* @__PURE__ */ jsx197(
3917
+ Box,
3857
3918
  {
3858
3919
  ...getBaseHTMLProps(
3859
3920
  id,
@@ -3861,7 +3922,6 @@ var Typography = (props) => {
3861
3922
  className,
3862
3923
  getColorCn(color),
3863
3924
  Typography_default.container,
3864
- externalLinkProp && typographyStyles_default["a--external"],
3865
3925
  typographyStyles_default[typographyCn],
3866
3926
  withMargins && typographyStyles_default[`${typographyCn}--margins`],
3867
3927
  isLegend(as) && typographyStyles_default.legend,
@@ -3881,11 +3941,7 @@ var Typography = (props) => {
3881
3941
  ),
3882
3942
  as,
3883
3943
  rel: relProp,
3884
- target: targetProp,
3885
- children: [
3886
- children,
3887
- externalLinkProp && /* @__PURE__ */ jsx197(Icon, { icon: OpenExternalIcon, iconSize: "inherit" })
3888
- ]
3944
+ children
3889
3945
  }
3890
3946
  );
3891
3947
  };
@@ -3977,7 +4033,7 @@ var Label_default = {
3977
4033
  };
3978
4034
 
3979
4035
  // src/components/Typography/Label/Label.tsx
3980
- import { Fragment, jsx as jsx200, jsxs as jsxs71 } from "react/jsx-runtime";
4036
+ import { Fragment, jsx as jsx200, jsxs as jsxs70 } from "react/jsx-runtime";
3981
4037
  var Label = ({
3982
4038
  showRequiredStyling,
3983
4039
  readOnly,
@@ -3989,7 +4045,7 @@ var Label = ({
3989
4045
  afterLabelContent,
3990
4046
  ...rest
3991
4047
  }) => {
3992
- const content = /* @__PURE__ */ jsxs71(Fragment, { children: [
4048
+ const content = /* @__PURE__ */ jsxs70(Fragment, { children: [
3993
4049
  readOnly && /* @__PURE__ */ jsx200(
3994
4050
  Icon,
3995
4051
  {
@@ -4010,7 +4066,7 @@ var Label = ({
4010
4066
  rest
4011
4067
  )
4012
4068
  };
4013
- const render = afterLabelContent ? /* @__PURE__ */ jsxs71(
4069
+ const render = afterLabelContent ? /* @__PURE__ */ jsxs70(
4014
4070
  Typography,
4015
4071
  {
4016
4072
  typographyType: "labelMedium",
@@ -4068,7 +4124,7 @@ var Legend = ({
4068
4124
  Legend.displayName = "Legend";
4069
4125
 
4070
4126
  // src/components/Typography/Link/Link.tsx
4071
- import { jsx as jsx202, jsxs as jsxs72 } from "react/jsx-runtime";
4127
+ import { jsx as jsx202 } from "react/jsx-runtime";
4072
4128
  var Link = ({
4073
4129
  id,
4074
4130
  className,
@@ -4077,21 +4133,19 @@ var Link = ({
4077
4133
  typographyType,
4078
4134
  withMargins,
4079
4135
  withVisited,
4080
- external,
4081
- target,
4082
4136
  style,
4083
4137
  color,
4084
4138
  as: propAs,
4085
4139
  isAnchor: propIsAnchor,
4140
+ withIconStyling,
4086
4141
  ...rest
4087
4142
  }) => {
4088
4143
  const as = propAs ? propAs : "a";
4089
4144
  const isAnchor = as === "a" || propIsAnchor;
4090
4145
  const aProps = isAnchor ? {
4091
- rel: "noopener noreferrer",
4092
- target: external ? "_blank" : target
4146
+ rel: "noopener noreferrer"
4093
4147
  } : {};
4094
- return /* @__PURE__ */ jsxs72(
4148
+ return /* @__PURE__ */ jsx202(
4095
4149
  ElementAs,
4096
4150
  {
4097
4151
  as,
@@ -4100,7 +4154,7 @@ var Link = ({
4100
4154
  cn(
4101
4155
  className,
4102
4156
  typographyStyles_default.a,
4103
- external && typographyStyles_default["a--external"],
4157
+ withIconStyling && typographyStyles_default["a--with-icon"],
4104
4158
  withVisited && typographyStyles_default["a--visited"],
4105
4159
  typographyType && typographyStyles_default[getTypographyCn(typographyType)],
4106
4160
  typographyType && withMargins && typographyStyles_default[`${getTypographyCn(typographyType)}--margins`],
@@ -4115,17 +4169,7 @@ var Link = ({
4115
4169
  rest
4116
4170
  ),
4117
4171
  ...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
- ]
4172
+ children
4129
4173
  }
4130
4174
  );
4131
4175
  };
@@ -4154,7 +4198,7 @@ var Paragraph = ({
4154
4198
  Paragraph.displayName = "Paragraph";
4155
4199
 
4156
4200
  // src/components/Accordion/AccordionHeader.tsx
4157
- import { jsx as jsx204, jsxs as jsxs73 } from "react/jsx-runtime";
4201
+ import { jsx as jsx204, jsxs as jsxs71 } from "react/jsx-runtime";
4158
4202
  var AccordionHeader = ({
4159
4203
  children,
4160
4204
  className,
@@ -4185,7 +4229,7 @@ var AccordionHeader = ({
4185
4229
  rest
4186
4230
  ),
4187
4231
  ...restHeaderProps,
4188
- children: /* @__PURE__ */ jsxs73(
4232
+ children: /* @__PURE__ */ jsxs71(
4189
4233
  "div",
4190
4234
  {
4191
4235
  className: cn(
@@ -4252,7 +4296,7 @@ var BackLink_default = {
4252
4296
  };
4253
4297
 
4254
4298
  // src/components/BackLink/BackLink.tsx
4255
- import { jsx as jsx206, jsxs as jsxs74 } from "react/jsx-runtime";
4299
+ import { jsx as jsx206, jsxs as jsxs72 } from "react/jsx-runtime";
4256
4300
  var BackLink = ({ label, ref, as = "a", ...rest }) => {
4257
4301
  const { t } = useTranslation();
4258
4302
  return /* @__PURE__ */ jsx206(
@@ -4261,7 +4305,7 @@ var BackLink = ({ label, ref, as = "a", ...rest }) => {
4261
4305
  ref,
4262
4306
  "aria-label": t(texts.goBack),
4263
4307
  className: typographyStyles_default["body-short-medium"],
4264
- children: /* @__PURE__ */ jsxs74(
4308
+ children: /* @__PURE__ */ jsxs72(
4265
4309
  HStack,
4266
4310
  {
4267
4311
  as,
@@ -4353,7 +4397,7 @@ var ButtonGroupContext = createContext4({});
4353
4397
  var useButtonGroupContext = () => useContext4(ButtonGroupContext);
4354
4398
 
4355
4399
  // src/components/Button/Button.tsx
4356
- import { Fragment as Fragment2, jsx as jsx208, jsxs as jsxs75 } from "react/jsx-runtime";
4400
+ import { Fragment as Fragment2, jsx as jsx208, jsxs as jsxs73 } from "react/jsx-runtime";
4357
4401
  var Button = ({
4358
4402
  as: propAs,
4359
4403
  children,
@@ -4408,8 +4452,8 @@ var Button = ({
4408
4452
  iconState
4409
4453
  }
4410
4454
  );
4411
- const content = /* @__PURE__ */ jsxs75(Fragment2, { children: [
4412
- hasLabel && /* @__PURE__ */ jsxs75(Fragment2, { children: [
4455
+ const content = /* @__PURE__ */ jsxs73(Fragment2, { children: [
4456
+ hasLabel && /* @__PURE__ */ jsxs73(Fragment2, { children: [
4413
4457
  iconPosition === "left" && iconElement,
4414
4458
  /* @__PURE__ */ jsx208("span", { "aria-hidden": loading, className: cn(loading && invisible), children }),
4415
4459
  iconPosition === "right" && iconElement
@@ -4707,7 +4751,7 @@ var VisuallyHidden = ({
4707
4751
  VisuallyHidden.displayName = "VisuallyHidden";
4708
4752
 
4709
4753
  // src/components/Toggle/Toggle.tsx
4710
- import { Fragment as Fragment3, jsx as jsx214, jsxs as jsxs76 } from "react/jsx-runtime";
4754
+ import { Fragment as Fragment3, jsx as jsx214, jsxs as jsxs74 } from "react/jsx-runtime";
4711
4755
  var TOGGLE_SIZES = createSizes("medium", "large");
4712
4756
  var Toggle = ({
4713
4757
  id,
@@ -4735,7 +4779,7 @@ var Toggle = ({
4735
4779
  onChange
4736
4780
  });
4737
4781
  const isColorScheme = variant === "colorScheme";
4738
- const marker = isColorScheme ? /* @__PURE__ */ jsxs76(Fragment3, { children: [
4782
+ const marker = isColorScheme ? /* @__PURE__ */ jsxs74(Fragment3, { children: [
4739
4783
  /* @__PURE__ */ jsx214(
4740
4784
  Icon,
4741
4785
  {
@@ -4754,7 +4798,7 @@ var Toggle = ({
4754
4798
  )
4755
4799
  ] }) : /* @__PURE__ */ jsx214(Icon, { className: Toggle_default.checkmark, icon: CheckIcon, iconSize });
4756
4800
  console.log("disabled", disabled);
4757
- return /* @__PURE__ */ jsxs76(
4801
+ return /* @__PURE__ */ jsxs74(
4758
4802
  "label",
4759
4803
  {
4760
4804
  htmlFor: uniqueId,
@@ -4793,7 +4837,7 @@ var Toggle = ({
4793
4837
  }
4794
4838
  ),
4795
4839
  /* @__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: [
4840
+ /* @__PURE__ */ jsxs74("span", { className: cn(readOnly && Toggle_default["labeltext--readonly"]), children: [
4797
4841
  readOnly && /* @__PURE__ */ jsx214(
4798
4842
  Icon,
4799
4843
  {
@@ -4957,7 +5001,7 @@ var OverflowMenuGroup = ({
4957
5001
  if (isOpen) onClose == null ? void 0 : onClose();
4958
5002
  toggle();
4959
5003
  };
4960
- useOnClickOutside([menuRef.current, buttonRef.current], () => {
5004
+ useOnClickOutside([menuRef, buttonRef], () => {
4961
5005
  handleClose();
4962
5006
  });
4963
5007
  useOnKeyDown(["Esc", "Escape"], () => {
@@ -4996,7 +5040,7 @@ var OverflowMenuGroup = ({
4996
5040
  OverflowMenuGroup.displayName = "OverflowMenuGroup";
4997
5041
 
4998
5042
  // src/components/Breadcrumbs/Breadcrumbs.tsx
4999
- import { Fragment as Fragment4, jsx as jsx222, jsxs as jsxs77 } from "react/jsx-runtime";
5043
+ import { Fragment as Fragment4, jsx as jsx222, jsxs as jsxs75 } from "react/jsx-runtime";
5000
5044
  var Breadcrumbs = ({
5001
5045
  children,
5002
5046
  smallScreenBreakpoint,
@@ -5023,7 +5067,7 @@ var Breadcrumbs = ({
5023
5067
  padding: "x0"
5024
5068
  };
5025
5069
  const bChildren = childrenArray.map((item, index) => {
5026
- return /* @__PURE__ */ jsxs77(
5070
+ return /* @__PURE__ */ jsxs75(
5027
5071
  HStack,
5028
5072
  {
5029
5073
  ...responsiveLiProps,
@@ -5044,11 +5088,11 @@ var Breadcrumbs = ({
5044
5088
  return /* @__PURE__ */ jsx222(OverflowMenuSpan, { children: item.props.children }, index);
5045
5089
  }
5046
5090
  }) : [];
5047
- const bChildrenSmallScreen = /* @__PURE__ */ jsxs77(Fragment4, { children: [
5091
+ const bChildrenSmallScreen = /* @__PURE__ */ jsxs75(Fragment4, { children: [
5048
5092
  /* @__PURE__ */ jsx222(HStack, { ...responsiveLiProps, children: childrenArray[0] }),
5049
- bChildrenTruncated.length > 0 && /* @__PURE__ */ jsxs77(HStack, { ...responsiveLiProps, children: [
5093
+ bChildrenTruncated.length > 0 && /* @__PURE__ */ jsxs75(HStack, { ...responsiveLiProps, children: [
5050
5094
  chevronIcon,
5051
- /* @__PURE__ */ jsxs77(OverflowMenuGroup, { children: [
5095
+ /* @__PURE__ */ jsxs75(OverflowMenuGroup, { children: [
5052
5096
  /* @__PURE__ */ jsx222(
5053
5097
  Button,
5054
5098
  {
@@ -5061,7 +5105,7 @@ var Breadcrumbs = ({
5061
5105
  /* @__PURE__ */ jsx222(OverflowMenu, { portal: false, children: /* @__PURE__ */ jsx222(OverflowMenuList, { children: bChildrenTruncated }) })
5062
5106
  ] })
5063
5107
  ] }),
5064
- /* @__PURE__ */ jsxs77(HStack, { ...responsiveLiProps, children: [
5108
+ /* @__PURE__ */ jsxs75(HStack, { ...responsiveLiProps, children: [
5065
5109
  chevronIcon,
5066
5110
  childrenArray[childrenArray.length - 1]
5067
5111
  ] })
@@ -5073,7 +5117,7 @@ var Breadcrumbs = ({
5073
5117
  alignItems: "center",
5074
5118
  gap: "x0.5"
5075
5119
  };
5076
- return /* @__PURE__ */ jsxs77(
5120
+ return /* @__PURE__ */ jsxs75(
5077
5121
  "nav",
5078
5122
  {
5079
5123
  ...getBaseHTMLProps(
@@ -5272,7 +5316,7 @@ var CardExpandable = ({
5272
5316
  CardExpandable.displayName = "CardExpandable";
5273
5317
 
5274
5318
  // src/components/Card/CardExpandable/CardExpandableHeader.tsx
5275
- import { jsx as jsx226, jsxs as jsxs78 } from "react/jsx-runtime";
5319
+ import { jsx as jsx226, jsxs as jsxs76 } from "react/jsx-runtime";
5276
5320
  var CardExpandableHeader = ({
5277
5321
  children,
5278
5322
  className,
@@ -5316,7 +5360,7 @@ var CardExpandableHeader = ({
5316
5360
  typographyStyles_default[getTypographyCn(typographyType)],
5317
5361
  bold && typographyStyles_default.bold
5318
5362
  ),
5319
- children: /* @__PURE__ */ jsxs78("div", { className: (AccordionBase_default.header__content, CardExpandable_default.header__content), children: [
5363
+ children: /* @__PURE__ */ jsxs76("div", { className: (AccordionBase_default.header__content, CardExpandable_default.header__content), children: [
5320
5364
  children,
5321
5365
  /* @__PURE__ */ jsx226(
5322
5366
  Icon,
@@ -5401,7 +5445,7 @@ var SelectionControl_default = {
5401
5445
  };
5402
5446
 
5403
5447
  // src/components/SelectionControl/SelectionControl.styles.tsx
5404
- import { jsx as jsx228, jsxs as jsxs79 } from "react/jsx-runtime";
5448
+ import { jsx as jsx228, jsxs as jsxs77 } from "react/jsx-runtime";
5405
5449
  var SelectionControl = ({
5406
5450
  controlType,
5407
5451
  className,
@@ -5453,7 +5497,7 @@ var renderGroupLabel = ({
5453
5497
  }) => {
5454
5498
  const hasLabel = !!label;
5455
5499
  if (hasLabel)
5456
- return /* @__PURE__ */ jsxs79(
5500
+ return /* @__PURE__ */ jsxs77(
5457
5501
  Typography,
5458
5502
  {
5459
5503
  as: "span",
@@ -5487,7 +5531,7 @@ var selectionControlTypographyProps = {
5487
5531
  };
5488
5532
 
5489
5533
  // src/components/SelectionControl/Checkbox/Checkbox.tsx
5490
- import { jsx as jsx229, jsxs as jsxs80 } from "react/jsx-runtime";
5534
+ import { jsx as jsx229, jsxs as jsxs78 } from "react/jsx-runtime";
5491
5535
  var Checkbox = ({
5492
5536
  id,
5493
5537
  name,
@@ -5511,7 +5555,7 @@ var Checkbox = ({
5511
5555
  const isReadOnly = readOnly || (checkboxGroup == null ? void 0 : checkboxGroup.readOnly);
5512
5556
  const hasError = error || (checkboxGroup == null ? void 0 : checkboxGroup.error);
5513
5557
  const isDisabled = disabled || (checkboxGroup == null ? void 0 : checkboxGroup.disabled);
5514
- return /* @__PURE__ */ jsxs80(
5558
+ return /* @__PURE__ */ jsxs78(
5515
5559
  Label2,
5516
5560
  {
5517
5561
  disabled: isDisabled,
@@ -5576,7 +5620,7 @@ function convertBooleanishToBoolean(value) {
5576
5620
  }
5577
5621
 
5578
5622
  // src/components/InputMessage/InputMessage.tsx
5579
- import { Fragment as Fragment5, jsx as jsx230, jsxs as jsxs81 } from "react/jsx-runtime";
5623
+ import { Fragment as Fragment5, jsx as jsx230, jsxs as jsxs79 } from "react/jsx-runtime";
5580
5624
  var InputMessage = ({
5581
5625
  messageType,
5582
5626
  id,
@@ -5598,7 +5642,7 @@ var InputMessage = ({
5598
5642
  as: "span",
5599
5643
  children
5600
5644
  };
5601
- return isError ? /* @__PURE__ */ jsxs81(
5645
+ return isError ? /* @__PURE__ */ jsxs79(
5602
5646
  Paper,
5603
5647
  {
5604
5648
  ...commonProps,
@@ -5635,7 +5679,7 @@ var renderInputMessage = ({
5635
5679
  errorMessage,
5636
5680
  errorMessageId,
5637
5681
  noSpacing
5638
- }) => /* @__PURE__ */ jsxs81(Fragment5, { children: [
5682
+ }) => /* @__PURE__ */ jsxs79(Fragment5, { children: [
5639
5683
  errorMessage && /* @__PURE__ */ jsx230(
5640
5684
  InputMessage,
5641
5685
  {
@@ -5649,7 +5693,7 @@ var renderInputMessage = ({
5649
5693
  ] });
5650
5694
 
5651
5695
  // src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
5652
- import { jsx as jsx231, jsxs as jsxs82 } from "react/jsx-runtime";
5696
+ import { jsx as jsx231, jsxs as jsxs80 } from "react/jsx-runtime";
5653
5697
  var CheckboxGroup = (props) => {
5654
5698
  const {
5655
5699
  label,
@@ -5682,7 +5726,7 @@ var CheckboxGroup = (props) => {
5682
5726
  disabled,
5683
5727
  readOnly
5684
5728
  };
5685
- return /* @__PURE__ */ jsxs82(
5729
+ return /* @__PURE__ */ jsxs80(
5686
5730
  "div",
5687
5731
  {
5688
5732
  ...getBaseHTMLProps(
@@ -5728,7 +5772,7 @@ var useRadioButtonGroup = () => {
5728
5772
  };
5729
5773
 
5730
5774
  // src/components/SelectionControl/RadioButton/RadioButton.tsx
5731
- import { jsx as jsx232, jsxs as jsxs83 } from "react/jsx-runtime";
5775
+ import { jsx as jsx232, jsxs as jsxs81 } from "react/jsx-runtime";
5732
5776
  var getIsChecked = ({
5733
5777
  value,
5734
5778
  groupValue,
@@ -5783,7 +5827,7 @@ var RadioButton = ({
5783
5827
  groupValue: radioButtonGroup == null ? void 0 : radioButtonGroup.value,
5784
5828
  checked
5785
5829
  });
5786
- return /* @__PURE__ */ jsxs83(
5830
+ return /* @__PURE__ */ jsxs81(
5787
5831
  Label2,
5788
5832
  {
5789
5833
  disabled: isDisabled,
@@ -5832,7 +5876,7 @@ RadioButton.displayName = "RadioButton";
5832
5876
 
5833
5877
  // src/components/SelectionControl/RadioButton/RadioButtonGroup.tsx
5834
5878
  import { useId as useId8 } from "react";
5835
- import { jsx as jsx233, jsxs as jsxs84 } from "react/jsx-runtime";
5879
+ import { jsx as jsx233, jsxs as jsxs82 } from "react/jsx-runtime";
5836
5880
  var RadioButtonGroup = ({
5837
5881
  name,
5838
5882
  label,
@@ -5876,7 +5920,7 @@ var RadioButtonGroup = ({
5876
5920
  value: groupValue,
5877
5921
  onChange: handleChange
5878
5922
  };
5879
- return /* @__PURE__ */ jsxs84(
5923
+ return /* @__PURE__ */ jsxs82(
5880
5924
  "div",
5881
5925
  {
5882
5926
  ...getBaseHTMLProps(
@@ -5994,7 +6038,7 @@ CardSelectable.displayName = "CardSelectable";
5994
6038
 
5995
6039
  // src/components/Card/CardSelectionControl/CardSelectableGroup.tsx
5996
6040
  import { useId as useId9 } from "react";
5997
- import { jsx as jsx235, jsxs as jsxs85 } from "react/jsx-runtime";
6041
+ import { jsx as jsx235, jsxs as jsxs83 } from "react/jsx-runtime";
5998
6042
  var CardSelectableGroup = ({
5999
6043
  name,
6000
6044
  cardType,
@@ -6057,7 +6101,7 @@ var CardSelectableGroup = ({
6057
6101
  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
6102
  }
6059
6103
  );
6060
- return hasErrorMessage ? /* @__PURE__ */ jsxs85("div", { children: [
6104
+ return hasErrorMessage ? /* @__PURE__ */ jsxs83("div", { children: [
6061
6105
  mainContent,
6062
6106
  renderInputMessage({ errorMessage, errorMessageId })
6063
6107
  ] }) : mainContent;
@@ -6096,7 +6140,7 @@ var InlineIconButton = ({
6096
6140
  InlineIconButton.displayName = "InlineIconButton";
6097
6141
 
6098
6142
  // src/components/Chip/Chip.tsx
6099
- import { jsx as jsx237, jsxs as jsxs86 } from "react/jsx-runtime";
6143
+ import { jsx as jsx237, jsxs as jsxs84 } from "react/jsx-runtime";
6100
6144
  var Chip = ({
6101
6145
  children,
6102
6146
  onClose,
@@ -6113,7 +6157,7 @@ var Chip = ({
6113
6157
  setIsOpen(false);
6114
6158
  onClose == null ? void 0 : onClose();
6115
6159
  };
6116
- return isOpen ? /* @__PURE__ */ jsxs86(
6160
+ return isOpen ? /* @__PURE__ */ jsxs84(
6117
6161
  Box,
6118
6162
  {
6119
6163
  display: "inline-flex",
@@ -6173,7 +6217,7 @@ var CookieBanner_default = {
6173
6217
  };
6174
6218
 
6175
6219
  // src/components/CookieBanner/CookieBannerCheckbox.tsx
6176
- import { jsx as jsx239, jsxs as jsxs87 } from "react/jsx-runtime";
6220
+ import { jsx as jsx239, jsxs as jsxs85 } from "react/jsx-runtime";
6177
6221
  function CookieBannerCheckbox({
6178
6222
  headerText,
6179
6223
  description,
@@ -6193,7 +6237,7 @@ function CookieBannerCheckbox({
6193
6237
  htmlProps,
6194
6238
  rest
6195
6239
  ),
6196
- children: /* @__PURE__ */ jsxs87(VStack, { gap: "x0.5", children: [
6240
+ children: /* @__PURE__ */ jsxs85(VStack, { gap: "x0.5", children: [
6197
6241
  /* @__PURE__ */ jsx239(Typography, { as: "span", typographyType: "headingSmall", children: headerText }),
6198
6242
  /* @__PURE__ */ jsx239(Typography, { as: "span", typographyType: "bodyLongSmall", children: description })
6199
6243
  ] })
@@ -6203,7 +6247,7 @@ function CookieBannerCheckbox({
6203
6247
  CookieBannerCheckbox.displayName = "CookieBannerCheckbox";
6204
6248
 
6205
6249
  // src/components/CookieBanner/CookieBanner.tsx
6206
- import { jsx as jsx240, jsxs as jsxs88 } from "react/jsx-runtime";
6250
+ import { jsx as jsx240, jsxs as jsxs86 } from "react/jsx-runtime";
6207
6251
  import { createElement } from "react";
6208
6252
  function CookieBanner({
6209
6253
  headerText,
@@ -6254,8 +6298,8 @@ function CookieBanner({
6254
6298
  border: "border-default",
6255
6299
  background: "brand-tertiary-medium",
6256
6300
  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: [
6301
+ children: /* @__PURE__ */ jsxs86(VStack, { maxWidth: "70ch", gap: "x1", children: [
6302
+ hasBp && isCollapsedOnBreakpoint ? /* @__PURE__ */ jsxs86(HStack, { alignItems: "center", justifyContent: "space-between", gap: "x1", children: [
6259
6303
  heading,
6260
6304
  /* @__PURE__ */ jsx240(
6261
6305
  ShowHide,
@@ -6270,7 +6314,7 @@ function CookieBanner({
6270
6314
  }
6271
6315
  )
6272
6316
  ] }) : heading,
6273
- /* @__PURE__ */ jsxs88(
6317
+ /* @__PURE__ */ jsxs86(
6274
6318
  VStack,
6275
6319
  {
6276
6320
  gap: "x1",
@@ -6460,7 +6504,7 @@ import {
6460
6504
  useRef as useRef13
6461
6505
  } from "react";
6462
6506
  import { createPortal as createPortal2 } from "react-dom";
6463
- import { Fragment as Fragment6, jsx as jsx242, jsxs as jsxs89 } from "react/jsx-runtime";
6507
+ import { Fragment as Fragment6, jsx as jsx242, jsxs as jsxs87 } from "react/jsx-runtime";
6464
6508
  var CalendarPopoverContext = createContext9({
6465
6509
  anchorRef: null,
6466
6510
  closeButtonRef: null,
@@ -6512,7 +6556,7 @@ var CalendarPopoverContent = ({
6512
6556
  const hasTransitionedIn = useMountTransition(isOpen, 500);
6513
6557
  const isMounted = isOpen && hasTransitionedIn;
6514
6558
  const combinedRef = useCombinedRef(refs.setFloating, ref);
6515
- useOnClickOutside([ref.current, modalRef.current], onClose);
6559
+ useOnClickOutside([ref, modalRef], onClose);
6516
6560
  useEffect18(() => {
6517
6561
  var _a;
6518
6562
  refs.setReference((_a = anchorRef == null ? void 0 : anchorRef.current) != null ? _a : null);
@@ -6540,9 +6584,9 @@ var CalendarPopoverContent = ({
6540
6584
  border: "border-default",
6541
6585
  padding: "x0.75"
6542
6586
  };
6543
- return /* @__PURE__ */ jsxs89(Fragment6, { children: [
6587
+ return /* @__PURE__ */ jsxs87(Fragment6, { children: [
6544
6588
  portalTarget && hasBreakpoint && createPortal2(
6545
- /* @__PURE__ */ jsx242(ShowHide, { showBelow: smallScreenBreakpoint, children: /* @__PURE__ */ jsx242(Backdrop, { zIndex: "modal", isMounted, children: /* @__PURE__ */ jsxs89(
6589
+ /* @__PURE__ */ jsx242(ShowHide, { showBelow: smallScreenBreakpoint, children: /* @__PURE__ */ jsx242(Backdrop, { zIndex: "modal", isMounted, children: /* @__PURE__ */ jsxs87(
6546
6590
  Paper,
6547
6591
  {
6548
6592
  ref: modalRef,
@@ -6582,7 +6626,7 @@ var CalendarPopoverContent = ({
6582
6626
  };
6583
6627
 
6584
6628
  // src/components/date-inputs/DatePicker/Calendar/CalendarGrid.tsx
6585
- import { jsx as jsx243, jsxs as jsxs90 } from "react/jsx-runtime";
6629
+ import { jsx as jsx243, jsxs as jsxs88 } from "react/jsx-runtime";
6586
6630
  function CalendarGrid({ state, ...props }) {
6587
6631
  const { t } = useTranslation();
6588
6632
  const { locale } = useLocale();
@@ -6606,7 +6650,7 @@ function CalendarGrid({ state, ...props }) {
6606
6650
  typographyStyles_default["text-color--subtle"],
6607
6651
  DateInput_default.calendar__th
6608
6652
  );
6609
- return /* @__PURE__ */ jsxs90(
6653
+ return /* @__PURE__ */ jsxs88(
6610
6654
  "table",
6611
6655
  {
6612
6656
  ...gridProps,
@@ -6619,12 +6663,12 @@ function CalendarGrid({ state, ...props }) {
6619
6663
  cellPadding: "0",
6620
6664
  className: typographyStyles_default["body-short-xsmall"],
6621
6665
  children: [
6622
- /* @__PURE__ */ jsx243("thead", { ...headerProps, children: /* @__PURE__ */ jsxs90("tr", { children: [
6623
- showWeekNumbers && /* @__PURE__ */ jsxs90("th", { className: cn(thCn), children: [
6666
+ /* @__PURE__ */ jsx243("thead", { ...headerProps, children: /* @__PURE__ */ jsxs88("tr", { children: [
6667
+ showWeekNumbers && /* @__PURE__ */ jsxs88("th", { className: cn(thCn), children: [
6624
6668
  /* @__PURE__ */ jsx243("span", { "aria-hidden": true, children: "#" }),
6625
6669
  /* @__PURE__ */ jsx243(VisuallyHidden, { children: t(texts6.weekNumber) })
6626
6670
  ] }),
6627
- weekDays.map((day, index) => /* @__PURE__ */ jsxs90("th", { className: thCn, children: [
6671
+ weekDays.map((day, index) => /* @__PURE__ */ jsxs88("th", { className: thCn, children: [
6628
6672
  /* @__PURE__ */ jsx243("span", { "aria-hidden": true, children: day.short }),
6629
6673
  /* @__PURE__ */ jsx243(VisuallyHidden, { children: day.full })
6630
6674
  ] }, index))
@@ -6633,7 +6677,7 @@ function CalendarGrid({ state, ...props }) {
6633
6677
  const datesInWeek = state.getDatesInWeek(weekIndex);
6634
6678
  const firstExistingDay = datesInWeek.find(Boolean);
6635
6679
  const weekNumber = firstExistingDay ? getWeekNumber(firstExistingDay) : "";
6636
- return /* @__PURE__ */ jsxs90("tr", { children: [
6680
+ return /* @__PURE__ */ jsxs88("tr", { children: [
6637
6681
  showWeekNumbers && /* @__PURE__ */ jsx243("td", { className: cn(thCn, DateInput_default["calendar__week-number"]), children: weekNumber }),
6638
6682
  datesInWeek.map(
6639
6683
  (date, i) => date ? /* @__PURE__ */ jsx243(
@@ -6762,7 +6806,7 @@ var texts6 = createTexts({
6762
6806
  });
6763
6807
 
6764
6808
  // src/components/date-inputs/DatePicker/Calendar/Calendar.tsx
6765
- import { jsx as jsx244, jsxs as jsxs91 } from "react/jsx-runtime";
6809
+ import { jsx as jsx244, jsxs as jsxs89 } from "react/jsx-runtime";
6766
6810
  function createCalendar(identifier) {
6767
6811
  switch (identifier) {
6768
6812
  case "gregory":
@@ -6794,8 +6838,8 @@ function Calendar(props) {
6794
6838
  }
6795
6839
  }
6796
6840
  };
6797
- return /* @__PURE__ */ jsxs91(VStack, { ...calendarProps, gap: "x0.25", height: "337px", children: [
6798
- /* @__PURE__ */ jsxs91(HStack, { justifyContent: "space-between", alignItems: "center", children: [
6841
+ return /* @__PURE__ */ jsxs89(VStack, { ...calendarProps, gap: "x0.25", height: "337px", children: [
6842
+ /* @__PURE__ */ jsxs89(HStack, { justifyContent: "space-between", alignItems: "center", children: [
6799
6843
  /* @__PURE__ */ jsx244(
6800
6844
  Button,
6801
6845
  {
@@ -6996,7 +7040,7 @@ var texts8 = createTexts({
6996
7040
  // src/components/date-inputs/DatePicker/DateField/DateSegment.tsx
6997
7041
  import { useDateSegment } from "@react-aria/datepicker";
6998
7042
  import { useRef as useRef15 } from "react";
6999
- import { jsx as jsx246, jsxs as jsxs92 } from "react/jsx-runtime";
7043
+ import { jsx as jsx246, jsxs as jsxs90 } from "react/jsx-runtime";
7000
7044
  function DateSegment({
7001
7045
  segment,
7002
7046
  state,
@@ -7006,7 +7050,7 @@ function DateSegment({
7006
7050
  }) {
7007
7051
  const ref = useRef15(null);
7008
7052
  const { segmentProps } = useDateSegment(segment, state, ref);
7009
- return /* @__PURE__ */ jsxs92(
7053
+ return /* @__PURE__ */ jsxs90(
7010
7054
  "div",
7011
7055
  {
7012
7056
  ...segmentProps,
@@ -7125,7 +7169,7 @@ function renderLabel(props) {
7125
7169
  }
7126
7170
 
7127
7171
  // src/components/date-inputs/common/DateInput.tsx
7128
- import { jsx as jsx250, jsxs as jsxs93 } from "react/jsx-runtime";
7172
+ import { jsx as jsx250, jsxs as jsxs91 } from "react/jsx-runtime";
7129
7173
  function DateInput({
7130
7174
  errorMessage,
7131
7175
  tip,
@@ -7153,7 +7197,7 @@ function DateInput({
7153
7197
  }) {
7154
7198
  const hasErrorMessage = !!errorMessage;
7155
7199
  const { isOpen } = useContext13(CalendarPopoverContext);
7156
- return /* @__PURE__ */ jsxs93(
7200
+ return /* @__PURE__ */ jsxs91(
7157
7201
  "div",
7158
7202
  {
7159
7203
  ...groupProps,
@@ -7167,7 +7211,7 @@ function DateInput({
7167
7211
  readOnly,
7168
7212
  afterLabelContent
7169
7213
  }),
7170
- /* @__PURE__ */ jsxs93(
7214
+ /* @__PURE__ */ jsxs91(
7171
7215
  Box,
7172
7216
  {
7173
7217
  style,
@@ -7333,7 +7377,7 @@ function createDOMRef(ref) {
7333
7377
  }
7334
7378
 
7335
7379
  // src/components/date-inputs/DatePicker/DatePicker.tsx
7336
- import { jsx as jsx252, jsxs as jsxs94 } from "react/jsx-runtime";
7380
+ import { jsx as jsx252, jsxs as jsxs92 } from "react/jsx-runtime";
7337
7381
  var refIsFocusable = (ref) => {
7338
7382
  return typeof ref === "object" && ref !== null && "focus" in ref;
7339
7383
  };
@@ -7368,7 +7412,7 @@ function DatePicker({
7368
7412
  const uniqueId = (_a = props.id) != null ? _a : useId11();
7369
7413
  const errorMessageId = hasErrorMessage ? `${uniqueId}-errorMessage` : void 0;
7370
7414
  const tipId = hasTip ? `${uniqueId}-tip` : void 0;
7371
- return /* @__PURE__ */ jsx252(I18nProvider, { locale: LOCALE[lang], children: /* @__PURE__ */ jsxs94(
7415
+ return /* @__PURE__ */ jsx252(I18nProvider, { locale: LOCALE[lang], children: /* @__PURE__ */ jsxs92(
7372
7416
  CalendarPopover,
7373
7417
  {
7374
7418
  isOpen: state.isOpen,
@@ -7596,7 +7640,7 @@ var DescriptionListTerm = (props) => {
7596
7640
  DescriptionListTerm.displayName = "DescriptionListTerm";
7597
7641
 
7598
7642
  // src/components/DescriptionList/DescriptionListDesc.tsx
7599
- import { jsx as jsx256, jsxs as jsxs95 } from "react/jsx-runtime";
7643
+ import { jsx as jsx256, jsxs as jsxs93 } from "react/jsx-runtime";
7600
7644
  var DescriptionListDesc = ({
7601
7645
  children,
7602
7646
  icon,
@@ -7605,7 +7649,7 @@ var DescriptionListDesc = ({
7605
7649
  style,
7606
7650
  htmlProps,
7607
7651
  ...rest
7608
- }) => /* @__PURE__ */ jsxs95(
7652
+ }) => /* @__PURE__ */ jsxs93(
7609
7653
  "dd",
7610
7654
  {
7611
7655
  ...getBaseHTMLProps(
@@ -7740,11 +7784,11 @@ var DetailListDesc = ({ className, ...rest }) => /* @__PURE__ */ jsx259(Box, { a
7740
7784
  DetailListDesc.displayName = "DetailListDesc";
7741
7785
 
7742
7786
  // src/components/DetailList/DetailListRow.tsx
7743
- import { Fragment as Fragment7, jsx as jsx260, jsxs as jsxs96 } from "react/jsx-runtime";
7787
+ import { Fragment as Fragment7, jsx as jsx260, jsxs as jsxs94 } from "react/jsx-runtime";
7744
7788
  var DetailListRow = ({ className, ...rest }) => {
7745
7789
  const { smallScreenBreakpoint: bp } = useDetailListContext();
7746
7790
  const hasBp = !!bp;
7747
- return /* @__PURE__ */ jsxs96(Fragment7, { children: [
7791
+ return /* @__PURE__ */ jsxs94(Fragment7, { children: [
7748
7792
  /* @__PURE__ */ jsx260(
7749
7793
  Box,
7750
7794
  {
@@ -7806,7 +7850,7 @@ var DrawerContext = createContext11({});
7806
7850
  var useDrawerContext = () => useContext15(DrawerContext);
7807
7851
 
7808
7852
  // src/components/Drawer/Drawer.tsx
7809
- import { jsx as jsx262, jsxs as jsxs97 } from "react/jsx-runtime";
7853
+ import { jsx as jsx262, jsxs as jsxs95 } from "react/jsx-runtime";
7810
7854
  var DRAWER_SIZES = createSizes("small", "medium", "large");
7811
7855
  var Drawer = ({
7812
7856
  children,
@@ -7830,7 +7874,7 @@ var Drawer = ({
7830
7874
  }
7831
7875
  const { t } = useTranslation();
7832
7876
  const portalTarget = parentElement != null ? parentElement : themeContext == null ? void 0 : themeContext.el;
7833
- const { isOpen = false, onClose, drawerId, triggerEl } = useDrawerContext();
7877
+ const { isOpen = false, onClose, drawerId, triggerRef } = useDrawerContext();
7834
7878
  const hasHeader = !!header;
7835
7879
  const headerId = hasHeader ? `${drawerId}-header` : void 0;
7836
7880
  const drawerRef = useFocusTrap(isOpen);
@@ -7845,8 +7889,8 @@ var Drawer = ({
7845
7889
  return () => handleElementWithBackdropUnmount(document.body);
7846
7890
  }
7847
7891
  }, [isOpen]);
7848
- const elements = [drawerRef.current];
7849
- if (triggerEl) elements.push(triggerEl);
7892
+ const elements = [drawerRef];
7893
+ if (triggerRef) elements.push(triggerRef);
7850
7894
  useOnClickOutside(elements, () => {
7851
7895
  if (isOpen && !withBackdrop) {
7852
7896
  onClose == null ? void 0 : onClose();
@@ -7871,7 +7915,7 @@ var Drawer = ({
7871
7915
  return "800px";
7872
7916
  }
7873
7917
  };
7874
- const drawer = /* @__PURE__ */ jsxs97(
7918
+ const drawer = /* @__PURE__ */ jsxs95(
7875
7919
  Paper,
7876
7920
  {
7877
7921
  ref: combinedRef,
@@ -7904,7 +7948,7 @@ var Drawer = ({
7904
7948
  elevation: "large",
7905
7949
  "aria-labelledby": headerId,
7906
7950
  children: [
7907
- /* @__PURE__ */ jsxs97(
7951
+ /* @__PURE__ */ jsxs95(
7908
7952
  HStack,
7909
7953
  {
7910
7954
  position: "sticky",
@@ -8016,7 +8060,7 @@ var DrawerGroup = ({
8016
8060
  drawerId: uniqueDrawerId,
8017
8061
  isOpen,
8018
8062
  onClose: handleClose,
8019
- triggerEl: triggerRef.current
8063
+ triggerRef
8020
8064
  },
8021
8065
  children: Children7
8022
8066
  }
@@ -8025,7 +8069,7 @@ var DrawerGroup = ({
8025
8069
  DrawerGroup.displayName = "DrawerGroup";
8026
8070
 
8027
8071
  // src/components/EmptyContent/EmptyContent.tsx
8028
- import { jsx as jsx264, jsxs as jsxs98 } from "react/jsx-runtime";
8072
+ import { jsx as jsx264, jsxs as jsxs96 } from "react/jsx-runtime";
8029
8073
  function EmptyContent({
8030
8074
  headerText,
8031
8075
  children,
@@ -8045,7 +8089,7 @@ function EmptyContent({
8045
8089
  background: "surface-medium",
8046
8090
  borderRadius: "surface",
8047
8091
  ...rest,
8048
- children: /* @__PURE__ */ jsxs98(
8092
+ children: /* @__PURE__ */ jsxs96(
8049
8093
  VStack,
8050
8094
  {
8051
8095
  maxWidth: "70ch",
@@ -8111,7 +8155,7 @@ var ListItem = ({ className, ...rest }) => /* @__PURE__ */ jsx266("li", { ...res
8111
8155
  ListItem.displayName = "ListItem";
8112
8156
 
8113
8157
  // src/components/ErrorSummary/ErrorSummary.tsx
8114
- import { jsx as jsx267, jsxs as jsxs99 } from "react/jsx-runtime";
8158
+ import { jsx as jsx267, jsxs as jsxs97 } from "react/jsx-runtime";
8115
8159
  var ErrorSummary = ({
8116
8160
  heading: pHeading,
8117
8161
  className,
@@ -8123,7 +8167,7 @@ var ErrorSummary = ({
8123
8167
  }) => {
8124
8168
  const { t } = useTranslation();
8125
8169
  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(
8170
+ return /* @__PURE__ */ jsxs97(
8127
8171
  Paper,
8128
8172
  {
8129
8173
  ...getBaseHTMLProps(
@@ -8180,7 +8224,7 @@ var FavStar_default = {
8180
8224
  };
8181
8225
 
8182
8226
  // src/components/FavStar/FavStar.tsx
8183
- import { jsx as jsx269, jsxs as jsxs100 } from "react/jsx-runtime";
8227
+ import { jsx as jsx269, jsxs as jsxs98 } from "react/jsx-runtime";
8184
8228
  var FAVSTAR_SIZES = createSizes("medium", "large");
8185
8229
  var FavStar = ({
8186
8230
  id,
@@ -8208,7 +8252,7 @@ var FavStar = ({
8208
8252
  defaultValue: defaultChecked != null ? defaultChecked : false,
8209
8253
  onChange
8210
8254
  });
8211
- return /* @__PURE__ */ jsxs100(
8255
+ return /* @__PURE__ */ jsxs98(
8212
8256
  "label",
8213
8257
  {
8214
8258
  className: cn(
@@ -8291,13 +8335,13 @@ var CharCounter_default = {
8291
8335
  };
8292
8336
 
8293
8337
  // src/components/helpers/CharCounter/CharCounter.tsx
8294
- import { jsx as jsx270, jsxs as jsxs101 } from "react/jsx-runtime";
8338
+ import { jsx as jsx270, jsxs as jsxs99 } from "react/jsx-runtime";
8295
8339
  function CharCounter(props) {
8296
8340
  const { t } = useTranslation();
8297
8341
  const { current, max, id } = props;
8298
8342
  const generatedId = useId15();
8299
8343
  const uniqueId = id != null ? id : `${generatedId}-characterCounter`;
8300
- return /* @__PURE__ */ jsxs101(
8344
+ return /* @__PURE__ */ jsxs99(
8301
8345
  Typography,
8302
8346
  {
8303
8347
  id: uniqueId,
@@ -8306,7 +8350,7 @@ function CharCounter(props) {
8306
8350
  typographyType: "bodyShortXsmall",
8307
8351
  color: "text-subtle",
8308
8352
  children: [
8309
- /* @__PURE__ */ jsxs101("span", { "aria-hidden": true, children: [
8353
+ /* @__PURE__ */ jsxs99("span", { "aria-hidden": true, children: [
8310
8354
  current,
8311
8355
  "/",
8312
8356
  max
@@ -8331,7 +8375,7 @@ var texts12 = createTexts({
8331
8375
  });
8332
8376
 
8333
8377
  // src/components/TextArea/TextArea.tsx
8334
- import { jsx as jsx271, jsxs as jsxs102 } from "react/jsx-runtime";
8378
+ import { jsx as jsx271, jsxs as jsxs100 } from "react/jsx-runtime";
8335
8379
  var TextArea = ({
8336
8380
  id,
8337
8381
  value,
@@ -8380,7 +8424,7 @@ var TextArea = ({
8380
8424
  );
8381
8425
  const showRequiredStyling = required || !!ariaRequired;
8382
8426
  const inputWidth = getInputWidth(width);
8383
- return /* @__PURE__ */ jsxs102("div", { className: cn(className, Input_default.container), style: { ...style }, children: [
8427
+ return /* @__PURE__ */ jsxs100("div", { className: cn(className, Input_default.container), style: { ...style }, children: [
8384
8428
  renderLabel({ label, htmlFor: uniqueId, readOnly, showRequiredStyling }),
8385
8429
  /* @__PURE__ */ jsx271(
8386
8430
  Box,
@@ -8415,7 +8459,7 @@ var TextArea = ({
8415
8459
  ...rest
8416
8460
  }
8417
8461
  ),
8418
- /* @__PURE__ */ jsxs102(
8462
+ /* @__PURE__ */ jsxs100(
8419
8463
  Box,
8420
8464
  {
8421
8465
  display: "flex",
@@ -8440,7 +8484,7 @@ TextArea.displayName = "TextArea";
8440
8484
  var getIconSize = (layout) => layout === "vertical" ? "large" : "medium";
8441
8485
 
8442
8486
  // src/components/Feedback/CommentComponent.tsx
8443
- import { jsx as jsx272, jsxs as jsxs103 } from "react/jsx-runtime";
8487
+ import { jsx as jsx272, jsxs as jsxs101 } from "react/jsx-runtime";
8444
8488
  var CommentComponent = ({
8445
8489
  layout,
8446
8490
  rating,
@@ -8454,8 +8498,8 @@ var CommentComponent = ({
8454
8498
  handleFeedbackTextChange
8455
8499
  }) => {
8456
8500
  const { t } = useTranslation();
8457
- return /* @__PURE__ */ jsxs103(VStack, { gap: "x1", children: [
8458
- /* @__PURE__ */ jsxs103("span", { className: Feedback_default["rating-submitted-title"], children: [
8501
+ return /* @__PURE__ */ jsxs101(VStack, { gap: "x1", children: [
8502
+ /* @__PURE__ */ jsxs101("span", { className: Feedback_default["rating-submitted-title"], children: [
8459
8503
  /* @__PURE__ */ jsx272(
8460
8504
  Icon,
8461
8505
  {
@@ -8464,7 +8508,7 @@ var CommentComponent = ({
8464
8508
  iconSize: getIconSize(layout)
8465
8509
  }
8466
8510
  ),
8467
- /* @__PURE__ */ jsxs103(Paragraph, { children: [
8511
+ /* @__PURE__ */ jsxs101(Paragraph, { children: [
8468
8512
  ratingSubmittedTitle,
8469
8513
  " "
8470
8514
  ] })
@@ -8516,7 +8560,7 @@ var Tooltip_default = {
8516
8560
  };
8517
8561
 
8518
8562
  // src/components/Tooltip/Tooltip.tsx
8519
- import { jsx as jsx273, jsxs as jsxs104 } from "react/jsx-runtime";
8563
+ import { jsx as jsx273, jsxs as jsxs102 } from "react/jsx-runtime";
8520
8564
  var Tooltip = ({
8521
8565
  text,
8522
8566
  placement = "bottom",
@@ -8607,7 +8651,7 @@ var Tooltip = ({
8607
8651
  );
8608
8652
  const openCn = keepMounted && open && inView || isTransientlyMounted ? "open" : "closed";
8609
8653
  const ariaHidden = keepMounted ? !open : void 0;
8610
- return /* @__PURE__ */ jsxs104(
8654
+ return /* @__PURE__ */ jsxs102(
8611
8655
  Box,
8612
8656
  {
8613
8657
  ...getBaseHTMLProps(id, className, style, htmlProps, rest),
@@ -8645,7 +8689,7 @@ var Tooltip = ({
8645
8689
  Tooltip.displayName = "Tooltip";
8646
8690
 
8647
8691
  // src/components/Feedback/RatingComponent.tsx
8648
- import { jsx as jsx274, jsxs as jsxs105 } from "react/jsx-runtime";
8692
+ import { jsx as jsx274, jsxs as jsxs103 } from "react/jsx-runtime";
8649
8693
  var RatingComponent = ({
8650
8694
  layout,
8651
8695
  ratingLabel,
@@ -8665,7 +8709,7 @@ var RatingComponent = ({
8665
8709
  color: "icon-medium"
8666
8710
  }
8667
8711
  );
8668
- return /* @__PURE__ */ jsxs105(
8712
+ return /* @__PURE__ */ jsxs103(
8669
8713
  "div",
8670
8714
  {
8671
8715
  className: cn(
@@ -8674,7 +8718,7 @@ var RatingComponent = ({
8674
8718
  ),
8675
8719
  children: [
8676
8720
  /* @__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: [
8721
+ loading ? /* @__PURE__ */ jsx274(Spinner, { tooltip: t(texts14.uploadingFeedback) }) : /* @__PURE__ */ jsxs103(HStack, { gap: "x1", children: [
8678
8722
  /* @__PURE__ */ jsx274(Tooltip, { text: thumbUpTooltip, children: button("positive", layout, thumbUpTooltip) }),
8679
8723
  /* @__PURE__ */ jsx274(Tooltip, { text: thumbDownTooltip, children: button("negative", layout, thumbDownTooltip) })
8680
8724
  ] })
@@ -8897,7 +8941,7 @@ var FileUploader_default = {
8897
8941
  };
8898
8942
 
8899
8943
  // src/components/FileUploader/File.tsx
8900
- import { Fragment as Fragment8, jsx as jsx279, jsxs as jsxs106 } from "react/jsx-runtime";
8944
+ import { Fragment as Fragment8, jsx as jsx279, jsxs as jsxs104 } from "react/jsx-runtime";
8901
8945
  var File2 = (props) => {
8902
8946
  const { t } = useTranslation();
8903
8947
  const {
@@ -8971,8 +9015,8 @@ var File2 = (props) => {
8971
9015
  );
8972
9016
  break;
8973
9017
  }
8974
- return /* @__PURE__ */ jsxs106("li", { children: [
8975
- /* @__PURE__ */ jsxs106(
9018
+ return /* @__PURE__ */ jsxs104("li", { children: [
9019
+ /* @__PURE__ */ jsxs104(
8976
9020
  Paper,
8977
9021
  {
8978
9022
  marginBlock: "x0.5 0",
@@ -8981,7 +9025,7 @@ var File2 = (props) => {
8981
9025
  background: inactive ? "surface-field-disabled" : "surface-subtle",
8982
9026
  className: cn(hasError && FileUploader_default["file--invalid"]),
8983
9027
  children: [
8984
- /* @__PURE__ */ jsxs106(HStack, { alignItems: "center", justifyContent: "space-between", gap: "x0.75", children: [
9028
+ /* @__PURE__ */ jsxs104(HStack, { alignItems: "center", justifyContent: "space-between", gap: "x0.75", children: [
8985
9029
  /* @__PURE__ */ jsx279(
8986
9030
  Typography,
8987
9031
  {
@@ -8991,7 +9035,7 @@ var File2 = (props) => {
8991
9035
  children: fileUrl ? /* @__PURE__ */ jsx279(Link, { href: fileUrl, target: "_blank", children: stateFile.name }) : stateFile.name
8992
9036
  }
8993
9037
  ),
8994
- !inactive && /* @__PURE__ */ jsxs106(Fragment8, { children: [
9038
+ !inactive && /* @__PURE__ */ jsxs104(Fragment8, { children: [
8995
9039
  statusIndicator,
8996
9040
  /* @__PURE__ */ jsx279(
8997
9041
  Button,
@@ -9071,13 +9115,21 @@ var fileUploaderReducer = (state, action) => {
9071
9115
  case "dragEnter":
9072
9116
  return {
9073
9117
  ...state,
9118
+ dragCounter: state.dragCounter + 1,
9074
9119
  isDragActive: true
9075
9120
  };
9076
- case "dragLeave":
9077
- return { ...state, isDragActive: false };
9121
+ case "dragLeave": {
9122
+ const newCounter = Math.max(0, state.dragCounter - 1);
9123
+ return {
9124
+ ...state,
9125
+ dragCounter: newCounter,
9126
+ isDragActive: newCounter > 0
9127
+ };
9128
+ }
9078
9129
  case "onSetFiles":
9079
9130
  return {
9080
9131
  ...state,
9132
+ dragCounter: 0,
9081
9133
  isDragActive: false,
9082
9134
  files: action.payload
9083
9135
  };
@@ -9184,6 +9236,7 @@ var useFileUploader = (props) => {
9184
9236
  isFocused: false,
9185
9237
  isFileDialogActive: false,
9186
9238
  isDragActive: false,
9239
+ dragCounter: 0,
9187
9240
  rootErrors: calcRootErrors(
9188
9241
  t(texts17.invalidFileAmount),
9189
9242
  initialFileUploaderFiles,
@@ -9232,16 +9285,13 @@ var useFileUploader = (props) => {
9232
9285
  );
9233
9286
  const onRootBlur = useCallback6(() => dispatch({ type: "blur" }), [dispatch]);
9234
9287
  const onRootDragEnter = useCallback6(
9235
- async (evt) => {
9288
+ (evt) => {
9236
9289
  preventDefaults(evt);
9237
9290
  if (isEventWithFiles(evt)) {
9238
- const files = await getFilesFromEvent(evt);
9239
- const fileCount = files.length;
9240
- if (fileCount === 0) return;
9241
9291
  dispatch({ type: "dragEnter" });
9242
9292
  }
9243
9293
  },
9244
- [dispatch, accept, maxFiles]
9294
+ [dispatch]
9245
9295
  );
9246
9296
  const onRootDragOver = useCallback6((evt) => {
9247
9297
  preventDefaults(evt);
@@ -9256,7 +9306,6 @@ var useFileUploader = (props) => {
9256
9306
  const onRootDragLeave = useCallback6(
9257
9307
  (evt) => {
9258
9308
  preventDefaults(evt);
9259
- if (evt.currentTarget.contains(evt.relatedTarget)) return;
9260
9309
  dispatch({ type: "dragLeave" });
9261
9310
  },
9262
9311
  [dispatch]
@@ -9389,7 +9438,7 @@ var texts17 = createTexts({
9389
9438
  });
9390
9439
 
9391
9440
  // src/components/FileUploader/FileUploader.tsx
9392
- import { jsx as jsx280, jsxs as jsxs107 } from "react/jsx-runtime";
9441
+ import { jsx as jsx280, jsxs as jsxs105 } from "react/jsx-runtime";
9393
9442
  var FileUploader = (props) => {
9394
9443
  const {
9395
9444
  id,
@@ -9513,7 +9562,7 @@ var FileUploader = (props) => {
9513
9562
  "aria-describedby": fileListId
9514
9563
  }
9515
9564
  );
9516
- return /* @__PURE__ */ jsxs107(
9565
+ return /* @__PURE__ */ jsxs105(
9517
9566
  Box,
9518
9567
  {
9519
9568
  id: uniqueId,
@@ -9530,7 +9579,7 @@ var FileUploader = (props) => {
9530
9579
  afterLabelContent
9531
9580
  }),
9532
9581
  renderInputMessage({ tip, tipId }),
9533
- inactive ? input : withDragAndDrop ? /* @__PURE__ */ jsxs107(
9582
+ inactive ? input : withDragAndDrop ? /* @__PURE__ */ jsxs105(
9534
9583
  VStack,
9535
9584
  {
9536
9585
  gap: "x1",
@@ -9548,12 +9597,12 @@ var FileUploader = (props) => {
9548
9597
  button
9549
9598
  ]
9550
9599
  }
9551
- ) : /* @__PURE__ */ jsxs107(Box, { padding: "x 0", children: [
9600
+ ) : /* @__PURE__ */ jsxs105(Box, { padding: "x 0", children: [
9552
9601
  input,
9553
9602
  button
9554
9603
  ] }),
9555
9604
  /* @__PURE__ */ jsx280(ErrorList, { errors: rootErrorsList }),
9556
- !hideFileList && /* @__PURE__ */ jsxs107(
9605
+ !hideFileList && /* @__PURE__ */ jsxs105(
9557
9606
  "div",
9558
9607
  {
9559
9608
  id: fileListId,
@@ -9713,7 +9762,7 @@ var FormSummary_default = {
9713
9762
  };
9714
9763
 
9715
9764
  // src/components/FormSummary/FormSummary.components.tsx
9716
- import { jsx as jsx290, jsxs as jsxs108 } from "react/jsx-runtime";
9765
+ import { jsx as jsx290, jsxs as jsxs106 } from "react/jsx-runtime";
9717
9766
  function FormSummaryHeader({ ...props }) {
9718
9767
  return /* @__PURE__ */ jsx290(
9719
9768
  HStack,
@@ -9761,10 +9810,10 @@ function FormSummaryValue({
9761
9810
  }
9762
9811
  function FormSummaryEmptyValue() {
9763
9812
  const { t } = useTranslation();
9764
- return /* @__PURE__ */ jsxs108("span", { children: [
9813
+ return /* @__PURE__ */ jsxs106("span", { children: [
9765
9814
  /* @__PURE__ */ jsx290("span", { "aria-hidden": true, children: "-" }),
9766
9815
  " ",
9767
- /* @__PURE__ */ jsxs108(VisuallyHidden, { children: [
9816
+ /* @__PURE__ */ jsxs106(VisuallyHidden, { children: [
9768
9817
  " ",
9769
9818
  t(texts19.noValue),
9770
9819
  " "
@@ -9799,7 +9848,7 @@ var GlobalMessage_default = {
9799
9848
  };
9800
9849
 
9801
9850
  // src/components/GlobalMessage/GlobalMessage.tsx
9802
- import { jsx as jsx291, jsxs as jsxs109 } from "react/jsx-runtime";
9851
+ import { jsx as jsx291, jsxs as jsxs107 } from "react/jsx-runtime";
9803
9852
  var G_MESSAGE_PURPOSES = createPurposes("info", "warning", "danger");
9804
9853
  var icons = {
9805
9854
  info: InfoIcon,
@@ -9819,7 +9868,7 @@ var GlobalMessage = ({
9819
9868
  }) => {
9820
9869
  const { t } = useTranslation();
9821
9870
  const [isClosed, setClosed] = useState18(false);
9822
- return !isClosed ? /* @__PURE__ */ jsxs109(
9871
+ return !isClosed ? /* @__PURE__ */ jsxs107(
9823
9872
  "div",
9824
9873
  {
9825
9874
  ...getBaseHTMLProps(
@@ -9835,7 +9884,7 @@ var GlobalMessage = ({
9835
9884
  rest
9836
9885
  ),
9837
9886
  children: [
9838
- /* @__PURE__ */ jsxs109(
9887
+ /* @__PURE__ */ jsxs107(
9839
9888
  "div",
9840
9889
  {
9841
9890
  className: cn(GlobalMessage_default.content, closable && GlobalMessage_default["content--closable"]),
@@ -9951,7 +10000,7 @@ var InlineEditContextProvider = (props) => {
9951
10000
  };
9952
10001
  useOnKeyDown(["Enter"], () => onExitHandler());
9953
10002
  useOnKeyDown(["Escape"], () => onExitHandler());
9954
- useOnClickOutside(inputRef == null ? void 0 : inputRef.current, () => onExitHandler());
10003
+ useOnClickOutside(inputRef, () => onExitHandler());
9955
10004
  return /* @__PURE__ */ jsx293(
9956
10005
  InlineEditContext,
9957
10006
  {
@@ -9987,10 +10036,10 @@ var InlineEdit_default = {
9987
10036
  };
9988
10037
 
9989
10038
  // src/components/InlineEdit/InlineEdit.utils.tsx
9990
- import { jsxs as jsxs110 } from "react/jsx-runtime";
10039
+ import { jsxs as jsxs108 } from "react/jsx-runtime";
9991
10040
  var inlineEditVisuallyHidden = (id, clearable) => {
9992
10041
  const { t } = useTranslation();
9993
- return /* @__PURE__ */ jsxs110(VisuallyHidden, { id, children: [
10042
+ return /* @__PURE__ */ jsxs108(VisuallyHidden, { id, children: [
9994
10043
  t(texts20.inlineEditInfo),
9995
10044
  " ",
9996
10045
  !clearable && t(texts20.notClearable)
@@ -10067,7 +10116,7 @@ function createClearChangeEvent(elementId) {
10067
10116
  }
10068
10117
 
10069
10118
  // src/components/InlineEdit/InlineField.tsx
10070
- import { Fragment as Fragment9, jsx as jsx294, jsxs as jsxs111 } from "react/jsx-runtime";
10119
+ import { Fragment as Fragment9, jsx as jsx294, jsxs as jsxs109 } from "react/jsx-runtime";
10071
10120
  function InlineField(props) {
10072
10121
  const {
10073
10122
  elementType,
@@ -10148,7 +10197,7 @@ function InlineField(props) {
10148
10197
  }
10149
10198
  );
10150
10199
  case "select":
10151
- return /* @__PURE__ */ jsxs111(Fragment9, { children: [
10200
+ return /* @__PURE__ */ jsxs109(Fragment9, { children: [
10152
10201
  /* @__PURE__ */ jsx294(
10153
10202
  "select",
10154
10203
  {
@@ -10173,8 +10222,8 @@ function InlineField(props) {
10173
10222
  return null;
10174
10223
  }
10175
10224
  };
10176
- return /* @__PURE__ */ jsxs111(Box, { position: "relative", width, children: [
10177
- /* @__PURE__ */ jsxs111("div", { className: Input_default["input-group"], children: [
10225
+ return /* @__PURE__ */ jsxs109(Box, { position: "relative", width, children: [
10226
+ /* @__PURE__ */ jsxs109("div", { className: Input_default["input-group"], children: [
10178
10227
  !isEditing && !hideIcon && makeIcon(EditIcon, InlineEdit_default["edit-icon"]),
10179
10228
  renderElement()
10180
10229
  ] }),
@@ -10305,7 +10354,7 @@ var NavigationItem = ({ isCurrent, ...rest }) => /* @__PURE__ */ jsx298(
10305
10354
  );
10306
10355
 
10307
10356
  // src/components/InternalHeader/InternalHeader.tsx
10308
- import { jsx as jsx299, jsxs as jsxs112 } from "react/jsx-runtime";
10357
+ import { jsx as jsx299, jsxs as jsxs110 } from "react/jsx-runtime";
10309
10358
  import { createElement as createElement2 } from "react";
10310
10359
  var InternalHeader = (props) => {
10311
10360
  const {
@@ -10359,7 +10408,7 @@ var InternalHeader = (props) => {
10359
10408
  ) }) : null;
10360
10409
  const hasContextMenu = hasContextMenuElements || !!user || hasNavInContextMenu;
10361
10410
  const hasContextMenuLargeScreen = hasContextMenuElements || !!user;
10362
- return /* @__PURE__ */ jsxs112(
10411
+ return /* @__PURE__ */ jsxs110(
10363
10412
  Box,
10364
10413
  {
10365
10414
  display: "flex",
@@ -10395,7 +10444,7 @@ var InternalHeader = (props) => {
10395
10444
  {
10396
10445
  showBelow: !hasContextMenuLargeScreen && hasSmallScreenBreakpoint ? smallScreenBreakpoint : void 0,
10397
10446
  className: cn(InternalHeader_default["context-menu-group"]),
10398
- children: /* @__PURE__ */ jsxs112(OverflowMenuGroup, { children: [
10447
+ children: /* @__PURE__ */ jsxs110(OverflowMenuGroup, { children: [
10399
10448
  /* @__PURE__ */ jsx299(
10400
10449
  Button,
10401
10450
  {
@@ -10404,7 +10453,7 @@ var InternalHeader = (props) => {
10404
10453
  "aria-label": t(texts21.openMenu)
10405
10454
  }
10406
10455
  ),
10407
- /* @__PURE__ */ jsxs112(OverflowMenu, { className: InternalHeader_default["context-menu"], children: [
10456
+ /* @__PURE__ */ jsxs110(OverflowMenu, { className: InternalHeader_default["context-menu"], children: [
10408
10457
  user && /* @__PURE__ */ jsx299(OverflowMenuList, { children: user.href ? /* @__PURE__ */ jsx299(OverflowMenuLink, { icon: PersonIcon, ...user }) : /* @__PURE__ */ jsx299(OverflowMenuSpan, { icon: PersonIcon, ...user }) }),
10409
10458
  hasNavInContextMenu && /* @__PURE__ */ jsx299(
10410
10459
  ShowHide,
@@ -10485,7 +10534,7 @@ var LocalMessage_default = {
10485
10534
  };
10486
10535
 
10487
10536
  // src/components/LocalMessage/LocalMessage.tsx
10488
- import { Fragment as Fragment10, jsx as jsx300, jsxs as jsxs113 } from "react/jsx-runtime";
10537
+ import { Fragment as Fragment10, jsx as jsx300, jsxs as jsxs111 } from "react/jsx-runtime";
10489
10538
  var L_MESSAGE_PURPOSES = createPurposes(
10490
10539
  "info",
10491
10540
  "success",
@@ -10518,7 +10567,7 @@ var LocalMessage = ({
10518
10567
  if (isClosed) {
10519
10568
  return /* @__PURE__ */ jsx300(Fragment10, {});
10520
10569
  }
10521
- return /* @__PURE__ */ jsxs113(
10570
+ return /* @__PURE__ */ jsxs111(
10522
10571
  Box,
10523
10572
  {
10524
10573
  ...getBaseHTMLProps(
@@ -10589,7 +10638,7 @@ var Modal_default = {
10589
10638
  };
10590
10639
 
10591
10640
  // src/components/Modal/Modal.tsx
10592
- import { jsx as jsx301, jsxs as jsxs114 } from "react/jsx-runtime";
10641
+ import { jsx as jsx301, jsxs as jsxs112 } from "react/jsx-runtime";
10593
10642
  var Modal = ({
10594
10643
  isOpen = false,
10595
10644
  parentElement,
@@ -10648,7 +10697,7 @@ var Modal = ({
10648
10697
  isMounted: isOpen && hasTransitionedIn,
10649
10698
  ref: backdropRef,
10650
10699
  onClick: onBackdropClick,
10651
- children: /* @__PURE__ */ jsxs114(
10700
+ children: /* @__PURE__ */ jsxs112(
10652
10701
  Paper,
10653
10702
  {
10654
10703
  display: "flex",
@@ -10676,7 +10725,7 @@ var Modal = ({
10676
10725
  id: modalId,
10677
10726
  elevation: "large",
10678
10727
  children: [
10679
- /* @__PURE__ */ jsxs114(
10728
+ /* @__PURE__ */ jsxs112(
10680
10729
  HStack,
10681
10730
  {
10682
10731
  paddingBlock: "0 x0.75",
@@ -10751,6 +10800,189 @@ import { jsx as jsx303 } from "react/jsx-runtime";
10751
10800
  var ModalActions = (props) => /* @__PURE__ */ jsx303(Box, { display: "flex", flexWrap: "wrap", gap: "x1", ...props });
10752
10801
  ModalActions.displayName = "ModalActions";
10753
10802
 
10803
+ // src/components/NewsPopover/NewsPopover.module.css
10804
+ var NewsPopover_default = {
10805
+ "close-button": "NewsPopover_close-button",
10806
+ "img-wrapper": "NewsPopover_img-wrapper"
10807
+ };
10808
+
10809
+ // src/components/NewsPopover/NewsPopover.tsx
10810
+ import { Fragment as Fragment11, jsx as jsx304, jsxs as jsxs113 } from "react/jsx-runtime";
10811
+ var NewsPopover = ({
10812
+ id,
10813
+ className,
10814
+ style,
10815
+ htmlProps,
10816
+ header,
10817
+ news,
10818
+ defaultActiveSlide = 0,
10819
+ activeSlide: activeSlideProp,
10820
+ setActiveSlide: setActiveSlideProp,
10821
+ isOpen: isOpenProp,
10822
+ isInitiallyOpen = true,
10823
+ setIsOpen: setIsOpenProp,
10824
+ smallScreenBreakpoint = "xs",
10825
+ closeOnClickOutside = true,
10826
+ ref,
10827
+ ...rest
10828
+ }) => {
10829
+ if (news.length === 0) {
10830
+ throw new Error('NewsPopover must have at least one item in "news" prop');
10831
+ }
10832
+ if (header.length > 35) {
10833
+ console.warn(
10834
+ "[NewsPopover] header exceeds recommended length (about 35 characters). This may cause wrapping or layout issues depending on theme."
10835
+ );
10836
+ }
10837
+ news.forEach((n, i) => {
10838
+ if (n.heading.length > 35) {
10839
+ console.warn(
10840
+ `[NewsPopover] news[${i}].heading exceeds recommended length (about 35 characters). This may cause wrapping or layout issues depending on theme.`
10841
+ );
10842
+ }
10843
+ if (n.text.length > 135) {
10844
+ console.warn(
10845
+ `[NewsPopover] news[${i}].text exceeds recommended length (about 135 characters). This may cause wrapping or layout issues depending on theme.`
10846
+ );
10847
+ }
10848
+ });
10849
+ const { t } = useTranslation();
10850
+ const [activeSlide, setActiveSlide] = useControllableState({
10851
+ value: activeSlideProp,
10852
+ defaultValue: defaultActiveSlide,
10853
+ onChange: setActiveSlideProp
10854
+ });
10855
+ const [isOpen, setIsOpen] = useControllableState({
10856
+ onChange: setIsOpenProp,
10857
+ value: isOpenProp,
10858
+ defaultValue: isInitiallyOpen
10859
+ });
10860
+ function handleSlideChange(slide) {
10861
+ setActiveSlide(slide);
10862
+ }
10863
+ const popoverRef = useFocusTrap(true);
10864
+ const combinedRef = useCombinedRef(ref, popoverRef);
10865
+ useOnClickOutside(popoverRef, () => {
10866
+ if (closeOnClickOutside && isOpen) {
10867
+ setIsOpen(false);
10868
+ }
10869
+ });
10870
+ useOnKeyDown("Escape", () => setIsOpen(false));
10871
+ const isList = news.length > 1;
10872
+ const slideContent = (el, i) => /* @__PURE__ */ jsxs113(Fragment11, { children: [
10873
+ /* @__PURE__ */ jsxs113(
10874
+ Paper,
10875
+ {
10876
+ background: "brand-secondary-subtle",
10877
+ width: "100%",
10878
+ borderRadius: "0",
10879
+ display: "grid",
10880
+ placeItems: "center",
10881
+ paddingBlock: "x0.5",
10882
+ children: [
10883
+ i !== void 0 && /* @__PURE__ */ jsx304(VisuallyHidden, { children: t(commonTexts.pageOf(i + 1, news.length)) }),
10884
+ /* @__PURE__ */ jsx304(Box, { height: "113px", maxWidth: "380px", className: NewsPopover_default["img-wrapper"], children: el.image })
10885
+ ]
10886
+ }
10887
+ ),
10888
+ /* @__PURE__ */ jsxs113(VStack, { gap: "x0.75", alignItems: "center", margin: "x0.75 x0.75 x1 x0.75", children: [
10889
+ /* @__PURE__ */ jsx304(Heading, { level: 3, children: el.heading }),
10890
+ /* @__PURE__ */ jsx304(Paragraph, { textAlign: "center", children: el.text })
10891
+ ] })
10892
+ ] });
10893
+ const content = isList ? /* @__PURE__ */ jsx304(Box, { as: StylelessList, width: "100%", children: news.map((el, i) => {
10894
+ const active = activeSlide === i;
10895
+ return /* @__PURE__ */ jsx304("li", { "aria-current": active, hidden: !active, children: slideContent(el, i) }, i);
10896
+ }) }) : /* @__PURE__ */ jsx304(Box, { width: "100%", children: slideContent(news[0]) });
10897
+ function handleNext() {
10898
+ if (activeSlide === news.length - 1) handleSlideChange(0);
10899
+ else handleSlideChange(activeSlide + 1);
10900
+ }
10901
+ function handlePrevious() {
10902
+ if (activeSlide === 0) handleSlideChange(news.length - 1);
10903
+ else handleSlideChange(activeSlide - 1);
10904
+ }
10905
+ const headerId = "dds-news-popover-header";
10906
+ return isOpen ? /* @__PURE__ */ jsxs113(
10907
+ Paper,
10908
+ {
10909
+ ...getBaseHTMLProps(
10910
+ id,
10911
+ cn(className, focusable),
10912
+ style,
10913
+ htmlProps,
10914
+ rest
10915
+ ),
10916
+ ref: combinedRef,
10917
+ position: "relative",
10918
+ border: "border-subtle",
10919
+ role: "dialog",
10920
+ "aria-labelledby": headerId,
10921
+ height: isList ? "368px" : "327px",
10922
+ width: styleUpToBreakpoint("100%", smallScreenBreakpoint, "405px"),
10923
+ children: [
10924
+ /* @__PURE__ */ jsx304(HStack, { margin: "x0.75 x3 x0.75 x0.75", children: /* @__PURE__ */ jsx304(Heading, { id: headerId, level: 2, typographyType: "headingSmall", children: header }) }),
10925
+ /* @__PURE__ */ jsxs113(
10926
+ VStack,
10927
+ {
10928
+ alignItems: "center",
10929
+ height: isList ? "299px" : void 0,
10930
+ "aria-live": "polite",
10931
+ children: [
10932
+ content,
10933
+ isList && /* @__PURE__ */ jsxs113(HStack, { alignItems: "center", gap: "x1", marginBlock: "auto 0", children: [
10934
+ /* @__PURE__ */ jsx304(
10935
+ Button,
10936
+ {
10937
+ "aria-label": t(commonTexts.previousPage),
10938
+ size: "small",
10939
+ purpose: "tertiary",
10940
+ icon: ChevronLeftIcon,
10941
+ onClick: () => handlePrevious()
10942
+ }
10943
+ ),
10944
+ news.map((slide, i) => {
10945
+ const active = activeSlide === i;
10946
+ return /* @__PURE__ */ jsx304(
10947
+ Icon,
10948
+ {
10949
+ iconSize: "small",
10950
+ icon: CircleFilledIcon,
10951
+ color: active ? "brand-tertiary-default" : "brand-tertiary-subtle"
10952
+ }
10953
+ );
10954
+ }),
10955
+ /* @__PURE__ */ jsx304(
10956
+ Button,
10957
+ {
10958
+ "aria-label": t(commonTexts.nextPage),
10959
+ size: "small",
10960
+ purpose: "tertiary",
10961
+ icon: ChevronRightIcon,
10962
+ onClick: () => handleNext()
10963
+ }
10964
+ )
10965
+ ] }),
10966
+ /* @__PURE__ */ jsx304(
10967
+ Button,
10968
+ {
10969
+ icon: CloseIcon,
10970
+ purpose: "tertiary",
10971
+ size: "small",
10972
+ "aria-label": t(commonTexts.close),
10973
+ onClick: () => setIsOpen(false),
10974
+ className: NewsPopover_default["close-button"]
10975
+ }
10976
+ )
10977
+ ]
10978
+ }
10979
+ )
10980
+ ]
10981
+ }
10982
+ ) : null;
10983
+ };
10984
+ NewsPopover.displayName = "NewsPopover";
10985
+
10754
10986
  // src/components/Pagination/Pagination.tsx
10755
10987
  import { useState as useState23 } from "react";
10756
10988
 
@@ -11062,7 +11294,7 @@ import React from "react";
11062
11294
  import {
11063
11295
  components
11064
11296
  } from "react-select";
11065
- import { jsx as jsx304, jsxs as jsxs115 } from "react/jsx-runtime";
11297
+ import { jsx as jsx305, jsxs as jsxs114 } from "react/jsx-runtime";
11066
11298
  var {
11067
11299
  Option,
11068
11300
  NoOptionsMessage,
@@ -11075,25 +11307,25 @@ var {
11075
11307
  } = components;
11076
11308
  var DDSOption = ({
11077
11309
  ...props
11078
- }) => /* @__PURE__ */ jsxs115(Option, { ...props, children: [
11079
- props.isSelected && /* @__PURE__ */ jsx304(Icon, { icon: CheckIcon, iconSize: "small" }),
11310
+ }) => /* @__PURE__ */ jsxs114(Option, { ...props, children: [
11311
+ props.isSelected && /* @__PURE__ */ jsx305(Icon, { icon: CheckIcon, iconSize: "small" }),
11080
11312
  props.children
11081
11313
  ] });
11082
- var CustomOption = (props) => /* @__PURE__ */ jsx304(Option, { ...props, children: React.createElement(props.customElement, props) });
11314
+ var CustomOption = (props) => /* @__PURE__ */ jsx305(Option, { ...props, children: React.createElement(props.customElement, props) });
11083
11315
  var CustomSingleValue = ({
11084
11316
  id,
11085
11317
  Element,
11086
11318
  ...props
11087
- }) => /* @__PURE__ */ jsx304(SingleValue, { ...props, children: /* @__PURE__ */ jsx304("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ jsx304(Element, { ...props }) : props.children }) });
11088
- var DDSNoOptionsMessage = (props) => /* @__PURE__ */ jsx304(NoOptionsMessage, { ...props, children: "Ingen treff" });
11319
+ }) => /* @__PURE__ */ jsx305(SingleValue, { ...props, children: /* @__PURE__ */ jsx305("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ jsx305(Element, { ...props }) : props.children }) });
11320
+ var DDSNoOptionsMessage = (props) => /* @__PURE__ */ jsx305(NoOptionsMessage, { ...props, children: "Ingen treff" });
11089
11321
  var DDSClearIndicator = ({
11090
11322
  ...props
11091
- }) => /* @__PURE__ */ jsx304(ClearIndicator, { ...props, children: /* @__PURE__ */ jsx304(Icon, { icon: CloseSmallIcon, iconSize: "component" }) });
11092
- var DDSMultiValueRemove = (props) => /* @__PURE__ */ jsx304(MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx304(Icon, { icon: CloseSmallIcon, iconSize: "component" }) });
11323
+ }) => /* @__PURE__ */ jsx305(ClearIndicator, { ...props, children: /* @__PURE__ */ jsx305(Icon, { icon: CloseSmallIcon, iconSize: "component" }) });
11324
+ var DDSMultiValueRemove = (props) => /* @__PURE__ */ jsx305(MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx305(Icon, { icon: CloseSmallIcon, iconSize: "component" }) });
11093
11325
  var DDSDropdownIndicator = (props) => {
11094
11326
  const { className, componentSize, ...rest } = props;
11095
11327
  const iconState = rest.selectProps.menuIsOpen ? "up" : "down";
11096
- return /* @__PURE__ */ jsx304(
11328
+ return /* @__PURE__ */ jsx305(
11097
11329
  DropdownIndicator,
11098
11330
  {
11099
11331
  ...rest,
@@ -11102,7 +11334,7 @@ var DDSDropdownIndicator = (props) => {
11102
11334
  Select_default["dropdown-indicator"],
11103
11335
  Input_default[`input-with-el-right--${componentSize}`]
11104
11336
  ),
11105
- children: /* @__PURE__ */ jsx304(
11337
+ children: /* @__PURE__ */ jsx305(
11106
11338
  Icon,
11107
11339
  {
11108
11340
  icon: AnimatedChevronUpDownIcon,
@@ -11117,7 +11349,7 @@ var DDSInput = ({
11117
11349
  ariaInvalid,
11118
11350
  ariaDescribedby,
11119
11351
  ...props
11120
- }) => /* @__PURE__ */ jsx304(
11352
+ }) => /* @__PURE__ */ jsx305(
11121
11353
  Input2,
11122
11354
  {
11123
11355
  ...props,
@@ -11137,7 +11369,7 @@ function DDSControl(props) {
11137
11369
  ...rest
11138
11370
  } = props;
11139
11371
  const hasIcon = !!icon;
11140
- return /* @__PURE__ */ jsxs115(
11372
+ return /* @__PURE__ */ jsxs114(
11141
11373
  Control,
11142
11374
  {
11143
11375
  ...rest,
@@ -11154,7 +11386,7 @@ function DDSControl(props) {
11154
11386
  hasIcon && Input_default[`input-with-icon--${componentSize}`]
11155
11387
  ),
11156
11388
  children: [
11157
- hasIcon && /* @__PURE__ */ jsx304(
11389
+ hasIcon && /* @__PURE__ */ jsx305(
11158
11390
  Icon,
11159
11391
  {
11160
11392
  icon,
@@ -11172,7 +11404,7 @@ function DDSControl(props) {
11172
11404
  }
11173
11405
 
11174
11406
  // src/components/Select/Select.tsx
11175
- import { jsx as jsx305, jsxs as jsxs116 } from "react/jsx-runtime";
11407
+ import { jsx as jsx306, jsxs as jsxs115 } from "react/jsx-runtime";
11176
11408
  function Select({
11177
11409
  id,
11178
11410
  label,
@@ -11223,7 +11455,7 @@ function Select({
11223
11455
  componentSize === "xsmall" && "var(--dds-input-default-width-xsmall)"
11224
11456
  );
11225
11457
  const customInput = useCallback7(
11226
- (props) => /* @__PURE__ */ jsx305(
11458
+ (props) => /* @__PURE__ */ jsx306(
11227
11459
  DDSInput,
11228
11460
  {
11229
11461
  ...props,
@@ -11241,7 +11473,7 @@ function Select({
11241
11473
  []
11242
11474
  );
11243
11475
  const customSingleValue = useCallback7(
11244
- (props) => /* @__PURE__ */ jsx305(
11476
+ (props) => /* @__PURE__ */ jsx306(
11245
11477
  CustomSingleValue,
11246
11478
  {
11247
11479
  ...props,
@@ -11252,15 +11484,15 @@ function Select({
11252
11484
  []
11253
11485
  );
11254
11486
  const customClearIndicator = useCallback7(
11255
- (props) => /* @__PURE__ */ jsx305(DDSClearIndicator, { ...props }),
11487
+ (props) => /* @__PURE__ */ jsx306(DDSClearIndicator, { ...props }),
11256
11488
  []
11257
11489
  );
11258
11490
  const customDropdownIndicator = useCallback7(
11259
- (props) => /* @__PURE__ */ jsx305(DDSDropdownIndicator, { ...props, componentSize }),
11491
+ (props) => /* @__PURE__ */ jsx306(DDSDropdownIndicator, { ...props, componentSize }),
11260
11492
  []
11261
11493
  );
11262
11494
  const customControl = useCallback7(
11263
- (props) => /* @__PURE__ */ jsx305(
11495
+ (props) => /* @__PURE__ */ jsx306(
11264
11496
  DDSControl,
11265
11497
  {
11266
11498
  ...props,
@@ -11275,9 +11507,9 @@ function Select({
11275
11507
  const customOptionComponent = useCallback7(
11276
11508
  (props) => {
11277
11509
  if (customOptionElement) {
11278
- return /* @__PURE__ */ jsx305(CustomOption, { ...props, customElement: customOptionElement });
11510
+ return /* @__PURE__ */ jsx306(CustomOption, { ...props, customElement: customOptionElement });
11279
11511
  } else {
11280
- return /* @__PURE__ */ jsx305(DDSOption, { ...props });
11512
+ return /* @__PURE__ */ jsx306(DDSOption, { ...props });
11281
11513
  }
11282
11514
  },
11283
11515
  [customOptionElement, componentSize]
@@ -11318,7 +11550,7 @@ function Select({
11318
11550
  openMenuOnClick: readOnly ? false : openMenuOnClick ? openMenuOnClick : void 0,
11319
11551
  ...rest
11320
11552
  };
11321
- return /* @__PURE__ */ jsxs116(
11553
+ return /* @__PURE__ */ jsxs115(
11322
11554
  Box,
11323
11555
  {
11324
11556
  width: inputWidth,
@@ -11339,7 +11571,7 @@ function Select({
11339
11571
  readOnly,
11340
11572
  afterLabelContent
11341
11573
  }),
11342
- /* @__PURE__ */ jsx305(ReactSelect, { ...reactSelectProps, ref }),
11574
+ /* @__PURE__ */ jsx306(ReactSelect, { ...reactSelectProps, ref }),
11343
11575
  renderInputMessage({ tip, tipId, errorMessage, errorMessageId })
11344
11576
  ]
11345
11577
  }
@@ -11368,7 +11600,7 @@ var NativeSelect_default = {
11368
11600
  };
11369
11601
 
11370
11602
  // src/components/Select/NativeSelect/NativeSelect.tsx
11371
- import { jsx as jsx306, jsxs as jsxs117 } from "react/jsx-runtime";
11603
+ import { jsx as jsx307, jsxs as jsxs116 } from "react/jsx-runtime";
11372
11604
  var NativeSelect = ({
11373
11605
  ref,
11374
11606
  id,
@@ -11437,7 +11669,7 @@ var NativeSelect = ({
11437
11669
  const iconSize = componentSize === "medium" ? "medium" : "small";
11438
11670
  const showClearButton = clearable && hasValue && !readOnly && !rest.disabled;
11439
11671
  const hasIcon = !!icon;
11440
- return /* @__PURE__ */ jsxs117("div", { className, style, children: [
11672
+ return /* @__PURE__ */ jsxs116("div", { className, style, children: [
11441
11673
  renderLabel({
11442
11674
  label,
11443
11675
  htmlFor: uniqueId,
@@ -11445,7 +11677,7 @@ var NativeSelect = ({
11445
11677
  readOnly,
11446
11678
  afterLabelContent
11447
11679
  }),
11448
- /* @__PURE__ */ jsxs117(
11680
+ /* @__PURE__ */ jsxs116(
11449
11681
  Box,
11450
11682
  {
11451
11683
  position: "relative",
@@ -11455,7 +11687,7 @@ var NativeSelect = ({
11455
11687
  Input_default["input-group"]
11456
11688
  ),
11457
11689
  children: [
11458
- hasIcon && /* @__PURE__ */ jsx306(
11690
+ hasIcon && /* @__PURE__ */ jsx307(
11459
11691
  Icon,
11460
11692
  {
11461
11693
  icon,
@@ -11466,7 +11698,7 @@ var NativeSelect = ({
11466
11698
  iconSize: "component"
11467
11699
  }
11468
11700
  ),
11469
- /* @__PURE__ */ jsx306(
11701
+ /* @__PURE__ */ jsx307(
11470
11702
  "select",
11471
11703
  {
11472
11704
  ref: useCombinedRef(ref, selectRef),
@@ -11500,7 +11732,7 @@ var NativeSelect = ({
11500
11732
  children
11501
11733
  }
11502
11734
  ),
11503
- showClearButton && /* @__PURE__ */ jsx306(
11735
+ showClearButton && /* @__PURE__ */ jsx307(
11504
11736
  ClearButton,
11505
11737
  {
11506
11738
  "aria-label": t(commonTexts.clearSelect),
@@ -11509,7 +11741,7 @@ var NativeSelect = ({
11509
11741
  className: NativeSelect_default[`clear-button--${componentSize}`]
11510
11742
  }
11511
11743
  ),
11512
- !multiple && /* @__PURE__ */ jsx306(
11744
+ !multiple && /* @__PURE__ */ jsx307(
11513
11745
  Icon,
11514
11746
  {
11515
11747
  icon: ChevronDownIcon,
@@ -11532,7 +11764,7 @@ var NativeSelect = ({
11532
11764
  var createSelectOptions = (...args) => args.map((v) => ({ label: v, value: v }));
11533
11765
 
11534
11766
  // src/components/Pagination/Pagination.tsx
11535
- import { jsx as jsx307, jsxs as jsxs118 } from "react/jsx-runtime";
11767
+ import { jsx as jsx308, jsxs as jsxs117 } from "react/jsx-runtime";
11536
11768
  var Pagination = ({
11537
11769
  itemsAmount,
11538
11770
  defaultItemsPerPage = 10,
@@ -11587,7 +11819,7 @@ var Pagination = ({
11587
11819
  };
11588
11820
  const listItems = items.length > 0 ? items.map((item, i) => {
11589
11821
  const isActive = item === activePage;
11590
- return /* @__PURE__ */ jsx307("li", { className: Pagination_default.list__item, children: item !== "truncator" && typeof item === "number" ? /* @__PURE__ */ jsx307(
11822
+ return /* @__PURE__ */ jsx308("li", { className: Pagination_default.list__item, children: item !== "truncator" && typeof item === "number" ? /* @__PURE__ */ jsx308(
11591
11823
  Button,
11592
11824
  {
11593
11825
  purpose: isActive ? "primary" : "secondary",
@@ -11595,10 +11827,10 @@ var Pagination = ({
11595
11827
  onClick: (event) => {
11596
11828
  onPageChange(event, item);
11597
11829
  },
11598
- "aria-label": isActive ? t(texts22.currentPage(item)) : t(texts22.page(item)),
11830
+ "aria-label": isActive ? t(commonTexts.currentPage(item)) : t(commonTexts.page(item)),
11599
11831
  children: item
11600
11832
  }
11601
- ) : /* @__PURE__ */ jsx307(
11833
+ ) : /* @__PURE__ */ jsx308(
11602
11834
  Icon,
11603
11835
  {
11604
11836
  icon: MoreHorizontalIcon,
@@ -11606,7 +11838,7 @@ var Pagination = ({
11606
11838
  }
11607
11839
  ) }, `pagination-item-${i}`);
11608
11840
  }) : void 0;
11609
- const previousPageButton = /* @__PURE__ */ jsx307(
11841
+ const previousPageButton = /* @__PURE__ */ jsx308(
11610
11842
  Button,
11611
11843
  {
11612
11844
  purpose: "secondary",
@@ -11615,10 +11847,10 @@ var Pagination = ({
11615
11847
  onClick: (event) => {
11616
11848
  onPageChange(event, activePage - 1);
11617
11849
  },
11618
- "aria-label": t(texts22.previousPage)
11850
+ "aria-label": t(commonTexts.previousPage)
11619
11851
  }
11620
11852
  );
11621
- const nextPageButton = /* @__PURE__ */ jsx307(
11853
+ const nextPageButton = /* @__PURE__ */ jsx308(
11622
11854
  Button,
11623
11855
  {
11624
11856
  purpose: "secondary",
@@ -11627,13 +11859,13 @@ var Pagination = ({
11627
11859
  onClick: (event) => {
11628
11860
  onPageChange(event, activePage + 1);
11629
11861
  },
11630
- "aria-label": t(texts22.nextPage)
11862
+ "aria-label": t(commonTexts.nextPage)
11631
11863
  }
11632
11864
  );
11633
11865
  const isOnFirstPage = activePage === 1;
11634
11866
  const isOnLastPage = activePage === pagesLength;
11635
11867
  const baseHTMLProps = getBaseHTMLProps(id, className, style, htmlProps, rest);
11636
- const navigation = withPagination ? /* @__PURE__ */ jsxs118(
11868
+ const navigation = withPagination ? /* @__PURE__ */ jsxs117(
11637
11869
  Box,
11638
11870
  {
11639
11871
  as: "nav",
@@ -11645,14 +11877,14 @@ var Pagination = ({
11645
11877
  ...baseHTMLProps
11646
11878
  },
11647
11879
  children: [
11648
- /* @__PURE__ */ jsxs118(
11880
+ /* @__PURE__ */ jsxs117(
11649
11881
  ShowHide,
11650
11882
  {
11651
11883
  as: "ol",
11652
11884
  hideBelow: smallScreenBreakpoint,
11653
11885
  className: Pagination_default.list,
11654
11886
  children: [
11655
- /* @__PURE__ */ jsx307(
11887
+ /* @__PURE__ */ jsx308(
11656
11888
  "li",
11657
11889
  {
11658
11890
  className: cn(
@@ -11664,7 +11896,7 @@ var Pagination = ({
11664
11896
  }
11665
11897
  ),
11666
11898
  listItems,
11667
- /* @__PURE__ */ jsx307(
11899
+ /* @__PURE__ */ jsx308(
11668
11900
  "li",
11669
11901
  {
11670
11902
  className: cn(
@@ -11678,14 +11910,14 @@ var Pagination = ({
11678
11910
  ]
11679
11911
  }
11680
11912
  ),
11681
- !!smallScreenBreakpoint && /* @__PURE__ */ jsxs118(
11913
+ !!smallScreenBreakpoint && /* @__PURE__ */ jsxs117(
11682
11914
  ShowHide,
11683
11915
  {
11684
11916
  as: "ol",
11685
11917
  showBelow: smallScreenBreakpoint,
11686
11918
  className: Pagination_default.list,
11687
11919
  children: [
11688
- /* @__PURE__ */ jsx307(
11920
+ /* @__PURE__ */ jsx308(
11689
11921
  "li",
11690
11922
  {
11691
11923
  className: cn(
@@ -11693,7 +11925,7 @@ var Pagination = ({
11693
11925
  isOnFirstPage && Pagination_default["list__item--hidden"]
11694
11926
  ),
11695
11927
  "aria-hidden": isOnFirstPage,
11696
- children: /* @__PURE__ */ jsx307(
11928
+ children: /* @__PURE__ */ jsx308(
11697
11929
  Button,
11698
11930
  {
11699
11931
  purpose: "secondary",
@@ -11707,7 +11939,7 @@ var Pagination = ({
11707
11939
  )
11708
11940
  }
11709
11941
  ),
11710
- /* @__PURE__ */ jsx307(
11942
+ /* @__PURE__ */ jsx308(
11711
11943
  "li",
11712
11944
  {
11713
11945
  className: cn(
@@ -11718,7 +11950,7 @@ var Pagination = ({
11718
11950
  children: previousPageButton
11719
11951
  }
11720
11952
  ),
11721
- /* @__PURE__ */ jsx307("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ jsx307(
11953
+ /* @__PURE__ */ jsx308("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ jsx308(
11722
11954
  Button,
11723
11955
  {
11724
11956
  size: "small",
@@ -11728,7 +11960,7 @@ var Pagination = ({
11728
11960
  children: activePage
11729
11961
  }
11730
11962
  ) }),
11731
- /* @__PURE__ */ jsx307(
11963
+ /* @__PURE__ */ jsx308(
11732
11964
  "li",
11733
11965
  {
11734
11966
  className: cn(
@@ -11739,7 +11971,7 @@ var Pagination = ({
11739
11971
  children: nextPageButton
11740
11972
  }
11741
11973
  ),
11742
- /* @__PURE__ */ jsx307(
11974
+ /* @__PURE__ */ jsx308(
11743
11975
  "li",
11744
11976
  {
11745
11977
  className: cn(
@@ -11747,7 +11979,7 @@ var Pagination = ({
11747
11979
  isOnLastPage && Pagination_default["list__item--hidden"]
11748
11980
  ),
11749
11981
  "aria-hidden": isOnLastPage,
11750
- children: /* @__PURE__ */ jsx307(
11982
+ children: /* @__PURE__ */ jsx308(
11751
11983
  Button,
11752
11984
  {
11753
11985
  purpose: "secondary",
@@ -11769,7 +12001,7 @@ var Pagination = ({
11769
12001
  ) : null;
11770
12002
  const activePageFirstItem = activePage === 1 ? 1 : activePage * itemsPerPage - itemsPerPage + 1;
11771
12003
  const activePageLastItem = activePage === pagesLength ? itemsAmount : activePage * itemsPerPage;
11772
- return !withCounter && !withSelect ? navigation : /* @__PURE__ */ jsxs118(
12004
+ return !withCounter && !withSelect ? navigation : /* @__PURE__ */ jsxs117(
11773
12005
  Box,
11774
12006
  {
11775
12007
  display: "flex",
@@ -11780,7 +12012,7 @@ var Pagination = ({
11780
12012
  alignItems: styleUpToBreakpoint("center", smallScreenBreakpoint),
11781
12013
  ...baseHTMLProps,
11782
12014
  children: [
11783
- /* @__PURE__ */ jsxs118(
12015
+ /* @__PURE__ */ jsxs117(
11784
12016
  Box,
11785
12017
  {
11786
12018
  display: "grid",
@@ -11788,7 +12020,7 @@ var Pagination = ({
11788
12020
  alignItems: "center",
11789
12021
  className: Pagination_default.indicators,
11790
12022
  children: [
11791
- withSelect && /* @__PURE__ */ jsx307(
12023
+ withSelect && /* @__PURE__ */ jsx308(
11792
12024
  Select,
11793
12025
  {
11794
12026
  options: tSelectOptions,
@@ -11804,7 +12036,7 @@ var Pagination = ({
11804
12036
  "aria-label": t(texts22.itemsPerPage)
11805
12037
  }
11806
12038
  ),
11807
- withCounter && /* @__PURE__ */ jsx307(Paragraph, { typographyType: "bodyShortMedium", children: t(
12039
+ withCounter && /* @__PURE__ */ jsx308(Paragraph, { typographyType: "bodyShortMedium", children: t(
11808
12040
  texts22.showsAmountOfTotalItems(
11809
12041
  activePageFirstItem,
11810
12042
  activePageLastItem,
@@ -11835,20 +12067,6 @@ var texts22 = createTexts({
11835
12067
  en: "Items per page",
11836
12068
  se: "Elementat juohki siidui"
11837
12069
  },
11838
- nextPage: {
11839
- nb: "Neste side",
11840
- no: "Neste side",
11841
- nn: "Neste side",
11842
- en: "Next page",
11843
- se: "Boahte siidu"
11844
- },
11845
- previousPage: {
11846
- nb: "Forrige side",
11847
- no: "Forrige side",
11848
- nn: "F\xF8rre side",
11849
- en: "Previous page",
11850
- se: "Ovddit siidu"
11851
- },
11852
12070
  firstPage: {
11853
12071
  nb: "F\xF8rste side",
11854
12072
  no: "F\xF8rste side",
@@ -11863,20 +12081,6 @@ var texts22 = createTexts({
11863
12081
  en: "Last page",
11864
12082
  se: "Ma\u014Bimu\u0161 siidu"
11865
12083
  },
11866
- currentPage: (page) => ({
11867
- nb: `N\xE5v\xE6rende side (${page})`,
11868
- no: `N\xE5v\xE6rende side (${page})`,
11869
- nn: `Noverande side (${page})`,
11870
- en: `Current page (${page})`,
11871
- se: `D\xE1la siidu (${page})`
11872
- }),
11873
- page: (page) => ({
11874
- nb: `Side ${page}`,
11875
- no: `Side ${page}`,
11876
- nn: `Side ${page}`,
11877
- en: `Page ${page}`,
11878
- se: `Siidu ${page}`
11879
- }),
11880
12084
  showsAmountOfTotalItems: (first, last, total) => ({
11881
12085
  nb: `Viser ${first}-${last} av ${total}`,
11882
12086
  no: `Viser ${first}-${last} av ${total}`,
@@ -12300,7 +12504,7 @@ var PhoneInput_default = {
12300
12504
  };
12301
12505
 
12302
12506
  // src/components/PhoneInput/PhoneInput.tsx
12303
- import { jsx as jsx308, jsxs as jsxs119 } from "react/jsx-runtime";
12507
+ import { jsx as jsx309, jsxs as jsxs118 } from "react/jsx-runtime";
12304
12508
  var prioritizedCountries = [
12305
12509
  COUNTRIES.NO,
12306
12510
  COUNTRIES.SE,
@@ -12438,7 +12642,7 @@ var PhoneInput = ({
12438
12642
  const showRequiredStyling = !!(required || ariaRequired);
12439
12643
  const bp = props.smallScreenBreakpoint;
12440
12644
  const widthDefault = componentSize === "xsmall" && "var(--dds-input-default-width-xsmall)";
12441
- return /* @__PURE__ */ jsxs119("div", { className: cn(className, Input_default.container), style, children: [
12645
+ return /* @__PURE__ */ jsxs118("div", { className: cn(className, Input_default.container), style, children: [
12442
12646
  renderLabel({
12443
12647
  label,
12444
12648
  htmlFor: phoneNumberId,
@@ -12446,7 +12650,7 @@ var PhoneInput = ({
12446
12650
  readOnly,
12447
12651
  afterLabelContent
12448
12652
  }),
12449
- /* @__PURE__ */ jsxs119(
12653
+ /* @__PURE__ */ jsxs118(
12450
12654
  Box,
12451
12655
  {
12452
12656
  display: "flex",
@@ -12459,8 +12663,8 @@ var PhoneInput = ({
12459
12663
  role: "group",
12460
12664
  "aria-label": tGroupLabel,
12461
12665
  children: [
12462
- /* @__PURE__ */ jsx308("label", { className: utilStyles_default["visually-hidden"], htmlFor: selectId, children: tSelectLabel }),
12463
- /* @__PURE__ */ jsx308(
12666
+ /* @__PURE__ */ jsx309("label", { className: utilStyles_default["visually-hidden"], htmlFor: selectId, children: tSelectLabel }),
12667
+ /* @__PURE__ */ jsx309(
12464
12668
  NativeSelect,
12465
12669
  {
12466
12670
  width: styleUpToBreakpoint(
@@ -12481,11 +12685,11 @@ var PhoneInput = ({
12481
12685
  hasTip ? tipId : void 0,
12482
12686
  ariaDescribedby
12483
12687
  ]),
12484
- children: countryOptions.map((item, index) => /* @__PURE__ */ jsx308("option", { value: item.countryCode, children: item.label }, index))
12688
+ children: countryOptions.map((item, index) => /* @__PURE__ */ jsx309("option", { value: item.countryCode, children: item.label }, index))
12485
12689
  }
12486
12690
  ),
12487
- /* @__PURE__ */ jsxs119(Box, { width: "100%", display: "flex", className: Input_default["input-group"], children: [
12488
- /* @__PURE__ */ jsx308(
12691
+ /* @__PURE__ */ jsxs118(Box, { width: "100%", display: "flex", className: Input_default["input-group"], children: [
12692
+ /* @__PURE__ */ jsx309(
12489
12693
  "span",
12490
12694
  {
12491
12695
  className: cn(
@@ -12497,7 +12701,7 @@ var PhoneInput = ({
12497
12701
  children: callingCode
12498
12702
  }
12499
12703
  ),
12500
- /* @__PURE__ */ jsx308(
12704
+ /* @__PURE__ */ jsx309(
12501
12705
  Box,
12502
12706
  {
12503
12707
  as: StatefulInput,
@@ -12577,7 +12781,7 @@ var PopoverContext = createContext13({});
12577
12781
  var usePopoverContext = () => useContext20(PopoverContext);
12578
12782
 
12579
12783
  // src/components/Popover/Popover.tsx
12580
- import { jsx as jsx309, jsxs as jsxs120 } from "react/jsx-runtime";
12784
+ import { jsx as jsx310, jsxs as jsxs119 } from "react/jsx-runtime";
12581
12785
  var Popover = ({
12582
12786
  id,
12583
12787
  header,
@@ -12658,7 +12862,7 @@ var Popover = ({
12658
12862
  useEffect28(() => {
12659
12863
  setFloatOptions == null ? void 0 : setFloatOptions({ placement, offset });
12660
12864
  }, [placement, offset]);
12661
- useOnClickOutside([popoverRef.current, anchorEl], () => {
12865
+ useOnClickOutside([popoverRef, anchorRef], () => {
12662
12866
  if (isOpen && !hasContext) onClose == null ? void 0 : onClose();
12663
12867
  });
12664
12868
  useOnKeyDown("Escape", () => {
@@ -12666,7 +12870,7 @@ var Popover = ({
12666
12870
  });
12667
12871
  const hasTitle = !!header;
12668
12872
  const openCn = hasTransitionedIn && isOpen ? "open" : "closed";
12669
- const popover = /* @__PURE__ */ jsxs120(
12873
+ const popover = /* @__PURE__ */ jsxs119(
12670
12874
  Paper,
12671
12875
  {
12672
12876
  ...getBaseHTMLProps(
@@ -12697,15 +12901,15 @@ var Popover = ({
12697
12901
  elevation: "large",
12698
12902
  border: "border-subtle",
12699
12903
  children: [
12700
- header && /* @__PURE__ */ jsx309("div", { className: Popover_default.header, children: typeof header === "string" ? /* @__PURE__ */ jsx309(Heading, { level: 2, typographyType: "headingMedium", children: header }) : header }),
12701
- /* @__PURE__ */ jsx309(
12904
+ header && /* @__PURE__ */ jsx310("div", { className: Popover_default.header, children: typeof header === "string" ? /* @__PURE__ */ jsx310(Heading, { level: 2, typographyType: "headingMedium", children: header }) : header }),
12905
+ /* @__PURE__ */ jsx310(
12702
12906
  "div",
12703
12907
  {
12704
12908
  className: !hasTitle && withCloseButton ? Popover_default["content--closable--no-header"] : "",
12705
12909
  children
12706
12910
  }
12707
12911
  ),
12708
- withCloseButton && /* @__PURE__ */ jsx309(
12912
+ withCloseButton && /* @__PURE__ */ jsx310(
12709
12913
  Button,
12710
12914
  {
12711
12915
  icon: CloseIcon,
@@ -12732,7 +12936,7 @@ import {
12732
12936
  useRef as useRef32,
12733
12937
  useState as useState25
12734
12938
  } from "react";
12735
- import { jsx as jsx310 } from "react/jsx-runtime";
12939
+ import { jsx as jsx311 } from "react/jsx-runtime";
12736
12940
  var PopoverGroup = ({
12737
12941
  isOpen: propIsOpen,
12738
12942
  setIsOpen: propSetIsOpen,
@@ -12778,8 +12982,8 @@ var PopoverGroup = ({
12778
12982
  (_a2 = buttonRef.current) == null ? void 0 : _a2.focus();
12779
12983
  }
12780
12984
  });
12781
- const elements = [popoverRef.current];
12782
- if (buttonRef.current) elements.push(buttonRef.current);
12985
+ const elements = [popoverRef];
12986
+ if (buttonRef) elements.push(buttonRef);
12783
12987
  useOnClickOutside(elements, () => {
12784
12988
  if (open) handleClose();
12785
12989
  });
@@ -12793,7 +12997,7 @@ var PopoverGroup = ({
12793
12997
  ref: combinedAnchorRef
12794
12998
  }) : child);
12795
12999
  });
12796
- return /* @__PURE__ */ jsx310(
13000
+ return /* @__PURE__ */ jsx311(
12797
13001
  PopoverContext,
12798
13002
  {
12799
13003
  value: {
@@ -12851,7 +13055,7 @@ var ProgressTracker_default = {
12851
13055
 
12852
13056
  // src/components/ProgressTracker/ProgressTrackerItem.tsx
12853
13057
  import { useMemo as useMemo2 } from "react";
12854
- import { Fragment as Fragment11, jsx as jsx311, jsxs as jsxs121 } from "react/jsx-runtime";
13058
+ import { Fragment as Fragment12, jsx as jsx312, jsxs as jsxs120 } from "react/jsx-runtime";
12855
13059
  var toItemState = (active, completed, disabled) => {
12856
13060
  if (disabled) {
12857
13061
  return "disabled";
@@ -12896,10 +13100,10 @@ var ProgressTrackerItem = (props) => {
12896
13100
  };
12897
13101
  const stepNumberContent = useMemo2(() => {
12898
13102
  if (completed) {
12899
- return /* @__PURE__ */ jsx311(Icon, { icon: CheckIcon, iconSize: "small" });
13103
+ return /* @__PURE__ */ jsx312(Icon, { icon: CheckIcon, iconSize: "small" });
12900
13104
  }
12901
13105
  if (icon !== void 0) {
12902
- return /* @__PURE__ */ jsx311(Icon, { icon, iconSize: "small" });
13106
+ return /* @__PURE__ */ jsx312(Icon, { icon, iconSize: "small" });
12903
13107
  }
12904
13108
  return stepNumber;
12905
13109
  }, [completed, icon, index]);
@@ -12908,8 +13112,8 @@ var ProgressTrackerItem = (props) => {
12908
13112
  if (active) return "text-action-resting";
12909
13113
  }
12910
13114
  const isInactiveLink = disabled || active;
12911
- const stepContent = /* @__PURE__ */ jsxs121(Fragment11, { children: [
12912
- /* @__PURE__ */ jsx311(
13115
+ const stepContent = /* @__PURE__ */ jsxs120(Fragment12, { children: [
13116
+ /* @__PURE__ */ jsx312(
12913
13117
  Box,
12914
13118
  {
12915
13119
  display: "flex",
@@ -12924,7 +13128,7 @@ var ProgressTrackerItem = (props) => {
12924
13128
  children: stepNumberContent
12925
13129
  }
12926
13130
  ),
12927
- /* @__PURE__ */ jsx311(
13131
+ /* @__PURE__ */ jsx312(
12928
13132
  Typography,
12929
13133
  {
12930
13134
  as: "div",
@@ -12940,14 +13144,14 @@ var ProgressTrackerItem = (props) => {
12940
13144
  )
12941
13145
  ] });
12942
13146
  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)}`;
12943
- return /* @__PURE__ */ jsx311(
13147
+ return /* @__PURE__ */ jsx312(
12944
13148
  Box,
12945
13149
  {
12946
13150
  as: "li",
12947
13151
  display: direction === "row" ? "flex" : void 0,
12948
13152
  "aria-current": active ? "step" : void 0,
12949
13153
  className: cn(ProgressTracker_default["list-item"], ProgressTracker_default[`list-item--${direction}`]),
12950
- children: handleStepChange ? /* @__PURE__ */ jsx311(
13154
+ children: handleStepChange ? /* @__PURE__ */ jsx312(
12951
13155
  Box,
12952
13156
  {
12953
13157
  as: StylelessButton,
@@ -12972,7 +13176,7 @@ var ProgressTrackerItem = (props) => {
12972
13176
  disabled,
12973
13177
  children: stepContent
12974
13178
  }
12975
- ) : /* @__PURE__ */ jsx311(
13179
+ ) : /* @__PURE__ */ jsx312(
12976
13180
  "div",
12977
13181
  {
12978
13182
  ...getBaseHTMLProps(
@@ -13008,7 +13212,7 @@ var texts24 = createTexts({
13008
13212
  });
13009
13213
 
13010
13214
  // src/components/ProgressTracker/ProgressTracker.tsx
13011
- import { jsx as jsx312 } from "react/jsx-runtime";
13215
+ import { jsx as jsx313 } from "react/jsx-runtime";
13012
13216
  var ProgressTracker = (() => {
13013
13217
  const Res = ({
13014
13218
  id,
@@ -13039,7 +13243,7 @@ var ProgressTracker = (() => {
13039
13243
  }, [children]);
13040
13244
  const isRow = direction === "row";
13041
13245
  const { "aria-label": ariaLabel } = htmlProps;
13042
- return /* @__PURE__ */ jsx312(
13246
+ return /* @__PURE__ */ jsx313(
13043
13247
  ProgressTrackerContext,
13044
13248
  {
13045
13249
  value: {
@@ -13047,12 +13251,12 @@ var ProgressTracker = (() => {
13047
13251
  handleStepChange: handleChange,
13048
13252
  direction
13049
13253
  },
13050
- children: /* @__PURE__ */ jsx312(
13254
+ children: /* @__PURE__ */ jsx313(
13051
13255
  "nav",
13052
13256
  {
13053
13257
  "aria-label": ariaLabel != null ? ariaLabel : t(texts25.stepProgression),
13054
13258
  ...getBaseHTMLProps(id, className, style, htmlProps, rest),
13055
- children: /* @__PURE__ */ jsx312(
13259
+ children: /* @__PURE__ */ jsx313(
13056
13260
  Box,
13057
13261
  {
13058
13262
  as: StylelessOList,
@@ -13112,7 +13316,7 @@ var ProgressBar_default = {
13112
13316
  };
13113
13317
 
13114
13318
  // src/components/ProgressBar/ProgressBar.tsx
13115
- import { jsx as jsx313, jsxs as jsxs122 } from "react/jsx-runtime";
13319
+ import { jsx as jsx314, jsxs as jsxs121 } from "react/jsx-runtime";
13116
13320
  var PROGRESS_BAR_SIZES = createSizes("small", "medium");
13117
13321
  var ProgressBar = ({
13118
13322
  label,
@@ -13138,9 +13342,9 @@ var ProgressBar = ({
13138
13342
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
13139
13343
  const fillPrecentage = hasValidValue && value / (max != null ? max : 1) * 100 + "%";
13140
13344
  const isIndeterminate = !hasValidValue && !hasErrorMessage;
13141
- return /* @__PURE__ */ jsxs122(Box, { width: "100%", className, style, children: [
13345
+ return /* @__PURE__ */ jsxs121(Box, { width: "100%", className, style, children: [
13142
13346
  renderLabel({ label, htmlFor: uniqueId }),
13143
- /* @__PURE__ */ jsx313(
13347
+ /* @__PURE__ */ jsx314(
13144
13348
  "progress",
13145
13349
  {
13146
13350
  id: uniqueId,
@@ -13156,13 +13360,13 @@ var ProgressBar = ({
13156
13360
  children: fillPrecentage
13157
13361
  }
13158
13362
  ),
13159
- /* @__PURE__ */ jsx313(
13363
+ /* @__PURE__ */ jsx314(
13160
13364
  Box,
13161
13365
  {
13162
13366
  width: getInputWidth(width),
13163
13367
  height: size2 === "small" ? "x0.75" : "x1.5",
13164
13368
  className: cn(ProgressBar_default.progress),
13165
- children: /* @__PURE__ */ jsx313(
13369
+ children: /* @__PURE__ */ jsx314(
13166
13370
  Box,
13167
13371
  {
13168
13372
  height: "100%",
@@ -13208,7 +13412,7 @@ var Search_default = {
13208
13412
 
13209
13413
  // src/components/Search/SearchSuggestionItem.tsx
13210
13414
  import { useEffect as useEffect30, useRef as useRef33 } from "react";
13211
- import { jsx as jsx314 } from "react/jsx-runtime";
13415
+ import { jsx as jsx315 } from "react/jsx-runtime";
13212
13416
  var SearchSuggestionItem = ({
13213
13417
  focus,
13214
13418
  ref,
@@ -13222,7 +13426,7 @@ var SearchSuggestionItem = ({
13222
13426
  (_a = itemRef.current) == null ? void 0 : _a.focus();
13223
13427
  }
13224
13428
  }, [focus]);
13225
- return /* @__PURE__ */ jsx314(
13429
+ return /* @__PURE__ */ jsx315(
13226
13430
  DropdownItem,
13227
13431
  {
13228
13432
  as: StylelessButton,
@@ -13235,7 +13439,7 @@ var SearchSuggestionItem = ({
13235
13439
  SearchSuggestionItem.displayName = "SearchSuggestionItem";
13236
13440
 
13237
13441
  // src/components/Search/SearchSuggestions.tsx
13238
- import { jsx as jsx315, jsxs as jsxs123 } from "react/jsx-runtime";
13442
+ import { jsx as jsx316, jsxs as jsxs122 } from "react/jsx-runtime";
13239
13443
  var SearchSuggestions = ({
13240
13444
  id,
13241
13445
  searchId,
@@ -13255,7 +13459,7 @@ var SearchSuggestions = ({
13255
13459
  const { t } = useTranslation();
13256
13460
  const [focus] = useRoveFocus(suggestions == null ? void 0 : suggestions.length, showSuggestions);
13257
13461
  const suggestionsToRender = maxSuggestions ? suggestions == null ? void 0 : suggestions.slice(maxSuggestions) : suggestions;
13258
- return /* @__PURE__ */ jsxs123(
13462
+ return /* @__PURE__ */ jsxs122(
13259
13463
  Paper,
13260
13464
  {
13261
13465
  ...getBaseHTMLProps(
@@ -13280,9 +13484,9 @@ var SearchSuggestions = ({
13280
13484
  overflowY: "scroll",
13281
13485
  marginBlock: "x0.25 0",
13282
13486
  children: [
13283
- /* @__PURE__ */ jsx315(DropdownHeader, { id: suggestionsHeaderId, children: t(texts26.searchSuggestions) }),
13284
- /* @__PURE__ */ jsx315(StylelessList, { role: "listbox", "aria-labelledby": suggestionsHeaderId, children: suggestionsToRender.map((suggestion, index) => {
13285
- return /* @__PURE__ */ jsx315("li", { role: "option", children: /* @__PURE__ */ jsx315(
13487
+ /* @__PURE__ */ jsx316(DropdownHeader, { id: suggestionsHeaderId, children: t(texts26.searchSuggestions) }),
13488
+ /* @__PURE__ */ jsx316(StylelessList, { role: "listbox", "aria-labelledby": suggestionsHeaderId, children: suggestionsToRender.map((suggestion, index) => {
13489
+ return /* @__PURE__ */ jsx316("li", { role: "option", children: /* @__PURE__ */ jsx316(
13286
13490
  SearchSuggestionItem,
13287
13491
  {
13288
13492
  index,
@@ -13318,7 +13522,7 @@ var texts26 = createTexts({
13318
13522
  });
13319
13523
 
13320
13524
  // src/components/Search/Search.tsx
13321
- import { Fragment as Fragment12, jsx as jsx316, jsxs as jsxs124 } from "react/jsx-runtime";
13525
+ import { Fragment as Fragment13, jsx as jsx317, jsxs as jsxs123 } from "react/jsx-runtime";
13322
13526
  var Search = ({
13323
13527
  componentSize = "medium",
13324
13528
  buttonProps,
@@ -13366,7 +13570,7 @@ var Search = ({
13366
13570
  } = buttonProps != null ? buttonProps : {};
13367
13571
  const hasSuggestions = !!context.suggestions;
13368
13572
  const showSearchButton = !!buttonProps && !!onClick;
13369
- const inputGroup = /* @__PURE__ */ jsxs124(
13573
+ const inputGroup = /* @__PURE__ */ jsxs123(
13370
13574
  HStack,
13371
13575
  {
13372
13576
  position: "relative",
@@ -13377,7 +13581,7 @@ var Search = ({
13377
13581
  Input_default["input-group"]
13378
13582
  ),
13379
13583
  children: [
13380
- showIcon && /* @__PURE__ */ jsx316(
13584
+ showIcon && /* @__PURE__ */ jsx317(
13381
13585
  Icon,
13382
13586
  {
13383
13587
  icon: SearchIcon,
@@ -13388,7 +13592,7 @@ var Search = ({
13388
13592
  )
13389
13593
  }
13390
13594
  ),
13391
- /* @__PURE__ */ jsx316(
13595
+ /* @__PURE__ */ jsx317(
13392
13596
  Box,
13393
13597
  {
13394
13598
  as: Input,
@@ -13418,8 +13622,8 @@ var Search = ({
13418
13622
  )
13419
13623
  }
13420
13624
  ),
13421
- hasSuggestions && /* @__PURE__ */ jsxs124(Fragment12, { children: [
13422
- /* @__PURE__ */ jsx316(
13625
+ hasSuggestions && /* @__PURE__ */ jsxs123(Fragment13, { children: [
13626
+ /* @__PURE__ */ jsx317(
13423
13627
  SearchSuggestions,
13424
13628
  {
13425
13629
  id: suggestionsId,
@@ -13430,9 +13634,9 @@ var Search = ({
13430
13634
  showSuggestions: context.showSuggestions
13431
13635
  }
13432
13636
  ),
13433
- /* @__PURE__ */ jsx316(VisuallyHidden, { id: suggestionsDescriptionId, children: t(texts27.useArrowKeys) })
13637
+ /* @__PURE__ */ jsx317(VisuallyHidden, { id: suggestionsDescriptionId, children: t(texts27.useArrowKeys) })
13434
13638
  ] }),
13435
- hasValue && /* @__PURE__ */ jsx316(
13639
+ hasValue && /* @__PURE__ */ jsx317(
13436
13640
  ClearButton,
13437
13641
  {
13438
13642
  size: "component",
@@ -13447,10 +13651,10 @@ var Search = ({
13447
13651
  ]
13448
13652
  }
13449
13653
  );
13450
- return /* @__PURE__ */ jsxs124("div", { children: [
13654
+ return /* @__PURE__ */ jsxs123("div", { children: [
13451
13655
  renderLabel({ htmlFor: uniqueId, label }),
13452
- /* @__PURE__ */ jsxs124("div", { children: [
13453
- showSearchButton ? /* @__PURE__ */ jsxs124(
13656
+ /* @__PURE__ */ jsxs123("div", { children: [
13657
+ showSearchButton ? /* @__PURE__ */ jsxs123(
13454
13658
  Grid,
13455
13659
  {
13456
13660
  className,
@@ -13462,7 +13666,7 @@ var Search = ({
13462
13666
  style,
13463
13667
  children: [
13464
13668
  inputGroup,
13465
- /* @__PURE__ */ jsx316(
13669
+ /* @__PURE__ */ jsx317(
13466
13670
  Button,
13467
13671
  {
13468
13672
  size: componentSize,
@@ -13509,7 +13713,7 @@ import {
13509
13713
  useRef as useRef34,
13510
13714
  useState as useState28
13511
13715
  } from "react";
13512
- import { jsx as jsx317 } from "react/jsx-runtime";
13716
+ import { jsx as jsx318 } from "react/jsx-runtime";
13513
13717
  var SearchAutocompleteWrapper = (props) => {
13514
13718
  const {
13515
13719
  value,
@@ -13572,7 +13776,7 @@ var SearchAutocompleteWrapper = (props) => {
13572
13776
  };
13573
13777
  const inputRef = useRef34(null);
13574
13778
  const suggestionsRef = useRef34(null);
13575
- useOnClickOutside([inputRef.current, suggestionsRef.current], () => {
13779
+ useOnClickOutside([inputRef, suggestionsRef], () => {
13576
13780
  closeSuggestions();
13577
13781
  });
13578
13782
  useOnKeyDown("Tab", () => closeSuggestions());
@@ -13585,7 +13789,7 @@ var SearchAutocompleteWrapper = (props) => {
13585
13789
  inputValue,
13586
13790
  onSugggestionClick: handleSuggestionClick
13587
13791
  };
13588
- return /* @__PURE__ */ jsx317(AutocompleteSearchContext, { value: contextProps, children });
13792
+ return /* @__PURE__ */ jsx318(AutocompleteSearchContext, { value: contextProps, children });
13589
13793
  };
13590
13794
  SearchAutocompleteWrapper.displayName = "SearchAutocompleteWrapper";
13591
13795
 
@@ -13601,7 +13805,7 @@ var Skeleton_default = {
13601
13805
  };
13602
13806
 
13603
13807
  // src/components/Skeleton/Skeleton.tsx
13604
- import { jsx as jsx318 } from "react/jsx-runtime";
13808
+ import { jsx as jsx319 } from "react/jsx-runtime";
13605
13809
  var Skeleton = ({
13606
13810
  width,
13607
13811
  height,
@@ -13611,7 +13815,7 @@ var Skeleton = ({
13611
13815
  ref,
13612
13816
  ...rest
13613
13817
  }) => {
13614
- return /* @__PURE__ */ jsx318(
13818
+ return /* @__PURE__ */ jsx319(
13615
13819
  Box,
13616
13820
  {
13617
13821
  width,
@@ -13631,7 +13835,7 @@ var SkipToContent_default = {
13631
13835
  };
13632
13836
 
13633
13837
  // src/components/SkipToContent/SkipToContent.tsx
13634
- import { jsx as jsx319 } from "react/jsx-runtime";
13838
+ import { jsx as jsx320 } from "react/jsx-runtime";
13635
13839
  var SkipToContent = ({
13636
13840
  text = "Til hovedinnhold",
13637
13841
  top = 0,
@@ -13641,7 +13845,7 @@ var SkipToContent = ({
13641
13845
  style,
13642
13846
  ...rest
13643
13847
  }) => {
13644
- return /* @__PURE__ */ jsx319(
13848
+ return /* @__PURE__ */ jsx320(
13645
13849
  Contrast,
13646
13850
  {
13647
13851
  padding: "x0.25",
@@ -13653,7 +13857,7 @@ var SkipToContent = ({
13653
13857
  className: cn(className, SkipToContent_default.wrapper),
13654
13858
  style,
13655
13859
  top,
13656
- children: /* @__PURE__ */ jsx319(Link, { ...rest, ...htmlProps, id, typographyType: "bodyShortMedium", children: text })
13860
+ children: /* @__PURE__ */ jsx320(Link, { ...rest, ...htmlProps, id, typographyType: "bodyShortMedium", children: text })
13657
13861
  }
13658
13862
  );
13659
13863
  };
@@ -13671,7 +13875,7 @@ var SplitButton_default = {
13671
13875
  };
13672
13876
 
13673
13877
  // src/components/SplitButton/SplitButton.tsx
13674
- import { jsx as jsx320, jsxs as jsxs125 } from "react/jsx-runtime";
13878
+ import { jsx as jsx321, jsxs as jsxs124 } from "react/jsx-runtime";
13675
13879
  var SplitButton = ({
13676
13880
  size: size2,
13677
13881
  primaryAction,
@@ -13686,8 +13890,8 @@ var SplitButton = ({
13686
13890
  purpose,
13687
13891
  size: size2
13688
13892
  };
13689
- return /* @__PURE__ */ jsxs125("div", { className: cn(className, SplitButton_default.container), ...rest, children: [
13690
- /* @__PURE__ */ jsx320(
13893
+ return /* @__PURE__ */ jsxs124("div", { className: cn(className, SplitButton_default.container), ...rest, children: [
13894
+ /* @__PURE__ */ jsx321(
13691
13895
  Button,
13692
13896
  {
13693
13897
  ...buttonStyleProps,
@@ -13696,8 +13900,8 @@ var SplitButton = ({
13696
13900
  className: SplitButton_default.main
13697
13901
  }
13698
13902
  ),
13699
- /* @__PURE__ */ jsxs125(OverflowMenuGroup, { isOpen, setIsOpen, children: [
13700
- /* @__PURE__ */ jsx320(
13903
+ /* @__PURE__ */ jsxs124(OverflowMenuGroup, { isOpen, setIsOpen, children: [
13904
+ /* @__PURE__ */ jsx321(
13701
13905
  Button,
13702
13906
  {
13703
13907
  ...buttonStyleProps,
@@ -13711,7 +13915,7 @@ var SplitButton = ({
13711
13915
  type: "button"
13712
13916
  }
13713
13917
  ),
13714
- /* @__PURE__ */ jsx320(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ jsx320(OverflowMenuList, { children: secondaryActions.map((item, index) => /* @__PURE__ */ jsx320(OverflowMenuButton, { ...item, children: item.children }, index)) }) })
13918
+ /* @__PURE__ */ jsx321(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ jsx321(OverflowMenuList, { children: secondaryActions.map((item, index) => /* @__PURE__ */ jsx321(OverflowMenuButton, { ...item, children: item.children }, index)) }) })
13715
13919
  ] })
13716
13920
  ] });
13717
13921
  };
@@ -13729,7 +13933,7 @@ var texts28 = createTexts({
13729
13933
  // src/components/Table/collapsible/CollapsibleRow.tsx
13730
13934
  import {
13731
13935
  Children as Children4,
13732
- Fragment as Fragment13,
13936
+ Fragment as Fragment14,
13733
13937
  cloneElement as cloneElement6,
13734
13938
  isValidElement as isValidElement6,
13735
13939
  useEffect as useEffect33,
@@ -13745,14 +13949,14 @@ var CollapsibleTableContext = createContext16({
13745
13949
  var useCollapsibleTableContext = () => useContext24(CollapsibleTableContext);
13746
13950
 
13747
13951
  // src/components/Table/normal/Body.tsx
13748
- import { jsx as jsx321 } from "react/jsx-runtime";
13749
- var Body = (props) => /* @__PURE__ */ jsx321("tbody", { ...props });
13952
+ import { jsx as jsx322 } from "react/jsx-runtime";
13953
+ var Body = (props) => /* @__PURE__ */ jsx322("tbody", { ...props });
13750
13954
  Body.displayName = "Table.Body";
13751
13955
 
13752
13956
  // src/components/Table/normal/Head.tsx
13753
13957
  import { createContext as createContext17, useContext as useContext25 } from "react";
13754
- import { jsx as jsx322 } from "react/jsx-runtime";
13755
- var Head = ({ children, ...rest }) => /* @__PURE__ */ jsx322("thead", { ...rest, children: /* @__PURE__ */ jsx322(HeadContext, { value: true, children }) });
13958
+ import { jsx as jsx323 } from "react/jsx-runtime";
13959
+ var Head = ({ children, ...rest }) => /* @__PURE__ */ jsx323("thead", { ...rest, children: /* @__PURE__ */ jsx323(HeadContext, { value: true, children }) });
13756
13960
  var HeadContext = createContext17(false);
13757
13961
  function useIsInTableHead() {
13758
13962
  const isInTableHead = useContext25(HeadContext);
@@ -13760,7 +13964,7 @@ function useIsInTableHead() {
13760
13964
  }
13761
13965
 
13762
13966
  // src/components/Table/normal/Cell.tsx
13763
- import { jsx as jsx323 } from "react/jsx-runtime";
13967
+ import { jsx as jsx324 } from "react/jsx-runtime";
13764
13968
  var Cell = ({
13765
13969
  children,
13766
13970
  type: _type,
@@ -13773,7 +13977,7 @@ var Cell = ({
13773
13977
  const type = _type != null ? _type : isInHead ? "head" : "data";
13774
13978
  const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
13775
13979
  const isComplexLayout = layout === "text and icon";
13776
- return isCollapsibleChild ? /* @__PURE__ */ jsx323(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ jsx323(
13980
+ return isCollapsibleChild ? /* @__PURE__ */ jsx324(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ jsx324(
13777
13981
  "th",
13778
13982
  {
13779
13983
  ...rest,
@@ -13782,26 +13986,26 @@ var Cell = ({
13782
13986
  !isComplexLayout && Table_default[`cell--${layout}`],
13783
13987
  Table_default["cell--head"]
13784
13988
  ),
13785
- children: isComplexLayout ? /* @__PURE__ */ jsx323("div", { className: Table_default.cell__inner, children }) : children
13989
+ children: isComplexLayout ? /* @__PURE__ */ jsx324("div", { className: Table_default.cell__inner, children }) : children
13786
13990
  }
13787
- ) : /* @__PURE__ */ jsx323(
13991
+ ) : /* @__PURE__ */ jsx324(
13788
13992
  "td",
13789
13993
  {
13790
13994
  ...rest,
13791
13995
  className: cn(className, !isComplexLayout && Table_default[`cell--${layout}`]),
13792
- children: isComplexLayout ? /* @__PURE__ */ jsx323("div", { className: Table_default.cell__inner, children }) : children
13996
+ children: isComplexLayout ? /* @__PURE__ */ jsx324("div", { className: Table_default.cell__inner, children }) : children
13793
13997
  }
13794
13998
  );
13795
13999
  };
13796
14000
  Cell.displayName = "Table.Cell";
13797
14001
 
13798
14002
  // src/components/Table/normal/Foot.tsx
13799
- import { jsx as jsx324 } from "react/jsx-runtime";
13800
- var Foot = (props) => /* @__PURE__ */ jsx324("tfoot", { ...props });
14003
+ import { jsx as jsx325 } from "react/jsx-runtime";
14004
+ var Foot = (props) => /* @__PURE__ */ jsx325("tfoot", { ...props });
13801
14005
  Foot.displayName = "Table.Foot";
13802
14006
 
13803
14007
  // src/components/Table/normal/Row.tsx
13804
- import { jsx as jsx325 } from "react/jsx-runtime";
14008
+ import { jsx as jsx326 } from "react/jsx-runtime";
13805
14009
  var Row = ({
13806
14010
  type: _type,
13807
14011
  mode = "normal",
@@ -13812,7 +14016,7 @@ var Row = ({
13812
14016
  }) => {
13813
14017
  const isInHeader = useIsInTableHead();
13814
14018
  const type = _type != null ? _type : isInHeader ? "head" : "body";
13815
- return /* @__PURE__ */ jsx325(
14019
+ return /* @__PURE__ */ jsx326(
13816
14020
  "tr",
13817
14021
  {
13818
14022
  className: cn(
@@ -13832,7 +14036,7 @@ var Row = ({
13832
14036
  Row.displayName = "Table.Row";
13833
14037
 
13834
14038
  // src/components/Table/normal/SortCell.tsx
13835
- import { jsx as jsx326, jsxs as jsxs126 } from "react/jsx-runtime";
14039
+ import { jsx as jsx327, jsxs as jsxs125 } from "react/jsx-runtime";
13836
14040
  var SortCell = ({
13837
14041
  isSorted,
13838
14042
  sortOrder,
@@ -13846,13 +14050,13 @@ var SortCell = ({
13846
14050
  if (sortOrder === "ascending") return ChevronDownIcon;
13847
14051
  return ChevronUpIcon;
13848
14052
  };
13849
- return /* @__PURE__ */ jsx326(
14053
+ return /* @__PURE__ */ jsx327(
13850
14054
  Cell,
13851
14055
  {
13852
14056
  type: "head",
13853
14057
  "aria-sort": isSorted && sortOrder ? sortOrder : void 0,
13854
14058
  ...rest,
13855
- children: /* @__PURE__ */ jsxs126(
14059
+ children: /* @__PURE__ */ jsxs125(
13856
14060
  StylelessButton,
13857
14061
  {
13858
14062
  onClick,
@@ -13861,7 +14065,7 @@ var SortCell = ({
13861
14065
  children: [
13862
14066
  children,
13863
14067
  " ",
13864
- /* @__PURE__ */ jsx326(Icon, { icon: SortIcon(), iconSize: "component" })
14068
+ /* @__PURE__ */ jsx327(Icon, { icon: SortIcon(), iconSize: "component" })
13865
14069
  ]
13866
14070
  }
13867
14071
  )
@@ -13880,7 +14084,7 @@ var texts29 = createTexts({
13880
14084
  });
13881
14085
 
13882
14086
  // src/components/Table/normal/Table.tsx
13883
- import { jsx as jsx327 } from "react/jsx-runtime";
14087
+ import { jsx as jsx328 } from "react/jsx-runtime";
13884
14088
  var Table = ({
13885
14089
  size: size2 = "medium",
13886
14090
  stickyHeader,
@@ -13899,7 +14103,7 @@ var Table = ({
13899
14103
  return "medium";
13900
14104
  }
13901
14105
  };
13902
- return /* @__PURE__ */ jsx327(
14106
+ return /* @__PURE__ */ jsx328(
13903
14107
  "table",
13904
14108
  {
13905
14109
  ...rest,
@@ -13926,7 +14130,7 @@ import {
13926
14130
  useRef as useRef35,
13927
14131
  useState as useState30
13928
14132
  } from "react";
13929
- import { jsx as jsx328 } from "react/jsx-runtime";
14133
+ import { jsx as jsx329 } from "react/jsx-runtime";
13930
14134
  var TableWrapper = ({ className, ...rest }) => {
13931
14135
  const themeContext = useContext26(ThemeContext);
13932
14136
  const container2 = themeContext == null ? void 0 : themeContext.el;
@@ -13951,7 +14155,7 @@ var TableWrapper = ({ className, ...rest }) => {
13951
14155
  window.addEventListener("resize", handleResize);
13952
14156
  return () => window.removeEventListener("resize", handleResize);
13953
14157
  });
13954
- return /* @__PURE__ */ jsx328(
14158
+ return /* @__PURE__ */ jsx329(
13955
14159
  "div",
13956
14160
  {
13957
14161
  ref: wrapperRef,
@@ -13978,7 +14182,7 @@ Table2.Row = Row;
13978
14182
  Table2.Foot = Foot;
13979
14183
 
13980
14184
  // src/components/Table/collapsible/CollapsibleRow.tsx
13981
- import { Fragment as Fragment14, jsx as jsx329, jsxs as jsxs127 } from "react/jsx-runtime";
14185
+ import { Fragment as Fragment15, jsx as jsx330, jsxs as jsxs126 } from "react/jsx-runtime";
13982
14186
  var CollapsibleRow = ({
13983
14187
  type: _type,
13984
14188
  className,
@@ -14021,24 +14225,24 @@ var CollapsibleRow = ({
14021
14225
  const collapsedRenderedChildren = isCollapsed && collapsedHeaderValues.length > 0 ? collapsedChildren.map(function(child, index) {
14022
14226
  const id = derivativeIdGenerator(prefix2, index.toString());
14023
14227
  collapsibleIds.push(id);
14024
- return /* @__PURE__ */ jsxs127(Fragment13, { children: [
14025
- /* @__PURE__ */ jsx329(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
14228
+ return /* @__PURE__ */ jsxs126(Fragment14, { children: [
14229
+ /* @__PURE__ */ jsx330(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
14026
14230
  isValidElement6(child) && cloneElement6(child, {
14027
14231
  collapsibleProps: { isCollapsibleChild: true }
14028
14232
  })
14029
14233
  ] }, `DL-${index}`);
14030
14234
  }) : null;
14031
- 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;
14235
+ 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;
14032
14236
  const definingColumnCells = childrenArray.slice().filter((column, index) => definingColumnIndex.indexOf(index) > -1).sort((a, b) => {
14033
14237
  return definingColumnIndex.indexOf(childrenArray.indexOf(a)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
14034
14238
  });
14035
14239
  const headerRow = () => {
14036
14240
  if (type !== "head" || !isCollapsed) return null;
14037
- return /* @__PURE__ */ jsx329(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs127(Fragment14, { children: [
14241
+ return /* @__PURE__ */ jsx330(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs126(Fragment15, { children: [
14038
14242
  definingColumnCells,
14039
- /* @__PURE__ */ jsxs127(Table2.Cell, { type: "head", layout: "center", children: [
14243
+ /* @__PURE__ */ jsxs126(Table2.Cell, { type: "head", layout: "center", children: [
14040
14244
  t(texts30.expand),
14041
- /* @__PURE__ */ jsx329(VisuallyHidden, { children: t(texts30.row) })
14245
+ /* @__PURE__ */ jsx330(VisuallyHidden, { children: t(texts30.row) })
14042
14246
  ] })
14043
14247
  ] }) });
14044
14248
  };
@@ -14046,16 +14250,16 @@ var CollapsibleRow = ({
14046
14250
  const rowWithChevron = () => {
14047
14251
  if (type !== "body" || !isCollapsed) return null;
14048
14252
  const iconState = childrenCollapsed ? "down" : "up";
14049
- return /* @__PURE__ */ jsxs127(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
14253
+ return /* @__PURE__ */ jsxs126(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
14050
14254
  definingColumnCells,
14051
- /* @__PURE__ */ jsx329(Table2.Cell, { children: /* @__PURE__ */ jsx329(
14255
+ /* @__PURE__ */ jsx330(Table2.Cell, { children: /* @__PURE__ */ jsx330(
14052
14256
  StylelessButton,
14053
14257
  {
14054
14258
  onClick: () => setChildrenCollapsed(!childrenCollapsed),
14055
14259
  "aria-expanded": !childrenCollapsed,
14056
14260
  "aria-controls": idList,
14057
14261
  className: cn(Table_default["collapse-button"], focusable),
14058
- children: /* @__PURE__ */ jsx329(
14262
+ children: /* @__PURE__ */ jsx330(
14059
14263
  Icon,
14060
14264
  {
14061
14265
  icon: AnimatedChevronUpDownIcon,
@@ -14067,13 +14271,13 @@ var CollapsibleRow = ({
14067
14271
  ) })
14068
14272
  ] });
14069
14273
  };
14070
- return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsxs127(Fragment14, { children: [
14274
+ return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsxs126(Fragment15, { children: [
14071
14275
  headerRow(),
14072
- type === "body" && /* @__PURE__ */ jsxs127(Fragment14, { children: [
14276
+ type === "body" && /* @__PURE__ */ jsxs126(Fragment15, { children: [
14073
14277
  rowWithChevron(),
14074
14278
  childrenCollapsed ? null : collapsedRows
14075
14279
  ] })
14076
- ] }) : /* @__PURE__ */ jsx329(Row, { ref, ...rowProps(), children });
14280
+ ] }) : /* @__PURE__ */ jsx330(Row, { ref, ...rowProps(), children });
14077
14281
  };
14078
14282
  CollapsibleRow.displayName = "CollapsibleTable.Row";
14079
14283
  var texts30 = createTexts({
@@ -14094,14 +14298,14 @@ var texts30 = createTexts({
14094
14298
  });
14095
14299
 
14096
14300
  // src/components/Table/collapsible/CollapsibleTable.tsx
14097
- import { jsx as jsx330 } from "react/jsx-runtime";
14301
+ import { jsx as jsx331 } from "react/jsx-runtime";
14098
14302
  var CollapsibleTable = ({
14099
14303
  isCollapsed,
14100
14304
  headerValues,
14101
14305
  definingColumnIndex = [0],
14102
14306
  ...rest
14103
14307
  }) => {
14104
- return /* @__PURE__ */ jsx330(
14308
+ return /* @__PURE__ */ jsx331(
14105
14309
  CollapsibleTableContext,
14106
14310
  {
14107
14311
  value: {
@@ -14109,7 +14313,7 @@ var CollapsibleTable = ({
14109
14313
  headerValues,
14110
14314
  definingColumnIndex
14111
14315
  },
14112
- children: /* @__PURE__ */ jsx330(Table2, { ...rest })
14316
+ children: /* @__PURE__ */ jsx331(Table2, { ...rest })
14113
14317
  }
14114
14318
  );
14115
14319
  };
@@ -14159,13 +14363,13 @@ import {
14159
14363
  useContext as useContext28,
14160
14364
  useLayoutEffect as useLayoutEffect4
14161
14365
  } from "react";
14162
- import { jsx as jsx331 } from "react/jsx-runtime";
14366
+ import { jsx as jsx332 } from "react/jsx-runtime";
14163
14367
  var TabContext = createContext19(null);
14164
14368
  function TabWidthContextProvider({
14165
14369
  children,
14166
14370
  onChangeWidths
14167
14371
  }) {
14168
- return /* @__PURE__ */ jsx331(
14372
+ return /* @__PURE__ */ jsx332(
14169
14373
  TabContext,
14170
14374
  {
14171
14375
  value: {
@@ -14197,7 +14401,7 @@ function useSetTabWidth(index, width) {
14197
14401
  }
14198
14402
 
14199
14403
  // src/components/Tabs/AddTabButton.tsx
14200
- import { jsx as jsx332, jsxs as jsxs128 } from "react/jsx-runtime";
14404
+ import { jsx as jsx333, jsxs as jsxs127 } from "react/jsx-runtime";
14201
14405
  var AddTabButton = ({
14202
14406
  ref,
14203
14407
  children,
@@ -14210,7 +14414,7 @@ var AddTabButton = ({
14210
14414
  const buttonRef = useRef36(null);
14211
14415
  const combinedRef = useCombinedRef(ref, buttonRef);
14212
14416
  const { tabContentDirection, size: size2 } = useTabsContext();
14213
- return /* @__PURE__ */ jsxs128(
14417
+ return /* @__PURE__ */ jsxs127(
14214
14418
  "button",
14215
14419
  {
14216
14420
  ...rest,
@@ -14223,8 +14427,8 @@ var AddTabButton = ({
14223
14427
  focus_default["focusable--inset"]
14224
14428
  ),
14225
14429
  children: [
14226
- /* @__PURE__ */ jsx332(Icon, { icon: PlusIcon, iconSize: "inherit" }),
14227
- /* @__PURE__ */ jsx332("span", { children })
14430
+ /* @__PURE__ */ jsx333(Icon, { icon: PlusIcon, iconSize: "inherit" }),
14431
+ /* @__PURE__ */ jsx333("span", { children })
14228
14432
  ]
14229
14433
  }
14230
14434
  );
@@ -14233,7 +14437,7 @@ AddTabButton.displayName = "AddTabButton";
14233
14437
 
14234
14438
  // src/components/Tabs/Tabs.tsx
14235
14439
  import { useEffect as useEffect34, useId as useId28, useRef as useRef37, useState as useState32 } from "react";
14236
- import { jsx as jsx333 } from "react/jsx-runtime";
14440
+ import { jsx as jsx334 } from "react/jsx-runtime";
14237
14441
  var TABS_SIZES = createSizes("small", "medium");
14238
14442
  var Tabs = ({
14239
14443
  id,
@@ -14264,7 +14468,7 @@ var Tabs = ({
14264
14468
  setActiveTab(activeTab);
14265
14469
  }
14266
14470
  }, [activeTab, thisActiveTab]);
14267
- return /* @__PURE__ */ jsx333(
14471
+ return /* @__PURE__ */ jsx334(
14268
14472
  TabsContext,
14269
14473
  {
14270
14474
  value: {
@@ -14279,7 +14483,7 @@ var Tabs = ({
14279
14483
  tabContentDirection,
14280
14484
  addTabButtonProps
14281
14485
  },
14282
- children: /* @__PURE__ */ jsx333(
14486
+ children: /* @__PURE__ */ jsx334(
14283
14487
  Box,
14284
14488
  {
14285
14489
  ...getBaseHTMLProps(uniqueId, className, style, htmlProps, rest),
@@ -14298,7 +14502,7 @@ import {
14298
14502
  useEffect as useEffect35,
14299
14503
  useRef as useRef38
14300
14504
  } from "react";
14301
- import { jsx as jsx334, jsxs as jsxs129 } from "react/jsx-runtime";
14505
+ import { jsx as jsx335, jsxs as jsxs128 } from "react/jsx-runtime";
14302
14506
  var Tab = ({
14303
14507
  active = false,
14304
14508
  icon,
@@ -14341,7 +14545,7 @@ var Tab = ({
14341
14545
  handleSelect();
14342
14546
  onKeyDown == null ? void 0 : onKeyDown(e);
14343
14547
  };
14344
- return /* @__PURE__ */ jsxs129(
14548
+ return /* @__PURE__ */ jsxs128(
14345
14549
  "button",
14346
14550
  {
14347
14551
  ...getBaseHTMLProps(
@@ -14366,8 +14570,8 @@ var Tab = ({
14366
14570
  onKeyDown: handleOnKeyDown,
14367
14571
  tabIndex: focus ? 0 : -1,
14368
14572
  children: [
14369
- icon && /* @__PURE__ */ jsx334(Icon, { icon, iconSize: "component" }),
14370
- /* @__PURE__ */ jsx334("span", { children })
14573
+ icon && /* @__PURE__ */ jsx335(Icon, { icon, iconSize: "component" }),
14574
+ /* @__PURE__ */ jsx335("span", { children })
14371
14575
  ]
14372
14576
  }
14373
14577
  );
@@ -14381,7 +14585,7 @@ import {
14381
14585
  isValidElement as isValidElement7,
14382
14586
  useState as useState33
14383
14587
  } from "react";
14384
- import { jsx as jsx335, jsxs as jsxs130 } from "react/jsx-runtime";
14588
+ import { jsx as jsx336, jsxs as jsxs129 } from "react/jsx-runtime";
14385
14589
  var TabList = ({
14386
14590
  children,
14387
14591
  id,
@@ -14439,7 +14643,7 @@ var TabList = ({
14439
14643
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
14440
14644
  ["--dds-tab-widths"]: widths.join(" ")
14441
14645
  };
14442
- return /* @__PURE__ */ jsx335(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ jsxs130(
14646
+ return /* @__PURE__ */ jsx336(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ jsxs129(
14443
14647
  "div",
14444
14648
  {
14445
14649
  ...rest,
@@ -14459,7 +14663,7 @@ var TabList = ({
14459
14663
  style: { ...style, ...customWidths },
14460
14664
  children: [
14461
14665
  tabListChildren,
14462
- hasButton && /* @__PURE__ */ jsx335(
14666
+ hasButton && /* @__PURE__ */ jsx336(
14463
14667
  AddTabButton,
14464
14668
  {
14465
14669
  index: tabListChildren ? tabListChildren.length : 0,
@@ -14473,7 +14677,7 @@ var TabList = ({
14473
14677
  TabList.displayName = "TabList";
14474
14678
 
14475
14679
  // src/components/Tabs/TabPanel.tsx
14476
- import { jsx as jsx336 } from "react/jsx-runtime";
14680
+ import { jsx as jsx337 } from "react/jsx-runtime";
14477
14681
  var TabPanel = ({
14478
14682
  active = false,
14479
14683
  children,
@@ -14483,7 +14687,7 @@ var TabPanel = ({
14483
14687
  htmlProps,
14484
14688
  padding = "x0.25",
14485
14689
  ...rest
14486
- }) => /* @__PURE__ */ jsx336(
14690
+ }) => /* @__PURE__ */ jsx337(
14487
14691
  Box,
14488
14692
  {
14489
14693
  padding,
@@ -14502,7 +14706,7 @@ import {
14502
14706
  cloneElement as cloneElement8,
14503
14707
  isValidElement as isValidElement8
14504
14708
  } from "react";
14505
- import { jsx as jsx337 } from "react/jsx-runtime";
14709
+ import { jsx as jsx338 } from "react/jsx-runtime";
14506
14710
  var TabPanels = ({ children, ref, ...rest }) => {
14507
14711
  const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
14508
14712
  const combinedRef = useCombinedRef(ref, tabPanelsRef);
@@ -14517,7 +14721,7 @@ var TabPanels = ({ children, ref, ...rest }) => {
14517
14721
  }
14518
14722
  });
14519
14723
  });
14520
- return /* @__PURE__ */ jsx337(Box, { ref: combinedRef, ...rest, children: panelChildren });
14724
+ return /* @__PURE__ */ jsx338(Box, { ref: combinedRef, ...rest, children: panelChildren });
14521
14725
  };
14522
14726
  TabPanels.displayName = "TabPanels";
14523
14727
 
@@ -14538,7 +14742,7 @@ var Tag_default = {
14538
14742
  };
14539
14743
 
14540
14744
  // src/components/Tag/Tag.tsx
14541
- import { jsx as jsx338, jsxs as jsxs131 } from "react/jsx-runtime";
14745
+ import { jsx as jsx339, jsxs as jsxs130 } from "react/jsx-runtime";
14542
14746
  var icons3 = {
14543
14747
  info: InfoIcon,
14544
14748
  danger: ErrorIcon,
@@ -14565,7 +14769,7 @@ var Tag = ({
14565
14769
  ...rest
14566
14770
  }) => {
14567
14771
  const icon = icons3[purpose];
14568
- return /* @__PURE__ */ jsxs131(
14772
+ return /* @__PURE__ */ jsxs130(
14569
14773
  TextOverflowEllipsisWrapper,
14570
14774
  {
14571
14775
  ...getBaseHTMLProps(
@@ -14582,8 +14786,8 @@ var Tag = ({
14582
14786
  rest
14583
14787
  ),
14584
14788
  children: [
14585
- withIcon && icon && /* @__PURE__ */ jsx338(Icon, { icon, iconSize: "component" }),
14586
- /* @__PURE__ */ jsx338(TextOverflowEllipsisInner, { children })
14789
+ withIcon && icon && /* @__PURE__ */ jsx339(Icon, { icon, iconSize: "component" }),
14790
+ /* @__PURE__ */ jsx339(TextOverflowEllipsisInner, { children })
14587
14791
  ]
14588
14792
  }
14589
14793
  );
@@ -14606,7 +14810,7 @@ var TextInput_default = {
14606
14810
  };
14607
14811
 
14608
14812
  // src/components/TextInput/TextInput.tsx
14609
- import { jsx as jsx339, jsxs as jsxs132 } from "react/jsx-runtime";
14813
+ import { jsx as jsx340, jsxs as jsxs131 } from "react/jsx-runtime";
14610
14814
  var TextInput = ({
14611
14815
  label,
14612
14816
  afterLabelContent,
@@ -14706,7 +14910,7 @@ var TextInput = ({
14706
14910
  disabled && TextInput_default["affix--disabled"]
14707
14911
  ];
14708
14912
  if (hasIcon) {
14709
- extendedInput = /* @__PURE__ */ jsxs132(
14913
+ extendedInput = /* @__PURE__ */ jsxs131(
14710
14914
  Box,
14711
14915
  {
14712
14916
  className: cn(
@@ -14715,7 +14919,7 @@ var TextInput = ({
14715
14919
  ),
14716
14920
  width: inputWidth,
14717
14921
  children: [
14718
- /* @__PURE__ */ jsx339(
14922
+ /* @__PURE__ */ jsx340(
14719
14923
  Icon,
14720
14924
  {
14721
14925
  icon,
@@ -14726,7 +14930,7 @@ var TextInput = ({
14726
14930
  )
14727
14931
  }
14728
14932
  ),
14729
- /* @__PURE__ */ jsx339(
14933
+ /* @__PURE__ */ jsx340(
14730
14934
  StatefulInput,
14731
14935
  {
14732
14936
  className: cn(
@@ -14740,7 +14944,7 @@ var TextInput = ({
14740
14944
  }
14741
14945
  );
14742
14946
  } else if (hasAffix) {
14743
- extendedInput = /* @__PURE__ */ jsxs132(
14947
+ extendedInput = /* @__PURE__ */ jsxs131(
14744
14948
  Box,
14745
14949
  {
14746
14950
  position: "relative",
@@ -14748,7 +14952,7 @@ var TextInput = ({
14748
14952
  alignItems: "center",
14749
14953
  width: inputWidth,
14750
14954
  children: [
14751
- prefix2 && /* @__PURE__ */ jsx339(
14955
+ prefix2 && /* @__PURE__ */ jsx340(
14752
14956
  "span",
14753
14957
  {
14754
14958
  ref: prefixRef,
@@ -14761,7 +14965,7 @@ var TextInput = ({
14761
14965
  children: prefix2
14762
14966
  }
14763
14967
  ),
14764
- /* @__PURE__ */ jsx339(
14968
+ /* @__PURE__ */ jsx340(
14765
14969
  StatefulInput,
14766
14970
  {
14767
14971
  style: {
@@ -14772,7 +14976,7 @@ var TextInput = ({
14772
14976
  ...generalInputProps
14773
14977
  }
14774
14978
  ),
14775
- suffix && /* @__PURE__ */ jsx339(
14979
+ suffix && /* @__PURE__ */ jsx340(
14776
14980
  "span",
14777
14981
  {
14778
14982
  ref: suffixRef,
@@ -14790,7 +14994,7 @@ var TextInput = ({
14790
14994
  }
14791
14995
  );
14792
14996
  }
14793
- return /* @__PURE__ */ jsxs132(
14997
+ return /* @__PURE__ */ jsxs131(
14794
14998
  "div",
14795
14999
  {
14796
15000
  className: cn(
@@ -14809,8 +15013,8 @@ var TextInput = ({
14809
15013
  readOnly,
14810
15014
  afterLabelContent
14811
15015
  }),
14812
- extendedInput ? extendedInput : /* @__PURE__ */ jsx339(Box, { as: StatefulInput, width: inputWidth, ...generalInputProps }),
14813
- hasBottomContainer && /* @__PURE__ */ jsxs132(
15016
+ extendedInput ? extendedInput : /* @__PURE__ */ jsx340(Box, { as: StatefulInput, width: inputWidth, ...generalInputProps }),
15017
+ hasBottomContainer && /* @__PURE__ */ jsxs131(
14814
15018
  Box,
14815
15019
  {
14816
15020
  display: "flex",
@@ -14855,7 +15059,7 @@ var ToggleBar_default = {
14855
15059
  };
14856
15060
 
14857
15061
  // src/components/ToggleBar/ToggleBar.tsx
14858
- import { jsx as jsx340, jsxs as jsxs133 } from "react/jsx-runtime";
15062
+ import { jsx as jsx341, jsxs as jsxs132 } from "react/jsx-runtime";
14859
15063
  var ToggleBar = (props) => {
14860
15064
  const {
14861
15065
  children,
@@ -14880,7 +15084,7 @@ var ToggleBar = (props) => {
14880
15084
  (e) => onChange && onChange(e, e.target.value)
14881
15085
  );
14882
15086
  const labelId = label && `${uniqueId}-label`;
14883
- return /* @__PURE__ */ jsx340(
15087
+ return /* @__PURE__ */ jsx341(
14884
15088
  ToggleBarContext,
14885
15089
  {
14886
15090
  value: {
@@ -14890,7 +15094,7 @@ var ToggleBar = (props) => {
14890
15094
  name,
14891
15095
  value: groupValue
14892
15096
  },
14893
- children: /* @__PURE__ */ jsxs133(
15097
+ children: /* @__PURE__ */ jsxs132(
14894
15098
  VStack,
14895
15099
  {
14896
15100
  ...getBaseHTMLProps(id, className, style, htmlProps, rest),
@@ -14899,8 +15103,8 @@ var ToggleBar = (props) => {
14899
15103
  role: "radiogroup",
14900
15104
  "aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
14901
15105
  children: [
14902
- label && /* @__PURE__ */ jsx340(Typography, { id: labelId, as: "span", typographyType: "labelMedium", children: label }),
14903
- /* @__PURE__ */ jsx340("div", { className: ToggleBar_default.bar, children })
15106
+ label && /* @__PURE__ */ jsx341(Typography, { id: labelId, as: "span", typographyType: "labelMedium", children: label }),
15107
+ /* @__PURE__ */ jsx341("div", { className: ToggleBar_default.bar, children })
14904
15108
  ]
14905
15109
  }
14906
15110
  )
@@ -14911,7 +15115,7 @@ ToggleBar.displayName = "ToggleBar";
14911
15115
 
14912
15116
  // src/components/ToggleBar/ToggleRadio.tsx
14913
15117
  import { useId as useId31 } from "react";
14914
- import { jsx as jsx341, jsxs as jsxs134 } from "react/jsx-runtime";
15118
+ import { jsx as jsx342, jsxs as jsxs133 } from "react/jsx-runtime";
14915
15119
  var typographyTypes = {
14916
15120
  large: "bodyShortLarge",
14917
15121
  medium: "bodyShortMedium",
@@ -14954,13 +15158,13 @@ var ToggleRadio = ({
14954
15158
  const hasLabel = !!label;
14955
15159
  const hasIcon = !!icon;
14956
15160
  const contentTypeCn = !hasLabel ? "just-icon" : !hasIcon ? "just-text" : "with-text-and-icon";
14957
- return /* @__PURE__ */ jsxs134(
15161
+ return /* @__PURE__ */ jsxs133(
14958
15162
  "label",
14959
15163
  {
14960
15164
  htmlFor: uniqueId,
14961
15165
  className: cn(ToggleBar_default.label, ToggleBar_default[`label--${group.purpose}`]),
14962
15166
  children: [
14963
- /* @__PURE__ */ jsx341(
15167
+ /* @__PURE__ */ jsx342(
14964
15168
  HiddenInput,
14965
15169
  {
14966
15170
  ...getBaseHTMLProps(
@@ -14979,7 +15183,7 @@ var ToggleRadio = ({
14979
15183
  "aria-labelledby": ariaLabelledBy
14980
15184
  }
14981
15185
  ),
14982
- /* @__PURE__ */ jsxs134(
15186
+ /* @__PURE__ */ jsxs133(
14983
15187
  Typography,
14984
15188
  {
14985
15189
  as: "span",
@@ -14992,8 +15196,8 @@ var ToggleRadio = ({
14992
15196
  focus_default["focus-styled-sibling"]
14993
15197
  ),
14994
15198
  children: [
14995
- icon && /* @__PURE__ */ jsx341(Icon, { icon, iconSize: "component" }),
14996
- label && /* @__PURE__ */ jsx341("span", { children: label })
15199
+ icon && /* @__PURE__ */ jsx342(Icon, { icon, iconSize: "component" }),
15200
+ label && /* @__PURE__ */ jsx342("span", { children: label })
14997
15201
  ]
14998
15202
  }
14999
15203
  )
@@ -15015,7 +15219,7 @@ var ToggleButton_default = {
15015
15219
  };
15016
15220
 
15017
15221
  // src/components/ToggleButton/ToggleButton.tsx
15018
- import { jsx as jsx342, jsxs as jsxs135 } from "react/jsx-runtime";
15222
+ import { jsx as jsx343, jsxs as jsxs134 } from "react/jsx-runtime";
15019
15223
  var ToggleButton = ({
15020
15224
  id,
15021
15225
  label,
@@ -15029,8 +15233,8 @@ var ToggleButton = ({
15029
15233
  const generatedId = useId32();
15030
15234
  const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
15031
15235
  const hasIcon = !!icon;
15032
- return /* @__PURE__ */ jsxs135(Box, { as: "label", htmlFor: uniqueId, width: "fit-content", children: [
15033
- /* @__PURE__ */ jsx342(
15236
+ return /* @__PURE__ */ jsxs134(Box, { as: "label", htmlFor: uniqueId, width: "fit-content", children: [
15237
+ /* @__PURE__ */ jsx343(
15034
15238
  HiddenInput,
15035
15239
  {
15036
15240
  ...getBaseHTMLProps(
@@ -15043,7 +15247,7 @@ var ToggleButton = ({
15043
15247
  type: "checkbox"
15044
15248
  }
15045
15249
  ),
15046
- /* @__PURE__ */ jsxs135(
15250
+ /* @__PURE__ */ jsxs134(
15047
15251
  "span",
15048
15252
  {
15049
15253
  className: cn(
@@ -15054,7 +15258,7 @@ var ToggleButton = ({
15054
15258
  focus_default["focus-styled-sibling"]
15055
15259
  ),
15056
15260
  children: [
15057
- hasIcon && /* @__PURE__ */ jsx342(Icon, { icon, iconSize: "component" }),
15261
+ hasIcon && /* @__PURE__ */ jsx343(Icon, { icon, iconSize: "component" }),
15058
15262
  " ",
15059
15263
  label
15060
15264
  ]
@@ -15066,7 +15270,7 @@ ToggleButton.displayName = "ToggleButton";
15066
15270
 
15067
15271
  // src/components/ToggleButton/ToggleButtonGroup.tsx
15068
15272
  import { useId as useId33 } from "react";
15069
- import { jsx as jsx343, jsxs as jsxs136 } from "react/jsx-runtime";
15273
+ import { jsx as jsx344, jsxs as jsxs135 } from "react/jsx-runtime";
15070
15274
  var ToggleButtonGroup = (props) => {
15071
15275
  const {
15072
15276
  children,
@@ -15081,7 +15285,7 @@ var ToggleButtonGroup = (props) => {
15081
15285
  } = props;
15082
15286
  const generatedId = useId33();
15083
15287
  const uniqueLabelId = labelId != null ? labelId : `${generatedId}-ToggleButtonGroupLabel`;
15084
- return /* @__PURE__ */ jsxs136(
15288
+ return /* @__PURE__ */ jsxs135(
15085
15289
  "div",
15086
15290
  {
15087
15291
  ...getBaseHTMLProps(id, className, style, htmlProps, rest),
@@ -15089,7 +15293,7 @@ var ToggleButtonGroup = (props) => {
15089
15293
  "aria-labelledby": label ? uniqueLabelId : void 0,
15090
15294
  children: [
15091
15295
  renderGroupLabel({ label, id: uniqueLabelId }),
15092
- /* @__PURE__ */ jsx343(Box, { display: "flex", flexWrap: "wrap", gap: "x0.75", flexDirection: direction, children })
15296
+ /* @__PURE__ */ jsx344(Box, { display: "flex", flexWrap: "wrap", gap: "x0.75", flexDirection: direction, children })
15093
15297
  ]
15094
15298
  }
15095
15299
  );
@@ -15308,6 +15512,7 @@ export {
15308
15512
  MoreHorizontalIcon,
15309
15513
  MoreVerticalIcon,
15310
15514
  NativeSelect,
15515
+ NewsPopover,
15311
15516
  NotarialIcon,
15312
15517
  NotebookPenIcon,
15313
15518
  NotificationsIcon,