@uniformdev/design-system 20.26.1-alpha.0 → 20.26.2

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
@@ -967,7 +967,7 @@ var button = css10`
967
967
  border-radius: var(--rounded-base);
968
968
  cursor: pointer;
969
969
  display: inline-flex;
970
- font-weight: var(--fw-medium);
970
+ font-weight: var(--fw-regular);
971
971
  transition:
972
972
  color var(--duration-fast) var(--timing-ease-out),
973
973
  border-color var(--duration-fast) var(--timing-ease-out);
@@ -1643,15 +1643,18 @@ function Tooltip({
1643
1643
  }
1644
1644
 
1645
1645
  // src/components/Button/hooks/useButtonStyles.ts
1646
+ var btnSize = {
1647
+ zero: "padding: 0",
1648
+ xs: "padding: 0.375rem 0.625rem; font-size: var(--fs-xs); line-height: 1.5;",
1649
+ sm: "padding: var(--spacing-sm) 0.75rem; font-size: var(--fs-sm);",
1650
+ md: "padding: var(--spacing-sm) var(--spacing-base); font-size: var(--fs-sm);",
1651
+ lg: "padding: var(--spacing-sm) var(--spacing-base)",
1652
+ xl: "padding: 0.75rem var(--spacing-md)"
1653
+ };
1654
+ var getButtonSize = (size) => {
1655
+ return btnSize[size];
1656
+ };
1646
1657
  var useButtonStyles = ({ size, ...props }) => {
1647
- const btnSize = {
1648
- zero: "padding: 0",
1649
- xs: "padding: 0.375rem 0.625rem; font-size: var(--fs-xs); line-height: 1.5;",
1650
- sm: "padding: var(--spacing-sm) 0.75rem; font-size: var(--fs-sm);",
1651
- md: "padding: var(--spacing-sm) var(--spacing-base); font-size: var(--fs-sm);",
1652
- lg: "padding: var(--spacing-sm) var(--spacing-base)",
1653
- xl: "padding: 0.75rem var(--spacing-md)"
1654
- };
1655
1658
  if ("variant" in props && props.variant === "soft") {
1656
1659
  const buttonSoftTheme = {
1657
1660
  primary: buttonSoftPrimary,
@@ -1704,7 +1707,7 @@ var Button = React2.forwardRef(
1704
1707
  disabled: disabled2,
1705
1708
  ...props
1706
1709
  }, ref) => {
1707
- const { btnSize, buttonTheme: buttonTheme2 } = useButtonStyles({
1710
+ const { btnSize: btnSize2, buttonTheme: buttonTheme2 } = useButtonStyles({
1708
1711
  theme: buttonType,
1709
1712
  size,
1710
1713
  ..."variant" in props ? { variant: props.variant } : {}
@@ -1715,7 +1718,7 @@ var Button = React2.forwardRef(
1715
1718
  BaseButton,
1716
1719
  {
1717
1720
  ref,
1718
- css: [button, buttonTheme2, btnSize],
1721
+ css: [button, buttonTheme2, btnSize2],
1719
1722
  ...props,
1720
1723
  onClick: clickHandler,
1721
1724
  disabled: disabledValue,
@@ -3426,9 +3429,7 @@ var AddListButtonBtn = css17`
3426
3429
  display: inline-flex;
3427
3430
  gap: var(--spacing-sm);
3428
3431
  font-size: var(--fs-base);
3429
- font-weight: var(--fw-bold);
3430
3432
  padding: 0;
3431
- margin-block: var(--spacing-base);
3432
3433
 
