@norges-domstoler/dds-components 22.9.0 → 22.10.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
@@ -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
 
@@ -9896,14 +9905,14 @@ import { useRef as useRef26 } from "react";
9896
9905
  // src/components/InlineEdit/InlineEdit.context.tsx
9897
9906
  import {
9898
9907
  createContext as createContext12,
9899
- useContext as useContext16,
9908
+ useContext as useContext17,
9900
9909
  useState as useState19
9901
9910
  } from "react";
9902
9911
  import { jsx as jsx293 } from "react/jsx-runtime";
9903
9912
  var InlineEditContext = createContext12(
9904
9913
  {}
9905
9914
  );
9906
- var useInlineEditContext = () => useContext16(InlineEditContext);
9915
+ var useInlineEditContext = () => useContext17(InlineEditContext);
9907
9916
  var InlineEditContextProvider = (props) => {
9908
9917
  const {
9909
9918
  emptiable,
@@ -10562,12 +10571,12 @@ LocalMessage.displayName = "LocalMessage";
10562
10571
 
10563
10572
  // src/components/Modal/Modal.tsx
10564
10573
  import {
10565
- useContext as useContext17,
10574
+ useContext as useContext18,
10566
10575
  useEffect as useEffect25,
10567
10576
  useId as useId20,
10568
10577
  useRef as useRef29
10569
10578
  } from "react";
10570
- import { createPortal as createPortal3 } from "react-dom";
10579
+ import { createPortal as createPortal4 } from "react-dom";
10571
10580
 
10572
10581
  // src/components/Modal/Modal.module.css
10573
10582
  var Modal_default = {
@@ -10609,7 +10618,7 @@ var Modal = ({
10609
10618
  onClose();
10610
10619
  }
10611
10620
  };
10612
- const themeContext = useContext17(ThemeContext);
10621
+ const themeContext = useContext18(ThemeContext);
10613
10622
  if (!themeContext) {
10614
10623
  throw new Error("Modal must be used within a ThemeProvider");
10615
10624
  }
@@ -10631,7 +10640,7 @@ var Modal = ({
10631
10640
  };
10632
10641
  useOnKeyDown(["Escape", "Esc"], () => handleClose());
10633
10642
  const hasTransitionedIn = useMountTransition(isOpen, 200);
10634
- return (isOpen || hasTransitionedIn) && portalTarget ? createPortal3(
10643
+ return (isOpen || hasTransitionedIn) && portalTarget ? createPortal4(
10635
10644
  /* @__PURE__ */ jsx301(
10636
10645
  Backdrop,
10637
10646
  {
@@ -10790,7 +10799,7 @@ function PaginationGenerator(pagesAmount, activePage) {
10790
10799
  // src/components/Select/Select.tsx
10791
10800
  import {
10792
10801
  useCallback as useCallback7,
10793
- useContext as useContext18,
10802
+ useContext as useContext19,
10794
10803
  useId as useId21
10795
10804
  } from "react";
10796
10805
  import {
@@ -11197,7 +11206,7 @@ function Select({
11197
11206
  hideSelectedOptions,
11198
11207
  ...rest
11199
11208
  }) {
11200
- const themeContext = useContext18(ThemeContext);
11209
+ const themeContext = useContext19(ThemeContext);
11201
11210
  if (!themeContext) {
11202
11211
  throw new Error("Select must be used within a ThemeProvider");
11203
11212
  }
@@ -12545,11 +12554,11 @@ var texts23 = createTexts({
12545
12554
 
12546
12555
  // src/components/Popover/Popover.tsx
12547
12556
  import {
12548
- useContext as useContext20,
12557
+ useContext as useContext21,
12549
12558
  useEffect as useEffect28,
12550
12559
  useId as useId24
12551
12560
  } from "react";
12552
- import { createPortal as createPortal4 } from "react-dom";
12561
+ import { createPortal as createPortal5 } from "react-dom";
12553
12562
 
12554
12563
  // src/components/Popover/Popover.module.css
12555
12564
  var Popover_default = {
@@ -12562,10 +12571,10 @@ var Popover_default = {
12562
12571
  // src/components/Popover/Popover.context.tsx
12563
12572
  import {
12564
12573
  createContext as createContext13,
12565
- useContext as useContext19
12574
+ useContext as useContext20
12566
12575
  } from "react";
12567
12576
  var PopoverContext = createContext13({});
12568
- var usePopoverContext = () => useContext19(PopoverContext);
12577
+ var usePopoverContext = () => useContext20(PopoverContext);
12569
12578
 
12570
12579
  // src/components/Popover/Popover.tsx
12571
12580
  import { jsx as jsx309, jsxs as jsxs120 } from "react/jsx-runtime";
@@ -12596,7 +12605,7 @@ var Popover = ({
12596
12605
  });
12597
12606
  const { maxHeight, maxWidth, minHeight, minWidth, height, width } = sizeProps;
12598
12607
  const context = usePopoverContext();
12599
- const themeContext = useContext20(ThemeContext);
12608
+ const themeContext = useContext21(ThemeContext);
12600
12609
  const portalTarget = parentElement != null ? parentElement : themeContext == null ? void 0 : themeContext.el;
12601
12610
  const {
12602
12611
  floatStyling: contextFloatStyling,
@@ -12710,7 +12719,7 @@ var Popover = ({
12710
12719
  ]
12711
12720
  }
12712
12721
  );
12713
- return isOpen || hasTransitionedIn ? portal && portalTarget ? createPortal4(popover, portalTarget) : popover : null;
12722
+ return isOpen || hasTransitionedIn ? portal && portalTarget ? createPortal5(popover, portalTarget) : popover : null;
12714
12723
  };
12715
12724
  Popover.displayName = "Popover";
12716
12725
 
@@ -12813,14 +12822,14 @@ import {
12813
12822
  } from "react";
12814
12823
 
12815
12824
  // src/components/ProgressTracker/ProgressTracker.context.tsx
12816
- import { createContext as createContext14, useContext as useContext21 } from "react";
12825
+ import { createContext as createContext14, useContext as useContext22 } from "react";
12817
12826
  var ProgressTrackerContext = createContext14(
12818
12827
  {
12819
12828
  activeStep: 0,
12820
12829
  direction: "column"
12821
12830
  }
12822
12831
  );
12823
- var useProgressTrackerContext = () => useContext21(ProgressTrackerContext);
12832
+ var useProgressTrackerContext = () => useContext22(ProgressTrackerContext);
12824
12833
 
12825
12834
  // src/components/ProgressTracker/ProgressTracker.module.css
12826
12835
  var ProgressTracker_default = {
@@ -13182,11 +13191,11 @@ import {
13182
13191
  // src/components/Search/AutocompleteSearch.context.tsx
13183
13192
  import {
13184
13193
  createContext as createContext15,
13185
- useContext as useContext22
13194
+ useContext as useContext23
13186
13195
  } from "react";
13187
13196
  var AutocompleteSearchContext = createContext15({});
13188
13197
  var useAutocompleteSearch = () => {
13189
- return useContext22(AutocompleteSearchContext);
13198
+ return useContext23(AutocompleteSearchContext);
13190
13199
  };
13191
13200
 
13192
13201
  // src/components/Search/Search.module.css
@@ -13728,12 +13737,12 @@ import {
13728
13737
  } from "react";
13729
13738
 
13730
13739
  // src/components/Table/collapsible/Table.context.tsx
13731
- import { createContext as createContext16, useContext as useContext23 } from "react";
13740
+ import { createContext as createContext16, useContext as useContext24 } from "react";
13732
13741
  var CollapsibleTableContext = createContext16({
13733
13742
  headerValues: [],
13734
13743
  definingColumnIndex: [0]
13735
13744
  });
13736
- var useCollapsibleTableContext = () => useContext23(CollapsibleTableContext);
13745
+ var useCollapsibleTableContext = () => useContext24(CollapsibleTableContext);
13737
13746
 
13738
13747
  // src/components/Table/normal/Body.tsx
13739
13748
  import { jsx as jsx321 } from "react/jsx-runtime";
@@ -13741,12 +13750,12 @@ var Body = (props) => /* @__PURE__ */ jsx321("tbody", { ...props });
13741
13750
  Body.displayName = "Table.Body";
13742
13751
 
13743
13752
  // src/components/Table/normal/Head.tsx
13744
- import { createContext as createContext17, useContext as useContext24 } from "react";
13753
+ import { createContext as createContext17, useContext as useContext25 } from "react";
13745
13754
  import { jsx as jsx322 } from "react/jsx-runtime";
13746
13755
  var Head = ({ children, ...rest }) => /* @__PURE__ */ jsx322("thead", { ...rest, children: /* @__PURE__ */ jsx322(HeadContext, { value: true, children }) });
13747
13756
  var HeadContext = createContext17(false);
13748
13757
  function useIsInTableHead() {
13749
- const isInTableHead = useContext24(HeadContext);
13758
+ const isInTableHead = useContext25(HeadContext);
13750
13759
  return isInTableHead;
13751
13760
  }
13752
13761
 
@@ -13912,14 +13921,14 @@ Table.displayName = "Table";
13912
13921
 
13913
13922
  // src/components/Table/normal/TableWrapper.tsx
13914
13923
  import {
13915
- useContext as useContext25,
13924
+ useContext as useContext26,
13916
13925
  useEffect as useEffect32,
13917
13926
  useRef as useRef35,
13918
13927
  useState as useState30
13919
13928
  } from "react";
13920
13929
  import { jsx as jsx328 } from "react/jsx-runtime";
13921
13930
  var TableWrapper = ({ className, ...rest }) => {
13922
- const themeContext = useContext25(ThemeContext);
13931
+ const themeContext = useContext26(ThemeContext);
13923
13932
  const container2 = themeContext == null ? void 0 : themeContext.el;
13924
13933
  const containerWidth = container2 ? container2.clientWidth : 0;
13925
13934
  const [overflowX, setOverflowX] = useState30(false);
@@ -14114,7 +14123,7 @@ CollapsibleTable2.Row = CollapsibleRow;
14114
14123
  import { useRef as useRef36 } from "react";
14115
14124
 
14116
14125
  // src/components/Tabs/Tabs.context.tsx
14117
- import { createContext as createContext18, useContext as useContext26 } from "react";
14126
+ import { createContext as createContext18, useContext as useContext27 } from "react";
14118
14127
  var TabsContext = createContext18({
14119
14128
  activeTab: 0,
14120
14129
  tabsId: "",
@@ -14127,7 +14136,7 @@ var TabsContext = createContext18({
14127
14136
  tabContentDirection: "row",
14128
14137
  addTabButtonProps: void 0
14129
14138
  });
14130
- var useTabsContext = () => useContext26(TabsContext);
14139
+ var useTabsContext = () => useContext27(TabsContext);
14131
14140
 
14132
14141
  // src/components/Tabs/Tabs.module.css
14133
14142
  var Tabs_default = {
@@ -14147,7 +14156,7 @@ var Tabs_default = {
14147
14156
  // src/components/Tabs/TabWidthContext.tsx
14148
14157
  import {
14149
14158
  createContext as createContext19,
14150
- useContext as useContext27,
14159
+ useContext as useContext28,
14151
14160
  useLayoutEffect as useLayoutEffect4
14152
14161
  } from "react";
14153
14162
  import { jsx as jsx331 } from "react/jsx-runtime";
@@ -14180,7 +14189,7 @@ function TabWidthContextProvider({
14180
14189
  );
14181
14190
  }
14182
14191
  function useSetTabWidth(index, width) {
14183
- const context = useContext27(TabContext);
14192
+ const context = useContext28(TabContext);
14184
14193
  useLayoutEffect4(() => {
14185
14194
  context == null ? void 0 : context.updateWidth(index, width);
14186
14195
  return () => context == null ? void 0 : context.removeTab(index);
@@ -14829,12 +14838,12 @@ TextInput.displayName = "TextInput";
14829
14838
  import { useId as useId30, useState as useState35 } from "react";
14830
14839
 
14831
14840
  // src/components/ToggleBar/ToggleBar.context.tsx
14832
- import { createContext as createContext20, useContext as useContext28 } from "react";
14841
+ import { createContext as createContext20, useContext as useContext29 } from "react";
14833
14842
  var ToggleBarContext = createContext20({
14834
14843
  size: "medium",
14835
14844
  purpose: "primary"
14836
14845
  });
14837
- var useToggleBarContext = () => useContext28(ToggleBarContext);
14846
+ var useToggleBarContext = () => useContext29(ToggleBarContext);
14838
14847
 
14839
14848
  // src/components/ToggleBar/ToggleBar.module.css
14840
14849
  var ToggleBar_default = {