@norges-domstoler/dds-components 0.0.0-dev-20250620065347 → 0.0.0-dev-20250620121229

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
@@ -9609,7 +9609,7 @@ var ModalActions = (props) => /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(Box
9609
9609
  ModalActions.displayName = "ModalActions";
9610
9610
 
9611
9611
  // src/components/Pagination/Pagination.tsx
9612
- var import_react71 = require("react");
9612
+ var import_react72 = require("react");
9613
9613
 
9614
9614
  // src/components/Pagination/Pagination.module.css
9615
9615
  var Pagination_default = {
@@ -9654,7 +9654,7 @@ function PaginationGenerator(pagesAmount, activePage) {
9654
9654
  }
9655
9655
 
9656
9656
  // src/components/Select/Select.tsx
9657
- var import_react69 = require("react");
9657
+ var import_react70 = require("react");
9658
9658
  var import_react_select2 = __toESM(require("react-select"));
9659
9659
 
9660
9660
  // src/components/Select/Select.module.css
@@ -9934,6 +9934,7 @@ var getCustomStyles = (size2, hasError, hasIcon, isReadOnly) => ({
9934
9934
  });
9935
9935
 
9936
9936
  // src/components/Select/SelectComponents.tsx
9937
+ var import_react69 = require("react");
9937
9938
  var import_react_select = require("react-select");
9938
9939
  var import_jsx_runtime283 = require("react/jsx-runtime");
9939
9940
  var {
@@ -9984,35 +9985,45 @@ var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ (0, impo
9984
9985
  "aria-describedby": ariaDescribedby
9985
9986
  }
9986
9987
  );
9987
- var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
9988
- const { className, ...rest } = props;
9989
- return /* @__PURE__ */ (0, import_jsx_runtime283.jsx)("div", { "data-testid": dataTestId ? dataTestId + "-control" : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime283.jsxs)(
9990
- Control,
9991
- {
9992
- ...rest,
9993
- className: cn(
9994
- className,
9995
- Select_default.control,
9996
- rest.isDisabled && Select_default["control--disabled"],
9997
- readOnly && Select_default["control--readonly"]
9998
- ),
9999
- children: [
10000
- icon && /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(
10001
- Icon,
10002
- {
10003
- icon,
10004
- iconSize: getFormInputIconSize(componentSize),
10005
- className: cn(
10006
- Input_default["input-group__absolute-element"],
10007
- Select_default[`icon--${componentSize}`]
10008
- )
10009
- }
9988
+ function createDDSControl(componentSize, readOnly, icon, dataTestId) {
9989
+ return function DDSControlWrapper(props) {
9990
+ const { className, children, innerProps, ...rest } = props;
9991
+ return /* @__PURE__ */ (0, import_jsx_runtime283.jsxs)(
9992
+ Control,
9993
+ {
9994
+ ...rest,
9995
+ innerProps: {
9996
+ ...innerProps,
9997
+ "data-testid": dataTestId ? dataTestId + "-control" : void 0
9998
+ },
9999
+ className: cn(
10000
+ className,
10001
+ Select_default.control,
10002
+ rest.isDisabled && Select_default["control--disabled"],
10003
+ readOnly && Select_default["control--readonly"]
10010
10004
  ),
10011
- props.children
10012
- ]
10013
- }
10014
- ) });
10015
- };
10005
+ children: [
10006
+ icon && /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(
10007
+ Icon,
10008
+ {
10009
+ icon,
10010
+ iconSize: getFormInputIconSize(componentSize),
10011
+ className: cn(
10012
+ Input_default["input-group__absolute-element"],
10013
+ Select_default[`icon--${componentSize}`]
10014
+ )
10015
+ }
10016
+ ),
10017
+ children
10018
+ ]
10019
+ }
10020
+ );
10021
+ };
10022
+ }
10023
+ var DDSControl = (componentSize, readOnly, icon, dataTestId) => (0, import_react69.useMemo)(
10024
+ () => createDDSControl(componentSize, readOnly, icon, dataTestId),
10025
+ [componentSize, readOnly, icon, dataTestId]
10026
+ );
10016
10027
 
10017
10028
  // src/components/Select/Select.tsx
10018
10029
  var import_jsx_runtime284 = require("react/jsx-runtime");
@@ -10046,12 +10057,12 @@ function Select({
10046
10057
  ref,
10047
10058
  ...rest
10048
10059
  }) {
10049
- const themeContext = (0, import_react69.useContext)(ThemeContext);
10060
+ const themeContext = (0, import_react70.useContext)(ThemeContext);
10050
10061
  if (!themeContext) {
10051
10062
  throw new Error("Select must be used within a ThemeProvider");
10052
10063
  }
10053
10064
  const portalTarget = menuPortalTarget != null ? menuPortalTarget : themeContext == null ? void 0 : themeContext.el;
10054
- const generatedId = (0, import_react69.useId)();
10065
+ const generatedId = (0, import_react70.useId)();
10055
10066
  const uniqueId = id != null ? id : `${generatedId}-select`;
10056
10067
  const singleValueId = !isMulti ? `${uniqueId}-singleValue` : void 0;
10057
10068
  const hasLabel = !!label;
@@ -10107,7 +10118,7 @@ function Select({
10107
10118
  ClearIndicator: (props) => DDSClearIndicator(props, componentSize),
10108
10119
  DropdownIndicator: (props) => DDSDropdownIndicator(props, componentSize),
10109
10120
  MultiValueRemove: DDSMultiValueRemove,
10110
- Control: (props) => DDSControl(props, componentSize, readOnly, icon, dataTestId)
10121
+ Control: DDSControl(componentSize, readOnly, icon, dataTestId)
10111
10122
  },
10112
10123
  "aria-invalid": hasErrorMessage ? true : void 0,
10113
10124
  required,
@@ -10147,7 +10158,7 @@ function Select({
10147
10158
  Select.displayName = "Select";
10148
10159
 
10149
10160
  // src/components/Select/NativeSelect/NativeSelect.tsx
10150
- var import_react70 = require("react");
10161
+ var import_react71 = require("react");
10151
10162
 
10152
10163
  // src/components/Select/NativeSelect/NativeSelect.module.css
10153
10164
  var NativeSelect_default = {
@@ -10181,7 +10192,7 @@ var NativeSelect = ({
10181
10192
  onMouseDown,
10182
10193
  ...rest
10183
10194
  }) => {
10184
- const generatedId = (0, import_react70.useId)();
10195
+ const generatedId = (0, import_react71.useId)();
10185
10196
  const uniqueId = id != null ? id : `${generatedId}-native-select`;
10186
10197
  const hasErrorMessage = !!errorMessage;
10187
10198
  const hasTip = !!tip;
@@ -10283,8 +10294,8 @@ var Pagination = ({
10283
10294
  ...rest
10284
10295
  }) => {
10285
10296
  const { t } = useTranslation();
10286
- const [activePage, setActivePage] = (0, import_react71.useState)(defaultActivePage);
10287
- const [itemsPerPage, setItemsPerPage] = (0, import_react71.useState)(defaultItemsPerPage);
10297
+ const [activePage, setActivePage] = (0, import_react72.useState)(defaultActivePage);
10298
+ const [itemsPerPage, setItemsPerPage] = (0, import_react72.useState)(defaultItemsPerPage);
10288
10299
  const pagesLength = Math.ceil(itemsAmount / itemsPerPage);
10289
10300
  const items = PaginationGenerator(pagesLength, activePage);
10290
10301
  const onPageChange = (event, page) => {
@@ -10584,7 +10595,7 @@ var texts16 = createTexts({
10584
10595
  });
10585
10596
 
10586
10597
  // src/components/PhoneInput/PhoneInput.tsx
10587
- var import_react72 = require("react");
10598
+ var import_react73 = require("react");
10588
10599
 
10589
10600
  // src/components/PhoneInput/constants.ts
10590
10601
  var COUNTRIES = {
@@ -11045,7 +11056,7 @@ var PhoneInput = ({
11045
11056
  const { t } = useTranslation();
11046
11057
  const tGroupLabel = groupLabel != null ? groupLabel : t(texts17.countryCodeAndPhoneNumber);
11047
11058
  const tSelectLabel = selectLabel != null ? selectLabel : t(texts17.countryCode);
11048
- const generatedId = (0, import_react72.useId)();
11059
+ const generatedId = (0, import_react73.useId)();
11049
11060
  const uniqueId = (_a = props.id) != null ? _a : generatedId;
11050
11061
  const phoneInputId = `${uniqueId}-phone-input`;
11051
11062
  const phoneNumberId = `${uniqueId}-phone-number`;
@@ -11056,27 +11067,27 @@ var PhoneInput = ({
11056
11067
  const hasMessage = hasErrorMessage || hasTip;
11057
11068
  const tipId = derivativeIdGenerator(phoneInputId, "tip");
11058
11069
  const errorMessageId = derivativeIdGenerator(phoneInputId, "errorMessage");
11059
- const [callingCode, setCallingCode] = (0, import_react72.useState)("");
11060
- const [selectedCountryCodeText, setSelectedCountryCodeText] = (0, import_react72.useState)("");
11061
- const [internalValue, setInternalValue] = (0, import_react72.useState)(
11070
+ const [callingCode, setCallingCode] = (0, import_react73.useState)("");
11071
+ const [selectedCountryCodeText, setSelectedCountryCodeText] = (0, import_react73.useState)("");
11072
+ const [internalValue, setInternalValue] = (0, import_react73.useState)(
11062
11073
  defaultValue != null ? defaultValue : {
11063
11074
  countryCode: "",
11064
11075
  phoneNumber: ""
11065
11076
  }
11066
11077
  );
11067
11078
  const isControlled = value !== void 0;
11068
- const [callingCodeWidth, setCallingCodeWidth] = (0, import_react72.useState)(0);
11069
- const callingCodeRef = (0, import_react72.useRef)(null);
11070
- (0, import_react72.useLayoutEffect)(() => {
11079
+ const [callingCodeWidth, setCallingCodeWidth] = (0, import_react73.useState)(0);
11080
+ const callingCodeRef = (0, import_react73.useRef)(null);
11081
+ (0, import_react73.useLayoutEffect)(() => {
11071
11082
  if (callingCodeRef.current) {
11072
11083
  setCallingCodeWidth(callingCodeRef.current.offsetWidth);
11073
11084
  }
11074
11085
  }, [callingCode]);
11075
11086
  const callingCodeInlineStart = callingCodeWidth ? `calc(var(--dds-spacing-x1) + ${callingCodeWidth}px)` : void 0;
11076
- const internalSelectRef = (0, import_react72.useRef)(null);
11087
+ const internalSelectRef = (0, import_react73.useRef)(null);
11077
11088
  const combinedSelectRef = useCombinedRef(selectRef, internalSelectRef);
11078
11089
  const displayedValue = isControlled ? value : internalValue;
11079
- (0, import_react72.useEffect)(() => {
11090
+ (0, import_react73.useEffect)(() => {
11080
11091
  const selectEl = internalSelectRef.current;
11081
11092
  if (selectEl && selectEl.value) {
11082
11093
  const { options, selectedIndex } = selectEl;
@@ -11238,7 +11249,7 @@ var texts17 = createTexts({
11238
11249
  });
11239
11250
 
11240
11251
  // src/components/Popover/Popover.tsx
11241
- var import_react74 = require("react");
11252
+ var import_react75 = require("react");
11242
11253
  var import_react_dom5 = require("react-dom");
11243
11254
 
11244
11255
  // src/components/Popover/Popover.module.css
@@ -11250,9 +11261,9 @@ var Popover_default = {
11250
11261
  };
11251
11262
 
11252
11263
  // src/components/Popover/Popover.context.tsx
11253
- var import_react73 = require("react");
11254
- var PopoverContext = (0, import_react73.createContext)({});
11255
- var usePopoverContext = () => (0, import_react73.useContext)(PopoverContext);
11264
+ var import_react74 = require("react");
11265
+ var PopoverContext = (0, import_react74.createContext)({});
11266
+ var usePopoverContext = () => (0, import_react74.useContext)(PopoverContext);
11256
11267
 
11257
11268
  // src/components/Popover/Popover.tsx
11258
11269
  var import_jsx_runtime288 = require("react/jsx-runtime");
@@ -11282,7 +11293,7 @@ var Popover = ({
11282
11293
  });
11283
11294
  const { maxHeight, maxWidth, minHeight, minWidth, height, width } = sizeProps;
11284
11295
  const context = usePopoverContext();
11285
- const themeContext = (0, import_react74.useContext)(ThemeContext);
11296
+ const themeContext = (0, import_react75.useContext)(ThemeContext);
11286
11297
  const portalTarget = parentElement != null ? parentElement : themeContext == null ? void 0 : themeContext.el;
11287
11298
  const {
11288
11299
  floatStyling: contextFloatStyling,
@@ -11295,7 +11306,7 @@ var Popover = ({
11295
11306
  } = context;
11296
11307
  const { t } = useTranslation();
11297
11308
  const hasContext = !isEmpty(context);
11298
- const generatedId = (0, import_react74.useId)();
11309
+ const generatedId = (0, import_react75.useId)();
11299
11310
  const uniquePopoverId = id != null ? id : `${generatedId}-popover`;
11300
11311
  const [
11301
11312
  popoverId,
@@ -11332,7 +11343,7 @@ var Popover = ({
11332
11343
  anchorEl && anchorEl
11333
11344
  );
11334
11345
  const multiRef = useCombinedRef(ref, popoverRef, floatingRef);
11335
- (0, import_react74.useEffect)(() => {
11346
+ (0, import_react75.useEffect)(() => {
11336
11347
  setFloatOptions && setFloatOptions({ placement, offset });
11337
11348
  }, [placement, offset]);
11338
11349
  useOnClickOutside([popoverRef.current, anchorEl], () => {
@@ -11401,7 +11412,7 @@ var Popover = ({
11401
11412
  Popover.displayName = "Popover";
11402
11413
 
11403
11414
  // src/components/Popover/PopoverGroup.tsx
11404
- var import_react75 = require("react");
11415
+ var import_react76 = require("react");
11405
11416
  var import_jsx_runtime289 = require("react/jsx-runtime");
11406
11417
  var PopoverGroup = ({
11407
11418
  isOpen: propIsOpen,
@@ -11413,12 +11424,12 @@ var PopoverGroup = ({
11413
11424
  popoverId
11414
11425
  }) => {
11415
11426
  var _a;
11416
- const [internalIsOpen, internalSetIsOpen] = (0, import_react75.useState)(isInitiallyOpen);
11427
+ const [internalIsOpen, internalSetIsOpen] = (0, import_react76.useState)(isInitiallyOpen);
11417
11428
  const open = propIsOpen != null ? propIsOpen : internalIsOpen;
11418
11429
  const setOpen = propSetIsOpen != null ? propSetIsOpen : internalSetIsOpen;
11419
- const generatedId = (0, import_react75.useId)();
11430
+ const generatedId = (0, import_react76.useId)();
11420
11431
  const uniquePopoverId = popoverId != null ? popoverId : `${generatedId}-popover`;
11421
- const [floatOptions, setFloatOptions] = (0, import_react75.useState)();
11432
+ const [floatOptions, setFloatOptions] = (0, import_react76.useState)();
11422
11433
  const { refs, styles: positionStyles } = useFloatPosition(null, floatOptions);
11423
11434
  const handleClose = () => {
11424
11435
  setOpen(false);
@@ -11435,10 +11446,10 @@ var PopoverGroup = ({
11435
11446
  handleOpen();
11436
11447
  }
11437
11448
  };
11438
- const buttonRef = (0, import_react75.useRef)(null);
11449
+ const buttonRef = (0, import_react76.useRef)(null);
11439
11450
  const anchorRef = refs.setReference;
11440
11451
  const combinedAnchorRef = useCombinedRef(buttonRef, anchorRef);
11441
- const popoverRef = (0, import_react75.useRef)(null);
11452
+ const popoverRef = (0, import_react76.useRef)(null);
11442
11453
  const floatingRef = refs.setFloating;
11443
11454
  const combinedPopoverRef = useCombinedRef(popoverRef, floatingRef);
11444
11455
  useOnKeyDown(["Esc", "Escape"], () => {
@@ -11454,8 +11465,8 @@ var PopoverGroup = ({
11454
11465
  if (open) handleClose();
11455
11466
  });
11456
11467
  const isAnchorChild = (i) => i === 0;
11457
- const Children7 = import_react75.Children.map(children, (child, childIndex) => {
11458
- return (0, import_react75.isValidElement)(child) && (isAnchorChild(childIndex) ? (0, import_react75.cloneElement)(child, {
11468
+ const Children7 = import_react76.Children.map(children, (child, childIndex) => {
11469
+ return (0, import_react76.isValidElement)(child) && (isAnchorChild(childIndex) ? (0, import_react76.cloneElement)(child, {
11459
11470
  "aria-haspopup": "dialog",
11460
11471
  "aria-controls": uniquePopoverId,
11461
11472
  "aria-expanded": open,
@@ -11482,17 +11493,17 @@ var PopoverGroup = ({
11482
11493
  PopoverGroup.displayName = "PopoverGroup";
11483
11494
 
11484
11495
  // src/components/ProgressTracker/ProgressTracker.tsx
11485
- var import_react78 = require("react");
11496
+ var import_react79 = require("react");
11486
11497
 
11487
11498
  // src/components/ProgressTracker/ProgressTracker.context.tsx
11488
- var import_react76 = require("react");
11489
- var ProgressTrackerContext = (0, import_react76.createContext)(
11499
+ var import_react77 = require("react");
11500
+ var ProgressTrackerContext = (0, import_react77.createContext)(
11490
11501
  {
11491
11502
  activeStep: 0,
11492
11503
  direction: "column"
11493
11504
  }
11494
11505
  );
11495
- var useProgressTrackerContext = () => (0, import_react76.useContext)(ProgressTrackerContext);
11506
+ var useProgressTrackerContext = () => (0, import_react77.useContext)(ProgressTrackerContext);
11496
11507
 
11497
11508
  // src/components/ProgressTracker/ProgressTracker.module.css
11498
11509
  var ProgressTracker_default = {
@@ -11517,7 +11528,7 @@ var ProgressTracker_default = {
11517
11528
  };
11518
11529
 
11519
11530
  // src/components/ProgressTracker/ProgressTrackerItem.tsx
11520
- var import_react77 = require("react");
11531
+ var import_react78 = require("react");
11521
11532
  var import_jsx_runtime290 = require("react/jsx-runtime");
11522
11533
  var toItemState = (active, completed, disabled) => {
11523
11534
  if (disabled) {
@@ -11559,7 +11570,7 @@ var ProgressTrackerItem = (props) => {
11559
11570
  handleStepChange && handleStepChange(index);
11560
11571
  }
11561
11572
  };
11562
- const stepNumberContent = (0, import_react77.useMemo)(() => {
11573
+ const stepNumberContent = (0, import_react78.useMemo)(() => {
11563
11574
  if (completed) {
11564
11575
  return /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(Icon, { icon: CheckIcon, iconSize: "small" });
11565
11576
  }
@@ -11671,17 +11682,17 @@ var ProgressTracker = (() => {
11671
11682
  ...rest
11672
11683
  }) => {
11673
11684
  const { t } = useTranslation();
11674
- const [thisActiveStep, setActiveStep] = (0, import_react78.useState)(activeStep);
11685
+ const [thisActiveStep, setActiveStep] = (0, import_react79.useState)(activeStep);
11675
11686
  const handleChange = (step) => {
11676
11687
  setActiveStep(step);
11677
11688
  onStepChange && onStepChange(step);
11678
11689
  };
11679
- (0, import_react78.useEffect)(() => {
11690
+ (0, import_react79.useEffect)(() => {
11680
11691
  if (activeStep !== void 0 && activeStep != thisActiveStep) {
11681
11692
  setActiveStep(activeStep);
11682
11693
  }
11683
11694
  }, [activeStep, thisActiveStep]);
11684
- const steps = (0, import_react78.useMemo)(() => {
11695
+ const steps = (0, import_react79.useMemo)(() => {
11685
11696
  const validChildren = removeInvalidChildren(children);
11686
11697
  const itemsWithIndex = passIndexPropToProgressTrackerItem(validChildren);
11687
11698
  return itemsWithIndex;
@@ -11726,12 +11737,12 @@ var ProgressTracker = (() => {
11726
11737
  return Res;
11727
11738
  })();
11728
11739
  function removeInvalidChildren(children) {
11729
- return import_react78.Children.toArray(children).filter(import_react78.isValidElement);
11740
+ return import_react79.Children.toArray(children).filter(import_react79.isValidElement);
11730
11741
  }
11731
11742
  function passIndexPropToProgressTrackerItem(children) {
11732
- return import_react78.Children.map(
11743
+ return import_react79.Children.map(
11733
11744
  children,
11734
- (item, index) => (0, import_react78.cloneElement)(item, {
11745
+ (item, index) => (0, import_react79.cloneElement)(item, {
11735
11746
  ...item.props,
11736
11747
  index
11737
11748
  })
@@ -11747,7 +11758,7 @@ var texts19 = createTexts({
11747
11758
  });
11748
11759
 
11749
11760
  // src/components/ProgressBar/ProgressBar.tsx
11750
- var import_react79 = require("react");
11761
+ var import_react80 = require("react");
11751
11762
 
11752
11763
  // src/components/ProgressBar/ProgressBar.module.css
11753
11764
  var ProgressBar_default = {
@@ -11775,7 +11786,7 @@ var ProgressBar = ({
11775
11786
  style,
11776
11787
  ...rest
11777
11788
  }) => {
11778
- const generatedId = (0, import_react79.useId)();
11789
+ const generatedId = (0, import_react80.useId)();
11779
11790
  const uniqueId = id != null ? id : `${generatedId}-searchInput`;
11780
11791
  const hasErrorMessage = !!errorMessage;
11781
11792
  const hasTip = !!tip;
@@ -11831,13 +11842,13 @@ var ProgressBar = ({
11831
11842
  ProgressBar.displayName = "ProgressBar";
11832
11843
 
11833
11844
  // src/components/Search/Search.tsx
11834
- var import_react82 = require("react");
11845
+ var import_react83 = require("react");
11835
11846
 
11836
11847
  // src/components/Search/AutocompleteSearch.context.tsx
11837
- var import_react80 = require("react");
11838
- var AutocompleteSearchContext = (0, import_react80.createContext)({});
11848
+ var import_react81 = require("react");
11849
+ var AutocompleteSearchContext = (0, import_react81.createContext)({});
11839
11850
  var useAutocompleteSearch = () => {
11840
- return (0, import_react80.useContext)(AutocompleteSearchContext);
11851
+ return (0, import_react81.useContext)(AutocompleteSearchContext);
11841
11852
  };
11842
11853
 
11843
11854
  // src/components/Search/Search.module.css
@@ -11881,7 +11892,7 @@ function createEmptyChangeEvent(inputElementId) {
11881
11892
  }
11882
11893
 
11883
11894
  // src/components/Search/SearchSuggestionItem.tsx
11884
- var import_react81 = require("react");
11895
+ var import_react82 = require("react");
11885
11896
  var import_jsx_runtime293 = require("react/jsx-runtime");
11886
11897
  var SearchSuggestionItem = ({
11887
11898
  focus,
@@ -11889,9 +11900,9 @@ var SearchSuggestionItem = ({
11889
11900
  ref,
11890
11901
  ...rest
11891
11902
  }) => {
11892
- const itemRef = (0, import_react81.useRef)(null);
11903
+ const itemRef = (0, import_react82.useRef)(null);
11893
11904
  const combinedRef = useCombinedRef(ref, itemRef);
11894
- (0, import_react81.useEffect)(() => {
11905
+ (0, import_react82.useEffect)(() => {
11895
11906
  var _a;
11896
11907
  if (focus) {
11897
11908
  (_a = itemRef.current) == null ? void 0 : _a.focus();
@@ -12046,7 +12057,7 @@ var Search = ({
12046
12057
  ...rest
12047
12058
  }) => {
12048
12059
  var _a;
12049
- const generatedId = (0, import_react82.useId)();
12060
+ const generatedId = (0, import_react83.useId)();
12050
12061
  const uniqueId = id != null ? id : `${generatedId}-searchInput`;
12051
12062
  const hasLabel = !!label;
12052
12063
  const tipId = derivativeIdGenerator(uniqueId, "tip");
@@ -12056,7 +12067,7 @@ var Search = ({
12056
12067
  "suggestions-description"
12057
12068
  );
12058
12069
  const { t } = useTranslation();
12059
- const [hasValue, setHasValue] = (0, import_react82.useState)(!!value);
12070
+ const [hasValue, setHasValue] = (0, import_react83.useState)(!!value);
12060
12071
  const context = useAutocompleteSearch();
12061
12072
  const combinedRef = context.inputRef ? useCombinedRef(context.inputRef, ref) : ref;
12062
12073
  const handleChange = (e) => {
@@ -12199,7 +12210,7 @@ var texts21 = createTexts({
12199
12210
  });
12200
12211
 
12201
12212
  // src/components/Search/SearchAutocompleteWrapper.tsx
12202
- var import_react83 = require("react");
12213
+ var import_react84 = require("react");
12203
12214
  var import_jsx_runtime296 = require("react/jsx-runtime");
12204
12215
  var SearchAutocompleteWrapper = (props) => {
12205
12216
  const {
@@ -12211,12 +12222,12 @@ var SearchAutocompleteWrapper = (props) => {
12211
12222
  onSuggestionSelection,
12212
12223
  children
12213
12224
  } = props;
12214
- const [inputValue, setInputValue] = (0, import_react83.useState)(value != null ? value : "");
12215
- const [suggestions, setSuggestions] = (0, import_react83.useState)([]);
12216
- const [showSuggestions, setShowSuggestions] = (0, import_react83.useState)(false);
12225
+ const [inputValue, setInputValue] = (0, import_react84.useState)(value != null ? value : "");
12226
+ const [suggestions, setSuggestions] = (0, import_react84.useState)([]);
12227
+ const [showSuggestions, setShowSuggestions] = (0, import_react84.useState)(false);
12217
12228
  const closeSuggestions = () => showSuggestions === true && setShowSuggestions(false);
12218
12229
  const openSuggestions = () => showSuggestions === false && setShowSuggestions(true);
12219
- (0, import_react83.useEffect)(() => {
12230
+ (0, import_react84.useEffect)(() => {
12220
12231
  if (suggestions.length > 0) {
12221
12232
  openSuggestions();
12222
12233
  } else {
@@ -12261,8 +12272,8 @@ var SearchAutocompleteWrapper = (props) => {
12261
12272
  const handleSetInputValue = (value2) => {
12262
12273
  setInputValue(value2 != null ? value2 : "");
12263
12274
  };
12264
- const inputRef = (0, import_react83.useRef)(null);
12265
- const suggestionsRef = (0, import_react83.useRef)(null);
12275
+ const inputRef = (0, import_react84.useRef)(null);
12276
+ const suggestionsRef = (0, import_react84.useRef)(null);
12266
12277
  useOnClickOutside([inputRef.current, suggestionsRef.current], () => {
12267
12278
  closeSuggestions();
12268
12279
  });
@@ -12344,7 +12355,7 @@ var SkipToContent = ({
12344
12355
  SkipToContent.displayName = "SkipToContent";
12345
12356
 
12346
12357
  // src/components/SplitButton/SplitButton.tsx
12347
- var import_react84 = require("react");
12358
+ var import_react85 = require("react");
12348
12359
 
12349
12360
  // src/components/SplitButton/SplitButton.module.css
12350
12361
  var SplitButton_default = {
@@ -12365,7 +12376,7 @@ var SplitButton = ({
12365
12376
  ...rest
12366
12377
  }) => {
12367
12378
  const { t } = useTranslation();
12368
- const [isOpen, setIsOpen] = (0, import_react84.useState)(false);
12379
+ const [isOpen, setIsOpen] = (0, import_react85.useState)(false);
12369
12380
  const buttonStyleProps = {
12370
12381
  purpose,
12371
12382
  size: size2
@@ -12410,15 +12421,15 @@ var texts22 = createTexts({
12410
12421
  });
12411
12422
 
12412
12423
  // src/components/Table/collapsible/CollapsibleRow.tsx
12413
- var import_react88 = require("react");
12424
+ var import_react89 = require("react");
12414
12425
 
12415
12426
  // src/components/Table/collapsible/Table.context.tsx
12416
- var import_react85 = require("react");
12417
- var CollapsibleTableContext = (0, import_react85.createContext)({
12427
+ var import_react86 = require("react");
12428
+ var CollapsibleTableContext = (0, import_react86.createContext)({
12418
12429
  headerValues: [],
12419
12430
  definingColumnIndex: [0]
12420
12431
  });
12421
- var useCollapsibleTableContext = () => (0, import_react85.useContext)(CollapsibleTableContext);
12432
+ var useCollapsibleTableContext = () => (0, import_react86.useContext)(CollapsibleTableContext);
12422
12433
 
12423
12434
  // src/components/Table/normal/Body.tsx
12424
12435
  var import_jsx_runtime300 = require("react/jsx-runtime");
@@ -12426,12 +12437,12 @@ var Body = (props) => /* @__PURE__ */ (0, import_jsx_runtime300.jsx)("tbody", {
12426
12437
  Body.displayName = "Table.Body";
12427
12438
 
12428
12439
  // src/components/Table/normal/Head.tsx
12429
- var import_react86 = require("react");
12440
+ var import_react87 = require("react");
12430
12441
  var import_jsx_runtime301 = require("react/jsx-runtime");
12431
12442
  var Head = ({ children, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime301.jsx)("thead", { ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(HeadContext, { value: true, children }) });
12432
- var HeadContext = (0, import_react86.createContext)(false);
12443
+ var HeadContext = (0, import_react87.createContext)(false);
12433
12444
  function useIsInTableHead() {
12434
- const isInTableHead = (0, import_react86.useContext)(HeadContext);
12445
+ const isInTableHead = (0, import_react87.useContext)(HeadContext);
12435
12446
  return isInTableHead;
12436
12447
  }
12437
12448
 
@@ -12607,26 +12618,26 @@ var Table = ({
12607
12618
  Table.displayName = "Table";
12608
12619
 
12609
12620
  // src/components/Table/normal/TableWrapper.tsx
12610
- var import_react87 = require("react");
12621
+ var import_react88 = require("react");
12611
12622
  var import_jsx_runtime307 = require("react/jsx-runtime");
12612
12623
  var TableWrapper = ({ className, ...rest }) => {
12613
- const themeContext = (0, import_react87.useContext)(ThemeContext);
12624
+ const themeContext = (0, import_react88.useContext)(ThemeContext);
12614
12625
  const container2 = themeContext == null ? void 0 : themeContext.el;
12615
12626
  const containerWidth = container2 ? container2.clientWidth : 0;
12616
- const [overflowX, setOverflowX] = (0, import_react87.useState)(false);
12617
- const [themeContainerWidth, setThemeContainerWidth] = (0, import_react87.useState)(containerWidth);
12627
+ const [overflowX, setOverflowX] = (0, import_react88.useState)(false);
12628
+ const [themeContainerWidth, setThemeContainerWidth] = (0, import_react88.useState)(containerWidth);
12618
12629
  function isOverflowingX(event) {
12619
12630
  return event.offsetWidth < event.scrollWidth;
12620
12631
  }
12621
- const wrapperRef = (0, import_react87.useRef)(null);
12622
- (0, import_react87.useEffect)(() => {
12632
+ const wrapperRef = (0, import_react88.useRef)(null);
12633
+ (0, import_react88.useEffect)(() => {
12623
12634
  if ((wrapperRef == null ? void 0 : wrapperRef.current) && isOverflowingX(wrapperRef.current)) {
12624
12635
  setOverflowX(true);
12625
12636
  return;
12626
12637
  }
12627
12638
  setOverflowX(false);
12628
12639
  }, [themeContainerWidth]);
12629
- (0, import_react87.useEffect)(() => {
12640
+ (0, import_react88.useEffect)(() => {
12630
12641
  function handleResize() {
12631
12642
  setThemeContainerWidth(containerWidth);
12632
12643
  }
@@ -12675,8 +12686,8 @@ var CollapsibleRow = ({
12675
12686
  const isInHead = useIsInTableHead();
12676
12687
  const type = _type != null ? _type : isInHead ? "head" : "body";
12677
12688
  const { isCollapsed, headerValues, definingColumnIndex } = useCollapsibleTableContext();
12678
- const [childrenCollapsed, setChildrenCollapsed] = (0, import_react88.useState)(true);
12679
- (0, import_react88.useEffect)(() => {
12689
+ const [childrenCollapsed, setChildrenCollapsed] = (0, import_react89.useState)(true);
12690
+ (0, import_react89.useEffect)(() => {
12680
12691
  !isCollapsed && setChildrenCollapsed(true);
12681
12692
  }, [isCollapsed]);
12682
12693
  const rowProps = (isOpenCollapsibleHeader) => {
@@ -12694,7 +12705,7 @@ var CollapsibleRow = ({
12694
12705
  const collapsedHeaderValues = headerValues.filter(
12695
12706
  (column, index) => definingColumnIndex.indexOf(index) === -1
12696
12707
  );
12697
- const childrenArray = import_react88.Children.toArray(children);
12708
+ const childrenArray = import_react89.Children.toArray(children);
12698
12709
  const collapsedChildren = childrenArray.filter(
12699
12710
  (column, index) => definingColumnIndex.indexOf(index) === -1
12700
12711
  );
@@ -12703,9 +12714,9 @@ var CollapsibleRow = ({
12703
12714
  const collapsedRenderedChildren = isCollapsed && collapsedHeaderValues.length > 0 ? collapsedChildren.map(function(child, index) {
12704
12715
  const id = derivativeIdGenerator(prefix2, index.toString());
12705
12716
  collapsibleIds.push(id);
12706
- return /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)(import_react88.Fragment, { children: [
12717
+ return /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)(import_react89.Fragment, { children: [
12707
12718
  /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
12708
- (0, import_react88.isValidElement)(child) && (0, import_react88.cloneElement)(child, {
12719
+ (0, import_react89.isValidElement)(child) && (0, import_react89.cloneElement)(child, {
12709
12720
  collapsibleProps: { isCollapsibleChild: true }
12710
12721
  })
12711
12722
  ] }, `DL-${index}`);
@@ -12799,11 +12810,11 @@ var CollapsibleTable2 = CollapsibleTable;
12799
12810
  CollapsibleTable2.Row = CollapsibleRow;
12800
12811
 
12801
12812
  // src/components/Tabs/AddTabButton.tsx
12802
- var import_react91 = require("react");
12813
+ var import_react92 = require("react");
12803
12814
 
12804
12815
  // src/components/Tabs/Tabs.context.tsx
12805
- var import_react89 = require("react");
12806
- var TabsContext = (0, import_react89.createContext)({
12816
+ var import_react90 = require("react");
12817
+ var TabsContext = (0, import_react90.createContext)({
12807
12818
  activeTab: 0,
12808
12819
  tabsId: "",
12809
12820
  size: "small",
@@ -12815,7 +12826,7 @@ var TabsContext = (0, import_react89.createContext)({
12815
12826
  tabContentDirection: "row",
12816
12827
  addTabButtonProps: void 0
12817
12828
  });
12818
- var useTabsContext = () => (0, import_react89.useContext)(TabsContext);
12829
+ var useTabsContext = () => (0, import_react90.useContext)(TabsContext);
12819
12830
 
12820
12831
  // src/components/Tabs/Tabs.module.css
12821
12832
  var Tabs_default = {
@@ -12834,9 +12845,9 @@ var Tabs_default = {
12834
12845
  };
12835
12846
 
12836
12847
  // src/components/Tabs/TabWidthContext.tsx
12837
- var import_react90 = require("react");
12848
+ var import_react91 = require("react");
12838
12849
  var import_jsx_runtime310 = require("react/jsx-runtime");
12839
- var TabContext = (0, import_react90.createContext)(null);
12850
+ var TabContext = (0, import_react91.createContext)(null);
12840
12851
  function TabWidthContextProvider({
12841
12852
  children,
12842
12853
  onChangeWidths
@@ -12865,8 +12876,8 @@ function TabWidthContextProvider({
12865
12876
  );
12866
12877
  }
12867
12878
  function useSetTabWidth(index, width) {
12868
- const context = (0, import_react90.useContext)(TabContext);
12869
- (0, import_react90.useLayoutEffect)(() => {
12879
+ const context = (0, import_react91.useContext)(TabContext);
12880
+ (0, import_react91.useLayoutEffect)(() => {
12870
12881
  context == null ? void 0 : context.updateWidth(index, width);
12871
12882
  return () => context == null ? void 0 : context.removeTab(index);
12872
12883
  }, [index, width]);
@@ -12883,7 +12894,7 @@ var AddTabButton = ({
12883
12894
  ...rest
12884
12895
  }) => {
12885
12896
  useSetTabWidth(index, width);
12886
- const buttonRef = (0, import_react91.useRef)(null);
12897
+ const buttonRef = (0, import_react92.useRef)(null);
12887
12898
  const combinedRef = useCombinedRef(ref, buttonRef);
12888
12899
  const { tabContentDirection, size: size2 } = useTabsContext();
12889
12900
  return /* @__PURE__ */ (0, import_jsx_runtime311.jsxs)(
@@ -12908,7 +12919,7 @@ var AddTabButton = ({
12908
12919
  AddTabButton.displayName = "AddTabButton";
12909
12920
 
12910
12921
  // src/components/Tabs/Tabs.tsx
12911
- var import_react92 = require("react");
12922
+ var import_react93 = require("react");
12912
12923
  var import_jsx_runtime312 = require("react/jsx-runtime");
12913
12924
  var Tabs = ({
12914
12925
  id,
@@ -12923,17 +12934,17 @@ var Tabs = ({
12923
12934
  htmlProps,
12924
12935
  ...rest
12925
12936
  }) => {
12926
- const generatedId = (0, import_react92.useId)();
12937
+ const generatedId = (0, import_react93.useId)();
12927
12938
  const uniqueId = id != null ? id : `${generatedId}-tabs`;
12928
- const [thisActiveTab, setActiveTab] = (0, import_react92.useState)(activeTab != null ? activeTab : 0);
12929
- const [hasTabFocus, setHasTabFocus] = (0, import_react92.useState)(false);
12930
- const tabListRef = (0, import_react92.useRef)(null);
12931
- const tabPanelsRef = (0, import_react92.useRef)(null);
12939
+ const [thisActiveTab, setActiveTab] = (0, import_react93.useState)(activeTab != null ? activeTab : 0);
12940
+ const [hasTabFocus, setHasTabFocus] = (0, import_react93.useState)(false);
12941
+ const tabListRef = (0, import_react93.useRef)(null);
12942
+ const tabPanelsRef = (0, import_react93.useRef)(null);
12932
12943
  const handleTabChange = (index) => {
12933
12944
  setActiveTab(index);
12934
12945
  onChange && onChange(index);
12935
12946
  };
12936
- (0, import_react92.useEffect)(() => {
12947
+ (0, import_react93.useEffect)(() => {
12937
12948
  if (activeTab !== void 0 && activeTab !== thisActiveTab) {
12938
12949
  setActiveTab(activeTab);
12939
12950
  }
@@ -12972,7 +12983,7 @@ var Tabs = ({
12972
12983
  Tabs.displayName = "Tabs";
12973
12984
 
12974
12985
  // src/components/Tabs/Tab.tsx
12975
- var import_react93 = require("react");
12986
+ var import_react94 = require("react");
12976
12987
  var import_jsx_runtime313 = require("react/jsx-runtime");
12977
12988
  var Tab = ({
12978
12989
  active = false,
@@ -12991,18 +13002,18 @@ var Tab = ({
12991
13002
  ...rest
12992
13003
  }) => {
12993
13004
  useSetTabWidth(index, width);
12994
- const itemRef = (0, import_react93.useRef)(null);
13005
+ const itemRef = (0, import_react94.useRef)(null);
12995
13006
  const combinedRef = useCombinedRef(ref, itemRef);
12996
13007
  const { tabContentDirection, size: size2 } = useTabsContext();
12997
13008
  const { type = "button", ...restHtmlProps } = htmlProps;
12998
13009
  const fixedHtmlProps = { type, ...restHtmlProps };
12999
- (0, import_react93.useEffect)(() => {
13010
+ (0, import_react94.useEffect)(() => {
13000
13011
  var _a;
13001
13012
  if (focus) {
13002
13013
  (_a = itemRef.current) == null ? void 0 : _a.focus();
13003
13014
  }
13004
13015
  }, [focus]);
13005
- const handleSelect = (0, import_react93.useCallback)(() => {
13016
+ const handleSelect = (0, import_react94.useCallback)(() => {
13006
13017
  if (setFocus && index) {
13007
13018
  setFocus(index);
13008
13019
  }
@@ -13048,7 +13059,7 @@ var Tab = ({
13048
13059
  Tab.displayName = "Tab";
13049
13060
 
13050
13061
  // src/components/Tabs/TabList.tsx
13051
- var import_react94 = require("react");
13062
+ var import_react95 = require("react");
13052
13063
  var import_jsx_runtime314 = require("react/jsx-runtime");
13053
13064
  var TabList = ({
13054
13065
  children,
@@ -13068,15 +13079,15 @@ var TabList = ({
13068
13079
  addTabButtonProps
13069
13080
  } = useTabsContext();
13070
13081
  const uniqueId = id != null ? id : `${tabsId}-tablist`;
13071
- const childrenArray = import_react94.Children.toArray(children).length;
13082
+ const childrenArray = import_react95.Children.toArray(children).length;
13072
13083
  const [focus, setFocus] = useRoveFocus(childrenArray, hasTabFocus, "row");
13073
13084
  const combinedRef = useCombinedRef(ref, tabListRef);
13074
13085
  const hasButton = addTabButtonProps ? true : false;
13075
- const tabListChildren = import_react94.Children ? import_react94.Children.map(children, (child, index) => {
13086
+ const tabListChildren = import_react95.Children ? import_react95.Children.map(children, (child, index) => {
13076
13087
  const handleThisTabChange = () => {
13077
13088
  handleTabChange(index);
13078
13089
  };
13079
- return (0, import_react94.isValidElement)(child) && (0, import_react94.cloneElement)(child, {
13090
+ return (0, import_react95.isValidElement)(child) && (0, import_react95.cloneElement)(child, {
13080
13091
  id: `${tabsId}-tab-${index}`,
13081
13092
  htmlProps: {
13082
13093
  ...child.props.htmlProps,
@@ -13089,7 +13100,7 @@ var TabList = ({
13089
13100
  onClick: combineHandlers(handleThisTabChange, child.props.onClick)
13090
13101
  });
13091
13102
  }) : [];
13092
- const [widths, setWidths] = (0, import_react94.useState)([]);
13103
+ const [widths, setWidths] = (0, import_react95.useState)([]);
13093
13104
  const handleOnFocus = (event) => {
13094
13105
  setHasTabFocus(true);
13095
13106
  onFocus && onFocus(event);
@@ -13163,14 +13174,14 @@ var TabPanel = ({
13163
13174
  TabPanel.displayName = "TabPanel";
13164
13175
 
13165
13176
  // src/components/Tabs/TabPanels.tsx
13166
- var import_react95 = require("react");
13177
+ var import_react96 = require("react");
13167
13178
  var import_jsx_runtime316 = require("react/jsx-runtime");
13168
13179
  var TabPanels = ({ children, ref, ...rest }) => {
13169
13180
  const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
13170
13181
  const combinedRef = useCombinedRef(ref, tabPanelsRef);
13171
- const panelChildren = import_react95.Children.map(children, (child, index) => {
13182
+ const panelChildren = import_react96.Children.map(children, (child, index) => {
13172
13183
  const active = index === activeTab;
13173
- return (0, import_react95.isValidElement)(child) && (0, import_react95.cloneElement)(child, {
13184
+ return (0, import_react96.isValidElement)(child) && (0, import_react96.cloneElement)(child, {
13174
13185
  id: `${tabsId}-panel-${index}`,
13175
13186
  active,
13176
13187
  htmlProps: {
@@ -13245,7 +13256,7 @@ var Tag = ({
13245
13256
  Tag.displayName = "Tag";
13246
13257
 
13247
13258
  // src/components/TextInput/TextInput.tsx
13248
- var import_react96 = require("react");
13259
+ var import_react97 = require("react");
13249
13260
 
13250
13261
  // src/components/TextInput/TextInput.module.css
13251
13262
  var TextInput_default = {
@@ -13294,12 +13305,12 @@ var TextInput = ({
13294
13305
  ref,
13295
13306
  ...rest
13296
13307
  }) => {
13297
- const [text, setText] = (0, import_react96.useState)(getDefaultText(value, defaultValue));
13298
- const prefixRef = (0, import_react96.useRef)(null);
13299
- const suffixRef = (0, import_react96.useRef)(null);
13300
- const [prefixLength, setPrefixLength] = (0, import_react96.useState)(0);
13301
- const [suffixLength, setSuffixLength] = (0, import_react96.useState)(0);
13302
- (0, import_react96.useLayoutEffect)(() => {
13308
+ const [text, setText] = (0, import_react97.useState)(getDefaultText(value, defaultValue));
13309
+ const prefixRef = (0, import_react97.useRef)(null);
13310
+ const suffixRef = (0, import_react97.useRef)(null);
13311
+ const [prefixLength, setPrefixLength] = (0, import_react97.useState)(0);
13312
+ const [suffixLength, setSuffixLength] = (0, import_react97.useState)(0);
13313
+ (0, import_react97.useLayoutEffect)(() => {
13303
13314
  if (prefixRef.current) {
13304
13315
  setPrefixLength(prefixRef.current.offsetWidth);
13305
13316
  }
@@ -13313,7 +13324,7 @@ var TextInput = ({
13313
13324
  onChange(event);
13314
13325
  }
13315
13326
  };
13316
- const generatedId = (0, import_react96.useId)();
13327
+ const generatedId = (0, import_react97.useId)();
13317
13328
  const uniqueId = id != null ? id : `${generatedId}-textInput`;
13318
13329
  const hasErrorMessage = !!errorMessage;
13319
13330
  const hasTip = !!tip;
@@ -13483,7 +13494,7 @@ var TextInput = ({
13483
13494
  TextInput.displayName = "TextInput";
13484
13495
 
13485
13496
  // src/components/Toggle/Toggle.tsx
13486
- var import_react97 = require("react");
13497
+ var import_react98 = require("react");
13487
13498
 
13488
13499
  // src/components/Toggle/Toggle.module.css
13489
13500
  var Toggle_default = {
@@ -13517,7 +13528,7 @@ var Toggle = ({
13517
13528
  ...rest
13518
13529
  }) => {
13519
13530
  const { t } = useTranslation();
13520
- const generatedId = (0, import_react97.useId)();
13531
+ const generatedId = (0, import_react98.useId)();
13521
13532
  const uniqueId = id != null ? id : `${generatedId}-toggle`;
13522
13533
  const iconSize = size2 === "large" ? "medium" : "small";
13523
13534
  const [checked, setChecked] = useControllableState({
@@ -13592,14 +13603,14 @@ var Toggle = ({
13592
13603
  Toggle.displayName = "Toggle";
13593
13604
 
13594
13605
  // src/components/ToggleBar/ToggleBar.tsx
13595
- var import_react99 = require("react");
13606
+ var import_react100 = require("react");
13596
13607
 
13597
13608
  // src/components/ToggleBar/ToggleBar.context.tsx
13598
- var import_react98 = require("react");
13599
- var ToggleBarContext = (0, import_react98.createContext)({
13609
+ var import_react99 = require("react");
13610
+ var ToggleBarContext = (0, import_react99.createContext)({
13600
13611
  size: "medium"
13601
13612
  });
13602
- var useToggleBarContext = () => (0, import_react98.useContext)(ToggleBarContext);
13613
+ var useToggleBarContext = () => (0, import_react99.useContext)(ToggleBarContext);
13603
13614
 
13604
13615
  // src/components/ToggleBar/ToggleBar.module.css
13605
13616
  var ToggleBar_default = {
@@ -13632,9 +13643,9 @@ var ToggleBar = (props) => {
13632
13643
  id,
13633
13644
  ...rest
13634
13645
  } = props;
13635
- const generatedId = (0, import_react99.useId)();
13646
+ const generatedId = (0, import_react100.useId)();
13636
13647
  const uniqueId = id != null ? id : `${generatedId}-ToggleBar`;
13637
- const [groupValue, setGroupValue] = (0, import_react99.useState)(value);
13648
+ const [groupValue, setGroupValue] = (0, import_react100.useState)(value);
13638
13649
  const handleChange = combineHandlers(
13639
13650
  (e) => setGroupValue(e.target.value),
13640
13651
  (e) => onChange && onChange(e, e.target.value)
@@ -13669,7 +13680,7 @@ var ToggleBar = (props) => {
13669
13680
  ToggleBar.displayName = "ToggleBar";
13670
13681
 
13671
13682
  // src/components/ToggleBar/ToggleRadio.tsx
13672
- var import_react100 = require("react");
13683
+ var import_react101 = require("react");
13673
13684
  var import_jsx_runtime321 = require("react/jsx-runtime");
13674
13685
  var typographyTypes3 = {
13675
13686
  large: "bodyLarge",
@@ -13701,7 +13712,7 @@ var ToggleRadio = ({
13701
13712
  id,
13702
13713
  ...rest
13703
13714
  }) => {
13704
- const generatedId = (0, import_react100.useId)();
13715
+ const generatedId = (0, import_react101.useId)();
13705
13716
  const uniqueId = id != null ? id : `${generatedId}-ToggleRadio`;
13706
13717
  const group = useToggleBarContext();
13707
13718
  const handleChange = (event) => {
@@ -13753,7 +13764,7 @@ var ToggleRadio = ({
13753
13764
  ToggleRadio.displayName = "ToggleRadio";
13754
13765
 
13755
13766
  // src/components/ToggleButton/ToggleButton.tsx
13756
- var import_react101 = require("react");
13767
+ var import_react102 = require("react");
13757
13768
 
13758
13769
  // src/components/ToggleButton/ToggleButton.module.css
13759
13770
  var ToggleButton_default = {
@@ -13774,7 +13785,7 @@ var ToggleButton = ({
13774
13785
  htmlProps,
13775
13786
  ...rest
13776
13787
  }) => {
13777
- const generatedId = (0, import_react101.useId)();
13788
+ const generatedId = (0, import_react102.useId)();
13778
13789
  const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
13779
13790
  const hasIcon = !!icon;
13780
13791
  return /* @__PURE__ */ (0, import_jsx_runtime322.jsxs)(Box, { as: "label", htmlFor: uniqueId, width: "fit-content", children: [
@@ -13816,7 +13827,7 @@ var ToggleButton = ({
13816
13827
  ToggleButton.displayName = "ToggleButton";
13817
13828
 
13818
13829
  // src/components/ToggleButton/ToggleButtonGroup.tsx
13819
- var import_react102 = require("react");
13830
+ var import_react103 = require("react");
13820
13831
  var import_jsx_runtime323 = require("react/jsx-runtime");
13821
13832
  var ToggleButtonGroup = (props) => {
13822
13833
  const {
@@ -13829,7 +13840,7 @@ var ToggleButtonGroup = (props) => {
13829
13840
  htmlProps,
13830
13841
  ...rest
13831
13842
  } = props;
13832
- const generatedId = (0, import_react102.useId)();
13843
+ const generatedId = (0, import_react103.useId)();
13833
13844
  const uniqueLabelId = labelId != null ? labelId : `${generatedId}-ToggleButtonGroupLabel`;
13834
13845
  return /* @__PURE__ */ (0, import_jsx_runtime323.jsxs)(
13835
13846
  VStack,