@norges-domstoler/dds-components 22.9.0 → 22.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -3853,7 +3853,7 @@ var Typography = (props) => {
3853
3853
  externalLinkProp = as === "a" && externalLink ? externalLink : void 0;
3854
3854
  }
3855
3855
  return /* @__PURE__ */ jsxs70(
3856
- ElementAs,
3856
+ Box,
3857
3857
  {
3858
3858
  ...getBaseHTMLProps(
3859
3859
  id,
@@ -4460,7 +4460,8 @@ var texts2 = createTexts({
4460
4460
  });
4461
4461
 
4462
4462
  // src/components/OverflowMenu/OverflowMenu.tsx
4463
- import { useEffect as useEffect14 } from "react";
4463
+ import { useContext as useContext6, useEffect as useEffect14 } from "react";
4464
+ import { createPortal } from "react-dom";
4464
4465
 
4465
4466
  // src/components/OverflowMenu/OverflowMenu.context.tsx
4466
4467
  import {
@@ -4515,6 +4516,8 @@ import { jsx as jsx210 } from "react/jsx-runtime";
4515
4516
  var OverflowMenu = ({
4516
4517
  placement = "bottom-end",
4517
4518
  offset = 2,
4519
+ parentElement,
4520
+ portal = true,
4518
4521
  className,
4519
4522
  htmlProps = {},
4520
4523
  ref,
@@ -4522,11 +4525,16 @@ var OverflowMenu = ({
4522
4525
  ...rest
4523
4526
  }) => {
4524
4527
  const { isOpen, floatStyling, setFloatOptions, menuRef, menuId } = useOverflowMenuContext();
4528
+ const themeContext = useContext6(ThemeContext);
4529
+ if (portal && !themeContext) {
4530
+ throw new Error("OverflowMenu must be used within a DdsProvider");
4531
+ }
4532
+ const portalTarget = parentElement != null ? parentElement : themeContext == null ? void 0 : themeContext.el;
4525
4533
  useEffect14(() => {
4526
4534
  setFloatOptions == null ? void 0 : setFloatOptions({ placement, offset });
4527
4535
  }, [placement, offset]);
4528
4536
  const openCn = isOpen ? "open" : "closed";
4529
- return /* @__PURE__ */ jsx210(
4537
+ const menu = /* @__PURE__ */ jsx210(
4530
4538
  Paper,
4531
4539
  {
4532
4540
  overflowY: "auto",
@@ -4553,6 +4561,7 @@ var OverflowMenu = ({
4553
4561
  border: "border-default"
4554
4562
  }
4555
4563
  );
4564
+ return portal && portalTarget ? createPortal(menu, portalTarget) : menu;
4556
4565
  };
4557
4566
  OverflowMenu.displayName = "OverflowMenu";
4558
4567
 
@@ -5049,7 +5058,7 @@ var Breadcrumbs = ({
5049
5058
  "aria-label": bChildrenTruncated.length > 1 ? t(texts3.showHiddenTo(bChildren.length - 1)) : t(texts3.showHidden)
5050
5059
  }
5051
5060
  ),
5052
- /* @__PURE__ */ jsx222(OverflowMenu, { children: /* @__PURE__ */ jsx222(OverflowMenuList, { children: bChildrenTruncated }) })
5061
+ /* @__PURE__ */ jsx222(OverflowMenu, { portal: false, children: /* @__PURE__ */ jsx222(OverflowMenuList, { children: bChildrenTruncated }) })
5053
5062
  ] })
5054
5063
  ] }),
5055
5064
  /* @__PURE__ */ jsxs77(HStack, { ...responsiveLiProps, children: [
@@ -5371,10 +5380,10 @@ CardExpandableBody.displayName = "CardExpandableBody";
5371
5380
  import { useId as useId5 } from "react";
5372
5381
 
5373
5382
  // src/components/SelectionControl/Checkbox/CheckboxGroupContext.tsx
5374
- import { createContext as createContext6, useContext as useContext6 } from "react";
5383
+ import { createContext as createContext6, useContext as useContext7 } from "react";
5375
5384
  var CheckboxGroupContext = createContext6(null);
5376
5385
  var useCheckboxGroup = () => {
5377
- return useContext6(CheckboxGroupContext);
5386
+ return useContext7(CheckboxGroupContext);
5378
5387
  };
5379
5388
 
5380
5389
  // src/components/SelectionControl/SelectionControl.module.css
@@ -5712,10 +5721,10 @@ CheckboxGroup.displayName = "CheckboxGroup";
5712
5721
  import { useId as useId7 } from "react";
5713
5722
 
5714
5723
  // src/components/SelectionControl/RadioButton/RadioButtonGroupContext.tsx
5715
- import { createContext as createContext7, useContext as useContext7 } from "react";
5724
+ import { createContext as createContext7, useContext as useContext8 } from "react";
5716
5725
  var RadioButtonGroupContext = createContext7(null);
5717
5726
  var useRadioButtonGroup = () => {
5718
- return useContext7(RadioButtonGroupContext);
5727
+ return useContext8(RadioButtonGroupContext);
5719
5728
  };
5720
5729
 
5721
5730
  // src/components/SelectionControl/RadioButton/RadioButton.tsx
@@ -5904,9 +5913,9 @@ var RadioButtonGroup = ({
5904
5913
  RadioButtonGroup.displayName = "RadioButtonGroup";
5905
5914
 
5906
5915
  // src/components/Card/CardSelectionControl/CardSelectable.context.tsx
5907
- import { createContext as createContext8, useContext as useContext8 } from "react";
5916
+ import { createContext as createContext8, useContext as useContext9 } from "react";
5908
5917
  var CardSelectableContext = createContext8({});
5909
- var useCardSelectableContext = () => useContext8(CardSelectableContext);
5918
+ var useCardSelectableContext = () => useContext9(CardSelectableContext);
5910
5919
 
5911
5920
  // src/components/Card/CardSelectionControl/CardSelectable.tsx
5912
5921
  import { jsx as jsx234 } from "react/jsx-runtime";
@@ -6305,7 +6314,7 @@ import {
6305
6314
  import { useLocale as useLocale2 } from "@react-aria/i18n";
6306
6315
  import { useCalendarState } from "@react-stately/calendar";
6307
6316
  import {
6308
- useContext as useContext11
6317
+ useContext as useContext12
6309
6318
  } from "react";
6310
6319
 
6311
6320
  // src/components/date-inputs/DatePicker/Calendar/CalendarGrid.tsx
@@ -6314,7 +6323,7 @@ import {
6314
6323
  useCalendarGrid
6315
6324
  } from "@react-aria/calendar";
6316
6325
  import { useLocale } from "@react-aria/i18n";
6317
- import { useContext as useContext10 } from "react";
6326
+ import { useContext as useContext11 } from "react";
6318
6327
 
6319
6328
  // src/components/date-inputs/DatePicker/Calendar/CalendarCell.tsx
6320
6329
  import { isToday } from "@internationalized/date";
@@ -6446,11 +6455,11 @@ function isLeapYear(date) {
6446
6455
  // src/components/date-inputs/DatePicker/CalendarPopover.tsx
6447
6456
  import {
6448
6457
  createContext as createContext9,
6449
- useContext as useContext9,
6458
+ useContext as useContext10,
6450
6459
  useEffect as useEffect18,
6451
6460
  useRef as useRef13
6452
6461
  } from "react";
6453
- import { createPortal } from "react-dom";
6462
+ import { createPortal as createPortal2 } from "react-dom";
6454
6463
  import { Fragment as Fragment6, jsx as jsx242, jsxs as jsxs89 } from "react/jsx-runtime";
6455
6464
  var CalendarPopoverContext = createContext9({
6456
6465
  anchorRef: null,
@@ -6478,7 +6487,7 @@ var CalendarPopover = ({
6478
6487
  var CalendarPopoverAnchor = ({
6479
6488
  children
6480
6489
  }) => {
6481
- const { anchorRef } = useContext9(CalendarPopoverContext);
6490
+ const { anchorRef } = useContext10(CalendarPopoverContext);
6482
6491
  return /* @__PURE__ */ jsx242("div", { ref: anchorRef != null ? anchorRef : void 0, children });
6483
6492
  };
6484
6493
  var CalendarPopoverContent = ({
@@ -6491,13 +6500,13 @@ var CalendarPopoverContent = ({
6491
6500
  const { refs, styles: floatingStyles } = useFloatPosition(null, {
6492
6501
  placement: "bottom-start"
6493
6502
  });
6494
- const themeContext = useContext9(ThemeContext);
6503
+ const themeContext = useContext10(ThemeContext);
6495
6504
  if (!themeContext) {
6496
6505
  throw new Error("DatePicker must be used within a ThemeProvider");
6497
6506
  }
6498
6507
  const portalTarget = themeContext.el;
6499
6508
  const { t } = useTranslation();
6500
- const { isOpen, onClose, anchorRef, closeButtonRef } = useContext9(
6509
+ const { isOpen, onClose, anchorRef, closeButtonRef } = useContext10(
6501
6510
  CalendarPopoverContext
6502
6511
  );
6503
6512
  const hasTransitionedIn = useMountTransition(isOpen, 500);
@@ -6532,7 +6541,7 @@ var CalendarPopoverContent = ({
6532
6541
  padding: "x0.75"
6533
6542
  };
6534
6543
  return /* @__PURE__ */ jsxs89(Fragment6, { children: [
6535
- portalTarget && hasBreakpoint && createPortal(
6544
+ portalTarget && hasBreakpoint && createPortal2(
6536
6545
  /* @__PURE__ */ jsx242(ShowHide, { showBelow: smallScreenBreakpoint, children: /* @__PURE__ */ jsx242(Backdrop, { zIndex: "modal", isMounted, children: /* @__PURE__ */ jsxs89(
6537
6546
  Paper,
6538
6547
  {
@@ -6591,7 +6600,7 @@ function CalendarGrid({ state, ...props }) {
6591
6600
  { short: t(texts6.sa), full: t(texts6.saturday) },
6592
6601
  { short: t(texts6.su), full: t(texts6.sunday) }
6593
6602
  ];
6594
- const { showWeekNumbers, onClose } = useContext10(CalendarPopoverContext);
6603
+ const { showWeekNumbers, onClose } = useContext11(CalendarPopoverContext);
6595
6604
  const thCn = cn(
6596
6605
  DateInput_default["calendar__grid-element"],
6597
6606
  typographyStyles_default["text-color--subtle"],
@@ -6776,7 +6785,7 @@ function Calendar(props) {
6776
6785
  nextButtonProps: { onPress: onNext },
6777
6786
  title
6778
6787
  } = useCalendar(props, state);
6779
- const { onClose, closeButtonRef } = useContext11(CalendarPopoverContext);
6788
+ const { onClose, closeButtonRef } = useContext12(CalendarPopoverContext);
6780
6789
  const closeOnKeyboardBlurBack = (event) => {
6781
6790
  var _a;
6782
6791
  if (event.key === "Tab" && event.shiftKey === true) {
@@ -7053,7 +7062,7 @@ var ClearButton = ({
7053
7062
  ClearButton.displayName = "ClearButton";
7054
7063
 
7055
7064
  // src/components/date-inputs/common/DateInput.tsx
7056
- import { useContext as useContext12 } from "react";
7065
+ import { useContext as useContext13 } from "react";
7057
7066
 
7058
7067
  // src/components/helpers/Input/Input.tsx
7059
7068
  import { jsx as jsx248 } from "react/jsx-runtime";
@@ -7143,7 +7152,7 @@ function DateInput({
7143
7152
  ...props
7144
7153
  }) {
7145
7154
  const hasErrorMessage = !!errorMessage;
7146
- const { isOpen } = useContext12(CalendarPopoverContext);
7155
+ const { isOpen } = useContext13(CalendarPopoverContext);
7147
7156
  return /* @__PURE__ */ jsxs93(
7148
7157
  "div",
7149
7158
  {
@@ -7646,9 +7655,9 @@ var DescriptionListGroup = ({
7646
7655
  DescriptionListGroup.displayName = "DescriptionListGroup";
7647
7656
 
7648
7657
  // src/components/DetailList/DetailList.context.tsx
7649
- import { createContext as createContext10, useContext as useContext13 } from "react";
7658
+ import { createContext as createContext10, useContext as useContext14 } from "react";
7650
7659
  var DetailListContext = createContext10({});
7651
- var useDetailListContext = () => useContext13(DetailListContext);
7660
+ var useDetailListContext = () => useContext14(DetailListContext);
7652
7661
 
7653
7662
  // src/components/DetailList/DetailList.module.css
7654
7663
  var DetailList_default = {
@@ -7771,11 +7780,11 @@ DetailListTerm.displayName = "DetailListTerm";
7771
7780
 
7772
7781
  // src/components/Drawer/Drawer.tsx
7773
7782
  import {
7774
- useContext as useContext15,
7783
+ useContext as useContext16,
7775
7784
  useEffect as useEffect19,
7776
7785
  useRef as useRef20
7777
7786
  } from "react";
7778
- import { createPortal as createPortal2 } from "react-dom";
7787
+ import { createPortal as createPortal3 } from "react-dom";
7779
7788
 
7780
7789
  // src/components/Drawer/Drawer.module.css
7781
7790
  var Drawer_default = {
@@ -7792,9 +7801,9 @@ var Drawer_default = {
7792
7801
  };
7793
7802
 
7794
7803
  // src/components/Drawer/Drawer.context.tsx
7795
- import { createContext as createContext11, useContext as useContext14 } from "react";
7804
+ import { createContext as createContext11, useContext as useContext15 } from "react";
7796
7805
  var DrawerContext = createContext11({});
7797
- var useDrawerContext = () => useContext14(DrawerContext);
7806
+ var useDrawerContext = () => useContext15(DrawerContext);
7798
7807
 
7799
7808
  // src/components/Drawer/Drawer.tsx
7800
7809
  import { jsx as jsx262, jsxs as jsxs97 } from "react/jsx-runtime";
@@ -7815,7 +7824,7 @@ var Drawer = ({
7815
7824
  ref,
7816
7825
  ...rest
7817
7826
  }) => {
7818
- const themeContext = useContext15(ThemeContext);
7827
+ const themeContext = useContext16(ThemeContext);
7819
7828
  if (!themeContext) {
7820
7829
  throw new Error("Drawer must be used within a ThemeProvider");
7821
7830
  }
@@ -7943,7 +7952,7 @@ var Drawer = ({
7943
7952
  children: drawer
7944
7953
  }
7945
7954
  ) : drawer;
7946
- return (isOpen || hasTransitionedIn) && portalTarget ? createPortal2(component, portalTarget) : null;
7955
+ return (isOpen || hasTransitionedIn) && portalTarget ? createPortal3(component, portalTarget) : null;
7947
7956
  };
7948
7957
  Drawer.displayName = "Drawer";
7949
7958
 
@@ -9062,13 +9071,21 @@ var fileUploaderReducer = (state, action) => {
9062
9071
  case "dragEnter":
9063
9072
  return {
9064
9073
  ...state,
9074
+ dragCounter: state.dragCounter + 1,
9065
9075
  isDragActive: true
9066
9076
  };
9067
- case "dragLeave":
9068
- return { ...state, isDragActive: false };
9077
+ case "dragLeave": {
9078
+ const newCounter = Math.max(0, state.dragCounter - 1);
9079
+ return {
9080
+ ...state,
9081
+ dragCounter: newCounter,
9082
+ isDragActive: newCounter > 0
9083
+ };
9084
+ }
9069
9085
  case "onSetFiles":
9070
9086
  return {
9071
9087
  ...state,
9088
+ dragCounter: 0,
9072
9089
  isDragActive: false,
9073
9090
  files: action.payload
9074
9091
  };
@@ -9175,6 +9192,7 @@ var useFileUploader = (props) => {
9175
9192
  isFocused: false,
9176
9193
  isFileDialogActive: false,
9177
9194
  isDragActive: false,
9195
+ dragCounter: 0,
9178
9196
  rootErrors: calcRootErrors(
9179
9197
  t(texts17.invalidFileAmount),
9180
9198
  initialFileUploaderFiles,
@@ -9223,16 +9241,13 @@ var useFileUploader = (props) => {
9223
9241
  );
9224
9242
  const onRootBlur = useCallback6(() => dispatch({ type: "blur" }), [dispatch]);
9225
9243
  const onRootDragEnter = useCallback6(
9226
- async (evt) => {
9244
+ (evt) => {
9227
9245
  preventDefaults(evt);
9228
9246
  if (isEventWithFiles(evt)) {
9229
- const files = await getFilesFromEvent(evt);
9230
- const fileCount = files.length;
9231
- if (fileCount === 0) return;
9232
9247
  dispatch({ type: "dragEnter" });
9233
9248
  }
9234
9249
  },
9235
- [dispatch, accept, maxFiles]
9250
+ [dispatch]
9236
9251
  );
9237
9252
  const onRootDragOver = useCallback6((evt) => {
9238
9253
  preventDefaults(evt);
@@ -9247,7 +9262,6 @@ var useFileUploader = (props) => {
9247
9262
  const onRootDragLeave = useCallback6(
9248
9263
  (evt) => {
9249
9264
  preventDefaults(evt);
9250
- if (evt.currentTarget.contains(evt.relatedTarget)) return;
9251
9265
  dispatch({ type: "dragLeave" });
9252
9266
  },
9253
9267
  [dispatch]
@@ -9896,14 +9910,14 @@ import { useRef as useRef26 } from "react";
9896
9910
  // src/components/InlineEdit/InlineEdit.context.tsx
9897
9911
  import {
9898
9912
  createContext as createContext12,
9899
- useContext as useContext16,
9913
+ useContext as useContext17,
9900
9914
  useState as useState19
9901
9915
  } from "react";
9902
9916
  import { jsx as jsx293 } from "react/jsx-runtime";
9903
9917
  var InlineEditContext = createContext12(
9904
9918
  {}
9905
9919
  );
9906
- var useInlineEditContext = () => useContext16(InlineEditContext);
9920
+ var useInlineEditContext = () => useContext17(InlineEditContext);
9907
9921
  var InlineEditContextProvider = (props) => {
9908
9922
  const {
9909
9923
  emptiable,
@@ -10562,12 +10576,12 @@ LocalMessage.displayName = "LocalMessage";
10562
10576
 
10563
10577
  // src/components/Modal/Modal.tsx
10564
10578
  import {
10565
- useContext as useContext17,
10579
+ useContext as useContext18,
10566
10580
  useEffect as useEffect25,
10567
10581
  useId as useId20,
10568
10582
  useRef as useRef29
10569
10583
  } from "react";
10570
- import { createPortal as createPortal3 } from "react-dom";
10584
+ import { createPortal as createPortal4 } from "react-dom";
10571
10585
 
10572
10586
  // src/components/Modal/Modal.module.css
10573
10587
  var Modal_default = {
@@ -10609,7 +10623,7 @@ var Modal = ({
10609
10623
  onClose();
10610
10624
  }
10611
10625
  };
10612
- const themeContext = useContext17(ThemeContext);
10626
+ const themeContext = useContext18(ThemeContext);
10613
10627
  if (!themeContext) {
10614
10628
  throw new Error("Modal must be used within a ThemeProvider");
10615
10629
  }
@@ -10631,7 +10645,7 @@ var Modal = ({
10631
10645
  };
10632
10646
  useOnKeyDown(["Escape", "Esc"], () => handleClose());
10633
10647
  const hasTransitionedIn = useMountTransition(isOpen, 200);
10634
- return (isOpen || hasTransitionedIn) && portalTarget ? createPortal3(
10648
+ return (isOpen || hasTransitionedIn) && portalTarget ? createPortal4(
10635
10649
  /* @__PURE__ */ jsx301(
10636
10650
  Backdrop,
10637
10651
  {
@@ -10790,7 +10804,7 @@ function PaginationGenerator(pagesAmount, activePage) {
10790
10804
  // src/components/Select/Select.tsx
10791
10805
  import {
10792
10806
  useCallback as useCallback7,
10793
- useContext as useContext18,
10807
+ useContext as useContext19,
10794
10808
  useId as useId21
10795
10809
  } from "react";
10796
10810
  import {
@@ -11197,7 +11211,7 @@ function Select({
11197
11211
  hideSelectedOptions,
11198
11212
  ...rest
11199
11213
  }) {
11200
- const themeContext = useContext18(ThemeContext);
11214
+ const themeContext = useContext19(ThemeContext);
11201
11215
  if (!themeContext) {
11202
11216
  throw new Error("Select must be used within a ThemeProvider");
11203
11217
  }
@@ -12545,11 +12559,11 @@ var texts23 = createTexts({
12545
12559
 
12546
12560
  // src/components/Popover/Popover.tsx
12547
12561
  import {
12548
- useContext as useContext20,
12562
+ useContext as useContext21,
12549
12563
  useEffect as useEffect28,
12550
12564
  useId as useId24
12551
12565
  } from "react";
12552
- import { createPortal as createPortal4 } from "react-dom";
12566
+ import { createPortal as createPortal5 } from "react-dom";
12553
12567
 
12554
12568
  // src/components/Popover/Popover.module.css
12555
12569
  var Popover_default = {
@@ -12562,10 +12576,10 @@ var Popover_default = {
12562
12576
  // src/components/Popover/Popover.context.tsx
12563
12577
  import {
12564
12578
  createContext as createContext13,
12565
- useContext as useContext19
12579
+ useContext as useContext20
12566
12580
  } from "react";
12567
12581
  var PopoverContext = createContext13({});
12568
- var usePopoverContext = () => useContext19(PopoverContext);
12582
+ var usePopoverContext = () => useContext20(PopoverContext);
12569
12583
 
12570
12584
  // src/components/Popover/Popover.tsx
12571
12585
  import { jsx as jsx309, jsxs as jsxs120 } from "react/jsx-runtime";
@@ -12596,7 +12610,7 @@ var Popover = ({
12596
12610
  });
12597
12611
  const { maxHeight, maxWidth, minHeight, minWidth, height, width } = sizeProps;
12598
12612
  const context = usePopoverContext();
12599
- const themeContext = useContext20(ThemeContext);
12613
+ const themeContext = useContext21(ThemeContext);
12600
12614
  const portalTarget = parentElement != null ? parentElement : themeContext == null ? void 0 : themeContext.el;
12601
12615
  const {
12602
12616
  floatStyling: contextFloatStyling,
@@ -12710,7 +12724,7 @@ var Popover = ({
12710
12724
  ]
12711
12725
  }
12712
12726
  );
12713
- return isOpen || hasTransitionedIn ? portal && portalTarget ? createPortal4(popover, portalTarget) : popover : null;
12727
+ return isOpen || hasTransitionedIn ? portal && portalTarget ? createPortal5(popover, portalTarget) : popover : null;
12714
12728
  };
12715
12729
  Popover.displayName = "Popover";
12716
12730
 
@@ -12813,14 +12827,14 @@ import {
12813
12827
  } from "react";
12814
12828
 
12815
12829
  // src/components/ProgressTracker/ProgressTracker.context.tsx
12816
- import { createContext as createContext14, useContext as useContext21 } from "react";
12830
+ import { createContext as createContext14, useContext as useContext22 } from "react";
12817
12831
  var ProgressTrackerContext = createContext14(
12818
12832
  {
12819
12833
  activeStep: 0,
12820
12834
  direction: "column"
12821
12835
  }
12822
12836
  );
12823
- var useProgressTrackerContext = () => useContext21(ProgressTrackerContext);
12837
+ var useProgressTrackerContext = () => useContext22(ProgressTrackerContext);
12824
12838
 
12825
12839
  // src/components/ProgressTracker/ProgressTracker.module.css
12826
12840
  var ProgressTracker_default = {
@@ -13182,11 +13196,11 @@ import {
13182
13196
  // src/components/Search/AutocompleteSearch.context.tsx
13183
13197
  import {
13184
13198
  createContext as createContext15,
13185
- useContext as useContext22
13199
+ useContext as useContext23
13186
13200
  } from "react";
13187
13201
  var AutocompleteSearchContext = createContext15({});
13188
13202
  var useAutocompleteSearch = () => {
13189
- return useContext22(AutocompleteSearchContext);
13203
+ return useContext23(AutocompleteSearchContext);
13190
13204
  };
13191
13205
 
13192
13206
  // src/components/Search/Search.module.css
@@ -13728,12 +13742,12 @@ import {
13728
13742
  } from "react";
13729
13743
 
13730
13744
  // src/components/Table/collapsible/Table.context.tsx
13731
- import { createContext as createContext16, useContext as useContext23 } from "react";
13745
+ import { createContext as createContext16, useContext as useContext24 } from "react";
13732
13746
  var CollapsibleTableContext = createContext16({
13733
13747
  headerValues: [],
13734
13748
  definingColumnIndex: [0]
13735
13749
  });
13736
- var useCollapsibleTableContext = () => useContext23(CollapsibleTableContext);
13750
+ var useCollapsibleTableContext = () => useContext24(CollapsibleTableContext);
13737
13751
 
13738
13752
  // src/components/Table/normal/Body.tsx
13739
13753
  import { jsx as jsx321 } from "react/jsx-runtime";
@@ -13741,12 +13755,12 @@ var Body = (props) => /* @__PURE__ */ jsx321("tbody", { ...props });
13741
13755
  Body.displayName = "Table.Body";
13742
13756
 
13743
13757
  // src/components/Table/normal/Head.tsx
13744
- import { createContext as createContext17, useContext as useContext24 } from "react";
13758
+ import { createContext as createContext17, useContext as useContext25 } from "react";
13745
13759
  import { jsx as jsx322 } from "react/jsx-runtime";
13746
13760
  var Head = ({ children, ...rest }) => /* @__PURE__ */ jsx322("thead", { ...rest, children: /* @__PURE__ */ jsx322(HeadContext, { value: true, children }) });
13747
13761
  var HeadContext = createContext17(false);
13748
13762
  function useIsInTableHead() {
13749
- const isInTableHead = useContext24(HeadContext);
13763
+ const isInTableHead = useContext25(HeadContext);
13750
13764
  return isInTableHead;
13751
13765
  }
13752
13766
 
@@ -13912,14 +13926,14 @@ Table.displayName = "Table";
13912
13926
 
13913
13927
  // src/components/Table/normal/TableWrapper.tsx
13914
13928
  import {
13915
- useContext as useContext25,
13929
+ useContext as useContext26,
13916
13930
  useEffect as useEffect32,
13917
13931
  useRef as useRef35,
13918
13932
  useState as useState30
13919
13933
  } from "react";
13920
13934
  import { jsx as jsx328 } from "react/jsx-runtime";
13921
13935
  var TableWrapper = ({ className, ...rest }) => {
13922
- const themeContext = useContext25(ThemeContext);
13936
+ const themeContext = useContext26(ThemeContext);
13923
13937
  const container2 = themeContext == null ? void 0 : themeContext.el;
13924
13938
  const containerWidth = container2 ? container2.clientWidth : 0;
13925
13939
  const [overflowX, setOverflowX] = useState30(false);
@@ -14114,7 +14128,7 @@ CollapsibleTable2.Row = CollapsibleRow;
14114
14128
  import { useRef as useRef36 } from "react";
14115
14129
 
14116
14130
  // src/components/Tabs/Tabs.context.tsx
14117
- import { createContext as createContext18, useContext as useContext26 } from "react";
14131
+ import { createContext as createContext18, useContext as useContext27 } from "react";
14118
14132
  var TabsContext = createContext18({
14119
14133
  activeTab: 0,
14120
14134
  tabsId: "",
@@ -14127,7 +14141,7 @@ var TabsContext = createContext18({
14127
14141
  tabContentDirection: "row",
14128
14142
  addTabButtonProps: void 0
14129
14143
  });
14130
- var useTabsContext = () => useContext26(TabsContext);
14144
+ var useTabsContext = () => useContext27(TabsContext);
14131
14145
 
14132
14146
  // src/components/Tabs/Tabs.module.css
14133
14147
  var Tabs_default = {
@@ -14147,7 +14161,7 @@ var Tabs_default = {
14147
14161
  // src/components/Tabs/TabWidthContext.tsx
14148
14162
  import {
14149
14163
  createContext as createContext19,
14150
- useContext as useContext27,
14164
+ useContext as useContext28,
14151
14165
  useLayoutEffect as useLayoutEffect4
14152
14166
  } from "react";
14153
14167
  import { jsx as jsx331 } from "react/jsx-runtime";
@@ -14180,7 +14194,7 @@ function TabWidthContextProvider({
14180
14194
  );
14181
14195
  }
14182
14196
  function useSetTabWidth(index, width) {
14183
- const context = useContext27(TabContext);
14197
+ const context = useContext28(TabContext);
14184
14198
  useLayoutEffect4(() => {
14185
14199
  context == null ? void 0 : context.updateWidth(index, width);
14186
14200
  return () => context == null ? void 0 : context.removeTab(index);
@@ -14829,12 +14843,12 @@ TextInput.displayName = "TextInput";
14829
14843
  import { useId as useId30, useState as useState35 } from "react";
14830
14844
 
14831
14845
  // src/components/ToggleBar/ToggleBar.context.tsx
14832
- import { createContext as createContext20, useContext as useContext28 } from "react";
14846
+ import { createContext as createContext20, useContext as useContext29 } from "react";
14833
14847
  var ToggleBarContext = createContext20({
14834
14848
  size: "medium",
14835
14849
  purpose: "primary"
14836
14850
  });
14837
- var useToggleBarContext = () => useContext28(ToggleBarContext);
14851
+ var useToggleBarContext = () => useContext29(ToggleBarContext);
14838
14852
 
14839
14853
  // src/components/ToggleBar/ToggleBar.module.css
14840
14854
  var ToggleBar_default = {