@dbcdk/react-components 0.0.98 → 0.0.101

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.css CHANGED
@@ -2018,13 +2018,13 @@
2018
2018
  block-size: var(--icon-size-sm);
2019
2019
  }
2020
2020
 
2021
- /* src/components/page-layout/components/layout-footer/LayoutFooter.module.css */
2022
- .LayoutFooter_footer {
2021
+ /* src/components/page-layout/components/footer/Footer.module.css */
2022
+ .Footer_footer {
2023
2023
  inline-size: 100%;
2024
2024
  background: var(--color-bg-surface-subtle);
2025
2025
  line-height: var(--line-height-normal);
2026
2026
  }
2027
- .LayoutFooter_inner {
2027
+ .Footer_inner {
2028
2028
  inline-size: 100%;
2029
2029
  max-inline-size: var(--container-xl);
2030
2030
  margin-inline: auto;
@@ -2035,22 +2035,22 @@
2035
2035
  align-items: flex-start;
2036
2036
  gap: var(--spacing-2xl);
2037
2037
  }
2038
- .LayoutFooter_brand {
2038
+ .Footer_brand {
2039
2039
  display: flex;
2040
2040
  flex-direction: column;
2041
2041
  gap: var(--spacing-xs);
2042
2042
  flex-shrink: 0;
2043
2043
  }
2044
- .LayoutFooter_logoRow {
2044
+ .Footer_logoRow {
2045
2045
  flex-shrink: 0;
2046
2046
  }
2047
- .LayoutFooter_logoRow svg {
2047
+ .Footer_logoRow svg {
2048
2048
  height: 24px;
2049
2049
  width: auto;
2050
2050
  color: var(--color-brand);
2051
2051
  display: block;
2052
2052
  }
2053
- .LayoutFooter_meta {
2053
+ .Footer_meta {
2054
2054
  font-style: normal;
2055
2055
  margin: 0;
2056
2056
  color: var(--color-fg-subtle);
@@ -2059,39 +2059,39 @@
2059
2059
  flex-direction: column;
2060
2060
  gap: 1px;
2061
2061
  }
2062
- .LayoutFooter_part {
2062
+ .Footer_part {
2063
2063
  white-space: nowrap;
2064
2064
  }
2065
- .LayoutFooter_links {
2065
+ .Footer_links {
2066
2066
  display: flex;
2067
2067
  flex-direction: column;
2068
2068
  align-items: flex-start;
2069
2069
  gap: 0;
2070
2070
  line-height: var(--line-height-normal);
2071
2071
  }
2072
- .LayoutFooter_linkGroup {
2072
+ .Footer_linkGroup {
2073
2073
  display: flex;
2074
2074
  flex-direction: column;
2075
2075
  align-items: flex-start;
2076
2076
  gap: var(--spacing-2xs);
2077
2077
  }
2078
- .LayoutFooter_linkGroup + .LayoutFooter_linkGroup {
2078
+ .Footer_linkGroup + .Footer_linkGroup {
2079
2079
  margin-block-start: var(--spacing-sm);
2080
2080
  padding-inline: 0;
2081
2081
  border-inline-start: none;
2082
2082
  }
2083
- .LayoutFooter_linkItem {
2083
+ .Footer_linkItem {
2084
2084
  white-space: nowrap;
2085
2085
  }
2086
2086
  @media (max-width: 640px) {
2087
- .LayoutFooter_inner {
2087
+ .Footer_inner {
2088
2088
  flex-direction: column;
2089
2089
  gap: var(--spacing-md);
2090
2090
  }
2091
- .LayoutFooter_linkGroup {
2091
+ .Footer_linkGroup {
2092
2092
  padding-inline: 0;
2093
2093
  }
2094
- .LayoutFooter_linkGroup:first-child {
2094
+ .Footer_linkGroup:first-child {
2095
2095
  padding-inline-start: 0;
2096
2096
  }
2097
2097
  }
@@ -2786,11 +2786,13 @@
2786
2786
  min-width: 0;
2787
2787
  }
2788
2788
  .Page_content {
2789
- flex: 1 1 auto;
2790
2789
  min-height: 0;
2791
2790
  min-width: 0;
2792
2791
  overflow: auto;
2793
2792
  }
2793
+ .Page_contentLoading {
2794
+ flex: 1 1 auto;
2795
+ }
2794
2796
  .Page_documentScrolling .Page_content {
2795
2797
  overflow: visible;
2796
2798
  }
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ export * from './components/tabs/Tabs';
11
11
  export * from './components/headline/Headline';
12
12
  export * from './components/headline/CollapsibleHeadline';
13
13
  export * from './components/page-layout/PageLayout';
14
- export * from './components/page-layout/components/layout-footer/LayoutFooter';
14
+ export * from './components/page-layout/components/footer/Footer';
15
15
  export * from './components/forms/input/Input';
16
16
  export * from './components/search-box/SearchBox';
17
17
  export * from './hooks/useTheme';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import * as React20 from 'react';
2
- import React20__default, { forwardRef, createContext, useId, useState, useRef, useEffect, useCallback, useImperativeHandle, useLayoutEffect, useMemo, useContext, Children, isValidElement, Fragment as Fragment$1 } from 'react';
1
+ import * as React19 from 'react';
2
+ import React19__default, { forwardRef, createContext, useId, useState, useRef, useEffect, useCallback, useImperativeHandle, useLayoutEffect, useMemo, useContext, Children, isValidElement, Fragment as Fragment$1 } from 'react';
3
3
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
4
  import { LoaderCircle, Search, X, ChevronLeft, ChevronRight, Clock, Calendar, ChevronUp, ChevronDown, Check, Building2, CircleAlert, Info, CircleX, CircleCheck, Menu as Menu$1, ChevronsLeft, ArrowLeft, ArrowRight, ChevronsRight, Square, TextWrap, Palette, Copy, Monitor, Sun, Moon, ArrowUp, ArrowDown, Settings2 } from 'lucide-react';
5
5
  import { createPortal } from 'react-dom';
@@ -430,7 +430,7 @@ function mergeRefs(...refs) {
430
430
  }
431
431
  };
432
432
  }
433
- var Button = React20.forwardRef(function Button2({
433
+ var Button = React19.forwardRef(function Button2({
434
434
  variant = "outlined",
435
435
  shape = "default",
436
436
  size = "md",
@@ -459,8 +459,8 @@ var Button = React20.forwardRef(function Button2({
459
459
  userClassName
460
460
  );
461
461
  const tooltipEnabled = Boolean(tooltip);
462
- const childRef = isLink && React20.isValidElement(children) ? (_a = children.ref) != null ? _a : null : null;
463
- const mergedRef = React20.useMemo(() => mergeRefs(childRef, ref), [childRef, ref]);
462
+ const childRef = isLink && React19.isValidElement(children) ? (_a = children.ref) != null ? _a : null : null;
463
+ const mergedRef = React19.useMemo(() => mergeRefs(childRef, ref), [childRef, ref]);
464
464
  const { triggerProps, id: tooltipId } = useTooltipTrigger({
465
465
  content: tooltipEnabled ? tooltip : null,
466
466
  placement: tooltipPlacement,
@@ -477,7 +477,7 @@ var Button = React20.forwardRef(function Button2({
477
477
  loading && /* @__PURE__ */ jsx("span", { style: { display: "flex", opacity: 0.5 }, className: "spin", children: /* @__PURE__ */ jsx(LoaderCircle, {}) })
478
478
  ] });
479
479
  let buttonEl;
480
- if (isLink && React20.isValidElement(children)) {
480
+ if (isLink && React19.isValidElement(children)) {
481
481
  const childClassName = typeof children.props.className === "string" ? children.props.className : "";
482
482
  const { disabled, onClick, ...linkButtonProps } = buttonProps;
483
483
  const handleClick = (e) => {
@@ -487,7 +487,7 @@ var Button = React20.forwardRef(function Button2({
487
487
  }
488
488
  onClick == null ? void 0 : onClick(e);
489
489
  };
490
- buttonEl = React20.cloneElement(children, {
490
+ buttonEl = React19.cloneElement(children, {
491
491
  ...linkButtonProps,
492
492
  ref: mergedRef,
493
493
  className: cx(childClassName, computedClassName, Button_default.buttonLink),
@@ -1054,7 +1054,7 @@ var Popover = forwardRef(function Popover2({
1054
1054
  (_b = (_a = triggerElRef.current) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
1055
1055
  }, [isOpen, returnFocus]);
1056
1056
  const icon = isOpen ? /* @__PURE__ */ jsx(ChevronUp, { className: "dbc-muted-text", size: 20 }) : /* @__PURE__ */ jsx(ChevronDown, { className: "dbc-muted-text", size: 20 });
1057
- const setOverlayRef = React20.useCallback(
1057
+ const setOverlayRef = React19.useCallback(
1058
1058
  (node) => {
1059
1059
  assignRef(overlayRef, node);
1060
1060
  },
@@ -1238,12 +1238,12 @@ function Avatar({
1238
1238
  "--text": SeverityTextColor[color],
1239
1239
  "--size": fullWidth ? "100%" : sizes[size]
1240
1240
  };
1241
- const pathId = React20.useId();
1241
+ const pathId = React19.useId();
1242
1242
  const renderImage = () => {
1243
1243
  if (image) {
1244
- if (React20.isValidElement(image)) {
1244
+ if (React19.isValidElement(image)) {
1245
1245
  const mergedClass = [image.props.className, Avatar_default.image].filter(Boolean).join(" ");
1246
- return React20.cloneElement(image, { className: mergedClass });
1246
+ return React19.cloneElement(image, { className: mergedClass });
1247
1247
  }
1248
1248
  return /* @__PURE__ */ jsx("span", { className: Avatar_default.imageSlot, children: image });
1249
1249
  }
@@ -1566,9 +1566,9 @@ var INTERACTIVE_SELECTOR = 'a:not([disabled]), button:not([disabled]), [tabindex
1566
1566
  function getMenuItems(el) {
1567
1567
  return Array.from(el.querySelectorAll(INTERACTIVE_SELECTOR));
1568
1568
  }
1569
- var MenuBase = React20.forwardRef(
1569
+ var MenuBase = React19.forwardRef(
1570
1570
  ({ children, className, itemRole = "menuitem", gap, onKeyDown, ...props }, ref) => {
1571
- const internalRef = React20.useRef(null);
1571
+ const internalRef = React19.useRef(null);
1572
1572
  const handleKeyDown = (e) => {
1573
1573
  const ul = internalRef.current;
1574
1574
  if (!ul) return;
@@ -1611,16 +1611,16 @@ var MenuBase = React20.forwardRef(
1611
1611
  }
1612
1612
  );
1613
1613
  MenuBase.displayName = "Menu";
1614
- var isInteractiveEl = (el) => React20.isValidElement(el) && (typeof el.type === "string" ? el.type === "a" || el.type === "button" : true);
1614
+ var isInteractiveEl = (el) => React19.isValidElement(el) && (typeof el.type === "string" ? el.type === "a" || el.type === "button" : true);
1615
1615
  function applyMenuItemPropsToElement(child, opts) {
1616
1616
  var _a, _b, _c, _d;
1617
1617
  const { active, selected, disabled, role, tabIndex = 0, className } = opts;
1618
1618
  const childClass = [Menu_default.item, active ? Menu_default.active : "", selected ? Menu_default.selected : ""].filter(Boolean).join(" ");
1619
- const nextImmediate = React20.cloneElement(child, {
1619
+ const nextImmediate = React19.cloneElement(child, {
1620
1620
  className: [child.props.className, Menu_default.interactiveChild, className].filter(Boolean).join(" ")
1621
1621
  });
1622
1622
  if (typeof child.type === "string" && (child.type === "a" || child.type === "button")) {
1623
- return React20.cloneElement(child, {
1623
+ return React19.cloneElement(child, {
1624
1624
  role: (_a = child.props.role) != null ? _a : role,
1625
1625
  tabIndex: (_b = child.props.tabIndex) != null ? _b : tabIndex,
1626
1626
  "aria-selected": selected || void 0,
@@ -1629,7 +1629,7 @@ function applyMenuItemPropsToElement(child, opts) {
1629
1629
  ...child.type === "button" ? { disabled } : {}
1630
1630
  });
1631
1631
  }
1632
- return React20.cloneElement(nextImmediate, {
1632
+ return React19.cloneElement(nextImmediate, {
1633
1633
  role: (_c = nextImmediate.props.role) != null ? _c : role,
1634
1634
  tabIndex: (_d = nextImmediate.props.tabIndex) != null ? _d : tabIndex,
1635
1635
  "aria-selected": selected || void 0,
@@ -1638,7 +1638,7 @@ function applyMenuItemPropsToElement(child, opts) {
1638
1638
  disabled
1639
1639
  });
1640
1640
  }
1641
- var MenuItem = React20.forwardRef(
1641
+ var MenuItem = React19.forwardRef(
1642
1642
  ({ children, active, selected, disabled, className, itemRole, variant, ...liProps }, ref) => {
1643
1643
  const resolvedRole = itemRole != null ? itemRole : "menuitem";
1644
1644
  const isBordered = variant === "bordered";
@@ -1676,7 +1676,7 @@ var MenuItem = React20.forwardRef(
1676
1676
  }
1677
1677
  );
1678
1678
  MenuItem.displayName = "Menu.Item";
1679
- var MenuCheckItem = React20.forwardRef(
1679
+ var MenuCheckItem = React19.forwardRef(
1680
1680
  ({
1681
1681
  label,
1682
1682
  checked,
@@ -1742,7 +1742,7 @@ var MenuCheckItem = React20.forwardRef(
1742
1742
  }
1743
1743
  );
1744
1744
  MenuCheckItem.displayName = "Menu.CheckItem";
1745
- var MenuRadioItem = React20.forwardRef(
1745
+ var MenuRadioItem = React19.forwardRef(
1746
1746
  ({ name, value, checked, disabled, label, onValueChange, className, ...liProps }, ref) => {
1747
1747
  return /* @__PURE__ */ jsx(
1748
1748
  "li",
@@ -1782,7 +1782,7 @@ var MenuRadioItem = React20.forwardRef(
1782
1782
  }
1783
1783
  );
1784
1784
  MenuRadioItem.displayName = "Menu.RadioItem";
1785
- var MenuSeparator = React20.forwardRef(
1785
+ var MenuSeparator = React19.forwardRef(
1786
1786
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1787
1787
  "li",
1788
1788
  {
@@ -1794,7 +1794,7 @@ var MenuSeparator = React20.forwardRef(
1794
1794
  )
1795
1795
  );
1796
1796
  MenuSeparator.displayName = "Menu.Separator";
1797
- var MenuHeader = React20.forwardRef(
1797
+ var MenuHeader = React19.forwardRef(
1798
1798
  ({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
1799
1799
  "li",
1800
1800
  {
@@ -2762,12 +2762,12 @@ function Hyperlink(props) {
2762
2762
  inline ? "" : Hyperlink_default.block
2763
2763
  );
2764
2764
  if (asChild) {
2765
- const child = React20.Children.only(children);
2766
- if (!React20.isValidElement(child)) {
2765
+ const child = React19.Children.only(children);
2766
+ if (!React19.isValidElement(child)) {
2767
2767
  throw new Error("Hyperlink with asChild expects a single valid React element as its child.");
2768
2768
  }
2769
2769
  const childProps = (_a = child.props) != null ? _a : {};
2770
- return React20.cloneElement(child, {
2770
+ return React19.cloneElement(child, {
2771
2771
  ...childProps,
2772
2772
  ...rest,
2773
2773
  className: cx2(childProps.className, linkClassName),
@@ -2802,15 +2802,15 @@ function Hyperlink(props) {
2802
2802
  );
2803
2803
  }
2804
2804
 
2805
- // src/components/page-layout/components/layout-footer/LayoutFooter.module.css
2806
- var LayoutFooter_default = {
2807
- footer: "LayoutFooter_footer",
2808
- inner: "LayoutFooter_inner",
2809
- brand: "LayoutFooter_brand",
2810
- logoRow: "LayoutFooter_logoRow",
2811
- meta: "LayoutFooter_meta",
2812
- part: "LayoutFooter_part",
2813
- links: "LayoutFooter_links"};
2805
+ // src/components/page-layout/components/footer/Footer.module.css
2806
+ var Footer_default = {
2807
+ footer: "Footer_footer",
2808
+ inner: "Footer_inner",
2809
+ brand: "Footer_brand",
2810
+ logoRow: "Footer_logoRow",
2811
+ meta: "Footer_meta",
2812
+ part: "Footer_part",
2813
+ links: "Footer_links"};
2814
2814
  var DEFAULT_META_PARTS = [
2815
2815
  "Tempovej 7-11",
2816
2816
  "DK-2750 Ballerup",
@@ -2822,23 +2822,23 @@ var DEFAULT_LINKS = [
2822
2822
  label: "Kundeservice",
2823
2823
  href: "https://kundeservice.dbc.dk",
2824
2824
  external: true
2825
- },
2826
- {
2827
- label: "Cookies",
2828
- href: "/cookies"
2829
2825
  }
2830
2826
  ];
2831
- function LayoutFooter({
2827
+ function Footer({
2832
2828
  links = DEFAULT_LINKS,
2833
2829
  metaParts = DEFAULT_META_PARTS,
2830
+ version,
2834
2831
  extraLinks
2835
2832
  }) {
2836
- return /* @__PURE__ */ jsx("footer", { className: LayoutFooter_default.footer, children: /* @__PURE__ */ jsxs("div", { className: LayoutFooter_default.inner, children: [
2837
- /* @__PURE__ */ jsxs("div", { className: LayoutFooter_default.brand, children: [
2838
- /* @__PURE__ */ jsx("div", { className: LayoutFooter_default.logoRow, children: /* @__PURE__ */ jsx(Logo, {}) }),
2839
- /* @__PURE__ */ jsx("address", { className: LayoutFooter_default.meta, children: metaParts.map((part) => /* @__PURE__ */ jsx("span", { className: LayoutFooter_default.part, children: part }, part)) })
2833
+ const displayMetaParts = version && metaParts.length > 0 ? metaParts.map(
2834
+ (part, index) => index === metaParts.length - 1 ? `${part} \xB7 ${version}` : part
2835
+ ) : metaParts;
2836
+ return /* @__PURE__ */ jsx("footer", { className: Footer_default.footer, children: /* @__PURE__ */ jsxs("div", { className: Footer_default.inner, children: [
2837
+ /* @__PURE__ */ jsxs("div", { className: Footer_default.brand, children: [
2838
+ /* @__PURE__ */ jsx("div", { className: Footer_default.logoRow, children: /* @__PURE__ */ jsx(Logo, {}) }),
2839
+ /* @__PURE__ */ jsx("address", { className: Footer_default.meta, children: displayMetaParts.map((part) => /* @__PURE__ */ jsx("span", { className: Footer_default.part, children: part }, part)) })
2840
2840
  ] }),
2841
- /* @__PURE__ */ jsxs("nav", { className: LayoutFooter_default.links, "aria-label": "Footer navigation", children: [
2841
+ /* @__PURE__ */ jsxs("nav", { className: Footer_default.links, "aria-label": "Footer navigation", children: [
2842
2842
  extraLinks && extraLinks.length > 0 && (extraLinks == null ? void 0 : extraLinks.map((link, index) => /* @__PURE__ */ jsx("span", { children: link }, index))),
2843
2843
  links.map((link) => /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
2844
2844
  Hyperlink,
@@ -3156,14 +3156,14 @@ var SearchBox = forwardRef(function SearchBoxInner({
3156
3156
  return () => window.removeEventListener("keydown", handleKeyDown);
3157
3157
  }
3158
3158
  }, [enableHotkey]);
3159
- const handleChange = React20__default.useCallback(
3159
+ const handleChange = React19__default.useCallback(
3160
3160
  (e) => {
3161
3161
  setDraft(e.target.value);
3162
3162
  onChange == null ? void 0 : onChange(e);
3163
3163
  },
3164
3164
  [onChange]
3165
3165
  );
3166
- const handleSelect = React20__default.useCallback(
3166
+ const handleSelect = React19__default.useCallback(
3167
3167
  (item) => {
3168
3168
  onSelect == null ? void 0 : onSelect(item);
3169
3169
  reset();
@@ -3177,7 +3177,7 @@ var SearchBox = forwardRef(function SearchBoxInner({
3177
3177
  setActiveIndex(null);
3178
3178
  (_a = popoverRef.current) == null ? void 0 : _a.close();
3179
3179
  }
3180
- const handleClear = React20__default.useCallback(() => {
3180
+ const handleClear = React19__default.useCallback(() => {
3181
3181
  var _a;
3182
3182
  reset();
3183
3183
  onSearch == null ? void 0 : onSearch("");
@@ -3661,6 +3661,7 @@ var Page_default = {
3661
3661
  disableTopPadding: "Page_disableTopPadding",
3662
3662
  headerMain: "Page_headerMain",
3663
3663
  content: "Page_content",
3664
+ contentLoading: "Page_contentLoading",
3664
3665
  disableContentBox: "Page_disableContentBox"
3665
3666
  };
3666
3667
 
@@ -3716,7 +3717,13 @@ function Page({
3716
3717
  }
3717
3718
  ) : null
3718
3719
  ] }) }),
3719
- /* @__PURE__ */ jsx("div", { className: `${Page_default.content} ${disableContentBox ? Page_default.disableContentBox : ""}`, children: loading ? /* @__PURE__ */ jsx(SkeletonLoader, { type: "squares", rows: 1, columns: 1 }) : children })
3720
+ /* @__PURE__ */ jsx(
3721
+ "div",
3722
+ {
3723
+ className: `${Page_default.content} ${loading ? Page_default.contentLoading : ""} ${disableContentBox ? Page_default.disableContentBox : ""}`,
3724
+ children: loading ? /* @__PURE__ */ jsx(SkeletonLoader, { type: "squares", rows: 1, columns: 1 }) : children
3725
+ }
3726
+ )
3720
3727
  ]
3721
3728
  }
3722
3729
  );
@@ -5150,7 +5157,7 @@ function SidebarItemContent({
5150
5157
  const shouldTruncate = truncateLabel && !wrapItemText && !activeQuery;
5151
5158
  const highlightTerms = activeQuery.trim().split(/\s+/).filter(Boolean);
5152
5159
  const renderedLabel = typeof label === "string" && highlightTerms.length > 0 ? getHighlightedSegments(label, highlightTerms).map(
5153
- (segment, index) => segment.matched ? /* @__PURE__ */ jsx("mark", { className: "dbc-highlight", children: segment.text }, `${segment.text}-${index}`) : /* @__PURE__ */ jsx(React20__default.Fragment, { children: segment.text }, `${segment.text}-${index}`)
5160
+ (segment, index) => segment.matched ? /* @__PURE__ */ jsx("mark", { className: "dbc-highlight", children: segment.text }, `${segment.text}-${index}`) : /* @__PURE__ */ jsx(React19__default.Fragment, { children: segment.text }, `${segment.text}-${index}`)
5154
5161
  ) : label;
5155
5162
  return /* @__PURE__ */ jsxs(
5156
5163
  "span",
@@ -5366,7 +5373,7 @@ var SidenavFiltering = ({
5366
5373
  wrapItemText,
5367
5374
  setWrapItemText
5368
5375
  } = useSidebar();
5369
- const searchBoxRef = React20__default.useRef(null);
5376
+ const searchBoxRef = React19__default.useRef(null);
5370
5377
  const handleSearch = (value) => {
5371
5378
  setActiveQuery == null ? void 0 : setActiveQuery(value);
5372
5379
  };
@@ -6293,12 +6300,12 @@ function Typeahead({
6293
6300
  const [query, setQuery] = useState("");
6294
6301
  const [activeIndex, setActiveIndex] = useState(-1);
6295
6302
  const [hideSelectedHighlight, setHideSelectedHighlight] = useState(false);
6296
- const clearJustClearedAfterEventCycle = React20.useCallback(() => {
6303
+ const clearJustClearedAfterEventCycle = React19.useCallback(() => {
6297
6304
  requestAnimationFrame(() => {
6298
6305
  justClearedRef.current = false;
6299
6306
  });
6300
6307
  }, []);
6301
- const getSelectedValueChipLabel = React20.useCallback(
6308
+ const getSelectedValueChipLabel = React19.useCallback(
6302
6309
  (option) => {
6303
6310
  switch (multiSelectedValueChipContent) {
6304
6311
  case "value":
@@ -6325,7 +6332,7 @@ function Typeahead({
6325
6332
  );
6326
6333
  }
6327
6334
  }
6328
- const commitSelection = React20.useCallback(
6335
+ const commitSelection = React19.useCallback(
6329
6336
  (option) => {
6330
6337
  var _a2, _b2;
6331
6338
  locallyClearedRef.current = false;
@@ -6450,7 +6457,7 @@ function Typeahead({
6450
6457
  setInputValue((_a2 = selectedOption == null ? void 0 : selectedOption.label) != null ? _a2 : "");
6451
6458
  }
6452
6459
  }, [selectedOption, mode]);
6453
- const getSelectedIndex = React20.useCallback(
6460
+ const getSelectedIndex = React19.useCallback(
6454
6461
  (items) => {
6455
6462
  if (items.length === 0) return -1;
6456
6463
  if (locallyClearedRef.current) return 0;
@@ -6478,7 +6485,7 @@ function Typeahead({
6478
6485
  const activeEl = (_a2 = document.getElementById(listboxId)) == null ? void 0 : _a2.querySelector(`#${CSS.escape(`${listboxId}-option-${activeIndex}`)}`);
6479
6486
  (_b2 = activeEl == null ? void 0 : activeEl.scrollIntoView) == null ? void 0 : _b2.call(activeEl, { block: "nearest" });
6480
6487
  }, [open, activeIndex, filteredOptions, listboxId]);
6481
- const getFocusableElements = React20.useCallback(() => {
6488
+ const getFocusableElements = React19.useCallback(() => {
6482
6489
  const selector = [
6483
6490
  "a[href]",
6484
6491
  "button:not([disabled])",
@@ -6502,12 +6509,12 @@ function Typeahead({
6502
6509
  }
6503
6510
  return focusables;
6504
6511
  }, []);
6505
- const isFocusWithinTypeahead = React20.useCallback((target) => {
6512
+ const isFocusWithinTypeahead = React19.useCallback((target) => {
6506
6513
  var _a2, _b2;
6507
6514
  if (!(target instanceof Node)) return false;
6508
6515
  return Boolean(((_a2 = rootRef.current) == null ? void 0 : _a2.contains(target)) || ((_b2 = popoverContentRef.current) == null ? void 0 : _b2.contains(target)));
6509
6516
  }, []);
6510
- const handleTabKeyDown = React20.useCallback(
6517
+ const handleTabKeyDown = React19.useCallback(
6511
6518
  (event) => {
6512
6519
  var _a2, _b2, _c;
6513
6520
  if (event.key !== "Tab" || !open) return;
@@ -6581,23 +6588,23 @@ function Typeahead({
6581
6588
  setOpen(false);
6582
6589
  setActiveIndex(-1);
6583
6590
  };
6584
- const openWithAllOptions = React20.useCallback(() => {
6591
+ const openWithAllOptions = React19.useCallback(() => {
6585
6592
  if (justClearedRef.current) return;
6586
6593
  setQuery("");
6587
6594
  setOpen(true);
6588
6595
  setActiveIndex(getSelectedIndex(options));
6589
6596
  }, [getSelectedIndex, options]);
6590
- const openWithCurrentFilter = React20.useCallback(() => {
6597
+ const openWithCurrentFilter = React19.useCallback(() => {
6591
6598
  if (justClearedRef.current) return;
6592
6599
  setOpen(true);
6593
6600
  setActiveIndex(getSelectedIndex(filteredOptions));
6594
6601
  }, [getSelectedIndex, filteredOptions]);
6595
- const prepareSingleSearchInput = React20.useCallback(() => {
6602
+ const prepareSingleSearchInput = React19.useCallback(() => {
6596
6603
  if (mode !== "single" || !selectedOption || justClearedRef.current) return;
6597
6604
  setInputValue("");
6598
6605
  setQuery("");
6599
6606
  }, [mode, selectedOption]);
6600
- const handleOpen = React20.useCallback(() => {
6607
+ const handleOpen = React19.useCallback(() => {
6601
6608
  if (justClearedRef.current) return;
6602
6609
  if (mode === "single" && selectedOption && !locallyClearedRef.current) {
6603
6610
  prepareSingleSearchInput();
@@ -6606,7 +6613,7 @@ function Typeahead({
6606
6613
  }
6607
6614
  openWithCurrentFilter();
6608
6615
  }, [mode, selectedOption, prepareSingleSearchInput, openWithAllOptions, openWithCurrentFilter]);
6609
- const handleTriggerMouseDown = React20.useCallback(
6616
+ const handleTriggerMouseDown = React19.useCallback(
6610
6617
  (e) => {
6611
6618
  var _a2;
6612
6619
  inputPropsOnMouseDown == null ? void 0 : inputPropsOnMouseDown(e);
@@ -6647,7 +6654,7 @@ function Typeahead({
6647
6654
  filteredOptions
6648
6655
  ]
6649
6656
  );
6650
- const handleChevronMouseDown = React20.useCallback(
6657
+ const handleChevronMouseDown = React19.useCallback(
6651
6658
  (e) => {
6652
6659
  var _a2, _b2;
6653
6660
  e.preventDefault();
@@ -8810,7 +8817,7 @@ function AttributeChip({
8810
8817
  /* @__PURE__ */ jsx("span", { className: AttributeChip_default.value, children: loading ? "\u2014" : value == null ? void 0 : value.toString() })
8811
8818
  ] });
8812
8819
  }
8813
- var SplitPaneContext = React20__default.createContext(null);
8820
+ var SplitPaneContext = React19__default.createContext(null);
8814
8821
  function clamp3(n, min, max) {
8815
8822
  return Math.max(min, Math.min(max, n));
8816
8823
  }
@@ -8837,7 +8844,7 @@ function removeStoredSize(key) {
8837
8844
  }
8838
8845
  }
8839
8846
  function useSplitPaneContext() {
8840
- const ctx = React20__default.useContext(SplitPaneContext);
8847
+ const ctx = React19__default.useContext(SplitPaneContext);
8841
8848
  if (!ctx) throw new Error("SplitPane components must be used within <SplitPane />");
8842
8849
  return ctx;
8843
8850
  }
@@ -10312,7 +10319,7 @@ function ChipMultiToggle({
10312
10319
  type = "rounded",
10313
10320
  dataCy
10314
10321
  }) {
10315
- const selectedSet = React20__default.useMemo(() => new Set(selectedValues), [selectedValues]);
10322
+ const selectedSet = React19__default.useMemo(() => new Set(selectedValues), [selectedValues]);
10316
10323
  const isNoneSelected = allTogglesNone && selectedSet.has(noneValue);
10317
10324
  const isAllSelected = showAllOption && !isNoneSelected && selectedSet.size === 0;
10318
10325
  const toggleValue = (value) => {
@@ -12717,4 +12724,4 @@ function Alert({
12717
12724
  );
12718
12725
  }
12719
12726
 
12720
- export { Accordion, Alert, AppHeader, AttributeChip, Avatar, Breadcrumbs, Button, ButtonSelect, Card, CardContainer, ChartSemanticColorVar, Checkbox, CheckboxGroup, Chip, ChipMultiToggle, Circle, CodeBlock, CollapsibleHeadline, CopyButton, DateTimePicker, Divider, FadeOverlay, FilterField, Grid, GridItem, Headline, Hyperlink, Icon, Input, InputContainer, IntervalSelect, JsonViewer, LayoutFooter, Menu, MetaBar, Modal, ModalProvider, MultiSelect, NUMBER_OPERATORS, NavBar, Page, PageLayout, Pagination, Panel, Popover, RadioButton, RadioButtonGroup, SearchBox, SegmentedProgressBar, Select, SeverityIcon, SidePanel, Sidebar, SkeletonLoader, SkeletonLoaderItem, SplitButton, SplitPane, SplitPaneGutter, SplitPanePrimary, SplitPaneSecondary, Stack, StatePage, StickyFooterLayout, Table, Tabs, Textarea, ThemeButton, ThemeMenuSection, Toast, ToastProvider, Tooltip, TooltipContext, TooltipProvider, Typeahead, UserDisplay, formatDate, nestedFiltering, useDeviceSize, useModal, useOptionalToast, usePagination, useSidePanel, useSorting, useTableData, useTableSelection, useTheme, useTimeDuration, useToast, useTooltipTrigger, useViewportFill };
12727
+ export { Accordion, Alert, AppHeader, AttributeChip, Avatar, Breadcrumbs, Button, ButtonSelect, Card, CardContainer, ChartSemanticColorVar, Checkbox, CheckboxGroup, Chip, ChipMultiToggle, Circle, CodeBlock, CollapsibleHeadline, CopyButton, DateTimePicker, Divider, FadeOverlay, FilterField, Footer, Grid, GridItem, Headline, Hyperlink, Icon, Input, InputContainer, IntervalSelect, JsonViewer, Menu, MetaBar, Modal, ModalProvider, MultiSelect, NUMBER_OPERATORS, NavBar, Page, PageLayout, Pagination, Panel, Popover, RadioButton, RadioButtonGroup, SearchBox, SegmentedProgressBar, Select, SeverityIcon, SidePanel, Sidebar, SkeletonLoader, SkeletonLoaderItem, SplitButton, SplitPane, SplitPaneGutter, SplitPanePrimary, SplitPaneSecondary, Stack, StatePage, StickyFooterLayout, Table, Tabs, Textarea, ThemeButton, ThemeMenuSection, Toast, ToastProvider, Tooltip, TooltipContext, TooltipProvider, Typeahead, UserDisplay, formatDate, nestedFiltering, useDeviceSize, useModal, useOptionalToast, usePagination, useSidePanel, useSorting, useTableData, useTableSelection, useTheme, useTimeDuration, useToast, useTooltipTrigger, useViewportFill };