@uniformdev/design-system 20.32.0 → 20.32.1-alpha.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1466,6 +1466,7 @@ __export(src_exports, {
1466
1466
  PageHeaderSection: () => PageHeaderSection,
1467
1467
  Pagination: () => Pagination,
1468
1468
  Paragraph: () => Paragraph,
1469
+ ParameterActionButton: () => ParameterActionButton,
1469
1470
  ParameterDrawerHeader: () => ParameterDrawerHeader,
1470
1471
  ParameterGroup: () => ParameterGroup,
1471
1472
  ParameterImage: () => ParameterImage,
@@ -1537,6 +1538,7 @@ __export(src_exports, {
1537
1538
  VerticalRhythm: () => VerticalRhythm,
1538
1539
  WarningMessage: () => WarningMessage,
1539
1540
  accessibleHidden: () => accessibleHidden,
1541
+ actionBarVisibilityStyles: () => actionBarVisibilityStyles,
1540
1542
  addPathSegmentToPathname: () => addPathSegmentToPathname,
1541
1543
  borderTopIcon: () => borderTopIcon,
1542
1544
  breakpoints: () => breakpoints,
@@ -6504,15 +6506,15 @@ function InputCreatableComboBox(props) {
6504
6506
  }
6505
6507
  );
6506
6508
  }
6507
- function inputComboBoxStyles(baseStyles) {
6509
+ function inputComboBoxStyles(baseStyles2) {
6508
6510
  return {
6509
- ...baseStyles,
6511
+ ...baseStyles2,
6510
6512
  singleValue: (base, sProps) => {
6511
6513
  var _a;
6512
6514
  return {
6513
6515
  ...base,
6514
6516
  color: "var(--typography-base)",
6515
- ...(_a = baseStyles == null ? void 0 : baseStyles.singleValue) == null ? void 0 : _a.call(baseStyles, base, sProps)
6517
+ ...(_a = baseStyles2 == null ? void 0 : baseStyles2.singleValue) == null ? void 0 : _a.call(baseStyles2, base, sProps)
6516
6518
  };
6517
6519
  },
6518
6520
  valueContainer: (base, sProps) => {
@@ -6521,7 +6523,7 @@ function inputComboBoxStyles(baseStyles) {
6521
6523
  ...base,
6522
6524
  padding: "12px var(--spacing-base) 12px var(--spacing-sm)",
6523
6525
  gap: "2px",
6524
- ...(_a = baseStyles == null ? void 0 : baseStyles.valueContainer) == null ? void 0 : _a.call(baseStyles, base, sProps)
6526
+ ...(_a = baseStyles2 == null ? void 0 : baseStyles2.valueContainer) == null ? void 0 : _a.call(baseStyles2, base, sProps)
6525
6527
  };
6526
6528
  },
6527
6529
  input: (base, sProps) => {
@@ -6534,7 +6536,7 @@ function inputComboBoxStyles(baseStyles) {
6534
6536
  "& > input": {
6535
6537
  boxShadow: "none !important"
6536
6538
  },
6537
- ...(_a = baseStyles == null ? void 0 : baseStyles.input) == null ? void 0 : _a.call(baseStyles, base, sProps)
6539
+ ...(_a = baseStyles2 == null ? void 0 : baseStyles2.input) == null ? void 0 : _a.call(baseStyles2, base, sProps)
6538
6540
  };
6539
6541
  },
6540
6542
  menu: (base, state) => {
@@ -6542,7 +6544,7 @@ function inputComboBoxStyles(baseStyles) {
6542
6544
  return {
6543
6545
  ...base,
6544
6546
  zIndex: "var(--z-20)",
6545
- ...(_a = baseStyles == null ? void 0 : baseStyles.menu) == null ? void 0 : _a.call(baseStyles, base, state)
6547
+ ...(_a = baseStyles2 == null ? void 0 : baseStyles2.menu) == null ? void 0 : _a.call(baseStyles2, base, state)
6546
6548
  };
6547
6549
  },
6548
6550
  control: (base, state) => {
@@ -6574,7 +6576,7 @@ function inputComboBoxStyles(baseStyles) {
6574
6576
  },
6575
6577
  ...state.isFocused ? { borderColor: "var(--gray-300)" } : {}
6576
6578
  },
6577
- ...(_a = baseStyles == null ? void 0 : baseStyles.control) == null ? void 0 : _a.call(baseStyles, base, state)
6579
+ ...(_a = baseStyles2 == null ? void 0 : baseStyles2.control) == null ? void 0 : _a.call(baseStyles2, base, state)
6578
6580
  };
6579
6581
  },
6580
6582
  indicatorsContainer: (base, state) => {
@@ -6594,14 +6596,14 @@ function inputComboBoxStyles(baseStyles) {
6594
6596
  "& svg": {
6595
6597
  display: "none"
6596
6598
  },
6597
- ...(_a = baseStyles == null ? void 0 : baseStyles.indicatorsContainer) == null ? void 0 : _a.call(baseStyles, base, state)
6599
+ ...(_a = baseStyles2 == null ? void 0 : baseStyles2.indicatorsContainer) == null ? void 0 : _a.call(baseStyles2, base, state)
6598
6600
  };
6599
6601
  },
6600
6602
  indicatorSeparator: (base, state) => {
6601
6603
  var _a;
6602
6604
  return {
6603
6605
  display: "none",
6604
- ...(_a = baseStyles == null ? void 0 : baseStyles.indicatorSeparator) == null ? void 0 : _a.call(baseStyles, base, state)
6606
+ ...(_a = baseStyles2 == null ? void 0 : baseStyles2.indicatorSeparator) == null ? void 0 : _a.call(baseStyles2, base, state)
6605
6607
  };
6606
6608
  },
6607
6609
  option: (base, state) => {
@@ -6612,7 +6614,7 @@ function inputComboBoxStyles(baseStyles) {
6612
6614
  color: state.isDisabled ? "var(--gray-300)" : "var(--gray-700)",
6613
6615
  paddingLeft: isIndented ? "var(--spacing-md)" : "",
6614
6616
  backgroundColor: state.isDisabled ? "transparent" : state.isSelected ? "var(--gray-200)" : state.isFocused ? "var(--gray-100)" : "transparent",
6615
- ...(_a = baseStyles == null ? void 0 : baseStyles.option) == null ? void 0 : _a.call(baseStyles, base, state)
6617
+ ...(_a = baseStyles2 == null ? void 0 : baseStyles2.option) == null ? void 0 : _a.call(baseStyles2, base, state)
6616
6618
  };
6617
6619
  },
6618
6620
  multiValue: (styles) => {
@@ -7384,7 +7386,7 @@ var ButtonWithMenuContainer = import_react56.css`
7384
7386
  color: var(--white);
7385
7387
  display: inline-grid;
7386
7388
  position: relative;
7387
- grid-template-columns: 1fr minmax(var(--icon-padding), 2.44rem);
7389
+ grid-template-columns: 1fr minmax(calc(var(--svg-size) * 2), 2.44rem);
7388
7390
  min-height: 24px;
7389
7391
  max-width: max-content;
7390
7392
  transition:
@@ -12191,7 +12193,7 @@ var LoadingOverlay = ({
12191
12193
  var LoadingAnimation = ({
12192
12194
  label,
12193
12195
  width,
12194
- css: css110,
12196
+ css: css111,
12195
12197
  isPaused
12196
12198
  }) => {
12197
12199
  return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
@@ -12202,7 +12204,7 @@ var LoadingAnimation = ({
12202
12204
  width: typeof width === "number" ? `${width}px` : width,
12203
12205
  height: typeof width === "number" ? `${width}px` : width
12204
12206
  },
12205
- css: [loaderAnimationContainer, css110],
12207
+ css: [loaderAnimationContainer, css111],
12206
12208
  className: `loader-container${isPaused ? " paused" : ""}`,
12207
12209
  children: [
12208
12210
  /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "bottom-cubes", children: [
@@ -13395,25 +13397,135 @@ var LabelLeadingIcon = ({
13395
13397
  ) });
13396
13398
  };
13397
13399
 
13400
+ // src/components/ParameterInputs/ParameterActionButton.tsx
13401
+ init_emotion_jsx_shim();
13402
+ var import_react132 = __toESM(require("react"));
13403
+
13404
+ // src/components/ParameterInputs/styles/ParameterActionButton.styles.ts
13405
+ init_emotion_jsx_shim();
13406
+ var import_react131 = require("@emotion/react");
13407
+ var baseStyles = import_react131.css`
13408
+ --hover-color: var(--accent-dark-hover);
13409
+ --active-color: var(--accent-dark-active);
13410
+ border: 1px solid transparent;
13411
+ border-radius: var(--rounded-base);
13412
+ display: flex;
13413
+ align-items: center;
13414
+ justify-content: center;
13415
+ max-width: fit-content;
13416
+ padding: 0.125rem;
13417
+ transition:
13418
+ border-color var(--duration-fast) var(--timing-ease-out),
13419
+ background var(--duration-fast) var(--timing-ease-out),
13420
+ color var(--duration-fast) var(--timing-ease-out),
13421
+ box-shadow var(--duration-fast) var(--timing-ease-out);
13422
+ min-height: 1.125rem;
13423
+ min-width: 1.125rem;
13424
+ font-size: 0.75rem;
13425
+
13426
+ &:disabled
13427
+ &:[aria-disabled='true'] {
13428
+ opacity: 0.5;
13429
+ pointer-events: none;
13430
+ cursor: not-allowed;
13431
+ }
13432
+ `;
13433
+ var solidHoverStyles = import_react131.css`
13434
+ --text-color: var(--typography-inverted);
13435
+ &:hover,
13436
+ &:focus,
13437
+ &:focus-within {
13438
+ border-color: var(--hover-color);
13439
+ background: var(--hover-color);
13440
+ color: var(--text-color);
13441
+ }
13442
+
13443
+ &:active,
13444
+ &[aria-pressed='true'] {
13445
+ border-color: var(--active-color);
13446
+ background: var(--active-color);
13447
+ color: var(--text-color);
13448
+ }
13449
+ `;
13450
+ var outlineHoverStyles = import_react131.css`
13451
+ --text-color: var(--typography-light);
13452
+ &:hover:not([aria-disabled='true']),
13453
+ &:focus:not([aria-disabled='true']),
13454
+ &:focus-within:not([aria-disabled='true']) {
13455
+ background: var(--gray-50);
13456
+ border-color: var(--hover-color);
13457
+ }
13458
+ &:active:not([aria-disabled='true']),
13459
+ &[aria-pressed='true']:not([aria-disabled='true']) {
13460
+ border-color: var(--active-color);
13461
+ }
13462
+ `;
13463
+ var invertedStyles = import_react131.css`
13464
+ --text-color: var(--typography-inverted);
13465
+ box-shadow: inset 0 0 0 1px transparent;
13466
+ &:hover,
13467
+ &:focus,
13468
+ &:focus-within {
13469
+ box-shadow: inset 0 0 0 1px var(--text-color);
13470
+ color: var(--text-color);
13471
+ }
13472
+ &:active,
13473
+ &[aria-pressed='true'] {
13474
+ background: var(--active-color);
13475
+ border-color: var(--active-color);
13476
+ }
13477
+ `;
13478
+
13479
+ // src/components/ParameterInputs/ParameterActionButton.tsx
13480
+ var import_jsx_runtime115 = require("@emotion/react/jsx-runtime");
13481
+ var ParameterActionButton = ({
13482
+ children,
13483
+ themeType,
13484
+ tooltip,
13485
+ renderAs = "button",
13486
+ ...props
13487
+ }) => {
13488
+ const shouldApplyInverted = themeType === "filled" && "inverted" in props && props.inverted;
13489
+ const ComponentWrapper = renderAs === "div" ? "div" : "button";
13490
+ const buttonElement = /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
13491
+ ComponentWrapper,
13492
+ {
13493
+ css: [
13494
+ baseStyles,
13495
+ themeType === "filled" ? solidHoverStyles : outlineHoverStyles,
13496
+ shouldApplyInverted ? invertedStyles : null
13497
+ ],
13498
+ ...renderAs === "button" && { type: "button" },
13499
+ ...shouldApplyInverted && { "data-inverted": true },
13500
+ ...props,
13501
+ children
13502
+ }
13503
+ );
13504
+ if (tooltip && (typeof tooltip === "string" || import_react132.default.isValidElement(tooltip))) {
13505
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Tooltip, { title: tooltip, children: buttonElement });
13506
+ }
13507
+ return buttonElement;
13508
+ };
13509
+
13398
13510
  // src/components/ParameterInputs/ParameterDrawerHeader.tsx
13399
13511
  init_emotion_jsx_shim();
13400
13512
 
13401
13513
  // src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
13402
13514
  init_emotion_jsx_shim();
13403
- var import_react131 = require("@emotion/react");
13404
- var ParameterDrawerHeaderContainer = import_react131.css`
13515
+ var import_react133 = require("@emotion/react");
13516
+ var ParameterDrawerHeaderContainer = import_react133.css`
13405
13517
  align-items: center;
13406
13518
  display: flex;
13407
13519
  gap: var(--spacing-base);
13408
13520
  justify-content: space-between;
13409
13521
  margin-bottom: var(--spacing-sm);
13410
13522
  `;
13411
- var ParameterDrawerHeaderTitleGroup = import_react131.css`
13523
+ var ParameterDrawerHeaderTitleGroup = import_react133.css`
13412
13524
  align-items: center;
13413
13525
  display: flex;
13414
13526
  gap: var(--spacing-sm);
13415
13527
  `;
13416
- var ParameterDrawerHeaderTitle = import_react131.css`
13528
+ var ParameterDrawerHeaderTitle = import_react133.css`
13417
13529
  text-overflow: ellipsis;
13418
13530
  white-space: nowrap;
13419
13531
  overflow: hidden;
@@ -13421,12 +13533,12 @@ var ParameterDrawerHeaderTitle = import_react131.css`
13421
13533
  `;
13422
13534
 
13423
13535
  // src/components/ParameterInputs/ParameterDrawerHeader.tsx
13424
- var import_jsx_runtime115 = require("@emotion/react/jsx-runtime");
13536
+ var import_jsx_runtime116 = require("@emotion/react/jsx-runtime");
13425
13537
  var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
13426
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { css: ParameterDrawerHeaderContainer, children: [
13427
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("header", { css: ParameterDrawerHeaderTitleGroup, children: [
13538
+ return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { css: ParameterDrawerHeaderContainer, children: [
13539
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("header", { css: ParameterDrawerHeaderTitleGroup, children: [
13428
13540
  iconBeforeTitle,
13429
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Heading2, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
13541
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Heading2, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
13430
13542
  ] }),
13431
13543
  children
13432
13544
  ] });
@@ -13434,12 +13546,12 @@ var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
13434
13546
 
13435
13547
  // src/components/ParameterInputs/ParameterGroup.tsx
13436
13548
  init_emotion_jsx_shim();
13437
- var import_react133 = require("react");
13549
+ var import_react135 = require("react");
13438
13550
 
13439
13551
  // src/components/ParameterInputs/styles/ParameterGroup.styles.ts
13440
13552
  init_emotion_jsx_shim();
13441
- var import_react132 = require("@emotion/react");
13442
- var fieldsetStyles = import_react132.css`
13553
+ var import_react134 = require("@emotion/react");
13554
+ var fieldsetStyles = import_react134.css`
13443
13555
  &:disabled,
13444
13556
  [readonly] {
13445
13557
  pointer-events: none;
@@ -13450,19 +13562,19 @@ var fieldsetStyles = import_react132.css`
13450
13562
  }
13451
13563
  }
13452
13564
  `;
13453
- var fieldsetLegend2 = import_react132.css`
13565
+ var fieldsetLegend2 = import_react134.css`
13454
13566
  display: block;
13455
13567
  font-weight: var(--fw-medium);
13456
- margin-bottom: var(--spacing-sm);
13568
+ margin-bottom: var(--spacing-base);
13457
13569
  width: 100%;
13458
13570
  `;
13459
13571
 
13460
13572
  // src/components/ParameterInputs/ParameterGroup.tsx
13461
- var import_jsx_runtime116 = require("@emotion/react/jsx-runtime");
13462
- var ParameterGroup = (0, import_react133.forwardRef)(
13573
+ var import_jsx_runtime117 = require("@emotion/react/jsx-runtime");
13574
+ var ParameterGroup = (0, import_react135.forwardRef)(
13463
13575
  ({ legend, isDisabled, children, ...props }, ref) => {
13464
- return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
13465
- /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("legend", { css: fieldsetLegend2, children: legend }),
13576
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
13577
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("legend", { css: fieldsetLegend2, children: legend }),
13466
13578
  children
13467
13579
  ] });
13468
13580
  }
@@ -13470,24 +13582,24 @@ var ParameterGroup = (0, import_react133.forwardRef)(
13470
13582
 
13471
13583
  // src/components/ParameterInputs/ParameterImage.tsx
13472
13584
  init_emotion_jsx_shim();
13473
- var import_react141 = require("react");
13585
+ var import_react143 = require("react");
13474
13586
 
13475
13587
  // src/components/ParameterInputs/ParameterImagePreview.tsx
13476
13588
  init_emotion_jsx_shim();
13477
- var import_react135 = require("react");
13589
+ var import_react137 = require("react");
13478
13590
  var import_react_dom2 = require("react-dom");
13479
13591
 
13480
13592
  // src/components/ParameterInputs/styles/ParameterImage.styles.ts
13481
13593
  init_emotion_jsx_shim();
13482
- var import_react134 = require("@emotion/react");
13483
- var previewWrapper = import_react134.css`
13594
+ var import_react136 = require("@emotion/react");
13595
+ var previewWrapper = import_react136.css`
13484
13596
  margin-top: var(--spacing-xs);
13485
13597
  background: var(--gray-50);
13486
13598
  padding: var(--spacing-sm);
13487
13599
  border: solid 1px var(--gray-300);
13488
13600
  border-radius: var(--rounded-sm);
13489
13601
  `;
13490
- var previewLink = import_react134.css`
13602
+ var previewLink = import_react136.css`
13491
13603
  display: block;
13492
13604
  width: 100%;
13493
13605
 
@@ -13495,7 +13607,7 @@ var previewLink = import_react134.css`
13495
13607
  max-height: 9rem;
13496
13608
  }
13497
13609
  `;
13498
- var previewModalWrapper = import_react134.css`
13610
+ var previewModalWrapper = import_react136.css`
13499
13611
  background: var(--gray-50);
13500
13612
  display: flex;
13501
13613
  height: 100%;
@@ -13504,7 +13616,7 @@ var previewModalWrapper = import_react134.css`
13504
13616
  border: solid 1px var(--gray-300);
13505
13617
  border-radius: var(--rounded-sm);
13506
13618
  `;
13507
- var previewModalImage = import_react134.css`
13619
+ var previewModalImage = import_react136.css`
13508
13620
  display: flex;
13509
13621
  height: 100%;
13510
13622
  width: 100%;
@@ -13516,32 +13628,32 @@ var previewModalImage = import_react134.css`
13516
13628
  `;
13517
13629
 
13518
13630
  // src/components/ParameterInputs/ParameterImagePreview.tsx
13519
- var import_jsx_runtime117 = require("@emotion/react/jsx-runtime");
13631
+ var import_jsx_runtime118 = require("@emotion/react/jsx-runtime");
13520
13632
  function ParameterImagePreview({ imageSrc }) {
13521
- const [showModal, setShowModal] = (0, import_react135.useState)(false);
13522
- return imageSrc ? /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { css: previewWrapper, children: [
13523
- /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
13524
- /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
13633
+ const [showModal, setShowModal] = (0, import_react137.useState)(false);
13634
+ return imageSrc ? /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { css: previewWrapper, children: [
13635
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
13636
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
13525
13637
  "button",
13526
13638
  {
13527
13639
  css: previewLink,
13528
13640
  onClick: () => {
13529
13641
  setShowModal(true);
13530
13642
  },
13531
- children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Image, { src: imageSrc, "data-testid": "parameter-image-preview" })
13643
+ children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Image, { src: imageSrc, "data-testid": "parameter-image-preview" })
13532
13644
  }
13533
13645
  )
13534
13646
  ] }) : null;
13535
13647
  }
13536
13648
  var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
13537
- return open ? /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_jsx_runtime117.Fragment, { children: (0, import_react_dom2.createPortal)(
13538
- /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
13649
+ return open ? /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_jsx_runtime118.Fragment, { children: (0, import_react_dom2.createPortal)(
13650
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
13539
13651
  Modal,
13540
13652
  {
13541
13653
  header: "Image Preview",
13542
13654
  onRequestClose,
13543
- buttonGroup: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
13544
- children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("div", { css: previewModalWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
13655
+ buttonGroup: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
13656
+ children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { css: previewModalWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
13545
13657
  }
13546
13658
  ),
13547
13659
  document.body
@@ -13550,16 +13662,32 @@ var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
13550
13662
 
13551
13663
  // src/components/ParameterInputs/ParameterShell.tsx
13552
13664
  init_emotion_jsx_shim();
13553
- var import_react139 = require("@emotion/react");
13554
- var import_react140 = require("react");
13665
+ var import_react141 = require("@emotion/react");
13666
+ var import_react142 = require("react");
13555
13667
 
13556
13668
  // src/components/ParameterInputs/ParameterLabel.tsx
13557
13669
  init_emotion_jsx_shim();
13558
13670
 
13559
13671
  // src/components/ParameterInputs/styles/ParameterInput.styles.ts
13560
13672
  init_emotion_jsx_shim();
13561
- var import_react136 = require("@emotion/react");
13562
- var inputContainer2 = import_react136.css`
13673
+ var import_react138 = require("@emotion/react");
13674
+ var actionBarVisibilityStyles = import_react138.css`
13675
+ [data-action-bar] {
13676
+ opacity: 1;
13677
+ transform: translateX(0);
13678
+ transition:
13679
+ opacity var(--duration-fast) var(--timing-ease-out),
13680
+ transform var(--duration-fast) var(--timing-ease-out);
13681
+ }
13682
+ `;
13683
+ var actionBarVisibilityHiddenStyles = import_react138.css`
13684
+ opacity: 0;
13685
+ transform: translateX(1rem);
13686
+ transition:
13687
+ opacity var(--duration-fast) var(--timing-ease-out),
13688
+ transform var(--duration-fast) var(--timing-ease-out);
13689
+ `;
13690
+ var inputContainer2 = import_react138.css`
13563
13691
  position: relative;
13564
13692
  scroll-margin: var(--spacing-2xl);
13565
13693
 
@@ -13570,16 +13698,17 @@ var inputContainer2 = import_react136.css`
13570
13698
  opacity: var(--opacity-100);
13571
13699
  translate: 0 0;
13572
13700
  }
13701
+ ${actionBarVisibilityStyles}
13573
13702
  }
