@uniformdev/design-system 19.68.1-alpha.27 → 19.72.2-alpha.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/esm/index.js CHANGED
@@ -2286,7 +2286,7 @@ var IntegrationHeaderSection = ({
2286
2286
  icon,
2287
2287
  docsLink,
2288
2288
  badgeText,
2289
- menu: menu2,
2289
+ menu,
2290
2290
  children,
2291
2291
  ...props
2292
2292
  }) => {
@@ -2301,7 +2301,7 @@ var IntegrationHeaderSection = ({
2301
2301
  /* @__PURE__ */ jsxs5("div", { css: IntegrationHeaderSectionTitleGroup, "data-testid": "integration-header-text", children: [
2302
2302
  /* @__PURE__ */ jsx13("h1", { css: IntegrationHeaderSectionTitle, children: title2 }),
2303
2303
  badgeText ? /* @__PURE__ */ jsx13(Badge, { text: badgeText }) : null,
2304
- menu2 ? /* @__PURE__ */ jsx13("div", { children: menu2 }) : null,
2304
+ menu ? /* @__PURE__ */ jsx13("div", { children: menu }) : null,
2305
2305
  docsLink ? /* @__PURE__ */ jsx13(
2306
2306
  Link,
2307
2307
  {
@@ -11524,13 +11524,13 @@ var HorizontalRhythm = ({
11524
11524
  };
11525
11525
 
11526
11526
  // src/components/Menu/Menu.tsx
11527
- import * as React8 from "react";
11528
11527
  import {
11529
11528
  Menu as BaseMenu,
11530
11529
  MenuButton,
11531
- useMenuState
11532
- } from "reakit/Menu";
11533
- import { Portal } from "reakit/Portal";
11530
+ MenuProvider,
11531
+ useMenuStore
11532
+ } from "@ariakit/react";
11533
+ import * as React8 from "react";
11534
11534
 
11535
11535
  // src/components/Menu/filterMenuSeparators.ts
11536
11536
  import React7, { isValidElement } from "react";
@@ -11577,17 +11577,18 @@ var menuItem = (textTheme, forceActive) => css25`
11577
11577
  font-weight: var(--fw-regular);
11578
11578
  flex-grow: 1;
11579
11579
  gap: var(--spacing-xs);
11580
-
11580
+ cursor: default;
11581
11581
  white-space: nowrap;
11582
11582
  transition: background-color var(--duration-fast) var(--timing-ease-out);
11583
11583
  ${forceActive ? activeMenuItem : ""}
11584
11584
 
11585
- &:disabled {
11586
- color: var(--gray-300);
11585
+ &[aria-disabled="true"] {
11586
+ opacity: 0.5;
11587
11587
  }
11588
11588
 
11589
11589
  &:hover,
11590
- &:focus {
11590
+ &:focus,
11591
+ &[data-active-item] {
11591
11592
  ${typeof forceActive === "undefined" ? activeMenuItem : ""}
11592
11593
  }
11593
11594
  `;
@@ -11604,6 +11605,7 @@ var menuItemWithIcon = css25`
11604
11605
  }
11605
11606
  `;
11606
11607
  var menuItemSeparator = css25`
11608
+ border: 0;
11607
11609
  border-top: 1px solid var(--gray-300);
11608
11610
  width: 100%;
11609
11611
  margin-block: var(--spacing-sm);
@@ -11660,7 +11662,7 @@ function isMenuSeparator(child) {
11660
11662
 
11661
11663
  // src/components/Menu/Menu.styles.ts
11662
11664
  import { css as css26 } from "@emotion/react";
11663
- var menu = css26`
11665
+ var menuStyles = css26`
11664
11666
  box-shadow: var(--shadow-base);
11665
11667
  border-radius: var(--rounded-base);
11666
11668
  background: var(--gray-50);
@@ -11668,21 +11670,9 @@ var menu = css26`
11668
11670
  flex-direction: column;
11669
11671
  padding: var(--spacing-sm);
11670
11672
  outline: none;
11671
- overflow-x: hidden;
11672
- overflow-y: auto;
11673
11673
  position: relative;
11674
11674
  z-index: var(--z-50);
11675
11675
 
11676
- // work around for smaller screens not being able to access large menus
11677
- // see uni-2997
11678
- max-height: 55vh; // firefox support
11679
-
11680
- ${supports("max-height: 60dvh")} {
11681
- max-height: 55dvh; // modern browser support
11682
- }
11683
-
11684
- ${scrollbarStyles}
11685
-
11686
11676
  &:focus {
11687
11677
  outline: none;
11688
11678
  }
@@ -11690,86 +11680,75 @@ var menu = css26`
11690
11680
 
11691
11681
  // src/components/Menu/Menu.tsx
11692
11682
  import { jsx as jsx26, jsxs as jsxs15 } from "@emotion/react/jsx-runtime";
11693
- var MenuContext = React8.createContext({});
11694
- var useMenuContext = () => {
11695
- return React8.useContext(MenuContext);
11696
- };
11697
- var Menu = ({
11698
- menuLabel,
11683
+ var legacyPlacements = ["auto", "auto-start", "auto-end"];
11684
+ var Menu = React8.forwardRef(function Menu2({
11699
11685
  menuTrigger,
11700
- placement = "auto",
11701
- menuItemsContainerCssClasses,
11686
+ menuLabel,
11702
11687
  children,
11688
+ placement,
11703
11689
  forceVisible,
11690
+ withoutPortal,
11704
11691
  disableAutoSeparatorManagement,
11705
- withoutPortal = false
11706
- }) => {
11707
- const menuState = useMenuState({ placement, visible: forceVisible });
11708
- const [isRendered, setIsRendered] = React8.useState(false);
11709
- React8.useEffect(() => {
11710
- if (forceVisible !== void 0) {
11711
- menuState.setVisible(forceVisible);
11712
- }
11713
- }, [forceVisible, menuState]);
11714
- React8.useEffect(() => {
11715
- if (menuState.visible) {
11716
- setIsRendered(true);
11717
- }
11718
- }, [menuState.visible, setIsRendered]);
11719
- const Wrapper = withoutPortal ? React8.Fragment : Portal;
11720
- return /* @__PURE__ */ jsxs15(MenuContext.Provider, { value: menuState, children: [
11721
- /* @__PURE__ */ jsx26(MenuButton, { ...menuState, ref: menuTrigger.ref, ...menuTrigger.props, children: (triggerProps) => React8.cloneElement(menuTrigger, triggerProps) }),
11722
- /* @__PURE__ */ jsx26(Wrapper, { children: /* @__PURE__ */ jsx26(
11692
+ menuItemsContainerCssClasses,
11693
+ ...props
11694
+ }, ref) {
11695
+ const placementOverride = legacyPlacements.includes(placement) ? void 0 : placement;
11696
+ const menu = useMenuStore({ placement: placementOverride });
11697
+ return /* @__PURE__ */ jsxs15(MenuProvider, { store: menu, open: forceVisible, children: [
11698
+ /* @__PURE__ */ jsx26(MenuButton, { ref, render: menuTrigger }),
11699
+ /* @__PURE__ */ jsx26(
11723
11700
  BaseMenu,
11724
11701
  {
11725
- ...menuState,
11726
- "data-auto-resize-opt-in": true,
11727
- focusable: false,
11728
- "aria-label": menuLabel,
11729
- ...!isRendered ? { unstable_popoverStyles: { position: "absolute", opacity: "0" } } : void 0,
11702
+ gutter: 0,
11703
+ shift: menu.parent ? -4 : 0,
11704
+ ...props,
11730
11705
  css: [
11731
- menu,
11706
+ menuStyles,
11732
11707
  typeof menuItemsContainerCssClasses === "object" ? menuItemsContainerCssClasses : void 0
11733
11708
  ],
11734
11709
  className: typeof menuItemsContainerCssClasses === "string" ? menuItemsContainerCssClasses : "",
11735
11710
  "data-testid": "more-menu",
11711
+ hideOnHoverOutside: (event) => {
11712
+ var _a;
11713
+ if (!menu.parent)
11714
+ return false;
11715
+ const { contentElement, anchorElement } = menu.getState();
11716
+ const [target] = event.composedPath();
11717
+ if (!target)
11718
+ return false;
11719
+ const activeElement = (_a = target.ownerDocument) == null ? void 0 : _a.activeElement;
11720
+ if (anchorElement == null ? void 0 : anchorElement.contains(target))
11721
+ return false;
11722
+ if (contentElement == null ? void 0 : contentElement.contains(target))
11723
+ return false;
11724
+ if (activeElement && target.contains(activeElement))
11725
+ return false;
11726
+ return true;
11727
+ },
11736
11728
  children: disableAutoSeparatorManagement ? children : filterMenuSeparators(children)
11737
11729
  }
11738
- ) })
11730
+ )
11739
11731
  ] });
11740
- };
11732
+ });
11741
11733
 
11742
11734
  // src/components/Menu/MenuItem.tsx
11735
+ import { MenuItem as BaseMenuItem } from "@ariakit/react";
11743
11736
  import * as React9 from "react";
11744
- import { MenuItem as BaseMenuItem } from "reakit";
11745
11737
  import { jsx as jsx27, jsxs as jsxs16 } from "@emotion/react/jsx-runtime";
11738
+ var renderAsButton = (renderProps) => /* @__PURE__ */ jsx27("button", { type: "button", ...renderProps });
11746
11739
  var MenuItem = React9.forwardRef(
11747
11740
  ({ children, className, hideMenuOnClick = true, icon, textColor = "base", active: active2, ...props }, ref) => {
11748
- const menuState = useMenuContext();
11749
- const resolveProps = (originalProps) => {
11750
- const resolvedProps2 = { ...originalProps };
11751
- if (resolvedProps2.onClick) {
11752
- const origOnClick = resolvedProps2.onClick;
11753
- resolvedProps2.onClick = (e) => {
11754
- var _a;
11755
- (_a = menuState == null ? void 0 : menuState.hide) == null ? void 0 : _a.call(menuState);
11756
- origOnClick(e);
11757
- };
11758
- }
11759
- return resolvedProps2;
11760
- };
11761
- const resolvedProps = hideMenuOnClick ? resolveProps(props) : props;
11762
- const resolvedChildren = typeof children === "function" ? children(resolvedProps) : children;
11741
+ const resolvedChildren = typeof children === "function" ? children(props) : children;
11763
11742
  return /* @__PURE__ */ jsx27(
11764
11743
  BaseMenuItem,
11765
11744
  {
11766
11745
  ref,
11767
- type: "button",
11768
11746
  "data-testid": "button-menu",
11769
- ...menuState,
11770
- ...resolvedProps,
11747
+ hideOnClick: hideMenuOnClick,
11771
11748
  css: [menuItem(textColor, active2), typeof className === "object" ? className : void 0],
11772
11749
  className: typeof className === "string" ? className : void 0,
11750
+ render: renderAsButton,
11751
+ ...props,
11773
11752
  children: icon ? renderWithIcon(resolvedChildren, icon) : resolvedChildren
11774
11753
  }
11775
11754
  );
@@ -11941,7 +11920,7 @@ var wholeButtonWithMenuIconOffset = css27`
11941
11920
  `;
11942
11921
 
11943
11922
  // src/components/ButtonWithMenu/ButtonWithMenu.tsx
11944
- import { Fragment as Fragment6, jsx as jsx28, jsxs as jsxs17 } from "@emotion/react/jsx-runtime";
11923
+ import { Fragment as Fragment5, jsx as jsx28, jsxs as jsxs17 } from "@emotion/react/jsx-runtime";
11945
11924
  var ButtonWithMenu = ({
11946
11925
  onButtonClick,
11947
11926
  buttonType = "secondary",
@@ -11986,7 +11965,7 @@ var ButtonWithMenu = ({
11986
11965
  disabled2 ? buttonDisabledTheme[buttonType] : buttonTheme[buttonType]
11987
11966
  ],
11988
11967
  "data-testid": "multioptions-button",
11989
- children: onButtonClick ? /* @__PURE__ */ jsxs17(Fragment6, { children: [
11968
+ children: onButtonClick ? /* @__PURE__ */ jsxs17(Fragment5, { children: [
11990
11969
  /* @__PURE__ */ jsxs17(
11991
11970
  "button",
11992
11971
  {
@@ -12003,7 +11982,7 @@ var ButtonWithMenu = ({
12003
11982
  }
12004
11983
  ),
12005
11984
  disabled2 ? clickableButton : /* @__PURE__ */ jsx28(Menu, { menuLabel: "buttonMenu", placement, menuTrigger: clickableButton, children })
12006
- ] }) : /* @__PURE__ */ jsx28(Fragment6, { children: disabled2 ? dropdownButton : /* @__PURE__ */ jsx28(Menu, { menuLabel: "buttonMenu", placement, menuTrigger: dropdownButton, children }) })
11985
+ ] }) : /* @__PURE__ */ jsx28(Fragment5, { children: disabled2 ? dropdownButton : /* @__PURE__ */ jsx28(Menu, { menuLabel: "buttonMenu", placement, menuTrigger: dropdownButton, children }) })
12007
11986
  }
12008
11987
  );
12009
11988
  };
@@ -12785,7 +12764,7 @@ var ChipActionButton = css36`
12785
12764
  `;
12786
12765
 
12787
12766
  // src/components/Chip/Chip.tsx
12788
- import { Fragment as Fragment7, jsx as jsx37, jsxs as jsxs22 } from "@emotion/react/jsx-runtime";
12767
+ import { Fragment as Fragment6, jsx as jsx37, jsxs as jsxs22 } from "@emotion/react/jsx-runtime";
12789
12768
  var chipTheme = {
12790
12769
  "accent-light": ChipThemeAccentLight,
12791
12770
  "accent-dark": ChipThemeAccentDark,
@@ -12808,7 +12787,7 @@ var Chip = ({
12808
12787
  md: ChipMedium
12809
12788
  };
12810
12789
  return /* @__PURE__ */ jsxs22("span", { css: [ChipContainer, chipSize[size], chipTheme[theme]], ...props, children: [
12811
- icon ? /* @__PURE__ */ jsxs22(Fragment7, { children: [
12790
+ icon ? /* @__PURE__ */ jsxs22(Fragment6, { children: [
12812
12791
  /* @__PURE__ */ jsx37("span", { role: "presentation", css: [ChipIcon], children: /* @__PURE__ */ jsx37(Icon, { icon, iconColor: "currentColor", size: "1rem" }) }),
12813
12792
  /* @__PURE__ */ jsx37("span", { role: "separator", css: ChipSeparator })
12814
12793
  ] }) : null,
@@ -13162,7 +13141,7 @@ var Details = ({
13162
13141
 
13163
13142
  // src/components/Drawer/Drawer.tsx
13164
13143
  import { CgChevronRight } from "@react-icons/all-files/cg/CgChevronRight";
13165
- import React13, { createContext as createContext4, useContext as useContext5, useEffect as useEffect5, useRef as useRef3, useState as useState6 } from "react";
13144
+ import React13, { createContext as createContext3, useContext as useContext4, useEffect as useEffect4, useRef as useRef3, useState as useState5 } from "react";
13166
13145
  import { createPortal } from "react-dom";
13167
13146
 
13168
13147
  // src/components/Drawer/Drawer.styles.ts
@@ -13273,9 +13252,9 @@ var drawerWrapperOverlayStyles = css42`
13273
13252
  `;
13274
13253
 
13275
13254
  // src/components/Drawer/DrawerProvider.tsx
13276
- import { createContext as createContext3, useCallback, useContext as useContext4, useRef as useRef2, useState as useState5 } from "react";
13255
+ import { createContext as createContext2, useCallback, useContext as useContext3, useRef as useRef2, useState as useState4 } from "react";
13277
13256
  import { jsx as jsx43 } from "@emotion/react/jsx-runtime";
13278
- var DrawerContext = createContext3({
13257
+ var DrawerContext = createContext2({
13279
13258
  providerId: "",
13280
13259
  drawersRegistry: [],
13281
13260
  registerDrawer: () => {
@@ -13291,9 +13270,9 @@ function renderDrawerId(drawer) {
13291
13270
  return `${drawer.stackId ? `\u{1F95E} ${drawer.stackId} ` : ""}\u{1F194} ${drawer.id}${drawer.instanceKey ? ` \u{1F511} ${drawer.instanceKey}` : ""}`;
13292
13271
  }
13293
13272
  var DrawerProvider = ({ children }) => {
13294
- const [drawersRegistry, setDrawersRegistry] = useState5([]);
13273
+ const [drawersRegistry, setDrawersRegistry] = useState4([]);
13295
13274
  const providerId = useRef2(crypto.randomUUID());
13296
- const [drawerTakeoverStackId, setDrawerTakeoverStackId] = useState5(void 0);
13275
+ const [drawerTakeoverStackId, setDrawerTakeoverStackId] = useState4(void 0);
13297
13276
  useShortcut({
13298
13277
  handler: () => {
13299
13278
  var _a, _b;
@@ -13384,7 +13363,7 @@ var DrawerProvider = ({ children }) => {
13384
13363
  );
13385
13364
  };
13386
13365
  var useDrawer = () => {
13387
- return useContext4(DrawerContext);
13366
+ return useContext3(DrawerContext);
13388
13367
  };
13389
13368
  var useCloseCurrentDrawer = () => {
13390
13369
  const context = useDrawer();
@@ -13403,9 +13382,9 @@ function isEqualDrawerInstance(a, b) {
13403
13382
  // src/components/Drawer/Drawer.tsx
13404
13383
  import { jsx as jsx44, jsxs as jsxs26 } from "@emotion/react/jsx-runtime";
13405
13384
  var defaultSackId = "_default";
13406
- var CurrentDrawerContext = createContext4({});
13385
+ var CurrentDrawerContext = createContext3({});
13407
13386
  var useCurrentDrawer = () => {
13408
- return useContext5(CurrentDrawerContext);
13387
+ return useContext4(CurrentDrawerContext);
13409
13388
  };
13410
13389
  var Drawer = React13.forwardRef(
13411
13390
  ({ minWidth, maxWidth, position, leftAligned, ...drawerProps }, ref) => {
@@ -13433,8 +13412,8 @@ var DrawerInner = ({
13433
13412
  }) => {
13434
13413
  const { registerDrawer, unregisterDrawer, providerId } = useDrawer();
13435
13414
  const closeButtonRef = useRef3(null);
13436
- const [rendererElement, setRendererElement] = useState6(null);
13437
- useEffect5(() => {
13415
+ const [rendererElement, setRendererElement] = useState5(null);
13416
+ useEffect4(() => {
13438
13417
  registerDrawer({
13439
13418
  drawer: {
13440
13419
  width,
@@ -13541,8 +13520,8 @@ var DrawerContent2 = ({ children, buttonGroup, noPadding = false, ...props }) =>
13541
13520
  };
13542
13521
 
13543
13522
  // src/components/Drawer/DrawerRenderer.tsx
13544
- import { useEffect as useEffect6, useMemo as useMemo2 } from "react";
13545
- import { Fragment as Fragment8, jsx as jsx46, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
13523
+ import { useEffect as useEffect5, useMemo as useMemo2 } from "react";
13524
+ import { Fragment as Fragment7, jsx as jsx46, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
13546
13525
  var drawerWidth = {
13547
13526
  narrow: "29rem",
13548
13527
  medium: "43rem",
@@ -13562,7 +13541,7 @@ var DrawerRenderer = ({
13562
13541
  }) => {
13563
13542
  const { drawersRegistry, providerId } = useDrawer();
13564
13543
  const drawersToRender = drawersRegistry.filter(({ stackId: sId }) => sId === stackId);
13565
- useEffect6(() => {
13544
+ useEffect5(() => {
13566
13545
  drawersToRender.forEach(({ isFirstRender, onFirstRender }) => {
13567
13546
  if (isFirstRender) {
13568
13547
  onFirstRender == null ? void 0 : onFirstRender();
@@ -13631,7 +13610,7 @@ var DrawerWrapper = ({
13631
13610
  offsetInPx = Math.round(maxLayeringInPx * relativeLevel);
13632
13611
  }
13633
13612
  const calculatedWidth = `calc(${width} - ${offsetInPx}px)`;
13634
- return /* @__PURE__ */ jsxs28(Fragment8, { children: [
13613
+ return /* @__PURE__ */ jsxs28(Fragment7, { children: [
13635
13614
  /* @__PURE__ */ jsx46("div", { css: drawerWrapperOverlayStyles, onClick: onOverlayClick }),
13636
13615
  /* @__PURE__ */ jsx46(
13637
13616
  "div",
@@ -13652,12 +13631,12 @@ var getDrawerAttributes = ({
13652
13631
  };
13653
13632
 
13654
13633
  // src/components/Drawer/TakeoverDrawerRenderer.tsx
13655
- import { useEffect as useEffect7 } from "react";
13634
+ import { useEffect as useEffect6 } from "react";
13656
13635
  import { jsx as jsx47 } from "@emotion/react/jsx-runtime";
13657
13636
  var TAKEOVER_STACK_ID = "takeover-stack";
13658
13637
  var TakeoverDrawerRenderer = (props) => {
13659
13638
  const { registerTakeoverStackId, unregisterTakeoverStackId } = useDrawer();
13660
- useEffect7(() => {
13639
+ useEffect6(() => {
13661
13640
  registerTakeoverStackId(TAKEOVER_STACK_ID);
13662
13641
  return () => {
13663
13642
  unregisterTakeoverStackId(TAKEOVER_STACK_ID);
@@ -13667,7 +13646,7 @@ var TakeoverDrawerRenderer = (props) => {
13667
13646
  };
13668
13647
 
13669
13648
  // src/components/IconButton/IconButton.tsx
13670
- import { forwardRef as forwardRef4 } from "react";
13649
+ import { forwardRef as forwardRef5 } from "react";
13671
13650
 
13672
13651
  // src/components/IconButton/IconButton.styles.ts
13673
13652
  import { css as css44 } from "@emotion/react";
@@ -13698,7 +13677,7 @@ var variants = {
13698
13677
 
13699
13678
  // src/components/IconButton/IconButton.tsx
13700
13679
  import { jsx as jsx48 } from "@emotion/react/jsx-runtime";
13701
- var IconButton = forwardRef4(
13680
+ var IconButton = forwardRef5(
13702
13681
  ({ children, size = "md", variant = "square", ...props }, ref) => {
13703
13682
  return /* @__PURE__ */ jsx48(Button, { ref, css: [iconButton, variants[variant], sizes[size]], ...props, children });
13704
13683
  }
@@ -13706,7 +13685,7 @@ var IconButton = forwardRef4(
13706
13685
  IconButton.displayName = "IconButton";
13707
13686
 
13708
13687
  // src/components/Image/Image.tsx
13709
- import { useCallback as useCallback2, useEffect as useEffect8, useState as useState8 } from "react";
13688
+ import { useCallback as useCallback2, useEffect as useEffect7, useState as useState7 } from "react";
13710
13689
 
13711
13690
  // src/components/Input/styles/CaptionText.styles.ts
13712
13691
  import { css as css45 } from "@emotion/react";
@@ -13725,7 +13704,7 @@ var Caption = ({ children, testId, dynamicSize = false, ...props }) => {
13725
13704
  };
13726
13705
 
13727
13706
  // src/components/Input/CheckboxWithInfo.tsx
13728
- import { forwardRef as forwardRef5 } from "react";
13707
+ import { forwardRef as forwardRef6 } from "react";
13729
13708
 
13730
13709
  // src/components/Input/styles/CheckboxWithInfo.styles.ts
13731
13710
  import { css as css46 } from "@emotion/react";
@@ -13807,7 +13786,7 @@ var InfoDialog = ({ message }) => {
13807
13786
  /* @__PURE__ */ jsx50("div", { role: "paragraph", css: InfoDialogMessage, className: "info-message", children: message })
13808
13787
  ] });
13809
13788
  };
13810
- var CheckboxWithInfo = forwardRef5(
13789
+ var CheckboxWithInfo = forwardRef6(
13811
13790
  ({ label, name, info, ...props }, ref) => {
13812
13791
  return /* @__PURE__ */ jsxs29("div", { css: CheckboxWithInfoContainer, children: [
13813
13792
  /* @__PURE__ */ jsxs29("label", { css: CheckboxWithInfoLabel, children: [
@@ -14171,7 +14150,7 @@ function InputComboBox(props) {
14171
14150
  // src/components/Input/InputInlineSelect.tsx
14172
14151
  import { css as css52 } from "@emotion/react";
14173
14152
  import { CgChevronDown as CgChevronDown2 } from "@react-icons/all-files/cg/CgChevronDown";
14174
- import { useRef as useRef4, useState as useState7 } from "react";
14153
+ import { useRef as useRef4, useState as useState6 } from "react";
14175
14154
 
14176
14155
  // src/components/Input/styles/InputInlineSelect.styles.ts
14177
14156
  import { css as css51 } from "@emotion/react";
@@ -14250,7 +14229,7 @@ var InputInlineSelect = ({
14250
14229
  ...props
14251
14230
  }) => {
14252
14231
  var _a;
14253
- const [menuVisible, setMenuVisible] = useState7(false);
14232
+ const [menuVisible, setMenuVisible] = useState6(false);
14254
14233
  const divRef = useRef4(null);
14255
14234
  useOutsideClick(divRef, () => setMenuVisible(false));
14256
14235
  const selected = options.find((option) => option.value === value);
@@ -14360,7 +14339,7 @@ var InputKeywordSearch = ({
14360
14339
  };
14361
14340
 
14362
14341
  // src/components/Input/InputSelect.tsx
14363
- import { Fragment as Fragment9, jsx as jsx60, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
14342
+ import { Fragment as Fragment8, jsx as jsx60, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
14364
14343
  var InputSelect = ({
14365
14344
  label,
14366
14345
  defaultOption,
@@ -14382,7 +14361,7 @@ var InputSelect = ({
14382
14361
  css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
14383
14362
  className: typeof classNameContainer === "string" ? classNameContainer : "",
14384
14363
  children: [
14385
- showLabel ? /* @__PURE__ */ jsx60(Fragment9, { children: /* @__PURE__ */ jsxs36(
14364
+ showLabel ? /* @__PURE__ */ jsx60(Fragment8, { children: /* @__PURE__ */ jsxs36(
14386
14365
  Label,
14387
14366
  {
14388
14367
  htmlFor: props.id,
@@ -14508,11 +14487,11 @@ var SuccessMessage = ({ message, testId, ...props }) => {
14508
14487
  };
14509
14488
 
14510
14489
  // src/components/Input/Textarea.tsx
14511
- import { forwardRef as forwardRef9 } from "react";
14512
- import { Fragment as Fragment10, jsx as jsx64, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
14513
- var Textarea = forwardRef9(
14490
+ import { forwardRef as forwardRef10 } from "react";
14491
+ import { Fragment as Fragment9, jsx as jsx64, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
14492
+ var Textarea = forwardRef10(
14514
14493
  ({ label, icon, id, caption, showLabel = true, errorMessage, warningMessage, ...props }, ref) => {
14515
- return /* @__PURE__ */ jsxs39(Fragment10, { children: [
14494
+ return /* @__PURE__ */ jsxs39(Fragment9, { children: [
14516
14495
  showLabel ? /* @__PURE__ */ jsx64("label", { htmlFor: id, css: [labelText], children: label }) : null,
14517
14496
  /* @__PURE__ */ jsxs39("div", { css: [inputContainer], children: [
14518
14497
  /* @__PURE__ */ jsx64(
@@ -14616,7 +14595,7 @@ var ImageBroken = ({ width, height, ...props }) => {
14616
14595
  };
14617
14596
 
14618
14597
  // src/components/Image/Image.tsx
14619
- import { Fragment as Fragment11, jsx as jsx66, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
14598
+ import { Fragment as Fragment10, jsx as jsx66, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
14620
14599
  var MIN_LOADING_MS = 100;
14621
14600
  function Image({
14622
14601
  alt,
@@ -14628,8 +14607,8 @@ function Image({
14628
14607
  height,
14629
14608
  ...imgAttribs
14630
14609
  }) {
14631
- const [loading, setLoading] = useState8(true);
14632
- const [loadErrorText, setLoadErrorText] = useState8("");
14610
+ const [loading, setLoading] = useState7(true);
14611
+ const [loadErrorText, setLoadErrorText] = useState7("");
14633
14612
  const errorText = "The text you provided is not a valid URL";
14634
14613
  const updateImageSrc = useCallback2(() => {
14635
14614
  let message = "";
@@ -14649,7 +14628,7 @@ function Image({
14649
14628
  }
14650
14629
  setLoadErrorText(message);
14651
14630
  }, [setLoadErrorText, src]);
14652
- useEffect8(() => {
14631
+ useEffect7(() => {
14653
14632
  updateImageSrc();
14654
14633
  }, [src]);
14655
14634
  const handleLoadEvent = () => {
@@ -14695,7 +14674,7 @@ function Image({
14695
14674
  onError: handleErrorEvent
14696
14675
  }
14697
14676
  ) : null,
14698
- src && loadErrorText ? /* @__PURE__ */ jsxs41(Fragment11, { children: [
14677
+ src && loadErrorText ? /* @__PURE__ */ jsxs41(Fragment10, { children: [
14699
14678
  /* @__PURE__ */ jsx66(
14700
14679
  ImageBroken,
14701
14680
  {
@@ -14975,7 +14954,7 @@ var EditTeamIntegrationTile = ({
14975
14954
  // src/components/Tiles/IntegrationComingSoon.tsx
14976
14955
  import { css as css57 } from "@emotion/react";
14977
14956
  import { CgHeart } from "@react-icons/all-files/cg/CgHeart";
14978
- import { useEffect as useEffect9, useState as useState9 } from "react";
14957
+ import { useEffect as useEffect8, useState as useState8 } from "react";
14979
14958
  import { jsx as jsx71, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
14980
14959
  var IntegrationComingSoon = ({
14981
14960
  name,
@@ -14985,12 +14964,12 @@ var IntegrationComingSoon = ({
14985
14964
  timing = 1e3,
14986
14965
  ...props
14987
14966
  }) => {
14988
- const [upVote, setUpVote] = useState9(false);
14967
+ const [upVote, setUpVote] = useState8(false);
14989
14968
  const handleUpVoteInteraction = () => {
14990
14969
  setUpVote((prev) => !prev);
14991
14970
  onUpVoteClick();
14992
14971
  };
14993
- useEffect9(() => {
14972
+ useEffect8(() => {
14994
14973
  if (upVote) {
14995
14974
  const timer = setTimeout(() => setUpVote(false), timing);
14996
14975
  return () => {
@@ -15086,10 +15065,10 @@ var IntegrationLoadingFrame = css58`
15086
15065
  `;
15087
15066
 
15088
15067
  // src/components/Tiles/IntegrationLoadingTile.tsx
15089
- import { Fragment as Fragment12, jsx as jsx72, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
15068
+ import { Fragment as Fragment11, jsx as jsx72, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
15090
15069
  var IntegrationLoadingTile = ({ count = 1 }) => {
15091
15070
  const componentCount = Array.from(Array(count).keys());
15092
- return /* @__PURE__ */ jsx72(Fragment12, { children: componentCount.map((i) => /* @__PURE__ */ jsxs46("div", { css: IntegrationLoadingTileContainer, children: [
15071
+ return /* @__PURE__ */ jsx72(Fragment11, { children: componentCount.map((i) => /* @__PURE__ */ jsxs46("div", { css: IntegrationLoadingTileContainer, children: [
15093
15072
  /* @__PURE__ */ jsx72("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
15094
15073
  /* @__PURE__ */ jsx72("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
15095
15074
  ] }, i)) });
@@ -15215,11 +15194,24 @@ var Tile = css60`
15215
15194
  pointer-events: none;
15216
15195
  }
15217
15196
  `;
15197
+ var TileIsSelected = css60`
15198
+ border: calc(${tileBorderSize} + 1px) solid var(--primary-action-active);
15199
+ z-index: 1; // Used to elevate active state border over other Tile borders
15200
+ `;
15218
15201
 
15219
15202
  // src/components/Tiles/Tile.tsx
15220
15203
  import { jsx as jsx75 } from "@emotion/react/jsx-runtime";
15221
- var Tile2 = ({ children, disabled: disabled2, ...props }) => {
15222
- return /* @__PURE__ */ jsx75("button", { type: "button", css: Tile, disabled: disabled2, ...props, children });
15204
+ var Tile2 = ({ children, disabled: disabled2, isSelected, ...props }) => {
15205
+ return /* @__PURE__ */ jsx75(
15206
+ "button",
15207
+ {
15208
+ type: "button",
15209
+ css: [Tile, isSelected ? TileIsSelected : void 0],
15210
+ disabled: disabled2,
15211
+ ...props,
15212
+ children
15213
+ }
15214
+ );
15223
15215
  };
15224
15216
 
15225
15217
  // src/components/Tiles/styles/TileContainer.styles.ts
@@ -15318,7 +15310,7 @@ var IntegrationModalHeaderContentWrapper = css63`
15318
15310
  `;
15319
15311
 
15320
15312
  // src/components/IntegrationModalHeader/IntegrationModalHeader.tsx
15321
- import { Fragment as Fragment13, jsx as jsx78, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
15313
+ import { Fragment as Fragment12, jsx as jsx78, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
15322
15314
  var HexModalBackground = ({ ...props }) => {
15323
15315
  return /* @__PURE__ */ jsxs49(
15324
15316
  "svg",
@@ -15358,14 +15350,14 @@ var HexModalBackground = ({ ...props }) => {
15358
15350
  }
15359
15351
  );
15360
15352
  };
15361
- var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
15362
- return /* @__PURE__ */ jsxs49(Fragment13, { children: [
15353
+ var IntegrationModalHeader = ({ icon, name, menu, children }) => {
15354
+ return /* @__PURE__ */ jsxs49(Fragment12, { children: [
15363
15355
  /* @__PURE__ */ jsx78(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
15364
15356
  /* @__PURE__ */ jsx78("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs49("div", { css: IntegrationModalHeaderTitleGroup, children: [
15365
15357
  icon ? /* @__PURE__ */ jsx78(IntegrationModalIcon, { icon, name: name || "" }) : null,
15366
15358
  /* @__PURE__ */ jsx78(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-testid": "integration-modal-title", children: name || "Create Team Integration" }),
15367
- menu2 ? /* @__PURE__ */ jsxs49("div", { css: IntegrationModalHeaderMenuPlacement, children: [
15368
- menu2,
15359
+ menu ? /* @__PURE__ */ jsxs49("div", { css: IntegrationModalHeaderMenuPlacement, children: [
15360
+ menu,
15369
15361
  " "
15370
15362
  ] }) : null
15371
15363
  ] }) }),
@@ -15783,7 +15775,7 @@ var LoadingIndicator = ({
15783
15775
  };
15784
15776
 
15785
15777
  // src/components/LoadingOverlay/LoadingOverlay.tsx
15786
- import { useCallback as useCallback3, useEffect as useEffect10, useRef as useRef5 } from "react";
15778
+ import { useCallback as useCallback3, useEffect as useEffect9, useRef as useRef5 } from "react";
15787
15779
 
15788
15780
  // src/components/LoadingOverlay/LoadingOverlay.styles.ts
15789
15781
  import { css as css70 } from "@emotion/react";
@@ -15836,7 +15828,7 @@ var LoadingOverlay = ({
15836
15828
  (_c = lottieRef.current) == null ? void 0 : _c.stop();
15837
15829
  }
15838
15830
  }, [isPaused]);
15839
- useEffect10(() => {
15831
+ useEffect9(() => {
15840
15832
  var _a, _b, _c, _d, _e, _f;
15841
15833
  if (!isPaused && ((_b = (_a = lottieRef.current) == null ? void 0 : _a.animationItem) == null ? void 0 : _b.isPaused)) {
15842
15834
  (_c = lottieRef.current) == null ? void 0 : _c.play();
@@ -15945,7 +15937,7 @@ var Popover = css71`
15945
15937
  `;
15946
15938
 
15947
15939
  // src/components/Popover/Popover.tsx
15948
- import { Fragment as Fragment14, jsx as jsx87, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
15940
+ import { Fragment as Fragment13, jsx as jsx87, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
15949
15941
  var Popover2 = ({
15950
15942
  iconColor = "action",
15951
15943
  icon = "info",
@@ -15959,7 +15951,7 @@ var Popover2 = ({
15959
15951
  ...otherProps
15960
15952
  }) => {
15961
15953
  const popover = usePopoverState({ placement });
15962
- return /* @__PURE__ */ jsxs57(Fragment14, { children: [
15954
+ return /* @__PURE__ */ jsxs57(Fragment13, { children: [
15963
15955
  /* @__PURE__ */ jsx87(
15964
15956
  PopoverDisclosure,
15965
15957
  {
@@ -15967,7 +15959,7 @@ var Popover2 = ({
15967
15959
  css: [PopoverBtn, trigger ? void 0 : PopoverDefaulterTriggerBtn],
15968
15960
  title: buttonText,
15969
15961
  "data-testid": testId,
15970
- children: trigger ? trigger : /* @__PURE__ */ jsxs57(Fragment14, { children: [
15962
+ children: trigger ? trigger : /* @__PURE__ */ jsxs57(Fragment13, { children: [
15971
15963
  /* @__PURE__ */ jsx87(Icon, { icon, iconColor, size: iconSize }),
15972
15964
  /* @__PURE__ */ jsx87("span", { hidden: true, children: buttonText })
15973
15965
  ] })
@@ -16297,8 +16289,8 @@ function Pagination({
16297
16289
  }
16298
16290
 
16299
16291
  // src/components/ParameterInputs/hooks/ParameterShellContext.tsx
16300
- import { createContext as createContext5, useContext as useContext6 } from "react";
16301
- var ParameterShellContext = createContext5({
16292
+ import { createContext as createContext4, useContext as useContext5 } from "react";
16293
+ var ParameterShellContext = createContext4({
16302
16294
  id: "",
16303
16295
  label: "",
16304
16296
  hiddenLabel: void 0,
@@ -16307,7 +16299,7 @@ var ParameterShellContext = createContext5({
16307
16299
  }
16308
16300
  });
16309
16301
  var useParameterShell = () => {
16310
- const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } = useContext6(ParameterShellContext);
16302
+ const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } = useContext5(ParameterShellContext);
16311
16303
  return {
16312
16304
  id,
16313
16305
  label,
@@ -16708,7 +16700,7 @@ var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
16708
16700
  };
16709
16701
 
16710
16702
  // src/components/ParameterInputs/ParameterGroup.tsx
16711
- import { forwardRef as forwardRef10 } from "react";
16703
+ import { forwardRef as forwardRef11 } from "react";
16712
16704
 
16713
16705
  // src/components/ParameterInputs/styles/ParameterGroup.styles.ts
16714
16706
  import { css as css78 } from "@emotion/react";
@@ -16732,7 +16724,7 @@ var fieldsetLegend2 = css78`
16732
16724
 
16733
16725
  // src/components/ParameterInputs/ParameterGroup.tsx
16734
16726
  import { jsx as jsx94, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
16735
- var ParameterGroup = forwardRef10(
16727
+ var ParameterGroup = forwardRef11(
16736
16728
  ({ legend, isDisabled, children, ...props }, ref) => {
16737
16729
  return /* @__PURE__ */ jsxs63("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
16738
16730
  /* @__PURE__ */ jsx94("legend", { css: fieldsetLegend2, children: legend }),
@@ -16742,10 +16734,10 @@ var ParameterGroup = forwardRef10(
16742
16734
  );
16743
16735
 
16744
16736
  // src/components/ParameterInputs/ParameterImage.tsx
16745
- import { forwardRef as forwardRef12, useDeferredValue } from "react";
16737
+ import { forwardRef as forwardRef13, useDeferredValue } from "react";
16746
16738
 
16747
16739
  // src/components/ParameterInputs/ParameterImagePreview.tsx
16748
- import { useState as useState10 } from "react";
16740
+ import { useState as useState9 } from "react";
16749
16741
  import { createPortal as createPortal2 } from "react-dom";
16750
16742
 
16751
16743
  // src/components/ParameterInputs/styles/ParameterImage.styles.ts
@@ -16786,9 +16778,9 @@ var previewModalImage = css79`
16786
16778
  `;
16787
16779
 
16788
16780
  // src/components/ParameterInputs/ParameterImagePreview.tsx
16789
- import { Fragment as Fragment15, jsx as jsx95, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
16781
+ import { Fragment as Fragment14, jsx as jsx95, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
16790
16782
  function ParameterImagePreview({ imageSrc }) {
16791
- const [showModal, setShowModal] = useState10(false);
16783
+ const [showModal, setShowModal] = useState9(false);
16792
16784
  return imageSrc ? /* @__PURE__ */ jsxs64("div", { css: previewWrapper, children: [
16793
16785
  /* @__PURE__ */ jsx95(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
16794
16786
  /* @__PURE__ */ jsx95(
@@ -16804,7 +16796,7 @@ function ParameterImagePreview({ imageSrc }) {
16804
16796
  ] }) : null;
16805
16797
  }
16806
16798
  var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
16807
- return open ? /* @__PURE__ */ jsx95(Fragment15, { children: createPortal2(
16799
+ return open ? /* @__PURE__ */ jsx95(Fragment14, { children: createPortal2(
16808
16800
  /* @__PURE__ */ jsx95(
16809
16801
  Modal,
16810
16802
  {
@@ -16821,7 +16813,7 @@ var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
16821
16813
 
16822
16814
  // src/components/ParameterInputs/ParameterShell.tsx
16823
16815
  import { css as css81 } from "@emotion/react";
16824
- import { useState as useState11 } from "react";
16816
+ import { useState as useState10 } from "react";
16825
16817
 
16826
16818
  // src/components/ParameterInputs/ParameterLabel.tsx
16827
16819
  import { jsx as jsx96 } from "@emotion/react/jsx-runtime";
@@ -16830,9 +16822,9 @@ var ParameterLabel = ({ id, asSpan, children, ...props }) => {
16830
16822
  };
16831
16823
 
16832
16824
  // src/components/ParameterInputs/ParameterMenuButton.tsx
16833
- import { forwardRef as forwardRef11 } from "react";
16825
+ import { forwardRef as forwardRef12 } from "react";
16834
16826
  import { jsx as jsx97 } from "@emotion/react/jsx-runtime";
16835
- var ParameterMenuButton = forwardRef11(
16827
+ var ParameterMenuButton = forwardRef12(
16836
16828
  ({ label, children }, ref) => {
16837
16829
  return /* @__PURE__ */ jsx97(
16838
16830
  Menu,
@@ -16943,7 +16935,7 @@ var ParameterShell = ({
16943
16935
  children,
16944
16936
  ...props
16945
16937
  }) => {
16946
- const [manualErrorMessage, setManualErrorMessage] = useState11(void 0);
16938
+ const [manualErrorMessage, setManualErrorMessage] = useState10(void 0);
16947
16939
  const setErrorMessage = (message) => setManualErrorMessage(message);
16948
16940
  const errorMessaging = errorMessage || manualErrorMessage;
16949
16941
  return /* @__PURE__ */ jsxs65("div", { css: inputContainer2, ...props, id, children: [
@@ -17003,8 +16995,8 @@ var ParameterShellPlaceholder = ({ children }) => {
17003
16995
  var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx98(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx98("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx98("span", { hidden: true, children: "reset overridden value to default" }) }) });
17004
16996
 
17005
16997
  // src/components/ParameterInputs/ParameterImage.tsx
17006
- import { Fragment as Fragment16, jsx as jsx99, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
17007
- var ParameterImage = forwardRef12(
16998
+ import { Fragment as Fragment15, jsx as jsx99, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
16999
+ var ParameterImage = forwardRef13(
17008
17000
  ({ children, ...props }, ref) => {
17009
17001
  const { shellProps, innerProps } = extractParameterProps(props);
17010
17002
  return /* @__PURE__ */ jsxs66(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
@@ -17013,11 +17005,11 @@ var ParameterImage = forwardRef12(
17013
17005
  ] });
17014
17006
  }
17015
17007
  );
17016
- var ParameterImageInner = forwardRef12((props, ref) => {
17008
+ var ParameterImageInner = forwardRef13((props, ref) => {
17017
17009
  const { value } = props;
17018
17010
  const { id, label, hiddenLabel, errorMessage } = useParameterShell();
17019
17011
  const deferredValue = useDeferredValue(value);
17020
- return /* @__PURE__ */ jsxs66(Fragment16, { children: [
17012
+ return /* @__PURE__ */ jsxs66(Fragment15, { children: [
17021
17013
  /* @__PURE__ */ jsx99(
17022
17014
  "input",
17023
17015
  {
@@ -17035,13 +17027,13 @@ var ParameterImageInner = forwardRef12((props, ref) => {
17035
17027
  });
17036
17028
 
17037
17029
  // src/components/ParameterInputs/ParameterInput.tsx
17038
- import { forwardRef as forwardRef13 } from "react";
17030
+ import { forwardRef as forwardRef14 } from "react";
17039
17031
  import { jsx as jsx100 } from "@emotion/react/jsx-runtime";
17040
- var ParameterInput = forwardRef13((props, ref) => {
17032
+ var ParameterInput = forwardRef14((props, ref) => {
17041
17033
  const { shellProps, innerProps } = extractParameterProps(props);
17042
17034
  return /* @__PURE__ */ jsx100(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx100(ParameterInputInner, { ref, ...innerProps }) });
17043
17035
  });
17044
- var ParameterInputInner = forwardRef13(
17036
+ var ParameterInputInner = forwardRef14(
17045
17037
  ({ ...props }, ref) => {
17046
17038
  const { id, label, hiddenLabel } = useParameterShell();
17047
17039
  return /* @__PURE__ */ jsx100(
@@ -17060,9 +17052,9 @@ var ParameterInputInner = forwardRef13(
17060
17052
  );
17061
17053
 
17062
17054
  // src/components/ParameterInputs/ParameterLink.tsx
17063
- import { forwardRef as forwardRef14 } from "react";
17055
+ import { forwardRef as forwardRef15 } from "react";
17064
17056
  import { jsx as jsx101, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
17065
- var ParameterLink = forwardRef14(
17057
+ var ParameterLink = forwardRef15(
17066
17058
  ({ disabled: disabled2, onConnectLink, externalLink, ...props }, ref) => {
17067
17059
  const { shellProps, innerProps } = extractParameterProps(props);
17068
17060
  return /* @__PURE__ */ jsx101(
@@ -17085,7 +17077,7 @@ var ParameterLink = forwardRef14(
17085
17077
  );
17086
17078
  }
17087
17079
  );
17088
- var ParameterLinkInner = forwardRef14(
17080
+ var ParameterLinkInner = forwardRef15(
17089
17081
  ({ externalLink, onConnectLink, disabled: disabled2, buttonText = "Select link", ...props }, ref) => {
17090
17082
  const { id, label, hiddenLabel } = useParameterShell();
17091
17083
  if (!props.value)
@@ -17132,7 +17124,7 @@ var ParameterLinkInner = forwardRef14(
17132
17124
  );
17133
17125
 
17134
17126
  // src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
17135
- import { Fragment as Fragment17, jsx as jsx102, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
17127
+ import { Fragment as Fragment16, jsx as jsx102, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
17136
17128
  var ParameterNameAndPublicIdInput = ({
17137
17129
  id,
17138
17130
  onBlur,
@@ -17158,7 +17150,7 @@ var ParameterNameAndPublicIdInput = ({
17158
17150
  navigator.clipboard.writeText(values[publicIdFieldName]);
17159
17151
  };
17160
17152
  autoFocus == null ? void 0 : autoFocus();
17161
- return /* @__PURE__ */ jsxs68(Fragment17, { children: [
17153
+ return /* @__PURE__ */ jsxs68(Fragment16, { children: [
17162
17154
  /* @__PURE__ */ jsx102(
17163
17155
  ParameterInput,
17164
17156
  {
@@ -17323,7 +17315,7 @@ var getLabelForElement = (type) => {
17323
17315
  // src/components/ParameterInputs/ParameterRichText.tsx
17324
17316
  import { deepEqual as deepEqual2 } from "fast-equals";
17325
17317
  import { ParagraphNode as ParagraphNode2 } from "lexical";
17326
- import { useEffect as useEffect15, useRef as useRef7 } from "react";
17318
+ import { useEffect as useEffect14, useRef as useRef7 } from "react";
17327
17319
 
17328
17320
  // src/components/ParameterInputs/rich-text/CustomCodeNode.ts
17329
17321
  import { CodeNode } from "@lexical/code";
@@ -17344,10 +17336,10 @@ CustomCodeNode.importDOM = function() {
17344
17336
  import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
17345
17337
  import { mergeRegister } from "@lexical/utils";
17346
17338
  import { ParagraphNode } from "lexical";
17347
- import { useEffect as useEffect11 } from "react";
17339
+ import { useEffect as useEffect10 } from "react";
17348
17340
  function DisableStylesPlugin() {
17349
17341
  const [editor] = useLexicalComposerContext();
17350
- useEffect11(() => {
17342
+ useEffect10(() => {
17351
17343
  return mergeRegister(
17352
17344
  // Disable text alignment on paragraph nodes
17353
17345
  editor.registerNodeTransform(ParagraphNode, (node) => {
@@ -17556,7 +17548,7 @@ import {
17556
17548
  ElementNode as ElementNode2,
17557
17549
  FOCUS_COMMAND
17558
17550
  } from "lexical";
17559
- import { useCallback as useCallback5, useEffect as useEffect12, useRef as useRef6, useState as useState12 } from "react";
17551
+ import { useCallback as useCallback5, useEffect as useEffect11, useRef as useRef6, useState as useState11 } from "react";
17560
17552
 
17561
17553
  // src/components/ParameterInputs/rich-text/utils.ts
17562
17554
  import { $isAtNodeEnd } from "@lexical/selection";
@@ -17594,7 +17586,7 @@ var getSelectedNode = (selection) => {
17594
17586
  };
17595
17587
 
17596
17588
  // src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
17597
- import { Fragment as Fragment18, jsx as jsx103, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
17589
+ import { Fragment as Fragment17, jsx as jsx103, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
17598
17590
  var isProjectMapLinkValue = (value) => {
17599
17591
  return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
17600
17592
  value.nodeId && value.path && value.projectMapId
@@ -17899,17 +17891,17 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
17899
17891
  return path;
17900
17892
  };
17901
17893
  const [editor] = useLexicalComposerContext2();
17902
- const [linkPopoverState, setLinkPopoverState] = useState12();
17894
+ const [linkPopoverState, setLinkPopoverState] = useState11();
17903
17895
  const linkPopoverElRef = useRef6(null);
17904
- const [isEditorFocused, setIsEditorFocused] = useState12(false);
17905
- const [isLinkPopoverFocused, setIsLinkPopoverFocused] = useState12(false);
17906
- useEffect12(() => {
17896
+ const [isEditorFocused, setIsEditorFocused] = useState11(false);
17897
+ const [isLinkPopoverFocused, setIsLinkPopoverFocused] = useState11(false);
17898
+ useEffect11(() => {
17907
17899
  if (!isEditorFocused && !isLinkPopoverFocused) {
17908
17900
  setLinkPopoverState(void 0);
17909
17901
  return;
17910
17902
  }
17911
17903
  }, [isEditorFocused, isLinkPopoverFocused]);
17912
- useEffect12(() => {
17904
+ useEffect11(() => {
17913
17905
  if (!editor.hasNodes([LinkNode])) {
17914
17906
  throw new Error("LinkNode not registered on editor");
17915
17907
  }
@@ -18010,7 +18002,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
18010
18002
  }
18011
18003
  });
18012
18004
  }, [editor]);
18013
- useEffect12(() => {
18005
+ useEffect11(() => {
18014
18006
  return editor.registerUpdateListener(({ editorState }) => {
18015
18007
  requestAnimationFrame(() => {
18016
18008
  editorState.read(() => {
@@ -18037,7 +18029,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
18037
18029
  });
18038
18030
  });
18039
18031
  };
18040
- return /* @__PURE__ */ jsxs69(Fragment18, { children: [
18032
+ return /* @__PURE__ */ jsxs69(Fragment17, { children: [
18041
18033
  /* @__PURE__ */ jsx103(
18042
18034
  NodeEventPlugin,
18043
18035
  {
@@ -18102,7 +18094,7 @@ import {
18102
18094
  COMMAND_PRIORITY_CRITICAL,
18103
18095
  INDENT_CONTENT_COMMAND
18104
18096
  } from "lexical";
18105
- import { useEffect as useEffect13 } from "react";
18097
+ import { useEffect as useEffect12 } from "react";
18106
18098
  import { jsx as jsx104 } from "@emotion/react/jsx-runtime";
18107
18099
  function isIndentPermitted(maxDepth) {
18108
18100
  const selection = $getSelection2();
@@ -18126,7 +18118,7 @@ function isIndentPermitted(maxDepth) {
18126
18118
  }
18127
18119
  function ListIndentPlugin({ maxDepth }) {
18128
18120
  const [editor] = useLexicalComposerContext3();
18129
- useEffect13(() => {
18121
+ useEffect12(() => {
18130
18122
  return editor.registerCommand(
18131
18123
  INDENT_CONTENT_COMMAND,
18132
18124
  () => !isIndentPermitted(maxDepth),
@@ -18159,8 +18151,8 @@ import {
18159
18151
  FORMAT_TEXT_COMMAND,
18160
18152
  SELECTION_CHANGE_COMMAND
18161
18153
  } from "lexical";
18162
- import { useCallback as useCallback6, useEffect as useEffect14, useMemo as useMemo3, useState as useState13 } from "react";
18163
- import { Fragment as Fragment19, jsx as jsx105, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
18154
+ import { useCallback as useCallback6, useEffect as useEffect13, useMemo as useMemo3, useState as useState12 } from "react";
18155
+ import { Fragment as Fragment18, jsx as jsx105, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
18164
18156
  var toolbar = css84`
18165
18157
  background: var(--gray-50);
18166
18158
  border-radius: var(--rounded-base);
@@ -18302,7 +18294,7 @@ var RichTextToolbar = ({ config, customControls }) => {
18302
18294
  setIsLink(false);
18303
18295
  }
18304
18296
  }, [editor, setActiveElement, setActiveFormats, setIsLink]);
18305
- useEffect14(() => {
18297
+ useEffect13(() => {
18306
18298
  return editor.registerCommand(
18307
18299
  SELECTION_CHANGE_COMMAND,
18308
18300
  (_payload) => {
@@ -18312,7 +18304,7 @@ var RichTextToolbar = ({ config, customControls }) => {
18312
18304
  COMMAND_PRIORITY_CRITICAL2
18313
18305
  );
18314
18306
  }, [editor, updateToolbar]);
18315
- useEffect14(() => {
18307
+ useEffect13(() => {
18316
18308
  return editor.registerUpdateListener(({ editorState }) => {
18317
18309
  requestAnimationFrame(() => {
18318
18310
  editorState.read(() => {
@@ -18397,7 +18389,7 @@ var RichTextToolbar = ({ config, customControls }) => {
18397
18389
  children: /* @__PURE__ */ jsx105(RichTextToolbarIcon, { icon: "link" })
18398
18390
  }
18399
18391
  ) }) : null,
18400
- visibleLists.size > 0 ? /* @__PURE__ */ jsxs70(Fragment19, { children: [
18392
+ visibleLists.size > 0 ? /* @__PURE__ */ jsxs70(Fragment18, { children: [
18401
18393
  visibleLists.has("unorderedList") ? /* @__PURE__ */ jsx105(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ jsx105(
18402
18394
  "button",
18403
18395
  {
@@ -18470,7 +18462,7 @@ var useRichTextToolbarState = ({ config }) => {
18470
18462
  const enabledBuiltInFormatsWithoutIcon = enabledBuiltInFormats.filter(
18471
18463
  (format) => !FORMATS_WITH_ICON.has(format.type)
18472
18464
  );
18473
- const [activeFormats, setActiveFormats] = useState13([]);
18465
+ const [activeFormats, setActiveFormats] = useState12([]);
18474
18466
  const visibleFormatsWithIcon = useMemo3(() => {
18475
18467
  const visibleFormats = /* @__PURE__ */ new Set();
18476
18468
  activeFormats.filter((type) => FORMATS_WITH_ICON.has(type)).forEach((type) => {
@@ -18491,7 +18483,7 @@ var useRichTextToolbarState = ({ config }) => {
18491
18483
  });
18492
18484
  return richTextBuiltInFormats.filter((format) => visibleFormats.has(format.type));
18493
18485
  }, [activeFormats, enabledBuiltInFormatsWithoutIcon]);
18494
- const [activeElement, setActiveElement] = useState13("paragraph");
18486
+ const [activeElement, setActiveElement] = useState12("paragraph");
18495
18487
  const enabledTextualElements = enabledBuiltInElements.filter(
18496
18488
  (element) => TEXTUAL_ELEMENTS.includes(element.type)
18497
18489
  );
@@ -18506,7 +18498,7 @@ var useRichTextToolbarState = ({ config }) => {
18506
18498
  }
18507
18499
  );
18508
18500
  }, [activeElement, (_a = config == null ? void 0 : config.elements) == null ? void 0 : _a.builtIn, enabledTextualElements]);
18509
- const [isLink, setIsLink] = useState13(false);
18501
+ const [isLink, setIsLink] = useState12(false);
18510
18502
  const linkElementVisible = useMemo3(() => {
18511
18503
  return enabledBuiltInElements.some((element) => element.type === "link") || isLink;
18512
18504
  }, [isLink, enabledBuiltInElements]);
@@ -18560,7 +18552,7 @@ var useRichTextToolbarState = ({ config }) => {
18560
18552
  };
18561
18553
 
18562
18554
  // src/components/ParameterInputs/ParameterRichText.tsx
18563
- import { Fragment as Fragment20, jsx as jsx106, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
18555
+ import { Fragment as Fragment19, jsx as jsx106, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
18564
18556
  var ParameterRichText = ({
18565
18557
  label,
18566
18558
  labelLeadingIcon,
@@ -18617,7 +18609,7 @@ var ParameterRichText = ({
18617
18609
  children
18618
18610
  }
18619
18611
  ),
18620
- menuItems ? /* @__PURE__ */ jsx106(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx106(Fragment20, { children: menuItems }) }) : null
18612
+ menuItems ? /* @__PURE__ */ jsx106(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx106(Fragment19, { children: menuItems }) }) : null
18621
18613
  ]
18622
18614
  }
18623
18615
  );
@@ -18728,7 +18720,7 @@ var ParameterRichTextInner = ({
18728
18720
  },
18729
18721
  editable: !readOnly
18730
18722
  };
18731
- return /* @__PURE__ */ jsxs71(Fragment20, { children: [
18723
+ return /* @__PURE__ */ jsxs71(Fragment19, { children: [
18732
18724
  /* @__PURE__ */ jsx106("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx106(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx106(
18733
18725
  RichText,
18734
18726
  {
@@ -18768,12 +18760,12 @@ var RichText = ({
18768
18760
  }) => {
18769
18761
  const editorContainerRef = useRef7(null);
18770
18762
  const [editor] = useLexicalComposerContext5();
18771
- useEffect15(() => {
18763
+ useEffect14(() => {
18772
18764
  if (onRichTextInit) {
18773
18765
  onRichTextInit(editor);
18774
18766
  }
18775
18767
  }, [editor, onRichTextInit]);
18776
- useEffect15(() => {
18768
+ useEffect14(() => {
18777
18769
  const removeUpdateListener = editor.registerUpdateListener(({ editorState, prevEditorState }) => {
18778
18770
  requestAnimationFrame(() => {
18779
18771
  if (!deepEqual2(editorState.toJSON(), prevEditorState.toJSON())) {
@@ -18785,7 +18777,7 @@ var RichText = ({
18785
18777
  removeUpdateListener();
18786
18778
  };
18787
18779
  }, []);
18788
- return /* @__PURE__ */ jsxs71(Fragment20, { children: [
18780
+ return /* @__PURE__ */ jsxs71(Fragment19, { children: [
18789
18781
  readOnly ? null : /* @__PURE__ */ jsx106(RichTextToolbar_default, { config, customControls }),
18790
18782
  /* @__PURE__ */ jsxs71("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
18791
18783
  /* @__PURE__ */ jsx106(
@@ -18811,21 +18803,21 @@ var RichText = ({
18811
18803
  /* @__PURE__ */ jsx106(ListIndentPlugin, { maxDepth: 4 }),
18812
18804
  /* @__PURE__ */ jsx106(DisableStylesPlugin, {}),
18813
18805
  /* @__PURE__ */ jsx106(MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
18814
- /* @__PURE__ */ jsx106(Fragment20, { children })
18806
+ /* @__PURE__ */ jsx106(Fragment19, { children })
18815
18807
  ] })
18816
18808
  ] });
18817
18809
  };
18818
18810
 
18819
18811
  // src/components/ParameterInputs/ParameterSelect.tsx
18820
- import { forwardRef as forwardRef15 } from "react";
18812
+ import { forwardRef as forwardRef16 } from "react";
18821
18813
  import { jsx as jsx107, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
18822
- var ParameterSelect = forwardRef15(
18814
+ var ParameterSelect = forwardRef16(
18823
18815
  ({ defaultOption, options, ...props }, ref) => {
18824
18816
  const { shellProps, innerProps } = extractParameterProps(props);
18825
18817
  return /* @__PURE__ */ jsx107(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx107(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
18826
18818
  }
18827
18819
  );
18828
- var ParameterSelectInner = forwardRef15(
18820
+ var ParameterSelectInner = forwardRef16(
18829
18821
  ({ defaultOption, options, ...props }, ref) => {
18830
18822
  const { id, label, hiddenLabel } = useParameterShell();
18831
18823
  return /* @__PURE__ */ jsxs72(
@@ -18849,13 +18841,13 @@ var ParameterSelectInner = forwardRef15(
18849
18841
  );
18850
18842
 
18851
18843
  // src/components/ParameterInputs/ParameterTextarea.tsx
18852
- import { forwardRef as forwardRef16 } from "react";
18844
+ import { forwardRef as forwardRef17 } from "react";
18853
18845
  import { jsx as jsx108 } from "@emotion/react/jsx-runtime";
18854
- var ParameterTextarea = forwardRef16((props, ref) => {
18846
+ var ParameterTextarea = forwardRef17((props, ref) => {
18855
18847
  const { shellProps, innerProps } = extractParameterProps(props);
18856
18848
  return /* @__PURE__ */ jsx108(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx108(ParameterTextareaInner, { ref, ...innerProps }) });
18857
18849
  });
18858
- var ParameterTextareaInner = forwardRef16(({ ...props }, ref) => {
18850
+ var ParameterTextareaInner = forwardRef17(({ ...props }, ref) => {
18859
18851
  const { id, label, hiddenLabel } = useParameterShell();
18860
18852
  return /* @__PURE__ */ jsx108(
18861
18853
  "textarea",
@@ -18870,13 +18862,13 @@ var ParameterTextareaInner = forwardRef16(({ ...props }, ref) => {
18870
18862
  });
18871
18863
 
18872
18864
  // src/components/ParameterInputs/ParameterToggle.tsx
18873
- import { forwardRef as forwardRef17 } from "react";
18865
+ import { forwardRef as forwardRef18 } from "react";
18874
18866
  import { jsx as jsx109, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
18875
- var ParameterToggle = forwardRef17((props, ref) => {
18867
+ var ParameterToggle = forwardRef18((props, ref) => {
18876
18868
  const { shellProps, innerProps } = extractParameterProps(props);
18877
18869
  return /* @__PURE__ */ jsx109(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx109(ParameterToggleInner, { ref, ...innerProps }) });
18878
18870
  });
18879
- var ParameterToggleInner = forwardRef17(
18871
+ var ParameterToggleInner = forwardRef18(
18880
18872
  ({ ...props }, ref) => {
18881
18873
  const { id, label } = useParameterShell();
18882
18874
  return /* @__PURE__ */ jsxs73("label", { css: inputToggleLabel2, children: [
@@ -19418,14 +19410,14 @@ var SwitchText = css92`
19418
19410
  `;
19419
19411
 
19420
19412
  // src/components/Switch/Switch.tsx
19421
- import { Fragment as Fragment21, jsx as jsx114, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
19413
+ import { Fragment as Fragment20, jsx as jsx114, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
19422
19414
  var Switch = React23.forwardRef(
19423
19415
  ({ label, infoText, toggleText, children, ...inputProps }, ref) => {
19424
19416
  let additionalText = infoText;
19425
19417
  if (infoText && toggleText) {
19426
19418
  additionalText = inputProps.checked ? toggleText : infoText;
19427
19419
  }
19428
- return /* @__PURE__ */ jsxs76(Fragment21, { children: [
19420
+ return /* @__PURE__ */ jsxs76(Fragment20, { children: [
19429
19421
  /* @__PURE__ */ jsxs76("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
19430
19422
  /* @__PURE__ */ jsx114("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
19431
19423
  /* @__PURE__ */ jsx114("span", { css: SwitchInputLabel, children: label })
@@ -19505,7 +19497,7 @@ var TableCellData = React24.forwardRef(
19505
19497
  );
19506
19498
 
19507
19499
  // src/components/Tabs/Tabs.tsx
19508
- import { createContext as createContext6, useContext as useContext7, useEffect as useEffect16, useMemo as useMemo6 } from "react";
19500
+ import { createContext as createContext5, useContext as useContext6, useEffect as useEffect15, useMemo as useMemo6 } from "react";
19509
19501
  import {
19510
19502
  Tab as ReakitTab,
19511
19503
  TabList as ReakitTabList,
@@ -19540,9 +19532,9 @@ var tabButtonGroupStyles = css94`
19540
19532
 
19541
19533
  // src/components/Tabs/Tabs.tsx
19542
19534
  import { jsx as jsx116 } from "@emotion/react/jsx-runtime";
19543
- var CurrentTabContext = createContext6(null);
19535
+ var CurrentTabContext = createContext5(null);
19544
19536
  var useCurrentTab = () => {
19545
- const context = useContext7(CurrentTabContext);
19537
+ const context = useContext6(CurrentTabContext);
19546
19538
  if (!context) {
19547
19539
  throw new Error("This component can only be used inside <Tabs>");
19548
19540
  }
@@ -19555,7 +19547,7 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
19555
19547
  return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
19556
19548
  }, [selectedId, useHashForState]);
19557
19549
  const tab = useTabState({ ...props, selectedId: selected });
19558
- useEffect16(() => {
19550
+ useEffect15(() => {
19559
19551
  var _a;
19560
19552
  const selectedValueWithoutNull = (_a = tab.selectedId) != null ? _a : void 0;
19561
19553
  onSelectedIdChange == null ? void 0 : onSelectedIdChange(selectedValueWithoutNull);
@@ -19564,7 +19556,7 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
19564
19556
  window.history.pushState(null, "", hashValue);
19565
19557
  }
19566
19558
  }, [tab.selectedId, onSelectedIdChange, useHashForState]);
19567
- useEffect16(() => {
19559
+ useEffect15(() => {
19568
19560
  if (selected && selected !== tab.selectedId) {
19569
19561
  tab.setSelectedId(selected);
19570
19562
  }
@@ -19759,7 +19751,6 @@ export {
19759
19751
  LoadingOverlay,
19760
19752
  MediaCard,
19761
19753
  Menu,
19762
- MenuContext,
19763
19754
  MenuGroup,
19764
19755
  MenuItem,
19765
19756
  MenuItemSeparator,
@@ -19906,7 +19897,6 @@ export {
19906
19897
  useCurrentTab,
19907
19898
  useDrawer,
19908
19899
  useIconContext,
19909
- useMenuContext,
19910
19900
  useOutsideClick,
19911
19901
  useParameterShell,
19912
19902
  useShortcut,