3433
3434
  &:disabled {
3434
3435
  cursor: default;
@@ -3446,7 +3447,6 @@ var AddListButtonTheme = (theme) => css17`
3446
3447
  var AddListButtonBtnSmall = css17`
3447
3448
  font-size: var(--fs-xs);
3448
3449
  font-weight: var(--fw-regular);
3449
- margin-block: var(--spacing-md) 0;
3450
3450
  `;
3451
3451
  var AddListButtonIconMathPlus = (disabled2, theme) => css17`
3452
3452
  box-sizing: border-box;
@@ -5597,32 +5597,16 @@ var buttonSizeBase = css36`
5597
5597
  --icon-padding: var(--spacing-xs);
5598
5598
  --svg-size: 1rem;
5599
5599
  --line-offset: -1px;
5600
- font-size: var(--fs-sm);
5601
-
5602
- button {
5603
- padding: var(--spacing-sm) var(--spacing-base);
5604
- }
5605
5600
  `;
5606
5601
  var buttonSizeSmall = css36`
5607
5602
  --icon-padding: var(--spacing-xs);
5608
5603
  --svg-size: 0.85rem;
5609
5604
  --line-offset: -1px;
5610
- font-size: var(--fs-sm);
5611
-
5612
- button {
5613
- padding: var(--spacing-xs) var(--spacing-base);
5614
- }
5615
5605
  `;
5616
5606
  var buttonSizeLarge = css36`
5617
5607
  --icon-padding: var(--spacing-sm);
5618
5608
  --svg-size: 1rem;
5619
5609
  --line-offset: -1px;
5620
- font-size: var(--fs-sm);
5621
-
5622
- button {
5623
- line-height: 1.5;
5624
- padding: var(--spacing-sm) var(--spacing-base);
5625
- }
5626
5610
  `;
5627
5611
  var ButtonWithMenuContainer = css36`
5628
5612
  align-items: center;
@@ -5660,7 +5644,6 @@ function ButtonWithMenuBtn(overrideHairlineColor) {
5660
5644
  align-items: center;
5661
5645
  border: 1px solid transparent;
5662
5646
  background: transparent;
5663
- line-height: 1;
5664
5647
  display: inline-flex;
5665
5648
  gap: var(--spacing-xs);
5666
5649
 
@@ -5786,7 +5769,7 @@ var ButtonWithMenu = ({
5786
5769
  disabled: disabled2,
5787
5770
  children,
5788
5771
  placement,
5789
- size = "lg",
5772
+ size = "base",
5790
5773
  menuContainerCssClasses,
5791
5774
  portal = false,
5792
5775
  maxMenuHeight,
@@ -5796,11 +5779,12 @@ var ButtonWithMenu = ({
5796
5779
  }) => {
5797
5780
  const onButtonClickHandler = onButtonClick != null ? onButtonClick : shortcut == null ? void 0 : shortcut.handler;
5798
5781
  const disabledValue = disabled2 != null ? disabled2 : shortcut == null ? void 0 : shortcut.disabled;
5782
+ const btnSize2 = getButtonSize(size === "base" ? "md" : size);
5799
5783
  const primaryButton = /* @__PURE__ */ jsxs31(
5800
5784
  "button",
5801
5785
  {
5802
5786
  type: "button",
5803
- css: ButtonWithMenuBtn(disabledValue ? void 0 : menuHairlineColors[buttonType]),
5787
+ css: [ButtonWithMenuBtn(disabledValue ? void 0 : menuHairlineColors[buttonType]), btnSize2],
5804
5788
  disabled: disabledValue,
5805
5789
  onClick: onButtonClickHandler,
5806
5790
  "data-testid": "multioptions-button-main",
@@ -9636,6 +9620,68 @@ var KeyValueInputItem = ({
9636
9620
  ] });
9637
9621
  };
9638
9622
 
9623
+ // src/components/Popover/Popover.tsx
9624
+ import {
9625
+ Popover as AriakitPopover,
9626
+ PopoverDisclosure as PopoverDisclosure2,
9627
+ PopoverProvider as PopoverProvider2,
9628
+ usePopoverContext,
9629
+ usePopoverStore as usePopoverStore2
9630
+ } from "@ariakit/react";
9631
+ import { useEffect as useEffect12 } from "react";
9632
+ import { Fragment as Fragment10, jsx as jsx92, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
9633
+ var Popover3 = ({
9634
+ iconColor = "action",
9635
+ icon = "info",
9636
+ iconSize = "1rem",
9637
+ buttonText,
9638
+ ariaLabel,
9639
+ placement = "bottom",
9640
+ testId,
9641
+ trigger: trigger2,
9642
+ children,
9643
+ onInit,
9644
+ variant = "small",
9645
+ maxWidth = variant === "large" ? "24rem" : "14rem",
9646
+ ...otherProps
9647
+ }) => {
9648
+ const popover2 = usePopoverStore2({ placement });
9649
+ useEffect12(() => {
9650
+ onInit == null ? void 0 : onInit({ store: popover2 });
9651
+ }, [popover2]);
9652
+ return /* @__PURE__ */ jsxs59(PopoverProvider2, { store: popover2, children: [
9653
+ /* @__PURE__ */ jsx92(
9654
+ PopoverDisclosure2,
9655
+ {
9656
+ css: [PopoverBtn, trigger2 ? void 0 : PopoverDefaulterTriggerBtn],
9657
+ title: buttonText,
9658
+ "data-testid": testId,
9659
+ children: trigger2 ? trigger2 : /* @__PURE__ */ jsxs59(Fragment10, { children: [
9660
+ /* @__PURE__ */ jsx92(Icon, { icon, iconColor, size: iconSize }),
9661
+ /* @__PURE__ */ jsx92("span", { hidden: true, children: buttonText })
9662
+ ] })
9663
+ }
9664
+ ),
9665
+ /* @__PURE__ */ jsx92(
9666
+ AriakitPopover,
9667
+ {
9668
+ unmountOnHide: true,
9669
+ style: {
9670
+ maxWidth
9671
+ },
9672
+ css: [Popover, variant === "large" ? PopoverVariantLarge : PopoverVariantSmall],
9673
+ ...otherProps,
9674
+ "aria-label": ariaLabel,
9675
+ children
9676
+ }
9677
+ )
9678
+ ] });
9679
+ };
9680
+ var usePopoverComponentContext = () => {
9681
+ const contextValue = usePopoverContext();
9682
+ return contextValue;
9683
+ };
9684
+
9639
9685
  // src/components/LimitsBar/LimitsBar.styles.ts
9640
9686
  import { css as css70 } from "@emotion/react";
9641
9687
  var LimitsBarContainer = css70`
@@ -9653,13 +9699,8 @@ var LimitsBarProgressBarLine = css70`
9653
9699
  inset: 0;
9654
9700
  transition: transform var(--duration-fast) var(--timing-ease-out);
9655
9701
  `;
9656
- var LimitsBarLabelContainer = css70`
9657
- display: flex;
9658
- justify-content: space-between;
9659
- font-weight: var(--fw-bold);
9660
- `;
9661
- var LimitsBarLabel = css70`
9662
- font-size: var(--fs-baase);
9702
+ var LimitsBarCountText = css70`
9703
+ font-size: var(--fs-sm);
9663
9704
  `;
9664
9705
  var LimitsBarBgColor = (statusColor) => css70`
9665
9706
  background: ${statusColor};
@@ -9669,36 +9710,40 @@ var LimitsBarTextColor = (statusColor) => css70`
9669
9710
  `;
9670
9711
 
9671
9712
  // src/components/LimitsBar/LimitsBar.tsx
9672
- import { jsx as jsx92, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
9673
- var LimitsBar = ({ current, max, label }) => {
9713
+ import { jsx as jsx93, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
9714
+ var LimitsBar = ({ current, max, popoverContent }) => {
9674
9715
  const maxPercentage = 100;
9675
- const progressBarValue = Math.ceil(current / max * maxPercentage);
9676
- const colorMap = {
9677
- base: "var(--gray-400)",
9678
- warn: "#facc15",
9679
- // Not in the design system token at present
9680
- danger: "var(--brand-secondary-5)"
9716
+ const isUnlimited = max < 0;
9717
+ const progressBarValue = isUnlimited ? maxPercentage : Math.min(Math.ceil(current / max * maxPercentage), maxPercentage);
9718
+ const percentage = isUnlimited ? 0 : current / max * 100;
9719
+ const getBarColor = () => {
9720
+ if (isUnlimited) return "var(--utility-success-icon)";
9721
+ if (percentage >= 100) return "var(--utility-danger-icon)";
9722
+ if (percentage >= 90) return "var(--utility-caution-icon)";
9723
+ return "var(--utility-success-icon)";
9681
9724
  };
9682
- const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
9683
- return /* @__PURE__ */ jsxs59("div", { css: LimitsBarContainer, children: [
9684
- /* @__PURE__ */ jsxs59("div", { css: LimitsBarLabelContainer, children: [
9685
- /* @__PURE__ */ jsx92("span", { css: LimitsBarLabel, children: label }),
9686
- /* @__PURE__ */ jsxs59("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
9687
- current,
9688
- " of ",
9689
- max
9690
- ] })
9691
- ] }),
9692
- /* @__PURE__ */ jsx92(
9725
+ const getTextColor = () => {
9726
+ if (isUnlimited) return "var(--utility-success-icon)";
9727
+ if (percentage >= 100) return "var(--utility-danger-title)";
9728
+ if (percentage >= 90) return "var(--utility-caution-title)";
9729
+ return "var(--typography-light)";
9730
+ };
9731
+ const statusColor = getBarColor();
9732
+ const textColor = getTextColor();
9733
+ const displayText = isUnlimited ? `${current} of unlimited` : `${current} of ${max}`;
9734
+ const ariaValueMax = isUnlimited ? -1 : max;
9735
+ const ariaValueText = displayText;
9736
+ return /* @__PURE__ */ jsxs60("div", { css: [LimitsBarContainer, functionalColors], children: [
9737
+ /* @__PURE__ */ jsx93(
9693
9738
  "div",
9694
9739
  {
9695
9740
  role: "progressbar",
9696
9741
  "aria-valuenow": current,
9697
9742
  "aria-valuemin": 0,
9698
- "aria-valuemax": max,
9699
- "aria-valuetext": `${current} of ${max}`,
9743
+ "aria-valuemax": ariaValueMax,
9744
+ "aria-valuetext": ariaValueText,
9700
9745
  css: LimitsBarProgressBar,
9701
- children: /* @__PURE__ */ jsx92(
9746
+ children: /* @__PURE__ */ jsx93(
9702
9747
  "span",
9703
9748
  {
9704
9749
  role: "presentation",
@@ -9709,7 +9754,11 @@ var LimitsBar = ({ current, max, label }) => {
9709
9754
  }
9710
9755
  )
9711
9756
  }
9712
- )
9757
+ ),
9758
+ /* @__PURE__ */ jsxs60(HorizontalRhythm, { gap: "sm", align: "center", children: [
9759
+ /* @__PURE__ */ jsx93("span", { css: [LimitsBarCountText, LimitsBarTextColor(textColor)], "aria-label": "usage count", children: displayText }),
9760
+ popoverContent ? /* @__PURE__ */ jsx93(Popover3, { buttonText: "Info", placement: "top", children: popoverContent }) : null
9761
+ ] })
9713
9762
  ] });
9714
9763
  };
9715
9764
 
@@ -9728,10 +9777,10 @@ var LinkListTitle = css71`
9728
9777
  `;
9729
9778
 
9730
9779
  // src/components/LinkList/LinkList.tsx
9731
- import { jsx as jsx93, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
9780
+ import { jsx as jsx94, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
9732
9781
  var LinkList = ({ title, children, ...props }) => {
9733
- return /* @__PURE__ */ jsxs60("div", { css: LinkListContainer, ...props, children: [
9734
- /* @__PURE__ */ jsx93(Heading2, { level: 3, css: LinkListTitle, withMarginBottom: false, children: title }),
9782
+ return /* @__PURE__ */ jsxs61("div", { css: LinkListContainer, ...props, children: [
9783
+ /* @__PURE__ */ jsx94(Heading2, { level: 3, css: LinkListTitle, withMarginBottom: false, children: title }),
9735
9784
  children
9736
9785
  ] });
9737
9786
  };
@@ -9767,10 +9816,10 @@ var ScrollableListInner = css72`
9767
9816
  `;
9768
9817
 
9769
9818
  // src/components/List/ScrollableList.tsx
9770
- import { jsx as jsx94, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
9819
+ import { jsx as jsx95, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
9771
9820
  var ScrollableList = ({ label, children, ...props }) => {
9772
- return /* @__PURE__ */ jsxs61("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
9773
- label ? /* @__PURE__ */ jsx94(
9821
+ return /* @__PURE__ */ jsxs62("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
9822
+ label ? /* @__PURE__ */ jsx95(
9774
9823
  "span",
9775
9824
  {
9776
9825
  css: css73`
@@ -9779,7 +9828,7 @@ var ScrollableList = ({ label, children, ...props }) => {
9779
9828
  children: label
9780
9829
  }
9781
9830
  ) : null,
9782
- /* @__PURE__ */ jsx94("div", { css: [ScrollableListInner, scrollbarStyles], children })
9831
+ /* @__PURE__ */ jsx95("div", { css: [ScrollableListInner, scrollbarStyles], children })
9783
9832
  ] });
9784
9833
  };
9785
9834
 
@@ -9851,7 +9900,7 @@ var ScrollableListIconVisible = css74`
9851
9900
  `;
9852
9901
 
9853
9902
  // src/components/List/ScrollableListInputItem.tsx
9854
- import { jsx as jsx95, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
9903
+ import { jsx as jsx96, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
9855
9904
  var ScrollableListInputItem = ({
9856
9905
  label,
9857
9906
  icon,
@@ -9861,7 +9910,7 @@ var ScrollableListInputItem = ({
9861
9910
  labelTestId,
9862
9911
  ...props
9863
9912
  }) => {
9864
- return /* @__PURE__ */ jsx95(
9913
+ return /* @__PURE__ */ jsx96(
9865
9914
  "div",
9866
9915
  {
9867
9916
  css: [
@@ -9870,13 +9919,13 @@ var ScrollableListInputItem = ({
9870
9919
  active2 ? ScrollableListItemActive : void 0
9871
9920
  ],
9872
9921
  ...props,
9873
- children: /* @__PURE__ */ jsxs62("label", { "data-testid": labelTestId, css: ScrollableListInputLabel, children: [
9874
- /* @__PURE__ */ jsxs62("span", { css: ScrollableListInputText, children: [
9922
+ children: /* @__PURE__ */ jsxs63("label", { "data-testid": labelTestId, css: ScrollableListInputLabel, children: [
9923
+ /* @__PURE__ */ jsxs63("span", { css: ScrollableListInputText, children: [
9875
9924
  icon,
9876
9925
  label
9877
9926
  ] }),
9878
- /* @__PURE__ */ jsx95("div", { css: ScrollableListHiddenInput, children }),
9879
- /* @__PURE__ */ jsx95(
9927
+ /* @__PURE__ */ jsx96("div", { css: ScrollableListHiddenInput, children }),
9928
+ /* @__PURE__ */ jsx96(
9880
9929
  Icon,
9881
9930
  {
9882
9931
  icon: CgCheck3,
@@ -9894,7 +9943,7 @@ var ScrollableListInputItem = ({
9894
9943
 
9895
9944
  // src/components/List/ScrollableListItem.tsx
9896
9945
  import { CgCheck as CgCheck4 } from "@react-icons/all-files/cg/CgCheck";
9897
- import { jsx as jsx96, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
9946
+ import { jsx as jsx97, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
9898
9947
  var ScrollableListItem = ({
9899
9948
  buttonText,
9900
9949
  icon,
@@ -9902,7 +9951,7 @@ var ScrollableListItem = ({
9902
9951
  disableShadow,
9903
9952
  ...props
9904
9953
  }) => {
9905
- return /* @__PURE__ */ jsx96(
9954
+ return /* @__PURE__ */ jsx97(
9906
9955
  "div",
9907
9956
  {
9908
9957
  css: [
@@ -9910,12 +9959,12 @@ var ScrollableListItem = ({
9910
9959
  disableShadow ? void 0 : ScrollableListItemShadow,
9911
9960
  active2 ? ScrollableListItemActive : void 0
9912
9961
  ],
9913
- children: /* @__PURE__ */ jsxs63("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
9914
- /* @__PURE__ */ jsxs63(HorizontalRhythm, { gap: "xs", align: "center", children: [
9962
+ children: /* @__PURE__ */ jsxs64("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
9963
+ /* @__PURE__ */ jsxs64(HorizontalRhythm, { gap: "xs", align: "center", children: [
9915
9964
  icon,
9916
- /* @__PURE__ */ jsx96("span", { children: buttonText })
9965
+ /* @__PURE__ */ jsx97("span", { children: buttonText })
9917
9966
  ] }),
9918
- /* @__PURE__ */ jsx96(
9967
+ /* @__PURE__ */ jsx97(
9919
9968
  Icon,
9920
9969
  {
9921
9970
  icon: CgCheck4,
@@ -9982,7 +10031,7 @@ function loadingDot(size, backgroundColor) {
9982
10031
  }
9983
10032
 
9984
10033
  // src/components/LoadingIndicator/LoadingIndicator.tsx
9985
- import { jsx as jsx97, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
10034
+ import { jsx as jsx98, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
9986
10035
  var cssColorMap = {
9987
10036
  gray: "var(--gray-700)",
9988
10037
  "accent-alt": "var(--accent-alt-dark)"
@@ -9990,10 +10039,10 @@ var cssColorMap = {
9990
10039
  var LoadingIndicator = ({ size = "lg", color = "gray", ...props }) => {
9991
10040
  const cssColor = cssColorMap[color];
9992
10041
  const dotStyle = loadingDot(size, cssColor);
9993
- return /* @__PURE__ */ jsxs64("div", { role: "alert", css: loader, "data-testid": "loading-indicator", ...props, children: [
9994
- /* @__PURE__ */ jsx97("span", { css: dotStyle }),
9995
- /* @__PURE__ */ jsx97("span", { css: dotStyle }),
9996
- /* @__PURE__ */ jsx97("span", { css: dotStyle })
10042
+ return /* @__PURE__ */ jsxs65("div", { role: "alert", css: loader, "data-testid": "loading-indicator", ...props, children: [
10043
+ /* @__PURE__ */ jsx98("span", { css: dotStyle }),
10044
+ /* @__PURE__ */ jsx98("span", { css: dotStyle }),
10045
+ /* @__PURE__ */ jsx98("span", { css: dotStyle })
9997
10046
  ] });
9998
10047
  };
9999
10048
 
@@ -10218,7 +10267,7 @@ var loaderAnimationContainer = css76`
10218
10267
  `;
10219
10268
 
10220
10269
  // src/components/LoadingOverlay/LoadingOverlay.tsx
10221
- import { jsx as jsx98, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
10270
+ import { jsx as jsx99, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
10222
10271
  var LoadingOverlay = ({
10223
10272
  isActive,
10224
10273
  statusMessage,
@@ -10230,7 +10279,7 @@ var LoadingOverlay = ({
10230
10279
  children,
10231
10280
  position = "absolute"
10232
10281
  }) => {
10233
- return /* @__PURE__ */ jsxs65(
10282
+ return /* @__PURE__ */ jsxs66(
10234
10283
  "div",
10235
10284
  {
10236
10285
  role: "alert",
@@ -10243,11 +10292,11 @@ var LoadingOverlay = ({
10243
10292
  "aria-hidden": !isActive,
10244
10293
  "aria-busy": isActive && !isPaused,
10245
10294
  children: [
10246
- /* @__PURE__ */ jsx98("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
10247
- /* @__PURE__ */ jsx98("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ jsxs65("div", { css: loadingOverlayBody, children: [
10248
- /* @__PURE__ */ jsx98(LoadingAnimation, { label: "Loading...", isPaused, width: loaderSize }),
10249
- statusMessage ? /* @__PURE__ */ jsx98("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
10250
- /* @__PURE__ */ jsx98("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
10295
+ /* @__PURE__ */ jsx99("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
10296
+ /* @__PURE__ */ jsx99("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ jsxs66("div", { css: loadingOverlayBody, children: [
10297
+ /* @__PURE__ */ jsx99(LoadingAnimation, { label: "Loading...", isPaused, width: loaderSize }),
10298
+ statusMessage ? /* @__PURE__ */ jsx99("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
10299
+ /* @__PURE__ */ jsx99("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
10251
10300
  ] }) })
10252
10301
  ]
10253
10302
  }
@@ -10259,7 +10308,7 @@ var LoadingAnimation = ({
10259
10308
  css: css110,
10260
10309
  isPaused
10261
10310
  }) => {
10262
- return /* @__PURE__ */ jsxs65(
10311
+ return /* @__PURE__ */ jsxs66(
10263
10312
  "div",
10264
10313
  {
10265
10314
  "aria-label": label,
@@ -10270,38 +10319,38 @@ var LoadingAnimation = ({
10270
10319
  css: [loaderAnimationContainer, css110],
10271
10320
  className: `loader-container${isPaused ? " paused" : ""}`,
10272
10321
  children: [
10273
- /* @__PURE__ */ jsxs65("div", { className: "bottom-cubes", children: [
10274
- /* @__PURE__ */ jsxs65("div", { className: "cube cube-1 bottom-cube", children: [
10275
- /* @__PURE__ */ jsx98("div", { className: "face left" }),
10276
- /* @__PURE__ */ jsx98("div", { className: "face right" }),
10277
- /* @__PURE__ */ jsx98("div", { className: "face top" })
10322
+ /* @__PURE__ */ jsxs66("div", { className: "bottom-cubes", children: [
10323
+ /* @__PURE__ */ jsxs66("div", { className: "cube cube-1 bottom-cube", children: [
10324
+ /* @__PURE__ */ jsx99("div", { className: "face left" }),
10325
+ /* @__PURE__ */ jsx99("div", { className: "face right" }),
10326
+ /* @__PURE__ */ jsx99("div", { className: "face top" })
10278
10327
  ] }),
10279
- /* @__PURE__ */ jsxs65("div", { className: "cube cube-2 bottom-cube", children: [
10280
- /* @__PURE__ */ jsx98("div", { className: "face left" }),
10281
- /* @__PURE__ */ jsx98("div", { className: "face right" }),
10282
- /* @__PURE__ */ jsx98("div", { className: "face top" })
10328
+ /* @__PURE__ */ jsxs66("div", { className: "cube cube-2 bottom-cube", children: [
10329
+ /* @__PURE__ */ jsx99("div", { className: "face left" }),
10330
+ /* @__PURE__ */ jsx99("div", { className: "face right" }),
10331
+ /* @__PURE__ */ jsx99("div", { className: "face top" })
10283
10332
  ] }),
10284
- /* @__PURE__ */ jsxs65("div", { className: "cube cube-3 bottom-cube", children: [
10285
- /* @__PURE__ */ jsx98("div", { className: "face left" }),
10286
- /* @__PURE__ */ jsx98("div", { className: "face right" }),
10287
- /* @__PURE__ */ jsx98("div", { className: "face top" })
10333
+ /* @__PURE__ */ jsxs66("div", { className: "cube cube-3 bottom-cube", children: [
10334
+ /* @__PURE__ */ jsx99("div", { className: "face left" }),
10335
+ /* @__PURE__ */ jsx99("div", { className: "face right" }),
10336
+ /* @__PURE__ */ jsx99("div", { className: "face top" })
10288
10337
  ] })
10289
10338
  ] }),
10290
- /* @__PURE__ */ jsxs65("div", { className: "top-cubes", children: [
10291
- /* @__PURE__ */ jsxs65("div", { className: "cube cube-1", children: [
10292
- /* @__PURE__ */ jsx98("div", { className: "face left" }),
10293
- /* @__PURE__ */ jsx98("div", { className: "face right" }),
10294
- /* @__PURE__ */ jsx98("div", { className: "face top" })
10339
+ /* @__PURE__ */ jsxs66("div", { className: "top-cubes", children: [
10340
+ /* @__PURE__ */ jsxs66("div", { className: "cube cube-1", children: [
10341
+ /* @__PURE__ */ jsx99("div", { className: "face left" }),
10342
+ /* @__PURE__ */ jsx99("div", { className: "face right" }),
10343
+ /* @__PURE__ */ jsx99("div", { className: "face top" })
10295
10344
  ] }),
10296
- /* @__PURE__ */ jsxs65("div", { className: "cube cube-2", children: [
10297
- /* @__PURE__ */ jsx98("div", { className: "face left" }),
10298
- /* @__PURE__ */ jsx98("div", { className: "face right" }),
10299
- /* @__PURE__ */ jsx98("div", { className: "face top" })
10345
+ /* @__PURE__ */ jsxs66("div", { className: "cube cube-2", children: [
10346
+ /* @__PURE__ */ jsx99("div", { className: "face left" }),
10347
+ /* @__PURE__ */ jsx99("div", { className: "face right" }),
10348
+ /* @__PURE__ */ jsx99("div", { className: "face top" })
10300
10349
  ] }),
10301
- /* @__PURE__ */ jsxs65("div", { className: "cube cube-3", children: [
10302
- /* @__PURE__ */ jsx98("div", { className: "face left" }),
10303
- /* @__PURE__ */ jsx98("div", { className: "face right" }),
10304
- /* @__PURE__ */ jsx98("div", { className: "face top" })
10350
+ /* @__PURE__ */ jsxs66("div", { className: "cube cube-3", children: [
10351
+ /* @__PURE__ */ jsx99("div", { className: "face left" }),
10352
+ /* @__PURE__ */ jsx99("div", { className: "face right" }),
10353
+ /* @__PURE__ */ jsx99("div", { className: "face top" })
10305
10354
  ] })
10306
10355
  ] })
10307
10356
  ]
@@ -10309,7 +10358,7 @@ var LoadingAnimation = ({
10309
10358
  );
10310
10359
  };
10311
10360
  var LoadingIcon = ({ height, width, ...props }) => {
10312
- return /* @__PURE__ */ jsx98(
10361
+ return /* @__PURE__ */ jsx99(
10313
10362
  "svg",
10314
10363
  {
10315
10364
  viewBox: "0 0 38 38",
@@ -10319,9 +10368,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
10319
10368
  stroke: "currentColor",
10320
10369
  ...props,
10321
10370
  "data-testid": "loading-icon",
10322
- children: /* @__PURE__ */ jsx98("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs65("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
10323
- /* @__PURE__ */ jsx98("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
10324
- /* @__PURE__ */ jsx98("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ jsx98(
10371
+ children: /* @__PURE__ */ jsx99("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs66("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
10372
+ /* @__PURE__ */ jsx99("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
10373
+ /* @__PURE__ */ jsx99("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ jsx99(
10325
10374
  "animateTransform",
10326
10375
  {
10327
10376
  attributeName: "transform",
@@ -10340,7 +10389,7 @@ var LoadingIcon = ({ height, width, ...props }) => {
10340
10389
  // src/components/Modal/Modal.tsx
10341
10390
  import { PortalContext } from "@ariakit/react";
10342
10391
  import { CgClose as CgClose4 } from "@react-icons/all-files/cg/CgClose";
10343
- import React17, { useEffect as useEffect12, useRef as useRef7 } from "react";
10392
+ import React17, { useEffect as useEffect13, useRef as useRef7 } from "react";
10344
10393
 
10345
10394
  // src/components/Modal/Modal.styles.ts
10346
10395
  import { css as css77 } from "@emotion/react";
@@ -10427,7 +10476,7 @@ var modalDialogInnerStyles = css77`
10427
10476
  `;
10428
10477
 
10429
10478
  // src/components/Modal/Modal.tsx
10430
- import { jsx as jsx99, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
10479
+ import { jsx as jsx100, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
10431
10480
  var defaultModalWidth = "75rem";
10432
10481
  var defaultModalHeight = "51rem";
10433
10482
  var Modal = React17.forwardRef(
@@ -10457,7 +10506,7 @@ var Modal = React17.forwardRef(
10457
10506
  },
10458
10507
  shortcut: "escape"
10459
10508
  });
10460
- useEffect12(() => {
10509
+ useEffect13(() => {
10461
10510
  var _a;
10462
10511
  if (!document.contains(dialogRef.current)) {
10463
10512
  console.warn(
@@ -10471,7 +10520,7 @@ var Modal = React17.forwardRef(
10471
10520
  (_a2 = dialogRef.current) == null ? void 0 : _a2.close();
10472
10521
  };
10473
10522
  }, []);
10474
- return /* @__PURE__ */ jsx99(
10523
+ return /* @__PURE__ */ jsx100(
10475
10524
  "dialog",
10476
10525
  {
10477
10526
  ref: (element) => {
@@ -10509,7 +10558,7 @@ var Modal = React17.forwardRef(
10509
10558
  e.preventDefault();
10510
10559
  },
10511
10560
  ...modalProps,
10512
- children: /* @__PURE__ */ jsx99(PortalContext.Provider, { value: dialogRef.current, children: /* @__PURE__ */ jsxs66(
10561
+ children: /* @__PURE__ */ jsx100(PortalContext.Provider, { value: dialogRef.current, children: /* @__PURE__ */ jsxs67(
10513
10562
  "div",
10514
10563
  {
10515
10564
  css: [modalInnerStyles, { height: height === "auto" ? "auto" : "100%" }],
@@ -10518,9 +10567,9 @@ var Modal = React17.forwardRef(
10518
10567
  mouseDownInsideModal.current = true;
10519
10568
  },
10520
10569
  children: [
10521
- header2 || onRequestClose ? /* @__PURE__ */ jsxs66("div", { css: modalHeaderStyles, children: [
10522
- header2 ? /* @__PURE__ */ jsx99("div", { css: modalHeaderHeaderStyles, children: header2 }) : null,
10523
- onRequestClose ? /* @__PURE__ */ jsx99(
10570
+ header2 || onRequestClose ? /* @__PURE__ */ jsxs67("div", { css: modalHeaderStyles, children: [
10571
+ header2 ? /* @__PURE__ */ jsx100("div", { css: modalHeaderHeaderStyles, children: header2 }) : null,
10572
+ onRequestClose ? /* @__PURE__ */ jsx100(
10524
10573
  Button,
10525
10574
  {
10526
10575
  type: "button",
@@ -10529,11 +10578,11 @@ var Modal = React17.forwardRef(
10529
10578
  title: "Close dialog",
10530
10579
  buttonType: "ghost",
10531
10580
  "data-testid": "close-dialog",
10532
- children: /* @__PURE__ */ jsx99(Icon, { icon: CgClose4, iconColor: "currentColor", size: 24 })
10581
+ children: /* @__PURE__ */ jsx100(Icon, { icon: CgClose4, iconColor: "currentColor", size: 24 })
10533
10582
  }
10534
10583
  ) : null
10535
10584
  ] }) : null,
10536
- /* @__PURE__ */ jsx99(
10585
+ /* @__PURE__ */ jsx100(
10537
10586
  "div",
10538
10587
  {
10539
10588
  css: [
@@ -10545,7 +10594,7 @@ var Modal = React17.forwardRef(
10545
10594
  children
10546
10595
  }
10547
10596
  ),
10548
- buttonGroup ? /* @__PURE__ */ jsx99(HorizontalRhythm, { children: buttonGroup }) : null
10597
+ buttonGroup ? /* @__PURE__ */ jsx100(HorizontalRhythm, { children: buttonGroup }) : null
10549
10598
  ]
10550
10599
  }
10551
10600
  ) })
@@ -10557,10 +10606,10 @@ Modal.displayName = "Modal";
10557
10606
 
10558
10607
  // src/components/Modal/ModalDialog.tsx
10559
10608
  import { forwardRef as forwardRef18 } from "react";
10560
- import { jsx as jsx100, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
10609
+ import { jsx as jsx101, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
10561
10610
  var ModalDialog = forwardRef18(
10562
10611
  ({ header: header2, buttonGroup, modalSize = "lg", children, height = "auto", onRequestClose, ...props }, ref) => {
10563
- return /* @__PURE__ */ jsx100(
10612
+ return /* @__PURE__ */ jsx101(
10564
10613
  Modal,
10565
10614
  {
10566
10615
  ...props,
@@ -10572,10 +10621,10 @@ var ModalDialog = forwardRef18(
10572
10621
  withoutContentPadding: true,
10573
10622
  css: modalDialogInnerStyles,
10574
10623
  width: "",
10575
- children: /* @__PURE__ */ jsxs67(VerticalRhythm, { css: modalDialogWrapper(Boolean(onRequestClose)), children: [
10576
- /* @__PURE__ */ jsx100("div", { css: modalHeaderStyles, children: header2 }),
10577
- /* @__PURE__ */ jsx100("div", { css: { flex: 1 }, children }),
10578
- /* @__PURE__ */ jsx100(HorizontalRhythm, { children: buttonGroup })
10624
+ children: /* @__PURE__ */ jsxs68(VerticalRhythm, { css: modalDialogWrapper(Boolean(onRequestClose)), children: [
10625
+ /* @__PURE__ */ jsx101("div", { css: modalHeaderStyles, children: header2 }),
10626
+ /* @__PURE__ */ jsx101("div", { css: { flex: 1 }, children }),
10627
+ /* @__PURE__ */ jsx101(HorizontalRhythm, { children: buttonGroup })
10579
10628
  ] })
10580
10629
  }
10581
10630
  );
@@ -10595,10 +10644,10 @@ var ObjectGridContainer = (gridCount) => css78`
10595
10644
  `;
10596
10645
 
10597
10646
  // src/components/Objects/ObjectGridContainer.tsx
10598
- import { jsx as jsx101 } from "@emotion/react/jsx-runtime";
10647
+ import { jsx as jsx102 } from "@emotion/react/jsx-runtime";
10599
10648
  var ObjectGridContainer2 = forwardRef19(
10600
10649
  ({ gridCount = 3, children, ...props }, ref) => {
10601
- return /* @__PURE__ */ jsx101(
10650
+ return /* @__PURE__ */ jsx102(
10602
10651
  "div",
10603
10652
  {
10604
10653
  ref,
@@ -10683,7 +10732,7 @@ var ObjectGridItemSubtitle = css79`
10683
10732
  `;
10684
10733
 
10685
10734
  // src/components/Objects/ObjectGridItem.tsx
10686
- import { jsx as jsx102, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
10735
+ import { jsx as jsx103, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
10687
10736
  var ObjectGridItem2 = ({
10688
10737
  header: header2,
10689
10738
  cover,
@@ -10698,20 +10747,20 @@ var ObjectGridItem2 = ({
10698
10747
  const onStopPropagation = (e) => {
10699
10748
  e.stopPropagation();
10700
10749
  };
10701
- return /* @__PURE__ */ jsxs68(
10750
+ return /* @__PURE__ */ jsxs69(
10702
10751
  "div",
10703
10752
  {
10704
10753
  css: [ObjectGridItem, props.onClick ? ObjectGridWithOnClick : void 0],
10705
10754
  "aria-selected": isSelected,
10706
10755
  ...props,
10707
10756
  children: [
10708
- /* @__PURE__ */ jsx102("div", { css: ObjectGridItemMediaWrapper, children: /* @__PURE__ */ jsx102("div", { css: ObjectGridItemMediaInner, children: cover }) }),
10709
- /* @__PURE__ */ jsxs68("div", { css: ObjectGridItemContentWrapper, children: [
10710
- /* @__PURE__ */ jsxs68(VerticalRhythm, { gap: "0", css: ObjectGridItemInnerWrapper, children: [
10711
- /* @__PURE__ */ jsx102(HorizontalRhythm, { gap: "xs", align: "center", children: header2 }),
10712
- /* @__PURE__ */ jsx102("div", { css: ObjectGridItemSubtitle, children })
10757
+ /* @__PURE__ */ jsx103("div", { css: ObjectGridItemMediaWrapper, children: /* @__PURE__ */ jsx103("div", { css: ObjectGridItemMediaInner, children: cover }) }),
10758
+ /* @__PURE__ */ jsxs69("div", { css: ObjectGridItemContentWrapper, children: [
10759
+ /* @__PURE__ */ jsxs69(VerticalRhythm, { gap: "0", css: ObjectGridItemInnerWrapper, children: [
10760
+ /* @__PURE__ */ jsx103(HorizontalRhythm, { gap: "xs", align: "center", children: header2 }),
10761
+ /* @__PURE__ */ jsx103("div", { css: ObjectGridItemSubtitle, children })
10713
10762
  ] }),
10714
- /* @__PURE__ */ jsxs68(
10763
+ /* @__PURE__ */ jsxs69(
10715
10764
  HorizontalRhythm,
10716
10765
  {
10717
10766
  gap: "xs",
@@ -10720,10 +10769,10 @@ var ObjectGridItem2 = ({
10720
10769
  onClick: hasOnClick ? onStopPropagation : void 0,
10721
10770
  children: [
10722
10771
  rightSlot,
10723
- menuItems ? /* @__PURE__ */ jsx102(
10772
+ menuItems ? /* @__PURE__ */ jsx103(
10724
10773
  Menu,
10725
10774
  {
10726
- menuTrigger: /* @__PURE__ */ jsx102(MenuThreeDots, { "data-testid": menuTestId != null ? menuTestId : "object-grid-item-menu-btn" }),
10775
+ menuTrigger: /* @__PURE__ */ jsx103(MenuThreeDots, { "data-testid": menuTestId != null ? menuTestId : "object-grid-item-menu-btn" }),
10727
10776
  placement: "bottom-end",
10728
10777
  children: menuItems
10729
10778
  }
@@ -10817,11 +10866,11 @@ var CoverSelectedChip = css80`
10817
10866
  `;
10818
10867
 
10819
10868
  // src/components/Objects/ObjectGridItemCardCover.tsx
10820
- import { Fragment as Fragment10, jsx as jsx103, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
10869
+ import { Fragment as Fragment11, jsx as jsx104, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
10821
10870
  var ObjectGridItemCardCover = (props) => {
10822
10871
  if ("imageUrl" in props && props.imageUrl) {
10823
10872
  const { imageUrl, srcSet, alt } = props;
10824
- return /* @__PURE__ */ jsx103("div", { css: CoverContainer, children: /* @__PURE__ */ jsx103(
10873
+ return /* @__PURE__ */ jsx104("div", { css: CoverContainer, children: /* @__PURE__ */ jsx104(
10825
10874
  "img",
10826
10875
  {
10827
10876
  src: imageUrl,
@@ -10836,9 +10885,9 @@ var ObjectGridItemCardCover = (props) => {
10836
10885
  }
10837
10886
  if ("icon" in props && props.icon) {
10838
10887
  const { icon, iconColor } = props;
10839
- return /* @__PURE__ */ jsx103("div", { css: CoverContainer, children: /* @__PURE__ */ jsxs69("div", { css: CoverIconWrapper, "data-testid": "object-grid-item-thumbnail", children: [
10840
- /* @__PURE__ */ jsx103(Icon, { icon, iconColor: iconColor != null ? iconColor : "currentColor", css: CoverIconGhost }),
10841
- /* @__PURE__ */ jsx103(Icon, { icon, iconColor: iconColor != null ? iconColor : "currentColor", size: 48 })
10888
+ return /* @__PURE__ */ jsx104("div", { css: CoverContainer, children: /* @__PURE__ */ jsxs70("div", { css: CoverIconWrapper, "data-testid": "object-grid-item-thumbnail", children: [
10889
+ /* @__PURE__ */ jsx104(Icon, { icon, iconColor: iconColor != null ? iconColor : "currentColor", css: CoverIconGhost }),
10890
+ /* @__PURE__ */ jsx104(Icon, { icon, iconColor: iconColor != null ? iconColor : "currentColor", size: 48 })
10842
10891
  ] }) });
10843
10892
  }
10844
10893
  };
@@ -10849,12 +10898,12 @@ var ObjectGridItemCover = ({
10849
10898
  coverSlotBottomRight,
10850
10899
  ...props
10851
10900
  }) => {
10852
- return /* @__PURE__ */ jsxs69(Fragment10, { children: [
10853
- coverSlotLeft ? /* @__PURE__ */ jsx103("div", { css: [CoverSlot, CoverSlotLeft], children: coverSlotLeft }) : null,
10854
- /* @__PURE__ */ jsx103(ObjectGridItemCardCover, { ...props }),
10855
- coverSlotRight ? /* @__PURE__ */ jsx103("div", { css: [CoverSlot, CoverSlotRight], children: coverSlotRight }) : null,
10856
- coverSlotBottomLeft ? /* @__PURE__ */ jsx103("div", { css: [CoverSlotBottom, CoverSlotBottomLeft], children: coverSlotBottomLeft }) : null,
10857
- coverSlotBottomRight ? /* @__PURE__ */ jsx103("div", { css: [CoverSlotBottom, CoverSlotBottomRight], children: coverSlotBottomRight }) : null
10901
+ return /* @__PURE__ */ jsxs70(Fragment11, { children: [
10902
+ coverSlotLeft ? /* @__PURE__ */ jsx104("div", { css: [CoverSlot, CoverSlotLeft], children: coverSlotLeft }) : null,
10903
+ /* @__PURE__ */ jsx104(ObjectGridItemCardCover, { ...props }),
10904
+ coverSlotRight ? /* @__PURE__ */ jsx104("div", { css: [CoverSlot, CoverSlotRight], children: coverSlotRight }) : null,
10905
+ coverSlotBottomLeft ? /* @__PURE__ */ jsx104("div", { css: [CoverSlotBottom, CoverSlotBottomLeft], children: coverSlotBottomLeft }) : null,
10906
+ coverSlotBottomRight ? /* @__PURE__ */ jsx104("div", { css: [CoverSlotBottom, CoverSlotBottomRight], children: coverSlotBottomRight }) : null
10858
10907
  ] });
10859
10908
  };
10860
10909
  var ObjectGridItemCoverButton = ({
@@ -10864,7 +10913,7 @@ var ObjectGridItemCoverButton = ({
10864
10913
  selectedText = "selected",
10865
10914
  ...props
10866
10915
  }) => {
10867
- return /* @__PURE__ */ jsx103(
10916
+ return /* @__PURE__ */ jsx104(
10868
10917
  "button",
10869
10918
  {
10870
10919
  type: "button",
@@ -10874,11 +10923,11 @@ var ObjectGridItemCoverButton = ({
10874
10923
  onSelection(id);
10875
10924
  },
10876
10925
  "aria-selected": isSelected,
10877
- children: /* @__PURE__ */ jsx103(
10926
+ children: /* @__PURE__ */ jsx104(
10878
10927
  ObjectGridItemCover,
10879
10928
  {
10880
10929
  ...props,
10881
- coverSlotBottomRight: isSelected ? /* @__PURE__ */ jsx103("div", { css: CoverSelectedChip, children: /* @__PURE__ */ jsx103(Chip, { text: selectedText, size: "xs", theme: "accent-dark" }) }) : null
10930
+ coverSlotBottomRight: isSelected ? /* @__PURE__ */ jsx104("div", { css: CoverSelectedChip, children: /* @__PURE__ */ jsx104(Chip, { text: selectedText, size: "xs", theme: "accent-dark" }) }) : null
10882
10931
  }
10883
10932
  )
10884
10933
  }
@@ -10886,7 +10935,7 @@ var ObjectGridItemCoverButton = ({
10886
10935
  };
10887
10936
 
10888
10937
  // src/components/Objects/ObjectGridItemHeading.tsx
10889
- import { useEffect as useEffect13, useRef as useRef8, useState as useState12 } from "react";
10938
+ import { useEffect as useEffect14, useRef as useRef8, useState as useState12 } from "react";
10890
10939
 
10891
10940
  // src/components/Objects/styles/ObjectGridItemHeading.styles.ts
10892
10941
  import { css as css81 } from "@emotion/react";
@@ -10904,7 +10953,7 @@ var PopoverContent = css81`
10904
10953
  `;
10905
10954
 
10906
10955
  // src/components/Objects/ObjectGridItemHeading.tsx
10907
- import { jsx as jsx104, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
10956
+ import { jsx as jsx105, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
10908
10957
  var ObjectGridItemHeading2 = ({
10909
10958
  heading,
10910
10959
  beforeHeadingSlot,
@@ -10917,7 +10966,7 @@ var ObjectGridItemHeading2 = ({
10917
10966
  const onStopPropagation = (e) => {
10918
10967
  e.stopPropagation();
10919
10968
  };
10920
- useEffect13(() => {
10969
+ useEffect14(() => {
10921
10970
  const currentHeading = headingRef.current;
10922
10971
  const observer = new ResizeObserver((entries) => {
10923
10972
  for (const entry of entries) {
@@ -10934,15 +10983,15 @@ var ObjectGridItemHeading2 = ({
10934
10983
  }
10935
10984
  };
10936
10985
  }, []);
10937
- return /* @__PURE__ */ jsxs70(HorizontalRhythm, { align: "center", gap: "xs", css: { minWidth: 0 }, children: [
10938
- beforeHeadingSlot ? /* @__PURE__ */ jsx104(HorizontalRhythm, { gap: "xs", align: "center", onClick: onStopPropagation, children: beforeHeadingSlot }) : null,
10939
- /* @__PURE__ */ jsx104(Tooltip, { title: hasTruncation && tooltip ? tooltip : "", children: /* @__PURE__ */ jsx104("div", { role: "heading", css: ObjectGridItemHeading, ref: headingRef, ...props, children: heading }) }),
10940
- afterHeadingSlot ? /* @__PURE__ */ jsx104(HorizontalRhythm, { gap: "xs", align: "center", onClick: onStopPropagation, children: afterHeadingSlot }) : null
10986
+ return /* @__PURE__ */ jsxs71(HorizontalRhythm, { align: "center", gap: "xs", css: { minWidth: 0 }, children: [
10987
+ beforeHeadingSlot ? /* @__PURE__ */ jsx105(HorizontalRhythm, { gap: "xs", align: "center", onClick: onStopPropagation, children: beforeHeadingSlot }) : null,
10988
+ /* @__PURE__ */ jsx105(Tooltip, { title: hasTruncation && tooltip ? tooltip : "", children: /* @__PURE__ */ jsx105("div", { role: "heading", css: ObjectGridItemHeading, ref: headingRef, ...props, children: heading }) }),
10989
+ afterHeadingSlot ? /* @__PURE__ */ jsx105(HorizontalRhythm, { gap: "xs", align: "center", onClick: onStopPropagation, children: afterHeadingSlot }) : null
10941
10990
  ] });
10942
10991
  };
10943
10992
 
10944
10993
  // src/components/Objects/ObjectGridItemIconWithTooltip.tsx
10945
- import { jsx as jsx105 } from "@emotion/react/jsx-runtime";
10994
+ import { jsx as jsx106 } from "@emotion/react/jsx-runtime";
10946
10995
  var ObjectGridItemIconWithTooltip = ({
10947
10996
  tooltipTitle,
10948
10997
  placement = "bottom-start",
@@ -10950,7 +10999,7 @@ var ObjectGridItemIconWithTooltip = ({
10950
10999
  iconColor = "accent-dark",
10951
11000
  ...props
10952
11001
  }) => {
10953
- return /* @__PURE__ */ jsx105(Tooltip, { title: tooltipTitle, placement, ...props, css: { minWidth: "max-content" }, children: /* @__PURE__ */ jsx105("span", { css: { whiteSpace: "nowrap" }, children: /* @__PURE__ */ jsx105(Icon, { icon, iconColor, size: "1rem" }) }) });
11002
+ return /* @__PURE__ */ jsx106(Tooltip, { title: tooltipTitle, placement, ...props, css: { minWidth: "max-content" }, children: /* @__PURE__ */ jsx106("span", { css: { whiteSpace: "nowrap" }, children: /* @__PURE__ */ jsx106(Icon, { icon, iconColor, size: "1rem" }) }) });
10954
11003
  };
10955
11004
 
10956
11005
  // src/components/Objects/styles/ObjectGridItemLoadingSkeleton.styles.ts
@@ -10997,11 +11046,11 @@ var ObjectGridItemLoadingContentContainer = css82`
10997
11046
  `;
10998
11047
 
10999
11048
  // src/components/Objects/ObjectGridItemLoadingSkeleton.tsx
11000
- import { jsx as jsx106, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
11049
+ import { jsx as jsx107, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
11001
11050
  var ObjectGridItemLoadingSkeleton2 = () => {
11002
- return /* @__PURE__ */ jsxs71("div", { css: ObjectGridItemLoadingSkeleton, children: [
11003
- /* @__PURE__ */ jsx106("div", { css: ObjectGridItemLoadingImageWrapper, "data-testid": "object-grid-item-cover-skeleton", children: /* @__PURE__ */ jsx106("span", { css: ObjectGridItemLoadingImage, role: "presentation" }) }),
11004
- /* @__PURE__ */ jsxs71(
11051
+ return /* @__PURE__ */ jsxs72("div", { css: ObjectGridItemLoadingSkeleton, children: [
11052
+ /* @__PURE__ */ jsx107("div", { css: ObjectGridItemLoadingImageWrapper, "data-testid": "object-grid-item-cover-skeleton", children: /* @__PURE__ */ jsx107("span", { css: ObjectGridItemLoadingImage, role: "presentation" }) }),
11053
+ /* @__PURE__ */ jsxs72(
11005
11054
  HorizontalRhythm,
11006
11055
  {
11007
11056
  css: ObjectGridItemLoadingContentWrapper,
@@ -11009,13 +11058,13 @@ var ObjectGridItemLoadingSkeleton2 = () => {
11009
11058
  justify: "space-between",
11010
11059
  gap: "sm",
11011
11060
  children: [
11012
- /* @__PURE__ */ jsxs71(VerticalRhythm, { css: ObjectGridItemLoadingContentContainer, gap: "0", children: [
11013
- /* @__PURE__ */ jsx106(HorizontalRhythm, { gap: "xs", align: "center", children: /* @__PURE__ */ jsx106("span", { role: "presentation", css: ObjectGridItemLoadingText("18ch") }) }),
11014
- /* @__PURE__ */ jsx106("span", { role: "presentation", css: ObjectGridItemLoadingText("12ch") })
11061
+ /* @__PURE__ */ jsxs72(VerticalRhythm, { css: ObjectGridItemLoadingContentContainer, gap: "0", children: [
11062
+ /* @__PURE__ */ jsx107(HorizontalRhythm, { gap: "xs", align: "center", children: /* @__PURE__ */ jsx107("span", { role: "presentation", css: ObjectGridItemLoadingText("18ch") }) }),
11063
+ /* @__PURE__ */ jsx107("span", { role: "presentation", css: ObjectGridItemLoadingText("12ch") })
11015
11064
  ] }),
11016
- /* @__PURE__ */ jsxs71(HorizontalRhythm, { css: ObjectGridItemLoadingContentContainer, gap: "xs", justify: "flex-end", children: [
11017
- /* @__PURE__ */ jsx106("span", { role: "presentation", css: ObjectGridItemLoadingText("6ch") }),
11018
- /* @__PURE__ */ jsx106("span", { role: "presentation", css: ObjectGridItemLoadingText("24px") })
11065
+ /* @__PURE__ */ jsxs72(HorizontalRhythm, { css: ObjectGridItemLoadingContentContainer, gap: "xs", justify: "flex-end", children: [
11066
+ /* @__PURE__ */ jsx107("span", { role: "presentation", css: ObjectGridItemLoadingText("6ch") }),
11067
+ /* @__PURE__ */ jsx107("span", { role: "presentation", css: ObjectGridItemLoadingText("24px") })
11019
11068
  ] })
11020
11069
  ]
11021
11070
  }
@@ -11104,12 +11153,12 @@ var ObjectListItemHeadingWrapper = css83`
11104
11153
  `;
11105
11154
 
11106
11155
  // src/components/Objects/ObjectItemLoadingSkeleton.tsx
11107
- import { jsx as jsx107, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
11156
+ import { jsx as jsx108, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
11108
11157
  var ObjectItemLoadingSkeleton = ({
11109
11158
  showCover,
11110
11159
  renderAs = "single"
11111
11160
  }) => {
11112
- return /* @__PURE__ */ jsxs72(
11161
+ return /* @__PURE__ */ jsxs73(
11113
11162
  "div",
11114
11163
  {
11115
11164
  css: [
@@ -11119,10 +11168,10 @@ var ObjectItemLoadingSkeleton = ({
11119
11168
  }
11120
11169
  ],
11121
11170
  children: [
11122
- showCover ? /* @__PURE__ */ jsx107("div", { "data-testid": "object-list-item-cover-skeleton", children: /* @__PURE__ */ jsx107("span", { role: "presentation", css: ObjectListItemLoadingImage }) }) : null,
11123
- /* @__PURE__ */ jsx107(VerticalRhythm, { css: ObjectListItemLoadingInner, justify: "space-between", gap: "sm", children: /* @__PURE__ */ jsxs72(VerticalRhythm, { gap: "xs", children: [
11124
- /* @__PURE__ */ jsx107(HorizontalRhythm, { gap: "xs", align: "center", children: /* @__PURE__ */ jsx107("span", { role: "presentation", css: ObjectListItemLoadingText("30ch") }) }),
11125
- renderAs === "single" ? null : /* @__PURE__ */ jsx107("span", { role: "presentation", css: ObjectListItemLoadingText("20ch") })
11171
+ showCover ? /* @__PURE__ */ jsx108("div", { "data-testid": "object-list-item-cover-skeleton", children: /* @__PURE__ */ jsx108("span", { role: "presentation", css: ObjectListItemLoadingImage }) }) : null,
11172
+ /* @__PURE__ */ jsx108(VerticalRhythm, { css: ObjectListItemLoadingInner, justify: "space-between", gap: "sm", children: /* @__PURE__ */ jsxs73(VerticalRhythm, { gap: "xs", children: [
11173
+ /* @__PURE__ */ jsx108(HorizontalRhythm, { gap: "xs", align: "center", children: /* @__PURE__ */ jsx108("span", { role: "presentation", css: ObjectListItemLoadingText("30ch") }) }),
11174
+ renderAs === "single" ? null : /* @__PURE__ */ jsx108("span", { role: "presentation", css: ObjectListItemLoadingText("20ch") })
11126
11175
  ] }) })
11127
11176
  ]
11128
11177
  }
@@ -11130,7 +11179,7 @@ var ObjectItemLoadingSkeleton = ({
11130
11179
  };
11131
11180
 
11132
11181
  // src/components/Objects/ObjectListItem.tsx
11133
- import { jsx as jsx108, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
11182
+ import { jsx as jsx109, jsxs as jsxs74 } from "@emotion/react/jsx-runtime";
11134
11183
  var ObjectListItem2 = ({ minContainerQueryWidth = "34rem", ...props }) => {
11135
11184
  const {
11136
11185
  renderAs,
@@ -11143,7 +11192,7 @@ var ObjectListItem2 = ({ minContainerQueryWidth = "34rem", ...props }) => {
11143
11192
  portalElement,
11144
11193
  ...divProps
11145
11194
  } = props;
11146
- return /* @__PURE__ */ jsxs73(
11195
+ return /* @__PURE__ */ jsxs74(
11147
11196
  "div",
11148
11197
  {
11149
11198
  role: "listitem",
@@ -11152,8 +11201,8 @@ var ObjectListItem2 = ({ minContainerQueryWidth = "34rem", ...props }) => {
11152
11201
  "aria-selected": isSelected,
11153
11202
  ...divProps,
11154
11203
  children: [
11155
- /* @__PURE__ */ jsx108(HorizontalRhythm, { gap: "sm", align: "center", children: dragHandle }),
11156
- /* @__PURE__ */ jsxs73(
11204
+ /* @__PURE__ */ jsx109(HorizontalRhythm, { gap: "sm", align: "center", children: dragHandle }),
11205
+ /* @__PURE__ */ jsxs74(
11157
11206
  "div",
11158
11207
  {
11159
11208
  css: [
@@ -11163,15 +11212,15 @@ var ObjectListItem2 = ({ minContainerQueryWidth = "34rem", ...props }) => {
11163
11212
  }`
11164
11213
  ],
11165
11214
  children: [
11166
- cover ? /* @__PURE__ */ jsx108(HorizontalRhythm, { gap: "sm", align: "center", children: cover }) : null,
11167
- /* @__PURE__ */ jsxs73(
11215
+ cover ? /* @__PURE__ */ jsx109(HorizontalRhythm, { gap: "sm", align: "center", children: cover }) : null,
11216
+ /* @__PURE__ */ jsxs74(
11168
11217
  VerticalRhythm,
11169
11218
  {
11170
11219
  gap: "0",
11171
11220
  justify: renderAs === "multi" ? "flex-start" : "center",
11172
11221
  "data-testid": "title-container",
11173
11222
  children: [
11174
- /* @__PURE__ */ jsx108(
11223
+ /* @__PURE__ */ jsx109(
11175
11224
  HorizontalRhythm,
11176
11225
  {
11177
11226
  gap: "xs",
@@ -11184,14 +11233,14 @@ var ObjectListItem2 = ({ minContainerQueryWidth = "34rem", ...props }) => {
11184
11233
  ]
11185
11234
  }
11186
11235
  ),
11187
- /* @__PURE__ */ jsx108(HorizontalRhythm, { gap: "xs", align: renderAs === "multi" ? "flex-start" : "center", children: rightSlot })
11236
+ /* @__PURE__ */ jsx109(HorizontalRhythm, { gap: "xs", align: renderAs === "multi" ? "flex-start" : "center", children: rightSlot })
11188
11237
  ]
11189
11238
  }
11190
11239
  ),
11191
- menuItems ? /* @__PURE__ */ jsx108(HorizontalRhythm, { gap: "0", align: "flex-start", children: /* @__PURE__ */ jsx108(
11240
+ menuItems ? /* @__PURE__ */ jsx109(HorizontalRhythm, { gap: "0", align: "flex-start", children: /* @__PURE__ */ jsx109(
11192
11241
  Menu,
11193
11242
  {
11194
- menuTrigger: /* @__PURE__ */ jsx108(MenuThreeDots, { "data-testid": "object-list-item-menu-btn" }),
11243
+ menuTrigger: /* @__PURE__ */ jsx109(MenuThreeDots, { "data-testid": "object-list-item-menu-btn" }),
11195
11244
  placement: "bottom-end",
11196
11245
  portalElement,
11197
11246
  children: menuItems
@@ -11203,22 +11252,22 @@ var ObjectListItem2 = ({ minContainerQueryWidth = "34rem", ...props }) => {
11203
11252
  };
11204
11253
 
11205
11254
  // src/components/Objects/ObjectListItemContainer.tsx
11206
- import { jsx as jsx109 } from "@emotion/react/jsx-runtime";
11255
+ import { jsx as jsx110 } from "@emotion/react/jsx-runtime";
11207
11256
  var ObjectListItemContainer2 = ({ children, gap = "0", ...props }) => {
11208
- return /* @__PURE__ */ jsx109(VerticalRhythm, { gap, css: ObjectListItemContainer, role: "list", ...props, children });
11257
+ return /* @__PURE__ */ jsx110(VerticalRhythm, { gap, css: ObjectListItemContainer, role: "list", ...props, children });
11209
11258
  };
11210
11259
 
11211
11260
  // src/components/Objects/ObjectListItemCover.tsx
11212
- import { jsx as jsx110 } from "@emotion/react/jsx-runtime";
11261
+ import { jsx as jsx111 } from "@emotion/react/jsx-runtime";
11213
11262
  var ObjectListItemCover2 = ({
11214
11263
  imageUrl,
11215
11264
  noImageText = "Image not available",
11216
11265
  ...props
11217
11266
  }) => {
11218
11267
  if (!imageUrl) {
11219
- return /* @__PURE__ */ jsx110("div", { css: ObjectListItemCover, role: "presentation", "data-testid": "object-list-item-thumbnail", children: noImageText });
11268
+ return /* @__PURE__ */ jsx111("div", { css: ObjectListItemCover, role: "presentation", "data-testid": "object-list-item-thumbnail", children: noImageText });
11220
11269
  }
11221
- return /* @__PURE__ */ jsx110("div", { css: ObjectListItemCover, children: /* @__PURE__ */ jsx110(
11270
+ return /* @__PURE__ */ jsx111("div", { css: ObjectListItemCover, children: /* @__PURE__ */ jsx111(
11222
11271
  "img",
11223
11272
  {
11224
11273
  src: imageUrl,
@@ -11247,17 +11296,17 @@ var ObjectListItemHeadingAfterWrapper = css84`
11247
11296
  `;
11248
11297
 
11249
11298
  // src/components/Objects/ObjectListItemHeading.tsx
11250
- import { jsx as jsx111, jsxs as jsxs74 } from "@emotion/react/jsx-runtime";
11299
+ import { jsx as jsx112, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
11251
11300
  var ObjectListItemHeading2 = ({
11252
11301
  heading,
11253
11302
  beforeHeadingSlot,
11254
11303
  afterHeadingSlot,
11255
11304
  ...props
11256
11305
  }) => {
11257
- return /* @__PURE__ */ jsxs74("div", { css: ObjectListItemHeading, ...props, children: [
11258
- beforeHeadingSlot ? /* @__PURE__ */ jsx111(HorizontalRhythm, { gap: "xs", align: "center", children: beforeHeadingSlot }) : null,
11259
- /* @__PURE__ */ jsxs74(HorizontalRhythm, { css: ObjectListItemHeadingAfterWrapper, gap: "xs", align: "flex-start", children: [
11260
- /* @__PURE__ */ jsx111("div", { role: "heading", "data-testid": "reference-item-name", children: heading }),
11306
+ return /* @__PURE__ */ jsxs75("div", { css: ObjectListItemHeading, ...props, children: [
11307
+ beforeHeadingSlot ? /* @__PURE__ */ jsx112(HorizontalRhythm, { gap: "xs", align: "center", children: beforeHeadingSlot }) : null,
11308
+ /* @__PURE__ */ jsxs75(HorizontalRhythm, { css: ObjectListItemHeadingAfterWrapper, gap: "xs", align: "flex-start", children: [
11309
+ /* @__PURE__ */ jsx112("div", { role: "heading", "data-testid": "reference-item-name", children: heading }),
11261
11310
  afterHeadingSlot
11262
11311
  ] })
11263
11312
  ] });
@@ -11295,7 +11344,7 @@ var page = css85`
11295
11344
  `;
11296
11345
 
11297
11346
  // src/components/Pagination/Pagination.tsx
11298
- import { jsx as jsx112 } from "@emotion/react/jsx-runtime";
11347
+ import { jsx as jsx113 } from "@emotion/react/jsx-runtime";
11299
11348
  function Pagination({
11300
11349
  limit,
11301
11350
  offset,
@@ -11310,12 +11359,12 @@ function Pagination({
11310
11359
  if (pageCount <= 1) {
11311
11360
  return null;
11312
11361
  }
11313
- return /* @__PURE__ */ jsx112(
11362
+ return /* @__PURE__ */ jsx113(
11314
11363
  Paginate,
11315
11364
  {
11316
11365
  forcePage: currentPage,
11317
- previousLabel: /* @__PURE__ */ jsx112("div", { className: prevNextControls, children: "<" }),
11318
- nextLabel: /* @__PURE__ */ jsx112("div", { className: prevNextControls, children: ">" }),
11366
+ previousLabel: /* @__PURE__ */ jsx113("div", { className: prevNextControls, children: "<" }),
11367
+ nextLabel: /* @__PURE__ */ jsx113("div", { className: prevNextControls, children: ">" }),
11319
11368
  breakLabel: "...",
11320
11369
  pageCount,
11321
11370
  marginPagesDisplayed: 2,
@@ -11384,7 +11433,7 @@ var inputIconBtn = css86`
11384
11433
  `;
11385
11434
 
11386
11435
  // src/components/ParameterInputs/LabelLeadingIcon.tsx
11387
- import { jsx as jsx113, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
11436
+ import { jsx as jsx114, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
11388
11437
  var LabelLeadingIcon = ({
11389
11438
  icon,
11390
11439
  iconColor,
@@ -11395,7 +11444,7 @@ var LabelLeadingIcon = ({
11395
11444
  ...props
11396
11445
  }) => {
11397
11446
  const titleFr = title != null ? title : isLocked ? "Read-only pattern parameter" : "Click to connect to external content";
11398
- return /* @__PURE__ */ jsx113(Tooltip, { title: titleFr, children: /* @__PURE__ */ jsxs75(
11447
+ return /* @__PURE__ */ jsx114(Tooltip, { title: titleFr, children: /* @__PURE__ */ jsxs76(
11399
11448
  "button",
11400
11449
  {
11401
11450
  css: inputIconBtn,
@@ -11405,7 +11454,7 @@ var LabelLeadingIcon = ({
11405
11454
  ...props,
11406
11455
  "data-testid": "lock-button",
11407
11456
  children: [
11408
- /* @__PURE__ */ jsx113(
11457
+ /* @__PURE__ */ jsx114(
11409
11458
  Icon,
11410
11459
  {
11411
11460
  icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
@@ -11441,12 +11490,12 @@ var ParameterDrawerHeaderTitle = css87`
11441
11490
  `;
11442
11491
 
11443
11492
  // src/components/ParameterInputs/ParameterDrawerHeader.tsx
11444
- import { jsx as jsx114, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
11493
+ import { jsx as jsx115, jsxs as jsxs77 } from "@emotion/react/jsx-runtime";
11445
11494
  var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
11446
- return /* @__PURE__ */ jsxs76("div", { css: ParameterDrawerHeaderContainer, children: [
11447
- /* @__PURE__ */ jsxs76("header", { css: ParameterDrawerHeaderTitleGroup, children: [
11495
+ return /* @__PURE__ */ jsxs77("div", { css: ParameterDrawerHeaderContainer, children: [
11496
+ /* @__PURE__ */ jsxs77("header", { css: ParameterDrawerHeaderTitleGroup, children: [
11448
11497
  iconBeforeTitle,
11449
- /* @__PURE__ */ jsx114(Heading2, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
11498
+ /* @__PURE__ */ jsx115(Heading2, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
11450
11499
  ] }),
11451
11500
  children
11452
11501
  ] });
@@ -11476,11 +11525,11 @@ var fieldsetLegend2 = css88`
11476
11525
  `;
11477
11526
 
11478
11527
  // src/components/ParameterInputs/ParameterGroup.tsx
11479
- import { jsx as jsx115, jsxs as jsxs77 } from "@emotion/react/jsx-runtime";
11528
+ import { jsx as jsx116, jsxs as jsxs78 } from "@emotion/react/jsx-runtime";
11480
11529
  var ParameterGroup = forwardRef20(
11481
11530
  ({ legend, isDisabled, children, ...props }, ref) => {
11482
- return /* @__PURE__ */ jsxs77("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
11483
- /* @__PURE__ */ jsx115("legend", { css: fieldsetLegend2, children: legend }),
11531
+ return /* @__PURE__ */ jsxs78("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
11532
+ /* @__PURE__ */ jsx116("legend", { css: fieldsetLegend2, children: legend }),
11484
11533
  children
11485
11534
  ] });
11486
11535
  }
@@ -11531,32 +11580,32 @@ var previewModalImage = css89`
11531
11580
  `;
11532
11581
 
11533
11582
  // src/components/ParameterInputs/ParameterImagePreview.tsx
11534
- import { Fragment as Fragment11, jsx as jsx116, jsxs as jsxs78 } from "@emotion/react/jsx-runtime";
11583
+ import { Fragment as Fragment12, jsx as jsx117, jsxs as jsxs79 } from "@emotion/react/jsx-runtime";
11535
11584
  function ParameterImagePreview({ imageSrc }) {
11536
11585
  const [showModal, setShowModal] = useState13(false);
11537
- return imageSrc ? /* @__PURE__ */ jsxs78("div", { css: previewWrapper, children: [
11538
- /* @__PURE__ */ jsx116(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
11539
- /* @__PURE__ */ jsx116(
11586
+ return imageSrc ? /* @__PURE__ */ jsxs79("div", { css: previewWrapper, children: [
11587
+ /* @__PURE__ */ jsx117(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
11588
+ /* @__PURE__ */ jsx117(
11540
11589
  "button",
11541
11590
  {
11542
11591
  css: previewLink,
11543
11592
  onClick: () => {
11544
11593
  setShowModal(true);
11545
11594
  },
11546
- children: /* @__PURE__ */ jsx116(Image, { src: imageSrc, "data-testid": "parameter-image-preview" })
11595
+ children: /* @__PURE__ */ jsx117(Image, { src: imageSrc, "data-testid": "parameter-image-preview" })
11547
11596
  }
11548
11597
  )
11549
11598
  ] }) : null;
11550
11599
  }
11551
11600
  var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
11552
- return open ? /* @__PURE__ */ jsx116(Fragment11, { children: createPortal2(
11553
- /* @__PURE__ */ jsx116(
11601
+ return open ? /* @__PURE__ */ jsx117(Fragment12, { children: createPortal2(
11602
+ /* @__PURE__ */ jsx117(
11554
11603
  Modal,
11555
11604
  {
11556
11605
  header: "Image Preview",
11557
11606
  onRequestClose,
11558
- buttonGroup: /* @__PURE__ */ jsx116(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
11559
- children: /* @__PURE__ */ jsx116("div", { css: previewModalWrapper, children: /* @__PURE__ */ jsx116(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
11607
+ buttonGroup: /* @__PURE__ */ jsx117(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
11608
+ children: /* @__PURE__ */ jsx117("div", { css: previewModalWrapper, children: /* @__PURE__ */ jsx117(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
11560
11609
  }
11561
11610
  ),
11562
11611
  document.body
@@ -11857,20 +11906,20 @@ var linkParameterIcon = css90`
11857
11906
  `;
11858
11907
 
11859
11908
  // src/components/ParameterInputs/ParameterLabel.tsx
11860
- import { jsx as jsx117 } from "@emotion/react/jsx-runtime";
11909
+ import { jsx as jsx118 } from "@emotion/react/jsx-runtime";
11861
11910
  var ParameterLabel = ({ id, asSpan, children, testId, ...props }) => {
11862
- return !asSpan ? /* @__PURE__ */ jsx117("label", { ...props, htmlFor: id, css: labelText2, "data-testid": testId, children }) : /* @__PURE__ */ jsx117("span", { "aria-labelledby": id, css: labelText2, children });
11911
+ return !asSpan ? /* @__PURE__ */ jsx118("label", { ...props, htmlFor: id, css: labelText2, "data-testid": testId, children }) : /* @__PURE__ */ jsx118("span", { "aria-labelledby": id, css: labelText2, children });
11863
11912
  };
11864
11913
 
11865
11914
  // src/components/ParameterInputs/ParameterMenuButton.tsx
11866
11915
  import { forwardRef as forwardRef21 } from "react";
11867
- import { jsx as jsx118 } from "@emotion/react/jsx-runtime";
11916
+ import { jsx as jsx119 } from "@emotion/react/jsx-runtime";
11868
11917
  var ParameterMenuButton = forwardRef21(
11869
11918
  ({ label, children }, ref) => {
11870
- return /* @__PURE__ */ jsx118(
11919
+ return /* @__PURE__ */ jsx119(
11871
11920
  Menu,
11872
11921
  {
11873
- menuTrigger: /* @__PURE__ */ jsx118(
11922
+ menuTrigger: /* @__PURE__ */ jsx119(
11874
11923
  "button",
11875
11924
  {
11876
11925
  className: "parameter-menu",
@@ -11878,7 +11927,7 @@ var ParameterMenuButton = forwardRef21(
11878
11927
  type: "button",
11879
11928
  "aria-label": `${label} options`,
11880
11929
  ref,
11881
- children: /* @__PURE__ */ jsx118(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
11930
+ children: /* @__PURE__ */ jsx119(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
11882
11931
  }
11883
11932
  ),
11884
11933
  children
@@ -11914,7 +11963,7 @@ var overrideMarker = css91`
11914
11963
  `;
11915
11964
 
11916
11965
  // src/components/ParameterInputs/ParameterShell.tsx
11917
- import { jsx as jsx119, jsxs as jsxs79 } from "@emotion/react/jsx-runtime";
11966
+ import { jsx as jsx120, jsxs as jsxs80 } from "@emotion/react/jsx-runtime";
11918
11967
  var extractParameterProps = (props) => {
11919
11968
  const {
11920
11969
  id,
@@ -11977,19 +12026,19 @@ var ParameterShell = ({
11977
12026
  const [manualErrorMessage, setManualErrorMessage] = useState14(void 0);
11978
12027
  const setErrorMessage = (message) => setManualErrorMessage(message);
11979
12028
  const errorMessaging = errorMessage || manualErrorMessage;
11980
- return /* @__PURE__ */ jsxs79("div", { css: inputContainer2, ...props, id, children: [
11981
- hiddenLabel || title ? null : /* @__PURE__ */ jsxs79(ParameterLabel, { id, css: labelText2, children: [
12029
+ return /* @__PURE__ */ jsxs80("div", { css: inputContainer2, ...props, id, children: [
12030
+ hiddenLabel || title ? null : /* @__PURE__ */ jsxs80(ParameterLabel, { id, css: labelText2, children: [
11982
12031
  labelLeadingIcon != null ? labelLeadingIcon : null,
11983
12032
  label,
11984
12033
  labelTrailingIcon != null ? labelTrailingIcon : null
11985
12034
  ] }),
11986
- !title ? null : /* @__PURE__ */ jsxs79(ParameterLabel, { id, asSpan: true, testId: "parameter-label", children: [
12035
+ !title ? null : /* @__PURE__ */ jsxs80(ParameterLabel, { id, asSpan: true, testId: "parameter-label", children: [
11987
12036
  labelLeadingIcon != null ? labelLeadingIcon : null,
11988
12037
  title,
11989
12038
  labelTrailingIcon != null ? labelTrailingIcon : null
11990
12039
  ] }),
11991
- /* @__PURE__ */ jsxs79("div", { css: inputWrapper, children: [
11992
- actionItems ? /* @__PURE__ */ jsx119(
12040
+ /* @__PURE__ */ jsxs80("div", { css: inputWrapper, children: [
12041
+ actionItems ? /* @__PURE__ */ jsx120(
11993
12042
  "div",
11994
12043
  {
11995
12044
  css: [
@@ -12002,8 +12051,8 @@ var ParameterShell = ({
12002
12051
  children: actionItems
12003
12052
  }
12004
12053
  ) : null,
12005
- menuItems ? /* @__PURE__ */ jsx119(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
12006
- /* @__PURE__ */ jsx119(
12054
+ menuItems ? /* @__PURE__ */ jsx120(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
12055
+ /* @__PURE__ */ jsx120(
12007
12056
  ParameterShellContext.Provider,
12008
12057
  {
12009
12058
  value: {
@@ -12013,14 +12062,14 @@ var ParameterShell = ({
12013
12062
  errorMessage: errorMessaging,
12014
12063
  handleManuallySetErrorMessage: (message) => setErrorMessage(message)
12015
12064
  },
12016
- children: isParameterGroup ? /* @__PURE__ */ jsx119("div", { style: { flexGrow: 1 }, children }) : /* @__PURE__ */ jsxs79(ParameterShellPlaceholder, { children: [
12065
+ children: isParameterGroup ? /* @__PURE__ */ jsx120("div", { style: { flexGrow: 1 }, children }) : /* @__PURE__ */ jsxs80(ParameterShellPlaceholder, { children: [
12017
12066
  children,
12018
- hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx119(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
12067
+ hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx120(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
12019
12068
  ] })
12020
12069
  }
12021
12070
  )
12022
12071
  ] }),
12023
- /* @__PURE__ */ jsx119(
12072
+ /* @__PURE__ */ jsx120(
12024
12073
  FieldMessage,
12025
12074
  {
12026
12075
  helperMessageTestId: captionTestId,
@@ -12034,17 +12083,17 @@ var ParameterShell = ({
12034
12083
  ] });
12035
12084
  };
12036
12085
  var ParameterShellPlaceholder = ({ children }) => {
12037
- return /* @__PURE__ */ jsx119("div", { css: emptyParameterShell, children });
12086
+ return /* @__PURE__ */ jsx120("div", { css: emptyParameterShell, children });
12038
12087
  };
12039
- var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx119(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx119("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx119("span", { hidden: true, children: "reset overridden value to default" }) }) });
12088
+ var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx120(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx120("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx120("span", { hidden: true, children: "reset overridden value to default" }) }) });
12040
12089
 
12041
12090
  // src/components/ParameterInputs/ParameterImage.tsx
12042
- import { Fragment as Fragment12, jsx as jsx120, jsxs as jsxs80 } from "@emotion/react/jsx-runtime";
12091
+ import { Fragment as Fragment13, jsx as jsx121, jsxs as jsxs81 } from "@emotion/react/jsx-runtime";
12043
12092
  var ParameterImage = forwardRef22(
12044
12093
  ({ children, ...props }, ref) => {
12045
12094
  const { shellProps, innerProps } = extractParameterProps(props);
12046
- return /* @__PURE__ */ jsxs80(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
12047
- /* @__PURE__ */ jsx120(ParameterImageInner, { ref, ...innerProps }),
12095
+ return /* @__PURE__ */ jsxs81(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
12096
+ /* @__PURE__ */ jsx121(ParameterImageInner, { ref, ...innerProps }),
12048
12097
  children
12049
12098
  ] });
12050
12099
  }
@@ -12053,8 +12102,8 @@ var ParameterImageInner = forwardRef22((props, ref) => {
12053
12102
  const { value } = props;
12054
12103
  const { id, label, hiddenLabel, errorMessage } = useParameterShell();
12055
12104
  const deferredValue = useDeferredValue(value);
12056
- return /* @__PURE__ */ jsxs80(Fragment12, { children: [
12057
- /* @__PURE__ */ jsx120(
12105
+ return /* @__PURE__ */ jsxs81(Fragment13, { children: [
12106
+ /* @__PURE__ */ jsx121(
12058
12107
  "input",
12059
12108
  {
12060
12109
  css: input3,
@@ -12066,21 +12115,21 @@ var ParameterImageInner = forwardRef22((props, ref) => {
12066
12115
  ...props
12067
12116
  }
12068
12117
  ),
12069
- errorMessage || props.disablePreview ? null : /* @__PURE__ */ jsx120(ParameterImagePreview, { imageSrc: deferredValue })
12118
+ errorMessage || props.disablePreview ? null : /* @__PURE__ */ jsx121(ParameterImagePreview, { imageSrc: deferredValue })
12070
12119
  ] });
12071
12120
  });
12072
12121
 
12073
12122
  // src/components/ParameterInputs/ParameterInput.tsx
12074
12123
  import { forwardRef as forwardRef23 } from "react";
12075
- import { jsx as jsx121 } from "@emotion/react/jsx-runtime";
12124
+ import { jsx as jsx122 } from "@emotion/react/jsx-runtime";
12076
12125
  var ParameterInput = forwardRef23((props, ref) => {
12077
12126
  const { shellProps, innerProps } = extractParameterProps(props);
12078
- return /* @__PURE__ */ jsx121(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx121(ParameterInputInner, { ref, ...innerProps }) });
12127
+ return /* @__PURE__ */ jsx122(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx122(ParameterInputInner, { ref, ...innerProps }) });
12079
12128
  });
12080
12129
  var ParameterInputInner = forwardRef23(
12081
12130
  ({ ...props }, ref) => {
12082
12131
  const { id, label, hiddenLabel } = useParameterShell();
12083
- return /* @__PURE__ */ jsx121(
12132
+ return /* @__PURE__ */ jsx122(
12084
12133
  "input",
12085
12134
  {
12086
12135
  css: input3,
@@ -12097,18 +12146,18 @@ var ParameterInputInner = forwardRef23(
12097
12146
 
12098
12147
  // src/components/ParameterInputs/ParameterLink.tsx
12099
12148
  import { forwardRef as forwardRef24 } from "react";
12100
- import { jsx as jsx122, jsxs as jsxs81 } from "@emotion/react/jsx-runtime";
12149
+ import { jsx as jsx123, jsxs as jsxs82 } from "@emotion/react/jsx-runtime";
12101
12150
  var ParameterLink = forwardRef24(
12102
12151
  ({ disabled: disabled2, onConnectLink, externalLink, ...props }, ref) => {
12103
12152
  const { shellProps, innerProps } = extractParameterProps(props);
12104
- return /* @__PURE__ */ jsx122(
12153
+ return /* @__PURE__ */ jsx123(
12105
12154
  ParameterShell,
12106
12155
  {
12107
12156
  "data-testid": "link-parameter-editor",
12108
12157
  ...shellProps,
12109
12158
  label: innerProps.value ? shellProps.label : "",
12110
12159
  title: !innerProps.value && typeof shellProps.label === "string" ? shellProps.label : void 0,
12111
- children: /* @__PURE__ */ jsx122(
12160
+ children: /* @__PURE__ */ jsx123(
12112
12161
  ParameterLinkInner,
12113
12162
  {
12114
12163
  onConnectLink,
@@ -12125,9 +12174,9 @@ var ParameterLinkInner = forwardRef24(
12125
12174
  ({ externalLink, onConnectLink, disabled: disabled2, buttonText = "Select link", ...props }, ref) => {
12126
12175
  const { id, label, hiddenLabel } = useParameterShell();
12127
12176
  if (!props.value)
12128
- return /* @__PURE__ */ jsx122("button", { type: "button", css: dataConnectButton, disabled: disabled2, onClick: onConnectLink, children: buttonText });
12129
- return /* @__PURE__ */ jsxs81("div", { css: inputWrapper, children: [
12130
- /* @__PURE__ */ jsx122(
12177
+ return /* @__PURE__ */ jsx123("button", { type: "button", css: dataConnectButton, disabled: disabled2, onClick: onConnectLink, children: buttonText });
12178
+ return /* @__PURE__ */ jsxs82("div", { css: inputWrapper, children: [
12179
+ /* @__PURE__ */ jsx123(
12131
12180
  "input",
12132
12181
  {
12133
12182
  type: "text",
@@ -12139,8 +12188,8 @@ var ParameterLinkInner = forwardRef24(
12139
12188
  ...props
12140
12189
  }
12141
12190
  ),
12142
- /* @__PURE__ */ jsxs81("div", { css: linkParameterControls, children: [
12143
- /* @__PURE__ */ jsx122(
12191
+ /* @__PURE__ */ jsxs82("div", { css: linkParameterControls, children: [
12192
+ /* @__PURE__ */ jsx123(
12144
12193
  "button",
12145
12194
  {
12146
12195
  type: "button",
@@ -12152,7 +12201,7 @@ var ParameterLinkInner = forwardRef24(
12152
12201
  children: "edit"
12153
12202
  }
12154
12203
  ),
12155
- externalLink ? /* @__PURE__ */ jsx122(
12204
+ externalLink ? /* @__PURE__ */ jsx123(
12156
12205
  "a",
12157
12206
  {
12158
12207
  href: externalLink,
@@ -12160,7 +12209,7 @@ var ParameterLinkInner = forwardRef24(
12160
12209
  title: "Open link in new tab",
12161
12210
  target: "_blank",
12162
12211
  rel: "noopener noreferrer",
12163
- children: /* @__PURE__ */ jsx122(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
12212
+ children: /* @__PURE__ */ jsx123(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
12164
12213
  }
12165
12214
  ) : null
12166
12215
  ] })
@@ -12169,15 +12218,15 @@ var ParameterLinkInner = forwardRef24(
12169
12218
  );
12170
12219
 
12171
12220
  // src/components/ParameterInputs/ParameterMultiSelect.tsx
12172
- import { jsx as jsx123 } from "@emotion/react/jsx-runtime";
12221
+ import { jsx as jsx124 } from "@emotion/react/jsx-runtime";
12173
12222
  var ParameterMultiSelect = ({ disabled: disabled2 = false, ...props }) => {
12174
12223
  const { shellProps, innerProps } = extractParameterProps(props);
12175
- return /* @__PURE__ */ jsx123(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx123(ParameterMultiSelectInner, { isDisabled: disabled2, ...innerProps }) });
12224
+ return /* @__PURE__ */ jsx124(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx124(ParameterMultiSelectInner, { isDisabled: disabled2, ...innerProps }) });
12176
12225
  };
12177
12226
  var ParameterMultiSelectInner = (props) => {
12178
12227
  var _a;
12179
12228
  const { id, label } = useParameterShell();
12180
- return /* @__PURE__ */ jsx123(
12229
+ return /* @__PURE__ */ jsx124(
12181
12230
  InputComboBox,
12182
12231
  {
12183
12232
  menuPortalTarget: document.body,
@@ -12227,7 +12276,7 @@ var ParameterMultiSelectInner = (props) => {
12227
12276
  };
12228
12277
 
12229
12278
  // src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
12230
- import { Fragment as Fragment13, jsx as jsx124, jsxs as jsxs82 } from "@emotion/react/jsx-runtime";
12279
+ import { Fragment as Fragment14, jsx as jsx125, jsxs as jsxs83 } from "@emotion/react/jsx-runtime";
12231
12280
  var ParameterNameAndPublicIdInput = ({
12232
12281
  id,
12233
12282
  onBlur,
@@ -12253,8 +12302,8 @@ var ParameterNameAndPublicIdInput = ({
12253
12302
  navigator.clipboard.writeText(values[publicIdFieldName]);
12254
12303
  };
12255
12304
  autoFocus == null ? void 0 : autoFocus();
12256
- return /* @__PURE__ */ jsxs82(Fragment13, { children: [
12257
- /* @__PURE__ */ jsx124(
12305
+ return /* @__PURE__ */ jsxs83(Fragment14, { children: [
12306
+ /* @__PURE__ */ jsx125(
12258
12307
  ParameterInput,
12259
12308
  {
12260
12309
  id: nameIdField,
@@ -12273,7 +12322,7 @@ var ParameterNameAndPublicIdInput = ({
12273
12322
  value: values[nameIdField]
12274
12323
  }
12275
12324
  ),
12276
- /* @__PURE__ */ jsx124(
12325
+ /* @__PURE__ */ jsx125(
12277
12326
  ParameterInput,
12278
12327
  {
12279
12328
  id: publicIdFieldName,
@@ -12287,11 +12336,11 @@ var ParameterNameAndPublicIdInput = ({
12287
12336
  caption: !publicIdError ? publicIdCaption : void 0,
12288
12337
  placeholder: publicIdPlaceholderText,
12289
12338
  errorMessage: publicIdError,
12290
- menuItems: /* @__PURE__ */ jsx124(
12339
+ menuItems: /* @__PURE__ */ jsx125(
12291
12340
  MenuItem,
12292
12341
  {
12293
12342
  disabled: !values[publicIdFieldName],
12294
- icon: /* @__PURE__ */ jsx124(Icon, { icon: "path-trim", iconColor: "currentColor" }),
12343
+ icon: /* @__PURE__ */ jsx125(Icon, { icon: "path-trim", iconColor: "currentColor" }),
12295
12344
  onClick: handleCopyPidFieldValue,
12296
12345
  children: "Copy"
12297
12346
  }
@@ -12299,7 +12348,7 @@ var ParameterNameAndPublicIdInput = ({
12299
12348
  value: values[publicIdFieldName]
12300
12349
  }
12301
12350
  ),
12302
- (warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx124(Callout, { type: "caution", children: warnOverLength.message }) : null
12351
+ (warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx125(Callout, { type: "caution", children: warnOverLength.message }) : null
12303
12352
  ] });
12304
12353
  };
12305
12354
 
@@ -12430,11 +12479,25 @@ var getLabelForElement = (type) => {
12430
12479
  const element = richTextBuiltInElements.find((element2) => element2.type === type);
12431
12480
  return (_a = element == null ? void 0 : element.label) != null ? _a : type;
12432
12481
  };
12482
+ var defaultParameterConfiguration = {
12483
+ required: false,
12484
+ formatting: {
12485
+ builtIn: richTextBuiltInFormats.map((format) => format.type)
12486
+ },
12487
+ elements: {
12488
+ builtIn: richTextBuiltInElements.map((element) => element.type)
12489
+ },
12490
+ elementsConfig: {
12491
+ asset: {
12492
+ allowedTypes: ["image"]
12493
+ }
12494
+ }
12495
+ };
12433
12496
 
12434
12497
  // src/components/ParameterInputs/ParameterRichText.tsx
12435
12498
  import { deepEqual as deepEqual2 } from "fast-equals";
12436
12499
  import { ParagraphNode as ParagraphNode2 } from "lexical";
12437
- import { useEffect as useEffect22, useState as useState20 } from "react";
12500
+ import { useEffect as useEffect23, useState as useState20 } from "react";
12438
12501
 
12439
12502
  // src/components/ParameterInputs/rich-text/CustomCodeNode.ts
12440
12503
  import { CodeNode } from "@lexical/code";
@@ -12455,10 +12518,10 @@ CustomCodeNode.importDOM = function() {
12455
12518
  import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
12456
12519
  import { mergeRegister } from "@lexical/utils";
12457
12520
  import { ParagraphNode } from "lexical";
12458
- import { useEffect as useEffect14 } from "react";
12521
+ import { useEffect as useEffect15 } from "react";
12459
12522
  function DisableStylesPlugin() {
12460
12523
  const [editor] = useLexicalComposerContext();
12461
- useEffect14(() => {
12524
+ useEffect15(() => {
12462
12525
  return mergeRegister(
12463
12526
  // Disable text alignment on paragraph nodes
12464
12527
  editor.registerNodeTransform(ParagraphNode, (node) => {
@@ -12717,10 +12780,10 @@ var tableHeaderElement = css93`
12717
12780
  import { useLexicalComposerContext as useLexicalComposerContext2 } from "@lexical/react/LexicalComposerContext";
12718
12781
  import { $insertFirst } from "@lexical/utils";
12719
12782
  import { $createParagraphNode, $getRoot, $insertNodes } from "lexical";
12720
- import { useEffect as useEffect15 } from "react";
12783
+ import { useEffect as useEffect16 } from "react";
12721
12784
  var ImprovedAssetSelectionPlugin = () => {
12722
12785
  const [editor] = useLexicalComposerContext2();
12723
- useEffect15(() => {
12786
+ useEffect16(() => {
12724
12787
  editor.getRootElement();
12725
12788
  const onRootClick = (event) => {
12726
12789
  if (event.target !== editor.getRootElement()) {
@@ -12791,7 +12854,7 @@ import {
12791
12854
  FOCUS_COMMAND,
12792
12855
  PASTE_COMMAND
12793
12856
  } from "lexical";
12794
- import { useCallback as useCallback8, useEffect as useEffect16, useRef as useRef9, useState as useState15 } from "react";
12857
+ import { useCallback as useCallback8, useEffect as useEffect17, useRef as useRef9, useState as useState15 } from "react";
12795
12858
 
12796
12859
  // src/components/ParameterInputs/rich-text/utils.ts
12797
12860
  import { $isAtNodeEnd } from "@lexical/selection";
@@ -12828,7 +12891,7 @@ var getSelectedNode = (selection) => {
12828
12891
  };
12829
12892
 
12830
12893
  // src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
12831
- import { Fragment as Fragment14, jsx as jsx125, jsxs as jsxs83 } from "@emotion/react/jsx-runtime";
12894
+ import { Fragment as Fragment15, jsx as jsx126, jsxs as jsxs84 } from "@emotion/react/jsx-runtime";
12832
12895
  var isProjectMapLinkValue = (value) => {
12833
12896
  return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
12834
12897
  value.nodeId && value.path && value.projectMapId
@@ -13144,13 +13207,13 @@ function LinkNodePlugin({
13144
13207
  const linkPopoverElRef = useRef9(null);
13145
13208
  const [isEditorFocused, setIsEditorFocused] = useState15(false);
13146
13209
  const [isLinkPopoverFocused, setIsLinkPopoverFocused] = useState15(false);
13147
- useEffect16(() => {
13210
+ useEffect17(() => {
13148
13211
  if (!isEditorFocused && !isLinkPopoverFocused) {
13149
13212
  setLinkPopoverState(void 0);
13150
13213
  return;
13151
13214
  }
13152
13215
  }, [isEditorFocused, isLinkPopoverFocused]);
13153
- useEffect16(() => {
13216
+ useEffect17(() => {
13154
13217
  if (!editor.hasNodes([LinkNode])) {
13155
13218
  throw new Error("LinkNode not registered on editor");
13156
13219
  }
@@ -13288,7 +13351,7 @@ function LinkNodePlugin({
13288
13351
  }
13289
13352
  });
13290
13353
  }, [editor, positioningAnchorEl]);
13291
- useEffect16(() => {
13354
+ useEffect17(() => {
13292
13355
  return editor.registerUpdateListener(({ editorState }) => {
13293
13356
  requestAnimationFrame(() => {
13294
13357
  editorState.read(() => {
@@ -13315,8 +13378,8 @@ function LinkNodePlugin({
13315
13378
  });
13316
13379
  });
13317
13380
  };
13318
- return /* @__PURE__ */ jsxs83(Fragment14, { children: [
13319
- /* @__PURE__ */ jsx125(
13381
+ return /* @__PURE__ */ jsxs84(Fragment15, { children: [
13382
+ /* @__PURE__ */ jsx126(
13320
13383
  NodeEventPlugin,
13321
13384
  {
13322
13385
  nodeType: LinkNode,
@@ -13326,7 +13389,7 @@ function LinkNodePlugin({
13326
13389
  }
13327
13390
  }
13328
13391
  ),
13329
- linkPopoverState ? /* @__PURE__ */ jsx125(
13392
+ linkPopoverState ? /* @__PURE__ */ jsx126(
13330
13393
  "div",
13331
13394
  {
13332
13395
  css: linkPopover,
@@ -13335,8 +13398,8 @@ function LinkNodePlugin({
13335
13398
  top: linkPopoverState.position.y
13336
13399
  },
13337
13400
  ref: linkPopoverElRef,
13338
- children: /* @__PURE__ */ jsxs83("div", { css: linkPopoverContainer, children: [
13339
- linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ jsx125(
13401
+ children: /* @__PURE__ */ jsxs84("div", { css: linkPopoverContainer, children: [
13402
+ linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ jsx126(
13340
13403
  "a",
13341
13404
  {
13342
13405
  href: parsePath(
@@ -13348,7 +13411,7 @@ function LinkNodePlugin({
13348
13411
  children: parsePath(linkPopoverState.node.__link.path)
13349
13412
  }
13350
13413
  ),
13351
- /* @__PURE__ */ jsx125(
13414
+ /* @__PURE__ */ jsx126(
13352
13415
  Button,
13353
13416
  {
13354
13417
  size: "xs",
@@ -13356,7 +13419,7 @@ function LinkNodePlugin({
13356
13419
  onEditLinkNode(linkPopoverState.node);
13357
13420
  },
13358
13421
  buttonType: "ghost",
13359
- children: /* @__PURE__ */ jsx125(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
13422
+ children: /* @__PURE__ */ jsx126(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
13360
13423
  }
13361
13424
  )
13362
13425
  ] })
@@ -13392,7 +13455,7 @@ import {
13392
13455
  OUTDENT_CONTENT_COMMAND,
13393
13456
  SELECTION_CHANGE_COMMAND
13394
13457
  } from "lexical";
13395
- import { useEffect as useEffect17, useRef as useRef10 } from "react";
13458
+ import { useEffect as useEffect18, useRef as useRef10 } from "react";
13396
13459
  function isIndentPermitted(maxDepth) {
13397
13460
  const selection = $getSelection2();
13398
13461
  if (!$isRangeSelection2(selection)) {
@@ -13448,7 +13511,7 @@ function $indentOverTab(selection) {
13448
13511
  function ListIndentPlugin({ maxDepth }) {
13449
13512
  const [editor] = useLexicalComposerContext4();
13450
13513
  const isInListItemNode = useRef10(false);
13451
- useEffect17(() => {
13514
+ useEffect18(() => {
13452
13515
  return editor.registerCommand(
13453
13516
  SELECTION_CHANGE_COMMAND,
13454
13517
  () => {
@@ -13465,7 +13528,7 @@ function ListIndentPlugin({ maxDepth }) {
13465
13528
  COMMAND_PRIORITY_NORMAL
13466
13529
  );
13467
13530
  }, [editor]);
13468
- useEffect17(() => {
13531
+ useEffect18(() => {
13469
13532
  return mergeRegister3(
13470
13533
  editor.registerCommand(
13471
13534
  INDENT_CONTENT_COMMAND,
@@ -13514,8 +13577,8 @@ import {
13514
13577
  TableCellNode
13515
13578
  } from "@lexical/table";
13516
13579
  import { $getRoot as $getRoot2, $getSelection as $getSelection3, $isRangeSelection as $isRangeSelection3 } from "lexical";
13517
- import { forwardRef as forwardRef25, useCallback as useCallback9, useEffect as useEffect18, useLayoutEffect, useState as useState16 } from "react";
13518
- import { jsx as jsx126, jsxs as jsxs84 } from "@emotion/react/jsx-runtime";
13580
+ import { forwardRef as forwardRef25, useCallback as useCallback9, useEffect as useEffect19, useLayoutEffect, useState as useState16 } from "react";
13581
+ import { jsx as jsx127, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
13519
13582
  function computeSelectionCount(selection) {
13520
13583
  const selectionShape = selection.getShape();
13521
13584
  return {
@@ -13537,7 +13600,7 @@ var TableActionMenuTrigger = forwardRef25((props, ref) => {
13537
13600
  const relativeY = rect.top - parentRect.top + positioningAnchorEl.scrollTop;
13538
13601
  setCoordinates({ x: relativeX, y: relativeY });
13539
13602
  }, [tableCellEl, positioningAnchorEl]);
13540
- return /* @__PURE__ */ jsx126(
13603
+ return /* @__PURE__ */ jsx127(
13541
13604
  IconButton,
13542
13605
  {
13543
13606
  ref,
@@ -13551,7 +13614,7 @@ var TableActionMenuTrigger = forwardRef25((props, ref) => {
13551
13614
  size: "xs",
13552
13615
  buttonType: "unimportant",
13553
13616
  ...rest,
13554
- children: /* @__PURE__ */ jsx126(Icon, { icon: "chevron-down", size: "1rem", iconColor: "currentColor" })
13617
+ children: /* @__PURE__ */ jsx127(Icon, { icon: "chevron-down", size: "1rem", iconColor: "currentColor" })
13555
13618
  }
13556
13619
  );
13557
13620
  });
@@ -13572,7 +13635,7 @@ function TableActionMenu({
13572
13635
  const incrementMenuTriggerKey = () => {
13573
13636
  setMenuTriggerKey((key) => key += 1);
13574
13637
  };
13575
- useEffect18(() => {
13638
+ useEffect19(() => {
13576
13639
  return editor.registerMutationListener(
13577
13640
  TableCellNode,
13578
13641
  (nodeMutations) => {
@@ -13586,7 +13649,7 @@ function TableActionMenu({
13586
13649
  { skipInitialization: true }
13587
13650
  );
13588
13651
  }, [editor, tableCellNode]);
13589
- useEffect18(() => {
13652
+ useEffect19(() => {
13590
13653
  editor.getEditorState().read(() => {
13591
13654
  const selection = $getSelection3();
13592
13655
  if ($isTableSelection(selection)) {
@@ -13705,10 +13768,10 @@ function TableActionMenu({
13705
13768
  const menuItemCss = css95({
13706
13769
  fontSize: "var(--fs-sm)"
13707
13770
  });
13708
- return /* @__PURE__ */ jsxs84(
13771
+ return /* @__PURE__ */ jsxs85(
13709
13772
  Menu,
13710
13773
  {
13711
- menuTrigger: /* @__PURE__ */ jsx126(
13774
+ menuTrigger: /* @__PURE__ */ jsx127(
13712
13775
  TableActionMenuTrigger,
13713
13776
  {
13714
13777
  tableCellEl,
@@ -13719,7 +13782,7 @@ function TableActionMenu({
13719
13782
  portalElement: menuPortalEl,
13720
13783
  maxMenuHeight: "300px",
13721
13784
  children: [
13722
- /* @__PURE__ */ jsxs84(
13785
+ /* @__PURE__ */ jsxs85(
13723
13786
  MenuItem,
13724
13787
  {
13725
13788
  onClick: () => {
@@ -13733,33 +13796,33 @@ function TableActionMenu({
13733
13796
  ]
13734
13797
  }
13735
13798
  ),
13736
- /* @__PURE__ */ jsxs84(MenuItem, { onClick: () => insertTableRowAtSelection(true), css: menuItemCss, children: [
13799
+ /* @__PURE__ */ jsxs85(MenuItem, { onClick: () => insertTableRowAtSelection(true), css: menuItemCss, children: [
13737
13800
  "Insert ",
13738
13801
  selectionCounts.rows === 1 ? "row" : `${selectionCounts.rows} rows`,
13739
13802
  " below"
13740
13803
  ] }),
13741
- /* @__PURE__ */ jsx126(MenuItemSeparator, {}),
13742
- /* @__PURE__ */ jsxs84(MenuItem, { onClick: () => insertTableColumnAtSelection(false), css: menuItemCss, children: [
13804
+ /* @__PURE__ */ jsx127(MenuItemSeparator, {}),
13805
+ /* @__PURE__ */ jsxs85(MenuItem, { onClick: () => insertTableColumnAtSelection(false), css: menuItemCss, children: [
13743
13806
  "Insert ",
13744
13807
  selectionCounts.columns === 1 ? "column" : `${selectionCounts.columns} columns`,
13745
13808
  " left"
13746
13809
  ] }),
13747
- /* @__PURE__ */ jsxs84(MenuItem, { onClick: () => insertTableColumnAtSelection(true), css: menuItemCss, children: [
13810
+ /* @__PURE__ */ jsxs85(MenuItem, { onClick: () => insertTableColumnAtSelection(true), css: menuItemCss, children: [
13748
13811
  "Insert ",
13749
13812
  selectionCounts.columns === 1 ? "column" : `${selectionCounts.columns} columns`,
13750
13813
  " right"
13751
13814
  ] }),
13752
- /* @__PURE__ */ jsx126(MenuItemSeparator, {}),
13753
- /* @__PURE__ */ jsx126(MenuItem, { onClick: () => deleteTableColumnAtSelection(), css: menuItemCss, children: "Delete column" }),
13754
- /* @__PURE__ */ jsx126(MenuItem, { onClick: () => deleteTableRowAtSelection(), css: menuItemCss, children: "Delete row" }),
13755
- /* @__PURE__ */ jsx126(MenuItem, { onClick: () => deleteTableAtSelection(), css: menuItemCss, children: "Delete table" }),
13756
- /* @__PURE__ */ jsx126(MenuItemSeparator, {}),
13757
- /* @__PURE__ */ jsxs84(MenuItem, { onClick: () => toggleTableRowIsHeader(), css: menuItemCss, children: [
13815
+ /* @__PURE__ */ jsx127(MenuItemSeparator, {}),
13816
+ /* @__PURE__ */ jsx127(MenuItem, { onClick: () => deleteTableColumnAtSelection(), css: menuItemCss, children: "Delete column" }),
13817
+ /* @__PURE__ */ jsx127(MenuItem, { onClick: () => deleteTableRowAtSelection(), css: menuItemCss, children: "Delete row" }),
13818
+ /* @__PURE__ */ jsx127(MenuItem, { onClick: () => deleteTableAtSelection(), css: menuItemCss, children: "Delete table" }),
13819
+ /* @__PURE__ */ jsx127(MenuItemSeparator, {}),
13820
+ /* @__PURE__ */ jsxs85(MenuItem, { onClick: () => toggleTableRowIsHeader(), css: menuItemCss, children: [
13758
13821
  (tableCellNode.__headerState & TableCellHeaderStates.ROW) === TableCellHeaderStates.ROW ? "Remove" : "Add",
13759
13822
  " ",
13760
13823
  "row header"
13761
13824
  ] }),
13762
- /* @__PURE__ */ jsxs84(MenuItem, { onClick: () => toggleTableColumnIsHeader(), css: menuItemCss, children: [
13825
+ /* @__PURE__ */ jsxs85(MenuItem, { onClick: () => toggleTableColumnIsHeader(), css: menuItemCss, children: [
13763
13826
  (tableCellNode.__headerState & TableCellHeaderStates.COLUMN) === TableCellHeaderStates.COLUMN ? "Remove" : "Add",
13764
13827
  " ",
13765
13828
  "column header"
@@ -13776,7 +13839,7 @@ function TableCellActionMenuContainer({
13776
13839
  const [tableCellNode, setTableMenuCellNode] = useState16(null);
13777
13840
  const [tableCellNodeEl, _setTableMenuCellNodeEl] = useState16(null);
13778
13841
  const [tableCellMenuPortalEl, setTableMenuCellMenuPortalEl] = useState16(null);
13779
- useEffect18(() => {
13842
+ useEffect19(() => {
13780
13843
  const newPortalEl = document.createElement("div");
13781
13844
  setTableMenuCellMenuPortalEl(newPortalEl);
13782
13845
  menuPortalEl.appendChild(newPortalEl);
@@ -13820,14 +13883,14 @@ function TableCellActionMenuContainer({
13820
13883
  setTableMenuCellNodeElem(null);
13821
13884
  }
13822
13885
  }, [editor, setTableMenuCellNodeElem]);
13823
- useEffect18(() => {
13886
+ useEffect19(() => {
13824
13887
  return editor.registerUpdateListener(() => {
13825
13888
  editor.getEditorState().read(() => {
13826
13889
  $moveMenu();
13827
13890
  });
13828
13891
  });
13829
13892
  });
13830
- return tableCellNode != null && tableCellNodeEl != null && tableCellMenuPortalEl != null && /* @__PURE__ */ jsx126(
13893
+ return tableCellNode != null && tableCellNodeEl != null && tableCellMenuPortalEl != null && /* @__PURE__ */ jsx127(
13831
13894
  TableActionMenu,
13832
13895
  {
13833
13896
  tableCellNode,
@@ -13843,7 +13906,7 @@ function TableActionMenuPlugin({
13843
13906
  menuPortalEl
13844
13907
  }) {
13845
13908
  const isEditable = useLexicalEditable();
13846
- return isEditable ? /* @__PURE__ */ jsx126(TableCellActionMenuContainer, { menuPortalEl, positioningAnchorEl }) : null;
13909
+ return isEditable ? /* @__PURE__ */ jsx127(TableCellActionMenuContainer, { menuPortalEl, positioningAnchorEl }) : null;
13847
13910
  }
13848
13911
 
13849
13912
  // src/components/ParameterInputs/rich-text/TableCellResizerPlugin.tsx
@@ -13859,9 +13922,9 @@ import {
13859
13922
  } from "@lexical/table";
13860
13923
  import { calculateZoomLevel } from "@lexical/utils";
13861
13924
  import { $getNearestNodeFromDOMNode } from "lexical";
13862
- import { useCallback as useCallback10, useEffect as useEffect19, useMemo as useMemo6, useRef as useRef11, useState as useState17 } from "react";
13925
+ import { useCallback as useCallback10, useEffect as useEffect20, useMemo as useMemo6, useRef as useRef11, useState as useState17 } from "react";
13863
13926
  import { createPortal as createPortal3 } from "react-dom";
13864
- import { Fragment as Fragment15, jsx as jsx127, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
13927
+ import { Fragment as Fragment16, jsx as jsx128, jsxs as jsxs86 } from "@emotion/react/jsx-runtime";
13865
13928
  var MIN_ROW_HEIGHT = 33;
13866
13929
  var MIN_COLUMN_WIDTH = 50;
13867
13930
  var tableResizer = css96`
@@ -13904,7 +13967,7 @@ function TableCellResizer({ editor, positioningAnchorEl }) {
13904
13967
  const isMouseDownOnEvent = (event) => {
13905
13968
  return (event.buttons & 1) === 1;
13906
13969
  };
13907
- useEffect19(() => {
13970
+ useEffect20(() => {
13908
13971
  const onMouseMove = (event) => {
13909
13972
  setTimeout(() => {
13910
13973
  const target = event.target;
@@ -14162,8 +14225,8 @@ function TableCellResizer({ editor, positioningAnchorEl }) {
14162
14225
  };
14163
14226
  }, [activeCell, draggingDirection, mouseCurrentPos, positioningAnchorEl]);
14164
14227
  const resizerStyles = getResizers();
14165
- return /* @__PURE__ */ jsx127("div", { ref: resizerRef, children: activeCell != null && !isMouseDown && /* @__PURE__ */ jsxs85(Fragment15, { children: [
14166
- /* @__PURE__ */ jsx127(
14228
+ return /* @__PURE__ */ jsx128("div", { ref: resizerRef, children: activeCell != null && !isMouseDown && /* @__PURE__ */ jsxs86(Fragment16, { children: [
14229
+ /* @__PURE__ */ jsx128(
14167
14230
  "div",
14168
14231
  {
14169
14232
  css: tableResizer,
@@ -14171,7 +14234,7 @@ function TableCellResizer({ editor, positioningAnchorEl }) {
14171
14234
  onMouseDown: toggleResize("right")
14172
14235
  }
14173
14236
  ),
14174
- /* @__PURE__ */ jsx127(
14237
+ /* @__PURE__ */ jsx128(
14175
14238
  "div",
14176
14239
  {
14177
14240
  css: tableResizer,
@@ -14186,7 +14249,7 @@ function TableCellResizerPlugin({ positioningAnchorEl }) {
14186
14249
  const isEditable = useLexicalEditable2();
14187
14250
  return useMemo6(
14188
14251
  () => isEditable ? createPortal3(
14189
- /* @__PURE__ */ jsx127(TableCellResizer, { editor, positioningAnchorEl }),
14252
+ /* @__PURE__ */ jsx128(TableCellResizer, { editor, positioningAnchorEl }),
14190
14253
  positioningAnchorEl
14191
14254
  ) : null,
14192
14255
  [editor, isEditable, positioningAnchorEl]
@@ -14203,11 +14266,11 @@ import {
14203
14266
  COMMAND_PRIORITY_NORMAL as COMMAND_PRIORITY_NORMAL2,
14204
14267
  SELECTION_CHANGE_COMMAND as SELECTION_CHANGE_COMMAND2
14205
14268
  } from "lexical";
14206
- import { useEffect as useEffect20, useState as useState18 } from "react";
14269
+ import { useEffect as useEffect21, useState as useState18 } from "react";
14207
14270
  var TableSelectionPlugin = () => {
14208
14271
  const [editor] = useLexicalComposerContext7();
14209
14272
  const [closestTableCellNode, setClosestTableCellNode] = useState18(null);
14210
- useEffect20(() => {
14273
+ useEffect21(() => {
14211
14274
  return editor.registerCommand(
14212
14275
  SELECTION_CHANGE_COMMAND2,
14213
14276
  () => {
@@ -14229,7 +14292,7 @@ var TableSelectionPlugin = () => {
14229
14292
  COMMAND_PRIORITY_NORMAL2
14230
14293
  );
14231
14294
  }, [editor]);
14232
- useEffect20(() => {
14295
+ useEffect21(() => {
14233
14296
  const onControlA = (event) => {
14234
14297
  if (event.key === "a" && (event.ctrlKey || event.metaKey)) {
14235
14298
  if (!closestTableCellNode) {
@@ -14276,7 +14339,7 @@ import {
14276
14339
  FORMAT_TEXT_COMMAND,
14277
14340
  SELECTION_CHANGE_COMMAND as SELECTION_CHANGE_COMMAND3
14278
14341
  } from "lexical";
14279
- import { useCallback as useCallback11, useEffect as useEffect21 } from "react";
14342
+ import { useCallback as useCallback11, useEffect as useEffect22 } from "react";
14280
14343
 
14281
14344
  // src/components/ParameterInputs/rich-text/toolbar/constants.ts
14282
14345
  var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
@@ -14422,7 +14485,7 @@ var useRichTextToolbarState = ({ config }) => {
14422
14485
  };
14423
14486
 
14424
14487
  // src/components/ParameterInputs/rich-text/toolbar/RichTextToolbar.tsx
14425
- import { Fragment as Fragment16, jsx as jsx128, jsxs as jsxs86 } from "@emotion/react/jsx-runtime";
14488
+ import { Fragment as Fragment17, jsx as jsx129, jsxs as jsxs87 } from "@emotion/react/jsx-runtime";
14426
14489
  var toolbar = css97`
14427
14490
  ${scrollbarStyles}
14428
14491
  background: var(--gray-50);
@@ -14482,7 +14545,7 @@ var toolbarChevron = css97`
14482
14545
  margin-left: var(--spacing-xs);
14483
14546
  `;
14484
14547
  var RichTextToolbarIcon = ({ icon }) => {
14485
- return /* @__PURE__ */ jsx128(Icon, { icon, css: toolbarIcon, size: "1rem" });
14548
+ return /* @__PURE__ */ jsx129(Icon, { icon, css: toolbarIcon, size: "1rem" });
14486
14549
  };
14487
14550
  var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset }) => {
14488
14551
  const [editor] = useLexicalComposerContext8();
@@ -14577,7 +14640,7 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
14577
14640
  setIsLink(false);
14578
14641
  }
14579
14642
  }, [editor, setActiveElement, setActiveFormats, setIsLink]);
14580
- useEffect21(() => {
14643
+ useEffect22(() => {
14581
14644
  return editor.registerCommand(
14582
14645
  SELECTION_CHANGE_COMMAND3,
14583
14646
  (_payload) => {
@@ -14587,7 +14650,7 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
14587
14650
  COMMAND_PRIORITY_CRITICAL2
14588
14651
  );
14589
14652
  }, [editor, updateToolbar]);
14590
- useEffect21(() => {
14653
+ useEffect22(() => {
14591
14654
  return editor.registerUpdateListener(({ editorState }) => {
14592
14655
  requestAnimationFrame(() => {
14593
14656
  editorState.read(() => {
@@ -14596,14 +14659,14 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
14596
14659
  });
14597
14660
  });
14598
14661
  }, [editor, updateToolbar]);
14599
- return /* @__PURE__ */ jsxs86("div", { css: toolbar, "data-testid": "rich-text-toolbar", children: [
14600
- /* @__PURE__ */ jsxs86(
14662
+ return /* @__PURE__ */ jsxs87("div", { css: toolbar, "data-testid": "rich-text-toolbar", children: [
14663
+ /* @__PURE__ */ jsxs87(
14601
14664
  Menu,
14602
14665
  {
14603
- menuTrigger: /* @__PURE__ */ jsxs86("button", { css: [richTextToolbarButton, textStyleButton], title: "Text styles", type: "button", children: [
14666
+ menuTrigger: /* @__PURE__ */ jsxs87("button", { css: [richTextToolbarButton, textStyleButton], title: "Text styles", type: "button", children: [
14604
14667
  visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
14605
14668
  " ",
14606
- /* @__PURE__ */ jsx128(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
14669
+ /* @__PURE__ */ jsx129(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
14607
14670
  ] }),
14608
14671
  placement: "bottom-start",
14609
14672
  children: [
@@ -14613,7 +14676,7 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
14613
14676
  type: "paragraph"
14614
14677
  },
14615
14678
  ...visibleTextualElements
14616
- ].map((element) => /* @__PURE__ */ jsx128(
14679
+ ].map((element) => /* @__PURE__ */ jsx129(
14617
14680
  MenuItem,
14618
14681
  {
14619
14682
  "data-testid": "menu-item",
@@ -14624,12 +14687,12 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
14624
14687
  },
14625
14688
  element.type
14626
14689
  )),
14627
- visibleTextualElements.length === 0 ? /* @__PURE__ */ jsx128(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
14690
+ visibleTextualElements.length === 0 ? /* @__PURE__ */ jsx129(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
14628
14691
  ]
14629
14692
  }
14630
14693
  ),
14631
- visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsxs86("div", { css: toolbarGroup, "data-testid": "rich-text-toolbar-formatting", children: [
14632
- visibleFormatsWithIcon.map((format) => /* @__PURE__ */ jsx128(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ jsx128(
14694
+ visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsxs87("div", { css: toolbarGroup, "data-testid": "rich-text-toolbar-formatting", children: [
14695
+ visibleFormatsWithIcon.map((format) => /* @__PURE__ */ jsx129(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ jsx129(
14633
14696
  "button",
14634
14697
  {
14635
14698
  "data-testid": `formatting-button-${format.type}`,
@@ -14641,15 +14704,15 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
14641
14704
  richTextToolbarButton,
14642
14705
  activeFormats.includes(format.type) ? richTextToolbarButtonActive : null
14643
14706
  ],
14644
- children: /* @__PURE__ */ jsx128(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
14707
+ children: /* @__PURE__ */ jsx129(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
14645
14708
  }
14646
14709
  ) }, format.type)),
14647
- visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsx128(
14710
+ visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsx129(
14648
14711
  Menu,
14649
14712
  {
14650
- menuTrigger: /* @__PURE__ */ jsx128("button", { css: richTextToolbarButton, title: "Alternative text styles", type: "button", children: /* @__PURE__ */ jsx128(Icon, { icon: "more-alt", css: toolbarIcon }) }),
14713
+ menuTrigger: /* @__PURE__ */ jsx129("button", { css: richTextToolbarButton, title: "Alternative text styles", type: "button", children: /* @__PURE__ */ jsx129(Icon, { icon: "more-alt", css: toolbarIcon }) }),
14651
14714
  placement: "bottom-start",
14652
- children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ jsx128(
14715
+ children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ jsx129(
14653
14716
  MenuItem,
14654
14717
  {
14655
14718
  onClick: () => {
@@ -14662,8 +14725,8 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
14662
14725
  }
14663
14726
  ) : null
14664
14727
  ] }) : null,
14665
- visibleElementsWithIcons.size > 0 || customControls ? /* @__PURE__ */ jsxs86("div", { css: toolbarGroup, "data-testid": "rich-text-toolbar-elements", children: [
14666
- linkElementVisible ? /* @__PURE__ */ jsx128(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ jsx128(
14728
+ visibleElementsWithIcons.size > 0 || customControls ? /* @__PURE__ */ jsxs87("div", { css: toolbarGroup, "data-testid": "rich-text-toolbar-elements", children: [
14729
+ linkElementVisible ? /* @__PURE__ */ jsx129(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ jsx129(
14667
14730
  "button",
14668
14731
  {
14669
14732
  "data-testid": "element-link",
@@ -14676,11 +14739,11 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
14676
14739
  }
14677
14740
  },
14678
14741
  css: [richTextToolbarButton, isLink ? richTextToolbarButtonActive : null],
14679
- children: /* @__PURE__ */ jsx128(RichTextToolbarIcon, { icon: "link" })
14742
+ children: /* @__PURE__ */ jsx129(RichTextToolbarIcon, { icon: "link" })
14680
14743
  }
14681
14744
  ) }) : null,
14682
- visibleLists.size > 0 ? /* @__PURE__ */ jsxs86(Fragment16, { children: [
14683
- visibleLists.has("unorderedList") ? /* @__PURE__ */ jsx128(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ jsx128(
14745
+ visibleLists.size > 0 ? /* @__PURE__ */ jsxs87(Fragment17, { children: [
14746
+ visibleLists.has("unorderedList") ? /* @__PURE__ */ jsx129(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ jsx129(
14684
14747
  "button",
14685
14748
  {
14686
14749
  "data-testid": "element-unordered-list",
@@ -14696,10 +14759,10 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
14696
14759
  richTextToolbarButton,
14697
14760
  activeElement === "unorderedList" ? richTextToolbarButtonActive : null
14698
14761
  ],
14699
- children: /* @__PURE__ */ jsx128(RichTextToolbarIcon, { icon: "layout-list" })
14762
+ children: /* @__PURE__ */ jsx129(RichTextToolbarIcon, { icon: "layout-list" })
14700
14763
  }
14701
14764
  ) }) : null,
14702
- visibleLists.has("orderedList") ? /* @__PURE__ */ jsx128(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ jsx128(
14765
+ visibleLists.has("orderedList") ? /* @__PURE__ */ jsx129(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ jsx129(
14703
14766
  "button",
14704
14767
  {
14705
14768
  "data-testid": "element-ordered-list",
@@ -14715,58 +14778,58 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
14715
14778
  richTextToolbarButton,
14716
14779
  activeElement === "orderedList" ? richTextToolbarButtonActive : null
14717
14780
  ],
14718
- children: /* @__PURE__ */ jsx128(RichTextToolbarIcon, { icon: "layout-list-numbered" })
14781
+ children: /* @__PURE__ */ jsx129(RichTextToolbarIcon, { icon: "layout-list-numbered" })
14719
14782
  }
14720
14783
  ) }) : null
14721
14784
  ] }) : null,
14722
14785
  customControls ? customControls : null
14723
14786
  ] }) : null,
14724
- visibleInsertElementsWithIcons.size > 0 ? /* @__PURE__ */ jsx128("div", { css: toolbarGroup, "data-testid": "rich-text-toolbar-insert", children: /* @__PURE__ */ jsxs86(
14787
+ visibleInsertElementsWithIcons.size > 0 ? /* @__PURE__ */ jsx129("div", { css: toolbarGroup, "data-testid": "rich-text-toolbar-insert", children: /* @__PURE__ */ jsxs87(
14725
14788
  Menu,
14726
14789
  {
14727
- menuTrigger: /* @__PURE__ */ jsxs86("button", { css: richTextToolbarButton, title: "Insert block element", type: "button", children: [
14790
+ menuTrigger: /* @__PURE__ */ jsxs87("button", { css: richTextToolbarButton, title: "Insert block element", type: "button", children: [
14728
14791
  "Insert",
14729
- /* @__PURE__ */ jsx128(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
14792
+ /* @__PURE__ */ jsx129(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
14730
14793
  ] }),
14731
14794
  placement: "bottom-start",
14732
14795
  children: [
14733
- quoteElementVisible ? /* @__PURE__ */ jsx128(
14796
+ quoteElementVisible ? /* @__PURE__ */ jsx129(
14734
14797
  MenuItem,
14735
14798
  {
14736
14799
  onClick: () => {
14737
14800
  onSelectElement("quote");
14738
14801
  },
14739
- icon: /* @__PURE__ */ jsx128(Icon, { icon: "quote", iconColor: "currentColor" }),
14802
+ icon: /* @__PURE__ */ jsx129(Icon, { icon: "quote", iconColor: "currentColor" }),
14740
14803
  children: "Quote"
14741
14804
  }
14742
14805
  ) : null,
14743
- codeElementVisible ? /* @__PURE__ */ jsx128(
14806
+ codeElementVisible ? /* @__PURE__ */ jsx129(
14744
14807
  MenuItem,
14745
14808
  {
14746
14809
  onClick: () => {
14747
14810
  onSelectElement("code");
14748
14811
  },
14749
- icon: /* @__PURE__ */ jsx128(Icon, { icon: "code-slash", iconColor: "currentColor" }),
14812
+ icon: /* @__PURE__ */ jsx129(Icon, { icon: "code-slash", iconColor: "currentColor" }),
14750
14813
  children: "Code"
14751
14814
  }
14752
14815
  ) : null,
14753
- tableElementVisible && onInsertTable !== void 0 ? /* @__PURE__ */ jsx128(
14816
+ tableElementVisible && onInsertTable !== void 0 ? /* @__PURE__ */ jsx129(
14754
14817
  MenuItem,
14755
14818
  {
14756
14819
  onClick: () => {
14757
14820
  onSelectElement("table");
14758
14821
  },
14759
- icon: /* @__PURE__ */ jsx128(Icon, { icon: "view-grid", iconColor: "currentColor" }),
14822
+ icon: /* @__PURE__ */ jsx129(Icon, { icon: "view-grid", iconColor: "currentColor" }),
14760
14823
  children: "Table"
14761
14824
  }
14762
14825
  ) : null,
14763
- assetElementVisible && onInsertAsset !== void 0 ? /* @__PURE__ */ jsx128(
14826
+ assetElementVisible && onInsertAsset !== void 0 ? /* @__PURE__ */ jsx129(
14764
14827
  MenuItem,
14765
14828
  {
14766
14829
  onClick: () => {
14767
14830
  onSelectElement("asset");
14768
14831
  },
14769
- icon: /* @__PURE__ */ jsx128(Icon, { icon: "image", iconColor: "currentColor" }),
14832
+ icon: /* @__PURE__ */ jsx129(Icon, { icon: "image", iconColor: "currentColor" }),
14770
14833
  children: "Asset"
14771
14834
  }
14772
14835
  ) : null
@@ -14778,7 +14841,7 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
14778
14841
  var RichTextToolbar_default = RichTextToolbar;
14779
14842
 
14780
14843
  // src/components/ParameterInputs/ParameterRichText.tsx
14781
- import { Fragment as Fragment17, jsx as jsx129, jsxs as jsxs87 } from "@emotion/react/jsx-runtime";
14844
+ import { Fragment as Fragment18, jsx as jsx130, jsxs as jsxs88 } from "@emotion/react/jsx-runtime";
14782
14845
  var ParameterRichText = ({
14783
14846
  label,
14784
14847
  labelLeadingIcon,
@@ -14807,7 +14870,7 @@ var ParameterRichText = ({
14807
14870
  onInsertAsset,
14808
14871
  minimalInteractivity
14809
14872
  }) => {
14810
- return /* @__PURE__ */ jsxs87(
14873
+ return /* @__PURE__ */ jsxs88(
14811
14874
  ParameterShell,
14812
14875
  {
14813
14876
  "data-testid": "parameter-richtext",
@@ -14821,7 +14884,7 @@ var ParameterRichText = ({
14821
14884
  captionTestId,
14822
14885
  menuItems,
14823
14886
  children: [
14824
- /* @__PURE__ */ jsx129(
14887
+ /* @__PURE__ */ jsx130(
14825
14888
  ParameterRichTextInner,
14826
14889
  {
14827
14890
  value,
@@ -14843,7 +14906,7 @@ var ParameterRichText = ({
14843
14906
  children
14844
14907
  }
14845
14908
  ),
14846
- menuItems ? /* @__PURE__ */ jsx129(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx129(Fragment17, { children: menuItems }) }) : null
14909
+ menuItems ? /* @__PURE__ */ jsx130(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx130(Fragment18, { children: menuItems }) }) : null
14847
14910
  ]
14848
14911
  }
14849
14912
  );
@@ -15004,8 +15067,8 @@ var ParameterRichTextInner = ({
15004
15067
  },
15005
15068
  editable: !readOnly
15006
15069
  };
15007
- return /* @__PURE__ */ jsxs87(Fragment17, { children: [
15008
- /* @__PURE__ */ jsx129("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx129(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx129(
15070
+ return /* @__PURE__ */ jsxs88(Fragment18, { children: [
15071
+ /* @__PURE__ */ jsx130("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx130(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx130(
15009
15072
  RichText,
15010
15073
  {
15011
15074
  onChange,
@@ -15051,12 +15114,12 @@ var RichText = ({
15051
15114
  minimalInteractivity
15052
15115
  }) => {
15053
15116
  const [editor] = useLexicalComposerContext9();
15054
- useEffect22(() => {
15117
+ useEffect23(() => {
15055
15118
  if (onRichTextInit) {
15056
15119
  onRichTextInit(editor);
15057
15120
  }
15058
15121
  }, [editor, onRichTextInit]);
15059
- useEffect22(() => {
15122
+ useEffect23(() => {
15060
15123
  const removeUpdateListener = editor.registerUpdateListener(({ editorState, prevEditorState, tags }) => {
15061
15124
  requestAnimationFrame(() => {
15062
15125
  if (!deepEqual2(editorState.toJSON(), prevEditorState.toJSON())) {
@@ -15068,7 +15131,7 @@ var RichText = ({
15068
15131
  removeUpdateListener();
15069
15132
  };
15070
15133
  }, [editor, onChange]);
15071
- useEffect22(() => {
15134
+ useEffect23(() => {
15072
15135
  editor.setEditable(!readOnly);
15073
15136
  }, [editor, readOnly]);
15074
15137
  const [editorContainerRef, setEditorContainerRef] = useState20(null);
@@ -15083,8 +15146,8 @@ var RichText = ({
15083
15146
  setPortalContainerRef(_portalContainerRef);
15084
15147
  }
15085
15148
  };
15086
- return /* @__PURE__ */ jsxs87(Fragment17, { children: [
15087
- readOnly || minimalInteractivity ? null : /* @__PURE__ */ jsx129(
15149
+ return /* @__PURE__ */ jsxs88(Fragment18, { children: [
15150
+ readOnly || minimalInteractivity ? null : /* @__PURE__ */ jsx130(
15088
15151
  RichTextToolbar_default,
15089
15152
  {
15090
15153
  config,
@@ -15093,8 +15156,8 @@ var RichText = ({
15093
15156
  onInsertAsset
15094
15157
  }
15095
15158
  ),
15096
- /* @__PURE__ */ jsxs87("div", { css: editorContainerWrapper, ref: onPortalContainerRef, children: [
15097
- /* @__PURE__ */ jsxs87(
15159
+ /* @__PURE__ */ jsxs88("div", { css: editorContainerWrapper, ref: onPortalContainerRef, children: [
15160
+ /* @__PURE__ */ jsxs88(
15098
15161
  "div",
15099
15162
  {
15100
15163
  css: editorContainer,
@@ -15102,33 +15165,33 @@ var RichText = ({
15102
15165
  ref: onEditorContainerRef,
15103
15166
  "data-testid": "value-container",
15104
15167
  children: [
15105
- /* @__PURE__ */ jsx129(
15168
+ /* @__PURE__ */ jsx130(
15106
15169
  RichTextPlugin,
15107
15170
  {
15108
- contentEditable: /* @__PURE__ */ jsx129(ContentEditable, { css: editorInput, className: editorInputClassName }),
15109
- placeholder: /* @__PURE__ */ jsx129("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
15171
+ contentEditable: /* @__PURE__ */ jsx130(ContentEditable, { css: editorInput, className: editorInputClassName }),
15172
+ placeholder: /* @__PURE__ */ jsx130("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
15110
15173
  ErrorBoundary: LexicalErrorBoundary
15111
15174
  }
15112
15175
  ),
15113
- /* @__PURE__ */ jsx129(ListPlugin, {}),
15114
- /* @__PURE__ */ jsx129(ListIndentPlugin, { maxDepth: 4 }),
15115
- /* @__PURE__ */ jsx129(TablePlugin, { hasCellMerge: false, hasCellBackgroundColor: false }),
15116
- /* @__PURE__ */ jsx129("div", { css: editorContainerOverflowWrapper, "data-testid": "table-action-menu-plugin", children: editorContainerRef && portalContainerRef && !minimalInteractivity ? /* @__PURE__ */ jsx129(
15176
+ /* @__PURE__ */ jsx130(ListPlugin, {}),
15177
+ /* @__PURE__ */ jsx130(ListIndentPlugin, { maxDepth: 4 }),
15178
+ /* @__PURE__ */ jsx130(TablePlugin, { hasCellMerge: false, hasCellBackgroundColor: false }),
15179
+ /* @__PURE__ */ jsx130("div", { css: editorContainerOverflowWrapper, "data-testid": "table-action-menu-plugin", children: editorContainerRef && portalContainerRef && !minimalInteractivity ? /* @__PURE__ */ jsx130(
15117
15180
  TableActionMenuPlugin,
15118
15181
  {
15119
15182
  positioningAnchorEl: editorContainerRef,
15120
15183
  menuPortalEl: portalContainerRef
15121
15184
  }
15122
15185
  ) : null }),
15123
- editorContainerRef && !minimalInteractivity ? /* @__PURE__ */ jsx129(TableCellResizerPlugin, { positioningAnchorEl: editorContainerRef }) : null,
15124
- readOnly ? null : /* @__PURE__ */ jsx129(HistoryPlugin, {}),
15125
- /* @__PURE__ */ jsx129(DisableStylesPlugin, {}),
15126
- /* @__PURE__ */ jsx129(MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS })
15186
+ editorContainerRef && !minimalInteractivity ? /* @__PURE__ */ jsx130(TableCellResizerPlugin, { positioningAnchorEl: editorContainerRef }) : null,
15187
+ readOnly ? null : /* @__PURE__ */ jsx130(HistoryPlugin, {}),
15188
+ /* @__PURE__ */ jsx130(DisableStylesPlugin, {}),
15189
+ /* @__PURE__ */ jsx130(MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS })
15127
15190
  ]
15128
15191
  }
15129
15192
  ),
15130
- /* @__PURE__ */ jsx129(Fragment17, { children }),
15131
- editorContainerRef ? /* @__PURE__ */ jsx129(
15193
+ /* @__PURE__ */ jsx130(Fragment18, { children }),
15194
+ editorContainerRef ? /* @__PURE__ */ jsx130(
15132
15195
  LinkNodePlugin,
15133
15196
  {
15134
15197
  onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve(),
@@ -15139,25 +15202,25 @@ var RichText = ({
15139
15202
  positioningAnchorEl: editorContainerRef
15140
15203
  }
15141
15204
  ) : null,
15142
- /* @__PURE__ */ jsx129(TableSelectionPlugin_default, {}),
15143
- /* @__PURE__ */ jsx129(ImprovedAssetSelectionPlugin_default, {})
15205
+ /* @__PURE__ */ jsx130(TableSelectionPlugin_default, {}),
15206
+ /* @__PURE__ */ jsx130(ImprovedAssetSelectionPlugin_default, {})
15144
15207
  ] })
15145
15208
  ] });
15146
15209
  };
15147
15210
 
15148
15211
  // src/components/ParameterInputs/ParameterSelect.tsx
15149
15212
  import { forwardRef as forwardRef26 } from "react";
15150
- import { jsx as jsx130, jsxs as jsxs88 } from "@emotion/react/jsx-runtime";
15213
+ import { jsx as jsx131, jsxs as jsxs89 } from "@emotion/react/jsx-runtime";
15151
15214
  var ParameterSelect = forwardRef26(
15152
15215
  ({ defaultOption, options, ...props }, ref) => {
15153
15216
  const { shellProps, innerProps } = extractParameterProps(props);
15154
- return /* @__PURE__ */ jsx130(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx130(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
15217
+ return /* @__PURE__ */ jsx131(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx131(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
15155
15218
  }
15156
15219
  );
15157
15220
  var ParameterSelectInner = forwardRef26(
15158
15221
  ({ defaultOption, options, ...props }, ref) => {
15159
15222
  const { id, label, hiddenLabel } = useParameterShell();
15160
- return /* @__PURE__ */ jsxs88(
15223
+ return /* @__PURE__ */ jsxs89(
15161
15224
  "select",
15162
15225
  {
15163
15226
  css: [input3, selectInput],
@@ -15166,10 +15229,10 @@ var ParameterSelectInner = forwardRef26(
15166
15229
  ref,
15167
15230
  ...props,
15168
15231
  children: [
15169
- defaultOption ? /* @__PURE__ */ jsx130("option", { value: "", children: defaultOption }) : null,
15232
+ defaultOption ? /* @__PURE__ */ jsx131("option", { value: "", children: defaultOption }) : null,
15170
15233
  options.map((option) => {
15171
15234
  var _a;
15172
- return /* @__PURE__ */ jsx130("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
15235
+ return /* @__PURE__ */ jsx131("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
15173
15236
  })
15174
15237
  ]
15175
15238
  }
@@ -15179,14 +15242,14 @@ var ParameterSelectInner = forwardRef26(
15179
15242
 
15180
15243
  // src/components/ParameterInputs/ParameterTextarea.tsx
15181
15244
  import { forwardRef as forwardRef27 } from "react";
15182
- import { jsx as jsx131 } from "@emotion/react/jsx-runtime";
15245
+ import { jsx as jsx132 } from "@emotion/react/jsx-runtime";
15183
15246
  var ParameterTextarea = forwardRef27((props, ref) => {
15184
15247
  const { shellProps, innerProps } = extractParameterProps(props);
15185
- return /* @__PURE__ */ jsx131(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx131(ParameterTextareaInner, { ref, ...innerProps }) });
15248
+ return /* @__PURE__ */ jsx132(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx132(ParameterTextareaInner, { ref, ...innerProps }) });
15186
15249
  });
15187
15250
  var ParameterTextareaInner = forwardRef27(({ ...props }, ref) => {
15188
15251
  const { id, label, hiddenLabel } = useParameterShell();
15189
- return /* @__PURE__ */ jsx131(
15252
+ return /* @__PURE__ */ jsx132(
15190
15253
  "textarea",
15191
15254
  {
15192
15255
  css: [input3, textarea2],
@@ -15200,84 +15263,22 @@ var ParameterTextareaInner = forwardRef27(({ ...props }, ref) => {
15200
15263
 
15201
15264
  // src/components/ParameterInputs/ParameterToggle.tsx
15202
15265
  import { forwardRef as forwardRef28 } from "react";
15203
- import { jsx as jsx132, jsxs as jsxs89 } from "@emotion/react/jsx-runtime";
15266
+ import { jsx as jsx133, jsxs as jsxs90 } from "@emotion/react/jsx-runtime";
15204
15267
  var ParameterToggle = forwardRef28((props, ref) => {
15205
15268
  const { shellProps, innerProps } = extractParameterProps(props);
15206
- return /* @__PURE__ */ jsx132(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx132(ParameterToggleInner, { ref, ...innerProps }) });
15269
+ return /* @__PURE__ */ jsx133(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx133(ParameterToggleInner, { ref, ...innerProps }) });
15207
15270
  });
15208
15271
  var ParameterToggleInner = forwardRef28(
15209
15272
  ({ children, ...props }, ref) => {
15210
15273
  const { id, label } = useParameterShell();
15211
- return /* @__PURE__ */ jsxs89("label", { css: inputToggleLabel2, children: [
15212
- /* @__PURE__ */ jsx132("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
15213
- /* @__PURE__ */ jsx132("span", { css: inlineLabel2, children: label }),
15274
+ return /* @__PURE__ */ jsxs90("label", { css: inputToggleLabel2, children: [
15275
+ /* @__PURE__ */ jsx133("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
15276
+ /* @__PURE__ */ jsx133("span", { css: inlineLabel2, children: label }),
15214
15277
  children
15215
15278
  ] });
15216
15279
  }
15217
15280
  );
15218
15281
 
15219
- // src/components/Popover/Popover.tsx
15220
- import {
15221
- Popover as AriakitPopover,
15222
- PopoverDisclosure as PopoverDisclosure2,
15223
- PopoverProvider as PopoverProvider2,
15224
- usePopoverContext,
15225
- usePopoverStore as usePopoverStore2
15226
- } from "@ariakit/react";
15227
- import { useEffect as useEffect23 } from "react";
15228
- import { Fragment as Fragment18, jsx as jsx133, jsxs as jsxs90 } from "@emotion/react/jsx-runtime";
15229
- var Popover3 = ({
15230
- iconColor = "action",
15231
- icon = "info",
15232
- iconSize = "1rem",
15233
- buttonText,
15234
- ariaLabel,
15235
- placement = "bottom",
15236
- testId,
15237
- trigger: trigger2,
15238
- children,
15239
- onInit,
15240
- variant = "small",
15241
- maxWidth = variant === "large" ? "24rem" : "14rem",
15242
- ...otherProps
15243
- }) => {
15244
- const popover2 = usePopoverStore2({ placement });
15245
- useEffect23(() => {
15246
- onInit == null ? void 0 : onInit({ store: popover2 });
15247
- }, [popover2]);
15248
- return /* @__PURE__ */ jsxs90(PopoverProvider2, { store: popover2, children: [
15249
- /* @__PURE__ */ jsx133(
15250
- PopoverDisclosure2,
15251
- {
15252
- css: [PopoverBtn, trigger2 ? void 0 : PopoverDefaulterTriggerBtn],
15253
- title: buttonText,
15254
- "data-testid": testId,
15255
- children: trigger2 ? trigger2 : /* @__PURE__ */ jsxs90(Fragment18, { children: [
15256
- /* @__PURE__ */ jsx133(Icon, { icon, iconColor, size: iconSize }),
15257
- /* @__PURE__ */ jsx133("span", { hidden: true, children: buttonText })
15258
- ] })
15259
- }
15260
- ),
15261
- /* @__PURE__ */ jsx133(
15262
- AriakitPopover,
15263
- {
15264
- unmountOnHide: true,
15265
- style: {
15266
- maxWidth
15267
- },
15268
- css: [Popover, variant === "large" ? PopoverVariantLarge : PopoverVariantSmall],
15269
- ...otherProps,
15270
- "aria-label": ariaLabel,
15271
- children
15272
- }
15273
- )
15274
- ] });
15275
- };
15276
- var usePopoverComponentContext = () => {
15277
- const contextValue = usePopoverContext();
15278
- return contextValue;
15279
- };
15280
-
15281
15282
  // src/components/ProgressBar/ProgressBar.styles.ts
15282
15283
  import { css as css99, keyframes as keyframes4 } from "@emotion/react";
15283
15284
  var container3 = css99`
@@ -16330,13 +16331,13 @@ var Spinner = ({
16330
16331
  };
16331
16332
 
16332
16333
  // src/components/Switch/Switch.tsx
16333
- import { forwardRef as forwardRef29 } from "react";
16334
+ import { forwardRef as forwardRef29, useMemo as useMemo10 } from "react";
16334
16335
 
16335
16336
  // src/components/Switch/Switch.styles.ts
16336
16337
  import { css as css106 } from "@emotion/react";
16337
16338
  var SwitchInputContainer = css106`
16338
16339
  cursor: pointer;
16339
- display: inline-block;
16340
+ display: inline-flex;
16340
16341
  position: relative;
16341
16342
  margin-right: var(--spacing-sm);
16342
16343
  transition: var(--duration-fast) var(--timing-ease-out);
@@ -16371,7 +16372,6 @@ var SwitchInput = (size) => css106`
16371
16372
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath d='M10.5858 13.4142L7.75735 10.5858L6.34314 12L10.5858 16.2427L17.6568 9.1716L16.2426 7.75739L10.5858 13.4142Z' fill='%23fff' /%3E%3C/svg%3E");
16372
16373
  background-position: center center;
16373
16374
  border-color: var(--brand-secondary-3);
16374
- transform: translateX(var(--spacing-base));
16375
16375
 
16376
16376
  &:hover,
16377
16377
  &:focus {
@@ -16384,6 +16384,17 @@ var SwitchInput = (size) => css106`
16384
16384
  cursor: not-allowed;
16385
16385
  }
16386
16386
  `;
16387
+ var SwitchInputCheckedDirectionLeft = css106`
16388
+ &:checked {
16389
+ transform: translateX(var(--spacing-base));
16390
+ }
16391
+ `;
16392
+ var SwitchInputCheckedDirectionRight = css106`
16393
+ transform: translateX(-var(--spacing-base));
16394
+ &:checked {
16395
+ transform: translateX(0);
16396
+ }
16397
+ `;
16387
16398
  var SwitchInputDisabled = css106`
16388
16399
  opacity: var(--opacity-50);
16389
16400
  cursor: not-allowed;
@@ -16392,12 +16403,23 @@ var SwitchInputDisabled = css106`
16392
16403
  cursor: not-allowed;
16393
16404
  }
16394
16405
  `;
16406
+ var SwitchInputLabelAlignmentLeft = (size) => css106`
16407
+ padding-inline-start: ${size === "sm" ? "var(--spacing-xl)" : "var(--spacing-2xl)"};
16408
+ &:before {
16409
+ left: 0;
16410
+ }
16411
+ `;
16412
+ var SwitchInputLabelAlignmentRight = (size) => css106`
16413
+ padding-inline-end: ${size === "sm" ? "var(--spacing-xl)" : "var(--spacing-2xl)"};
16414
+ &:before {
16415
+ right: 0;
16416
+ }
16417
+ `;
16395
16418
  var SwitchInputLabel = (size) => css106`
16396
16419
  align-items: center;
16397
16420
  color: var(--typography-base);
16398
16421
  display: inline-flex;
16399
16422
  line-height: 1.25;
16400
- padding-inline: ${size === "sm" ? "var(--spacing-xl)" : "var(--spacing-2xl)"} 0;
16401
16423
 
16402
16424
  &:before {
16403
16425
  border-radius: var(--rounded-full);
@@ -16410,21 +16432,53 @@ var SwitchInputLabel = (size) => css106`
16410
16432
  height: ${size === "sm" ? "var(--spacing-base)" : "var(--spacing-md)"};
16411
16433
  margin-top: ${size === "sm" ? "var(--spacing-2xs)" : "none"};
16412
16434
  position: absolute;
16413
- left: 0;
16414
16435
  top: 0;
16415
16436
  }
16416
16437
  `;
16417
- var SwitchText = (size) => css106`
16438
+ var SwitchTextAlignmentLeft = (size) => css106`
16439
+ padding-inline-start: ${size === "sm" ? "var(--spacing-xl)" : "var(--spacing-2xl)"};
16440
+ `;
16441
+ var SwitchTextAlignmentRight = (size) => css106`
16442
+ padding-inline-end: ${size === "sm" ? "var(--spacing-xl)" : "var(--spacing-2xl)"};
16443
+ `;
16444
+ var SwitchText = css106`
16418
16445
  color: var(--gray-500);
16419
16446
  font-size: var(--fs-sm);
16420
- padding-inline: ${size === "sm" ? "var(--spacing-xl)" : "var(--spacing-2xl)"} 0;
16447
+ `;
16448
+ var SwitchInputContainerAlignmentLeft = css106`
16449
+ flex-direction: row;
16450
+ `;
16451
+ var SwitchInputContainerAlignmentRight = css106`
16452
+ flex-direction: row-reverse;
16421
16453
  `;
16422
16454
 
16423
16455
  // src/components/Switch/Switch.tsx
16424
16456
  import { Fragment as Fragment19, jsx as jsx139, jsxs as jsxs94 } from "@emotion/react/jsx-runtime";
16425
16457
  var Switch = forwardRef29(
16426
- ({ label, infoText, toggleText, children, switchSize = "base", ...inputProps }, ref) => {
16458
+ ({
16459
+ label,
16460
+ infoText,
16461
+ toggleText,
16462
+ children,
16463
+ switchSize = "base",
16464
+ alignment = "left",
16465
+ ...inputProps
16466
+ }, ref) => {
16427
16467
  let additionalText = infoText;
16468
+ const { SwitchInputContainerAlignmentStyles, SwitchInputCheckedDirection, SwitchInputLabelAlignment } = useMemo10(() => {
16469
+ if (alignment === "left") {
16470
+ return {
16471
+ SwitchInputContainerAlignmentStyles: SwitchInputContainerAlignmentLeft,
16472
+ SwitchInputCheckedDirection: SwitchInputCheckedDirectionLeft,
16473
+ SwitchInputLabelAlignment: SwitchInputLabelAlignmentLeft(switchSize)
16474
+ };
16475
+ }
16476
+ return {
16477
+ SwitchInputContainerAlignmentStyles: SwitchInputContainerAlignmentRight,
16478
+ SwitchInputCheckedDirection: SwitchInputCheckedDirectionRight,
16479
+ SwitchInputLabelAlignment: SwitchInputLabelAlignmentRight(switchSize)
16480
+ };
16481
+ }, [alignment, switchSize]);
16428
16482
  if (infoText && toggleText) {
16429
16483
  additionalText = inputProps.checked ? toggleText : infoText;
16430
16484
  }
@@ -16432,14 +16486,36 @@ var Switch = forwardRef29(
16432
16486
  /* @__PURE__ */ jsxs94(
16433
16487
  "label",
16434
16488
  {
16435
- css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0],
16489
+ css: [
16490
+ SwitchInputContainer,
16491
+ SwitchInputContainerAlignmentStyles,
16492
+ SwitchInputCheckedDirection,
16493
+ inputProps.disabled ? SwitchInputDisabled : void 0
16494
+ ],
16436
16495
  children: [
16437
- /* @__PURE__ */ jsx139("input", { type: "checkbox", css: SwitchInput(switchSize), ...inputProps, ref }),
16438
- /* @__PURE__ */ jsx139("span", { css: SwitchInputLabel(switchSize), children: label })
16496
+ /* @__PURE__ */ jsx139(
16497
+ "input",
16498
+ {
16499
+ type: "checkbox",
16500
+ css: [SwitchInput(switchSize), SwitchInputCheckedDirection],
16501
+ ...inputProps,
16502
+ ref
16503
+ }
16504
+ ),
16505
+ /* @__PURE__ */ jsx139("span", { css: [SwitchInputLabel(switchSize), SwitchInputLabelAlignment], children: label })
16439
16506
  ]
16440
16507
  }
16441
16508
  ),
16442
- additionalText ? /* @__PURE__ */ jsx139("p", { css: SwitchText(switchSize), children: additionalText }) : null,
16509
+ additionalText ? /* @__PURE__ */ jsx139(
16510
+ "p",
16511
+ {
16512
+ css: [
16513
+ SwitchText,
16514
+ alignment === "left" ? SwitchTextAlignmentLeft(switchSize) : SwitchTextAlignmentRight(switchSize)
16515
+ ],
16516
+ children: additionalText
16517
+ }
16518
+ ) : null,
16443
16519
  children
16444
16520
  ] });
16445
16521
  }
@@ -16457,7 +16533,6 @@ var table = ({ cellPadding = "var(--spacing-sm)" }) => css107`
16457
16533
  th,
16458
16534
  td {
16459
16535
  padding: ${cellPadding};
16460
- vertical-align: top;
16461
16536
  }
16462
16537
 
16463
16538
  thead tr {
@@ -16474,7 +16549,6 @@ var tableHead = css107`
16474
16549
  `;
16475
16550
  var tableRow = css107`
16476
16551
  border-bottom: 1px solid var(--gray-200);
16477
- vertical-align: top;
16478
16552
  font-size: var(--fs-sm);
16479
16553
  `;
16480
16554
  var tableCellHead = css107`
@@ -16554,7 +16628,7 @@ import {
16554
16628
  TabProvider as AriakitTabProvider,
16555
16629
  useTabStore as useAriakitTabStore
16556
16630
  } from "@ariakit/react";
16557
- import { useCallback as useCallback13, useMemo as useMemo10 } from "react";
16631
+ import { useCallback as useCallback13, useMemo as useMemo11 } from "react";
16558
16632
 
16559
16633
  // src/components/Tabs/Tabs.styles.ts
16560
16634
  import { css as css108 } from "@emotion/react";
@@ -16598,7 +16672,7 @@ var Tabs = ({
16598
16672
  manual,
16599
16673
  ...props
16600
16674
  }) => {
16601
- const selected = useMemo10(() => {
16675
+ const selected = useMemo11(() => {
16602
16676
  if (selectedId) return selectedId;
16603
16677
  return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
16604
16678
  }, [selectedId, useHashForState]);
@@ -16961,6 +17035,7 @@ export {
16961
17035
  fadeInTop,
16962
17036
  fadeOutBottom,
16963
17037
  fullWidthScreenIcon,
17038
+ getButtonSize,
16964
17039
  getComboBoxSelectedSelectableGroups,
16965
17040
  getDrawerAttributes,
16966
17041
  getFormattedShortcut,