13574
13703
  `;
13575
- var labelText2 = import_react136.css`
13704
+ var labelText2 = import_react138.css`
13576
13705
  align-items: center;
13577
13706
  display: flex;
13578
13707
  gap: var(--spacing-xs);
13579
13708
  font-weight: var(--fw-regular);
13580
13709
  margin: 0 0 var(--spacing-xs);
13581
13710
  `;
13582
- var input3 = import_react136.css`
13711
+ var input3 = import_react138.css`
13583
13712
  display: block;
13584
13713
  appearance: none;
13585
13714
  box-sizing: border-box;
@@ -13627,18 +13756,18 @@ var input3 = import_react136.css`
13627
13756
  color: var(--gray-400);
13628
13757
  }
13629
13758
  `;
13630
- var selectInput = import_react136.css`
13759
+ var selectInput = import_react138.css`
13631
13760
  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='M6.34317 7.75732L4.92896 9.17154L12 16.2426L19.0711 9.17157L17.6569 7.75735L12 13.4142L6.34317 7.75732Z' fill='currentColor' /%3E%3C/svg%3E");
13632
13761
  background-position: right var(--spacing-sm) center;
13633
13762
  background-repeat: no-repeat;
13634
13763
  background-size: 1rem;
13635
13764
  padding-right: var(--spacing-xl);
13636
13765
  `;
13637
- var inputWrapper = import_react136.css`
13766
+ var inputWrapper = import_react138.css`
13638
13767
  display: flex; // used to correct overflow with chrome textarea
13639
13768
  position: relative;
13640
13769
  `;
13641
- var inputIcon2 = import_react136.css`
13770
+ var inputIcon2 = import_react138.css`
13642
13771
  align-items: center;
13643
13772
  background: var(--white);
13644
13773
  border-radius: var(--rounded-md) 0 0 var(--rounded-md);
@@ -13654,7 +13783,7 @@ var inputIcon2 = import_react136.css`
13654
13783
  width: var(--spacing-lg);
13655
13784
  z-index: var(--z-10);
13656
13785
  `;
13657
- var inputToggleLabel2 = import_react136.css`
13786
+ var inputToggleLabel2 = import_react138.css`
13658
13787
  --inline-label-color: var(--typography-base);
13659
13788
  align-items: center;
13660
13789
  cursor: pointer;
@@ -13669,7 +13798,7 @@ var inputToggleLabel2 = import_react136.css`
13669
13798
  --inline-label-color: var(--gray-400);
13670
13799
  }
13671
13800
  `;
13672
- var toggleInput2 = import_react136.css`
13801
+ var toggleInput2 = import_react138.css`
13673
13802
  appearance: none;
13674
13803
  border: 1px solid var(--gray-200);
13675
13804
  background: var(--white);
@@ -13723,7 +13852,7 @@ var toggleInput2 = import_react136.css`
13723
13852
  border-color: var(--gray-300);
13724
13853
  }
13725
13854
  `;
13726
- var inlineLabel2 = import_react136.css`
13855
+ var inlineLabel2 = import_react138.css`
13727
13856
  color: var(--inline-label-color);
13728
13857
  padding-left: var(--spacing-md);
13729
13858
  font-size: var(--fs-sm);
@@ -13740,7 +13869,7 @@ var inlineLabel2 = import_react136.css`
13740
13869
  }
13741
13870
  }
13742
13871
  `;
13743
- var inputMenu = import_react136.css`
13872
+ var inputMenu = import_react138.css`
13744
13873
  background: none;
13745
13874
  border: none;
13746
13875
  padding: var(--spacing-2xs);
@@ -13748,12 +13877,15 @@ var inputMenu = import_react136.css`
13748
13877
  top: calc(var(--spacing-md) * -1.2);
13749
13878
  right: 0;
13750
13879
  `;
13751
- var inputActionItems = import_react136.css`
13880
+ var inputActionItems = import_react138.css`
13752
13881
  display: flex;
13882
+ ${actionBarVisibilityHiddenStyles}
13753
13883
  `;
13754
- var inputMenuHover = import_react136.css`
13884
+ var inputMenuHover = import_react138.css`
13755
13885
  opacity: var(--opacity-50);
13756
13886
  transition: background-color var(--duration-fast) var(--timing-ease-out);
13887
+ margin-top: 0.25rem;
13888
+ ${actionBarVisibilityHiddenStyles}
13757
13889
 
13758
13890
  // css trick to style the input like a hover or active state when the menu button is active or hovered
13759
13891
  &:hover,
@@ -13761,11 +13893,11 @@ var inputMenuHover = import_react136.css`
13761
13893
  background-color: var(--gray-200);
13762
13894
  }
13763
13895
  `;
13764
- var textarea2 = import_react136.css`
13896
+ var textarea2 = import_react138.css`
13765
13897
  resize: vertical;
13766
13898
  min-height: 2rem;
13767
13899
  `;
13768
- var dataConnectButton = import_react136.css`
13900
+ var dataConnectButton = import_react138.css`
13769
13901
  align-items: center;
13770
13902
  appearance: none;
13771
13903
  box-sizing: border-box;
@@ -13801,7 +13933,7 @@ var dataConnectButton = import_react136.css`
13801
13933
  pointer-events: none;
13802
13934
  }
13803
13935
  `;
13804
- var linkParameterBtn = import_react136.css`
13936
+ var linkParameterBtn = import_react138.css`
13805
13937
  border-radius: var(--rounded-base);
13806
13938
  background: transparent;
13807
13939
  border: none;
@@ -13810,7 +13942,7 @@ var linkParameterBtn = import_react136.css`
13810
13942
  font-size: var(--fs-sm);
13811
13943
  line-height: 1;
13812
13944
  `;
13813
- var linkParameterControls = import_react136.css`
13945
+ var linkParameterControls = import_react138.css`
13814
13946
  position: absolute;
13815
13947
  inset: 0 0 0 auto;
13816
13948
  padding: 0 var(--spacing-base);
@@ -13819,7 +13951,7 @@ var linkParameterControls = import_react136.css`
13819
13951
  justify-content: center;
13820
13952
  gap: var(--spacing-base);
13821
13953
  `;
13822
- var linkParameterInput = (withExternalLinkIcon) => import_react136.css`
13954
+ var linkParameterInput = (withExternalLinkIcon) => import_react138.css`
13823
13955
  padding-right: calc(
13824
13956
  ${withExternalLinkIcon ? "calc(var(--spacing-lg) * 2 + var(--spacing-xs))" : "var(--spacing-xl)"} +
13825
13957
  var(--spacing-base)
@@ -13832,7 +13964,7 @@ var linkParameterInput = (withExternalLinkIcon) => import_react136.css`
13832
13964
  }
13833
13965
  }
13834
13966
  `;
13835
- var linkParameterIcon = import_react136.css`
13967
+ var linkParameterIcon = import_react138.css`
13836
13968
  align-items: center;
13837
13969
  color: var(--brand-secondary-3);
13838
13970
  display: flex;
@@ -13847,29 +13979,30 @@ var linkParameterIcon = import_react136.css`
13847
13979
  `;
13848
13980
 
13849
13981
  // src/components/ParameterInputs/ParameterLabel.tsx
13850
- var import_jsx_runtime118 = require("@emotion/react/jsx-runtime");
13982
+ var import_jsx_runtime119 = require("@emotion/react/jsx-runtime");
13851
13983
  var ParameterLabel = ({ id, asSpan, children, testId, ...props }) => {
13852
- return !asSpan ? /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("label", { ...props, htmlFor: id, css: labelText2, "data-testid": testId, children }) : /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("span", { "aria-labelledby": id, css: labelText2, children });
13984
+ return !asSpan ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("label", { ...props, htmlFor: id, css: labelText2, "data-testid": testId, children }) : /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("span", { "aria-labelledby": id, css: labelText2, children });
13853
13985
  };
13854
13986
 
13855
13987
  // src/components/ParameterInputs/ParameterMenuButton.tsx
13856
13988
  init_emotion_jsx_shim();
13857
- var import_react137 = require("react");
13858
- var import_jsx_runtime119 = require("@emotion/react/jsx-runtime");
13859
- var ParameterMenuButton = (0, import_react137.forwardRef)(
13989
+ var import_react139 = require("react");
13990
+ var import_jsx_runtime120 = require("@emotion/react/jsx-runtime");
13991
+ var ParameterMenuButton = (0, import_react139.forwardRef)(
13860
13992
  ({ label, children }, ref) => {
13861
- return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
13993
+ return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
13862
13994
  Menu,
13863
13995
  {
13864
- menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
13996
+ menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
13865
13997
  "button",
13866
13998
  {
13999
+ "data-action-bar": true,
13867
14000
  className: "parameter-menu",
13868
14001
  css: [inputMenu, inputMenuHover],
13869
14002
  type: "button",
13870
14003
  "aria-label": `${label} options`,
13871
14004
  ref,
13872
- children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
14005
+ children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
13873
14006
  }
13874
14007
  ),
13875
14008
  children
@@ -13880,14 +14013,14 @@ var ParameterMenuButton = (0, import_react137.forwardRef)(
13880
14013
 
13881
14014
  // src/components/ParameterInputs/styles/ParameterShell.styles.ts
13882
14015
  init_emotion_jsx_shim();
13883
- var import_react138 = require("@emotion/react");
13884
- var emptyParameterShell = import_react138.css`
14016
+ var import_react140 = require("@emotion/react");
14017
+ var emptyParameterShell = import_react140.css`
13885
14018
  border-radius: var(--rounded-sm);
13886
14019
  flex-grow: 1;
13887
14020
  position: relative;
13888
14021
  max-width: 100%;
13889
14022
  `;
13890
- var emptyParameterShellText = import_react138.css`
14023
+ var emptyParameterShellText = import_react140.css`
13891
14024
  background: var(--brand-secondary-6);
13892
14025
  border-radius: var(--rounded-sm);
13893
14026
  padding: var(--spacing-sm);
@@ -13895,7 +14028,7 @@ var emptyParameterShellText = import_react138.css`
13895
14028
  font-size: var(--fs-sm);
13896
14029
  margin: 0;
13897
14030
  `;
13898
- var overrideMarker = import_react138.css`
14031
+ var overrideMarker = import_react140.css`
13899
14032
  border-radius: var(--rounded-sm);
13900
14033
  border: 10px solid var(--gray-300);
13901
14034
  border-left-color: transparent;
@@ -13906,7 +14039,7 @@ var overrideMarker = import_react138.css`
13906
14039
  `;
13907
14040
 
13908
14041
  // src/components/ParameterInputs/ParameterShell.tsx
13909
- var import_jsx_runtime120 = require("@emotion/react/jsx-runtime");
14042
+ var import_jsx_runtime121 = require("@emotion/react/jsx-runtime");
13910
14043
  var extractParameterProps = (props) => {
13911
14044
  const {
13912
14045
  id,
@@ -13966,36 +14099,37 @@ var ParameterShell = ({
13966
14099
  isParameterGroup = false,
13967
14100
  ...props
13968
14101
  }) => {
13969
- const [manualErrorMessage, setManualErrorMessage] = (0, import_react140.useState)(void 0);
14102
+ const [manualErrorMessage, setManualErrorMessage] = (0, import_react142.useState)(void 0);
13970
14103
  const setErrorMessage = (message) => setManualErrorMessage(message);
13971
14104
  const errorMessaging = errorMessage || manualErrorMessage;
13972
- return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { css: inputContainer2, ...props, id, children: [
13973
- hiddenLabel || title ? null : /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(ParameterLabel, { id, css: labelText2, children: [
14105
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { css: inputContainer2, ...props, id, children: [
14106
+ hiddenLabel || title ? null : /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(ParameterLabel, { id, css: labelText2, children: [
13974
14107
  labelLeadingIcon != null ? labelLeadingIcon : null,
13975
14108
  label,
13976
14109
  labelTrailingIcon != null ? labelTrailingIcon : null
13977
14110
  ] }),
13978
- !title ? null : /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(ParameterLabel, { id, asSpan: true, testId: "parameter-label", children: [
14111
+ !title ? null : /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(ParameterLabel, { id, asSpan: true, testId: "parameter-label", children: [
13979
14112
  labelLeadingIcon != null ? labelLeadingIcon : null,
13980
14113
  title,
13981
14114
  labelTrailingIcon != null ? labelTrailingIcon : null
13982
14115
  ] }),
13983
- /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { css: inputWrapper, children: [
13984
- actionItems ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
14116
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { css: inputWrapper, children: [
14117
+ actionItems ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
13985
14118
  "div",
13986
14119
  {
14120
+ "data-action-bar": true,
13987
14121
  css: [
13988
14122
  inputMenu,
13989
14123
  inputActionItems,
13990
- menuItems ? import_react139.css`
14124
+ menuItems ? import_react141.css`
13991
14125
  right: var(--spacing-md);
13992
14126
  ` : void 0
13993
14127
  ],
13994
14128
  children: actionItems
13995
14129
  }
13996
14130
  ) : null,
13997
- menuItems ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
13998
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
14131
+ menuItems ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
14132
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
13999
14133
  ParameterShellContext.Provider,
14000
14134
  {
14001
14135
  value: {
@@ -14005,14 +14139,14 @@ var ParameterShell = ({
14005
14139
  errorMessage: errorMessaging,
14006
14140
  handleManuallySetErrorMessage: (message) => setErrorMessage(message)
14007
14141
  },
14008
- children: isParameterGroup ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { style: { flexGrow: 1 }, children }) : /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(ParameterShellPlaceholder, { children: [
14142
+ children: isParameterGroup ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { style: { flexGrow: 1 }, children }) : /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(ParameterShellPlaceholder, { children: [
14009
14143
  children,
14010
- hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
14144
+ hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
14011
14145
  ] })
14012
14146
  }
14013
14147
  )
14014
14148
  ] }),
14015
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
14149
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
14016
14150
  FieldMessage,
14017
14151
  {
14018
14152
  helperMessageTestId: captionTestId,
@@ -14026,27 +14160,27 @@ var ParameterShell = ({
14026
14160
  ] });
14027
14161
  };
14028
14162
  var ParameterShellPlaceholder = ({ children }) => {
14029
- return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { css: emptyParameterShell, children });
14163
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { css: emptyParameterShell, children });
14030
14164
  };
14031
- var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("span", { hidden: true, children: "reset overridden value to default" }) }) });
14165
+ var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("span", { hidden: true, children: "reset overridden value to default" }) }) });
14032
14166
 
14033
14167
  // src/components/ParameterInputs/ParameterImage.tsx
14034
- var import_jsx_runtime121 = require("@emotion/react/jsx-runtime");
14035
- var ParameterImage = (0, import_react141.forwardRef)(
14168
+ var import_jsx_runtime122 = require("@emotion/react/jsx-runtime");
14169
+ var ParameterImage = (0, import_react143.forwardRef)(
14036
14170
  ({ children, ...props }, ref) => {
14037
14171
  const { shellProps, innerProps } = extractParameterProps(props);
14038
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
14039
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(ParameterImageInner, { ref, ...innerProps }),
14172
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
14173
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(ParameterImageInner, { ref, ...innerProps }),
14040
14174
  children
14041
14175
  ] });
14042
14176
  }
14043
14177
  );
