@norges-domstoler/dds-components 0.0.0-dev-20251111141002 → 0.0.0-dev-20251114091802

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4087,7 +4087,7 @@ var Breadcrumb = ({ children, ref, ...rest }) => {
4087
4087
  Breadcrumb.displayName = "Breadcrumb";
4088
4088
 
4089
4089
  // src/components/Breadcrumbs/Breadcrumbs.tsx
4090
- var import_react25 = require("react");
4090
+ var import_react26 = require("react");
4091
4091
 
4092
4092
  // src/components/Breadcrumbs/Breadcrumbs.module.css
4093
4093
  var Breadcrumbs_default = {
@@ -4671,24 +4671,29 @@ var OverflowMenuSpan = ({
4671
4671
  OverflowMenuSpan.displayName = "OverflowMenuSpan";
4672
4672
 
4673
4673
  // src/components/OverflowMenu/components/OverflowMenuListHeader.tsx
4674
+ var import_react24 = require("react");
4674
4675
  var import_jsx_runtime203 = require("react/jsx-runtime");
4675
4676
  var OverflowMenuListHeader = ({
4676
4677
  className,
4677
4678
  ...rest
4678
- }) => /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(
4679
- Box,
4680
- {
4681
- as: "h2",
4682
- paddingInline: "x0.75",
4683
- paddingBlock: "x0.75 0",
4684
- ...rest,
4685
- className: cn(className, typographyStyles_default["heading-xxsmall"])
4686
- }
4687
- );
4679
+ }) => {
4680
+ const themeContext = (0, import_react24.useContext)(ThemeContext);
4681
+ const headingStyle = (themeContext == null ? void 0 : themeContext.theme) === "core" ? "heading-xsmall" : "heading-xxsmall";
4682
+ return /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(
4683
+ Box,
4684
+ {
4685
+ as: "h2",
4686
+ paddingInline: "x0.75",
4687
+ paddingBlock: "x0.75 0",
4688
+ ...rest,
4689
+ className: cn(className, typographyStyles_default[headingStyle])
4690
+ }
4691
+ );
4692
+ };
4688
4693
  OverflowMenuListHeader.displayName = "OverflowMenuListHeader";
4689
4694
 
4690
4695
  // src/components/OverflowMenu/OverflowMenuGroup.tsx
4691
- var import_react24 = require("react");
4696
+ var import_react25 = require("react");
4692
4697
  var import_jsx_runtime204 = require("react/jsx-runtime");
4693
4698
  var OverflowMenuGroup = ({
4694
4699
  children,
@@ -4699,21 +4704,21 @@ var OverflowMenuGroup = ({
4699
4704
  isInitiallyOpen = false,
4700
4705
  overflowMenuId
4701
4706
  }) => {
4702
- const [internalIsOpen, internalSetIsOpen] = (0, import_react24.useState)(isInitiallyOpen);
4707
+ const [internalIsOpen, internalSetIsOpen] = (0, import_react25.useState)(isInitiallyOpen);
4703
4708
  const [isOpen, setIsOpen] = [
4704
4709
  propIsOpen != null ? propIsOpen : internalIsOpen,
4705
4710
  propSetIsOpen != null ? propSetIsOpen : internalSetIsOpen
4706
4711
  ];
4707
4712
  const toggle = () => setIsOpen(!isOpen);
4708
4713
  const close = () => setIsOpen(false);
4709
- const generatedId = (0, import_react24.useId)();
4714
+ const generatedId = (0, import_react25.useId)();
4710
4715
  const uniqueOverflowMenuId = overflowMenuId != null ? overflowMenuId : `${generatedId}-overflowMenu`;
4711
- const [floatOptions, setFloatOptions] = (0, import_react24.useState)();
4716
+ const [floatOptions, setFloatOptions] = (0, import_react25.useState)();
4712
4717
  const { refs, styles: positionStyles } = useFloatPosition(null, floatOptions);
4713
- const buttonRef = (0, import_react24.useRef)(null);
4718
+ const buttonRef = (0, import_react25.useRef)(null);
4714
4719
  const anchorRef = refs.setReference;
4715
4720
  const combinedAnchorRef = useCombinedRef(buttonRef, anchorRef);
4716
- const menuRef = (0, import_react24.useRef)(null);
4721
+ const menuRef = (0, import_react25.useRef)(null);
4717
4722
  const floatingRef = refs.setFloating;
4718
4723
  const combinedMenuRef = useCombinedRef(menuRef, floatingRef);
4719
4724
  const handleClose = () => {
@@ -4741,8 +4746,8 @@ var OverflowMenuGroup = ({
4741
4746
  useOnKeyDown(["Tab"], () => {
4742
4747
  handleClose();
4743
4748
  });
4744
- const Children7 = import_react24.Children.map(children, (child, childIndex) => {
4745
- return (0, import_react24.isValidElement)(child) && (childIndex === 0 ? (0, import_react24.cloneElement)(child, {
4749
+ const Children7 = import_react25.Children.map(children, (child, childIndex) => {
4750
+ return (0, import_react25.isValidElement)(child) && (childIndex === 0 ? (0, import_react25.cloneElement)(child, {
4746
4751
  "aria-haspopup": "menu",
4747
4752
  "aria-controls": uniqueOverflowMenuId,
4748
4753
  "aria-expanded": isOpen,
@@ -4784,7 +4789,7 @@ var Breadcrumbs = ({
4784
4789
  }
4785
4790
  );
4786
4791
  const { t } = useTranslation();
4787
- const childrenArray = import_react25.Children.toArray(children);
4792
+ const childrenArray = import_react26.Children.toArray(children);
4788
4793
  const responsiveLiProps = {
4789
4794
  as: "li",
4790
4795
  alignItems: "center",
@@ -4806,7 +4811,7 @@ var Breadcrumbs = ({
4806
4811
  );
4807
4812
  });
4808
4813
  const bChildrenTruncated = childrenArray.length > 2 ? childrenArray.slice(1, childrenArray.length - 1).map((item, index) => {
4809
- if ((0, import_react25.isValidElement)(item)) {
4814
+ if ((0, import_react26.isValidElement)(item)) {
4810
4815
  if (isAnchorTypographyProps(item.props)) {
4811
4816
  return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(OverflowMenuLink, { href: item.props.href, children: item.props.children }, index);
4812
4817
  } else
@@ -5142,13 +5147,13 @@ var CardExpandableBody = ({
5142
5147
  CardExpandableBody.displayName = "CardExpandableBody";
5143
5148
 
5144
5149
  // src/components/SelectionControl/Checkbox/Checkbox.tsx
5145
- var import_react27 = require("react");
5150
+ var import_react28 = require("react");
5146
5151
 
5147
5152
  // src/components/SelectionControl/Checkbox/CheckboxGroupContext.tsx
5148
- var import_react26 = require("react");
5149
- var CheckboxGroupContext = (0, import_react26.createContext)(null);
5153
+ var import_react27 = require("react");
5154
+ var CheckboxGroupContext = (0, import_react27.createContext)(null);
5150
5155
  var useCheckboxGroup = () => {
5151
- return (0, import_react26.useContext)(CheckboxGroupContext);
5156
+ return (0, import_react27.useContext)(CheckboxGroupContext);
5152
5157
  };
5153
5158
 
5154
5159
  // src/components/SelectionControl/SelectionControl.module.css
@@ -5269,7 +5274,7 @@ var Checkbox = ({
5269
5274
  children,
5270
5275
  ...rest
5271
5276
  }) => {
5272
- const generatedId = (0, import_react27.useId)();
5277
+ const generatedId = (0, import_react28.useId)();
5273
5278
  const uniqueId = id != null ? id : `${generatedId}-checkbox`;
5274
5279
  const checkboxGroup = useCheckboxGroup();
5275
5280
  const hasLabel = !!label;
@@ -5329,7 +5334,7 @@ var Checkbox = ({
5329
5334
  Checkbox.displayName = "Checkbox";
5330
5335
 
5331
5336
  // src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
5332
- var import_react28 = require("react");
5337
+ var import_react29 = require("react");
5333
5338
 
5334
5339
  // src/types/Booleanish.ts
5335
5340
  function convertBooleanishToBoolean(value) {
@@ -5447,7 +5452,7 @@ var CheckboxGroup = (props) => {
5447
5452
  ...rest
5448
5453
  } = props;
5449
5454
  const { "aria-required": ariaRequired } = htmlProps;
5450
- const generatedId = (0, import_react28.useId)();
5455
+ const generatedId = (0, import_react29.useId)();
5451
5456
  const uniqueGroupId = groupId != null ? groupId : `${generatedId}-checkboxGroup`;
5452
5457
  const hasErrorMessage = !!errorMessage;
5453
5458
  const showRequiredStyling = required || convertBooleanishToBoolean(ariaRequired);
@@ -5496,13 +5501,13 @@ var CheckboxGroup = (props) => {
5496
5501
  CheckboxGroup.displayName = "CheckboxGroup";
5497
5502
 
5498
5503
  // src/components/SelectionControl/RadioButton/RadioButton.tsx
5499
- var import_react30 = require("react");
5504
+ var import_react31 = require("react");
5500
5505
 
5501
5506
  // src/components/SelectionControl/RadioButton/RadioButtonGroupContext.tsx
5502
- var import_react29 = require("react");
5503
- var RadioButtonGroupContext = (0, import_react29.createContext)(null);
5507
+ var import_react30 = require("react");
5508
+ var RadioButtonGroupContext = (0, import_react30.createContext)(null);
5504
5509
  var useRadioButtonGroup = () => {
5505
- return (0, import_react29.useContext)(RadioButtonGroupContext);
5510
+ return (0, import_react30.useContext)(RadioButtonGroupContext);
5506
5511
  };
5507
5512
 
5508
5513
  // src/components/SelectionControl/RadioButton/RadioButton.tsx
@@ -5539,7 +5544,7 @@ var RadioButton = ({
5539
5544
  ...rest
5540
5545
  }) => {
5541
5546
  const { className: htmlPropsClassName, style, ...restHtmlProps } = htmlProps;
5542
- const generatedId = (0, import_react30.useId)();
5547
+ const generatedId = (0, import_react31.useId)();
5543
5548
  const uniqueId = id != null ? id : `${generatedId}-radioButton`;
5544
5549
  const hasChildren = !!children;
5545
5550
  const hasLabel = !!label;
@@ -5609,7 +5614,7 @@ var RadioButton = ({
5609
5614
  RadioButton.displayName = "RadioButton";
5610
5615
 
5611
5616
  // src/components/SelectionControl/RadioButton/RadioButtonGroup.tsx
5612
- var import_react31 = require("react");
5617
+ var import_react32 = require("react");
5613
5618
  var import_jsx_runtime216 = require("react/jsx-runtime");
5614
5619
  var RadioButtonGroup = ({
5615
5620
  name,
@@ -5631,7 +5636,7 @@ var RadioButtonGroup = ({
5631
5636
  ...rest
5632
5637
  }) => {
5633
5638
  const { "aria-required": ariaRequired = false } = htmlProps;
5634
- const generatedId = (0, import_react31.useId)();
5639
+ const generatedId = (0, import_react32.useId)();
5635
5640
  const uniqueGroupId = groupId != null ? groupId : `${generatedId}-radioButtonGroup`;
5636
5641
  const { groupValue, handleChange } = useControllableGroupState({
5637
5642
  value,
@@ -5689,9 +5694,9 @@ var RadioButtonGroup = ({
5689
5694
  RadioButtonGroup.displayName = "RadioButtonGroup";
5690
5695
 
5691
5696
  // src/components/Card/CardSelectionControl/CardSelectable.context.tsx
5692
- var import_react32 = require("react");
5693
- var CardSelectableContext = (0, import_react32.createContext)({});
5694
- var useCardSelectableContext = () => (0, import_react32.useContext)(CardSelectableContext);
5697
+ var import_react33 = require("react");
5698
+ var CardSelectableContext = (0, import_react33.createContext)({});
5699
+ var useCardSelectableContext = () => (0, import_react33.useContext)(CardSelectableContext);
5695
5700
 
5696
5701
  // src/components/Card/CardSelectionControl/CardSelectable.tsx
5697
5702
  var import_jsx_runtime217 = require("react/jsx-runtime");
@@ -5769,7 +5774,7 @@ Provide \`cardType\` either via a parent <CardSelectableGroup> or directly on th
5769
5774
  CardSelectable.displayName = "CardSelectable";
5770
5775
 
5771
5776
  // src/components/Card/CardSelectionControl/CardSelectableGroup.tsx
5772
- var import_react33 = require("react");
5777
+ var import_react34 = require("react");
5773
5778
  var import_jsx_runtime218 = require("react/jsx-runtime");
5774
5779
  var CardSelectableGroup = ({
5775
5780
  name,
@@ -5790,7 +5795,7 @@ var CardSelectableGroup = ({
5790
5795
  ...rest
5791
5796
  }) => {
5792
5797
  const { "aria-required": ariaRequired = false } = htmlProps;
5793
- const generatedId = (0, import_react33.useId)();
5798
+ const generatedId = (0, import_react34.useId)();
5794
5799
  const uniqueGroupId = id != null ? id : `${generatedId}-cardSelectableGroup`;
5795
5800
  const { groupValue, handleChange } = useControllableGroupState({
5796
5801
  value,
@@ -5837,7 +5842,7 @@ var CardSelectableGroup = ({
5837
5842
  CardSelectableGroup.displayName = "CardSelectableGroup";
5838
5843
 
5839
5844
  // src/components/Chip/Chip.tsx
5840
- var import_react34 = require("react");
5845
+ var import_react35 = require("react");
5841
5846
 
5842
5847
  // src/components/Chip/Chip.module.css
5843
5848
  var Chip_default = {
@@ -5856,7 +5861,7 @@ var Chip = ({
5856
5861
  }) => {
5857
5862
  const { t } = useTranslation();
5858
5863
  const { "aria-label": ariaLabel, ...restHTMLprops } = htmlProps;
5859
- const [isOpen, setIsOpen] = (0, import_react34.useState)(true);
5864
+ const [isOpen, setIsOpen] = (0, import_react35.useState)(true);
5860
5865
  const onClick = () => {
5861
5866
  setIsOpen(false);
5862
5867
  onClose == null ? void 0 : onClose();
@@ -5898,10 +5903,10 @@ var texts4 = createTexts({
5898
5903
  });
5899
5904
 
5900
5905
  // src/components/Chip/ChipGroup.tsx
5901
- var import_react35 = require("react");
5906
+ var import_react36 = require("react");
5902
5907
  var import_jsx_runtime220 = require("react/jsx-runtime");
5903
5908
  var ChipGroup = ({ children, ...rest }) => {
5904
- const childrenArray = import_react35.Children.toArray(children);
5909
+ const childrenArray = import_react36.Children.toArray(children);
5905
5910
  return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(HStack, { as: StylelessList, ...rest, gap: "x0.75", children: childrenArray.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime220.jsx)("li", { children: item }, `chip-${index}`)) });
5906
5911
  };
5907
5912
  ChipGroup.displayName = "ChipGroup";
@@ -5929,7 +5934,7 @@ var Contrast = ({
5929
5934
  };
5930
5935
 
5931
5936
  // src/components/CookieBanner/CookieBanner.tsx
5932
- var import_react36 = require("react");
5937
+ var import_react37 = require("react");
5933
5938
 
5934
5939
  // src/components/CookieBanner/CookieBanner.module.css
5935
5940
  var CookieBanner_default = {
@@ -5970,7 +5975,7 @@ CookieBannerCheckbox.displayName = "CookieBannerCheckbox";
5970
5975
 
5971
5976
  // src/components/CookieBanner/CookieBanner.tsx
5972
5977
  var import_jsx_runtime223 = require("react/jsx-runtime");
5973
- var import_react37 = require("react");
5978
+ var import_react38 = require("react");
5974
5979
  function CookieBanner({
5975
5980
  headerText,
5976
5981
  description,
@@ -5987,8 +5992,8 @@ function CookieBanner({
5987
5992
  }) {
5988
5993
  const { t } = useTranslation();
5989
5994
  const hasBp = !!collapsedBreakpoint;
5990
- const [isCollapsedOnBreakpoint, setIsCollapsedOnBreakpoint] = (0, import_react36.useState)(hasBp);
5991
- const generatedId = (0, import_react36.useId)();
5995
+ const [isCollapsedOnBreakpoint, setIsCollapsedOnBreakpoint] = (0, import_react37.useState)(hasBp);
5996
+ const generatedId = (0, import_react37.useId)();
5992
5997
  const headingId = headerText && (id != null ? id : `cookie-banner-${generatedId}-heading`);
5993
5998
  const heading = headerText ? /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Heading, { level: 2, typographyType: "headingMedium", id: headingId, children: headerText }) : "";
5994
5999
  return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
@@ -6031,14 +6036,14 @@ function CookieBanner({
6031
6036
  children: [
6032
6037
  children,
6033
6038
  description && /* @__PURE__ */ (0, import_jsx_runtime223.jsx)("div", { children: description }),
6034
- checkboxes && /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(VStack, { gap: "x1", children: checkboxes.map((props, index) => /* @__PURE__ */ (0, import_react37.createElement)(CookieBannerCheckbox, { ...props, key: index })) }),
6039
+ checkboxes && /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(VStack, { gap: "x1", children: checkboxes.map((props, index) => /* @__PURE__ */ (0, import_react38.createElement)(CookieBannerCheckbox, { ...props, key: index })) }),
6035
6040
  buttons && /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
6036
6041
  HStack,
6037
6042
  {
6038
6043
  gap: styleUpToBreakpoint("x1", "sm", "x1.5"),
6039
6044
  flexWrap: "wrap",
6040
6045
  paddingBlock: "x0.25 0",
6041
- children: buttons.map((props, i) => /* @__PURE__ */ (0, import_react37.createElement)(Button, { ...props, size: "medium", purpose: "secondary", key: i }))
6046
+ children: buttons.map((props, i) => /* @__PURE__ */ (0, import_react38.createElement)(Button, { ...props, size: "medium", purpose: "secondary", key: i }))
6042
6047
  }
6043
6048
  )
6044
6049
  ]
@@ -6064,18 +6069,18 @@ var import_date4 = require("@internationalized/date");
6064
6069
  var import_calendar3 = require("@react-aria/calendar");
6065
6070
  var import_i18n11 = require("@react-aria/i18n");
6066
6071
  var import_calendar4 = require("@react-stately/calendar");
6067
- var import_react41 = require("react");
6072
+ var import_react42 = require("react");
6068
6073
 
6069
6074
  // src/components/date-inputs/DatePicker/Calendar/CalendarGrid.tsx
6070
6075
  var import_date3 = require("@internationalized/date");
6071
6076
  var import_calendar2 = require("@react-aria/calendar");
6072
6077
  var import_i18n9 = require("@react-aria/i18n");
6073
- var import_react40 = require("react");
6078
+ var import_react41 = require("react");
6074
6079
 
6075
6080
  // src/components/date-inputs/DatePicker/Calendar/CalendarCell.tsx
6076
6081
  var import_date = require("@internationalized/date");
6077
6082
  var import_calendar = require("@react-aria/calendar");
6078
- var import_react38 = require("react");
6083
+ var import_react39 = require("react");
6079
6084
 
6080
6085
  // src/components/date-inputs/common/DateInput.module.css
6081
6086
  var DateInput_default = {
@@ -6121,7 +6126,7 @@ var timezone = "Europe/Oslo";
6121
6126
  // src/components/date-inputs/DatePicker/Calendar/CalendarCell.tsx
6122
6127
  var import_jsx_runtime224 = require("react/jsx-runtime");
6123
6128
  function CalendarCell({ date, state, onClose }) {
6124
- const ref = (0, import_react38.useRef)(null);
6129
+ const ref = (0, import_react39.useRef)(null);
6125
6130
  const {
6126
6131
  buttonProps,
6127
6132
  cellProps,
@@ -6223,10 +6228,10 @@ function isLeapYear(date) {
6223
6228
  }
6224
6229
 
6225
6230
  // src/components/date-inputs/DatePicker/CalendarPopover.tsx
6226
- var import_react39 = require("react");
6231
+ var import_react40 = require("react");
6227
6232
  var import_react_dom2 = require("react-dom");
6228
6233
  var import_jsx_runtime226 = require("react/jsx-runtime");
6229
- var CalendarPopoverContext = (0, import_react39.createContext)({
6234
+ var CalendarPopoverContext = (0, import_react40.createContext)({
6230
6235
  anchorRef: null,
6231
6236
  closeButtonRef: null,
6232
6237
  isOpen: false,
@@ -6238,8 +6243,8 @@ var CalendarPopover = ({
6238
6243
  onClose,
6239
6244
  ...props
6240
6245
  }) => {
6241
- const anchorRef = (0, import_react39.useRef)(null);
6242
- const closeButtonRef = (0, import_react39.useRef)(null);
6246
+ const anchorRef = (0, import_react40.useRef)(null);
6247
+ const closeButtonRef = (0, import_react40.useRef)(null);
6243
6248
  useOnKeyDown("Escape", onClose);
6244
6249
  return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
6245
6250
  CalendarPopoverContext,
@@ -6252,7 +6257,7 @@ var CalendarPopover = ({
6252
6257
  var CalendarPopoverAnchor = ({
6253
6258
  children
6254
6259
  }) => {
6255
- const { anchorRef } = (0, import_react39.useContext)(CalendarPopoverContext);
6260
+ const { anchorRef } = (0, import_react40.useContext)(CalendarPopoverContext);
6256
6261
  return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)("div", { ref: anchorRef != null ? anchorRef : void 0, children });
6257
6262
  };
6258
6263
  var CalendarPopoverContent = ({
@@ -6260,30 +6265,30 @@ var CalendarPopoverContent = ({
6260
6265
  className,
6261
6266
  smallScreenBreakpoint
6262
6267
  }) => {
6263
- const ref = (0, import_react39.useRef)(null);
6264
- const modalRef = (0, import_react39.useRef)(null);
6268
+ const ref = (0, import_react40.useRef)(null);
6269
+ const modalRef = (0, import_react40.useRef)(null);
6265
6270
  const { refs, styles: floatingStyles } = useFloatPosition(null, {
6266
6271
  placement: "bottom-start"
6267
6272
  });
6268
- const themeContext = (0, import_react39.useContext)(ThemeContext);
6273
+ const themeContext = (0, import_react40.useContext)(ThemeContext);
6269
6274
  if (!themeContext) {
6270
6275
  throw new Error("DatePicker must be used within a ThemeProvider");
6271
6276
  }
6272
6277
  const portalTarget = themeContext.el;
6273
6278
  const { t } = useTranslation();
6274
- const { isOpen, onClose, anchorRef, closeButtonRef } = (0, import_react39.useContext)(
6279
+ const { isOpen, onClose, anchorRef, closeButtonRef } = (0, import_react40.useContext)(
6275
6280
  CalendarPopoverContext
6276
6281
  );
6277
6282
  const hasTransitionedIn = useMountTransition(isOpen, 500);
6278
6283
  const isMounted = isOpen && hasTransitionedIn;
6279
6284
  const combinedRef = useCombinedRef(refs.setFloating, ref);
6280
6285
  useOnClickOutside([ref.current, modalRef.current], onClose);
6281
- (0, import_react39.useEffect)(() => {
6286
+ (0, import_react40.useEffect)(() => {
6282
6287
  var _a;
6283
6288
  refs.setReference((_a = anchorRef == null ? void 0 : anchorRef.current) != null ? _a : null);
6284
6289
  }, []);
6285
6290
  const hasBreakpoint = !!smallScreenBreakpoint;
6286
- (0, import_react39.useEffect)(() => {
6291
+ (0, import_react40.useEffect)(() => {
6287
6292
  var _a;
6288
6293
  if (hasBreakpoint && ((_a = modalRef.current) == null ? void 0 : _a.checkVisibility())) {
6289
6294
  if (isOpen) {
@@ -6365,7 +6370,7 @@ function CalendarGrid({ state, ...props }) {
6365
6370
  { short: t(texts6.sa), full: t(texts6.saturday) },
6366
6371
  { short: t(texts6.su), full: t(texts6.sunday) }
6367
6372
  ];
6368
- const { showWeekNumbers, onClose } = (0, import_react40.useContext)(CalendarPopoverContext);
6373
+ const { showWeekNumbers, onClose } = (0, import_react41.useContext)(CalendarPopoverContext);
6369
6374
  const typographyCn = [
6370
6375
  typographyStyles_default["body-xsmall"],
6371
6376
  typographyStyles_default["text-color--subtle"]
@@ -6564,7 +6569,7 @@ function Calendar(props) {
6564
6569
  nextButtonProps: { onPress: onNext },
6565
6570
  title
6566
6571
  } = (0, import_calendar3.useCalendar)(props, state);
6567
- const { onClose, closeButtonRef } = (0, import_react41.useContext)(CalendarPopoverContext);
6572
+ const { onClose, closeButtonRef } = (0, import_react42.useContext)(CalendarPopoverContext);
6568
6573
  const closeOnKeyboardBlurBack = (event) => {
6569
6574
  var _a;
6570
6575
  if (event.key === "Tab" && event.shiftKey === true) {
@@ -6635,18 +6640,18 @@ var texts7 = createTexts({
6635
6640
  var import_datepicker4 = require("@react-aria/datepicker");
6636
6641
  var import_i18n17 = require("@react-aria/i18n");
6637
6642
  var import_datepicker5 = require("@react-stately/datepicker");
6638
- var import_react47 = require("react");
6643
+ var import_react48 = require("react");
6639
6644
 
6640
6645
  // src/components/date-inputs/DatePicker/DateField/DateField.tsx
6641
6646
  var import_date5 = require("@internationalized/date");
6642
6647
  var import_datepicker2 = require("@react-aria/datepicker");
6643
6648
  var import_i18n15 = require("@react-aria/i18n");
6644
6649
  var import_datepicker3 = require("@react-stately/datepicker");
6645
- var import_react45 = require("react");
6650
+ var import_react46 = require("react");
6646
6651
 
6647
6652
  // src/components/date-inputs/DatePicker/DateField/CalendarButton.tsx
6648
6653
  var import_button = require("@react-aria/button");
6649
- var import_react42 = require("react");
6654
+ var import_react43 = require("react");
6650
6655
 
6651
6656
  // src/components/helpers/InlineIconButton/InlineIconButton.module.css
6652
6657
  var InlineIconButton_default = {
@@ -6708,7 +6713,7 @@ function CalendarButton({
6708
6713
  isReadOnly,
6709
6714
  ...props
6710
6715
  }) {
6711
- const ref = (0, import_react42.useRef)(null);
6716
+ const ref = (0, import_react43.useRef)(null);
6712
6717
  const { buttonProps } = (0, import_button.useButton)(props, ref);
6713
6718
  return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
6714
6719
  InlineIconButton,
@@ -6789,7 +6794,7 @@ var texts8 = createTexts({
6789
6794
 
6790
6795
  // src/components/date-inputs/DatePicker/DateField/DateSegment.tsx
6791
6796
  var import_datepicker = require("@react-aria/datepicker");
6792
- var import_react43 = require("react");
6797
+ var import_react44 = require("react");
6793
6798
  var import_jsx_runtime231 = require("react/jsx-runtime");
6794
6799
  var typographyTypes = {
6795
6800
  medium: "bodyMedium",
@@ -6803,7 +6808,7 @@ function DateSegment({
6803
6808
  errorMessageId,
6804
6809
  tipId
6805
6810
  }) {
6806
- const ref = (0, import_react43.useRef)(null);
6811
+ const ref = (0, import_react44.useRef)(null);
6807
6812
  const { segmentProps } = (0, import_datepicker.useDateSegment)(segment, state, ref);
6808
6813
  return /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(
6809
6814
  "div",
@@ -6861,7 +6866,7 @@ var ClearButton = ({
6861
6866
  ClearButton.displayName = "ClearButton";
6862
6867
 
6863
6868
  // src/components/date-inputs/common/DateInput.tsx
6864
- var import_react44 = require("react");
6869
+ var import_react45 = require("react");
6865
6870
 
6866
6871
  // src/components/helpers/Input/Input.tsx
6867
6872
  var import_jsx_runtime233 = require("react/jsx-runtime");
@@ -6951,7 +6956,7 @@ function DateInput({
6951
6956
  ...props
6952
6957
  }) {
6953
6958
  const hasErrorMessage = !!errorMessage;
6954
- const { isOpen } = (0, import_react44.useContext)(CalendarPopoverContext);
6959
+ const { isOpen } = (0, import_react45.useContext)(CalendarPopoverContext);
6955
6960
  return /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(
6956
6961
  "div",
6957
6962
  {
@@ -7029,7 +7034,7 @@ function DateField({
7029
7034
  locale,
7030
7035
  createCalendar: import_date5.createCalendar
7031
7036
  });
7032
- const internalRef = (0, import_react45.useRef)(null);
7037
+ const internalRef = (0, import_react46.useRef)(null);
7033
7038
  const { labelProps, fieldProps } = (0, import_datepicker2.useDateField)(props, state, internalRef);
7034
7039
  const disabled = props.isDisabled || !!fieldProps["aria-disabled"];
7035
7040
  const showClearButton = clearable && !disabled && !props.isReadOnly;
@@ -7110,10 +7115,10 @@ var texts9 = createTexts({
7110
7115
 
7111
7116
  // src/components/date-inputs/utils/useFocusManagerRef.ts
7112
7117
  var import_focus18 = require("@react-aria/focus");
7113
- var import_react46 = require("react");
7118
+ var import_react47 = require("react");
7114
7119
  function useFocusManagerRef(ref) {
7115
- const domRef = (0, import_react46.useRef)(null);
7116
- (0, import_react46.useImperativeHandle)(ref, () => ({
7120
+ const domRef = (0, import_react47.useRef)(null);
7121
+ (0, import_react47.useImperativeHandle)(ref, () => ({
7117
7122
  ...createDOMRef(domRef),
7118
7123
  focus() {
7119
7124
  (0, import_focus18.createFocusManager)(domRef).focusFirst({ tabbable: true });
@@ -7153,7 +7158,7 @@ function DatePicker({
7153
7158
  }
7154
7159
  const state = (0, import_datepicker5.useDatePickerState)(props);
7155
7160
  const domRef = useFocusManagerRef(ref && refIsFocusable(ref) ? ref : null);
7156
- const internalRef = (0, import_react47.useRef)(null);
7161
+ const internalRef = (0, import_react48.useRef)(null);
7157
7162
  const combinedRef = useCombinedRef(internalRef, domRef);
7158
7163
  const { buttonProps, calendarProps, fieldProps, groupProps } = (0, import_datepicker4.useDatePicker)(
7159
7164
  { ...props, granularity: "day" },
@@ -7162,7 +7167,7 @@ function DatePicker({
7162
7167
  );
7163
7168
  const hasErrorMessage = !!errorMessage;
7164
7169
  const hasTip = !!tip;
7165
- const uniqueId = (_a = props.id) != null ? _a : (0, import_react47.useId)();
7170
+ const uniqueId = (_a = props.id) != null ? _a : (0, import_react48.useId)();
7166
7171
  const errorMessageId = hasErrorMessage ? `${uniqueId}-errorMessage` : void 0;
7167
7172
  const tipId = hasTip ? `${uniqueId}-tip` : void 0;
7168
7173
  return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(import_i18n17.I18nProvider, { locale: LOCALE[lang], children: /* @__PURE__ */ (0, import_jsx_runtime237.jsxs)(
@@ -7201,7 +7206,7 @@ DatePicker.displayName = "DatePicker";
7201
7206
  // src/components/date-inputs/TimePicker/TimePicker.tsx
7202
7207
  var import_datepicker6 = require("@react-aria/datepicker");
7203
7208
  var import_datepicker7 = require("@react-stately/datepicker");
7204
- var import_react48 = require("react");
7209
+ var import_react49 = require("react");
7205
7210
 
7206
7211
  // src/components/date-inputs/TimePicker/TimePicker.utils.ts
7207
7212
  function formatTimeSegments(segments) {
@@ -7244,7 +7249,7 @@ function TimePicker({
7244
7249
  if (!lang) {
7245
7250
  throw new Error("TimePicker must be used within a DdsProvider");
7246
7251
  }
7247
- const internalRef = (0, import_react48.useRef)(null);
7252
+ const internalRef = (0, import_react49.useRef)(null);
7248
7253
  const state = (0, import_datepicker7.useTimeFieldState)({
7249
7254
  ...props,
7250
7255
  locale: LOCALE[lang]
@@ -7256,7 +7261,7 @@ function TimePicker({
7256
7261
  );
7257
7262
  const hasErrorMessage = !!props.errorMessage;
7258
7263
  const hasTip = !!props.tip;
7259
- const uniqueId = (_a = props.id) != null ? _a : (0, import_react48.useId)();
7264
+ const uniqueId = (_a = props.id) != null ? _a : (0, import_react49.useId)();
7260
7265
  const errorMessageId = hasErrorMessage ? `${uniqueId}-errorMessage` : void 0;
7261
7266
  const tipId = hasTip ? `${uniqueId}-tip` : void 0;
7262
7267
  const iconSize = componentSize === "xsmall" ? "small" : "medium";
@@ -7440,9 +7445,9 @@ var DetailList_default = {
7440
7445
  };
7441
7446
 
7442
7447
  // src/components/DetailList/DetailList.context.tsx
7443
- var import_react49 = require("react");
7444
- var DetailListContext = (0, import_react49.createContext)({});
7445
- var useDetailListContext = () => (0, import_react49.useContext)(DetailListContext);
7448
+ var import_react50 = require("react");
7449
+ var DetailListContext = (0, import_react50.createContext)({});
7450
+ var useDetailListContext = () => (0, import_react50.useContext)(DetailListContext);
7446
7451
 
7447
7452
  // src/components/DetailList/DetailList.tsx
7448
7453
  var import_jsx_runtime243 = require("react/jsx-runtime");
@@ -7515,7 +7520,7 @@ var DetailListTerm = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_
7515
7520
  DetailListTerm.displayName = "DetailListTerm";
7516
7521
 
7517
7522
  // src/components/Drawer/Drawer.tsx
7518
- var import_react51 = require("react");
7523
+ var import_react52 = require("react");
7519
7524
  var import_react_dom3 = require("react-dom");
7520
7525
 
7521
7526
  // src/components/Drawer/Drawer.module.css
@@ -7533,9 +7538,9 @@ var Drawer_default = {
7533
7538
  };
7534
7539
 
7535
7540
  // src/components/Drawer/Drawer.context.tsx
7536
- var import_react50 = require("react");
7537
- var DrawerContext = (0, import_react50.createContext)({});
7538
- var useDrawerContext = () => (0, import_react50.useContext)(DrawerContext);
7541
+ var import_react51 = require("react");
7542
+ var DrawerContext = (0, import_react51.createContext)({});
7543
+ var useDrawerContext = () => (0, import_react51.useContext)(DrawerContext);
7539
7544
 
7540
7545
  // src/components/Drawer/Drawer.tsx
7541
7546
  var import_jsx_runtime247 = require("react/jsx-runtime");
@@ -7553,7 +7558,7 @@ var Drawer = ({
7553
7558
  ref,
7554
7559
  ...rest
7555
7560
  }) => {
7556
- const themeContext = (0, import_react51.useContext)(ThemeContext);
7561
+ const themeContext = (0, import_react52.useContext)(ThemeContext);
7557
7562
  if (!themeContext) {
7558
7563
  throw new Error("Drawer must be used within a ThemeProvider");
7559
7564
  }
@@ -7565,7 +7570,7 @@ var Drawer = ({
7565
7570
  const headerId = hasHeader ? `${drawerId}-header` : void 0;
7566
7571
  const drawerRef = useFocusTrap(isOpen);
7567
7572
  const combinedRef = useCombinedRef(ref, drawerRef);
7568
- (0, import_react51.useEffect)(() => {
7573
+ (0, import_react52.useEffect)(() => {
7569
7574
  if (withBackdrop) {
7570
7575
  if (isOpen) {
7571
7576
  handleElementWithBackdropMount(document.body);
@@ -7582,7 +7587,7 @@ var Drawer = ({
7582
7587
  onClose == null ? void 0 : onClose();
7583
7588
  }
7584
7589
  });
7585
- const backdropRef = (0, import_react51.useRef)(null);
7590
+ const backdropRef = (0, import_react52.useRef)(null);
7586
7591
  const onBackdropClick = (event) => {
7587
7592
  if (event.target === backdropRef.current && isOpen && withBackdrop) {
7588
7593
  onClose == null ? void 0 : onClose();
@@ -7686,7 +7691,7 @@ var Drawer = ({
7686
7691
  Drawer.displayName = "Drawer";
7687
7692
 
7688
7693
  // src/components/Drawer/DrawerGroup.tsx
7689
- var import_react52 = require("react");
7694
+ var import_react53 = require("react");
7690
7695
  var import_jsx_runtime248 = require("react/jsx-runtime");
7691
7696
  var DrawerGroup = ({
7692
7697
  children,
@@ -7697,14 +7702,14 @@ var DrawerGroup = ({
7697
7702
  onOpen,
7698
7703
  onClose
7699
7704
  }) => {
7700
- const [internalIsOpen, internalSetIsOpen] = (0, import_react52.useState)(isInitiallyOpen);
7705
+ const [internalIsOpen, internalSetIsOpen] = (0, import_react53.useState)(isInitiallyOpen);
7701
7706
  const [isOpen, setIsOpen] = [
7702
7707
  propIsOpen != null ? propIsOpen : internalIsOpen,
7703
7708
  propSetIsOpen != null ? propSetIsOpen : internalSetIsOpen
7704
7709
  ];
7705
- const generatedId = (0, import_react52.useId)();
7710
+ const generatedId = (0, import_react53.useId)();
7706
7711
  const uniqueDrawerId = drawerId != null ? drawerId : `${generatedId}-drawer`;
7707
- const triggerRef = (0, import_react52.useRef)(null);
7712
+ const triggerRef = (0, import_react53.useRef)(null);
7708
7713
  const open = () => setIsOpen(true);
7709
7714
  const close = () => setIsOpen(false);
7710
7715
  const handleOpen = () => {
@@ -7722,8 +7727,8 @@ var DrawerGroup = ({
7722
7727
  handleClose();
7723
7728
  }
7724
7729
  });
7725
- const Children7 = import_react52.Children.map(children, (child, childIndex) => {
7726
- return (0, import_react52.isValidElement)(child) && (childIndex === 0 ? (0, import_react52.cloneElement)(child, {
7730
+ const Children7 = import_react53.Children.map(children, (child, childIndex) => {
7731
+ return (0, import_react53.isValidElement)(child) && (childIndex === 0 ? (0, import_react53.cloneElement)(child, {
7727
7732
  "aria-haspopup": "dialog",
7728
7733
  "aria-controls": uniqueDrawerId,
7729
7734
  "aria-expanded": isOpen,
@@ -7777,7 +7782,7 @@ function EmptyContent({
7777
7782
  EmptyContent.displayName = "EmptyContent";
7778
7783
 
7779
7784
  // src/components/FavStar/FavStar.tsx
7780
- var import_react53 = require("react");
7785
+ var import_react54 = require("react");
7781
7786
 
7782
7787
  // src/components/FavStar/FavStar.module.css
7783
7788
  var FavStar_default = {
@@ -7809,7 +7814,7 @@ var FavStar = ({
7809
7814
  htmlProps,
7810
7815
  rest
7811
7816
  );
7812
- const generatedId = (0, import_react53.useId)();
7817
+ const generatedId = (0, import_react54.useId)();
7813
7818
  const [checked, setChecked] = useControllableState({
7814
7819
  value: checkedProp,
7815
7820
  defaultValue: defaultChecked != null ? defaultChecked : false,
@@ -7863,7 +7868,7 @@ var texts10 = createTexts({
7863
7868
  });
7864
7869
 
7865
7870
  // src/components/Feedback/Feedback.tsx
7866
- var import_react57 = require("react");
7871
+ var import_react58 = require("react");
7867
7872
 
7868
7873
  // src/components/Feedback/Feedback.module.css
7869
7874
  var Feedback_default = {
@@ -7877,7 +7882,7 @@ var Feedback_default = {
7877
7882
  };
7878
7883
 
7879
7884
  // src/components/TextArea/TextArea.tsx
7880
- var import_react55 = require("react");
7885
+ var import_react56 = require("react");
7881
7886
 
7882
7887
  // src/components/TextArea/TextArea.module.css
7883
7888
  var TextArea_default = {
@@ -7885,7 +7890,7 @@ var TextArea_default = {
7885
7890
  };
7886
7891
 
7887
7892
  // src/components/helpers/CharCounter/CharCounter.tsx
7888
- var import_react54 = require("react");
7893
+ var import_react55 = require("react");
7889
7894
 
7890
7895
  // src/components/helpers/CharCounter/CharCounter.module.css
7891
7896
  var CharCounter_default = {
@@ -7897,7 +7902,7 @@ var import_jsx_runtime251 = require("react/jsx-runtime");
7897
7902
  function CharCounter(props) {
7898
7903
  const { t } = useTranslation();
7899
7904
  const { current, max, id } = props;
7900
- const generatedId = (0, import_react54.useId)();
7905
+ const generatedId = (0, import_react55.useId)();
7901
7906
  const uniqueId = id != null ? id : `${generatedId}-characterCounter`;
7902
7907
  return /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(
7903
7908
  Typography,
@@ -7954,12 +7959,12 @@ var TextArea = ({
7954
7959
  ref,
7955
7960
  ...rest
7956
7961
  }) => {
7957
- const generatedId = (0, import_react55.useId)();
7962
+ const generatedId = (0, import_react56.useId)();
7958
7963
  const uniqueId = id != null ? id : `${generatedId}-textArea`;
7959
- const textAreaRef = (0, import_react55.useRef)(null);
7964
+ const textAreaRef = (0, import_react56.useRef)(null);
7960
7965
  const multiRef = useCombinedRef(ref, textAreaRef);
7961
- const [text, setText] = (0, import_react55.useState)(getDefaultText(value, defaultValue));
7962
- (0, import_react55.useEffect)(() => {
7966
+ const [text, setText] = (0, import_react56.useState)(getDefaultText(value, defaultValue));
7967
+ (0, import_react56.useEffect)(() => {
7963
7968
  if (textAreaRef == null ? void 0 : textAreaRef.current) {
7964
7969
  const el = textAreaRef.current;
7965
7970
  el.style.height = "auto";
@@ -8103,7 +8108,7 @@ var texts12 = createTexts({
8103
8108
  });
8104
8109
 
8105
8110
  // src/components/Tooltip/Tooltip.tsx
8106
- var import_react56 = require("react");
8111
+ var import_react57 = require("react");
8107
8112
 
8108
8113
  // src/components/Tooltip/Tooltip.module.css
8109
8114
  var Tooltip_default = {
@@ -8131,15 +8136,15 @@ var Tooltip = ({
8131
8136
  htmlProps,
8132
8137
  ...rest
8133
8138
  }) => {
8134
- const generatedId = (0, import_react56.useId)();
8139
+ const generatedId = (0, import_react57.useId)();
8135
8140
  const uniqueTooltipId = tooltipId != null ? tooltipId : `${generatedId}-tooltip`;
8136
- const [open, setOpen] = (0, import_react56.useState)(false);
8137
- const [inView, setInView] = (0, import_react56.useState)(keepMounted ? false : true);
8138
- const [arrowElement, setArrowElement] = (0, import_react56.useState)(null);
8141
+ const [open, setOpen] = (0, import_react57.useState)(false);
8142
+ const [inView, setInView] = (0, import_react57.useState)(keepMounted ? false : true);
8143
+ const [arrowElement, setArrowElement] = (0, import_react57.useState)(null);
8139
8144
  const { refs, styles: positionStyles } = useFloatPosition(arrowElement, {
8140
8145
  placement
8141
8146
  });
8142
- const tooltipRef = (0, import_react56.useRef)(null);
8147
+ const tooltipRef = (0, import_react57.useRef)(null);
8143
8148
  const combinedRef = useCombinedRef(ref, refs.setFloating, tooltipRef);
8144
8149
  const closeWhenNotInView = (entries) => {
8145
8150
  const [entry] = entries;
@@ -8147,7 +8152,7 @@ var Tooltip = ({
8147
8152
  setInView(true);
8148
8153
  } else setInView(false);
8149
8154
  };
8150
- (0, import_react56.useEffect)(() => {
8155
+ (0, import_react57.useEffect)(() => {
8151
8156
  if (keepMounted) {
8152
8157
  const options = {
8153
8158
  root: null,
@@ -8161,7 +8166,7 @@ var Tooltip = ({
8161
8166
  };
8162
8167
  }
8163
8168
  }, [tooltipRef]);
8164
- (0, import_react56.useEffect)(() => {
8169
+ (0, import_react57.useEffect)(() => {
8165
8170
  if (tooltipRef.current) {
8166
8171
  window.addEventListener("scroll", () => {
8167
8172
  closeTooltip();
@@ -8174,7 +8179,7 @@ var Tooltip = ({
8174
8179
  };
8175
8180
  }, []);
8176
8181
  let timer;
8177
- (0, import_react56.useEffect)(() => {
8182
+ (0, import_react57.useEffect)(() => {
8178
8183
  return () => {
8179
8184
  clearTimeout(timer);
8180
8185
  };
@@ -8195,8 +8200,8 @@ var Tooltip = ({
8195
8200
  const hasTransitionedIn = useMountTransition(open, 500);
8196
8201
  const isMounted = hasTransitionedIn && open;
8197
8202
  const isTransientlyMounted = !keepMounted && isMounted;
8198
- const anchorElement = import_react56.Children.only(
8199
- (0, import_react56.cloneElement)(children, {
8203
+ const anchorElement = import_react57.Children.only(
8204
+ (0, import_react57.cloneElement)(children, {
8200
8205
  ref: refs.setReference,
8201
8206
  onFocus: combineHandlers(openTooltip, children.props.onFocus),
8202
8207
  onBlur: combineHandlers(closeTooltip, children.props.onBlur),
@@ -8334,9 +8339,9 @@ var Feedback = ({
8334
8339
  onSubmit
8335
8340
  }) => {
8336
8341
  const { t } = useTranslation();
8337
- const [rating, setRating] = (0, import_react57.useState)(null);
8338
- const [feedbackText, setFeedbackText] = (0, import_react57.useState)();
8339
- const [isFeedbackSubmitted, setIsFeedbackSubmitted] = (0, import_react57.useState)(false);
8342
+ const [rating, setRating] = (0, import_react58.useState)(null);
8343
+ const [feedbackText, setFeedbackText] = (0, import_react58.useState)();
8344
+ const [isFeedbackSubmitted, setIsFeedbackSubmitted] = (0, import_react58.useState)(false);
8340
8345
  const tRatingLabel = ratingLabel != null ? ratingLabel : t(texts14.ratingQuestion);
8341
8346
  const tPositiveFeedbackLabel = positiveFeedbackLabel != null ? positiveFeedbackLabel : t(texts14.improvalQuestion);
8342
8347
  const tNegativeFeedbackLabel = negativeFeedbackLabel != null ? negativeFeedbackLabel : t(texts14.improvalQuestion);
@@ -8345,13 +8350,13 @@ var Feedback = ({
8345
8350
  const tTextAreaTip = textAreaTip != null ? textAreaTip : t(texts14.sensitiveInfo);
8346
8351
  const tThumbUpTooltip = thumbUpTooltip != null ? thumbUpTooltip : t(texts14.good);
8347
8352
  const tThumbDownTooltip = thumbDownTooltip != null ? thumbDownTooltip : t(texts14.bad);
8348
- (0, import_react57.useEffect)(() => {
8353
+ (0, import_react58.useEffect)(() => {
8349
8354
  if (ratingProp !== void 0) setRating(ratingProp);
8350
8355
  }, [ratingProp]);
8351
- (0, import_react57.useEffect)(() => {
8356
+ (0, import_react58.useEffect)(() => {
8352
8357
  if (feedbackTextProp !== void 0) setFeedbackText(feedbackTextProp);
8353
8358
  }, [feedbackTextProp]);
8354
- (0, import_react57.useEffect)(() => {
8359
+ (0, import_react58.useEffect)(() => {
8355
8360
  if (isSubmittedProp !== void 0) setIsFeedbackSubmitted(isSubmittedProp);
8356
8361
  }, [isSubmittedProp]);
8357
8362
  const handleRatingChange = (newRating) => {
@@ -8473,7 +8478,7 @@ var FieldsetGroup = ({
8473
8478
  FieldsetGroup.displayName = "FieldsetGroup";
8474
8479
 
8475
8480
  // src/components/FileUploader/FileUploader.tsx
8476
- var import_react59 = require("react");
8481
+ var import_react61 = require("react");
8477
8482
 
8478
8483
  // src/components/FileUploader/ErrorList.tsx
8479
8484
  var import_jsx_runtime259 = require("react/jsx-runtime");
@@ -8501,6 +8506,9 @@ var ErrorList = (props) => {
8501
8506
  }) });
8502
8507
  };
8503
8508
 
8509
+ // src/components/FileUploader/File.tsx
8510
+ var import_react59 = require("react");
8511
+
8504
8512
  // src/components/FileUploader/FileUploader.module.css
8505
8513
  var FileUploader_default = {
8506
8514
  "input-container": "FileUploader_input-container",
@@ -8515,7 +8523,7 @@ var FileUploader_default = {
8515
8523
 
8516
8524
  // src/components/FileUploader/File.tsx
8517
8525
  var import_jsx_runtime260 = require("react/jsx-runtime");
8518
- var File = (props) => {
8526
+ var File2 = (props) => {
8519
8527
  const { t } = useTranslation();
8520
8528
  const {
8521
8529
  parentId,
@@ -8526,11 +8534,23 @@ var File = (props) => {
8526
8534
  disabled,
8527
8535
  readOnly
8528
8536
  } = props;
8537
+ const [fileUrl, setFileUrl] = (0, import_react59.useState)();
8538
+ (0, import_react59.useEffect)(() => {
8539
+ if (stateFile.url) {
8540
+ setFileUrl(stateFile.url);
8541
+ } else if (stateFile.file) {
8542
+ const url = URL.createObjectURL(stateFile.file);
8543
+ setFileUrl(url);
8544
+ return () => URL.revokeObjectURL(url);
8545
+ }
8546
+ }, [stateFile.file]);
8529
8547
  const errorsList = stateFile.errors.map((e, errorIndex) => ({
8530
8548
  id: derivativeIdGenerator(parentId, `file-${index}-error-${errorIndex}`),
8531
8549
  message: e
8532
8550
  }));
8533
8551
  const inactive = disabled || readOnly;
8552
+ console.log("stateFile", stateFile);
8553
+ console.log("fileUrl", fileUrl);
8534
8554
  return /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)("li", { children: [
8535
8555
  /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
8536
8556
  Paper,
@@ -8551,7 +8571,7 @@ var File = (props) => {
8551
8571
  as: "span",
8552
8572
  color: disabled ? "text-subtle" : readOnly ? "text-medium" : void 0,
8553
8573
  className: cn(FileUploader_default.file__name),
8554
- children: stateFile.file.name
8574
+ children: fileUrl ? /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Link, { href: fileUrl, target: "_blank", children: stateFile.name }) : stateFile.name
8555
8575
  }
8556
8576
  ),
8557
8577
  !inactive && /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(import_jsx_runtime260.Fragment, { children: [
@@ -8571,7 +8591,7 @@ var File = (props) => {
8571
8591
  onClick: removeFile,
8572
8592
  icon: CloseIcon,
8573
8593
  htmlProps: {
8574
- "aria-label": t(texts15.removeFile(stateFile.file.name)),
8594
+ "aria-label": t(texts15.removeFile(stateFile.name)),
8575
8595
  "aria-invalid": !isValid ? true : void 0,
8576
8596
  "aria-errormessage": !isValid ? t(texts15.invalidFile) : void 0,
8577
8597
  "aria-describedby": spaceSeparatedIdListGenerator(
@@ -8606,7 +8626,7 @@ var texts15 = createTexts({
8606
8626
 
8607
8627
  // src/components/FileUploader/useFileUploader.ts
8608
8628
  var import_file_selector = require("file-selector");
8609
- var import_react58 = require("react");
8629
+ var import_react60 = require("react");
8610
8630
 
8611
8631
  // src/components/FileUploader/fileUploaderReducer.ts
8612
8632
  var fileUploaderReducer = (state, action) => {
@@ -8706,18 +8726,27 @@ var useFileUploader = (props) => {
8706
8726
  errorMessage
8707
8727
  } = props;
8708
8728
  const { t } = useTranslation();
8709
- const rootRef = (0, import_react58.useRef)(null);
8710
- const inputRef = (0, import_react58.useRef)(null);
8711
- const buttonRef = (0, import_react58.useRef)(null);
8729
+ const rootRef = (0, import_react60.useRef)(null);
8730
+ const inputRef = (0, import_react60.useRef)(null);
8731
+ const buttonRef = (0, import_react60.useRef)(null);
8712
8732
  const isControlled = !!value;
8713
- const initialFileUploaderFiles = (0, import_react58.useMemo)(
8714
- () => (initialFiles != null ? initialFiles : []).map((f) => ({
8715
- file: f,
8716
- errors: []
8717
- })),
8733
+ const initialFileUploaderFiles = (0, import_react60.useMemo)(
8734
+ () => (initialFiles != null ? initialFiles : []).map((f) => {
8735
+ if (f instanceof File)
8736
+ return {
8737
+ file: f,
8738
+ name: f.name,
8739
+ errors: []
8740
+ };
8741
+ return {
8742
+ url: f.url,
8743
+ name: f.name,
8744
+ errors: []
8745
+ };
8746
+ }),
8718
8747
  [initialFiles]
8719
8748
  );
8720
- const [state, dispatch] = (0, import_react58.useReducer)(fileUploaderReducer, {
8749
+ const [state, dispatch] = (0, import_react60.useReducer)(fileUploaderReducer, {
8721
8750
  files: initialFileUploaderFiles,
8722
8751
  isFocused: false,
8723
8752
  isFileDialogActive: false,
@@ -8730,13 +8759,21 @@ var useFileUploader = (props) => {
8730
8759
  )
8731
8760
  });
8732
8761
  const { files: stateFiles } = state;
8733
- (0, import_react58.useEffect)(() => {
8762
+ (0, import_react60.useEffect)(() => {
8734
8763
  if (isControlled) {
8735
8764
  const files = value.map((file) => {
8736
- const accepted = isFileAccepted(file, accept);
8765
+ if (file instanceof File) {
8766
+ const accepted = isFileAccepted(file, accept);
8767
+ return {
8768
+ name: file.name,
8769
+ file,
8770
+ errors: accepted ? [] : [t(texts16.invalidFileType)]
8771
+ };
8772
+ }
8737
8773
  return {
8738
- file,
8739
- errors: accepted ? [] : [t(texts16.invalidFileType)]
8774
+ url: file.url,
8775
+ name: file.name,
8776
+ errors: []
8740
8777
  };
8741
8778
  });
8742
8779
  dispatch({
@@ -8745,7 +8782,7 @@ var useFileUploader = (props) => {
8745
8782
  });
8746
8783
  }
8747
8784
  }, [value, isControlled, accept, dispatch]);
8748
- (0, import_react58.useEffect)(() => {
8785
+ (0, import_react60.useEffect)(() => {
8749
8786
  dispatch({
8750
8787
  type: "setRootErrors",
8751
8788
  payload: calcRootErrors(
@@ -8756,12 +8793,12 @@ var useFileUploader = (props) => {
8756
8793
  )
8757
8794
  });
8758
8795
  }, [dispatch, stateFiles, maxFiles, errorMessage]);
8759
- const onRootFocus = (0, import_react58.useCallback)(
8796
+ const onRootFocus = (0, import_react60.useCallback)(
8760
8797
  () => dispatch({ type: "focus" }),
8761
8798
  [dispatch]
8762
8799
  );
8763
- const onRootBlur = (0, import_react58.useCallback)(() => dispatch({ type: "blur" }), [dispatch]);
8764
- const onRootDragEnter = (0, import_react58.useCallback)(
8800
+ const onRootBlur = (0, import_react60.useCallback)(() => dispatch({ type: "blur" }), [dispatch]);
8801
+ const onRootDragEnter = (0, import_react60.useCallback)(
8765
8802
  async (evt) => {
8766
8803
  preventDefaults(evt);
8767
8804
  if (isEventWithFiles(evt)) {
@@ -8773,7 +8810,7 @@ var useFileUploader = (props) => {
8773
8810
  },
8774
8811
  [dispatch, accept, maxFiles]
8775
8812
  );
8776
- const onRootDragOver = (0, import_react58.useCallback)((evt) => {
8813
+ const onRootDragOver = (0, import_react60.useCallback)((evt) => {
8777
8814
  preventDefaults(evt);
8778
8815
  const hasFiles = isEventWithFiles(evt);
8779
8816
  if (hasFiles && evt.dataTransfer) {
@@ -8783,7 +8820,7 @@ var useFileUploader = (props) => {
8783
8820
  }
8784
8821
  }
8785
8822
  }, []);
8786
- const onRootDragLeave = (0, import_react58.useCallback)(
8823
+ const onRootDragLeave = (0, import_react60.useCallback)(
8787
8824
  (evt) => {
8788
8825
  preventDefaults(evt);
8789
8826
  if (evt.currentTarget.contains(evt.relatedTarget)) return;
@@ -8791,22 +8828,24 @@ var useFileUploader = (props) => {
8791
8828
  },
8792
8829
  [dispatch]
8793
8830
  );
8794
- const setFiles = (0, import_react58.useCallback)(
8831
+ const setFiles = (0, import_react60.useCallback)(
8795
8832
  async (evt) => {
8796
8833
  evt.preventDefault();
8797
8834
  if (isEventWithFiles(evt)) {
8798
- const existingFileNames = stateFiles.map((f) => f.file.name);
8835
+ const existingFileNames = stateFiles.map((f) => f.name);
8799
8836
  const filesFromEvent = await (0, import_file_selector.fromEvent)(
8800
8837
  evt
8801
8838
  );
8802
- const newFiles = filesFromEvent.filter((f) => !existingFileNames.includes(f.name)).map((file) => {
8803
- const accepted = isFileAccepted(file, accept);
8804
- return {
8805
- file,
8806
- errors: accepted ? [] : [t(texts16.invalidFileType)]
8807
- };
8808
- }).concat(stateFiles);
8809
- onChange(newFiles.map((f) => f.file));
8839
+ const newFiles = filesFromEvent.filter((f) => !existingFileNames.includes(f.name)).map((file) => ({
8840
+ file,
8841
+ name: file.name,
8842
+ errors: isFileAccepted(file, accept) ? [] : [t(texts16.invalidFileType)]
8843
+ })).concat(stateFiles);
8844
+ const mergedFiles = [
8845
+ ...stateFiles.filter((f) => f.url).map((f) => ({ name: f.name, url: f.url })),
8846
+ ...newFiles.filter((f) => f.file).map((f) => f.file)
8847
+ ];
8848
+ onChange(mergedFiles);
8810
8849
  if (!isControlled) {
8811
8850
  dispatch({
8812
8851
  type: "onSetFiles",
@@ -8825,17 +8864,21 @@ var useFileUploader = (props) => {
8825
8864
  dispatch
8826
8865
  ]
8827
8866
  );
8828
- const openFileDialog = (0, import_react58.useCallback)(() => {
8867
+ const openFileDialog = (0, import_react60.useCallback)(() => {
8829
8868
  if (inputRef.current) {
8830
8869
  inputRef.current.value = "";
8831
8870
  inputRef.current.click();
8832
8871
  }
8833
8872
  }, [inputRef]);
8834
- const removeFile = (0, import_react58.useCallback)(
8873
+ const removeFile = (0, import_react60.useCallback)(
8835
8874
  (file) => {
8836
8875
  const newFiles = [...stateFiles];
8837
8876
  newFiles.splice(stateFiles.indexOf(file), 1);
8838
- onChange(newFiles.map((f) => f.file));
8877
+ const mergedFiles = [
8878
+ ...newFiles.filter((f) => f.url).map((f) => ({ name: f.name, url: f.url })),
8879
+ ...newFiles.filter((f) => f.file).map((f) => f.file)
8880
+ ];
8881
+ onChange(mergedFiles);
8839
8882
  if (!isControlled) {
8840
8883
  dispatch({
8841
8884
  type: "onRemoveFile",
@@ -8845,7 +8888,7 @@ var useFileUploader = (props) => {
8845
8888
  },
8846
8889
  [stateFiles, isControlled, maxFiles, errorMessage, onChange, dispatch]
8847
8890
  );
8848
- const getRootProps = (0, import_react58.useCallback)(
8891
+ const getRootProps = (0, import_react60.useCallback)(
8849
8892
  () => ({
8850
8893
  onBlur: onRootBlur,
8851
8894
  onFocus: onRootFocus,
@@ -8865,14 +8908,14 @@ var useFileUploader = (props) => {
8865
8908
  disabled
8866
8909
  ]
8867
8910
  );
8868
- const getButtonProps = (0, import_react58.useCallback)(
8911
+ const getButtonProps = (0, import_react60.useCallback)(
8869
8912
  () => ({
8870
8913
  onClick: openFileDialog,
8871
8914
  ref: buttonRef
8872
8915
  }),
8873
8916
  [openFileDialog, buttonRef]
8874
8917
  );
8875
- const getInputProps = (0, import_react58.useCallback)(
8918
+ const getInputProps = (0, import_react60.useCallback)(
8876
8919
  () => ({
8877
8920
  type: "file",
8878
8921
  tabIndex: readOnly ? void 0 : -1,
@@ -8941,7 +8984,7 @@ var FileUploader = (props) => {
8941
8984
  const { t } = useTranslation();
8942
8985
  const tDropAreaLabel = dropAreaLabel != null ? dropAreaLabel : t(texts17.dragAndDropOr);
8943
8986
  const tBtnLabel = btnLabel != null ? btnLabel : t(texts17.selectFile);
8944
- const generatedId = (0, import_react59.useId)();
8987
+ const generatedId = (0, import_react61.useId)();
8945
8988
  const uniqueId = id != null ? id : `${generatedId}-fileUploader`;
8946
8989
  const {
8947
8990
  state: { files: stateFiles, isDragActive, rootErrors },
@@ -8972,7 +9015,7 @@ var FileUploader = (props) => {
8972
9015
  const fileListId = derivativeIdGenerator(uniqueId, "file-list");
8973
9016
  const fileListNameId = derivativeIdGenerator(uniqueId, "file-list-name");
8974
9017
  const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
8975
- File,
9018
+ File2,
8976
9019
  {
8977
9020
  parentId: uniqueId,
8978
9021
  index,
@@ -8982,7 +9025,7 @@ var FileUploader = (props) => {
8982
9025
  disabled,
8983
9026
  readOnly
8984
9027
  },
8985
- stateFile.file.name
9028
+ stateFile.name
8986
9029
  ));
8987
9030
  const rootErrorsList = rootErrors.map((e, index) => ({
8988
9031
  id: derivativeIdGenerator(uniqueId, `error-${index}`),
@@ -9281,7 +9324,7 @@ var texts18 = createTexts({
9281
9324
  });
9282
9325
 
9283
9326
  // src/components/GlobalMessage/GlobalMessage.tsx
9284
- var import_react60 = require("react");
9327
+ var import_react62 = require("react");
9285
9328
 
9286
9329
  // src/components/GlobalMessage/GlobalMessage.module.css
9287
9330
  var GlobalMessage_default = {
@@ -9313,7 +9356,7 @@ var GlobalMessage = ({
9313
9356
  ...rest
9314
9357
  }) => {
9315
9358
  const { t } = useTranslation();
9316
- const [isClosed, setClosed] = (0, import_react60.useState)(false);
9359
+ const [isClosed, setClosed] = (0, import_react62.useState)(false);
9317
9360
  return !isClosed ? /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)(
9318
9361
  "div",
9319
9362
  {
@@ -9387,15 +9430,15 @@ var InlineButton = ({
9387
9430
  );
9388
9431
 
9389
9432
  // src/components/InlineEdit/InlineEditTextArea/InlineEditTextArea.tsx
9390
- var import_react63 = require("react");
9433
+ var import_react65 = require("react");
9391
9434
 
9392
9435
  // src/components/InlineEdit/InlineEdit.context.tsx
9393
- var import_react61 = require("react");
9436
+ var import_react63 = require("react");
9394
9437
  var import_jsx_runtime274 = require("react/jsx-runtime");
9395
- var InlineEditContext = (0, import_react61.createContext)(
9438
+ var InlineEditContext = (0, import_react63.createContext)(
9396
9439
  {}
9397
9440
  );
9398
- var useInlineEditContext = () => (0, import_react61.useContext)(InlineEditContext);
9441
+ var useInlineEditContext = () => (0, import_react63.useContext)(InlineEditContext);
9399
9442
  var InlineEditContextProvider = (props) => {
9400
9443
  const {
9401
9444
  emptiable,
@@ -9407,8 +9450,8 @@ var InlineEditContextProvider = (props) => {
9407
9450
  inputRef,
9408
9451
  children
9409
9452
  } = props;
9410
- const [editingValue, setEditingValue] = (0, import_react61.useState)(value != null ? value : "");
9411
- const [isEditing, setIsEditing] = (0, import_react61.useState)(false);
9453
+ const [editingValue, setEditingValue] = (0, import_react63.useState)(value != null ? value : "");
9454
+ const [isEditing, setIsEditing] = (0, import_react63.useState)(false);
9412
9455
  const onChangeHandler = (e) => {
9413
9456
  setEditingValue(e.target.value);
9414
9457
  onChange == null ? void 0 : onChange(e);
@@ -9453,7 +9496,7 @@ var InlineEditContextProvider = (props) => {
9453
9496
  InlineEditContextProvider.displayName = "InlineEditContextProvider";
9454
9497
 
9455
9498
  // src/components/InlineEdit/InlineField.tsx
9456
- var import_react62 = require("react");
9499
+ var import_react64 = require("react");
9457
9500
 
9458
9501
  // src/components/InlineEdit/InlineEdit.module.css
9459
9502
  var InlineEdit_default = {
@@ -9558,14 +9601,14 @@ function InlineField(props) {
9558
9601
  } = props;
9559
9602
  const { onBlur, onChange, onFocus, isEditing, value, emptiable } = useInlineEditContext();
9560
9603
  const { t } = useTranslation();
9561
- const generatedId = (0, import_react62.useId)();
9604
+ const generatedId = (0, import_react64.useId)();
9562
9605
  const uniqueId = id != null ? id : `${generatedId}-InlineEdit`;
9563
9606
  const hasErrorMessage = !!errorMessage;
9564
9607
  const hasErrorState = !!error || hasErrorMessage;
9565
9608
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
9566
9609
  const descId = derivativeIdGenerator(uniqueId, "desc");
9567
9610
  const hasValue = !!value;
9568
- const inputRef = (0, import_react62.useRef)(null);
9611
+ const inputRef = (0, import_react64.useRef)(null);
9569
9612
  const combinedRef = useCombinedRef(ref, inputRef);
9570
9613
  const clearInput = () => {
9571
9614
  const clearChangeEvent = createClearChangeEvent(uniqueId);
@@ -9670,7 +9713,7 @@ var InlineEditTextArea = ({
9670
9713
  ref,
9671
9714
  ...rest
9672
9715
  }) => {
9673
- const textareaRef = (0, import_react63.useRef)(null);
9716
+ const textareaRef = (0, import_react65.useRef)(null);
9674
9717
  const combinedRef = useCombinedRef(ref, textareaRef);
9675
9718
  return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
9676
9719
  InlineEditContextProvider,
@@ -9688,7 +9731,7 @@ var InlineEditTextArea = ({
9688
9731
  };
9689
9732
 
9690
9733
  // src/components/InlineEdit/InlineEditInput/InlineEditInput.tsx
9691
- var import_react64 = require("react");
9734
+ var import_react66 = require("react");
9692
9735
  var import_jsx_runtime278 = require("react/jsx-runtime");
9693
9736
  var InlineEditInput = ({
9694
9737
  onSetValue,
@@ -9700,7 +9743,7 @@ var InlineEditInput = ({
9700
9743
  ref,
9701
9744
  ...rest
9702
9745
  }) => {
9703
- const inputRef = (0, import_react64.useRef)(null);
9746
+ const inputRef = (0, import_react66.useRef)(null);
9704
9747
  const combinedRef = useCombinedRef(ref, inputRef);
9705
9748
  return /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
9706
9749
  InlineEditContextProvider,
@@ -9718,7 +9761,7 @@ var InlineEditInput = ({
9718
9761
  };
9719
9762
 
9720
9763
  // src/components/InlineEdit/InlineEditSelect/InlineEditSelect.tsx
9721
- var import_react65 = require("react");
9764
+ var import_react67 = require("react");
9722
9765
  var import_jsx_runtime279 = require("react/jsx-runtime");
9723
9766
  var InlineEditSelect = ({
9724
9767
  onSetValue,
@@ -9730,7 +9773,7 @@ var InlineEditSelect = ({
9730
9773
  ref,
9731
9774
  ...rest
9732
9775
  }) => {
9733
- const inputRef = (0, import_react65.useRef)(null);
9776
+ const inputRef = (0, import_react67.useRef)(null);
9734
9777
  const combinedRef = useCombinedRef(ref, inputRef);
9735
9778
  return /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
9736
9779
  InlineEditContextProvider,
@@ -9748,7 +9791,7 @@ var InlineEditSelect = ({
9748
9791
  };
9749
9792
 
9750
9793
  // src/components/InternalHeader/InternalHeader.tsx
9751
- var import_react66 = require("react");
9794
+ var import_react68 = require("react");
9752
9795
 
9753
9796
  // src/components/InternalHeader/InternalHeader.module.css
9754
9797
  var InternalHeader_default = {
@@ -9781,7 +9824,7 @@ var NavigationItem = ({ isCurrent, ...rest }) => /* @__PURE__ */ (0, import_jsx_
9781
9824
 
9782
9825
  // src/components/InternalHeader/InternalHeader.tsx
9783
9826
  var import_jsx_runtime281 = require("react/jsx-runtime");
9784
- var import_react67 = require("react");
9827
+ var import_react69 = require("react");
9785
9828
  var InternalHeader = (props) => {
9786
9829
  const {
9787
9830
  applicationDesc,
@@ -9799,7 +9842,7 @@ var InternalHeader = (props) => {
9799
9842
  ...rest
9800
9843
  } = props;
9801
9844
  const { t } = useTranslation();
9802
- const [currentPage, setCurrentPage] = (0, import_react66.useState)(
9845
+ const [currentPage, setCurrentPage] = (0, import_react68.useState)(
9803
9846
  currentPageHref
9804
9847
  );
9805
9848
  const handleCurrentPageChange = (href) => {
@@ -9885,7 +9928,7 @@ var InternalHeader = (props) => {
9885
9928
  as: "nav",
9886
9929
  "aria-label": t(texts20.siteNavigation),
9887
9930
  showBelow: smallScreenBreakpoint,
9888
- children: /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(OverflowMenuList, { children: navItems.map((item, i) => /* @__PURE__ */ (0, import_react67.createElement)(OverflowMenuLink, { ...item, key: `nav-${i}` })) })
9931
+ children: /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(OverflowMenuList, { children: navItems.map((item, i) => /* @__PURE__ */ (0, import_react69.createElement)(OverflowMenuLink, { ...item, key: `nav-${i}` })) })
9889
9932
  }
9890
9933
  ),
9891
9934
  hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
@@ -9896,13 +9939,13 @@ var InternalHeader = (props) => {
9896
9939
  }
9897
9940
  ),
9898
9941
  hasContextMenuElements && /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(OverflowMenuList, { children: contextMenuItems.map((item, i) => {
9899
- return item.href ? /* @__PURE__ */ (0, import_react67.createElement)(
9942
+ return item.href ? /* @__PURE__ */ (0, import_react69.createElement)(
9900
9943
  OverflowMenuLink,
9901
9944
  {
9902
9945
  ...item,
9903
9946
  key: `context-${i}`
9904
9947
  }
9905
- ) : /* @__PURE__ */ (0, import_react67.createElement)(
9948
+ ) : /* @__PURE__ */ (0, import_react69.createElement)(
9906
9949
  OverflowMenuButton,
9907
9950
  {
9908
9951
  ...item,
@@ -9978,7 +10021,7 @@ var ListItem = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtim
9978
10021
  ListItem.displayName = "ListItem";
9979
10022
 
9980
10023
  // src/components/LocalMessage/LocalMessage.tsx
9981
- var import_react68 = require("react");
10024
+ var import_react70 = require("react");
9982
10025
 
9983
10026
  // src/components/LocalMessage/LocalMessage.module.css
9984
10027
  var LocalMessage_default = {
@@ -10021,7 +10064,7 @@ var LocalMessage = ({
10021
10064
  ...rest
10022
10065
  }) => {
10023
10066
  const { t } = useTranslation();
10024
- const [isClosed, setClosed] = (0, import_react68.useState)(false);
10067
+ const [isClosed, setClosed] = (0, import_react70.useState)(false);
10025
10068
  if (isClosed) {
10026
10069
  return /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(import_jsx_runtime284.Fragment, {});
10027
10070
  }
@@ -10075,7 +10118,7 @@ var LocalMessage = ({
10075
10118
  LocalMessage.displayName = "LocalMessage";
10076
10119
 
10077
10120
  // src/components/Modal/Modal.tsx
10078
- var import_react69 = require("react");
10121
+ var import_react71 = require("react");
10079
10122
  var import_react_dom4 = require("react-dom");
10080
10123
 
10081
10124
  // src/components/Modal/Modal.module.css
@@ -10105,7 +10148,7 @@ var Modal = ({
10105
10148
  ref,
10106
10149
  ...rest
10107
10150
  }) => {
10108
- const generatedId = (0, import_react69.useId)();
10151
+ const generatedId = (0, import_react71.useId)();
10109
10152
  const modalId = id != null ? id : `${generatedId}-modal`;
10110
10153
  const headerId = `${modalId}-header`;
10111
10154
  const modalRef = useFocusTrap(isOpen, initialFocusRef);
@@ -10117,13 +10160,13 @@ var Modal = ({
10117
10160
  onClose();
10118
10161
  }
10119
10162
  };
10120
- const themeContext = (0, import_react69.useContext)(ThemeContext);
10163
+ const themeContext = (0, import_react71.useContext)(ThemeContext);
10121
10164
  if (!themeContext) {
10122
10165
  throw new Error("Modal must be used within a ThemeProvider");
10123
10166
  }
10124
10167
  const { t } = useTranslation();
10125
10168
  const portalTarget = parentElement != null ? parentElement : themeContext == null ? void 0 : themeContext.el;
10126
- (0, import_react69.useEffect)(() => {
10169
+ (0, import_react71.useEffect)(() => {
10127
10170
  if (isOpen) {
10128
10171
  handleElementWithBackdropMount(document.body);
10129
10172
  } else {
@@ -10131,7 +10174,7 @@ var Modal = ({
10131
10174
  }
10132
10175
  return () => handleElementWithBackdropUnmount(document.body);
10133
10176
  }, [isOpen]);
10134
- const backdropRef = (0, import_react69.useRef)(null);
10177
+ const backdropRef = (0, import_react71.useRef)(null);
10135
10178
  const onBackdropClick = (event) => {
10136
10179
  if (event.target === backdropRef.current && isOpen) {
10137
10180
  handleClose();
@@ -10248,7 +10291,7 @@ var ModalActions = (props) => /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(Box
10248
10291
  ModalActions.displayName = "ModalActions";
10249
10292
 
10250
10293
  // src/components/Pagination/Pagination.tsx
10251
- var import_react73 = require("react");
10294
+ var import_react75 = require("react");
10252
10295
 
10253
10296
  // src/components/Pagination/Pagination.module.css
10254
10297
  var Pagination_default = {
@@ -10293,7 +10336,7 @@ function PaginationGenerator(pagesAmount, activePage) {
10293
10336
  }
10294
10337
 
10295
10338
  // src/components/Select/Select.tsx
10296
- var import_react71 = require("react");
10339
+ var import_react73 = require("react");
10297
10340
  var import_react_select2 = __toESM(require("react-select"));
10298
10341
 
10299
10342
  // src/components/Select/Select.module.css
@@ -10573,7 +10616,7 @@ var getCustomStyles = (size2, hasError, hasIcon, isReadOnly) => ({
10573
10616
  });
10574
10617
 
10575
10618
  // src/components/Select/SelectComponents.tsx
10576
- var import_react70 = __toESM(require("react"));
10619
+ var import_react72 = __toESM(require("react"));
10577
10620
  var import_react_select = require("react-select");
10578
10621
  var import_jsx_runtime288 = require("react/jsx-runtime");
10579
10622
  var {
@@ -10602,7 +10645,7 @@ var DDSOption = ({
10602
10645
  props.isSelected && /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(Icon, { icon: CheckIcon, iconSize: "small" }),
10603
10646
  props.children
10604
10647
  ] });
10605
- var CustomOption = (props) => /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(Option, { ...props, children: import_react70.default.createElement(props.customElement, props) });
10648
+ var CustomOption = (props) => /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(Option, { ...props, children: import_react72.default.createElement(props.customElement, props) });
10606
10649
  var CustomSingleValue = ({
10607
10650
  id,
10608
10651
  Element,
@@ -10719,12 +10762,12 @@ function Select({
10719
10762
  afterLabelContent,
10720
10763
  ...rest
10721
10764
  }) {
10722
- const themeContext = (0, import_react71.useContext)(ThemeContext);
10765
+ const themeContext = (0, import_react73.useContext)(ThemeContext);
10723
10766
  if (!themeContext) {
10724
10767
  throw new Error("Select must be used within a ThemeProvider");
10725
10768
  }
10726
10769
  const portalTarget = menuPortalTarget != null ? menuPortalTarget : themeContext == null ? void 0 : themeContext.el;
10727
- const generatedId = (0, import_react71.useId)();
10770
+ const generatedId = (0, import_react73.useId)();
10728
10771
  const uniqueId = id != null ? id : `${generatedId}-select`;
10729
10772
  const singleValueId = !isMulti ? `${uniqueId}-singleValue` : void 0;
10730
10773
  const hasErrorMessage = !!errorMessage;
@@ -10736,7 +10779,7 @@ function Select({
10736
10779
  width,
10737
10780
  componentSize === "xsmall" && "var(--dds-input-default-width-xsmall)"
10738
10781
  );
10739
- const customInput = (0, import_react71.useCallback)(
10782
+ const customInput = (0, import_react73.useCallback)(
10740
10783
  (props) => /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
10741
10784
  DDSInput,
10742
10785
  {
@@ -10754,7 +10797,7 @@ function Select({
10754
10797
  ),
10755
10798
  []
10756
10799
  );
10757
- const customSingleValue = (0, import_react71.useCallback)(
10800
+ const customSingleValue = (0, import_react73.useCallback)(
10758
10801
  (props) => /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
10759
10802
  CustomSingleValue,
10760
10803
  {
@@ -10765,15 +10808,15 @@ function Select({
10765
10808
  ),
10766
10809
  []
10767
10810
  );
10768
- const customClearIndicator = (0, import_react71.useCallback)(
10811
+ const customClearIndicator = (0, import_react73.useCallback)(
10769
10812
  (props) => /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(DDSClearIndicator, { ...props, size: componentSize }),
10770
10813
  [componentSize]
10771
10814
  );
10772
- const customDropdownIndicator = (0, import_react71.useCallback)(
10815
+ const customDropdownIndicator = (0, import_react73.useCallback)(
10773
10816
  (props) => /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(DDSDropdownIndicator, { ...props, componentSize }),
10774
10817
  [componentSize]
10775
10818
  );
10776
- const customControl = (0, import_react71.useCallback)(
10819
+ const customControl = (0, import_react73.useCallback)(
10777
10820
  (props) => /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
10778
10821
  DDSControl,
10779
10822
  {
@@ -10786,7 +10829,7 @@ function Select({
10786
10829
  ),
10787
10830
  [componentSize, readOnly, icon, dataTestId]
10788
10831
  );
10789
- const customOptionComponent = (0, import_react71.useCallback)(
10832
+ const customOptionComponent = (0, import_react73.useCallback)(
10790
10833
  (props) => {
10791
10834
  if (customOptionElement) {
10792
10835
  return /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(CustomOption, { ...props, customElement: customOptionElement });
@@ -10805,7 +10848,7 @@ function Select({
10805
10848
  placeholder: placeholder ? placeholder : "",
10806
10849
  closeMenuOnSelect: closeMenuOnSelect ? closeMenuOnSelect : isMulti ? false : true,
10807
10850
  isMulti,
10808
- instanceId: instanceId != null ? instanceId : (0, import_react71.useId)(),
10851
+ instanceId: instanceId != null ? instanceId : (0, import_react73.useId)(),
10809
10852
  inputId: uniqueId,
10810
10853
  name: uniqueId,
10811
10854
  menuPortalTarget: portalTarget,
@@ -10864,7 +10907,7 @@ function Select({
10864
10907
  Select.displayName = "Select";
10865
10908
 
10866
10909
  // src/components/Select/NativeSelect/NativeSelect.tsx
10867
- var import_react72 = require("react");
10910
+ var import_react74 = require("react");
10868
10911
 
10869
10912
  // src/components/Select/NativeSelect/NativeSelect.module.css
10870
10913
  var NativeSelect_default = {
@@ -10908,14 +10951,14 @@ var NativeSelect = ({
10908
10951
  ...rest
10909
10952
  }) => {
10910
10953
  const { t } = useTranslation();
10911
- const selectRef = (0, import_react72.useRef)(null);
10912
- const [hasValue, setHasValue] = (0, import_react72.useState)(false);
10913
- (0, import_react72.useEffect)(() => {
10954
+ const selectRef = (0, import_react74.useRef)(null);
10955
+ const [hasValue, setHasValue] = (0, import_react74.useState)(false);
10956
+ (0, import_react74.useEffect)(() => {
10914
10957
  var _a, _b;
10915
10958
  const selectedIndex = (_b = (_a = selectRef.current) == null ? void 0 : _a.selectedIndex) != null ? _b : -1;
10916
10959
  setHasValue(selectedIndex !== 0);
10917
10960
  }, []);
10918
- (0, import_react72.useEffect)(() => {
10961
+ (0, import_react74.useEffect)(() => {
10919
10962
  var _a;
10920
10963
  if (clearable) {
10921
10964
  const firstOption = (_a = selectRef.current) == null ? void 0 : _a.options[0];
@@ -10928,7 +10971,7 @@ var NativeSelect = ({
10928
10971
  }
10929
10972
  }
10930
10973
  }, [clearable]);
10931
- const generatedId = (0, import_react72.useId)();
10974
+ const generatedId = (0, import_react74.useId)();
10932
10975
  const uniqueId = id != null ? id : `${generatedId}-native-select`;
10933
10976
  const hasErrorMessage = !!errorMessage;
10934
10977
  const hasTip = !!tip;
@@ -11073,7 +11116,7 @@ var Pagination = ({
11073
11116
  value: activePageProp,
11074
11117
  defaultValue: defaultActivePage
11075
11118
  });
11076
- const [itemsPerPage, setItemsPerPage] = (0, import_react73.useState)(defaultItemsPerPage);
11119
+ const [itemsPerPage, setItemsPerPage] = (0, import_react75.useState)(defaultItemsPerPage);
11077
11120
  const pagesLength = Math.ceil(itemsAmount / itemsPerPage);
11078
11121
  const items = PaginationGenerator(pagesLength, activePage);
11079
11122
  const onPageChange = (event, page) => {
@@ -11389,7 +11432,7 @@ var texts21 = createTexts({
11389
11432
  });
11390
11433
 
11391
11434
  // src/components/PhoneInput/PhoneInput.tsx
11392
- var import_react74 = require("react");
11435
+ var import_react76 = require("react");
11393
11436
 
11394
11437
  // src/components/PhoneInput/constants.ts
11395
11438
  var COUNTRIES = {
@@ -11851,7 +11894,7 @@ var PhoneInput = ({
11851
11894
  const { t } = useTranslation();
11852
11895
  const tGroupLabel = groupLabel != null ? groupLabel : t(texts22.countryCodeAndPhoneNumber);
11853
11896
  const tSelectLabel = selectLabel != null ? selectLabel : t(texts22.countryCode);
11854
- const generatedId = (0, import_react74.useId)();
11897
+ const generatedId = (0, import_react76.useId)();
11855
11898
  const uniqueId = (_a = props.id) != null ? _a : generatedId;
11856
11899
  const phoneInputId = `${uniqueId}-phone-input`;
11857
11900
  const phoneNumberId = `${uniqueId}-phone-number`;
@@ -11861,27 +11904,27 @@ var PhoneInput = ({
11861
11904
  const hasMessage = hasErrorMessage || hasTip;
11862
11905
  const tipId = derivativeIdGenerator(phoneInputId, "tip");
11863
11906
  const errorMessageId = derivativeIdGenerator(phoneInputId, "errorMessage");
11864
- const [callingCode, setCallingCode] = (0, import_react74.useState)("");
11865
- const [selectedCountryCodeText, setSelectedCountryCodeText] = (0, import_react74.useState)("");
11866
- const [internalValue, setInternalValue] = (0, import_react74.useState)(
11907
+ const [callingCode, setCallingCode] = (0, import_react76.useState)("");
11908
+ const [selectedCountryCodeText, setSelectedCountryCodeText] = (0, import_react76.useState)("");
11909
+ const [internalValue, setInternalValue] = (0, import_react76.useState)(
11867
11910
  defaultValue != null ? defaultValue : {
11868
11911
  countryCode: "",
11869
11912
  phoneNumber: ""
11870
11913
  }
11871
11914
  );
11872
11915
  const isControlled = value !== void 0;
11873
- const [callingCodeWidth, setCallingCodeWidth] = (0, import_react74.useState)(0);
11874
- const callingCodeRef = (0, import_react74.useRef)(null);
11875
- (0, import_react74.useLayoutEffect)(() => {
11916
+ const [callingCodeWidth, setCallingCodeWidth] = (0, import_react76.useState)(0);
11917
+ const callingCodeRef = (0, import_react76.useRef)(null);
11918
+ (0, import_react76.useLayoutEffect)(() => {
11876
11919
  if (callingCodeRef.current) {
11877
11920
  setCallingCodeWidth(callingCodeRef.current.offsetWidth);
11878
11921
  }
11879
11922
  }, [callingCode]);
11880
11923
  const callingCodeInlineStart = callingCodeWidth ? `calc(var(--dds-spacing-x1) + ${callingCodeWidth}px)` : void 0;
11881
- const internalSelectRef = (0, import_react74.useRef)(null);
11924
+ const internalSelectRef = (0, import_react76.useRef)(null);
11882
11925
  const combinedSelectRef = useCombinedRef(selectRef, internalSelectRef);
11883
11926
  const displayedValue = isControlled ? value : internalValue;
11884
- (0, import_react74.useEffect)(() => {
11927
+ (0, import_react76.useEffect)(() => {
11885
11928
  const selectEl = internalSelectRef.current;
11886
11929
  if (selectEl && selectEl.value) {
11887
11930
  const { options, selectedIndex } = selectEl;
@@ -12042,7 +12085,7 @@ var texts22 = createTexts({
12042
12085
  });
12043
12086
 
12044
12087
  // src/components/Popover/Popover.tsx
12045
- var import_react76 = require("react");
12088
+ var import_react78 = require("react");
12046
12089
  var import_react_dom5 = require("react-dom");
12047
12090
 
12048
12091
  // src/components/Popover/Popover.module.css
@@ -12054,9 +12097,9 @@ var Popover_default = {
12054
12097
  };
12055
12098
 
12056
12099
  // src/components/Popover/Popover.context.tsx
12057
- var import_react75 = require("react");
12058
- var PopoverContext = (0, import_react75.createContext)({});
12059
- var usePopoverContext = () => (0, import_react75.useContext)(PopoverContext);
12100
+ var import_react77 = require("react");
12101
+ var PopoverContext = (0, import_react77.createContext)({});
12102
+ var usePopoverContext = () => (0, import_react77.useContext)(PopoverContext);
12060
12103
 
12061
12104
  // src/components/Popover/Popover.tsx
12062
12105
  var import_jsx_runtime293 = require("react/jsx-runtime");
@@ -12086,7 +12129,7 @@ var Popover = ({
12086
12129
  });
12087
12130
  const { maxHeight, maxWidth, minHeight, minWidth, height, width } = sizeProps;
12088
12131
  const context = usePopoverContext();
12089
- const themeContext = (0, import_react76.useContext)(ThemeContext);
12132
+ const themeContext = (0, import_react78.useContext)(ThemeContext);
12090
12133
  const portalTarget = parentElement != null ? parentElement : themeContext == null ? void 0 : themeContext.el;
12091
12134
  const {
12092
12135
  floatStyling: contextFloatStyling,
@@ -12099,7 +12142,7 @@ var Popover = ({
12099
12142
  } = context;
12100
12143
  const { t } = useTranslation();
12101
12144
  const hasContext = !isEmpty(context);
12102
- const generatedId = (0, import_react76.useId)();
12145
+ const generatedId = (0, import_react78.useId)();
12103
12146
  const uniquePopoverId = id != null ? id : `${generatedId}-popover`;
12104
12147
  const [
12105
12148
  popoverId,
@@ -12136,7 +12179,7 @@ var Popover = ({
12136
12179
  anchorEl && anchorEl
12137
12180
  );
12138
12181
  const multiRef = useCombinedRef(ref, popoverRef, floatingRef);
12139
- (0, import_react76.useEffect)(() => {
12182
+ (0, import_react78.useEffect)(() => {
12140
12183
  setFloatOptions == null ? void 0 : setFloatOptions({ placement, offset });
12141
12184
  }, [placement, offset]);
12142
12185
  useOnClickOutside([popoverRef.current, anchorEl], () => {
@@ -12205,7 +12248,7 @@ var Popover = ({
12205
12248
  Popover.displayName = "Popover";
12206
12249
 
12207
12250
  // src/components/Popover/PopoverGroup.tsx
12208
- var import_react77 = require("react");
12251
+ var import_react79 = require("react");
12209
12252
  var import_jsx_runtime294 = require("react/jsx-runtime");
12210
12253
  var PopoverGroup = ({
12211
12254
  isOpen: propIsOpen,
@@ -12217,12 +12260,12 @@ var PopoverGroup = ({
12217
12260
  popoverId
12218
12261
  }) => {
12219
12262
  var _a;
12220
- const [internalIsOpen, internalSetIsOpen] = (0, import_react77.useState)(isInitiallyOpen);
12263
+ const [internalIsOpen, internalSetIsOpen] = (0, import_react79.useState)(isInitiallyOpen);
12221
12264
  const open = propIsOpen != null ? propIsOpen : internalIsOpen;
12222
12265
  const setOpen = propSetIsOpen != null ? propSetIsOpen : internalSetIsOpen;
12223
- const generatedId = (0, import_react77.useId)();
12266
+ const generatedId = (0, import_react79.useId)();
12224
12267
  const uniquePopoverId = popoverId != null ? popoverId : `${generatedId}-popover`;
12225
- const [floatOptions, setFloatOptions] = (0, import_react77.useState)();
12268
+ const [floatOptions, setFloatOptions] = (0, import_react79.useState)();
12226
12269
  const { refs, styles: positionStyles } = useFloatPosition(null, floatOptions);
12227
12270
  const handleClose = () => {
12228
12271
  setOpen(false);
@@ -12239,10 +12282,10 @@ var PopoverGroup = ({
12239
12282
  handleOpen();
12240
12283
  }
12241
12284
  };
12242
- const buttonRef = (0, import_react77.useRef)(null);
12285
+ const buttonRef = (0, import_react79.useRef)(null);
12243
12286
  const anchorRef = refs.setReference;
12244
12287
  const combinedAnchorRef = useCombinedRef(buttonRef, anchorRef);
12245
- const popoverRef = (0, import_react77.useRef)(null);
12288
+ const popoverRef = (0, import_react79.useRef)(null);
12246
12289
  const floatingRef = refs.setFloating;
12247
12290
  const combinedPopoverRef = useCombinedRef(popoverRef, floatingRef);
12248
12291
  useOnKeyDown(["Esc", "Escape"], () => {
@@ -12258,8 +12301,8 @@ var PopoverGroup = ({
12258
12301
  if (open) handleClose();
12259
12302
  });
12260
12303
  const isAnchorChild = (i) => i === 0;
12261
- const Children7 = import_react77.Children.map(children, (child, childIndex) => {
12262
- return (0, import_react77.isValidElement)(child) && (isAnchorChild(childIndex) ? (0, import_react77.cloneElement)(child, {
12304
+ const Children7 = import_react79.Children.map(children, (child, childIndex) => {
12305
+ return (0, import_react79.isValidElement)(child) && (isAnchorChild(childIndex) ? (0, import_react79.cloneElement)(child, {
12263
12306
  "aria-haspopup": "dialog",
12264
12307
  "aria-controls": uniquePopoverId,
12265
12308
  "aria-expanded": open,
@@ -12286,17 +12329,17 @@ var PopoverGroup = ({
12286
12329
  PopoverGroup.displayName = "PopoverGroup";
12287
12330
 
12288
12331
  // src/components/ProgressTracker/ProgressTracker.tsx
12289
- var import_react80 = require("react");
12332
+ var import_react82 = require("react");
12290
12333
 
12291
12334
  // src/components/ProgressTracker/ProgressTracker.context.tsx
12292
- var import_react78 = require("react");
12293
- var ProgressTrackerContext = (0, import_react78.createContext)(
12335
+ var import_react80 = require("react");
12336
+ var ProgressTrackerContext = (0, import_react80.createContext)(
12294
12337
  {
12295
12338
  activeStep: 0,
12296
12339
  direction: "column"
12297
12340
  }
12298
12341
  );
12299
- var useProgressTrackerContext = () => (0, import_react78.useContext)(ProgressTrackerContext);
12342
+ var useProgressTrackerContext = () => (0, import_react80.useContext)(ProgressTrackerContext);
12300
12343
 
12301
12344
  // src/components/ProgressTracker/ProgressTracker.module.css
12302
12345
  var ProgressTracker_default = {
@@ -12317,7 +12360,7 @@ var ProgressTracker_default = {
12317
12360
  };
12318
12361
 
12319
12362
  // src/components/ProgressTracker/ProgressTrackerItem.tsx
12320
- var import_react79 = require("react");
12363
+ var import_react81 = require("react");
12321
12364
  var import_jsx_runtime295 = require("react/jsx-runtime");
12322
12365
  var toItemState = (active, completed, disabled) => {
12323
12366
  if (disabled) {
@@ -12360,7 +12403,7 @@ var ProgressTrackerItem = (props) => {
12360
12403
  handleStepChange == null ? void 0 : handleStepChange(index);
12361
12404
  }
12362
12405
  };
12363
- const stepNumberContent = (0, import_react79.useMemo)(() => {
12406
+ const stepNumberContent = (0, import_react81.useMemo)(() => {
12364
12407
  if (completed) {
12365
12408
  return /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(Icon, { icon: CheckIcon, iconSize: "small" });
12366
12409
  }
@@ -12484,17 +12527,17 @@ var ProgressTracker = (() => {
12484
12527
  ...rest
12485
12528
  }) => {
12486
12529
  const { t } = useTranslation();
12487
- const [thisActiveStep, setActiveStep] = (0, import_react80.useState)(activeStep);
12530
+ const [thisActiveStep, setActiveStep] = (0, import_react82.useState)(activeStep);
12488
12531
  const handleChange = (step) => {
12489
12532
  setActiveStep(step);
12490
12533
  onStepChange == null ? void 0 : onStepChange(step);
12491
12534
  };
12492
- (0, import_react80.useEffect)(() => {
12535
+ (0, import_react82.useEffect)(() => {
12493
12536
  if (activeStep !== void 0 && activeStep != thisActiveStep) {
12494
12537
  setActiveStep(activeStep);
12495
12538
  }
12496
12539
  }, [activeStep, thisActiveStep]);
12497
- const steps = (0, import_react80.useMemo)(() => {
12540
+ const steps = (0, import_react82.useMemo)(() => {
12498
12541
  const validChildren = removeInvalidChildren(children);
12499
12542
  const itemsWithIndex = passIndexPropToProgressTrackerItem(validChildren);
12500
12543
  return itemsWithIndex;
@@ -12539,12 +12582,12 @@ var ProgressTracker = (() => {
12539
12582
  return Res;
12540
12583
  })();
12541
12584
  function removeInvalidChildren(children) {
12542
- return import_react80.Children.toArray(children).filter(import_react80.isValidElement);
12585
+ return import_react82.Children.toArray(children).filter(import_react82.isValidElement);
12543
12586
  }
12544
12587
  function passIndexPropToProgressTrackerItem(children) {
12545
- return import_react80.Children.map(
12588
+ return import_react82.Children.map(
12546
12589
  children,
12547
- (item, index) => (0, import_react80.cloneElement)(item, {
12590
+ (item, index) => (0, import_react82.cloneElement)(item, {
12548
12591
  ...item.props,
12549
12592
  index
12550
12593
  })
@@ -12561,7 +12604,7 @@ var texts24 = createTexts({
12561
12604
  });
12562
12605
 
12563
12606
  // src/components/ProgressBar/ProgressBar.tsx
12564
- var import_react81 = require("react");
12607
+ var import_react83 = require("react");
12565
12608
 
12566
12609
  // src/components/ProgressBar/ProgressBar.module.css
12567
12610
  var ProgressBar_default = {
@@ -12590,7 +12633,7 @@ var ProgressBar = ({
12590
12633
  style,
12591
12634
  ...rest
12592
12635
  }) => {
12593
- const generatedId = (0, import_react81.useId)();
12636
+ const generatedId = (0, import_react83.useId)();
12594
12637
  const uniqueId = id != null ? id : `${generatedId}-searchInput`;
12595
12638
  const hasErrorMessage = !!errorMessage;
12596
12639
  const hasTip = !!tip;
@@ -12645,13 +12688,13 @@ var ProgressBar = ({
12645
12688
  ProgressBar.displayName = "ProgressBar";
12646
12689
 
12647
12690
  // src/components/Search/Search.tsx
12648
- var import_react84 = require("react");
12691
+ var import_react86 = require("react");
12649
12692
 
12650
12693
  // src/components/Search/AutocompleteSearch.context.tsx
12651
- var import_react82 = require("react");
12652
- var AutocompleteSearchContext = (0, import_react82.createContext)({});
12694
+ var import_react84 = require("react");
12695
+ var AutocompleteSearchContext = (0, import_react84.createContext)({});
12653
12696
  var useAutocompleteSearch = () => {
12654
- return (0, import_react82.useContext)(AutocompleteSearchContext);
12697
+ return (0, import_react84.useContext)(AutocompleteSearchContext);
12655
12698
  };
12656
12699
 
12657
12700
  // src/components/Search/Search.module.css
@@ -12671,7 +12714,7 @@ var typographyTypes2 = {
12671
12714
  };
12672
12715
 
12673
12716
  // src/components/Search/SearchSuggestionItem.tsx
12674
- var import_react83 = require("react");
12717
+ var import_react85 = require("react");
12675
12718
  var import_jsx_runtime298 = require("react/jsx-runtime");
12676
12719
  var SearchSuggestionItem = ({
12677
12720
  focus,
@@ -12679,9 +12722,9 @@ var SearchSuggestionItem = ({
12679
12722
  ref,
12680
12723
  ...rest
12681
12724
  }) => {
12682
- const itemRef = (0, import_react83.useRef)(null);
12725
+ const itemRef = (0, import_react85.useRef)(null);
12683
12726
  const combinedRef = useCombinedRef(ref, itemRef);
12684
- (0, import_react83.useEffect)(() => {
12727
+ (0, import_react85.useEffect)(() => {
12685
12728
  var _a;
12686
12729
  if (focus) {
12687
12730
  (_a = itemRef.current) == null ? void 0 : _a.focus();
@@ -12825,7 +12868,7 @@ var Search = ({
12825
12868
  ...rest
12826
12869
  }) => {
12827
12870
  var _a;
12828
- const generatedId = (0, import_react84.useId)();
12871
+ const generatedId = (0, import_react86.useId)();
12829
12872
  const uniqueId = id != null ? id : `${generatedId}-searchInput`;
12830
12873
  const tipId = derivativeIdGenerator(uniqueId, "tip");
12831
12874
  const suggestionsId = derivativeIdGenerator(uniqueId, "suggestions");
@@ -12834,7 +12877,7 @@ var Search = ({
12834
12877
  "suggestions-description"
12835
12878
  );
12836
12879
  const { t } = useTranslation();
12837
- const [hasValue, setHasValue] = (0, import_react84.useState)(!!value);
12880
+ const [hasValue, setHasValue] = (0, import_react86.useState)(!!value);
12838
12881
  const context = useAutocompleteSearch();
12839
12882
  const combinedRef = context.inputRef ? useCombinedRef(context.inputRef, ref) : ref;
12840
12883
  const handleChange = (e) => {
@@ -12987,7 +13030,7 @@ var texts26 = createTexts({
12987
13030
  });
12988
13031
 
12989
13032
  // src/components/Search/SearchAutocompleteWrapper.tsx
12990
- var import_react85 = require("react");
13033
+ var import_react87 = require("react");
12991
13034
  var import_jsx_runtime301 = require("react/jsx-runtime");
12992
13035
  var SearchAutocompleteWrapper = (props) => {
12993
13036
  const {
@@ -12999,12 +13042,12 @@ var SearchAutocompleteWrapper = (props) => {
12999
13042
  onSuggestionSelection,
13000
13043
  children
13001
13044
  } = props;
13002
- const [inputValue, setInputValue] = (0, import_react85.useState)(value != null ? value : "");
13003
- const [suggestions, setSuggestions] = (0, import_react85.useState)([]);
13004
- const [showSuggestions, setShowSuggestions] = (0, import_react85.useState)(false);
13045
+ const [inputValue, setInputValue] = (0, import_react87.useState)(value != null ? value : "");
13046
+ const [suggestions, setSuggestions] = (0, import_react87.useState)([]);
13047
+ const [showSuggestions, setShowSuggestions] = (0, import_react87.useState)(false);
13005
13048
  const closeSuggestions = () => showSuggestions === true && setShowSuggestions(false);
13006
13049
  const openSuggestions = () => showSuggestions === false && setShowSuggestions(true);
13007
- (0, import_react85.useEffect)(() => {
13050
+ (0, import_react87.useEffect)(() => {
13008
13051
  if (suggestions.length > 0) {
13009
13052
  openSuggestions();
13010
13053
  } else {
@@ -13049,8 +13092,8 @@ var SearchAutocompleteWrapper = (props) => {
13049
13092
  const handleSetInputValue = (value2) => {
13050
13093
  setInputValue(value2 != null ? value2 : "");
13051
13094
  };
13052
- const inputRef = (0, import_react85.useRef)(null);
13053
- const suggestionsRef = (0, import_react85.useRef)(null);
13095
+ const inputRef = (0, import_react87.useRef)(null);
13096
+ const suggestionsRef = (0, import_react87.useRef)(null);
13054
13097
  useOnClickOutside([inputRef.current, suggestionsRef.current], () => {
13055
13098
  closeSuggestions();
13056
13099
  });
@@ -13132,7 +13175,7 @@ var SkipToContent = ({
13132
13175
  SkipToContent.displayName = "SkipToContent";
13133
13176
 
13134
13177
  // src/components/SplitButton/SplitButton.tsx
13135
- var import_react86 = require("react");
13178
+ var import_react88 = require("react");
13136
13179
 
13137
13180
  // src/components/SplitButton/SplitButton.module.css
13138
13181
  var SplitButton_default = {
@@ -13153,7 +13196,7 @@ var SplitButton = ({
13153
13196
  ...rest
13154
13197
  }) => {
13155
13198
  const { t } = useTranslation();
13156
- const [isOpen, setIsOpen] = (0, import_react86.useState)(false);
13199
+ const [isOpen, setIsOpen] = (0, import_react88.useState)(false);
13157
13200
  const buttonStyleProps = {
13158
13201
  purpose,
13159
13202
  size: size2
@@ -13199,15 +13242,15 @@ var texts27 = createTexts({
13199
13242
  });
13200
13243
 
13201
13244
  // src/components/Table/collapsible/CollapsibleRow.tsx
13202
- var import_react90 = require("react");
13245
+ var import_react92 = require("react");
13203
13246
 
13204
13247
  // src/components/Table/collapsible/Table.context.tsx
13205
- var import_react87 = require("react");
13206
- var CollapsibleTableContext = (0, import_react87.createContext)({
13248
+ var import_react89 = require("react");
13249
+ var CollapsibleTableContext = (0, import_react89.createContext)({
13207
13250
  headerValues: [],
13208
13251
  definingColumnIndex: [0]
13209
13252
  });
13210
- var useCollapsibleTableContext = () => (0, import_react87.useContext)(CollapsibleTableContext);
13253
+ var useCollapsibleTableContext = () => (0, import_react89.useContext)(CollapsibleTableContext);
13211
13254
 
13212
13255
  // src/components/Table/normal/Body.tsx
13213
13256
  var import_jsx_runtime305 = require("react/jsx-runtime");
@@ -13215,12 +13258,12 @@ var Body = (props) => /* @__PURE__ */ (0, import_jsx_runtime305.jsx)("tbody", {
13215
13258
  Body.displayName = "Table.Body";
13216
13259
 
13217
13260
  // src/components/Table/normal/Head.tsx
13218
- var import_react88 = require("react");
13261
+ var import_react90 = require("react");
13219
13262
  var import_jsx_runtime306 = require("react/jsx-runtime");
13220
13263
  var Head = ({ children, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)("thead", { ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(HeadContext, { value: true, children }) });
13221
- var HeadContext = (0, import_react88.createContext)(false);
13264
+ var HeadContext = (0, import_react90.createContext)(false);
13222
13265
  function useIsInTableHead() {
13223
- const isInTableHead = (0, import_react88.useContext)(HeadContext);
13266
+ const isInTableHead = (0, import_react90.useContext)(HeadContext);
13224
13267
  return isInTableHead;
13225
13268
  }
13226
13269
 
@@ -13397,26 +13440,26 @@ var Table = ({
13397
13440
  Table.displayName = "Table";
13398
13441
 
13399
13442
  // src/components/Table/normal/TableWrapper.tsx
13400
- var import_react89 = require("react");
13443
+ var import_react91 = require("react");
13401
13444
  var import_jsx_runtime312 = require("react/jsx-runtime");
13402
13445
  var TableWrapper = ({ className, ...rest }) => {
13403
- const themeContext = (0, import_react89.useContext)(ThemeContext);
13446
+ const themeContext = (0, import_react91.useContext)(ThemeContext);
13404
13447
  const container2 = themeContext == null ? void 0 : themeContext.el;
13405
13448
  const containerWidth = container2 ? container2.clientWidth : 0;
13406
- const [overflowX, setOverflowX] = (0, import_react89.useState)(false);
13407
- const [themeContainerWidth, setThemeContainerWidth] = (0, import_react89.useState)(containerWidth);
13449
+ const [overflowX, setOverflowX] = (0, import_react91.useState)(false);
13450
+ const [themeContainerWidth, setThemeContainerWidth] = (0, import_react91.useState)(containerWidth);
13408
13451
  function isOverflowingX(event) {
13409
13452
  return event.offsetWidth < event.scrollWidth;
13410
13453
  }
13411
- const wrapperRef = (0, import_react89.useRef)(null);
13412
- (0, import_react89.useEffect)(() => {
13454
+ const wrapperRef = (0, import_react91.useRef)(null);
13455
+ (0, import_react91.useEffect)(() => {
13413
13456
  if ((wrapperRef == null ? void 0 : wrapperRef.current) && isOverflowingX(wrapperRef.current)) {
13414
13457
  setOverflowX(true);
13415
13458
  return;
13416
13459
  }
13417
13460
  setOverflowX(false);
13418
13461
  }, [themeContainerWidth]);
13419
- (0, import_react89.useEffect)(() => {
13462
+ (0, import_react91.useEffect)(() => {
13420
13463
  function handleResize() {
13421
13464
  setThemeContainerWidth(containerWidth);
13422
13465
  }
@@ -13465,8 +13508,8 @@ var CollapsibleRow = ({
13465
13508
  const isInHead = useIsInTableHead();
13466
13509
  const type = _type != null ? _type : isInHead ? "head" : "body";
13467
13510
  const { isCollapsed, headerValues, definingColumnIndex } = useCollapsibleTableContext();
13468
- const [childrenCollapsed, setChildrenCollapsed] = (0, import_react90.useState)(true);
13469
- (0, import_react90.useEffect)(() => {
13511
+ const [childrenCollapsed, setChildrenCollapsed] = (0, import_react92.useState)(true);
13512
+ (0, import_react92.useEffect)(() => {
13470
13513
  if (!isCollapsed) setChildrenCollapsed(true);
13471
13514
  }, [isCollapsed]);
13472
13515
  const rowProps = (isOpenCollapsibleHeader) => {
@@ -13484,7 +13527,7 @@ var CollapsibleRow = ({
13484
13527
  const collapsedHeaderValues = headerValues.filter(
13485
13528
  (column, index) => definingColumnIndex.indexOf(index) === -1
13486
13529
  );
13487
- const childrenArray = import_react90.Children.toArray(children);
13530
+ const childrenArray = import_react92.Children.toArray(children);
13488
13531
  const collapsedChildren = childrenArray.filter(
13489
13532
  (column, index) => definingColumnIndex.indexOf(index) === -1
13490
13533
  );
@@ -13493,9 +13536,9 @@ var CollapsibleRow = ({
13493
13536
  const collapsedRenderedChildren = isCollapsed && collapsedHeaderValues.length > 0 ? collapsedChildren.map(function(child, index) {
13494
13537
  const id = derivativeIdGenerator(prefix2, index.toString());
13495
13538
  collapsibleIds.push(id);
13496
- return /* @__PURE__ */ (0, import_jsx_runtime313.jsxs)(import_react90.Fragment, { children: [
13539
+ return /* @__PURE__ */ (0, import_jsx_runtime313.jsxs)(import_react92.Fragment, { children: [
13497
13540
  /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
13498
- (0, import_react90.isValidElement)(child) && (0, import_react90.cloneElement)(child, {
13541
+ (0, import_react92.isValidElement)(child) && (0, import_react92.cloneElement)(child, {
13499
13542
  collapsibleProps: { isCollapsibleChild: true }
13500
13543
  })
13501
13544
  ] }, `DL-${index}`);
@@ -13591,11 +13634,11 @@ var CollapsibleTable2 = CollapsibleTable;
13591
13634
  CollapsibleTable2.Row = CollapsibleRow;
13592
13635
 
13593
13636
  // src/components/Tabs/AddTabButton.tsx
13594
- var import_react93 = require("react");
13637
+ var import_react95 = require("react");
13595
13638
 
13596
13639
  // src/components/Tabs/Tabs.context.tsx
13597
- var import_react91 = require("react");
13598
- var TabsContext = (0, import_react91.createContext)({
13640
+ var import_react93 = require("react");
13641
+ var TabsContext = (0, import_react93.createContext)({
13599
13642
  activeTab: 0,
13600
13643
  tabsId: "",
13601
13644
  size: "small",
@@ -13607,7 +13650,7 @@ var TabsContext = (0, import_react91.createContext)({
13607
13650
  tabContentDirection: "row",
13608
13651
  addTabButtonProps: void 0
13609
13652
  });
13610
- var useTabsContext = () => (0, import_react91.useContext)(TabsContext);
13653
+ var useTabsContext = () => (0, import_react93.useContext)(TabsContext);
13611
13654
 
13612
13655
  // src/components/Tabs/Tabs.module.css
13613
13656
  var Tabs_default = {
@@ -13625,9 +13668,9 @@ var Tabs_default = {
13625
13668
  };
13626
13669
 
13627
13670
  // src/components/Tabs/TabWidthContext.tsx
13628
- var import_react92 = require("react");
13671
+ var import_react94 = require("react");
13629
13672
  var import_jsx_runtime315 = require("react/jsx-runtime");
13630
- var TabContext = (0, import_react92.createContext)(null);
13673
+ var TabContext = (0, import_react94.createContext)(null);
13631
13674
  function TabWidthContextProvider({
13632
13675
  children,
13633
13676
  onChangeWidths
@@ -13656,8 +13699,8 @@ function TabWidthContextProvider({
13656
13699
  );
13657
13700
  }
13658
13701
  function useSetTabWidth(index, width) {
13659
- const context = (0, import_react92.useContext)(TabContext);
13660
- (0, import_react92.useLayoutEffect)(() => {
13702
+ const context = (0, import_react94.useContext)(TabContext);
13703
+ (0, import_react94.useLayoutEffect)(() => {
13661
13704
  context == null ? void 0 : context.updateWidth(index, width);
13662
13705
  return () => context == null ? void 0 : context.removeTab(index);
13663
13706
  }, [index, width]);
@@ -13674,7 +13717,7 @@ var AddTabButton = ({
13674
13717
  ...rest
13675
13718
  }) => {
13676
13719
  useSetTabWidth(index, width);
13677
- const buttonRef = (0, import_react93.useRef)(null);
13720
+ const buttonRef = (0, import_react95.useRef)(null);
13678
13721
  const combinedRef = useCombinedRef(ref, buttonRef);
13679
13722
  const { tabContentDirection, size: size2 } = useTabsContext();
13680
13723
  return /* @__PURE__ */ (0, import_jsx_runtime316.jsxs)(
@@ -13699,7 +13742,7 @@ var AddTabButton = ({
13699
13742
  AddTabButton.displayName = "AddTabButton";
13700
13743
 
13701
13744
  // src/components/Tabs/Tabs.tsx
13702
- var import_react94 = require("react");
13745
+ var import_react96 = require("react");
13703
13746
  var import_jsx_runtime317 = require("react/jsx-runtime");
13704
13747
  var TABS_SIZES = createSizes("small", "medium");
13705
13748
  var Tabs = ({
@@ -13715,17 +13758,17 @@ var Tabs = ({
13715
13758
  htmlProps,
13716
13759
  ...rest
13717
13760
  }) => {
13718
- const generatedId = (0, import_react94.useId)();
13761
+ const generatedId = (0, import_react96.useId)();
13719
13762
  const uniqueId = id != null ? id : `${generatedId}-tabs`;
13720
- const [thisActiveTab, setActiveTab] = (0, import_react94.useState)(activeTab != null ? activeTab : 0);
13721
- const [hasTabFocus, setHasTabFocus] = (0, import_react94.useState)(false);
13722
- const tabListRef = (0, import_react94.useRef)(null);
13723
- const tabPanelsRef = (0, import_react94.useRef)(null);
13763
+ const [thisActiveTab, setActiveTab] = (0, import_react96.useState)(activeTab != null ? activeTab : 0);
13764
+ const [hasTabFocus, setHasTabFocus] = (0, import_react96.useState)(false);
13765
+ const tabListRef = (0, import_react96.useRef)(null);
13766
+ const tabPanelsRef = (0, import_react96.useRef)(null);
13724
13767
  const handleTabChange = (index) => {
13725
13768
  setActiveTab(index);
13726
13769
  onChange == null ? void 0 : onChange(index);
13727
13770
  };
13728
- (0, import_react94.useEffect)(() => {
13771
+ (0, import_react96.useEffect)(() => {
13729
13772
  if (activeTab !== void 0 && activeTab !== thisActiveTab) {
13730
13773
  setActiveTab(activeTab);
13731
13774
  }
@@ -13759,7 +13802,7 @@ var Tabs = ({
13759
13802
  Tabs.displayName = "Tabs";
13760
13803
 
13761
13804
  // src/components/Tabs/Tab.tsx
13762
- var import_react95 = require("react");
13805
+ var import_react97 = require("react");
13763
13806
  var import_jsx_runtime318 = require("react/jsx-runtime");
13764
13807
  var Tab = ({
13765
13808
  active = false,
@@ -13778,18 +13821,18 @@ var Tab = ({
13778
13821
  ...rest
13779
13822
  }) => {
13780
13823
  useSetTabWidth(index, width);
13781
- const itemRef = (0, import_react95.useRef)(null);
13824
+ const itemRef = (0, import_react97.useRef)(null);
13782
13825
  const combinedRef = useCombinedRef(ref, itemRef);
13783
13826
  const { tabContentDirection, size: size2 } = useTabsContext();
13784
13827
  const { type = "button", ...restHtmlProps } = htmlProps;
13785
13828
  const fixedHtmlProps = { type, ...restHtmlProps };
13786
- (0, import_react95.useEffect)(() => {
13829
+ (0, import_react97.useEffect)(() => {
13787
13830
  var _a;
13788
13831
  if (focus) {
13789
13832
  (_a = itemRef.current) == null ? void 0 : _a.focus();
13790
13833
  }
13791
13834
  }, [focus]);
13792
- const handleSelect = (0, import_react95.useCallback)(() => {
13835
+ const handleSelect = (0, import_react97.useCallback)(() => {
13793
13836
  if (setFocus && index) {
13794
13837
  setFocus(index);
13795
13838
  }
@@ -13835,7 +13878,7 @@ var Tab = ({
13835
13878
  Tab.displayName = "Tab";
13836
13879
 
13837
13880
  // src/components/Tabs/TabList.tsx
13838
- var import_react96 = require("react");
13881
+ var import_react98 = require("react");
13839
13882
  var import_jsx_runtime319 = require("react/jsx-runtime");
13840
13883
  var TabList = ({
13841
13884
  children,
@@ -13855,15 +13898,15 @@ var TabList = ({
13855
13898
  addTabButtonProps
13856
13899
  } = useTabsContext();
13857
13900
  const uniqueId = id != null ? id : `${tabsId}-tablist`;
13858
- const childrenArray = import_react96.Children.toArray(children).length;
13901
+ const childrenArray = import_react98.Children.toArray(children).length;
13859
13902
  const [focus, setFocus] = useRoveFocus(childrenArray, hasTabFocus, "row");
13860
13903
  const combinedRef = useCombinedRef(ref, tabListRef);
13861
13904
  const hasButton = addTabButtonProps ? true : false;
13862
- const tabListChildren = import_react96.Children ? import_react96.Children.map(children, (child, index) => {
13905
+ const tabListChildren = import_react98.Children ? import_react98.Children.map(children, (child, index) => {
13863
13906
  const handleThisTabChange = () => {
13864
13907
  handleTabChange(index);
13865
13908
  };
13866
- return (0, import_react96.isValidElement)(child) && (0, import_react96.cloneElement)(child, {
13909
+ return (0, import_react98.isValidElement)(child) && (0, import_react98.cloneElement)(child, {
13867
13910
  id: `${tabsId}-tab-${index}`,
13868
13911
  htmlProps: {
13869
13912
  ...child.props.htmlProps,
@@ -13876,7 +13919,7 @@ var TabList = ({
13876
13919
  onClick: combineHandlers(handleThisTabChange, child.props.onClick)
13877
13920
  });
13878
13921
  }) : [];
13879
- const [widths, setWidths] = (0, import_react96.useState)([]);
13922
+ const [widths, setWidths] = (0, import_react98.useState)([]);
13880
13923
  const handleOnFocus = (event) => {
13881
13924
  setHasTabFocus(true);
13882
13925
  onFocus == null ? void 0 : onFocus(event);
@@ -13951,14 +13994,14 @@ var TabPanel = ({
13951
13994
  TabPanel.displayName = "TabPanel";
13952
13995
 
13953
13996
  // src/components/Tabs/TabPanels.tsx
13954
- var import_react97 = require("react");
13997
+ var import_react99 = require("react");
13955
13998
  var import_jsx_runtime321 = require("react/jsx-runtime");
13956
13999
  var TabPanels = ({ children, ref, ...rest }) => {
13957
14000
  const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
13958
14001
  const combinedRef = useCombinedRef(ref, tabPanelsRef);
13959
- const panelChildren = import_react97.Children.map(children, (child, index) => {
14002
+ const panelChildren = import_react99.Children.map(children, (child, index) => {
13960
14003
  const active = index === activeTab;
13961
- return (0, import_react97.isValidElement)(child) && (0, import_react97.cloneElement)(child, {
14004
+ return (0, import_react99.isValidElement)(child) && (0, import_react99.cloneElement)(child, {
13962
14005
  id: `${tabsId}-panel-${index}`,
13963
14006
  active,
13964
14007
  htmlProps: {
@@ -14033,7 +14076,7 @@ var Tag = ({
14033
14076
  Tag.displayName = "Tag";
14034
14077
 
14035
14078
  // src/components/TextInput/TextInput.tsx
14036
- var import_react98 = require("react");
14079
+ var import_react100 = require("react");
14037
14080
 
14038
14081
  // src/components/TextInput/TextInput.module.css
14039
14082
  var TextInput_default = {
@@ -14079,12 +14122,12 @@ var TextInput = ({
14079
14122
  ref,
14080
14123
  ...rest
14081
14124
  }) => {
14082
- const [text, setText] = (0, import_react98.useState)(getDefaultText(value, defaultValue));
14083
- const prefixRef = (0, import_react98.useRef)(null);
14084
- const suffixRef = (0, import_react98.useRef)(null);
14085
- const [prefixLength, setPrefixLength] = (0, import_react98.useState)(0);
14086
- const [suffixLength, setSuffixLength] = (0, import_react98.useState)(0);
14087
- (0, import_react98.useLayoutEffect)(() => {
14125
+ const [text, setText] = (0, import_react100.useState)(getDefaultText(value, defaultValue));
14126
+ const prefixRef = (0, import_react100.useRef)(null);
14127
+ const suffixRef = (0, import_react100.useRef)(null);
14128
+ const [prefixLength, setPrefixLength] = (0, import_react100.useState)(0);
14129
+ const [suffixLength, setSuffixLength] = (0, import_react100.useState)(0);
14130
+ (0, import_react100.useLayoutEffect)(() => {
14088
14131
  requestAnimationFrame(() => {
14089
14132
  if (prefixRef.current) {
14090
14133
  setPrefixLength(prefixRef.current.offsetWidth);
@@ -14100,7 +14143,7 @@ var TextInput = ({
14100
14143
  onChange(event);
14101
14144
  }
14102
14145
  };
14103
- const generatedId = (0, import_react98.useId)();
14146
+ const generatedId = (0, import_react100.useId)();
14104
14147
  const uniqueId = id != null ? id : `${generatedId}-textInput`;
14105
14148
  const hasErrorMessage = !!errorMessage;
14106
14149
  const hasTip = !!tip;
@@ -14265,7 +14308,7 @@ var TextInput = ({
14265
14308
  TextInput.displayName = "TextInput";
14266
14309
 
14267
14310
  // src/components/Toggle/Toggle.tsx
14268
- var import_react99 = require("react");
14311
+ var import_react101 = require("react");
14269
14312
 
14270
14313
  // src/components/Toggle/Toggle.module.css
14271
14314
  var Toggle_default = {
@@ -14300,7 +14343,7 @@ var Toggle = ({
14300
14343
  ...rest
14301
14344
  }) => {
14302
14345
  const { t } = useTranslation();
14303
- const generatedId = (0, import_react99.useId)();
14346
+ const generatedId = (0, import_react101.useId)();
14304
14347
  const uniqueId = id != null ? id : `${generatedId}-toggle`;
14305
14348
  const iconSize = size2 === "large" ? "medium" : "small";
14306
14349
  const [checked, setChecked] = useControllableState({
@@ -14370,14 +14413,14 @@ var Toggle = ({
14370
14413
  Toggle.displayName = "Toggle";
14371
14414
 
14372
14415
  // src/components/ToggleBar/ToggleBar.tsx
14373
- var import_react101 = require("react");
14416
+ var import_react103 = require("react");
14374
14417
 
14375
14418
  // src/components/ToggleBar/ToggleBar.context.tsx
14376
- var import_react100 = require("react");
14377
- var ToggleBarContext = (0, import_react100.createContext)({
14419
+ var import_react102 = require("react");
14420
+ var ToggleBarContext = (0, import_react102.createContext)({
14378
14421
  size: "medium"
14379
14422
  });
14380
- var useToggleBarContext = () => (0, import_react100.useContext)(ToggleBarContext);
14423
+ var useToggleBarContext = () => (0, import_react102.useContext)(ToggleBarContext);
14381
14424
 
14382
14425
  // src/components/ToggleBar/ToggleBar.module.css
14383
14426
  var ToggleBar_default = {
@@ -14410,9 +14453,9 @@ var ToggleBar = (props) => {
14410
14453
  id,
14411
14454
  ...rest
14412
14455
  } = props;
14413
- const generatedId = (0, import_react101.useId)();
14456
+ const generatedId = (0, import_react103.useId)();
14414
14457
  const uniqueId = id != null ? id : `${generatedId}-ToggleBar`;
14415
- const [groupValue, setGroupValue] = (0, import_react101.useState)(value);
14458
+ const [groupValue, setGroupValue] = (0, import_react103.useState)(value);
14416
14459
  const handleChange = combineHandlers(
14417
14460
  (e) => setGroupValue(e.target.value),
14418
14461
  (e) => onChange && onChange(e, e.target.value)
@@ -14447,7 +14490,7 @@ var ToggleBar = (props) => {
14447
14490
  ToggleBar.displayName = "ToggleBar";
14448
14491
 
14449
14492
  // src/components/ToggleBar/ToggleRadio.tsx
14450
- var import_react102 = require("react");
14493
+ var import_react104 = require("react");
14451
14494
  var import_jsx_runtime326 = require("react/jsx-runtime");
14452
14495
  var typographyTypes3 = {
14453
14496
  large: "bodyLarge",
@@ -14479,7 +14522,7 @@ var ToggleRadio = ({
14479
14522
  id,
14480
14523
  ...rest
14481
14524
  }) => {
14482
- const generatedId = (0, import_react102.useId)();
14525
+ const generatedId = (0, import_react104.useId)();
14483
14526
  const uniqueId = id != null ? id : `${generatedId}-ToggleRadio`;
14484
14527
  const group = useToggleBarContext();
14485
14528
  const handleChange = (event) => {
@@ -14528,7 +14571,7 @@ var ToggleRadio = ({
14528
14571
  ToggleRadio.displayName = "ToggleRadio";
14529
14572
 
14530
14573
  // src/components/ToggleButton/ToggleButton.tsx
14531
- var import_react103 = require("react");
14574
+ var import_react105 = require("react");
14532
14575
 
14533
14576
  // src/components/ToggleButton/ToggleButton.module.css
14534
14577
  var ToggleButton_default = {
@@ -14549,7 +14592,7 @@ var ToggleButton = ({
14549
14592
  htmlProps,
14550
14593
  ...rest
14551
14594
  }) => {
14552
- const generatedId = (0, import_react103.useId)();
14595
+ const generatedId = (0, import_react105.useId)();
14553
14596
  const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
14554
14597
  const hasIcon = !!icon;
14555
14598
  return /* @__PURE__ */ (0, import_jsx_runtime327.jsxs)(Box, { as: "label", htmlFor: uniqueId, width: "fit-content", children: [
@@ -14587,7 +14630,7 @@ var ToggleButton = ({
14587
14630
  ToggleButton.displayName = "ToggleButton";
14588
14631
 
14589
14632
  // src/components/ToggleButton/ToggleButtonGroup.tsx
14590
- var import_react104 = require("react");
14633
+ var import_react106 = require("react");
14591
14634
  var import_jsx_runtime328 = require("react/jsx-runtime");
14592
14635
  var ToggleButtonGroup = (props) => {
14593
14636
  const {
@@ -14600,7 +14643,7 @@ var ToggleButtonGroup = (props) => {
14600
14643
  htmlProps,
14601
14644
  ...rest
14602
14645
  } = props;
14603
- const generatedId = (0, import_react104.useId)();
14646
+ const generatedId = (0, import_react106.useId)();
14604
14647
  const uniqueLabelId = labelId != null ? labelId : `${generatedId}-ToggleButtonGroupLabel`;
14605
14648
  return /* @__PURE__ */ (0, import_jsx_runtime328.jsxs)(
14606
14649
  "div",