14044
- var ParameterImageInner = (0, import_react141.forwardRef)((props, ref) => {
14178
+ var ParameterImageInner = (0, import_react143.forwardRef)((props, ref) => {
14045
14179
  const { value } = props;
14046
14180
  const { id, label, hiddenLabel, errorMessage } = useParameterShell();
14047
- const deferredValue = (0, import_react141.useDeferredValue)(value);
14048
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(import_jsx_runtime121.Fragment, { children: [
14049
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
14181
+ const deferredValue = (0, import_react143.useDeferredValue)(value);
14182
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(import_jsx_runtime122.Fragment, { children: [
14183
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
14050
14184
  "input",
14051
14185
  {
14052
14186
  css: input3,
@@ -14058,22 +14192,22 @@ var ParameterImageInner = (0, import_react141.forwardRef)((props, ref) => {
14058
14192
  ...props
14059
14193
  }
14060
14194
  ),
14061
- errorMessage || props.disablePreview ? null : /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(ParameterImagePreview, { imageSrc: deferredValue })
14195
+ errorMessage || props.disablePreview ? null : /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(ParameterImagePreview, { imageSrc: deferredValue })
14062
14196
  ] });
14063
14197
  });
14064
14198
 
14065
14199
  // src/components/ParameterInputs/ParameterInput.tsx
14066
14200
  init_emotion_jsx_shim();
14067
- var import_react142 = require("react");
14068
- var import_jsx_runtime122 = require("@emotion/react/jsx-runtime");
14069
- var ParameterInput = (0, import_react142.forwardRef)((props, ref) => {
14201
+ var import_react144 = require("react");
14202
+ var import_jsx_runtime123 = require("@emotion/react/jsx-runtime");
14203
+ var ParameterInput = (0, import_react144.forwardRef)((props, ref) => {
14070
14204
  const { shellProps, innerProps } = extractParameterProps(props);
14071
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(ParameterInputInner, { ref, ...innerProps }) });
14205
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(ParameterInputInner, { ref, ...innerProps }) });
14072
14206
  });
14073
- var ParameterInputInner = (0, import_react142.forwardRef)(({ enableMouseWheel = false, ...props }, ref) => {
14207
+ var ParameterInputInner = (0, import_react144.forwardRef)(({ enableMouseWheel = false, ...props }, ref) => {
14074
14208
  const { id, label, hiddenLabel } = useParameterShell();
14075
14209
  const isNumberInputAndMouseWheelDisabled = enableMouseWheel !== true && props.type === "number";
14076
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
14210
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
14077
14211
  "input",
14078
14212
  {
14079
14213
  css: input3,
@@ -14090,19 +14224,19 @@ var ParameterInputInner = (0, import_react142.forwardRef)(({ enableMouseWheel =
14090
14224
 
14091
14225
  // src/components/ParameterInputs/ParameterLink.tsx
14092
14226
  init_emotion_jsx_shim();
14093
- var import_react143 = require("react");
14094
- var import_jsx_runtime123 = require("@emotion/react/jsx-runtime");
14095
- var ParameterLink = (0, import_react143.forwardRef)(
14227
+ var import_react145 = require("react");
14228
+ var import_jsx_runtime124 = require("@emotion/react/jsx-runtime");
14229
+ var ParameterLink = (0, import_react145.forwardRef)(
14096
14230
  ({ disabled: disabled2, onConnectLink, externalLink, ...props }, ref) => {
14097
14231
  const { shellProps, innerProps } = extractParameterProps(props);
14098
- return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
14232
+ return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
14099
14233
  ParameterShell,
14100
14234
  {
14101
14235
  "data-testid": "link-parameter-editor",
14102
14236
  ...shellProps,
14103
14237
  label: innerProps.value ? shellProps.label : "",
14104
14238
  title: !innerProps.value && typeof shellProps.label === "string" ? shellProps.label : void 0,
14105
- children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
14239
+ children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
14106
14240
  ParameterLinkInner,
14107
14241
  {
14108
14242
  onConnectLink,
@@ -14115,13 +14249,13 @@ var ParameterLink = (0, import_react143.forwardRef)(
14115
14249
  );
14116
14250
  }
14117
14251
  );
14118
- var ParameterLinkInner = (0, import_react143.forwardRef)(
14252
+ var ParameterLinkInner = (0, import_react145.forwardRef)(
14119
14253
  ({ externalLink, onConnectLink, disabled: disabled2, buttonText = "Select link", ...props }, ref) => {
14120
14254
  const { id, label, hiddenLabel } = useParameterShell();
14121
14255
  if (!props.value)
14122
- return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("button", { type: "button", css: dataConnectButton, disabled: disabled2, onClick: onConnectLink, children: buttonText });
14123
- return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { css: inputWrapper, children: [
14124
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
14256
+ return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("button", { type: "button", css: dataConnectButton, disabled: disabled2, onClick: onConnectLink, children: buttonText });
14257
+ return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("div", { css: inputWrapper, children: [
14258
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
14125
14259
  "input",
14126
14260
  {
14127
14261
  type: "text",
@@ -14133,8 +14267,8 @@ var ParameterLinkInner = (0, import_react143.forwardRef)(
14133
14267
  ...props
14134
14268
  }
14135
14269
  ),
14136
- /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { css: linkParameterControls, children: [
14137
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
14270
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("div", { css: linkParameterControls, children: [
14271
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
14138
14272
  "button",
14139
14273
  {
14140
14274
  type: "button",
@@ -14146,7 +14280,7 @@ var ParameterLinkInner = (0, import_react143.forwardRef)(
14146
14280
  children: "edit"
14147
14281
  }
14148
14282
  ),
14149
- externalLink ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
14283
+ externalLink ? /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
14150
14284
  "a",
14151
14285
  {
14152
14286
  href: externalLink,
@@ -14154,7 +14288,7 @@ var ParameterLinkInner = (0, import_react143.forwardRef)(
14154
14288
  title: "Open link in new tab",
14155
14289
  target: "_blank",
14156
14290
  rel: "noopener noreferrer",
14157
- children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
14291
+ children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
14158
14292
  }
14159
14293
  ) : null
14160
14294
  ] })
@@ -14164,15 +14298,15 @@ var ParameterLinkInner = (0, import_react143.forwardRef)(
14164
14298
 
14165
14299
  // src/components/ParameterInputs/ParameterMultiSelect.tsx
14166
14300
  init_emotion_jsx_shim();
14167
- var import_jsx_runtime124 = require("@emotion/react/jsx-runtime");
14301
+ var import_jsx_runtime125 = require("@emotion/react/jsx-runtime");
14168
14302
  var ParameterMultiSelect = ({ disabled: disabled2 = false, ...props }) => {
14169
14303
  const { shellProps, innerProps } = extractParameterProps(props);
14170
- return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(ParameterMultiSelectInner, { isDisabled: disabled2, ...innerProps }) });
14304
+ return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(ParameterMultiSelectInner, { isDisabled: disabled2, ...innerProps }) });
14171
14305
  };
14172
14306
  var ParameterMultiSelectInner = (props) => {
14173
14307
  var _a;
14174
14308
  const { id, label } = useParameterShell();
14175
- return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
14309
+ return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
14176
14310
  InputComboBox,
14177
14311
  {
14178
14312
  menuPortalTarget: document.body,
@@ -14223,7 +14357,7 @@ var ParameterMultiSelectInner = (props) => {
14223
14357
 
14224
14358
  // src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
14225
14359
  init_emotion_jsx_shim();
14226
- var import_jsx_runtime125 = require("@emotion/react/jsx-runtime");
14360
+ var import_jsx_runtime126 = require("@emotion/react/jsx-runtime");
14227
14361
  var ParameterNameAndPublicIdInput = ({
14228
14362
  id,
14229
14363
  onBlur,
@@ -14249,8 +14383,8 @@ var ParameterNameAndPublicIdInput = ({
14249
14383
  navigator.clipboard.writeText(values[publicIdFieldName]);
14250
14384
  };
14251
14385
  autoFocus == null ? void 0 : autoFocus();
14252
- return /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_jsx_runtime125.Fragment, { children: [
14253
- /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
14386
+ return /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_jsx_runtime126.Fragment, { children: [
14387
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
14254
14388
  ParameterInput,
14255
14389
  {
14256
14390
  id: nameIdField,
@@ -14269,7 +14403,7 @@ var ParameterNameAndPublicIdInput = ({
14269
14403
  value: values[nameIdField]
14270
14404
  }
14271
14405
  ),
14272
- /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
14406
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
14273
14407
  ParameterInput,
14274
14408
  {
14275
14409
  id: publicIdFieldName,
@@ -14283,11 +14417,11 @@ var ParameterNameAndPublicIdInput = ({
14283
14417
  caption: !publicIdError ? publicIdCaption : void 0,
14284
14418
  placeholder: publicIdPlaceholderText,
14285
14419
  errorMessage: publicIdError,
14286
- menuItems: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
14420
+ menuItems: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
14287
14421
  MenuItem,
14288
14422
  {
14289
14423
  disabled: !values[publicIdFieldName],
14290
- icon: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(Icon, { icon: "path-trim", iconColor: "currentColor" }),
14424
+ icon: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(Icon, { icon: "path-trim", iconColor: "currentColor" }),
14291
14425
  onClick: handleCopyPidFieldValue,
14292
14426
  children: "Copy"
14293
14427
  }
@@ -14295,13 +14429,13 @@ var ParameterNameAndPublicIdInput = ({
14295
14429
  value: values[publicIdFieldName]
14296
14430
  }
14297
14431
  ),
14298
- (warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(Callout, { type: "caution", children: warnOverLength.message }) : null
14432
+ (warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(Callout, { type: "caution", children: warnOverLength.message }) : null
14299
14433
  ] });
14300
14434
  };
14301
14435
 
14302
14436
  // src/components/ParameterInputs/ParameterRichText.tsx
14303
14437
  init_emotion_jsx_shim();
14304
- var import_react157 = require("@emotion/react");
14438
+ var import_react159 = require("@emotion/react");
14305
14439
  var import_list3 = require("@lexical/list");
14306
14440
  var import_markdown = require("@lexical/markdown");
14307
14441
  var import_LexicalComposer = require("@lexical/react/LexicalComposer");
@@ -14438,7 +14572,7 @@ var defaultParameterConfiguration = {
14438
14572
  // src/components/ParameterInputs/ParameterRichText.tsx
14439
14573
  var import_fast_equals2 = require("fast-equals");
14440
14574
  var import_lexical10 = require("lexical");
14441
- var import_react158 = require("react");
14575
+ var import_react160 = require("react");
14442
14576
 
14443
14577
  // src/components/ParameterInputs/rich-text/CustomCodeNode.ts
14444
14578
  init_emotion_jsx_shim();
@@ -14461,10 +14595,10 @@ init_emotion_jsx_shim();
14461
14595
  var import_LexicalComposerContext = require("@lexical/react/LexicalComposerContext");
14462
14596
  var import_utils4 = require("@lexical/utils");
14463
14597
  var import_lexical = require("lexical");
14464
- var import_react144 = require("react");
14598
+ var import_react146 = require("react");
14465
14599
  function DisableStylesPlugin() {
14466
14600
  const [editor] = (0, import_LexicalComposerContext.useLexicalComposerContext)();
14467
- (0, import_react144.useEffect)(() => {
14601
+ (0, import_react146.useEffect)(() => {
14468
14602
  return (0, import_utils4.mergeRegister)(
14469
14603
  // Disable text alignment on paragraph nodes
14470
14604
  editor.registerNodeTransform(import_lexical.ParagraphNode, (node) => {
@@ -14725,10 +14859,10 @@ init_emotion_jsx_shim();
14725
14859
  var import_LexicalComposerContext2 = require("@lexical/react/LexicalComposerContext");
14726
14860
  var import_utils5 = require("@lexical/utils");
14727
14861
  var import_lexical2 = require("lexical");
14728
- var import_react145 = require("react");
14862
+ var import_react147 = require("react");
14729
14863
  var ImprovedAssetSelectionPlugin = () => {
14730
14864
  const [editor] = (0, import_LexicalComposerContext2.useLexicalComposerContext)();
14731
- (0, import_react145.useEffect)(() => {
14865
+ (0, import_react147.useEffect)(() => {
14732
14866
  editor.getRootElement();
14733
14867
  const onRootClick = (event) => {
14734
14868
  if (event.target !== editor.getRootElement()) {
@@ -14777,13 +14911,13 @@ var ImprovedAssetSelectionPlugin_default = ImprovedAssetSelectionPlugin;
14777
14911
 
14778
14912
  // src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
14779
14913
  init_emotion_jsx_shim();
14780
- var import_react146 = require("@emotion/react");
14914
+ var import_react148 = require("@emotion/react");
14781
14915
  var import_LexicalComposerContext3 = require("@lexical/react/LexicalComposerContext");
14782
14916
  var import_LexicalNodeEventPlugin = require("@lexical/react/LexicalNodeEventPlugin");
14783
14917
  var import_utils6 = require("@lexical/utils");
14784
14918
  var import_fast_equals = require("fast-equals");
14785
14919
  var import_lexical4 = require("lexical");
14786
- var import_react147 = require("react");
14920
+ var import_react149 = require("react");
14787
14921
 
14788
14922
  // src/components/ParameterInputs/rich-text/utils.ts
14789
14923
  init_emotion_jsx_shim();
@@ -14842,7 +14976,7 @@ var normalizeStateForDeepEqualComparison = (editorState) => {
14842
14976
  };
14843
14977
 
14844
14978
  // src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
14845
- var import_jsx_runtime126 = require("@emotion/react/jsx-runtime");
14979
+ var import_jsx_runtime127 = require("@emotion/react/jsx-runtime");
14846
14980
  var isProjectMapLinkValue = (value) => {
14847
14981
  return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
14848
14982
  value.nodeId && value.path && value.projectMapId
@@ -15131,17 +15265,17 @@ var OPEN_LINK_NODE_MODAL_COMMAND = (0, import_lexical4.createCommand)(
15131
15265
  );
15132
15266
  var LINK_POPOVER_OFFSET_X = 0;
15133
15267
  var LINK_POPOVER_OFFSET_Y = 8;
15134
- var linkPopover = import_react146.css`
15268
+ var linkPopover = import_react148.css`
15135
15269
  position: absolute;
15136
15270
  z-index: 11;
15137
15271
  `;
15138
- var linkPopoverContainer = import_react146.css`
15272
+ var linkPopoverContainer = import_react148.css`
15139
15273
  ${Popover};
15140
15274
  ${PopoverVariantSmall};
15141
15275
  align-items: center;
15142
15276
  display: flex;
15143
15277
  `;
15144
- var linkPopoverAnchor = import_react146.css`
15278
+ var linkPopoverAnchor = import_react148.css`
15145
15279
  ${link}
15146
15280
  ${linkColorDefault}
15147
15281
  `;
@@ -15154,17 +15288,17 @@ function LinkNodePlugin({
15154
15288
  return path;
15155
15289
  };
15156
15290
  const [editor] = (0, import_LexicalComposerContext3.useLexicalComposerContext)();
15157
- const [linkPopoverState, setLinkPopoverState] = (0, import_react147.useState)();
15158
- const linkPopoverElRef = (0, import_react147.useRef)(null);
15159
- const [isEditorFocused, setIsEditorFocused] = (0, import_react147.useState)(false);
15160
- const [isLinkPopoverFocused, setIsLinkPopoverFocused] = (0, import_react147.useState)(false);
15161
- (0, import_react147.useEffect)(() => {
15291
+ const [linkPopoverState, setLinkPopoverState] = (0, import_react149.useState)();
15292
+ const linkPopoverElRef = (0, import_react149.useRef)(null);
15293
+ const [isEditorFocused, setIsEditorFocused] = (0, import_react149.useState)(false);
15294
+ const [isLinkPopoverFocused, setIsLinkPopoverFocused] = (0, import_react149.useState)(false);
15295
+ (0, import_react149.useEffect)(() => {
15162
15296
  if (!isEditorFocused && !isLinkPopoverFocused) {
15163
15297
  setLinkPopoverState(void 0);
15164
15298
  return;
15165
15299
  }
15166
15300
  }, [isEditorFocused, isLinkPopoverFocused]);
15167
- (0, import_react147.useEffect)(() => {
15301
+ (0, import_react149.useEffect)(() => {
15168
15302
  if (!editor.hasNodes([LinkNode])) {
15169
15303
  throw new Error("LinkNode not registered on editor");
15170
15304
  }
@@ -15268,7 +15402,7 @@ function LinkNodePlugin({
15268
15402
  )
15269
15403
  );
15270
15404
  }, [editor, onConnectLink]);
15271
- const maybeShowLinkToolbar = (0, import_react147.useCallback)(() => {
15405
+ const maybeShowLinkToolbar = (0, import_react149.useCallback)(() => {
15272
15406
  if (!editor.isEditable()) {
15273
15407
  return;
15274
15408
  }
@@ -15302,7 +15436,7 @@ function LinkNodePlugin({
15302
15436
  }
15303
15437
  });
15304
15438
  }, [editor, positioningAnchorEl]);
15305
- (0, import_react147.useEffect)(() => {
15439
+ (0, import_react149.useEffect)(() => {
15306
15440
  return editor.registerUpdateListener(({ editorState }) => {
15307
15441
  requestAnimationFrame(() => {
15308
15442
  editorState.read(() => {
@@ -15329,8 +15463,8 @@ function LinkNodePlugin({
15329
15463
  });
15330
15464
  });
15331
15465
  };
15332
- return /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_jsx_runtime126.Fragment, { children: [
15333
- /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
15466
+ return /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_jsx_runtime127.Fragment, { children: [
15467
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
15334
15468
  import_LexicalNodeEventPlugin.NodeEventPlugin,
15335
15469
  {
15336
15470
  nodeType: LinkNode,
@@ -15340,7 +15474,7 @@ function LinkNodePlugin({
15340
15474
  }
15341
15475
  }
15342
15476
  ),
15343
- linkPopoverState ? /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
15477
+ linkPopoverState ? /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
15344
15478
  "div",
15345
15479
  {
15346
15480
  css: linkPopover,
@@ -15349,8 +15483,8 @@ function LinkNodePlugin({
15349
15483
  top: linkPopoverState.position.y
15350
15484
  },
15351
15485
  ref: linkPopoverElRef,
15352
- children: /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)("div", { css: linkPopoverContainer, children: [
15353
- linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
15486
+ children: /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)("div", { css: linkPopoverContainer, children: [
15487
+ linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
15354
15488
  "a",
15355
15489
  {
15356
15490
  href: parsePath(
@@ -15362,7 +15496,7 @@ function LinkNodePlugin({
15362
15496
  children: parsePath(linkPopoverState.node.__link.path)
15363
15497
  }
15364
15498
  ),
15365
- /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
15499
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
15366
15500
  Button,
15367
15501
  {
15368
15502
  size: "xs",
@@ -15370,7 +15504,7 @@ function LinkNodePlugin({
15370
15504
  onEditLinkNode(linkPopoverState.node);
15371
15505
  },
15372
15506
  buttonType: "ghost",
15373
- children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
15507
+ children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
15374
15508
  }
15375
15509
  )
15376
15510
  ] })
@@ -15390,7 +15524,7 @@ var import_list = require("@lexical/list");
15390
15524
  var import_LexicalComposerContext4 = require("@lexical/react/LexicalComposerContext");
15391
15525
  var import_utils9 = require("@lexical/utils");
15392
15526
  var import_lexical5 = require("lexical");
15393
- var import_react148 = require("react");
15527
+ var import_react150 = require("react");
15394
15528
  function isIndentPermitted(maxDepth) {
15395
15529
  const selection = (0, import_lexical5.$getSelection)();
15396
15530
  if (!(0, import_lexical5.$isRangeSelection)(selection)) {
@@ -15445,8 +15579,8 @@ function $indentOverTab(selection) {
15445
15579
  }
15446
15580
  function ListIndentPlugin({ maxDepth }) {
15447
15581
  const [editor] = (0, import_LexicalComposerContext4.useLexicalComposerContext)();
15448
- const isInListItemNode = (0, import_react148.useRef)(false);
15449
- (0, import_react148.useEffect)(() => {
15582
+ const isInListItemNode = (0, import_react150.useRef)(false);
15583
+ (0, import_react150.useEffect)(() => {
15450
15584
  return editor.registerCommand(
15451
15585
  import_lexical5.SELECTION_CHANGE_COMMAND,
15452
15586
  () => {
@@ -15463,7 +15597,7 @@ function ListIndentPlugin({ maxDepth }) {
15463
15597
  import_lexical5.COMMAND_PRIORITY_NORMAL
15464
15598
  );
15465
15599
  }, [editor]);
15466
- (0, import_react148.useEffect)(() => {
15600
+ (0, import_react150.useEffect)(() => {
15467
15601
  return (0, import_utils9.mergeRegister)(
15468
15602
  editor.registerCommand(
15469
15603
  import_lexical5.INDENT_CONTENT_COMMAND,
@@ -15493,13 +15627,13 @@ function ListIndentPlugin({ maxDepth }) {
15493
15627
 
15494
15628
  // src/components/ParameterInputs/rich-text/TableActionMenuPlugin.tsx
15495
15629
  init_emotion_jsx_shim();
15496
- var import_react149 = require("@emotion/react");
15630
+ var import_react151 = require("@emotion/react");
15497
15631
  var import_LexicalComposerContext5 = require("@lexical/react/LexicalComposerContext");
15498
15632
  var import_useLexicalEditable = require("@lexical/react/useLexicalEditable");
15499
15633
  var import_table = require("@lexical/table");
15500
15634
  var import_lexical6 = require("lexical");
15501
- var import_react150 = require("react");
15502
- var import_jsx_runtime127 = require("@emotion/react/jsx-runtime");
15635
+ var import_react152 = require("react");
15636
+ var import_jsx_runtime128 = require("@emotion/react/jsx-runtime");
15503
15637
  function computeSelectionCount(selection) {
15504
15638
  const selectionShape = selection.getShape();
15505
15639
  return {
@@ -15507,21 +15641,21 @@ function computeSelectionCount(selection) {
15507
15641
  rows: selectionShape.toY - selectionShape.fromY + 1
15508
15642
  };
15509
15643
  }
15510
- var tableActionMenuTrigger = import_react149.css`
15644
+ var tableActionMenuTrigger = import_react151.css`
15511
15645
  position: absolute;
15512
15646
  transform: translate(calc(-100% - 1px), 1px);
15513
15647
  `;
15514
- var TableActionMenuTrigger = (0, import_react150.forwardRef)((props, ref) => {
15648
+ var TableActionMenuTrigger = (0, import_react152.forwardRef)((props, ref) => {
15515
15649
  const { tableCellEl, positioningAnchorEl, ...rest } = props;
15516
- const [coordinates, setCoordinates] = (0, import_react150.useState)({ x: 0, y: 0 });
15517
- (0, import_react150.useLayoutEffect)(() => {
15650
+ const [coordinates, setCoordinates] = (0, import_react152.useState)({ x: 0, y: 0 });
15651
+ (0, import_react152.useLayoutEffect)(() => {
15518
15652
  const rect = tableCellEl.getBoundingClientRect();
15519
15653
  const parentRect = positioningAnchorEl.getBoundingClientRect();
15520
15654
  const relativeX = rect.right - parentRect.left + positioningAnchorEl.scrollLeft;
15521
15655
  const relativeY = rect.top - parentRect.top + positioningAnchorEl.scrollTop;
15522
15656
  setCoordinates({ x: relativeX, y: relativeY });
15523
15657
  }, [tableCellEl, positioningAnchorEl]);
15524
- return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
15658
+ return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
15525
15659
  IconButton,
15526
15660
  {
15527
15661
  ref,
@@ -15535,7 +15669,7 @@ var TableActionMenuTrigger = (0, import_react150.forwardRef)((props, ref) => {
15535
15669
  size: "xs",
15536
15670
  buttonType: "unimportant",
15537
15671
  ...rest,
15538
- children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(Icon, { icon: "chevron-down", size: "1rem", iconColor: "currentColor" })
15672
+ children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(Icon, { icon: "chevron-down", size: "1rem", iconColor: "currentColor" })
15539
15673
  }
15540
15674
  );
15541
15675
  });
@@ -15547,16 +15681,16 @@ function TableActionMenu({
15547
15681
  positioningAnchorEl
15548
15682
  }) {
15549
15683
  const [editor] = (0, import_LexicalComposerContext5.useLexicalComposerContext)();
15550
- const [tableCellNode, updateTableCellNode] = (0, import_react150.useState)(_tableCellNode);
15551
- const [selectionCounts, updateSelectionCounts] = (0, import_react150.useState)({
15684
+ const [tableCellNode, updateTableCellNode] = (0, import_react152.useState)(_tableCellNode);
15685
+ const [selectionCounts, updateSelectionCounts] = (0, import_react152.useState)({
15552
15686
  columns: 1,
15553
15687
  rows: 1
15554
15688
  });
15555
- const [menuTriggerKey, setMenuTriggerKey] = (0, import_react150.useState)(0);
15689
+ const [menuTriggerKey, setMenuTriggerKey] = (0, import_react152.useState)(0);
15556
15690
  const incrementMenuTriggerKey = () => {
15557
15691
  setMenuTriggerKey((key) => key += 1);
15558
15692
  };
15559
- (0, import_react150.useEffect)(() => {
15693
+ (0, import_react152.useEffect)(() => {
15560
15694
  return editor.registerMutationListener(
15561
15695
  import_table.TableCellNode,
15562
15696
  (nodeMutations) => {
@@ -15570,7 +15704,7 @@ function TableActionMenu({
15570
15704
  { skipInitialization: true }
15571
15705
  );
15572
15706
  }, [editor, tableCellNode]);
15573
- (0, import_react150.useEffect)(() => {
15707
+ (0, import_react152.useEffect)(() => {
15574
15708
  editor.getEditorState().read(() => {
15575
15709
  const selection = (0, import_lexical6.$getSelection)();
15576
15710
  if ((0, import_table.$isTableSelection)(selection)) {
@@ -15578,7 +15712,7 @@ function TableActionMenu({
15578
15712
  }
15579
15713
  });
15580
15714
  }, [editor]);
15581
- const clearTableSelection = (0, import_react150.useCallback)(() => {
15715
+ const clearTableSelection = (0, import_react152.useCallback)(() => {
15582
15716
  editor.update(() => {
15583
15717
  if (tableCellNode.isAttached()) {
15584
15718
  const tableNode = (0, import_table.$getTableNodeFromLexicalNodeOrThrow)(tableCellNode);
@@ -15599,7 +15733,7 @@ function TableActionMenu({
15599
15733
  rootNode.selectStart();
15600
15734
  });
15601
15735
  }, [editor, tableCellNode]);
15602
- const insertTableRowAtSelection = (0, import_react150.useCallback)(
15736
+ const insertTableRowAtSelection = (0, import_react152.useCallback)(
15603
15737
  (shouldInsertAfter) => {
15604
15738
  editor.update(() => {
15605
15739
  (0, import_table.$insertTableRow__EXPERIMENTAL)(shouldInsertAfter);
@@ -15608,7 +15742,7 @@ function TableActionMenu({
15608
15742
  },
15609
15743
  [editor]
15610
15744
  );
15611
- const insertTableColumnAtSelection = (0, import_react150.useCallback)(
15745
+ const insertTableColumnAtSelection = (0, import_react152.useCallback)(
15612
15746
  (shouldInsertAfter) => {
15613
15747
  editor.update(() => {
15614
15748
  for (let i = 0; i < selectionCounts.columns; i++) {
@@ -15619,26 +15753,26 @@ function TableActionMenu({
15619
15753
  },
15620
15754
  [editor, selectionCounts.columns]
15621
15755
  );
15622
- const deleteTableRowAtSelection = (0, import_react150.useCallback)(() => {
15756
+ const deleteTableRowAtSelection = (0, import_react152.useCallback)(() => {
15623
15757
  editor.update(() => {
15624
15758
  (0, import_table.$deleteTableRow__EXPERIMENTAL)();
15625
15759
  });
15626
15760
  incrementMenuTriggerKey();
15627
15761
  }, [editor]);
15628
- const deleteTableAtSelection = (0, import_react150.useCallback)(() => {
15762
+ const deleteTableAtSelection = (0, import_react152.useCallback)(() => {
15629
15763
  editor.update(() => {
15630
15764
  const tableNode = (0, import_table.$getTableNodeFromLexicalNodeOrThrow)(tableCellNode);
15631
15765
  tableNode.remove();
15632
15766
  clearTableSelection();
15633
15767
  });
15634
15768
  }, [editor, tableCellNode, clearTableSelection]);
15635
- const deleteTableColumnAtSelection = (0, import_react150.useCallback)(() => {
15769
+ const deleteTableColumnAtSelection = (0, import_react152.useCallback)(() => {
15636
15770
  editor.update(() => {
15637
15771
  (0, import_table.$deleteTableColumn__EXPERIMENTAL)();
15638
15772
  });
15639
15773
  incrementMenuTriggerKey();
15640
15774
  }, [editor]);
15641
- const toggleTableRowIsHeader = (0, import_react150.useCallback)(() => {
15775
+ const toggleTableRowIsHeader = (0, import_react152.useCallback)(() => {
15642
15776
  editor.update(() => {
15643
15777
  const tableNode = (0, import_table.$getTableNodeFromLexicalNodeOrThrow)(tableCellNode);
15644
15778
  const tableRowIndex = (0, import_table.$getTableRowIndexFromTableCellNode)(tableCellNode);
@@ -15659,7 +15793,7 @@ function TableActionMenu({
15659
15793
  clearTableSelection();
15660
15794
  });
15661
15795
  }, [editor, tableCellNode, clearTableSelection]);
15662
- const toggleTableColumnIsHeader = (0, import_react150.useCallback)(() => {
15796
+ const toggleTableColumnIsHeader = (0, import_react152.useCallback)(() => {
15663
15797
  editor.update(() => {
15664
15798
  const tableNode = (0, import_table.$getTableNodeFromLexicalNodeOrThrow)(tableCellNode);
15665
15799
  const tableColumnIndex = (0, import_table.$getTableColumnIndexFromTableCellNode)(tableCellNode);
@@ -15686,13 +15820,13 @@ function TableActionMenu({
15686
15820
  clearTableSelection();
15687
15821
  });
15688
15822
  }, [editor, tableCellNode, clearTableSelection]);
15689
- const menuItemCss = (0, import_react149.css)({
15823
+ const menuItemCss = (0, import_react151.css)({
15690
15824
  fontSize: "var(--fs-sm)"
15691
15825
  });
15692
- return /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(
15826
+ return /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(
15693
15827
  Menu,
15694
15828
  {
15695
- menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
15829
+ menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
15696
15830
  TableActionMenuTrigger,
15697
15831
  {
15698
15832
  tableCellEl,
@@ -15703,7 +15837,7 @@ function TableActionMenu({
15703
15837
  portalElement: menuPortalEl,
15704
15838
  maxMenuHeight: "300px",
15705
15839
  children: [
15706
- /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(
15840
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(
15707
15841
  MenuItem,
15708
15842
  {
15709
15843
  onClick: () => {
@@ -15717,33 +15851,33 @@ function TableActionMenu({
15717
15851
  ]
15718
15852
  }
15719
15853
  ),
15720
- /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(MenuItem, { onClick: () => insertTableRowAtSelection(true), css: menuItemCss, children: [
15854
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(MenuItem, { onClick: () => insertTableRowAtSelection(true), css: menuItemCss, children: [
15721
15855
  "Insert ",
15722
15856
  selectionCounts.rows === 1 ? "row" : `${selectionCounts.rows} rows`,
15723
15857
  " below"
15724
15858
  ] }),
15725
- /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(MenuItemSeparator, {}),
15726
- /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(MenuItem, { onClick: () => insertTableColumnAtSelection(false), css: menuItemCss, children: [
15859
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(MenuItemSeparator, {}),
15860
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(MenuItem, { onClick: () => insertTableColumnAtSelection(false), css: menuItemCss, children: [
15727
15861
  "Insert ",
15728
15862
  selectionCounts.columns === 1 ? "column" : `${selectionCounts.columns} columns`,
15729
15863
  " left"
15730
15864
  ] }),
15731
- /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(MenuItem, { onClick: () => insertTableColumnAtSelection(true), css: menuItemCss, children: [
15865
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(MenuItem, { onClick: () => insertTableColumnAtSelection(true), css: menuItemCss, children: [
15732
15866
  "Insert ",
15733
15867
  selectionCounts.columns === 1 ? "column" : `${selectionCounts.columns} columns`,
15734
15868
  " right"
15735
15869
  ] }),
15736
- /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(MenuItemSeparator, {}),
15737
- /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(MenuItem, { onClick: () => deleteTableColumnAtSelection(), css: menuItemCss, children: "Delete column" }),
15738
- /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(MenuItem, { onClick: () => deleteTableRowAtSelection(), css: menuItemCss, children: "Delete row" }),
15739
- /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(MenuItem, { onClick: () => deleteTableAtSelection(), css: menuItemCss, children: "Delete table" }),
15740
- /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(MenuItemSeparator, {}),
15741
- /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(MenuItem, { onClick: () => toggleTableRowIsHeader(), css: menuItemCss, children: [
15870
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(MenuItemSeparator, {}),
15871
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(MenuItem, { onClick: () => deleteTableColumnAtSelection(), css: menuItemCss, children: "Delete column" }),
15872
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(MenuItem, { onClick: () => deleteTableRowAtSelection(), css: menuItemCss, children: "Delete row" }),
15873
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(MenuItem, { onClick: () => deleteTableAtSelection(), css: menuItemCss, children: "Delete table" }),
15874
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(MenuItemSeparator, {}),
15875
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(MenuItem, { onClick: () => toggleTableRowIsHeader(), css: menuItemCss, children: [
15742
15876
  (tableCellNode.__headerState & import_table.TableCellHeaderStates.ROW) === import_table.TableCellHeaderStates.ROW ? "Remove" : "Add",
15743
15877
  " ",
15744
15878
  "row header"
15745
15879
  ] }),
15746
- /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(MenuItem, { onClick: () => toggleTableColumnIsHeader(), css: menuItemCss, children: [
15880
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(MenuItem, { onClick: () => toggleTableColumnIsHeader(), css: menuItemCss, children: [
15747
15881
  (tableCellNode.__headerState & import_table.TableCellHeaderStates.COLUMN) === import_table.TableCellHeaderStates.COLUMN ? "Remove" : "Add",
15748
15882
  " ",
15749
15883
  "column header"
@@ -15757,10 +15891,10 @@ function TableCellActionMenuContainer({
15757
15891
  positioningAnchorEl
15758
15892
  }) {
15759
15893
  const [editor] = (0, import_LexicalComposerContext5.useLexicalComposerContext)();
15760
- const [tableCellNode, setTableMenuCellNode] = (0, import_react150.useState)(null);
15761
- const [tableCellNodeEl, _setTableMenuCellNodeEl] = (0, import_react150.useState)(null);
15762
- const [tableCellMenuPortalEl, setTableMenuCellMenuPortalEl] = (0, import_react150.useState)(null);
15763
- (0, import_react150.useEffect)(() => {
15894
+ const [tableCellNode, setTableMenuCellNode] = (0, import_react152.useState)(null);
15895
+ const [tableCellNodeEl, _setTableMenuCellNodeEl] = (0, import_react152.useState)(null);
15896
+ const [tableCellMenuPortalEl, setTableMenuCellMenuPortalEl] = (0, import_react152.useState)(null);
15897
+ (0, import_react152.useEffect)(() => {
15764
15898
  const newPortalEl = document.createElement("div");
15765
15899
  setTableMenuCellMenuPortalEl(newPortalEl);
15766
15900
  menuPortalEl.appendChild(newPortalEl);
@@ -15768,14 +15902,14 @@ function TableCellActionMenuContainer({
15768
15902
  newPortalEl.remove();
15769
15903
  };
15770
15904
  }, [menuPortalEl]);
15771
- const setTableMenuCellNodeElem = (0, import_react150.useCallback)((elem) => {
15905
+ const setTableMenuCellNodeElem = (0, import_react152.useCallback)((elem) => {
15772
15906
  if (elem) {
15773
15907
  _setTableMenuCellNodeEl(elem);
15774
15908
  } else {
15775
15909
  _setTableMenuCellNodeEl(null);
15776
15910
  }
15777
15911
  }, []);
15778
- const $moveMenu = (0, import_react150.useCallback)(() => {
15912
+ const $moveMenu = (0, import_react152.useCallback)(() => {
15779
15913
  const selection = (0, import_lexical6.$getSelection)();
15780
15914
  const nativeSelection = window.getSelection();
15781
15915
  const activeElement = document.activeElement;
@@ -15804,14 +15938,14 @@ function TableCellActionMenuContainer({
15804
15938
  setTableMenuCellNodeElem(null);
15805
15939
  }
15806
15940
  }, [editor, setTableMenuCellNodeElem]);
15807
- (0, import_react150.useEffect)(() => {
15941
+ (0, import_react152.useEffect)(() => {
15808
15942
  return editor.registerUpdateListener(() => {
15809
15943
  editor.getEditorState().read(() => {
15810
15944
  $moveMenu();
15811
15945
  });
15812
15946
  });
15813
15947
  });
15814
- return tableCellNode != null && tableCellNodeEl != null && tableCellMenuPortalEl != null && /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
15948
+ return tableCellNode != null && tableCellNodeEl != null && tableCellMenuPortalEl != null && /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
15815
15949
  TableActionMenu,
15816
15950
  {
15817
15951
  tableCellNode,
@@ -15827,23 +15961,23 @@ function TableActionMenuPlugin({
15827
15961
  menuPortalEl
15828
15962
  }) {
15829
15963
  const isEditable = (0, import_useLexicalEditable.useLexicalEditable)();
15830
- return isEditable ? /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(TableCellActionMenuContainer, { menuPortalEl, positioningAnchorEl }) : null;
15964
+ return isEditable ? /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(TableCellActionMenuContainer, { menuPortalEl, positioningAnchorEl }) : null;
15831
15965
  }
15832
15966
 
15833
15967
  // src/components/ParameterInputs/rich-text/TableCellResizerPlugin.tsx
15834
15968
  init_emotion_jsx_shim();
15835
- var import_react151 = require("@emotion/react");
15969
+ var import_react153 = require("@emotion/react");
15836
15970
  var import_LexicalComposerContext6 = require("@lexical/react/LexicalComposerContext");
15837
15971
  var import_useLexicalEditable2 = require("@lexical/react/useLexicalEditable");
15838
15972
  var import_table2 = require("@lexical/table");
15839
15973
  var import_utils11 = require("@lexical/utils");
15840
15974
  var import_lexical7 = require("lexical");
15841
- var import_react152 = require("react");
15975
+ var import_react154 = require("react");
15842
15976
  var import_react_dom3 = require("react-dom");
15843
- var import_jsx_runtime128 = require("@emotion/react/jsx-runtime");
15977
+ var import_jsx_runtime129 = require("@emotion/react/jsx-runtime");
15844
15978
  var MIN_ROW_HEIGHT = 33;
15845
15979
  var MIN_COLUMN_WIDTH = 50;
15846
- var tableResizer = import_react151.css`
15980
+ var tableResizer = import_react153.css`
15847
15981
  position: absolute;
15848
15982
  z-index: var(--z-10);
15849
15983
  `;
@@ -15865,15 +15999,15 @@ var fixedGetDOMCellFromTarget = (node) => {
15865
15999
  return null;
15866
16000
  };
15867
16001
  function TableCellResizer({ editor, positioningAnchorEl }) {
15868
- const targetRef = (0, import_react152.useRef)(null);
15869
- const resizerRef = (0, import_react152.useRef)(null);
15870
- const tableRectRef = (0, import_react152.useRef)(null);
15871
- const mouseStartPosRef = (0, import_react152.useRef)(null);
15872
- const [mouseCurrentPos, updateMouseCurrentPos] = (0, import_react152.useState)(null);
15873
- const [activeCell, updateActiveCell] = (0, import_react152.useState)(null);
15874
- const [isMouseDown, updateIsMouseDown] = (0, import_react152.useState)(false);
15875
- const [draggingDirection, updateDraggingDirection] = (0, import_react152.useState)(null);
15876
- const resetState = (0, import_react152.useCallback)(() => {
16002
+ const targetRef = (0, import_react154.useRef)(null);
16003
+ const resizerRef = (0, import_react154.useRef)(null);
16004
+ const tableRectRef = (0, import_react154.useRef)(null);
16005
+ const mouseStartPosRef = (0, import_react154.useRef)(null);
16006
+ const [mouseCurrentPos, updateMouseCurrentPos] = (0, import_react154.useState)(null);
16007
+ const [activeCell, updateActiveCell] = (0, import_react154.useState)(null);
16008
+ const [isMouseDown, updateIsMouseDown] = (0, import_react154.useState)(false);
16009
+ const [draggingDirection, updateDraggingDirection] = (0, import_react154.useState)(null);
16010
+ const resetState = (0, import_react154.useCallback)(() => {
15877
16011
  updateActiveCell(null);
15878
16012
  targetRef.current = null;
15879
16013
  updateDraggingDirection(null);
@@ -15883,7 +16017,7 @@ function TableCellResizer({ editor, positioningAnchorEl }) {
15883
16017
  const isMouseDownOnEvent = (event) => {
15884
16018
  return (event.buttons & 1) === 1;
15885
16019
  };
15886
- (0, import_react152.useEffect)(() => {
16020
+ (0, import_react154.useEffect)(() => {
15887
16021
  const onMouseMove = (event) => {
15888
16022
  setTimeout(() => {
15889
16023
  const target = event.target;
@@ -15950,7 +16084,7 @@ function TableCellResizer({ editor, positioningAnchorEl }) {
15950
16084
  }
15951
16085
  return false;
15952
16086
  };
15953
- const updateRowHeight = (0, import_react152.useCallback)(
16087
+ const updateRowHeight = (0, import_react154.useCallback)(
15954
16088
  (heightChange) => {
15955
16089
  if (!activeCell) {
15956
16090
  throw new Error("TableCellResizer: Expected active cell.");
@@ -16012,7 +16146,7 @@ function TableCellResizer({ editor, positioningAnchorEl }) {
16012
16146
  }
16013
16147
  }
16014
16148
  };
16015
- const updateColumnWidth = (0, import_react152.useCallback)(
16149
+ const updateColumnWidth = (0, import_react154.useCallback)(
16016
16150
  (widthChange) => {
16017
16151
  if (!activeCell) {
16018
16152
  throw new Error("TableCellResizer: Expected active cell.");
@@ -16046,7 +16180,7 @@ function TableCellResizer({ editor, positioningAnchorEl }) {
16046
16180
  },
16047
16181
  [activeCell, editor]
16048
16182
  );
16049
- const mouseUpHandler = (0, import_react152.useCallback)(
16183
+ const mouseUpHandler = (0, import_react154.useCallback)(
16050
16184
  (direction) => {
16051
16185
  const handler = (event) => {
16052
16186
  event.preventDefault();
@@ -16075,7 +16209,7 @@ function TableCellResizer({ editor, positioningAnchorEl }) {
16075
16209
  },
16076
16210
  [activeCell, resetState, updateColumnWidth, updateRowHeight]
16077
16211
  );
16078
- const toggleResize = (0, import_react152.useCallback)(
16212
+ const toggleResize = (0, import_react154.useCallback)(
16079
16213
  (direction) => (event) => {
16080
16214
  event.preventDefault();
16081
16215
  event.stopPropagation();
@@ -16092,7 +16226,7 @@ function TableCellResizer({ editor, positioningAnchorEl }) {
16092
16226
  },
16093
16227
  [activeCell, mouseUpHandler]
16094
16228
  );
16095
- const getResizers = (0, import_react152.useCallback)(() => {
16229
+ const getResizers = (0, import_react154.useCallback)(() => {
16096
16230
  if (activeCell) {
16097
16231
  const { height, width, top, left } = activeCell.elem.getBoundingClientRect();
16098
16232
  const parentRect = positioningAnchorEl.getBoundingClientRect();
@@ -16141,8 +16275,8 @@ function TableCellResizer({ editor, positioningAnchorEl }) {
16141
16275
  };
16142
16276
  }, [activeCell, draggingDirection, mouseCurrentPos, positioningAnchorEl]);
16143
16277
  const resizerStyles = getResizers();
16144
- return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("div", { ref: resizerRef, children: activeCell != null && !isMouseDown && /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(import_jsx_runtime128.Fragment, { children: [
16145
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
16278
+ return /* @__PURE__ */ (0, import_jsx_runtime129.jsx)("div", { ref: resizerRef, children: activeCell != null && !isMouseDown && /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(import_jsx_runtime129.Fragment, { children: [
16279
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
16146
16280
  "div",
16147
16281
  {
16148
16282
  css: tableResizer,
@@ -16150,7 +16284,7 @@ function TableCellResizer({ editor, positioningAnchorEl }) {
16150
16284
  onMouseDown: toggleResize("right")
16151
16285
  }
16152
16286
  ),
16153
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
16287
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
16154
16288
  "div",
16155
16289
  {
16156
16290
  css: tableResizer,
@@ -16163,9 +16297,9 @@ function TableCellResizer({ editor, positioningAnchorEl }) {
16163
16297
  function TableCellResizerPlugin({ positioningAnchorEl }) {
16164
16298
  const [editor] = (0, import_LexicalComposerContext6.useLexicalComposerContext)();
16165
16299
  const isEditable = (0, import_useLexicalEditable2.useLexicalEditable)();
16166
- return (0, import_react152.useMemo)(
16300
+ return (0, import_react154.useMemo)(
16167
16301
  () => isEditable ? (0, import_react_dom3.createPortal)(
16168
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(TableCellResizer, { editor, positioningAnchorEl }),
16302
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(TableCellResizer, { editor, positioningAnchorEl }),
16169
16303
  positioningAnchorEl
16170
16304
  ) : null,
16171
16305
  [editor, isEditable, positioningAnchorEl]
@@ -16177,11 +16311,11 @@ init_emotion_jsx_shim();
16177
16311
  var import_LexicalComposerContext7 = require("@lexical/react/LexicalComposerContext");
16178
16312
  var import_table3 = require("@lexical/table");
16179
16313
  var import_lexical8 = require("lexical");
16180
- var import_react153 = require("react");
16314
+ var import_react155 = require("react");
16181
16315
  var TableSelectionPlugin = () => {
16182
16316
  const [editor] = (0, import_LexicalComposerContext7.useLexicalComposerContext)();
16183
- const [closestTableCellNode, setClosestTableCellNode] = (0, import_react153.useState)(null);
16184
- (0, import_react153.useEffect)(() => {
16317
+ const [closestTableCellNode, setClosestTableCellNode] = (0, import_react155.useState)(null);
16318
+ (0, import_react155.useEffect)(() => {
16185
16319
  return editor.registerCommand(
16186
16320
  import_lexical8.SELECTION_CHANGE_COMMAND,
16187
16321
  () => {
@@ -16203,7 +16337,7 @@ var TableSelectionPlugin = () => {
16203
16337
  import_lexical8.COMMAND_PRIORITY_NORMAL
16204
16338
  );
16205
16339
  }, [editor]);
16206
- (0, import_react153.useEffect)(() => {
16340
+ (0, import_react155.useEffect)(() => {
16207
16341
  const onControlA = (event) => {
16208
16342
  if (event.key === "a" && (event.ctrlKey || event.metaKey)) {
16209
16343
  if (!closestTableCellNode) {
@@ -16227,7 +16361,7 @@ var TableSelectionPlugin_default = TableSelectionPlugin;
16227
16361
 
16228
16362
  // src/components/ParameterInputs/rich-text/toolbar/RichTextToolbar.tsx
16229
16363
  init_emotion_jsx_shim();
16230
- var import_react155 = require("@emotion/react");
16364
+ var import_react157 = require("@emotion/react");
16231
16365
  var import_code2 = require("@lexical/code");
16232
16366
  var import_list2 = require("@lexical/list");
16233
16367
  var import_LexicalComposerContext8 = require("@lexical/react/LexicalComposerContext");
@@ -16236,7 +16370,7 @@ var import_selection2 = require("@lexical/selection");
16236
16370
  var import_table4 = require("@lexical/table");
16237
16371
  var import_utils12 = require("@lexical/utils");
16238
16372
  var import_lexical9 = require("lexical");
16239
- var import_react156 = require("react");
16373
+ var import_react158 = require("react");
16240
16374
 
16241
16375
  // src/components/ParameterInputs/rich-text/toolbar/constants.ts
16242
16376
  init_emotion_jsx_shim();
@@ -16254,29 +16388,29 @@ var TEXTUAL_ELEMENTS = HEADING_ELEMENTS;
16254
16388
 
16255
16389
  // src/components/ParameterInputs/rich-text/toolbar/useRichTextToolbarState.ts
16256
16390
  init_emotion_jsx_shim();
16257
- var import_react154 = require("react");
16391
+ var import_react156 = require("react");
16258
16392
  var useRichTextToolbarState = ({ config }) => {
16259
16393
  var _a;
16260
- const enabledBuiltInFormats = (0, import_react154.useMemo)(() => {
16394
+ const enabledBuiltInFormats = (0, import_react156.useMemo)(() => {
16261
16395
  return richTextBuiltInFormats.filter((format) => {
16262
16396
  var _a2, _b;
16263
16397
  return (_b = (_a2 = config == null ? void 0 : config.formatting) == null ? void 0 : _a2.builtIn) == null ? void 0 : _b.includes(format.type);
16264
16398
  });
16265
16399
  }, [config]);
16266
- const enabledBuiltInElements = (0, import_react154.useMemo)(() => {
16400
+ const enabledBuiltInElements = (0, import_react156.useMemo)(() => {
16267
16401
  return richTextBuiltInElements.filter((element) => {
16268
16402
  var _a2, _b;
16269
16403
  return (_b = (_a2 = config == null ? void 0 : config.elements) == null ? void 0 : _a2.builtIn) == null ? void 0 : _b.includes(element.type);
16270
16404
  });
16271
16405
  }, [config]);
16272
- const enabledBuiltInFormatsWithIcon = (0, import_react154.useMemo)(() => {
16406
+ const enabledBuiltInFormatsWithIcon = (0, import_react156.useMemo)(() => {
16273
16407
  return enabledBuiltInFormats.filter((format) => FORMATS_WITH_ICON.has(format.type));
16274
16408
  }, [enabledBuiltInFormats]);
16275
16409
  const enabledBuiltInFormatsWithoutIcon = enabledBuiltInFormats.filter(
16276
16410
  (format) => !FORMATS_WITH_ICON.has(format.type)
16277
16411
  );
16278
- const [activeFormats, setActiveFormats] = (0, import_react154.useState)([]);
16279
- const visibleFormatsWithIcon = (0, import_react154.useMemo)(() => {
16412
+ const [activeFormats, setActiveFormats] = (0, import_react156.useState)([]);
16413
+ const visibleFormatsWithIcon = (0, import_react156.useMemo)(() => {
16280
16414
  const visibleFormats = /* @__PURE__ */ new Set();
16281
16415
  activeFormats.filter((type) => FORMATS_WITH_ICON.has(type)).forEach((type) => {
16282
16416
  visibleFormats.add(type);
@@ -16286,7 +16420,7 @@ var useRichTextToolbarState = ({ config }) => {
16286
16420
  });
16287
16421
  return richTextBuiltInFormats.filter((format) => visibleFormats.has(format.type));
16288
16422
  }, [activeFormats, enabledBuiltInFormatsWithIcon]);
16289
- const visibleFormatsWithoutIcon = (0, import_react154.useMemo)(() => {
16423
+ const visibleFormatsWithoutIcon = (0, import_react156.useMemo)(() => {
16290
16424
  const visibleFormats = /* @__PURE__ */ new Set();
16291
16425
  activeFormats.filter((type) => !FORMATS_WITH_ICON.has(type)).forEach((type) => {
16292
16426
  visibleFormats.add(type);
@@ -16296,11 +16430,11 @@ var useRichTextToolbarState = ({ config }) => {
16296
16430
  });
16297
16431
  return richTextBuiltInFormats.filter((format) => visibleFormats.has(format.type));
16298
16432
  }, [activeFormats, enabledBuiltInFormatsWithoutIcon]);
16299
- const [activeElement, setActiveElement] = (0, import_react154.useState)("paragraph");
16433
+ const [activeElement, setActiveElement] = (0, import_react156.useState)("paragraph");
16300
16434
  const enabledTextualElements = enabledBuiltInElements.filter(
16301
16435
  (element) => TEXTUAL_ELEMENTS.includes(element.type)
16302
16436
  );
16303
- const visibleTextualElements = (0, import_react154.useMemo)(() => {
16437
+ const visibleTextualElements = (0, import_react156.useMemo)(() => {
16304
16438
  if (!TEXTUAL_ELEMENTS.includes(activeElement)) {
16305
16439
  return enabledTextualElements;
16306
16440
  }
@@ -16311,30 +16445,30 @@ var useRichTextToolbarState = ({ config }) => {
16311
16445
  }
16312
16446
  );
16313
16447
  }, [activeElement, (_a = config == null ? void 0 : config.elements) == null ? void 0 : _a.builtIn, enabledTextualElements]);
16314
- const [isLink, setIsLink] = (0, import_react154.useState)(false);
16315
- const linkElementVisible = (0, import_react154.useMemo)(() => {
16448
+ const [isLink, setIsLink] = (0, import_react156.useState)(false);
16449
+ const linkElementVisible = (0, import_react156.useMemo)(() => {
16316
16450
  return enabledBuiltInElements.some((element) => element.type === "link") || isLink;
16317
16451
  }, [isLink, enabledBuiltInElements]);
16318
- const visibleLists = (0, import_react154.useMemo)(() => {
16452
+ const visibleLists = (0, import_react156.useMemo)(() => {
16319
16453
  return new Set(
16320
16454
  ["orderedList", "unorderedList"].filter(
16321
16455
  (type) => enabledBuiltInElements.some((element) => element.type === type) || activeElement === type
16322
16456
  )
16323
16457
  );
16324
16458
  }, [activeElement, enabledBuiltInElements]);
16325
- const quoteElementVisible = (0, import_react154.useMemo)(() => {
16459
+ const quoteElementVisible = (0, import_react156.useMemo)(() => {
16326
16460
  return enabledBuiltInElements.some((element) => element.type === "quote") || activeElement === "quote";
16327
16461
  }, [activeElement, enabledBuiltInElements]);
16328
- const codeElementVisible = (0, import_react154.useMemo)(() => {
16462
+ const codeElementVisible = (0, import_react156.useMemo)(() => {
16329
16463
  return enabledBuiltInElements.some((element) => element.type === "code") || activeElement === "code";
16330
16464
  }, [activeElement, enabledBuiltInElements]);
16331
- const tableElementVisible = (0, import_react154.useMemo)(() => {
16465
+ const tableElementVisible = (0, import_react156.useMemo)(() => {
16332
16466
  return enabledBuiltInElements.some((element) => element.type === "table") || activeElement === "table";
16333
16467
  }, [activeElement, enabledBuiltInElements]);
16334
- const assetElementVisible = (0, import_react154.useMemo)(() => {
16468
+ const assetElementVisible = (0, import_react156.useMemo)(() => {
16335
16469
  return enabledBuiltInElements.some((element) => element.type === "asset") || activeElement === "asset";
16336
16470
  }, [activeElement, enabledBuiltInElements]);
16337
- const visibleElementsWithIcons = (0, import_react154.useMemo)(() => {
16471
+ const visibleElementsWithIcons = (0, import_react156.useMemo)(() => {
16338
16472
  const visibleElements = /* @__PURE__ */ new Set();
16339
16473
  if (linkElementVisible) {
16340
16474
  visibleElements.add("link");
@@ -16346,7 +16480,7 @@ var useRichTextToolbarState = ({ config }) => {
16346
16480
  }
16347
16481
  return visibleElements;
16348
16482
  }, [linkElementVisible, visibleLists]);
16349
- const visibleInsertElementsWithIcons = (0, import_react154.useMemo)(() => {
16483
+ const visibleInsertElementsWithIcons = (0, import_react156.useMemo)(() => {
16350
16484
  const visibleElements = /* @__PURE__ */ new Set();
16351
16485
  if (quoteElementVisible) {
16352
16486
  visibleElements.add("quote");
@@ -16384,8 +16518,8 @@ var useRichTextToolbarState = ({ config }) => {
16384
16518
  };
16385
16519
 
16386
16520
  // src/components/ParameterInputs/rich-text/toolbar/RichTextToolbar.tsx
16387
- var import_jsx_runtime129 = require("@emotion/react/jsx-runtime");
16388
- var toolbar = import_react155.css`
16521
+ var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
16522
+ var toolbar = import_react157.css`
16389
16523
  ${scrollbarStyles}
16390
16524
  background: var(--gray-50);
16391
16525
  border-radius: var(--rounded-base);
@@ -16399,7 +16533,7 @@ var toolbar = import_react155.css`
16399
16533
  top: calc(var(--spacing-sm) * -2);
16400
16534
  z-index: 10;
16401
16535
  `;
16402
- var toolbarGroup = import_react155.css`
16536
+ var toolbarGroup = import_react157.css`
16403
16537
  display: flex;
16404
16538
  flex-shrink: 0;
16405
16539
  gap: var(--spacing-xs);
@@ -16416,7 +16550,7 @@ var toolbarGroup = import_react155.css`
16416
16550
  width: 1px;
16417
16551
  }
16418
16552
  `;
16419
- var richTextToolbarButton = import_react155.css`
16553
+ var richTextToolbarButton = import_react157.css`
16420
16554
  align-items: center;
16421
16555
  appearance: none;
16422
16556
  border: 0;
@@ -16430,21 +16564,21 @@ var richTextToolbarButton = import_react155.css`
16430
16564
  min-width: 32px;
16431
16565
  padding: 0 var(--spacing-sm);
16432
16566
  `;
16433
- var richTextToolbarButtonActive = import_react155.css`
16567
+ var richTextToolbarButtonActive = import_react157.css`
16434
16568
  background: var(--gray-200);
16435
16569
  `;
16436
- var textStyleButton = import_react155.css`
16570
+ var textStyleButton = import_react157.css`
16437
16571
  justify-content: space-between;
16438
16572
  min-width: 7rem;
16439
16573
  `;
16440
- var toolbarIcon = import_react155.css`
16574
+ var toolbarIcon = import_react157.css`
16441
16575
  color: inherit;
16442
16576
  `;
16443
- var toolbarChevron = import_react155.css`
16577
+ var toolbarChevron = import_react157.css`
16444
16578
  margin-left: var(--spacing-xs);
16445
16579
  `;
16446
16580
  var RichTextToolbarIcon = ({ icon }) => {
16447
- return /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Icon, { icon, css: toolbarIcon, size: "1rem" });
16581
+ return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Icon, { icon, css: toolbarIcon, size: "1rem" });
16448
16582
  };
16449
16583
  var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset }) => {
16450
16584
  const [editor] = (0, import_LexicalComposerContext8.useLexicalComposerContext)();
@@ -16500,7 +16634,7 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
16500
16634
  });
16501
16635
  });
16502
16636
  };
16503
- const updateToolbar = (0, import_react156.useCallback)(() => {
16637
+ const updateToolbar = (0, import_react158.useCallback)(() => {
16504
16638
  const selection = (0, import_lexical9.$getSelection)();
16505
16639
  if (!(0, import_lexical9.$isRangeSelection)(selection)) {
16506
16640
  return;
@@ -16539,7 +16673,7 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
16539
16673
  setIsLink(false);
16540
16674
  }
16541
16675
  }, [editor, setActiveElement, setActiveFormats, setIsLink]);
16542
- (0, import_react156.useEffect)(() => {
16676
+ (0, import_react158.useEffect)(() => {
16543
16677
  return editor.registerCommand(
16544
16678
  import_lexical9.SELECTION_CHANGE_COMMAND,
16545
16679
  (_payload) => {
@@ -16549,7 +16683,7 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
16549
16683
  import_lexical9.COMMAND_PRIORITY_CRITICAL
16550
16684
  );
16551
16685
  }, [editor, updateToolbar]);
16552
- (0, import_react156.useEffect)(() => {
16686
+ (0, import_react158.useEffect)(() => {
16553
16687
  return editor.registerUpdateListener(({ editorState }) => {
16554
16688
  requestAnimationFrame(() => {
16555
16689
  editorState.read(() => {
@@ -16558,14 +16692,14 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
16558
16692
  });
16559
16693
  });
16560
16694
  }, [editor, updateToolbar]);
16561
- return /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)("div", { css: toolbar, "data-testid": "rich-text-toolbar", children: [
16562
- /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(
16695
+ return /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)("div", { css: toolbar, "data-testid": "rich-text-toolbar", children: [
16696
+ /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
16563
16697
  Menu,
16564
16698
  {
16565
- menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)("button", { css: [richTextToolbarButton, textStyleButton], title: "Text styles", type: "button", children: [
16699
+ menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)("button", { css: [richTextToolbarButton, textStyleButton], title: "Text styles", type: "button", children: [
16566
16700
  visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
16567
16701
  " ",
16568
- /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
16702
+ /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
16569
16703
  ] }),
16570
16704
  placement: "bottom-start",
16571
16705
  children: [
@@ -16575,7 +16709,7 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
16575
16709
  type: "paragraph"
16576
16710
  },
16577
16711
  ...visibleTextualElements
16578
- ].map((element) => /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
16712
+ ].map((element) => /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
16579
16713
  MenuItem,
16580
16714
  {
16581
16715
  "data-testid": "menu-item",
@@ -16586,12 +16720,12 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
16586
16720
  },
16587
16721
  element.type
16588
16722
  )),
16589
- visibleTextualElements.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
16723
+ visibleTextualElements.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
16590
16724
  ]
16591
16725
  }
16592
16726
  ),
16593
- visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)("div", { css: toolbarGroup, "data-testid": "rich-text-toolbar-formatting", children: [
16594
- visibleFormatsWithIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
16727
+ visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)("div", { css: toolbarGroup, "data-testid": "rich-text-toolbar-formatting", children: [
16728
+ visibleFormatsWithIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
16595
16729
  "button",
16596
16730
  {
16597
16731
  "data-testid": `formatting-button-${format.type}`,
@@ -16603,15 +16737,15 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
16603
16737
  richTextToolbarButton,
16604
16738
  activeFormats.includes(format.type) ? richTextToolbarButtonActive : null
16605
16739
  ],
16606
- children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
16740
+ children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
16607
16741
  }
16608
16742
  ) }, format.type)),
16609
- visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
16743
+ visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
16610
16744
  Menu,
16611
16745
  {
16612
- menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)("button", { css: richTextToolbarButton, title: "Alternative text styles", type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Icon, { icon: "more-alt", css: toolbarIcon }) }),
16746
+ menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("button", { css: richTextToolbarButton, title: "Alternative text styles", type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Icon, { icon: "more-alt", css: toolbarIcon }) }),
16613
16747
  placement: "bottom-start",
16614
- children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
16748
+ children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
16615
16749
  MenuItem,
16616
16750
  {
16617
16751
  onClick: () => {
@@ -16624,8 +16758,8 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
16624
16758
  }
16625
16759
  ) : null
16626
16760
  ] }) : null,
16627
- visibleElementsWithIcons.size > 0 || customControls ? /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)("div", { css: toolbarGroup, "data-testid": "rich-text-toolbar-elements", children: [
16628
- linkElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
16761
+ visibleElementsWithIcons.size > 0 || customControls ? /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)("div", { css: toolbarGroup, "data-testid": "rich-text-toolbar-elements", children: [
16762
+ linkElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
16629
16763
  "button",
16630
16764
  {
16631
16765
  "data-testid": "element-link",
@@ -16638,11 +16772,11 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
16638
16772
  }
16639
16773
  },
16640
16774
  css: [richTextToolbarButton, isLink ? richTextToolbarButtonActive : null],
16641
- children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(RichTextToolbarIcon, { icon: "link" })
16775
+ children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(RichTextToolbarIcon, { icon: "link" })
16642
16776
  }
16643
16777
  ) }) : null,
16644
- visibleLists.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(import_jsx_runtime129.Fragment, { children: [
16645
- visibleLists.has("unorderedList") ? /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
16778
+ visibleLists.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(import_jsx_runtime130.Fragment, { children: [
16779
+ visibleLists.has("unorderedList") ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
16646
16780
  "button",
16647
16781
  {
16648
16782
  "data-testid": "element-unordered-list",
@@ -16658,10 +16792,10 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
16658
16792
  richTextToolbarButton,
16659
16793
  activeElement === "unorderedList" ? richTextToolbarButtonActive : null
16660
16794
  ],
16661
- children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(RichTextToolbarIcon, { icon: "layout-list" })
16795
+ children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(RichTextToolbarIcon, { icon: "layout-list" })
16662
16796
  }
16663
16797
  ) }) : null,
16664
- visibleLists.has("orderedList") ? /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
16798
+ visibleLists.has("orderedList") ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
16665
16799
  "button",
16666
16800
  {
16667
16801
  "data-testid": "element-ordered-list",
@@ -16677,58 +16811,58 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
16677
16811
  richTextToolbarButton,
16678
16812
  activeElement === "orderedList" ? richTextToolbarButtonActive : null
16679
16813
  ],
16680
- children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(RichTextToolbarIcon, { icon: "layout-list-numbered" })
16814
+ children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(RichTextToolbarIcon, { icon: "layout-list-numbered" })
16681
16815
  }
16682
16816
  ) }) : null
16683
16817
  ] }) : null,
16684
16818
  customControls ? customControls : null
16685
16819
  ] }) : null,
16686
- visibleInsertElementsWithIcons.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime129.jsx)("div", { css: toolbarGroup, "data-testid": "rich-text-toolbar-insert", children: /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(
16820
+ visibleInsertElementsWithIcons.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("div", { css: toolbarGroup, "data-testid": "rich-text-toolbar-insert", children: /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
16687
16821
  Menu,
16688
16822
  {
16689
- menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)("button", { css: richTextToolbarButton, title: "Insert block element", type: "button", children: [
16823
+ menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)("button", { css: richTextToolbarButton, title: "Insert block element", type: "button", children: [
16690
16824
  "Insert",
16691
- /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
16825
+ /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
16692
16826
  ] }),
16693
16827
  placement: "bottom-start",
16694
16828
  children: [
16695
- quoteElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
16829
+ quoteElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
16696
16830
  MenuItem,
16697
16831
  {
16698
16832
  onClick: () => {
16699
16833
  onSelectElement("quote");
16700
16834
  },
16701
- icon: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Icon, { icon: "quote", iconColor: "currentColor" }),
16835
+ icon: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Icon, { icon: "quote", iconColor: "currentColor" }),
16702
16836
  children: "Quote"
16703
16837
  }
16704
16838
  ) : null,
16705
- codeElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
16839
+ codeElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
16706
16840
  MenuItem,
16707
16841
  {
16708
16842
  onClick: () => {
16709
16843
  onSelectElement("code");
16710
16844
  },
16711
- icon: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Icon, { icon: "code-slash", iconColor: "currentColor" }),
16845
+ icon: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Icon, { icon: "code-slash", iconColor: "currentColor" }),
16712
16846
  children: "Code"
16713
16847
  }
16714
16848
  ) : null,
16715
- tableElementVisible && onInsertTable !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
16849
+ tableElementVisible && onInsertTable !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
16716
16850
  MenuItem,
16717
16851
  {
16718
16852
  onClick: () => {
16719
16853
  onSelectElement("table");
16720
16854
  },
16721
- icon: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Icon, { icon: "view-grid", iconColor: "currentColor" }),
16855
+ icon: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Icon, { icon: "view-grid", iconColor: "currentColor" }),
16722
16856
  children: "Table"
16723
16857
  }
16724
16858
  ) : null,
16725
- assetElementVisible && onInsertAsset !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
16859
+ assetElementVisible && onInsertAsset !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
16726
16860
  MenuItem,
16727
16861
  {
16728
16862
  onClick: () => {
16729
16863
  onSelectElement("asset");
16730
16864
  },
16731
- icon: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Icon, { icon: "image", iconColor: "currentColor" }),
16865
+ icon: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Icon, { icon: "image", iconColor: "currentColor" }),
16732
16866
  children: "Asset"
16733
16867
  }
16734
16868
  ) : null
@@ -16740,7 +16874,7 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
16740
16874
  var RichTextToolbar_default = RichTextToolbar;
16741
16875
 
16742
16876
  // src/components/ParameterInputs/ParameterRichText.tsx
16743
- var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
16877
+ var import_jsx_runtime131 = require("@emotion/react/jsx-runtime");
16744
16878
  var ParameterRichText = ({
16745
16879
  label,
16746
16880
  labelLeadingIcon,
@@ -16769,7 +16903,7 @@ var ParameterRichText = ({
16769
16903
  onInsertAsset,
16770
16904
  minimalInteractivity
16771
16905
  }) => {
16772
- return /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
16906
+ return /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(
16773
16907
  ParameterShell,
16774
16908
  {
16775
16909
  "data-testid": "parameter-richtext",
@@ -16783,7 +16917,7 @@ var ParameterRichText = ({
16783
16917
  captionTestId,
16784
16918
  menuItems,
16785
16919
  children: [
16786
- /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
16920
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
16787
16921
  ParameterRichTextInner,
16788
16922
  {
16789
16923
  value,
@@ -16805,12 +16939,12 @@ var ParameterRichText = ({
16805
16939
  children
16806
16940
  }
16807
16941
  ),
16808
- menuItems ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_jsx_runtime130.Fragment, { children: menuItems }) }) : null
16942
+ menuItems ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_jsx_runtime131.Fragment, { children: menuItems }) }) : null
16809
16943
  ]
16810
16944
  }
16811
16945
  );
16812
16946
  };
16813
- var editorContainerWrapper = import_react157.css`
16947
+ var editorContainerWrapper = import_react159.css`
16814
16948
  position: relative;
16815
16949
 
16816
16950
  &::before {
@@ -16826,12 +16960,12 @@ var editorContainerWrapper = import_react157.css`
16826
16960
  z-index: 2;
16827
16961
  }
16828
16962
  `;
16829
- var editorWrapper = import_react157.css`
16963
+ var editorWrapper = import_react159.css`
16830
16964
  display: flex;
16831
16965
  flex-flow: column;
16832
16966
  flex-grow: 1;
16833
16967
  `;
16834
- var editorContainer = import_react157.css`
16968
+ var editorContainer = import_react159.css`
16835
16969
  ${scrollbarStyles}
16836
16970
  background: var(--white);
16837
16971
  border-radius: var(--rounded-sm);
@@ -16863,7 +16997,7 @@ var editorContainer = import_react157.css`
16863
16997
  max-height: unset;
16864
16998
  }
16865
16999
  `;
16866
- var editorContainerOverflowWrapper = import_react157.css`
17000
+ var editorContainerOverflowWrapper = import_react159.css`
16867
17001
  overflow: hidden;
16868
17002
  pointer-events: none;
16869
17003
 
@@ -16871,7 +17005,7 @@ var editorContainerOverflowWrapper = import_react157.css`
16871
17005
  pointer-events: auto;
16872
17006
  }
16873
17007
  `;
16874
- var editorPlaceholder = import_react157.css`
17008
+ var editorPlaceholder = import_react159.css`
16875
17009
  color: var(--gray-500);
16876
17010
  font-style: italic;
16877
17011
  /* 1px is added to make sure caret is clearly visible when field is focused
@@ -16882,7 +17016,7 @@ var editorPlaceholder = import_react157.css`
16882
17016
  top: calc(1rem + var(--spacing-sm));
16883
17017
  user-select: none;
16884
17018
  `;
16885
- var editorInput = import_react157.css`
17019
+ var editorInput = import_react159.css`
16886
17020
  min-height: 100%;
16887
17021
  flex-grow: 1;
16888
17022
 
@@ -16966,8 +17100,8 @@ var ParameterRichTextInner = ({
16966
17100
  },
16967
17101
  editable: !readOnly
16968
17102
  };
16969
- return /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(import_jsx_runtime130.Fragment, { children: [
16970
- /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_LexicalComposer.LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
17103
+ return /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(import_jsx_runtime131.Fragment, { children: [
17104
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_LexicalComposer.LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
16971
17105
  RichText,
16972
17106
  {
16973
17107
  onChange,
@@ -17013,12 +17147,12 @@ var RichText = ({
17013
17147
  minimalInteractivity
17014
17148
  }) => {
17015
17149
  const [editor] = (0, import_LexicalComposerContext9.useLexicalComposerContext)();
17016
- (0, import_react158.useEffect)(() => {
17150
+ (0, import_react160.useEffect)(() => {
17017
17151
  if (onRichTextInit) {
17018
17152
  onRichTextInit(editor);
17019
17153
  }
17020
17154
  }, [editor, onRichTextInit]);
17021
- (0, import_react158.useEffect)(() => {
17155
+ (0, import_react160.useEffect)(() => {
17022
17156
  const removeUpdateListener = editor.registerUpdateListener(({ editorState, prevEditorState, tags }) => {
17023
17157
  requestAnimationFrame(() => {
17024
17158
  const previousEditorState = prevEditorState.toJSON();
@@ -17035,23 +17169,23 @@ var RichText = ({
17035
17169
  removeUpdateListener();
17036
17170
  };
17037
17171
  }, [editor, onChange]);
17038
- (0, import_react158.useEffect)(() => {
17172
+ (0, import_react160.useEffect)(() => {
17039
17173
  editor.setEditable(!readOnly);
17040
17174
  }, [editor, readOnly]);
17041
- const [editorContainerRef, setEditorContainerRef] = (0, import_react158.useState)(null);
17175
+ const [editorContainerRef, setEditorContainerRef] = (0, import_react160.useState)(null);
17042
17176
  const onEditorContainerRef = (_editorContainerRef) => {
17043
17177
  if (_editorContainerRef !== null) {
17044
17178
  setEditorContainerRef(_editorContainerRef);
17045
17179
  }
17046
17180
  };
17047
- const [portalContainerRef, setPortalContainerRef] = (0, import_react158.useState)(null);
17181
+ const [portalContainerRef, setPortalContainerRef] = (0, import_react160.useState)(null);
17048
17182
  const onPortalContainerRef = (_portalContainerRef) => {
17049
17183
  if (_portalContainerRef !== null) {
17050
17184
  setPortalContainerRef(_portalContainerRef);
17051
17185
  }
17052
17186
  };
17053
- return /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(import_jsx_runtime130.Fragment, { children: [
17054
- readOnly || minimalInteractivity ? null : /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
17187
+ return /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(import_jsx_runtime131.Fragment, { children: [
17188
+ readOnly || minimalInteractivity ? null : /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
17055
17189
  RichTextToolbar_default,
17056
17190
  {
17057
17191
  config,
@@ -17060,8 +17194,8 @@ var RichText = ({
17060
17194
  onInsertAsset
17061
17195
  }
17062
17196
  ),
17063
- /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)("div", { css: editorContainerWrapper, ref: onPortalContainerRef, children: [
17064
- /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
17197
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)("div", { css: editorContainerWrapper, ref: onPortalContainerRef, children: [
17198
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(
17065
17199
  "div",
17066
17200
  {
17067
17201
  css: editorContainer,
@@ -17069,33 +17203,33 @@ var RichText = ({
17069
17203
  ref: onEditorContainerRef,
17070
17204
  "data-testid": "value-container",
17071
17205
  children: [
17072
- /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
17206
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
17073
17207
  import_LexicalRichTextPlugin.RichTextPlugin,
17074
17208
  {
17075
- contentEditable: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_LexicalContentEditable.ContentEditable, { css: editorInput, className: editorInputClassName }),
17076
- placeholder: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
17209
+ contentEditable: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_LexicalContentEditable.ContentEditable, { css: editorInput, className: editorInputClassName }),
17210
+ placeholder: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
17077
17211
  ErrorBoundary: import_LexicalErrorBoundary.default
17078
17212
  }
17079
17213
  ),
17080
- /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_LexicalListPlugin.ListPlugin, {}),
17081
- /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(ListIndentPlugin, { maxDepth: 4 }),
17082
- /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_LexicalTablePlugin.TablePlugin, { hasCellMerge: false, hasCellBackgroundColor: false }),
17083
- /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("div", { css: editorContainerOverflowWrapper, "data-testid": "table-action-menu-plugin", children: editorContainerRef && portalContainerRef && !minimalInteractivity ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
17214
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_LexicalListPlugin.ListPlugin, {}),
17215
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(ListIndentPlugin, { maxDepth: 4 }),
17216
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_LexicalTablePlugin.TablePlugin, { hasCellMerge: false, hasCellBackgroundColor: false }),
17217
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("div", { css: editorContainerOverflowWrapper, "data-testid": "table-action-menu-plugin", children: editorContainerRef && portalContainerRef && !minimalInteractivity ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
17084
17218
  TableActionMenuPlugin,
17085
17219
  {
17086
17220
  positioningAnchorEl: editorContainerRef,
17087
17221
  menuPortalEl: portalContainerRef
17088
17222
  }
17089
17223
  ) : null }),
17090
- editorContainerRef && !minimalInteractivity ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(TableCellResizerPlugin, { positioningAnchorEl: editorContainerRef }) : null,
17091
- readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_LexicalHistoryPlugin.HistoryPlugin, {}),
17092
- /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(DisableStylesPlugin, {}),
17093
- /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_LexicalMarkdownShortcutPlugin.MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS })
17224
+ editorContainerRef && !minimalInteractivity ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(TableCellResizerPlugin, { positioningAnchorEl: editorContainerRef }) : null,
17225
+ readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_LexicalHistoryPlugin.HistoryPlugin, {}),
17226
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(DisableStylesPlugin, {}),
17227
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_LexicalMarkdownShortcutPlugin.MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS })
17094
17228
  ]
17095
17229
  }
17096
17230
  ),
17097
- /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_jsx_runtime130.Fragment, { children }),
17098
- editorContainerRef ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
17231
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_jsx_runtime131.Fragment, { children }),
17232
+ editorContainerRef ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
17099
17233
  LinkNodePlugin,
17100
17234
  {
17101
17235
  onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve(),
@@ -17106,26 +17240,26 @@ var RichText = ({
17106
17240
  positioningAnchorEl: editorContainerRef
17107
17241
  }
17108
17242
  ) : null,
17109
- /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(TableSelectionPlugin_default, {}),
17110
- /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(ImprovedAssetSelectionPlugin_default, {})
17243
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(TableSelectionPlugin_default, {}),
17244
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(ImprovedAssetSelectionPlugin_default, {})
17111
17245
  ] })
17112
17246
  ] });
17113
17247
  };
17114
17248
 
17115
17249
  // src/components/ParameterInputs/ParameterSelect.tsx
17116
17250
  init_emotion_jsx_shim();
17117
- var import_react159 = require("react");
17118
- var import_jsx_runtime131 = require("@emotion/react/jsx-runtime");
17119
- var ParameterSelect = (0, import_react159.forwardRef)(
17251
+ var import_react161 = require("react");
17252
+ var import_jsx_runtime132 = require("@emotion/react/jsx-runtime");
17253
+ var ParameterSelect = (0, import_react161.forwardRef)(
17120
17254
  ({ defaultOption, options, ...props }, ref) => {
17121
17255
  const { shellProps, innerProps } = extractParameterProps(props);
17122
- return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
17256
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
17123
17257
  }
17124
17258
  );
17125
- var ParameterSelectInner = (0, import_react159.forwardRef)(
17259
+ var ParameterSelectInner = (0, import_react161.forwardRef)(
17126
17260
  ({ defaultOption, options, ...props }, ref) => {
17127
17261
  const { id, label, hiddenLabel } = useParameterShell();
17128
- return /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(
17262
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
17129
17263
  "select",
17130
17264
  {
17131
17265
  css: [input3, selectInput],
@@ -17134,10 +17268,10 @@ var ParameterSelectInner = (0, import_react159.forwardRef)(
17134
17268
  ref,
17135
17269
  ...props,
17136
17270
  children: [
17137
- defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("option", { value: "", children: defaultOption }) : null,
17271
+ defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("option", { value: "", children: defaultOption }) : null,
17138
17272
  options.map((option) => {
17139
17273
  var _a;
17140
- return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
17274
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
17141
17275
  })
17142
17276
  ]
17143
17277
  }
@@ -17147,15 +17281,15 @@ var ParameterSelectInner = (0, import_react159.forwardRef)(
17147
17281
 
17148
17282
  // src/components/ParameterInputs/ParameterTextarea.tsx
17149
17283
  init_emotion_jsx_shim();
17150
- var import_react160 = require("react");
17151
- var import_jsx_runtime132 = require("@emotion/react/jsx-runtime");
17152
- var ParameterTextarea = (0, import_react160.forwardRef)((props, ref) => {
17284
+ var import_react162 = require("react");
17285
+ var import_jsx_runtime133 = require("@emotion/react/jsx-runtime");
17286
+ var ParameterTextarea = (0, import_react162.forwardRef)((props, ref) => {
17153
17287
  const { shellProps, innerProps } = extractParameterProps(props);
17154
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(ParameterTextareaInner, { ref, ...innerProps }) });
17288
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(ParameterTextareaInner, { ref, ...innerProps }) });
17155
17289
  });
17156
- var ParameterTextareaInner = (0, import_react160.forwardRef)(({ ...props }, ref) => {
17290
+ var ParameterTextareaInner = (0, import_react162.forwardRef)(({ ...props }, ref) => {
17157
17291
  const { id, label, hiddenLabel } = useParameterShell();
17158
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
17292
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
17159
17293
  "textarea",
17160
17294
  {
17161
17295
  css: [input3, textarea2],
@@ -17169,18 +17303,18 @@ var ParameterTextareaInner = (0, import_react160.forwardRef)(({ ...props }, ref)
17169
17303
 
17170
17304
  // src/components/ParameterInputs/ParameterToggle.tsx
17171
17305
  init_emotion_jsx_shim();
17172
- var import_react161 = require("react");
17173
- var import_jsx_runtime133 = require("@emotion/react/jsx-runtime");
17174
- var ParameterToggle = (0, import_react161.forwardRef)((props, ref) => {
17306
+ var import_react163 = require("react");
17307
+ var import_jsx_runtime134 = require("@emotion/react/jsx-runtime");
17308
+ var ParameterToggle = (0, import_react163.forwardRef)((props, ref) => {
17175
17309
  const { shellProps, innerProps } = extractParameterProps(props);
17176
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(ParameterToggleInner, { ref, ...innerProps }) });
17310
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(ParameterToggleInner, { ref, ...innerProps }) });
17177
17311
  });
17178
- var ParameterToggleInner = (0, import_react161.forwardRef)(
17312
+ var ParameterToggleInner = (0, import_react163.forwardRef)(
17179
17313
  ({ children, ...props }, ref) => {
17180
17314
  const { id, label } = useParameterShell();
17181
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)("label", { css: inputToggleLabel2, children: [
17182
- /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
17183
- /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("span", { css: inlineLabel2, children: label }),
17315
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)("label", { css: inputToggleLabel2, children: [
17316
+ /* @__PURE__ */ (0, import_jsx_runtime134.jsx)("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
17317
+ /* @__PURE__ */ (0, import_jsx_runtime134.jsx)("span", { css: inlineLabel2, children: label }),
17184
17318
  children
17185
17319
  ] });
17186
17320
  }
@@ -17191,8 +17325,8 @@ init_emotion_jsx_shim();
17191
17325
 
17192
17326
  // src/components/ProgressBar/ProgressBar.styles.ts
17193
17327
  init_emotion_jsx_shim();
17194
- var import_react162 = require("@emotion/react");
17195
- var container3 = import_react162.css`
17328
+ var import_react164 = require("@emotion/react");
17329
+ var container3 = import_react164.css`
17196
17330
  background: var(--gray-50);
17197
17331
  margin-block: var(--spacing-sm);
17198
17332
  position: relative;
@@ -17202,17 +17336,17 @@ var container3 = import_react162.css`
17202
17336
  border: solid 1px var(--gray-300);
17203
17337
  `;
17204
17338
  var themeMap = {
17205
- primary: import_react162.css`
17339
+ primary: import_react164.css`
17206
17340
  --progress-color: var(--accent-light);
17207
17341
  `,
17208
- secondary: import_react162.css`
17342
+ secondary: import_react164.css`
17209
17343
  --progress-color: var(--accent-alt-light);
17210
17344
  `,
17211
- destructive: import_react162.css`
17345
+ destructive: import_react164.css`
17212
17346
  --progress-color: var(--brand-secondary-5);
17213
17347
  `
17214
17348
  };
17215
- var slidingBackgroundPosition = import_react162.keyframes`
17349
+ var slidingBackgroundPosition = import_react164.keyframes`
17216
17350
  from {
17217
17351
  background-position: 0 0;
17218
17352
  }
@@ -17220,10 +17354,10 @@ var slidingBackgroundPosition = import_react162.keyframes`
17220
17354
  background-position: 64px 0;
17221
17355
  }
17222
17356
  `;
17223
- var determinate = import_react162.css`
17357
+ var determinate = import_react164.css`
17224
17358
  background-color: var(--progress-color);
17225
17359
  `;
17226
- var indeterminate = import_react162.css`
17360
+ var indeterminate = import_react164.css`
17227
17361
  background-image: linear-gradient(
17228
17362
  45deg,
17229
17363
  var(--progress-color) 25%,
@@ -17237,7 +17371,7 @@ var indeterminate = import_react162.css`
17237
17371
  background-size: 64px 64px;
17238
17372
  animation: ${slidingBackgroundPosition} 1s linear infinite;
17239
17373
  `;
17240
- var bar = import_react162.css`
17374
+ var bar = import_react164.css`
17241
17375
  position: absolute;
17242
17376
  inset: 0;
17243
17377
  transition: transform var(--duration-fast) var(--timing-ease-out);
@@ -17245,7 +17379,7 @@ var bar = import_react162.css`
17245
17379
  `;
17246
17380
 
17247
17381
  // src/components/ProgressBar/ProgressBar.tsx
17248
- var import_jsx_runtime134 = require("@emotion/react/jsx-runtime");
17382
+ var import_jsx_runtime135 = require("@emotion/react/jsx-runtime");
17249
17383
  function ProgressBar({
17250
17384
  current,
17251
17385
  max,
@@ -17255,7 +17389,7 @@ function ProgressBar({
17255
17389
  }) {
17256
17390
  const valueNow = Math.min(current, max);
17257
17391
  const valuePercentage = max > 0 ? Math.ceil(100 / max * valueNow) : 0;
17258
- return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
17392
+ return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
17259
17393
  "div",
17260
17394
  {
17261
17395
  css: container3,
@@ -17266,7 +17400,7 @@ function ProgressBar({
17266
17400
  "aria-valuemax": max,
17267
17401
  "aria-valuenow": valueNow,
17268
17402
  ...props,
17269
- children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
17403
+ children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
17270
17404
  "div",
17271
17405
  {
17272
17406
  css: [
@@ -17286,31 +17420,31 @@ function ProgressBar({
17286
17420
 
17287
17421
  // src/components/ProgressList/ProgressList.tsx
17288
17422
  init_emotion_jsx_shim();
17289
- var import_react164 = require("@emotion/react");
17423
+ var import_react166 = require("@emotion/react");
17290
17424
  var import_CgCheckO3 = require("@react-icons/all-files/cg/CgCheckO");
17291
17425
  var import_CgRadioCheck2 = require("@react-icons/all-files/cg/CgRadioCheck");
17292
17426
  var import_CgRecord2 = require("@react-icons/all-files/cg/CgRecord");
17293
- var import_react165 = require("react");
17427
+ var import_react167 = require("react");
17294
17428
 
17295
17429
  // src/components/ProgressList/styles/ProgressList.styles.ts
17296
17430
  init_emotion_jsx_shim();
17297
- var import_react163 = require("@emotion/react");
17298
- var progressListStyles = import_react163.css`
17431
+ var import_react165 = require("@emotion/react");
17432
+ var progressListStyles = import_react165.css`
17299
17433
  display: flex;
17300
17434
  flex-direction: column;
17301
17435
  gap: var(--spacing-sm);
17302
17436
  list-style-type: none;
17303
17437
  `;
17304
- var progressListItemStyles = import_react163.css`
17438
+ var progressListItemStyles = import_react165.css`
17305
17439
  display: flex;
17306
17440
  gap: var(--spacing-base);
17307
17441
  align-items: center;
17308
17442
  `;
17309
17443
 
17310
17444
  // src/components/ProgressList/ProgressList.tsx
17311
- var import_jsx_runtime135 = require("@emotion/react/jsx-runtime");
17445
+ var import_jsx_runtime136 = require("@emotion/react/jsx-runtime");
17312
17446
  var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
17313
- const itemsWithStatus = (0, import_react165.useMemo)(() => {
17447
+ const itemsWithStatus = (0, import_react167.useMemo)(() => {
17314
17448
  const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
17315
17449
  return items.map((item, index) => {
17316
17450
  let status = "queued";
@@ -17322,8 +17456,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
17322
17456
  return { ...item, status };
17323
17457
  });
17324
17458
  }, [items, inProgressId]);
17325
- return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
17326
- return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
17459
+ return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
17460
+ return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
17327
17461
  ProgressListItem,
17328
17462
  {
17329
17463
  status,
@@ -17343,7 +17477,7 @@ var ProgressListItem = ({
17343
17477
  errorLevel = "danger",
17344
17478
  autoEllipsis = false
17345
17479
  }) => {
17346
- const icon = (0, import_react165.useMemo)(() => {
17480
+ const icon = (0, import_react167.useMemo)(() => {
17347
17481
  if (error) {
17348
17482
  return warningIcon;
17349
17483
  }
@@ -17354,14 +17488,14 @@ var ProgressListItem = ({
17354
17488
  };
17355
17489
  return iconPerStatus[status];
17356
17490
  }, [status, error]);
17357
- const statusStyles = (0, import_react165.useMemo)(() => {
17491
+ const statusStyles = (0, import_react167.useMemo)(() => {
17358
17492
  if (error) {
17359
- return errorLevel === "caution" ? import_react164.css`
17493
+ return errorLevel === "caution" ? import_react166.css`
17360
17494
  color: rgb(161, 98, 7);
17361
17495
  & svg {
17362
17496
  color: rgb(250, 204, 21);
17363
17497
  }
17364
- ` : import_react164.css`
17498
+ ` : import_react166.css`
17365
17499
  color: rgb(185, 28, 28);
17366
17500
  & svg {
17367
17501
  color: var(--brand-primary-2);
@@ -17369,40 +17503,40 @@ var ProgressListItem = ({
17369
17503
  `;
17370
17504
  }
17371
17505
  const colorPerStatus = {
17372
- completed: import_react164.css`
17506
+ completed: import_react166.css`
17373
17507
  opacity: 0.75;
17374
17508
  `,
17375
- inProgress: import_react164.css`
17509
+ inProgress: import_react166.css`
17376
17510
  -webkit-text-stroke-width: thin;
17377
17511
  `,
17378
- queued: import_react164.css`
17512
+ queued: import_react166.css`
17379
17513
  opacity: 0.5;
17380
17514
  `
17381
17515
  };
17382
17516
  return colorPerStatus[status];
17383
17517
  }, [status, error, errorLevel]);
17384
- return /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("li", { css: [progressListItemStyles, statusStyles], children: [
17385
- /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
17386
- /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { children: [
17518
+ return /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)("li", { css: [progressListItemStyles, statusStyles], children: [
17519
+ /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
17520
+ /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)("div", { children: [
17387
17521
  children,
17388
- /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
17522
+ /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
17389
17523
  ] })
17390
17524
  ] });
17391
17525
  };
17392
17526
 
17393
17527
  // src/components/SegmentedControl/SegmentedControl.tsx
17394
17528
  init_emotion_jsx_shim();
17395
- var import_react167 = require("@emotion/react");
17529
+ var import_react169 = require("@emotion/react");
17396
17530
  var import_CgCheck6 = require("@react-icons/all-files/cg/CgCheck");
17397
- var import_react168 = require("react");
17531
+ var import_react170 = require("react");
17398
17532
 
17399
17533
  // src/components/SegmentedControl/SegmentedControl.styles.ts
17400
17534
  init_emotion_jsx_shim();
17401
- var import_react166 = require("@emotion/react");
17402
- var segmentedControlRootStyles = import_react166.css`
17535
+ var import_react168 = require("@emotion/react");
17536
+ var segmentedControlRootStyles = import_react168.css`
17403
17537
  position: relative;
17404
17538
  `;
17405
- var segmentedControlScrollIndicatorsStyles = import_react166.css`
17539
+ var segmentedControlScrollIndicatorsStyles = import_react168.css`
17406
17540
  position: absolute;
17407
17541
  inset: 0;
17408
17542
  z-index: 1;
@@ -17430,17 +17564,17 @@ var segmentedControlScrollIndicatorsStyles = import_react166.css`
17430
17564
  background: linear-gradient(to left, var(--background-color) 10%, transparent);
17431
17565
  }
17432
17566
  `;
17433
- var segmentedControlScrollIndicatorStartVisibleStyles = import_react166.css`
17567
+ var segmentedControlScrollIndicatorStartVisibleStyles = import_react168.css`
17434
17568
  &::before {
17435
17569
  opacity: 1;
17436
17570
  }
17437
17571
  `;
17438
- var segmentedControlScrollIndicatorEndVisibleStyles = import_react166.css`
17572
+ var segmentedControlScrollIndicatorEndVisibleStyles = import_react168.css`
17439
17573
  &::after {
17440
17574
  opacity: 1;
17441
17575
  }
17442
17576
  `;
17443
- var segmentedControlWrapperStyles = import_react166.css`
17577
+ var segmentedControlWrapperStyles = import_react168.css`
17444
17578
  overflow-y: auto;
17445
17579
  scroll-behavior: smooth;
17446
17580
  scrollbar-width: none;
@@ -17449,7 +17583,7 @@ var segmentedControlWrapperStyles = import_react166.css`
17449
17583
  height: 0px;
17450
17584
  }
17451
17585
  `;
17452
- var segmentedControlStyles = import_react166.css`
17586
+ var segmentedControlStyles = import_react168.css`
17453
17587
  --segmented-control-rounded-value: var(--rounded-base);
17454
17588
  --segmented-control-border-width: 1px;
17455
17589
  --segmented-control-selected-color: var(--brand-secondary-3);
@@ -17468,14 +17602,14 @@ var segmentedControlStyles = import_react166.css`
17468
17602
  border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
17469
17603
  font-size: var(--fs-xs);
17470
17604
  `;
17471
- var segmentedControlVerticalStyles = import_react166.css`
17605
+ var segmentedControlVerticalStyles = import_react168.css`
17472
17606
  flex-direction: column;
17473
17607
  --segmented-control-first-border-radius: var(--segmented-control-rounded-value)
17474
17608
  var(--segmented-control-rounded-value) 0 0;
17475
17609
  --segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
17476
17610
  var(--segmented-control-rounded-value);
17477
17611
  `;
17478
- var segmentedControlItemStyles = import_react166.css`
17612
+ var segmentedControlItemStyles = import_react168.css`
17479
17613
  &:first-of-type label {
17480
17614
  border-radius: var(--segmented-control-first-border-radius);
17481
17615
  }
@@ -17483,10 +17617,10 @@ var segmentedControlItemStyles = import_react166.css`
17483
17617
  border-radius: var(--segmented-control-last-border-radius);
17484
17618
  }
17485
17619
  `;
17486
- var segmentedControlInputStyles = import_react166.css`
17620
+ var segmentedControlInputStyles = import_react168.css`
17487
17621
  ${accessibleHidden}
17488
17622
  `;
17489
- var segmentedControlLabelStyles = (checked, disabled2) => import_react166.css`
17623
+ var segmentedControlLabelStyles = (checked, disabled2) => import_react168.css`
17490
17624
  position: relative;
17491
17625
  display: flex;
17492
17626
  align-items: center;
@@ -17550,25 +17684,25 @@ var segmentedControlLabelStyles = (checked, disabled2) => import_react166.css`
17550
17684
  `}
17551
17685
  }
17552
17686
  `;
17553
- var segmentedControlLabelIconOnlyStyles = import_react166.css`
17687
+ var segmentedControlLabelIconOnlyStyles = import_react168.css`
17554
17688
  padding-inline: 0.5em;
17555
17689
  `;
17556
- var segmentedControlLabelCheckStyles = import_react166.css`
17690
+ var segmentedControlLabelCheckStyles = import_react168.css`
17557
17691
  opacity: 0.5;
17558
17692
  `;
17559
- var segmentedControlLabelContentStyles = import_react166.css`
17693
+ var segmentedControlLabelContentStyles = import_react168.css`
17560
17694
  display: flex;
17561
17695
  align-items: center;
17562
17696
  justify-content: center;
17563
17697
  gap: var(--spacing-sm);
17564
17698
  height: 100%;
17565
17699
  `;
17566
- var segmentedControlLabelTextStyles = import_react166.css`
17700
+ var segmentedControlLabelTextStyles = import_react168.css`
17567
17701
  white-space: nowrap;
17568
17702
  `;
17569
17703
 
17570
17704
  // src/components/SegmentedControl/SegmentedControl.tsx
17571
- var import_jsx_runtime136 = require("@emotion/react/jsx-runtime");
17705
+ var import_jsx_runtime137 = require("@emotion/react/jsx-runtime");
17572
17706
  var SegmentedControl = ({
17573
17707
  name,
17574
17708
  options,
@@ -17583,10 +17717,10 @@ var SegmentedControl = ({
17583
17717
  currentBackgroundColor = "white",
17584
17718
  ...props
17585
17719
  }) => {
17586
- const wrapperRef = (0, import_react168.useRef)(null);
17587
- const [isOverflowStartShadowVisible, setIsOverflowStartShadowVisible] = (0, import_react168.useState)(false);
17588
- const [isOverflowEndShadowVisible, setIsOverflowEndShadowVisible] = (0, import_react168.useState)(false);
17589
- const onOptionChange = (0, import_react168.useCallback)(
17720
+ const wrapperRef = (0, import_react170.useRef)(null);
17721
+ const [isOverflowStartShadowVisible, setIsOverflowStartShadowVisible] = (0, import_react170.useState)(false);
17722
+ const [isOverflowEndShadowVisible, setIsOverflowEndShadowVisible] = (0, import_react170.useState)(false);
17723
+ const onOptionChange = (0, import_react170.useCallback)(
17590
17724
  (event) => {
17591
17725
  if (event.target.checked) {
17592
17726
  onChange == null ? void 0 : onChange(options[parseInt(event.target.value)].value);
@@ -17594,19 +17728,19 @@ var SegmentedControl = ({
17594
17728
  },
17595
17729
  [options, onChange]
17596
17730
  );
17597
- const sizeStyles = (0, import_react168.useMemo)(() => {
17731
+ const sizeStyles = (0, import_react170.useMemo)(() => {
17598
17732
  const map = {
17599
- sm: (0, import_react167.css)({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
17600
- md: (0, import_react167.css)({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
17601
- lg: (0, import_react167.css)({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" }),
17602
- xl: (0, import_react167.css)({ height: "calc(48px - 2px)", fontSize: "var(--fs-base)" })
17733
+ sm: (0, import_react169.css)({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
17734
+ md: (0, import_react169.css)({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
17735
+ lg: (0, import_react169.css)({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" }),
17736
+ xl: (0, import_react169.css)({ height: "calc(48px - 2px)", fontSize: "var(--fs-base)" })
17603
17737
  };
17604
17738
  return map[size];
17605
17739
  }, [size]);
17606
- const isIconOnly = (0, import_react168.useMemo)(() => {
17740
+ const isIconOnly = (0, import_react170.useMemo)(() => {
17607
17741
  return options.every((option) => option && option.icon && !option.label);
17608
17742
  }, [options]);
17609
- (0, import_react168.useEffect)(() => {
17743
+ (0, import_react170.useEffect)(() => {
17610
17744
  const wrapperElement = wrapperRef.current;
17611
17745
  const onScroll = () => {
17612
17746
  if (!wrapperElement) {
@@ -17627,8 +17761,8 @@ var SegmentedControl = ({
17627
17761
  wrapperElement == null ? void 0 : wrapperElement.removeEventListener("scroll", onScroll);
17628
17762
  };
17629
17763
  }, []);
17630
- return /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)("div", { css: [segmentedControlRootStyles, { "--background-color": currentBackgroundColor }], children: [
17631
- /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("div", { ref: wrapperRef, css: segmentedControlWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
17764
+ return /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)("div", { css: [segmentedControlRootStyles, { "--background-color": currentBackgroundColor }], children: [
17765
+ /* @__PURE__ */ (0, import_jsx_runtime137.jsx)("div", { ref: wrapperRef, css: segmentedControlWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
17632
17766
  "div",
17633
17767
  {
17634
17768
  css: [
@@ -17645,12 +17779,12 @@ var SegmentedControl = ({
17645
17779
  const text = option.label ? option.label : option.icon ? null : String(option.value);
17646
17780
  const isDisabled = disabled2 || option.disabled;
17647
17781
  const isChecked = option.value === value;
17648
- return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Tooltip, { title: (_a = option.tooltip) != null ? _a : "", children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
17782
+ return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Tooltip, { title: (_a = option.tooltip) != null ? _a : "", children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
17649
17783
  "div",
17650
17784
  {
17651
17785
  css: segmentedControlItemStyles,
17652
17786
  "data-testid": option["data-testid"] ? option["data-testid"] : "container-segmented-control",
17653
- children: /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(
17787
+ children: /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(
17654
17788
  "label",
17655
17789
  {
17656
17790
  css: [
@@ -17659,7 +17793,7 @@ var SegmentedControl = ({
17659
17793
  isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
17660
17794
  ],
17661
17795
  children: [
17662
- /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
17796
+ /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
17663
17797
  "input",
17664
17798
  {
17665
17799
  css: segmentedControlInputStyles,
@@ -17671,10 +17805,10 @@ var SegmentedControl = ({
17671
17805
  disabled: isDisabled
17672
17806
  }
17673
17807
  ),
17674
- option.value !== value || noCheckmark ? null : /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(import_CgCheck6.CgCheck, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
17675
- /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)("span", { css: segmentedControlLabelContentStyles, children: [
17676
- !option.icon ? null : /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Icon, { icon: option.icon, size: iconSize, iconColor: "currentColor" }),
17677
- !text || hideOptionText ? null : /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("span", { css: segmentedControlLabelTextStyles, children: text })
17808
+ option.value !== value || noCheckmark ? null : /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_CgCheck6.CgCheck, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
17809
+ /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)("span", { css: segmentedControlLabelContentStyles, children: [
17810
+ !option.icon ? null : /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Icon, { icon: option.icon, size: iconSize, iconColor: "currentColor" }),
17811
+ !text || hideOptionText ? null : /* @__PURE__ */ (0, import_jsx_runtime137.jsx)("span", { css: segmentedControlLabelTextStyles, children: text })
17678
17812
  ] })
17679
17813
  ]
17680
17814
  }
@@ -17684,7 +17818,7 @@ var SegmentedControl = ({
17684
17818
  })
17685
17819
  }
17686
17820
  ) }),
17687
- /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
17821
+ /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
17688
17822
  "div",
17689
17823
  {
17690
17824
  css: [
@@ -17702,18 +17836,18 @@ init_emotion_jsx_shim();
17702
17836
 
17703
17837
  // src/components/Skeleton/Skeleton.styles.ts
17704
17838
  init_emotion_jsx_shim();
17705
- var import_react169 = require("@emotion/react");
17706
- var lightFadingOut = import_react169.keyframes`
17839
+ var import_react171 = require("@emotion/react");
17840
+ var lightFadingOut = import_react171.keyframes`
17707
17841
  from { opacity: 0.1; }
17708
17842
  to { opacity: 0.025; }
17709
17843
  `;
17710
- var skeletonStyles = import_react169.css`
17844
+ var skeletonStyles = import_react171.css`
17711
17845
  animation: ${lightFadingOut} 1s ease-out infinite alternate;
17712
17846
  background-color: var(--gray-900);
17713
17847
  `;
17714
17848
 
17715
17849
  // src/components/Skeleton/Skeleton.tsx
17716
- var import_jsx_runtime137 = require("@emotion/react/jsx-runtime");
17850
+ var import_jsx_runtime138 = require("@emotion/react/jsx-runtime");
17717
17851
  var Skeleton = ({
17718
17852
  width = "100%",
17719
17853
  height = "1.25rem",
@@ -17721,7 +17855,7 @@ var Skeleton = ({
17721
17855
  circle = false,
17722
17856
  children,
17723
17857
  ...otherProps
17724
- }) => /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
17858
+ }) => /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
17725
17859
  "div",
17726
17860
  {
17727
17861
  css: [
@@ -17745,12 +17879,12 @@ init_emotion_jsx_shim();
17745
17879
 
17746
17880
  // src/components/Spinner/Spinner.tsx
17747
17881
  init_emotion_jsx_shim();
17748
- var import_react171 = require("react");
17882
+ var import_react173 = require("react");
17749
17883
 
17750
17884
  // src/components/Spinner/Spinner.styles.ts
17751
17885
  init_emotion_jsx_shim();
17752
- var import_react170 = require("@emotion/react");
17753
- var SpinnerStyles = import_react170.css`
17886
+ var import_react172 = require("@emotion/react");
17887
+ var SpinnerStyles = import_react172.css`
17754
17888
  --color: #00b4ff;
17755
17889
  --speed: 5s;
17756
17890
  --red: rgb(218, 63, 50);
@@ -18180,18 +18314,18 @@ var SpinnerStyles = import_react170.css`
18180
18314
  `;
18181
18315
 
18182
18316
  // src/components/Spinner/Spinner.tsx
18183
- var import_jsx_runtime138 = require("@emotion/react/jsx-runtime");
18317
+ var import_jsx_runtime139 = require("@emotion/react/jsx-runtime");
18184
18318
  var Spinner = ({
18185
18319
  width,
18186
18320
  label,
18187
18321
  isPaused
18188
18322
  }) => {
18189
- const ref = (0, import_react171.useRef)(null);
18190
- (0, import_react171.useEffect)(() => {
18323
+ const ref = (0, import_react173.useRef)(null);
18324
+ (0, import_react173.useEffect)(() => {
18191
18325
  var _a, _b, _c;
18192
18326
  (_c = ref.current) == null ? void 0 : _c.style.setProperty("--pyramid-size", ((_b = (_a = ref.current) == null ? void 0 : _a.clientWidth) != null ? _b : 200) / 6 + "px");
18193
18327
  }, [width]);
18194
- return /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)(
18328
+ return /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)(
18195
18329
  "div",
18196
18330
  {
18197
18331
  ref,
@@ -18203,51 +18337,51 @@ var Spinner = ({
18203
18337
  css: SpinnerStyles,
18204
18338
  className: `container${isPaused ? " paused" : ""}`,
18205
18339
  children: [
18206
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "pyramid-container", children: /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)("div", { className: "pyramid top", children: [
18207
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "side one" }),
18208
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "side two" }),
18209
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "side three" }),
18210
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "side four" }),
18211
- /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)("div", { className: "bottom-pyramid", children: [
18212
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "side five" }),
18213
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "side six" }),
18214
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "side seven" }),
18215
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "side eight" })
18340
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "pyramid-container", children: /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)("div", { className: "pyramid top", children: [
18341
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "side one" }),
18342
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "side two" }),
18343
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "side three" }),
18344
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "side four" }),
18345
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)("div", { className: "bottom-pyramid", children: [
18346
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "side five" }),
18347
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "side six" }),
18348
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "side seven" }),
18349
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "side eight" })
18216
18350
  ] })
18217
18351
  ] }) }),
18218
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "turning-circle" }),
18219
- /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)("div", { className: "pulsating-star delay-top-right", children: [
18220
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-center" }),
18221
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-top" }),
18222
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-bottom" }),
18223
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-left" }),
18224
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-right" })
18352
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "turning-circle" }),
18353
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)("div", { className: "pulsating-star delay-top-right", children: [
18354
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-center" }),
18355
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-top" }),
18356
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-bottom" }),
18357
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-left" }),
18358
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-right" })
18225
18359
  ] }),
18226
- /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)("div", { className: "pulsating-star delay-top-left-2", children: [
18227
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-center" }),
18228
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-top" }),
18229
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-bottom" }),
18230
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-left" }),
18231
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-right" })
18360
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)("div", { className: "pulsating-star delay-top-left-2", children: [
18361
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-center" }),
18362
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-top" }),
18363
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-bottom" }),
18364
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-left" }),
18365
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-right" })
18232
18366
  ] }),
18233
- /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)("div", { className: "pulsating-star delay-top-left", children: [
18234
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-top" }),
18235
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-bottom" }),
18236
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-left" }),
18237
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-right" })
18367
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)("div", { className: "pulsating-star delay-top-left", children: [
18368
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-top" }),
18369
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-bottom" }),
18370
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-left" }),
18371
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-right" })
18238
18372
  ] }),
18239
- /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)("div", { className: "pulsating-star delay-bottom-right", children: [
18240
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-top" }),
18241
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-bottom" }),
18242
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-left" }),
18243
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-right" })
18373
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)("div", { className: "pulsating-star delay-bottom-right", children: [
18374
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-top" }),
18375
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-bottom" }),
18376
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-left" }),
18377
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-right" })
18244
18378
  ] }),
18245
- /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)("div", { className: "pulsating-star delay-bottom-left", children: [
18246
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-center" }),
18247
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-top" }),
18248
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-bottom" }),
18249
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-left" }),
18250
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "star-inner star-right" })
18379
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)("div", { className: "pulsating-star delay-bottom-left", children: [
18380
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-center" }),
18381
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-top" }),
18382
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-bottom" }),
18383
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-left" }),
18384
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "star-inner star-right" })
18251
18385
  ] })
18252
18386
  ]
18253
18387
  }
@@ -18256,12 +18390,12 @@ var Spinner = ({
18256
18390
 
18257
18391
  // src/components/Switch/Switch.tsx
18258
18392
  init_emotion_jsx_shim();
18259
- var import_react173 = require("react");
18393
+ var import_react175 = require("react");
18260
18394
 
18261
18395
  // src/components/Switch/Switch.styles.ts
18262
18396
  init_emotion_jsx_shim();
18263
- var import_react172 = require("@emotion/react");
18264
- var SwitchInputContainer = import_react172.css`
18397
+ var import_react174 = require("@emotion/react");
18398
+ var SwitchInputContainer = import_react174.css`
18265
18399
  cursor: pointer;
18266
18400
  display: inline-flex;
18267
18401
  position: relative;
@@ -18271,7 +18405,7 @@ var SwitchInputContainer = import_react172.css`
18271
18405
  user-select: none;
18272
18406
  z-index: 0;
18273
18407
  `;
18274
- var SwitchInput = (size) => import_react172.css`
18408
+ var SwitchInput = (size) => import_react174.css`
18275
18409
  appearance: none;
18276
18410
  border-radius: var(--rounded-full);
18277
18411
  background-color: var(--white);
@@ -18310,18 +18444,18 @@ var SwitchInput = (size) => import_react172.css`
18310
18444
  cursor: not-allowed;
18311
18445
  }
18312
18446
  `;
18313
- var SwitchInputCheckedDirectionLeft = import_react172.css`
18447
+ var SwitchInputCheckedDirectionLeft = import_react174.css`
18314
18448
  &:checked {
18315
18449
  transform: translateX(var(--spacing-base));
18316
18450
  }
18317
18451
  `;
18318
- var SwitchInputCheckedDirectionRight = import_react172.css`
18452
+ var SwitchInputCheckedDirectionRight = import_react174.css`
18319
18453
  transform: translateX(-var(--spacing-base));
18320
18454
  &:checked {
18321
18455
  transform: translateX(0);
18322
18456
  }
18323
18457
  `;
18324
- var SwitchInputDisabled = import_react172.css`
18458
+ var SwitchInputDisabled = import_react174.css`
18325
18459
  opacity: var(--opacity-50);
18326
18460
  cursor: not-allowed;
18327
18461
 
@@ -18329,19 +18463,19 @@ var SwitchInputDisabled = import_react172.css`
18329
18463
  cursor: not-allowed;
18330
18464
  }
18331
18465
  `;
18332
- var SwitchInputLabelAlignmentLeft = (size) => import_react172.css`
18466
+ var SwitchInputLabelAlignmentLeft = (size) => import_react174.css`
18333
18467
  padding-inline-start: ${size === "sm" ? "var(--spacing-xl)" : "var(--spacing-2xl)"};
18334
18468
  &:before {
18335
18469
  left: 0;
18336
18470
  }
18337
18471
  `;
18338
- var SwitchInputLabelAlignmentRight = (size) => import_react172.css`
18472
+ var SwitchInputLabelAlignmentRight = (size) => import_react174.css`
18339
18473
  padding-inline-end: ${size === "sm" ? "var(--spacing-xl)" : "var(--spacing-2xl)"};
18340
18474
  &:before {
18341
18475
  right: 0;
18342
18476
  }
18343
18477
  `;
18344
- var SwitchInputLabel = (size) => import_react172.css`
18478
+ var SwitchInputLabel = (size) => import_react174.css`
18345
18479
  align-items: center;
18346
18480
  color: var(--typography-base);
18347
18481
  display: inline-flex;
@@ -18361,26 +18495,26 @@ var SwitchInputLabel = (size) => import_react172.css`
18361
18495
  top: 0;
18362
18496
  }
18363
18497
  `;
18364
- var SwitchTextAlignmentLeft = (size) => import_react172.css`
18498
+ var SwitchTextAlignmentLeft = (size) => import_react174.css`
18365
18499
  padding-inline-start: ${size === "sm" ? "var(--spacing-xl)" : "var(--spacing-2xl)"};
18366
18500
  `;
18367
- var SwitchTextAlignmentRight = (size) => import_react172.css`
18501
+ var SwitchTextAlignmentRight = (size) => import_react174.css`
18368
18502
  padding-inline-end: ${size === "sm" ? "var(--spacing-xl)" : "var(--spacing-2xl)"};
18369
18503
  `;
18370
- var SwitchText = import_react172.css`
18504
+ var SwitchText = import_react174.css`
18371
18505
  color: var(--gray-500);
18372
18506
  font-size: var(--fs-sm);
18373
18507
  `;
18374
- var SwitchInputContainerAlignmentLeft = import_react172.css`
18508
+ var SwitchInputContainerAlignmentLeft = import_react174.css`
18375
18509
  flex-direction: row;
18376
18510
  `;
18377
- var SwitchInputContainerAlignmentRight = import_react172.css`
18511
+ var SwitchInputContainerAlignmentRight = import_react174.css`
18378
18512
  flex-direction: row-reverse;
18379
18513
  `;
18380
18514
 
18381
18515
  // src/components/Switch/Switch.tsx
18382
- var import_jsx_runtime139 = require("@emotion/react/jsx-runtime");
18383
- var Switch = (0, import_react173.forwardRef)(
18516
+ var import_jsx_runtime140 = require("@emotion/react/jsx-runtime");
18517
+ var Switch = (0, import_react175.forwardRef)(
18384
18518
  ({
18385
18519
  label,
18386
18520
  infoText,
@@ -18391,7 +18525,7 @@ var Switch = (0, import_react173.forwardRef)(
18391
18525
  ...inputProps
18392
18526
  }, ref) => {
18393
18527
  let additionalText = infoText;
18394
- const { SwitchInputContainerAlignmentStyles, SwitchInputCheckedDirection, SwitchInputLabelAlignment } = (0, import_react173.useMemo)(() => {
18528
+ const { SwitchInputContainerAlignmentStyles, SwitchInputCheckedDirection, SwitchInputLabelAlignment } = (0, import_react175.useMemo)(() => {
18395
18529
  if (alignment === "left") {
18396
18530
  return {
18397
18531
  SwitchInputContainerAlignmentStyles: SwitchInputContainerAlignmentLeft,
@@ -18408,8 +18542,8 @@ var Switch = (0, import_react173.forwardRef)(
18408
18542
  if (infoText && toggleText) {
18409
18543
  additionalText = inputProps.checked ? toggleText : infoText;
18410
18544
  }
18411
- return /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)(import_jsx_runtime139.Fragment, { children: [
18412
- /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)(
18545
+ return /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)(import_jsx_runtime140.Fragment, { children: [
18546
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)(
18413
18547
  "label",
18414
18548
  {
18415
18549
  css: [
@@ -18419,7 +18553,7 @@ var Switch = (0, import_react173.forwardRef)(
18419
18553
  inputProps.disabled ? SwitchInputDisabled : void 0
18420
18554
  ],
18421
18555
  children: [
18422
- /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(
18556
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
18423
18557
  "input",
18424
18558
  {
18425
18559
  type: "checkbox",
@@ -18428,11 +18562,11 @@ var Switch = (0, import_react173.forwardRef)(
18428
18562
  ref
18429
18563
  }
18430
18564
  ),
18431
- /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("span", { css: [SwitchInputLabel(switchSize), SwitchInputLabelAlignment], children: label })
18565
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("span", { css: [SwitchInputLabel(switchSize), SwitchInputLabelAlignment], children: label })
18432
18566
  ]
18433
18567
  }
18434
18568
  ),
18435
- additionalText ? /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(
18569
+ additionalText ? /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
18436
18570
  "p",
18437
18571
  {
18438
18572
  css: [
@@ -18452,8 +18586,8 @@ init_emotion_jsx_shim();
18452
18586
 
18453
18587
  // src/components/Table/Table.styles.ts
18454
18588
  init_emotion_jsx_shim();
18455
- var import_react174 = require("@emotion/react");
18456
- var table = ({ cellPadding = "var(--spacing-sm)" }) => import_react174.css`
18589
+ var import_react176 = require("@emotion/react");
18590
+ var table = ({ cellPadding = "var(--spacing-sm)" }) => import_react176.css`
18457
18591
  border-bottom: 1px solid var(--gray-400);
18458
18592
  border-collapse: collapse;
18459
18593
  min-width: 100%;
@@ -18473,21 +18607,21 @@ var table = ({ cellPadding = "var(--spacing-sm)" }) => import_react174.css`
18473
18607
  background-color: var(--gray-50);
18474
18608
  }
18475
18609
  `;
18476
- var tableHead = import_react174.css`
18610
+ var tableHead = import_react176.css`
18477
18611
  color: var(--typography-base);
18478
18612
  text-align: left;
18479
18613
  `;
18480
- var tableRow = import_react174.css`
18614
+ var tableRow = import_react176.css`
18481
18615
  border-bottom: 1px solid var(--gray-200);
18482
18616
  font-size: var(--fs-sm);
18483
18617
  `;
18484
- var tableCellHead = import_react174.css`
18618
+ var tableCellHead = import_react176.css`
18485
18619
  font-size: var(--fs-sm);
18486
18620
  font-weight: var(--fw-regular);
18487
18621
  line-height: 1.2;
18488
18622
  }
18489
18623
  `;
18490
- var responsiveTableContainer = import_react174.css`
18624
+ var responsiveTableContainer = import_react176.css`
18491
18625
  max-width: calc(100vw - var(--spacing-md) * 2);
18492
18626
  overflow-x: auto;
18493
18627
  ${scrollbarStyles}
@@ -18506,60 +18640,60 @@ var responsiveTableContainer = import_react174.css`
18506
18640
  `;
18507
18641
 
18508
18642
  // src/components/Table/ResponsiveTableContainer.tsx
18509
- var import_jsx_runtime140 = require("@emotion/react/jsx-runtime");
18643
+ var import_jsx_runtime141 = require("@emotion/react/jsx-runtime");
18510
18644
  var ResponsiveTableContainer = ({ children }) => {
18511
- return /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("div", { css: responsiveTableContainer, children });
18645
+ return /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("div", { css: responsiveTableContainer, children });
18512
18646
  };
18513
18647
 
18514
18648
  // src/components/Table/Table.tsx
18515
18649
  init_emotion_jsx_shim();
18516
- var React21 = __toESM(require("react"));
18517
- var import_jsx_runtime141 = require("@emotion/react/jsx-runtime");
18518
- var Table = React21.forwardRef(
18650
+ var React22 = __toESM(require("react"));
18651
+ var import_jsx_runtime142 = require("@emotion/react/jsx-runtime");
18652
+ var Table = React22.forwardRef(
18519
18653
  ({ children, cellPadding, ...otherProps }, ref) => {
18520
- return /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("table", { ref, css: table({ cellPadding }), ...otherProps, children });
18654
+ return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("table", { ref, css: table({ cellPadding }), ...otherProps, children });
18521
18655
  }
18522
18656
  );
18523
- var TableHead = React21.forwardRef(
18657
+ var TableHead = React22.forwardRef(
18524
18658
  ({ children, ...otherProps }, ref) => {
18525
- return /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
18659
+ return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
18526
18660
  }
18527
18661
  );
18528
- var TableBody = React21.forwardRef(
18662
+ var TableBody = React22.forwardRef(
18529
18663
  ({ children, ...otherProps }, ref) => {
18530
- return /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("tbody", { ref, ...otherProps, children });
18664
+ return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("tbody", { ref, ...otherProps, children });
18531
18665
  }
18532
18666
  );
18533
- var TableFoot = React21.forwardRef(
18667
+ var TableFoot = React22.forwardRef(
18534
18668
  ({ children, ...otherProps }, ref) => {
18535
- return /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("tfoot", { ref, ...otherProps, children });
18669
+ return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("tfoot", { ref, ...otherProps, children });
18536
18670
  }
18537
18671
  );
18538
- var TableRow = React21.forwardRef(
18672
+ var TableRow = React22.forwardRef(
18539
18673
  ({ children, ...otherProps }, ref) => {
18540
- return /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
18674
+ return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
18541
18675
  }
18542
18676
  );
18543
- var TableCellHead = React21.forwardRef(
18677
+ var TableCellHead = React22.forwardRef(
18544
18678
  ({ children, ...otherProps }, ref) => {
18545
- return /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
18679
+ return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
18546
18680
  }
18547
18681
  );
18548
- var TableCellData = React21.forwardRef(
18682
+ var TableCellData = React22.forwardRef(
18549
18683
  ({ children, ...otherProps }, ref) => {
18550
- return /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("td", { ref, ...otherProps, children });
18684
+ return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("td", { ref, ...otherProps, children });
18551
18685
  }
18552
18686
  );
18553
18687
 
18554
18688
  // src/components/Tabs/Tabs.tsx
18555
18689
  init_emotion_jsx_shim();
18556
- var import_react176 = require("@ariakit/react");
18557
- var import_react177 = require("react");
18690
+ var import_react178 = require("@ariakit/react");
18691
+ var import_react179 = require("react");
18558
18692
 
18559
18693
  // src/components/Tabs/Tabs.styles.ts
18560
18694
  init_emotion_jsx_shim();
18561
- var import_react175 = require("@emotion/react");
18562
- var tabButtonStyles = import_react175.css`
18695
+ var import_react177 = require("@emotion/react");
18696
+ var tabButtonStyles = import_react177.css`
18563
18697
  align-items: center;
18564
18698
  border: 0;
18565
18699
  height: 2.5rem;
@@ -18576,16 +18710,16 @@ var tabButtonStyles = import_react175.css`
18576
18710
  box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
18577
18711
  }
18578
18712
  `;
18579
- var tabButtonGroupStyles = import_react175.css`
18713
+ var tabButtonGroupStyles = import_react177.css`
18580
18714
  display: flex;
18581
18715
  gap: var(--spacing-base);
18582
18716
  border-bottom: 1px solid var(--gray-300);
18583
18717
  `;
18584
18718
 
18585
18719
  // src/components/Tabs/Tabs.tsx
18586
- var import_jsx_runtime142 = require("@emotion/react/jsx-runtime");
18720
+ var import_jsx_runtime143 = require("@emotion/react/jsx-runtime");
18587
18721
  var useCurrentTab = () => {
18588
- const context = (0, import_react176.useTabStore)();
18722
+ const context = (0, import_react178.useTabStore)();
18589
18723
  if (!context) {
18590
18724
  throw new Error("This component can only be used inside <Tabs>");
18591
18725
  }
@@ -18599,11 +18733,11 @@ var Tabs = ({
18599
18733
  manual,
18600
18734
  ...props
18601
18735
  }) => {
18602
- const selected = (0, import_react177.useMemo)(() => {
18736
+ const selected = (0, import_react179.useMemo)(() => {
18603
18737
  if (selectedId) return selectedId;
18604
18738
  return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
18605
18739
  }, [selectedId, useHashForState]);
18606
- const onTabSelect = (0, import_react177.useCallback)(
18740
+ const onTabSelect = (0, import_react179.useCallback)(
18607
18741
  (value) => {
18608
18742
  const selectedValueWithoutNull = value != null ? value : void 0;
18609
18743
  onSelectedIdChange == null ? void 0 : onSelectedIdChange(selectedValueWithoutNull);
@@ -18614,23 +18748,23 @@ var Tabs = ({
18614
18748
  },
18615
18749
  [onSelectedIdChange, useHashForState]
18616
18750
  );
18617
- return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_react176.TabProvider, { selectedId: selected, selectOnMove: !manual, setSelectedId: onTabSelect, ...props, children });
18751
+ return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_react178.TabProvider, { selectedId: selected, selectOnMove: !manual, setSelectedId: onTabSelect, ...props, children });
18618
18752
  };
18619
18753
  var TabButtonGroup = ({ children, ...props }) => {
18620
- return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_react176.TabList, { ...props, css: tabButtonGroupStyles, children });
18754
+ return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_react178.TabList, { ...props, css: tabButtonGroupStyles, children });
18621
18755
  };
18622
18756
  var TabButton = ({
18623
18757
  children,
18624
18758
  id,
18625
18759
  ...props
18626
18760
  }) => {
18627
- return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_react176.Tab, { type: "button", id, ...props, css: tabButtonStyles, children });
18761
+ return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_react178.Tab, { type: "button", id, ...props, css: tabButtonStyles, children });
18628
18762
  };
18629
18763
  var TabContent = ({
18630
18764
  children,
18631
18765
  ...props
18632
18766
  }) => {
18633
- return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_react176.TabPanel, { ...props, children });
18767
+ return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_react178.TabPanel, { ...props, children });
18634
18768
  };
18635
18769
 
18636
18770
  // src/components/Validation/StatusBullet.tsx
@@ -18638,8 +18772,8 @@ init_emotion_jsx_shim();
18638
18772
 
18639
18773
  // src/components/Validation/StatusBullet.styles.ts
18640
18774
  init_emotion_jsx_shim();
18641
- var import_react178 = require("@emotion/react");
18642
- var StatusBulletContainer = import_react178.css`
18775
+ var import_react180 = require("@emotion/react");
18776
+ var StatusBulletContainer = import_react180.css`
18643
18777
  align-items: center;
18644
18778
  align-self: center;
18645
18779
  color: var(--gray-500);
@@ -18655,33 +18789,33 @@ var StatusBulletContainer = import_react178.css`
18655
18789
  display: block;
18656
18790
  }
18657
18791
  `;
18658
- var StatusBulletBase = import_react178.css`
18792
+ var StatusBulletBase = import_react180.css`
18659
18793
  font-size: var(--fs-sm);
18660
18794
  &:before {
18661
18795
  width: var(--fs-xs);
18662
18796
  height: var(--fs-xs);
18663
18797
  }
18664
18798
  `;
18665
- var StatusBulletSmall = import_react178.css`
18799
+ var StatusBulletSmall = import_react180.css`
18666
18800
  font-size: var(--fs-xs);
18667
18801
  &:before {
18668
18802
  width: var(--fs-xxs);
18669
18803
  height: var(--fs-xxs);
18670
18804
  }
18671
18805
  `;
18672
- var StatusDraft = import_react178.css`
18806
+ var StatusDraft = import_react180.css`
18673
18807
  &:before {
18674
18808
  background: var(--white);
18675
18809
  box-shadow: inset 0 0 0 0.125rem var(--accent-dark);
18676
18810
  }
18677
18811
  `;
18678
- var StatusModified = import_react178.css`
18812
+ var StatusModified = import_react180.css`
18679
18813
  &:before {
18680
18814
  background: linear-gradient(to right, var(--white) 50%, var(--accent-dark) 50% 100%);
18681
18815
  box-shadow: inset 0 0 0 0.125rem var(--accent-dark);
18682
18816
  }
18683
18817
  `;
18684
- var StatusError = import_react178.css`
18818
+ var StatusError = import_react180.css`
18685
18819
  color: var(--error);
18686
18820
  &:before {
18687
18821
  /* TODO: replace this with an svg icon */
@@ -18694,29 +18828,44 @@ var StatusError = import_react178.css`
18694
18828
  );
18695
18829
  }
18696
18830
  `;
18697
- var StatusPublished = import_react178.css`
18831
+ var StatusPublished = import_react180.css`
18698
18832
  &:before {
18699
18833
  background: var(--accent-dark);
18700
18834
  }
18701
18835
  `;
18702
- var StatusOrphan = import_react178.css`
18836
+ var StatusOrphan = import_react180.css`
18703
18837
  &:before {
18704
18838
  background: var(--brand-secondary-5);
18705
18839
  }
18706
18840
  `;
18707
- var StatusUnknown = import_react178.css`
18841
+ var StatusUnknown = import_react180.css`
18708
18842
  &:before {
18709
18843
  background: var(--gray-800);
18710
18844
  }
18711
18845
  `;
18712
- var StatusDeleted = import_react178.css`
18846
+ var StatusDeleted = import_react180.css`
18713
18847
  &:before {
18714
18848
  background: var(--error);
18715
18849
  }
18716
18850
  `;
18717
18851
 
18718
18852
  // src/components/Validation/StatusBullet.tsx
18719
- var import_jsx_runtime143 = require("@emotion/react/jsx-runtime");
18853
+ var import_jsx_runtime144 = require("@emotion/react/jsx-runtime");
18854
+ var currentStateStyles = {
18855
+ Error: StatusError,
18856
+ Modified: StatusModified,
18857
+ Unsaved: StatusDraft,
18858
+ Orphan: StatusOrphan,
18859
+ Published: StatusPublished,
18860
+ Draft: StatusDraft,
18861
+ Previous: StatusDraft,
18862
+ Unknown: StatusUnknown,
18863
+ Deleted: StatusDeleted
18864
+ };
18865
+ var statusSize = {
18866
+ sm: StatusBulletSmall,
18867
+ base: StatusBulletBase
18868
+ };
18720
18869
  var StatusBullet = ({
18721
18870
  status,
18722
18871
  hideText = false,
@@ -18725,31 +18874,19 @@ var StatusBullet = ({
18725
18874
  compact = false,
18726
18875
  ...props
18727
18876
  }) => {
18728
- const currentStateStyles = {
18729
- Error: StatusError,
18730
- Modified: StatusModified,
18731
- Unsaved: StatusDraft,
18732
- Orphan: StatusOrphan,
18733
- Published: StatusPublished,
18734
- Draft: StatusDraft,
18735
- Previous: StatusDraft,
18736
- Unknown: StatusUnknown,
18737
- Deleted: StatusDeleted
18738
- };
18739
- const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
18740
- const StatusComponent = () => /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
18877
+ const StatusComponent = () => /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
18741
18878
  "span",
18742
18879
  {
18743
18880
  role: "status",
18744
- css: [StatusBulletContainer, currentStateStyles[status], statusSize],
18881
+ css: [StatusBulletContainer, currentStateStyles[status], statusSize[size]],
18745
18882
  ...props,
18746
18883
  children: hideText ? null : message ? message : status
18747
18884
  }
18748
18885
  );
18749
18886
  if (compact) {
18750
- return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(StatusComponent, {});
18887
+ return /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(StatusComponent, {});
18751
18888
  }
18752
- return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Tooltip, { title: message != null ? message : status, children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(StatusComponent, {}) }) });
18889
+ return /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(Tooltip, { title: message != null ? message : status, children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(StatusComponent, {}) }) });
18753
18890
  };
18754
18891
  // Annotate the CommonJS export names for ESM import in node:
18755
18892
  0 && (module.exports = {
@@ -18859,6 +18996,7 @@ var StatusBullet = ({
18859
18996
  PageHeaderSection,
18860
18997
  Pagination,
18861
18998
  Paragraph,
18999
+ ParameterActionButton,
18862
19000
  ParameterDrawerHeader,
18863
19001
  ParameterGroup,
18864
19002
  ParameterImage,
@@ -18930,6 +19068,7 @@ var StatusBullet = ({
18930
19068
  VerticalRhythm,
18931
19069
  WarningMessage,
18932
19070
  accessibleHidden,
19071
+ actionBarVisibilityStyles,
18933
19072
  addPathSegmentToPathname,
18934
19073
  borderTopIcon,
18935
19074
  breakpoints,