@uniformdev/design-system 19.132.0 → 19.133.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1432,6 +1432,7 @@ __export(src_exports, {
1432
1432
  MenuItemInner: () => MenuItemInner,
1433
1433
  MenuItemSeparator: () => MenuItemSeparator,
1434
1434
  Modal: () => Modal,
1435
+ ModalDialog: () => ModalDialog,
1435
1436
  MultilineChip: () => MultilineChip,
1436
1437
  NUMBER_OPERATORS: () => NUMBER_OPERATORS,
1437
1438
  PageHeaderSection: () => PageHeaderSection,
@@ -16031,7 +16032,8 @@ var InputTime = React13.forwardRef(
16031
16032
  isDisabled: !!disabled2,
16032
16033
  onChange: (0, import_react65.useCallback)(
16033
16034
  (time) => {
16034
- onChange == null ? void 0 : onChange(time.toString());
16035
+ var _a;
16036
+ onChange == null ? void 0 : onChange((_a = time == null ? void 0 : time.toString()) != null ? _a : "00:00:00");
16035
16037
  },
16036
16038
  [onChange]
16037
16039
  ),
@@ -18957,7 +18959,7 @@ var modalInnerStyles = import_react106.css`
18957
18959
  gap: var(--spacing-base);
18958
18960
  background: var(--gray-50);
18959
18961
  color: unset;
18960
- padding: calc(var(--spacing-2xl) - 2px);
18962
+ padding: var(--spacing-base);
18961
18963
  box-shadow: var(--elevation-500);
18962
18964
  border-radius: var(--rounded-base);
18963
18965
  `;
@@ -18979,7 +18981,6 @@ var modalCloseButtonStyles = import_react106.css`
18979
18981
  display: block;
18980
18982
  padding: 0;
18981
18983
  margin-left: auto;
18982
- translate: calc(var(--spacing-base)) calc(var(--spacing-base) * -1);
18983
18984
  transition: color var(--duration-fast) var(--timing-ease-out);
18984
18985
 
18985
18986
  &:hover,
@@ -18992,21 +18993,33 @@ var modalContentStyles = import_react106.css`
18992
18993
  position: relative;
18993
18994
  flex: 1;
18994
18995
  overflow: auto;
18996
+ padding: var(--spacing-md);
18995
18997
  ${scrollbarStyles}
18996
18998
  `;
18999
+ var modalDialogWrapper = import_react106.css`
19000
+ padding: 0 var(--spacing-lg) var(--spacing-md);
19001
+ `;
19002
+ var modalDialogInnerStyles = import_react106.css`
19003
+ // we need to override the gap of the modalInnerStyles when using a modal dialog
19004
+ > div {
19005
+ gap: 0;
19006
+ }
19007
+ `;
18997
19008
 
18998
19009
  // src/components/Modal/Modal.tsx
18999
19010
  var import_jsx_runtime94 = require("@emotion/react/jsx-runtime");
19011
+ var defaultModalWidth = "75rem";
19000
19012
  var defaultModalHeight = "51rem";
19001
19013
  var Modal = import_react107.default.forwardRef(
19002
19014
  ({
19003
19015
  header: header2,
19004
19016
  children,
19005
19017
  onRequestClose,
19006
- width,
19018
+ width = defaultModalWidth,
19007
19019
  height = defaultModalHeight,
19008
19020
  buttonGroup,
19009
19021
  modalSize = "lg",
19022
+ withoutContentPadding = false,
19010
19023
  ...modalProps
19011
19024
  }, ref) => {
19012
19025
  const dialogRef = (0, import_react107.useRef)(null);
@@ -19049,7 +19062,7 @@ var Modal = import_react107.default.forwardRef(
19049
19062
  ref.current = element;
19050
19063
  }
19051
19064
  },
19052
- css: [modalStyles, width ? void 0 : size[modalSize]],
19065
+ css: [modalStyles, !width ? size[modalSize] : void 0],
19053
19066
  style: { width, height: height === "auto" ? "min-content" : height },
19054
19067
  "data-testid": "side-dialog",
19055
19068
  onClick: onRequestClose,
@@ -19064,7 +19077,7 @@ var Modal = import_react107.default.forwardRef(
19064
19077
  onClick: (e) => e.stopPropagation(),
19065
19078
  children: [
19066
19079
  /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { css: modalHeaderStyles, children: [
19067
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { css: modalHeaderHeaderStyles, children: header2 }),
19080
+ !header2 ? null : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { css: modalHeaderHeaderStyles, children: header2 }),
19068
19081
  /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
19069
19082
  Button,
19070
19083
  {
@@ -19078,7 +19091,7 @@ var Modal = import_react107.default.forwardRef(
19078
19091
  }
19079
19092
  )
19080
19093
  ] }),
19081
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { css: modalContentStyles, children }),
19094
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { css: [modalContentStyles, !withoutContentPadding ? null : { padding: 0 }], children }),
19082
19095
  buttonGroup ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(HorizontalRhythm, { children: buttonGroup }) : null
19083
19096
  ]
19084
19097
  }
@@ -19089,6 +19102,34 @@ var Modal = import_react107.default.forwardRef(
19089
19102
  );
19090
19103
  Modal.displayName = "Modal";
19091
19104
 
19105
+ // src/components/Modal/ModalDialog.tsx
19106
+ init_emotion_jsx_shim();
19107
+ var import_react108 = require("react");
19108
+ var import_jsx_runtime95 = require("@emotion/react/jsx-runtime");
19109
+ var ModalDialog = (0, import_react108.forwardRef)(
19110
+ ({ header: header2, buttonGroup, modalSize = "lg", children, height = "auto", onRequestClose, ...props }, ref) => {
19111
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
19112
+ Modal,
19113
+ {
19114
+ ...props,
19115
+ modalSize,
19116
+ ref,
19117
+ onRequestClose,
19118
+ height,
19119
+ withoutContentPadding: true,
19120
+ css: modalDialogInnerStyles,
19121
+ width: "",
19122
+ children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(VerticalRhythm, { css: modalDialogWrapper, children: [
19123
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { css: modalHeaderStyles, children: header2 }),
19124
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { children }),
19125
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(HorizontalRhythm, { children: buttonGroup })
19126
+ ] })
19127
+ }
19128
+ );
19129
+ }
19130
+ );
19131
+ ModalDialog.displayName = "ModalDialog";
19132
+
19092
19133
  // src/components/Pagination/Pagination.tsx
19093
19134
  init_emotion_jsx_shim();
19094
19135
  var import_react_paginate = __toESM(require("react-paginate"));
@@ -19123,7 +19164,7 @@ var page = import_css.css`
19123
19164
  `;
19124
19165
 
19125
19166
  // src/components/Pagination/Pagination.tsx
19126
- var import_jsx_runtime95 = require("@emotion/react/jsx-runtime");
19167
+ var import_jsx_runtime96 = require("@emotion/react/jsx-runtime");
19127
19168
  function Pagination({
19128
19169
  limit,
19129
19170
  offset,
@@ -19138,12 +19179,12 @@ function Pagination({
19138
19179
  if (pageCount <= 1) {
19139
19180
  return null;
19140
19181
  }
19141
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
19182
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
19142
19183
  import_react_paginate.default,
19143
19184
  {
19144
19185
  forcePage: currentPage,
19145
- previousLabel: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: prevNextControls, children: "<" }),
19146
- nextLabel: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: prevNextControls, children: ">" }),
19186
+ previousLabel: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: prevNextControls, children: "<" }),
19187
+ nextLabel: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: prevNextControls, children: ">" }),
19147
19188
  breakLabel: "...",
19148
19189
  pageCount,
19149
19190
  marginPagesDisplayed: 2,
@@ -19163,8 +19204,8 @@ function Pagination({
19163
19204
 
19164
19205
  // src/components/ParameterInputs/hooks/ParameterShellContext.tsx
19165
19206
  init_emotion_jsx_shim();
19166
- var import_react108 = require("react");
19167
- var ParameterShellContext = (0, import_react108.createContext)({
19207
+ var import_react109 = require("react");
19208
+ var ParameterShellContext = (0, import_react109.createContext)({
19168
19209
  id: "",
19169
19210
  label: "",
19170
19211
  hiddenLabel: void 0,
@@ -19173,7 +19214,7 @@ var ParameterShellContext = (0, import_react108.createContext)({
19173
19214
  }
19174
19215
  });
19175
19216
  var useParameterShell = () => {
19176
- const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } = (0, import_react108.useContext)(ParameterShellContext);
19217
+ const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } = (0, import_react109.useContext)(ParameterShellContext);
19177
19218
  return {
19178
19219
  id,
19179
19220
  label,
@@ -19188,8 +19229,8 @@ init_emotion_jsx_shim();
19188
19229
 
19189
19230
  // src/components/ParameterInputs/styles/LabelLeadingIcon.styles.ts
19190
19231
  init_emotion_jsx_shim();
19191
- var import_react109 = require("@emotion/react");
19192
- var inputIconBtn = import_react109.css`
19232
+ var import_react110 = require("@emotion/react");
19233
+ var inputIconBtn = import_react110.css`
19193
19234
  align-items: center;
19194
19235
  border: none;
19195
19236
  border-radius: var(--rounded-base);
@@ -19215,7 +19256,7 @@ var inputIconBtn = import_react109.css`
19215
19256
  `;
19216
19257
 
19217
19258
  // src/components/ParameterInputs/LabelLeadingIcon.tsx
19218
- var import_jsx_runtime96 = require("@emotion/react/jsx-runtime");
19259
+ var import_jsx_runtime97 = require("@emotion/react/jsx-runtime");
19219
19260
  var LabelLeadingIcon = ({
19220
19261
  icon,
19221
19262
  iconColor,
@@ -19227,7 +19268,7 @@ var LabelLeadingIcon = ({
19227
19268
  ...props
19228
19269
  }) => {
19229
19270
  const titleFr = title2 != null ? title2 : isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
19230
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Tooltip, { title: titleFr, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
19271
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Tooltip, { title: titleFr, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
19231
19272
  "button",
19232
19273
  {
19233
19274
  css: inputIconBtn,
@@ -19237,7 +19278,7 @@ var LabelLeadingIcon = ({
19237
19278
  ...props,
19238
19279
  "data-testid": "lock-button",
19239
19280
  children: [
19240
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
19281
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
19241
19282
  Icon,
19242
19283
  {
19243
19284
  icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
@@ -19257,8 +19298,8 @@ init_emotion_jsx_shim();
19257
19298
 
19258
19299
  // src/components/ParameterInputs/styles/ParameterInput.styles.ts
19259
19300
  init_emotion_jsx_shim();
19260
- var import_react110 = require("@emotion/react");
19261
- var inputContainer2 = import_react110.css`
19301
+ var import_react111 = require("@emotion/react");
19302
+ var inputContainer2 = import_react111.css`
19262
19303
  position: relative;
19263
19304
  scroll-margin: var(--spacing-2xl);
19264
19305
 
@@ -19271,14 +19312,14 @@ var inputContainer2 = import_react110.css`
19271
19312
  }
19272
19313
  }
19273
19314
  `;
19274
- var labelText2 = import_react110.css`
19315
+ var labelText2 = import_react111.css`
19275
19316
  align-items: center;
19276
19317
  display: flex;
19277
19318
  gap: var(--spacing-xs);
19278
19319
  font-weight: var(--fw-regular);
19279
19320
  margin: 0 0 var(--spacing-xs);
19280
19321
  `;
19281
- var input3 = import_react110.css`
19322
+ var input3 = import_react111.css`
19282
19323
  display: block;
19283
19324
  appearance: none;
19284
19325
  box-sizing: border-box;
@@ -19326,18 +19367,18 @@ var input3 = import_react110.css`
19326
19367
  color: var(--gray-400);
19327
19368
  }
19328
19369
  `;
19329
- var selectInput = import_react110.css`
19370
+ var selectInput = import_react111.css`
19330
19371
  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");
19331
19372
  background-position: right var(--spacing-sm) center;
19332
19373
  background-repeat: no-repeat;
19333
19374
  background-size: 1rem;
19334
19375
  padding-right: var(--spacing-xl);
19335
19376
  `;
19336
- var inputWrapper = import_react110.css`
19377
+ var inputWrapper = import_react111.css`
19337
19378
  display: flex; // used to correct overflow with chrome textarea
19338
19379
  position: relative;
19339
19380
  `;
19340
- var inputIcon2 = import_react110.css`
19381
+ var inputIcon2 = import_react111.css`
19341
19382
  align-items: center;
19342
19383
  background: var(--white);
19343
19384
  border-radius: var(--rounded-md) 0 0 var(--rounded-md);
@@ -19353,7 +19394,7 @@ var inputIcon2 = import_react110.css`
19353
19394
  width: var(--spacing-lg);
19354
19395
  z-index: var(--z-10);
19355
19396
  `;
19356
- var inputToggleLabel2 = import_react110.css`
19397
+ var inputToggleLabel2 = import_react111.css`
19357
19398
  --inline-label-color: var(--typography-base);
19358
19399
  align-items: center;
19359
19400
  cursor: pointer;
@@ -19368,7 +19409,7 @@ var inputToggleLabel2 = import_react110.css`
19368
19409
  --inline-label-color: var(--gray-400);
19369
19410
  }
19370
19411
  `;
19371
- var toggleInput2 = import_react110.css`
19412
+ var toggleInput2 = import_react111.css`
19372
19413
  appearance: none;
19373
19414
  border: 1px solid var(--gray-200);
19374
19415
  background: var(--white);
@@ -19421,7 +19462,7 @@ var toggleInput2 = import_react110.css`
19421
19462
  border-color: var(--gray-300);
19422
19463
  }
19423
19464
  `;
19424
- var inlineLabel2 = import_react110.css`
19465
+ var inlineLabel2 = import_react111.css`
19425
19466
  color: var(--inline-label-color);
19426
19467
  padding-left: var(--spacing-md);
19427
19468
  font-size: var(--fs-sm);
@@ -19438,7 +19479,7 @@ var inlineLabel2 = import_react110.css`
19438
19479
  }
19439
19480
  }
19440
19481
  `;
19441
- var inputMenu = import_react110.css`
19482
+ var inputMenu = import_react111.css`
19442
19483
  background: none;
19443
19484
  border: none;
19444
19485
  padding: var(--spacing-2xs);
@@ -19446,10 +19487,10 @@ var inputMenu = import_react110.css`
19446
19487
  top: calc(var(--spacing-md) * -1.2);
19447
19488
  right: 0;
19448
19489
  `;
19449
- var inputActionItems = import_react110.css`
19490
+ var inputActionItems = import_react111.css`
19450
19491
  display: flex;
19451
19492
  `;
19452
- var inputMenuHover = import_react110.css`
19493
+ var inputMenuHover = import_react111.css`
19453
19494
  opacity: var(--opacity-50);
19454
19495
  transition: background-color var(--duration-fast) var(--timing-ease-out);
19455
19496
 
@@ -19459,11 +19500,11 @@ var inputMenuHover = import_react110.css`
19459
19500
  background-color: var(--gray-200);
19460
19501
  }
19461
19502
  `;
19462
- var textarea2 = import_react110.css`
19503
+ var textarea2 = import_react111.css`
19463
19504
  resize: vertical;
19464
19505
  min-height: 2rem;
19465
19506
  `;
19466
- var dataConnectButton = import_react110.css`
19507
+ var dataConnectButton = import_react111.css`
19467
19508
  align-items: center;
19468
19509
  appearance: none;
19469
19510
  box-sizing: border-box;
@@ -19498,7 +19539,7 @@ var dataConnectButton = import_react110.css`
19498
19539
  pointer-events: none;
19499
19540
  }
19500
19541
  `;
19501
- var linkParameterBtn = import_react110.css`
19542
+ var linkParameterBtn = import_react111.css`
19502
19543
  border-radius: var(--rounded-base);
19503
19544
  background: transparent;
19504
19545
  border: none;
@@ -19507,7 +19548,7 @@ var linkParameterBtn = import_react110.css`
19507
19548
  font-size: var(--fs-sm);
19508
19549
  line-height: 1;
19509
19550
  `;
19510
- var linkParameterControls = import_react110.css`
19551
+ var linkParameterControls = import_react111.css`
19511
19552
  position: absolute;
19512
19553
  inset: 0 0 0 auto;
19513
19554
  padding: 0 var(--spacing-base);
@@ -19516,7 +19557,7 @@ var linkParameterControls = import_react110.css`
19516
19557
  justify-content: center;
19517
19558
  gap: var(--spacing-base);
19518
19559
  `;
19519
- var linkParameterInput = (withExternalLinkIcon) => import_react110.css`
19560
+ var linkParameterInput = (withExternalLinkIcon) => import_react111.css`
19520
19561
  padding-right: calc(
19521
19562
  ${withExternalLinkIcon ? "calc(var(--spacing-lg) * 2 + var(--spacing-xs))" : "var(--spacing-xl)"} +
19522
19563
  var(--spacing-base)
@@ -19529,7 +19570,7 @@ var linkParameterInput = (withExternalLinkIcon) => import_react110.css`
19529
19570
  }
19530
19571
  }
19531
19572
  `;
19532
- var linkParameterIcon = import_react110.css`
19573
+ var linkParameterIcon = import_react111.css`
19533
19574
  align-items: center;
19534
19575
  color: var(--brand-secondary-3);
19535
19576
  display: flex;
@@ -19544,7 +19585,7 @@ var linkParameterIcon = import_react110.css`
19544
19585
  `;
19545
19586
 
19546
19587
  // src/components/ParameterInputs/ParameterDataResource.tsx
19547
- var import_jsx_runtime97 = require("@emotion/react/jsx-runtime");
19588
+ var import_jsx_runtime98 = require("@emotion/react/jsx-runtime");
19548
19589
  function ParameterDataResource({
19549
19590
  label,
19550
19591
  labelLeadingIcon,
@@ -19554,12 +19595,12 @@ function ParameterDataResource({
19554
19595
  disabled: disabled2,
19555
19596
  children
19556
19597
  }) {
19557
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { "data-testid": "parameter-data-connect-button", children: [
19558
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("span", { css: labelText2, children: [
19598
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { "data-testid": "parameter-data-connect-button", children: [
19599
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("span", { css: labelText2, children: [
19559
19600
  labelLeadingIcon ? labelLeadingIcon : null,
19560
19601
  label
19561
19602
  ] }),
19562
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
19603
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
19563
19604
  "button",
19564
19605
  {
19565
19606
  type: "button",
@@ -19568,12 +19609,12 @@ function ParameterDataResource({
19568
19609
  disabled: disabled2,
19569
19610
  onClick: onConnectDatasource,
19570
19611
  children: [
19571
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
19612
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
19572
19613
  children
19573
19614
  ]
19574
19615
  }
19575
19616
  ),
19576
- caption ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Caption, { children: caption }) : null
19617
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Caption, { children: caption }) : null
19577
19618
  ] });
19578
19619
  }
19579
19620
 
@@ -19582,20 +19623,20 @@ init_emotion_jsx_shim();
19582
19623
 
19583
19624
  // src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
19584
19625
  init_emotion_jsx_shim();
19585
- var import_react111 = require("@emotion/react");
19586
- var ParameterDrawerHeaderContainer = import_react111.css`
19626
+ var import_react112 = require("@emotion/react");
19627
+ var ParameterDrawerHeaderContainer = import_react112.css`
19587
19628
  align-items: center;
19588
19629
  display: flex;
19589
19630
  gap: var(--spacing-base);
19590
19631
  justify-content: space-between;
19591
19632
  margin-bottom: var(--spacing-sm);
19592
19633
  `;
19593
- var ParameterDrawerHeaderTitleGroup = import_react111.css`
19634
+ var ParameterDrawerHeaderTitleGroup = import_react112.css`
19594
19635
  align-items: center;
19595
19636
  display: flex;
19596
19637
  gap: var(--spacing-sm);
19597
19638
  `;
19598
- var ParameterDrawerHeaderTitle = import_react111.css`
19639
+ var ParameterDrawerHeaderTitle = import_react112.css`
19599
19640
  text-overflow: ellipsis;
19600
19641
  white-space: nowrap;
19601
19642
  overflow: hidden;
@@ -19603,12 +19644,12 @@ var ParameterDrawerHeaderTitle = import_react111.css`
19603
19644
  `;
19604
19645
 
19605
19646
  // src/components/ParameterInputs/ParameterDrawerHeader.tsx
19606
- var import_jsx_runtime98 = require("@emotion/react/jsx-runtime");
19647
+ var import_jsx_runtime99 = require("@emotion/react/jsx-runtime");
19607
19648
  var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
19608
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { css: ParameterDrawerHeaderContainer, children: [
19609
- /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("header", { css: ParameterDrawerHeaderTitleGroup, children: [
19649
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { css: ParameterDrawerHeaderContainer, children: [
19650
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("header", { css: ParameterDrawerHeaderTitleGroup, children: [
19610
19651
  iconBeforeTitle,
19611
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title: title2, children: title2 })
19652
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title: title2, children: title2 })
19612
19653
  ] }),
19613
19654
  children
19614
19655
  ] });
@@ -19616,12 +19657,12 @@ var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
19616
19657
 
19617
19658
  // src/components/ParameterInputs/ParameterGroup.tsx
19618
19659
  init_emotion_jsx_shim();
19619
- var import_react113 = require("react");
19660
+ var import_react114 = require("react");
19620
19661
 
19621
19662
  // src/components/ParameterInputs/styles/ParameterGroup.styles.ts
19622
19663
  init_emotion_jsx_shim();
19623
- var import_react112 = require("@emotion/react");
19624
- var fieldsetStyles = import_react112.css`
19664
+ var import_react113 = require("@emotion/react");
19665
+ var fieldsetStyles = import_react113.css`
19625
19666
  &:disabled,
19626
19667
  [readonly] {
19627
19668
  pointer-events: none;
@@ -19632,7 +19673,7 @@ var fieldsetStyles = import_react112.css`
19632
19673
  }
19633
19674
  }
19634
19675
  `;
19635
- var fieldsetLegend2 = import_react112.css`
19676
+ var fieldsetLegend2 = import_react113.css`
19636
19677
  display: block;
19637
19678
  font-weight: var(--fw-medium);
19638
19679
  margin-bottom: var(--spacing-sm);
@@ -19640,11 +19681,11 @@ var fieldsetLegend2 = import_react112.css`
19640
19681
  `;
19641
19682
 
19642
19683
  // src/components/ParameterInputs/ParameterGroup.tsx
19643
- var import_jsx_runtime99 = require("@emotion/react/jsx-runtime");
19644
- var ParameterGroup = (0, import_react113.forwardRef)(
19684
+ var import_jsx_runtime100 = require("@emotion/react/jsx-runtime");
19685
+ var ParameterGroup = (0, import_react114.forwardRef)(
19645
19686
  ({ legend, isDisabled, children, ...props }, ref) => {
19646
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
19647
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("legend", { css: fieldsetLegend2, children: legend }),
19687
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
19688
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("legend", { css: fieldsetLegend2, children: legend }),
19648
19689
  children
19649
19690
  ] });
19650
19691
  }
@@ -19652,24 +19693,24 @@ var ParameterGroup = (0, import_react113.forwardRef)(
19652
19693
 
19653
19694
  // src/components/ParameterInputs/ParameterImage.tsx
19654
19695
  init_emotion_jsx_shim();
19655
- var import_react120 = require("react");
19696
+ var import_react121 = require("react");
19656
19697
 
19657
19698
  // src/components/ParameterInputs/ParameterImagePreview.tsx
19658
19699
  init_emotion_jsx_shim();
19659
- var import_react115 = require("react");
19700
+ var import_react116 = require("react");
19660
19701
  var import_react_dom2 = require("react-dom");
19661
19702
 
19662
19703
  // src/components/ParameterInputs/styles/ParameterImage.styles.ts
19663
19704
  init_emotion_jsx_shim();
19664
- var import_react114 = require("@emotion/react");
19665
- var previewWrapper = import_react114.css`
19705
+ var import_react115 = require("@emotion/react");
19706
+ var previewWrapper = import_react115.css`
19666
19707
  margin-top: var(--spacing-xs);
19667
19708
  background: var(--gray-50);
19668
19709
  padding: var(--spacing-sm);
19669
19710
  border: solid 1px var(--gray-300);
19670
19711
  border-radius: var(--rounded-sm);
19671
19712
  `;
19672
- var previewLink = import_react114.css`
19713
+ var previewLink = import_react115.css`
19673
19714
  display: block;
19674
19715
  width: 100%;
19675
19716
 
@@ -19677,7 +19718,7 @@ var previewLink = import_react114.css`
19677
19718
  max-height: 9rem;
19678
19719
  }
19679
19720
  `;
19680
- var previewModalWrapper = import_react114.css`
19721
+ var previewModalWrapper = import_react115.css`
19681
19722
  background: var(--gray-50);
19682
19723
  display: flex;
19683
19724
  height: 100%;
@@ -19686,7 +19727,7 @@ var previewModalWrapper = import_react114.css`
19686
19727
  border: solid 1px var(--gray-300);
19687
19728
  border-radius: var(--rounded-sm);
19688
19729
  `;
19689
- var previewModalImage = import_react114.css`
19730
+ var previewModalImage = import_react115.css`
19690
19731
  display: flex;
19691
19732
  height: 100%;
19692
19733
  width: 100%;
@@ -19698,32 +19739,32 @@ var previewModalImage = import_react114.css`
19698
19739
  `;
19699
19740
 
19700
19741
  // src/components/ParameterInputs/ParameterImagePreview.tsx
19701
- var import_jsx_runtime100 = require("@emotion/react/jsx-runtime");
19742
+ var import_jsx_runtime101 = require("@emotion/react/jsx-runtime");
19702
19743
  function ParameterImagePreview({ imageSrc }) {
19703
- const [showModal, setShowModal] = (0, import_react115.useState)(false);
19704
- return imageSrc ? /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { css: previewWrapper, children: [
19705
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
19706
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
19744
+ const [showModal, setShowModal] = (0, import_react116.useState)(false);
19745
+ return imageSrc ? /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { css: previewWrapper, children: [
19746
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
19747
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
19707
19748
  "button",
19708
19749
  {
19709
19750
  css: previewLink,
19710
19751
  onClick: () => {
19711
19752
  setShowModal(true);
19712
19753
  },
19713
- children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Image, { src: imageSrc, "data-testid": "parameter-image-preview" })
19754
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Image, { src: imageSrc, "data-testid": "parameter-image-preview" })
19714
19755
  }
19715
19756
  )
19716
19757
  ] }) : null;
19717
19758
  }
19718
19759
  var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
19719
- return open ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_jsx_runtime100.Fragment, { children: (0, import_react_dom2.createPortal)(
19720
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
19760
+ return open ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_jsx_runtime101.Fragment, { children: (0, import_react_dom2.createPortal)(
19761
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
19721
19762
  Modal,
19722
19763
  {
19723
19764
  header: "Image Preview",
19724
19765
  onRequestClose,
19725
- buttonGroup: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
19726
- children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { css: previewModalWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
19766
+ buttonGroup: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
19767
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { css: previewModalWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
19727
19768
  }
19728
19769
  ),
19729
19770
  document.body
@@ -19732,27 +19773,27 @@ var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
19732
19773
 
19733
19774
  // src/components/ParameterInputs/ParameterShell.tsx
19734
19775
  init_emotion_jsx_shim();
19735
- var import_react118 = require("@emotion/react");
19736
- var import_react119 = require("react");
19776
+ var import_react119 = require("@emotion/react");
19777
+ var import_react120 = require("react");
19737
19778
 
19738
19779
  // src/components/ParameterInputs/ParameterLabel.tsx
19739
19780
  init_emotion_jsx_shim();
19740
- var import_jsx_runtime101 = require("@emotion/react/jsx-runtime");
19781
+ var import_jsx_runtime102 = require("@emotion/react/jsx-runtime");
19741
19782
  var ParameterLabel = ({ id, asSpan, children, ...props }) => {
19742
- return !asSpan ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { "aria-labelledby": id, css: labelText2, children });
19783
+ return !asSpan ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("span", { "aria-labelledby": id, css: labelText2, children });
19743
19784
  };
19744
19785
 
19745
19786
  // src/components/ParameterInputs/ParameterMenuButton.tsx
19746
19787
  init_emotion_jsx_shim();
19747
- var import_react116 = require("react");
19748
- var import_jsx_runtime102 = require("@emotion/react/jsx-runtime");
19749
- var ParameterMenuButton = (0, import_react116.forwardRef)(
19788
+ var import_react117 = require("react");
19789
+ var import_jsx_runtime103 = require("@emotion/react/jsx-runtime");
19790
+ var ParameterMenuButton = (0, import_react117.forwardRef)(
19750
19791
  ({ label, children }, ref) => {
19751
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
19792
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
19752
19793
  Menu,
19753
19794
  {
19754
19795
  menuLabel: `${label} menu`,
19755
- menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
19796
+ menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
19756
19797
  "button",
19757
19798
  {
19758
19799
  className: "parameter-menu",
@@ -19760,7 +19801,7 @@ var ParameterMenuButton = (0, import_react116.forwardRef)(
19760
19801
  type: "button",
19761
19802
  "aria-label": `${label} options`,
19762
19803
  ref,
19763
- children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
19804
+ children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
19764
19805
  }
19765
19806
  ),
19766
19807
  children
@@ -19771,14 +19812,14 @@ var ParameterMenuButton = (0, import_react116.forwardRef)(
19771
19812
 
19772
19813
  // src/components/ParameterInputs/styles/ParameterShell.styles.ts
19773
19814
  init_emotion_jsx_shim();
19774
- var import_react117 = require("@emotion/react");
19775
- var emptyParameterShell = import_react117.css`
19815
+ var import_react118 = require("@emotion/react");
19816
+ var emptyParameterShell = import_react118.css`
19776
19817
  border-radius: var(--rounded-sm);
19777
19818
  flex-grow: 1;
19778
19819
  position: relative;
19779
19820
  max-width: 100%;
19780
19821
  `;
19781
- var emptyParameterShellText = import_react117.css`
19822
+ var emptyParameterShellText = import_react118.css`
19782
19823
  background: var(--brand-secondary-6);
19783
19824
  border-radius: var(--rounded-sm);
19784
19825
  padding: var(--spacing-sm);
@@ -19786,7 +19827,7 @@ var emptyParameterShellText = import_react117.css`
19786
19827
  font-size: var(--fs-sm);
19787
19828
  margin: 0;
19788
19829
  `;
19789
- var overrideMarker = import_react117.css`
19830
+ var overrideMarker = import_react118.css`
19790
19831
  border-radius: var(--rounded-sm);
19791
19832
  border: 10px solid var(--gray-300);
19792
19833
  border-left-color: transparent;
@@ -19797,7 +19838,7 @@ var overrideMarker = import_react117.css`
19797
19838
  `;
19798
19839
 
19799
19840
  // src/components/ParameterInputs/ParameterShell.tsx
19800
- var import_jsx_runtime103 = require("@emotion/react/jsx-runtime");
19841
+ var import_jsx_runtime104 = require("@emotion/react/jsx-runtime");
19801
19842
  var extractParameterProps = (props) => {
19802
19843
  const {
19803
19844
  id,
@@ -19857,36 +19898,36 @@ var ParameterShell = ({
19857
19898
  isParameterGroup = false,
19858
19899
  ...props
19859
19900
  }) => {
19860
- const [manualErrorMessage, setManualErrorMessage] = (0, import_react119.useState)(void 0);
19901
+ const [manualErrorMessage, setManualErrorMessage] = (0, import_react120.useState)(void 0);
19861
19902
  const setErrorMessage = (message) => setManualErrorMessage(message);
19862
19903
  const errorMessaging = errorMessage || manualErrorMessage;
19863
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { css: inputContainer2, ...props, id, children: [
19864
- hiddenLabel || title2 ? null : /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(ParameterLabel, { id, css: labelText2, children: [
19904
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { css: inputContainer2, ...props, id, children: [
19905
+ hiddenLabel || title2 ? null : /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(ParameterLabel, { id, css: labelText2, children: [
19865
19906
  labelLeadingIcon != null ? labelLeadingIcon : null,
19866
19907
  label,
19867
19908
  labelTrailingIcon != null ? labelTrailingIcon : null
19868
19909
  ] }),
19869
- !title2 ? null : /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(ParameterLabel, { id, asSpan: true, children: [
19910
+ !title2 ? null : /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(ParameterLabel, { id, asSpan: true, children: [
19870
19911
  labelLeadingIcon != null ? labelLeadingIcon : null,
19871
19912
  title2,
19872
19913
  labelTrailingIcon != null ? labelTrailingIcon : null
19873
19914
  ] }),
19874
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { css: inputWrapper, children: [
19875
- actionItems ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
19915
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { css: inputWrapper, children: [
19916
+ actionItems ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
19876
19917
  "div",
19877
19918
  {
19878
19919
  css: [
19879
19920
  inputMenu,
19880
19921
  inputActionItems,
19881
- menuItems ? import_react118.css`
19922
+ menuItems ? import_react119.css`
19882
19923
  right: var(--spacing-md);
19883
19924
  ` : void 0
19884
19925
  ],
19885
19926
  children: actionItems
19886
19927
  }
19887
19928
  ) : null,
19888
- menuItems ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
19889
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
19929
+ menuItems ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
19930
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
19890
19931
  ParameterShellContext.Provider,
19891
19932
  {
19892
19933
  value: {
@@ -19896,14 +19937,14 @@ var ParameterShell = ({
19896
19937
  errorMessage: errorMessaging,
19897
19938
  handleManuallySetErrorMessage: (message) => setErrorMessage(message)
19898
19939
  },
19899
- children: isParameterGroup ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { style: { flexGrow: 1 }, children }) : /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(ParameterShellPlaceholder, { children: [
19940
+ children: isParameterGroup ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { style: { flexGrow: 1 }, children }) : /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(ParameterShellPlaceholder, { children: [
19900
19941
  children,
19901
- hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
19942
+ hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
19902
19943
  ] })
19903
19944
  }
19904
19945
  )
19905
19946
  ] }),
19906
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
19947
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
19907
19948
  FieldMessage,
19908
19949
  {
19909
19950
  helperMessageTestId: captionTestId,
@@ -19917,27 +19958,27 @@ var ParameterShell = ({
19917
19958
  ] });
19918
19959
  };
19919
19960
  var ParameterShellPlaceholder = ({ children }) => {
19920
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { css: emptyParameterShell, children });
19961
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { css: emptyParameterShell, children });
19921
19962
  };
19922
- var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("span", { hidden: true, children: "reset overridden value to default" }) }) });
19963
+ var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { hidden: true, children: "reset overridden value to default" }) }) });
19923
19964
 
19924
19965
  // src/components/ParameterInputs/ParameterImage.tsx
19925
- var import_jsx_runtime104 = require("@emotion/react/jsx-runtime");
19926
- var ParameterImage = (0, import_react120.forwardRef)(
19966
+ var import_jsx_runtime105 = require("@emotion/react/jsx-runtime");
19967
+ var ParameterImage = (0, import_react121.forwardRef)(
19927
19968
  ({ children, ...props }, ref) => {
19928
19969
  const { shellProps, innerProps } = extractParameterProps(props);
19929
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
19930
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ParameterImageInner, { ref, ...innerProps }),
19970
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
19971
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(ParameterImageInner, { ref, ...innerProps }),
19931
19972
  children
19932
19973
  ] });
19933
19974
  }
19934
19975
  );
19935
- var ParameterImageInner = (0, import_react120.forwardRef)((props, ref) => {
19976
+ var ParameterImageInner = (0, import_react121.forwardRef)((props, ref) => {
19936
19977
  const { value } = props;
19937
19978
  const { id, label, hiddenLabel, errorMessage } = useParameterShell();
19938
- const deferredValue = (0, import_react120.useDeferredValue)(value);
19939
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_jsx_runtime104.Fragment, { children: [
19940
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
19979
+ const deferredValue = (0, import_react121.useDeferredValue)(value);
19980
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_jsx_runtime105.Fragment, { children: [
19981
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
19941
19982
  "input",
19942
19983
  {
19943
19984
  css: input3,
@@ -19949,22 +19990,22 @@ var ParameterImageInner = (0, import_react120.forwardRef)((props, ref) => {
19949
19990
  ...props
19950
19991
  }
19951
19992
  ),
19952
- errorMessage || props.disablePreview ? null : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ParameterImagePreview, { imageSrc: deferredValue })
19993
+ errorMessage || props.disablePreview ? null : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(ParameterImagePreview, { imageSrc: deferredValue })
19953
19994
  ] });
19954
19995
  });
19955
19996
 
19956
19997
  // src/components/ParameterInputs/ParameterInput.tsx
19957
19998
  init_emotion_jsx_shim();
19958
- var import_react121 = require("react");
19959
- var import_jsx_runtime105 = require("@emotion/react/jsx-runtime");
19960
- var ParameterInput = (0, import_react121.forwardRef)((props, ref) => {
19999
+ var import_react122 = require("react");
20000
+ var import_jsx_runtime106 = require("@emotion/react/jsx-runtime");
20001
+ var ParameterInput = (0, import_react122.forwardRef)((props, ref) => {
19961
20002
  const { shellProps, innerProps } = extractParameterProps(props);
19962
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(ParameterInputInner, { ref, ...innerProps }) });
20003
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(ParameterInputInner, { ref, ...innerProps }) });
19963
20004
  });
19964
- var ParameterInputInner = (0, import_react121.forwardRef)(
20005
+ var ParameterInputInner = (0, import_react122.forwardRef)(
19965
20006
  ({ ...props }, ref) => {
19966
20007
  const { id, label, hiddenLabel } = useParameterShell();
19967
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
20008
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
19968
20009
  "input",
19969
20010
  {
19970
20011
  css: input3,
@@ -19981,19 +20022,19 @@ var ParameterInputInner = (0, import_react121.forwardRef)(
19981
20022
 
19982
20023
  // src/components/ParameterInputs/ParameterLink.tsx
19983
20024
  init_emotion_jsx_shim();
19984
- var import_react122 = require("react");
19985
- var import_jsx_runtime106 = require("@emotion/react/jsx-runtime");
19986
- var ParameterLink = (0, import_react122.forwardRef)(
20025
+ var import_react123 = require("react");
20026
+ var import_jsx_runtime107 = require("@emotion/react/jsx-runtime");
20027
+ var ParameterLink = (0, import_react123.forwardRef)(
19987
20028
  ({ disabled: disabled2, onConnectLink, externalLink, ...props }, ref) => {
19988
20029
  const { shellProps, innerProps } = extractParameterProps(props);
19989
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
20030
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
19990
20031
  ParameterShell,
19991
20032
  {
19992
20033
  "data-testid": "link-parameter-editor",
19993
20034
  ...shellProps,
19994
20035
  label: innerProps.value ? shellProps.label : "",
19995
20036
  title: !innerProps.value ? shellProps.label : void 0,
19996
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
20037
+ children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
19997
20038
  ParameterLinkInner,
19998
20039
  {
19999
20040
  onConnectLink,
@@ -20006,13 +20047,13 @@ var ParameterLink = (0, import_react122.forwardRef)(
20006
20047
  );
20007
20048
  }
20008
20049
  );
20009
- var ParameterLinkInner = (0, import_react122.forwardRef)(
20050
+ var ParameterLinkInner = (0, import_react123.forwardRef)(
20010
20051
  ({ externalLink, onConnectLink, disabled: disabled2, buttonText = "Select link", ...props }, ref) => {
20011
20052
  const { id, label, hiddenLabel } = useParameterShell();
20012
20053
  if (!props.value)
20013
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("button", { type: "button", css: dataConnectButton, disabled: disabled2, onClick: onConnectLink, children: buttonText });
20014
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { css: inputWrapper, children: [
20015
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
20054
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("button", { type: "button", css: dataConnectButton, disabled: disabled2, onClick: onConnectLink, children: buttonText });
20055
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { css: inputWrapper, children: [
20056
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
20016
20057
  "input",
20017
20058
  {
20018
20059
  type: "text",
@@ -20024,8 +20065,8 @@ var ParameterLinkInner = (0, import_react122.forwardRef)(
20024
20065
  ...props
20025
20066
  }
20026
20067
  ),
20027
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { css: linkParameterControls, children: [
20028
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
20068
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { css: linkParameterControls, children: [
20069
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
20029
20070
  "button",
20030
20071
  {
20031
20072
  type: "button",
@@ -20036,7 +20077,7 @@ var ParameterLinkInner = (0, import_react122.forwardRef)(
20036
20077
  children: "edit"
20037
20078
  }
20038
20079
  ),
20039
- externalLink ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
20080
+ externalLink ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
20040
20081
  "a",
20041
20082
  {
20042
20083
  href: externalLink,
@@ -20044,7 +20085,7 @@ var ParameterLinkInner = (0, import_react122.forwardRef)(
20044
20085
  title: "Open link in new tab",
20045
20086
  target: "_blank",
20046
20087
  rel: "noopener noreferrer",
20047
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
20088
+ children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
20048
20089
  }
20049
20090
  ) : null
20050
20091
  ] })
@@ -20054,7 +20095,7 @@ var ParameterLinkInner = (0, import_react122.forwardRef)(
20054
20095
 
20055
20096
  // src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
20056
20097
  init_emotion_jsx_shim();
20057
- var import_jsx_runtime107 = require("@emotion/react/jsx-runtime");
20098
+ var import_jsx_runtime108 = require("@emotion/react/jsx-runtime");
20058
20099
  var ParameterNameAndPublicIdInput = ({
20059
20100
  id,
20060
20101
  onBlur,
@@ -20080,8 +20121,8 @@ var ParameterNameAndPublicIdInput = ({
20080
20121
  navigator.clipboard.writeText(values[publicIdFieldName]);
20081
20122
  };
20082
20123
  autoFocus == null ? void 0 : autoFocus();
20083
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_jsx_runtime107.Fragment, { children: [
20084
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
20124
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_jsx_runtime108.Fragment, { children: [
20125
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
20085
20126
  ParameterInput,
20086
20127
  {
20087
20128
  id: nameIdField,
@@ -20100,7 +20141,7 @@ var ParameterNameAndPublicIdInput = ({
20100
20141
  value: values[nameIdField]
20101
20142
  }
20102
20143
  ),
20103
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
20144
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
20104
20145
  ParameterInput,
20105
20146
  {
20106
20147
  id: publicIdFieldName,
@@ -20114,11 +20155,11 @@ var ParameterNameAndPublicIdInput = ({
20114
20155
  caption: !publicIdError ? publicIdCaption : void 0,
20115
20156
  placeholder: publicIdPlaceholderText,
20116
20157
  errorMessage: publicIdError,
20117
- menuItems: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
20158
+ menuItems: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
20118
20159
  MenuItem,
20119
20160
  {
20120
20161
  disabled: !values[publicIdFieldName],
20121
- icon: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Icon, { icon: "path-trim", iconColor: "currentColor" }),
20162
+ icon: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Icon, { icon: "path-trim", iconColor: "currentColor" }),
20122
20163
  onClick: handleCopyPidFieldValue,
20123
20164
  children: "Copy"
20124
20165
  }
@@ -20126,13 +20167,13 @@ var ParameterNameAndPublicIdInput = ({
20126
20167
  value: values[publicIdFieldName]
20127
20168
  }
20128
20169
  ),
20129
- (warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Callout, { type: "caution", children: warnOverLength.message }) : null
20170
+ (warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Callout, { type: "caution", children: warnOverLength.message }) : null
20130
20171
  ] });
20131
20172
  };
20132
20173
 
20133
20174
  // src/components/ParameterInputs/ParameterRichText.tsx
20134
20175
  init_emotion_jsx_shim();
20135
- var import_react129 = require("@emotion/react");
20176
+ var import_react130 = require("@emotion/react");
20136
20177
  var import_list3 = require("@lexical/list");
20137
20178
  var import_markdown = require("@lexical/markdown");
20138
20179
  var import_LexicalComposer = require("@lexical/react/LexicalComposer");
@@ -20239,7 +20280,7 @@ var getLabelForElement = (type) => {
20239
20280
  // src/components/ParameterInputs/ParameterRichText.tsx
20240
20281
  var import_fast_equals2 = require("fast-equals");
20241
20282
  var import_lexical6 = require("lexical");
20242
- var import_react130 = require("react");
20283
+ var import_react131 = require("react");
20243
20284
 
20244
20285
  // src/components/ParameterInputs/rich-text/CustomCodeNode.ts
20245
20286
  init_emotion_jsx_shim();
@@ -20262,10 +20303,10 @@ init_emotion_jsx_shim();
20262
20303
  var import_LexicalComposerContext = require("@lexical/react/LexicalComposerContext");
20263
20304
  var import_utils2 = require("@lexical/utils");
20264
20305
  var import_lexical = require("lexical");
20265
- var import_react123 = require("react");
20306
+ var import_react124 = require("react");
20266
20307
  function DisableStylesPlugin() {
20267
20308
  const [editor] = (0, import_LexicalComposerContext.useLexicalComposerContext)();
20268
- (0, import_react123.useEffect)(() => {
20309
+ (0, import_react124.useEffect)(() => {
20269
20310
  return (0, import_utils2.mergeRegister)(
20270
20311
  // Disable text alignment on paragraph nodes
20271
20312
  editor.registerNodeTransform(import_lexical.ParagraphNode, (node) => {
@@ -20460,13 +20501,13 @@ var codeElement = import_css2.css`
20460
20501
 
20461
20502
  // src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
20462
20503
  init_emotion_jsx_shim();
20463
- var import_react124 = require("@emotion/react");
20504
+ var import_react125 = require("@emotion/react");
20464
20505
  var import_LexicalComposerContext2 = require("@lexical/react/LexicalComposerContext");
20465
20506
  var import_LexicalNodeEventPlugin = require("@lexical/react/LexicalNodeEventPlugin");
20466
20507
  var import_utils3 = require("@lexical/utils");
20467
20508
  var import_fast_equals = require("fast-equals");
20468
20509
  var import_lexical3 = require("lexical");
20469
- var import_react125 = require("react");
20510
+ var import_react126 = require("react");
20470
20511
 
20471
20512
  // src/components/ParameterInputs/rich-text/utils.ts
20472
20513
  init_emotion_jsx_shim();
@@ -20505,7 +20546,7 @@ var getSelectedNode = (selection) => {
20505
20546
  };
20506
20547
 
20507
20548
  // src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
20508
- var import_jsx_runtime108 = require("@emotion/react/jsx-runtime");
20549
+ var import_jsx_runtime109 = require("@emotion/react/jsx-runtime");
20509
20550
  var isProjectMapLinkValue = (value) => {
20510
20551
  return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
20511
20552
  value.nodeId && value.path && value.projectMapId
@@ -20792,16 +20833,16 @@ var OPEN_LINK_NODE_MODAL_COMMAND = (0, import_lexical3.createCommand)(
20792
20833
  );
20793
20834
  var LINK_POPOVER_OFFSET_X = 0;
20794
20835
  var LINK_POPOVER_OFFSET_Y = 8;
20795
- var linkPopover = import_react124.css`
20836
+ var linkPopover = import_react125.css`
20796
20837
  position: absolute;
20797
20838
  z-index: 5;
20798
20839
  `;
20799
- var linkPopoverContainer = import_react124.css`
20840
+ var linkPopoverContainer = import_react125.css`
20800
20841
  ${Popover};
20801
20842
  align-items: center;
20802
20843
  display: flex;
20803
20844
  `;
20804
- var linkPopoverAnchor = import_react124.css`
20845
+ var linkPopoverAnchor = import_react125.css`
20805
20846
  ${link}
20806
20847
  ${linkColorDefault}
20807
20848
  `;
@@ -20810,17 +20851,17 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
20810
20851
  return path;
20811
20852
  };
20812
20853
  const [editor] = (0, import_LexicalComposerContext2.useLexicalComposerContext)();
20813
- const [linkPopoverState, setLinkPopoverState] = (0, import_react125.useState)();
20814
- const linkPopoverElRef = (0, import_react125.useRef)(null);
20815
- const [isEditorFocused, setIsEditorFocused] = (0, import_react125.useState)(false);
20816
- const [isLinkPopoverFocused, setIsLinkPopoverFocused] = (0, import_react125.useState)(false);
20817
- (0, import_react125.useEffect)(() => {
20854
+ const [linkPopoverState, setLinkPopoverState] = (0, import_react126.useState)();
20855
+ const linkPopoverElRef = (0, import_react126.useRef)(null);
20856
+ const [isEditorFocused, setIsEditorFocused] = (0, import_react126.useState)(false);
20857
+ const [isLinkPopoverFocused, setIsLinkPopoverFocused] = (0, import_react126.useState)(false);
20858
+ (0, import_react126.useEffect)(() => {
20818
20859
  if (!isEditorFocused && !isLinkPopoverFocused) {
20819
20860
  setLinkPopoverState(void 0);
20820
20861
  return;
20821
20862
  }
20822
20863
  }, [isEditorFocused, isLinkPopoverFocused]);
20823
- (0, import_react125.useEffect)(() => {
20864
+ (0, import_react126.useEffect)(() => {
20824
20865
  if (!editor.hasNodes([LinkNode])) {
20825
20866
  throw new Error("LinkNode not registered on editor");
20826
20867
  }
@@ -20889,7 +20930,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
20889
20930
  )
20890
20931
  );
20891
20932
  }, [editor, onConnectLink]);
20892
- const maybeShowLinkToolbar = (0, import_react125.useCallback)(() => {
20933
+ const maybeShowLinkToolbar = (0, import_react126.useCallback)(() => {
20893
20934
  if (!editor.isEditable()) {
20894
20935
  return;
20895
20936
  }
@@ -20921,7 +20962,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
20921
20962
  }
20922
20963
  });
20923
20964
  }, [editor]);
20924
- (0, import_react125.useEffect)(() => {
20965
+ (0, import_react126.useEffect)(() => {
20925
20966
  return editor.registerUpdateListener(({ editorState }) => {
20926
20967
  requestAnimationFrame(() => {
20927
20968
  editorState.read(() => {
@@ -20948,8 +20989,8 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
20948
20989
  });
20949
20990
  });
20950
20991
  };
20951
- return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_jsx_runtime108.Fragment, { children: [
20952
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
20992
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(import_jsx_runtime109.Fragment, { children: [
20993
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
20953
20994
  import_LexicalNodeEventPlugin.NodeEventPlugin,
20954
20995
  {
20955
20996
  nodeType: LinkNode,
@@ -20959,7 +21000,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
20959
21000
  }
20960
21001
  }
20961
21002
  ),
20962
- linkPopoverState ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
21003
+ linkPopoverState ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
20963
21004
  "div",
20964
21005
  {
20965
21006
  css: linkPopover,
@@ -20968,8 +21009,8 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
20968
21009
  top: linkPopoverState.position.y
20969
21010
  },
20970
21011
  ref: linkPopoverElRef,
20971
- children: /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { css: linkPopoverContainer, children: [
20972
- linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
21012
+ children: /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { css: linkPopoverContainer, children: [
21013
+ linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
20973
21014
  "a",
20974
21015
  {
20975
21016
  href: parsePath(
@@ -20981,7 +21022,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
20981
21022
  children: parsePath(linkPopoverState.node.__link.path)
20982
21023
  }
20983
21024
  ),
20984
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
21025
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
20985
21026
  Button,
20986
21027
  {
20987
21028
  size: "xs",
@@ -20989,7 +21030,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
20989
21030
  onEditLinkNode(linkPopoverState.node);
20990
21031
  },
20991
21032
  buttonType: "ghost",
20992
- children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
21033
+ children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
20993
21034
  }
20994
21035
  )
20995
21036
  ] })
@@ -21009,8 +21050,8 @@ var import_list = require("@lexical/list");
21009
21050
  var import_LexicalComposerContext3 = require("@lexical/react/LexicalComposerContext");
21010
21051
  var import_LexicalTabIndentationPlugin = require("@lexical/react/LexicalTabIndentationPlugin");
21011
21052
  var import_lexical4 = require("lexical");
21012
- var import_react126 = require("react");
21013
- var import_jsx_runtime109 = require("@emotion/react/jsx-runtime");
21053
+ var import_react127 = require("react");
21054
+ var import_jsx_runtime110 = require("@emotion/react/jsx-runtime");
21014
21055
  function isIndentPermitted(maxDepth) {
21015
21056
  const selection = (0, import_lexical4.$getSelection)();
21016
21057
  if (!(0, import_lexical4.$isRangeSelection)(selection)) {
@@ -21033,19 +21074,19 @@ function isIndentPermitted(maxDepth) {
21033
21074
  }
21034
21075
  function ListIndentPlugin({ maxDepth }) {
21035
21076
  const [editor] = (0, import_LexicalComposerContext3.useLexicalComposerContext)();
21036
- (0, import_react126.useEffect)(() => {
21077
+ (0, import_react127.useEffect)(() => {
21037
21078
  return editor.registerCommand(
21038
21079
  import_lexical4.INDENT_CONTENT_COMMAND,
21039
21080
  () => !isIndentPermitted(maxDepth),
21040
21081
  import_lexical4.COMMAND_PRIORITY_CRITICAL
21041
21082
  );
21042
21083
  }, [editor, maxDepth]);
21043
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_LexicalTabIndentationPlugin.TabIndentationPlugin, {});
21084
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_LexicalTabIndentationPlugin.TabIndentationPlugin, {});
21044
21085
  }
21045
21086
 
21046
21087
  // src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
21047
21088
  init_emotion_jsx_shim();
21048
- var import_react127 = require("@emotion/react");
21089
+ var import_react128 = require("@emotion/react");
21049
21090
  var import_code2 = require("@lexical/code");
21050
21091
  var import_list2 = require("@lexical/list");
21051
21092
  var import_LexicalComposerContext4 = require("@lexical/react/LexicalComposerContext");
@@ -21053,9 +21094,9 @@ var import_rich_text = require("@lexical/rich-text");
21053
21094
  var import_selection2 = require("@lexical/selection");
21054
21095
  var import_utils6 = require("@lexical/utils");
21055
21096
  var import_lexical5 = require("lexical");
21056
- var import_react128 = require("react");
21057
- var import_jsx_runtime110 = require("@emotion/react/jsx-runtime");
21058
- var toolbar = import_react127.css`
21097
+ var import_react129 = require("react");
21098
+ var import_jsx_runtime111 = require("@emotion/react/jsx-runtime");
21099
+ var toolbar = import_react128.css`
21059
21100
  background: var(--gray-50);
21060
21101
  border-radius: var(--rounded-base);
21061
21102
  display: flex;
@@ -21067,7 +21108,7 @@ var toolbar = import_react127.css`
21067
21108
  top: calc(var(--spacing-sm) * -2);
21068
21109
  z-index: 10;
21069
21110
  `;
21070
- var toolbarGroup = import_react127.css`
21111
+ var toolbarGroup = import_react128.css`
21071
21112
  display: flex;
21072
21113
  gap: var(--spacing-xs);
21073
21114
  position: relative;
@@ -21083,7 +21124,7 @@ var toolbarGroup = import_react127.css`
21083
21124
  width: 1px;
21084
21125
  }
21085
21126
  `;
21086
- var richTextToolbarButton = import_react127.css`
21127
+ var richTextToolbarButton = import_react128.css`
21087
21128
  align-items: center;
21088
21129
  appearance: none;
21089
21130
  border: 0;
@@ -21096,17 +21137,17 @@ var richTextToolbarButton = import_react127.css`
21096
21137
  min-width: 32px;
21097
21138
  padding: 0 var(--spacing-sm);
21098
21139
  `;
21099
- var richTextToolbarButtonActive = import_react127.css`
21140
+ var richTextToolbarButtonActive = import_react128.css`
21100
21141
  background: var(--gray-200);
21101
21142
  `;
21102
- var toolbarIcon = import_react127.css`
21143
+ var toolbarIcon = import_react128.css`
21103
21144
  color: inherit;
21104
21145
  `;
21105
- var toolbarChevron = import_react127.css`
21146
+ var toolbarChevron = import_react128.css`
21106
21147
  margin-left: var(--spacing-xs);
21107
21148
  `;
21108
21149
  var RichTextToolbarIcon = ({ icon }) => {
21109
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Icon, { icon, css: toolbarIcon, size: "1rem" });
21150
+ return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Icon, { icon, css: toolbarIcon, size: "1rem" });
21110
21151
  };
21111
21152
  var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
21112
21153
  ["bold", "format-bold"],
@@ -21157,7 +21198,7 @@ var RichTextToolbar = ({ config, customControls }) => {
21157
21198
  }
21158
21199
  });
21159
21200
  };
21160
- const updateToolbar = (0, import_react128.useCallback)(() => {
21201
+ const updateToolbar = (0, import_react129.useCallback)(() => {
21161
21202
  const selection = (0, import_lexical5.$getSelection)();
21162
21203
  if (!(0, import_lexical5.$isRangeSelection)(selection)) {
21163
21204
  return;
@@ -21196,7 +21237,7 @@ var RichTextToolbar = ({ config, customControls }) => {
21196
21237
  setIsLink(false);
21197
21238
  }
21198
21239
  }, [editor, setActiveElement, setActiveFormats, setIsLink]);
21199
- (0, import_react128.useEffect)(() => {
21240
+ (0, import_react129.useEffect)(() => {
21200
21241
  return editor.registerCommand(
21201
21242
  import_lexical5.SELECTION_CHANGE_COMMAND,
21202
21243
  (_payload) => {
@@ -21206,7 +21247,7 @@ var RichTextToolbar = ({ config, customControls }) => {
21206
21247
  import_lexical5.COMMAND_PRIORITY_CRITICAL
21207
21248
  );
21208
21249
  }, [editor, updateToolbar]);
21209
- (0, import_react128.useEffect)(() => {
21250
+ (0, import_react129.useEffect)(() => {
21210
21251
  return editor.registerUpdateListener(({ editorState }) => {
21211
21252
  requestAnimationFrame(() => {
21212
21253
  editorState.read(() => {
@@ -21215,15 +21256,15 @@ var RichTextToolbar = ({ config, customControls }) => {
21215
21256
  });
21216
21257
  });
21217
21258
  }, [editor, updateToolbar]);
21218
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { css: toolbar, children: [
21219
- /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
21259
+ return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { css: toolbar, children: [
21260
+ /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
21220
21261
  Menu,
21221
21262
  {
21222
21263
  menuLabel: "Elements",
21223
- menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("button", { css: richTextToolbarButton, title: "Text styles", children: [
21264
+ menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("button", { css: richTextToolbarButton, title: "Text styles", children: [
21224
21265
  visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
21225
21266
  " ",
21226
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
21267
+ /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
21227
21268
  ] }),
21228
21269
  placement: "bottom-start",
21229
21270
  children: [
@@ -21233,7 +21274,7 @@ var RichTextToolbar = ({ config, customControls }) => {
21233
21274
  type: "paragraph"
21234
21275
  },
21235
21276
  ...visibleTextualElements
21236
- ].map((element) => /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
21277
+ ].map((element) => /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21237
21278
  MenuItem,
21238
21279
  {
21239
21280
  onClick: () => {
@@ -21243,12 +21284,12 @@ var RichTextToolbar = ({ config, customControls }) => {
21243
21284
  },
21244
21285
  element.type
21245
21286
  )),
21246
- visibleTextualElements.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
21287
+ visibleTextualElements.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
21247
21288
  ]
21248
21289
  }
21249
21290
  ),
21250
- visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { css: toolbarGroup, children: [
21251
- visibleFormatsWithIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
21291
+ visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { css: toolbarGroup, children: [
21292
+ visibleFormatsWithIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21252
21293
  "button",
21253
21294
  {
21254
21295
  onClick: () => {
@@ -21258,16 +21299,16 @@ var RichTextToolbar = ({ config, customControls }) => {
21258
21299
  richTextToolbarButton,
21259
21300
  activeFormats.includes(format.type) ? richTextToolbarButtonActive : null
21260
21301
  ],
21261
- children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
21302
+ children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
21262
21303
  }
21263
21304
  ) }, format.type)),
21264
- visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
21305
+ visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21265
21306
  Menu,
21266
21307
  {
21267
21308
  menuLabel: "Alternative text styles",
21268
- menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("button", { css: richTextToolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Icon, { icon: "more-alt", css: toolbarIcon }) }),
21309
+ menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("button", { css: richTextToolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Icon, { icon: "more-alt", css: toolbarIcon }) }),
21269
21310
  placement: "bottom-start",
21270
- children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
21311
+ children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21271
21312
  MenuItem,
21272
21313
  {
21273
21314
  onClick: () => {
@@ -21280,19 +21321,19 @@ var RichTextToolbar = ({ config, customControls }) => {
21280
21321
  }
21281
21322
  ) : null
21282
21323
  ] }) : null,
21283
- visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { css: toolbarGroup, children: [
21284
- linkElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
21324
+ visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { css: toolbarGroup, children: [
21325
+ linkElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21285
21326
  "button",
21286
21327
  {
21287
21328
  onClick: () => {
21288
21329
  isLink ? editor.dispatchCommand(REMOVE_LINK_NODE_COMMAND, {}) : editor.dispatchCommand(OPEN_LINK_NODE_MODAL_COMMAND, {});
21289
21330
  },
21290
21331
  css: [richTextToolbarButton, isLink ? richTextToolbarButtonActive : null],
21291
- children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(RichTextToolbarIcon, { icon: "link" })
21332
+ children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(RichTextToolbarIcon, { icon: "link" })
21292
21333
  }
21293
21334
  ) }) : null,
21294
- visibleLists.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_jsx_runtime110.Fragment, { children: [
21295
- visibleLists.has("unorderedList") ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
21335
+ visibleLists.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_jsx_runtime111.Fragment, { children: [
21336
+ visibleLists.has("unorderedList") ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21296
21337
  "button",
21297
21338
  {
21298
21339
  onClick: () => {
@@ -21302,10 +21343,10 @@ var RichTextToolbar = ({ config, customControls }) => {
21302
21343
  richTextToolbarButton,
21303
21344
  activeElement === "unorderedList" ? richTextToolbarButtonActive : null
21304
21345
  ],
21305
- children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(RichTextToolbarIcon, { icon: "layout-list" })
21346
+ children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(RichTextToolbarIcon, { icon: "layout-list" })
21306
21347
  }
21307
21348
  ) }) : null,
21308
- visibleLists.has("orderedList") ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
21349
+ visibleLists.has("orderedList") ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21309
21350
  "button",
21310
21351
  {
21311
21352
  onClick: () => {
@@ -21315,57 +21356,57 @@ var RichTextToolbar = ({ config, customControls }) => {
21315
21356
  richTextToolbarButton,
21316
21357
  activeElement === "orderedList" ? richTextToolbarButtonActive : null
21317
21358
  ],
21318
- children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(RichTextToolbarIcon, { icon: "layout-list-numbered" })
21359
+ children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(RichTextToolbarIcon, { icon: "layout-list-numbered" })
21319
21360
  }
21320
21361
  ) }) : null
21321
21362
  ] }) : null,
21322
- quoteElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
21363
+ quoteElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21323
21364
  "button",
21324
21365
  {
21325
21366
  onClick: () => {
21326
21367
  activeElement === "quote" ? onSelectElement("paragraph") : onSelectElement("quote");
21327
21368
  },
21328
21369
  css: [richTextToolbarButton, activeElement === "quote" ? richTextToolbarButtonActive : null],
21329
- children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(RichTextToolbarIcon, { icon: "quote" })
21370
+ children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(RichTextToolbarIcon, { icon: "quote" })
21330
21371
  }
21331
21372
  ) }) : null,
21332
- codeElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
21373
+ codeElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21333
21374
  "button",
21334
21375
  {
21335
21376
  onClick: () => {
21336
21377
  activeElement === "code" ? onSelectElement("paragraph") : onSelectElement("code");
21337
21378
  },
21338
21379
  css: [richTextToolbarButton, activeElement === "code" ? richTextToolbarButtonActive : null],
21339
- children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(RichTextToolbarIcon, { icon: "code-slash" })
21380
+ children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(RichTextToolbarIcon, { icon: "code-slash" })
21340
21381
  }
21341
21382
  ) }) : null
21342
21383
  ] }) : null,
21343
- customControls ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { css: toolbarGroup, children: customControls }) : null
21384
+ customControls ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("div", { css: toolbarGroup, children: customControls }) : null
21344
21385
  ] });
21345
21386
  };
21346
21387
  var RichTextToolbar_default = RichTextToolbar;
21347
21388
  var useRichTextToolbarState = ({ config }) => {
21348
21389
  var _a;
21349
- const enabledBuiltInFormats = (0, import_react128.useMemo)(() => {
21390
+ const enabledBuiltInFormats = (0, import_react129.useMemo)(() => {
21350
21391
  return richTextBuiltInFormats.filter((format) => {
21351
21392
  var _a2, _b;
21352
21393
  return (_b = (_a2 = config == null ? void 0 : config.formatting) == null ? void 0 : _a2.builtIn) == null ? void 0 : _b.includes(format.type);
21353
21394
  });
21354
21395
  }, [config]);
21355
- const enabledBuiltInElements = (0, import_react128.useMemo)(() => {
21396
+ const enabledBuiltInElements = (0, import_react129.useMemo)(() => {
21356
21397
  return richTextBuiltInElements.filter((element) => {
21357
21398
  var _a2, _b;
21358
21399
  return (_b = (_a2 = config == null ? void 0 : config.elements) == null ? void 0 : _a2.builtIn) == null ? void 0 : _b.includes(element.type);
21359
21400
  });
21360
21401
  }, [config]);
21361
- const enabledBuiltInFormatsWithIcon = (0, import_react128.useMemo)(() => {
21402
+ const enabledBuiltInFormatsWithIcon = (0, import_react129.useMemo)(() => {
21362
21403
  return enabledBuiltInFormats.filter((format) => FORMATS_WITH_ICON.has(format.type));
21363
21404
  }, [enabledBuiltInFormats]);
21364
21405
  const enabledBuiltInFormatsWithoutIcon = enabledBuiltInFormats.filter(
21365
21406
  (format) => !FORMATS_WITH_ICON.has(format.type)
21366
21407
  );
21367
- const [activeFormats, setActiveFormats] = (0, import_react128.useState)([]);
21368
- const visibleFormatsWithIcon = (0, import_react128.useMemo)(() => {
21408
+ const [activeFormats, setActiveFormats] = (0, import_react129.useState)([]);
21409
+ const visibleFormatsWithIcon = (0, import_react129.useMemo)(() => {
21369
21410
  const visibleFormats = /* @__PURE__ */ new Set();
21370
21411
  activeFormats.filter((type) => FORMATS_WITH_ICON.has(type)).forEach((type) => {
21371
21412
  visibleFormats.add(type);
@@ -21375,7 +21416,7 @@ var useRichTextToolbarState = ({ config }) => {
21375
21416
  });
21376
21417
  return richTextBuiltInFormats.filter((format) => visibleFormats.has(format.type));
21377
21418
  }, [activeFormats, enabledBuiltInFormatsWithIcon]);
21378
- const visibleFormatsWithoutIcon = (0, import_react128.useMemo)(() => {
21419
+ const visibleFormatsWithoutIcon = (0, import_react129.useMemo)(() => {
21379
21420
  const visibleFormats = /* @__PURE__ */ new Set();
21380
21421
  activeFormats.filter((type) => !FORMATS_WITH_ICON.has(type)).forEach((type) => {
21381
21422
  visibleFormats.add(type);
@@ -21385,11 +21426,11 @@ var useRichTextToolbarState = ({ config }) => {
21385
21426
  });
21386
21427
  return richTextBuiltInFormats.filter((format) => visibleFormats.has(format.type));
21387
21428
  }, [activeFormats, enabledBuiltInFormatsWithoutIcon]);
21388
- const [activeElement, setActiveElement] = (0, import_react128.useState)("paragraph");
21429
+ const [activeElement, setActiveElement] = (0, import_react129.useState)("paragraph");
21389
21430
  const enabledTextualElements = enabledBuiltInElements.filter(
21390
21431
  (element) => TEXTUAL_ELEMENTS.includes(element.type)
21391
21432
  );
21392
- const visibleTextualElements = (0, import_react128.useMemo)(() => {
21433
+ const visibleTextualElements = (0, import_react129.useMemo)(() => {
21393
21434
  if (!TEXTUAL_ELEMENTS.includes(activeElement)) {
21394
21435
  return enabledTextualElements;
21395
21436
  }
@@ -21400,24 +21441,24 @@ var useRichTextToolbarState = ({ config }) => {
21400
21441
  }
21401
21442
  );
21402
21443
  }, [activeElement, (_a = config == null ? void 0 : config.elements) == null ? void 0 : _a.builtIn, enabledTextualElements]);
21403
- const [isLink, setIsLink] = (0, import_react128.useState)(false);
21404
- const linkElementVisible = (0, import_react128.useMemo)(() => {
21444
+ const [isLink, setIsLink] = (0, import_react129.useState)(false);
21445
+ const linkElementVisible = (0, import_react129.useMemo)(() => {
21405
21446
  return enabledBuiltInElements.some((element) => element.type === "link") || isLink;
21406
21447
  }, [isLink, enabledBuiltInElements]);
21407
- const visibleLists = (0, import_react128.useMemo)(() => {
21448
+ const visibleLists = (0, import_react129.useMemo)(() => {
21408
21449
  return new Set(
21409
21450
  ["orderedList", "unorderedList"].filter(
21410
21451
  (type) => enabledBuiltInElements.some((element) => element.type === type) || activeElement === type
21411
21452
  )
21412
21453
  );
21413
21454
  }, [activeElement, enabledBuiltInElements]);
21414
- const quoteElementVisible = (0, import_react128.useMemo)(() => {
21455
+ const quoteElementVisible = (0, import_react129.useMemo)(() => {
21415
21456
  return enabledBuiltInElements.some((element) => element.type === "quote") || activeElement === "quote";
21416
21457
  }, [activeElement, enabledBuiltInElements]);
21417
- const codeElementVisible = (0, import_react128.useMemo)(() => {
21458
+ const codeElementVisible = (0, import_react129.useMemo)(() => {
21418
21459
  return enabledBuiltInElements.some((element) => element.type === "code") || activeElement === "code";
21419
21460
  }, [activeElement, enabledBuiltInElements]);
21420
- const visibleElementsWithIcons = (0, import_react128.useMemo)(() => {
21461
+ const visibleElementsWithIcons = (0, import_react129.useMemo)(() => {
21421
21462
  const visibleElements = /* @__PURE__ */ new Set();
21422
21463
  if (linkElementVisible) {
21423
21464
  visibleElements.add("link");
@@ -21454,7 +21495,7 @@ var useRichTextToolbarState = ({ config }) => {
21454
21495
  };
21455
21496
 
21456
21497
  // src/components/ParameterInputs/ParameterRichText.tsx
21457
- var import_jsx_runtime111 = require("@emotion/react/jsx-runtime");
21498
+ var import_jsx_runtime112 = require("@emotion/react/jsx-runtime");
21458
21499
  var ParameterRichText = ({
21459
21500
  label,
21460
21501
  labelLeadingIcon,
@@ -21479,7 +21520,7 @@ var ParameterRichText = ({
21479
21520
  variables,
21480
21521
  customControls
21481
21522
  }) => {
21482
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
21523
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(
21483
21524
  ParameterShell,
21484
21525
  {
21485
21526
  "data-testid": "parameter-richtext",
@@ -21493,7 +21534,7 @@ var ParameterRichText = ({
21493
21534
  captionTestId,
21494
21535
  menuItems,
21495
21536
  children: [
21496
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21537
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
21497
21538
  ParameterRichTextInner,
21498
21539
  {
21499
21540
  value,
@@ -21511,23 +21552,23 @@ var ParameterRichText = ({
21511
21552
  children
21512
21553
  }
21513
21554
  ),
21514
- menuItems ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_jsx_runtime111.Fragment, { children: menuItems }) }) : null
21555
+ menuItems ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_jsx_runtime112.Fragment, { children: menuItems }) }) : null
21515
21556
  ]
21516
21557
  }
21517
21558
  );
21518
21559
  };
21519
- var editorWrapper = import_react129.css`
21560
+ var editorWrapper = import_react130.css`
21520
21561
  display: flex;
21521
21562
  flex-flow: column;
21522
21563
  flex-grow: 1;
21523
21564
  `;
21524
- var editorContainer = import_react129.css`
21565
+ var editorContainer = import_react130.css`
21525
21566
  display: flex;
21526
21567
  flex-flow: column;
21527
21568
  flex-grow: 1;
21528
21569
  position: relative;
21529
21570
  `;
21530
- var editorPlaceholder = import_react129.css`
21571
+ var editorPlaceholder = import_react130.css`
21531
21572
  color: var(--gray-500);
21532
21573
  font-style: italic;
21533
21574
  /* 1px is added to make sure caret is clearly visible when field is focused
@@ -21538,7 +21579,7 @@ var editorPlaceholder = import_react129.css`
21538
21579
  top: var(--spacing-sm);
21539
21580
  user-select: none;
21540
21581
  `;
21541
- var editorInput = import_react129.css`
21582
+ var editorInput = import_react130.css`
21542
21583
  background: var(--white);
21543
21584
  border: 1px solid var(--gray-200);
21544
21585
  border-radius: var(--rounded-sm);
@@ -21622,8 +21663,8 @@ var ParameterRichTextInner = ({
21622
21663
  },
21623
21664
  editable: !readOnly
21624
21665
  };
21625
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_jsx_runtime111.Fragment, { children: [
21626
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_LexicalComposer.LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21666
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(import_jsx_runtime112.Fragment, { children: [
21667
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_LexicalComposer.LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
21627
21668
  RichText,
21628
21669
  {
21629
21670
  onChange,
@@ -21660,14 +21701,14 @@ var RichText = ({
21660
21701
  variables,
21661
21702
  customControls
21662
21703
  }) => {
21663
- const editorContainerRef = (0, import_react130.useRef)(null);
21704
+ const editorContainerRef = (0, import_react131.useRef)(null);
21664
21705
  const [editor] = (0, import_LexicalComposerContext5.useLexicalComposerContext)();
21665
- (0, import_react130.useEffect)(() => {
21706
+ (0, import_react131.useEffect)(() => {
21666
21707
  if (onRichTextInit) {
21667
21708
  onRichTextInit(editor);
21668
21709
  }
21669
21710
  }, [editor, onRichTextInit]);
21670
- (0, import_react130.useEffect)(() => {
21711
+ (0, import_react131.useEffect)(() => {
21671
21712
  const removeUpdateListener = editor.registerUpdateListener(({ editorState, prevEditorState }) => {
21672
21713
  requestAnimationFrame(() => {
21673
21714
  if (!(0, import_fast_equals2.deepEqual)(editorState.toJSON(), prevEditorState.toJSON())) {
@@ -21679,23 +21720,23 @@ var RichText = ({
21679
21720
  removeUpdateListener();
21680
21721
  };
21681
21722
  }, [editor, onChange]);
21682
- (0, import_react130.useEffect)(() => {
21723
+ (0, import_react131.useEffect)(() => {
21683
21724
  editor.setEditable(!readOnly);
21684
21725
  }, [editor, readOnly]);
21685
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_jsx_runtime111.Fragment, { children: [
21686
- readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(RichTextToolbar_default, { config, customControls }),
21687
- /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
21688
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21726
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(import_jsx_runtime112.Fragment, { children: [
21727
+ readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(RichTextToolbar_default, { config, customControls }),
21728
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
21729
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
21689
21730
  import_LexicalRichTextPlugin.RichTextPlugin,
21690
21731
  {
21691
- contentEditable: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_LexicalContentEditable.ContentEditable, { css: editorInput, className: editorInputClassName }),
21692
- placeholder: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
21732
+ contentEditable: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_LexicalContentEditable.ContentEditable, { css: editorInput, className: editorInputClassName }),
21733
+ placeholder: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
21693
21734
  ErrorBoundary: import_LexicalErrorBoundary.default
21694
21735
  }
21695
21736
  ),
21696
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_LexicalListPlugin.ListPlugin, {}),
21697
- readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_LexicalHistoryPlugin.HistoryPlugin, {}),
21698
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
21737
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_LexicalListPlugin.ListPlugin, {}),
21738
+ readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_LexicalHistoryPlugin.HistoryPlugin, {}),
21739
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
21699
21740
  LinkNodePlugin,
21700
21741
  {
21701
21742
  onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve(),
@@ -21705,28 +21746,28 @@ var RichText = ({
21705
21746
  } : void 0
21706
21747
  }
21707
21748
  ),
21708
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(ListIndentPlugin, { maxDepth: 4 }),
21709
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(DisableStylesPlugin, {}),
21710
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_LexicalMarkdownShortcutPlugin.MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
21711
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_jsx_runtime111.Fragment, { children })
21749
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(ListIndentPlugin, { maxDepth: 4 }),
21750
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(DisableStylesPlugin, {}),
21751
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_LexicalMarkdownShortcutPlugin.MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
21752
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_jsx_runtime112.Fragment, { children })
21712
21753
  ] })
21713
21754
  ] });
21714
21755
  };
21715
21756
 
21716
21757
  // src/components/ParameterInputs/ParameterSelect.tsx
21717
21758
  init_emotion_jsx_shim();
21718
- var import_react131 = require("react");
21719
- var import_jsx_runtime112 = require("@emotion/react/jsx-runtime");
21720
- var ParameterSelect = (0, import_react131.forwardRef)(
21759
+ var import_react132 = require("react");
21760
+ var import_jsx_runtime113 = require("@emotion/react/jsx-runtime");
21761
+ var ParameterSelect = (0, import_react132.forwardRef)(
21721
21762
  ({ defaultOption, options, ...props }, ref) => {
21722
21763
  const { shellProps, innerProps } = extractParameterProps(props);
21723
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
21764
+ return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
21724
21765
  }
21725
21766
  );
21726
- var ParameterSelectInner = (0, import_react131.forwardRef)(
21767
+ var ParameterSelectInner = (0, import_react132.forwardRef)(
21727
21768
  ({ defaultOption, options, ...props }, ref) => {
21728
21769
  const { id, label, hiddenLabel } = useParameterShell();
21729
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(
21770
+ return /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
21730
21771
  "select",
21731
21772
  {
21732
21773
  css: [input3, selectInput],
@@ -21735,10 +21776,10 @@ var ParameterSelectInner = (0, import_react131.forwardRef)(
21735
21776
  ref,
21736
21777
  ...props,
21737
21778
  children: [
21738
- defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("option", { value: "", children: defaultOption }) : null,
21779
+ defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("option", { value: "", children: defaultOption }) : null,
21739
21780
  options.map((option) => {
21740
21781
  var _a;
21741
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
21782
+ return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
21742
21783
  })
21743
21784
  ]
21744
21785
  }
@@ -21748,15 +21789,15 @@ var ParameterSelectInner = (0, import_react131.forwardRef)(
21748
21789
 
21749
21790
  // src/components/ParameterInputs/ParameterTextarea.tsx
21750
21791
  init_emotion_jsx_shim();
21751
- var import_react132 = require("react");
21752
- var import_jsx_runtime113 = require("@emotion/react/jsx-runtime");
21753
- var ParameterTextarea = (0, import_react132.forwardRef)((props, ref) => {
21792
+ var import_react133 = require("react");
21793
+ var import_jsx_runtime114 = require("@emotion/react/jsx-runtime");
21794
+ var ParameterTextarea = (0, import_react133.forwardRef)((props, ref) => {
21754
21795
  const { shellProps, innerProps } = extractParameterProps(props);
21755
- return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(ParameterTextareaInner, { ref, ...innerProps }) });
21796
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(ParameterTextareaInner, { ref, ...innerProps }) });
21756
21797
  });
21757
- var ParameterTextareaInner = (0, import_react132.forwardRef)(({ ...props }, ref) => {
21798
+ var ParameterTextareaInner = (0, import_react133.forwardRef)(({ ...props }, ref) => {
21758
21799
  const { id, label, hiddenLabel } = useParameterShell();
21759
- return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
21800
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
21760
21801
  "textarea",
21761
21802
  {
21762
21803
  css: [input3, textarea2],
@@ -21770,18 +21811,18 @@ var ParameterTextareaInner = (0, import_react132.forwardRef)(({ ...props }, ref)
21770
21811
 
21771
21812
  // src/components/ParameterInputs/ParameterToggle.tsx
21772
21813
  init_emotion_jsx_shim();
21773
- var import_react133 = require("react");
21774
- var import_jsx_runtime114 = require("@emotion/react/jsx-runtime");
21775
- var ParameterToggle = (0, import_react133.forwardRef)((props, ref) => {
21814
+ var import_react134 = require("react");
21815
+ var import_jsx_runtime115 = require("@emotion/react/jsx-runtime");
21816
+ var ParameterToggle = (0, import_react134.forwardRef)((props, ref) => {
21776
21817
  const { shellProps, innerProps } = extractParameterProps(props);
21777
- return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(ParameterToggleInner, { ref, ...innerProps }) });
21818
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(ParameterToggleInner, { ref, ...innerProps }) });
21778
21819
  });
21779
- var ParameterToggleInner = (0, import_react133.forwardRef)(
21820
+ var ParameterToggleInner = (0, import_react134.forwardRef)(
21780
21821
  ({ children, ...props }, ref) => {
21781
21822
  const { id, label } = useParameterShell();
21782
- return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("label", { css: inputToggleLabel2, children: [
21783
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
21784
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("span", { css: inlineLabel2, children: label }),
21823
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("label", { css: inputToggleLabel2, children: [
21824
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
21825
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { css: inlineLabel2, children: label }),
21785
21826
  children
21786
21827
  ] });
21787
21828
  }
@@ -21792,8 +21833,8 @@ init_emotion_jsx_shim();
21792
21833
 
21793
21834
  // src/components/ProgressBar/ProgressBar.styles.ts
21794
21835
  init_emotion_jsx_shim();
21795
- var import_react134 = require("@emotion/react");
21796
- var container3 = import_react134.css`
21836
+ var import_react135 = require("@emotion/react");
21837
+ var container3 = import_react135.css`
21797
21838
  background: var(--gray-50);
21798
21839
  margin-block: var(--spacing-sm);
21799
21840
  position: relative;
@@ -21803,17 +21844,17 @@ var container3 = import_react134.css`
21803
21844
  border: solid 1px var(--gray-300);
21804
21845
  `;
21805
21846
  var themeMap = {
21806
- primary: import_react134.css`
21847
+ primary: import_react135.css`
21807
21848
  --progress-color: var(--accent-light);
21808
21849
  `,
21809
- secondary: import_react134.css`
21850
+ secondary: import_react135.css`
21810
21851
  --progress-color: var(--accent-alt-light);
21811
21852
  `,
21812
- destructive: import_react134.css`
21853
+ destructive: import_react135.css`
21813
21854
  --progress-color: var(--brand-secondary-5);
21814
21855
  `
21815
21856
  };
21816
- var slidingBackgroundPosition = import_react134.keyframes`
21857
+ var slidingBackgroundPosition = import_react135.keyframes`
21817
21858
  from {
21818
21859
  background-position: 0 0;
21819
21860
  }
@@ -21821,10 +21862,10 @@ var slidingBackgroundPosition = import_react134.keyframes`
21821
21862
  background-position: 64px 0;
21822
21863
  }
21823
21864
  `;
21824
- var determinate = import_react134.css`
21865
+ var determinate = import_react135.css`
21825
21866
  background-color: var(--progress-color);
21826
21867
  `;
21827
- var indeterminate = import_react134.css`
21868
+ var indeterminate = import_react135.css`
21828
21869
  background-image: linear-gradient(
21829
21870
  45deg,
21830
21871
  var(--progress-color) 25%,
@@ -21838,7 +21879,7 @@ var indeterminate = import_react134.css`
21838
21879
  background-size: 64px 64px;
21839
21880
  animation: ${slidingBackgroundPosition} 1s linear infinite;
21840
21881
  `;
21841
- var bar = import_react134.css`
21882
+ var bar = import_react135.css`
21842
21883
  position: absolute;
21843
21884
  inset: 0;
21844
21885
  transition: transform var(--duration-fast) var(--timing-ease-out);
@@ -21846,7 +21887,7 @@ var bar = import_react134.css`
21846
21887
  `;
21847
21888
 
21848
21889
  // src/components/ProgressBar/ProgressBar.tsx
21849
- var import_jsx_runtime115 = require("@emotion/react/jsx-runtime");
21890
+ var import_jsx_runtime116 = require("@emotion/react/jsx-runtime");
21850
21891
  function ProgressBar({
21851
21892
  current,
21852
21893
  max,
@@ -21856,7 +21897,7 @@ function ProgressBar({
21856
21897
  }) {
21857
21898
  const valueNow = Math.min(current, max);
21858
21899
  const valuePercentage = max > 0 ? Math.ceil(100 / max * valueNow) : 0;
21859
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
21900
+ return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
21860
21901
  "div",
21861
21902
  {
21862
21903
  css: container3,
@@ -21867,7 +21908,7 @@ function ProgressBar({
21867
21908
  "aria-valuemax": max,
21868
21909
  "aria-valuenow": valueNow,
21869
21910
  ...props,
21870
- children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
21911
+ children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
21871
21912
  "div",
21872
21913
  {
21873
21914
  css: [
@@ -21887,31 +21928,31 @@ function ProgressBar({
21887
21928
 
21888
21929
  // src/components/ProgressList/ProgressList.tsx
21889
21930
  init_emotion_jsx_shim();
21890
- var import_react136 = require("@emotion/react");
21931
+ var import_react137 = require("@emotion/react");
21891
21932
  var import_CgCheckO3 = require("@react-icons/all-files/cg/CgCheckO");
21892
21933
  var import_CgRadioCheck2 = require("@react-icons/all-files/cg/CgRadioCheck");
21893
21934
  var import_CgRecord2 = require("@react-icons/all-files/cg/CgRecord");
21894
- var import_react137 = require("react");
21935
+ var import_react138 = require("react");
21895
21936
 
21896
21937
  // src/components/ProgressList/styles/ProgressList.styles.ts
21897
21938
  init_emotion_jsx_shim();
21898
- var import_react135 = require("@emotion/react");
21899
- var progressListStyles = import_react135.css`
21939
+ var import_react136 = require("@emotion/react");
21940
+ var progressListStyles = import_react136.css`
21900
21941
  display: flex;
21901
21942
  flex-direction: column;
21902
21943
  gap: var(--spacing-sm);
21903
21944
  list-style-type: none;
21904
21945
  `;
21905
- var progressListItemStyles = import_react135.css`
21946
+ var progressListItemStyles = import_react136.css`
21906
21947
  display: flex;
21907
21948
  gap: var(--spacing-base);
21908
21949
  align-items: center;
21909
21950
  `;
21910
21951
 
21911
21952
  // src/components/ProgressList/ProgressList.tsx
21912
- var import_jsx_runtime116 = require("@emotion/react/jsx-runtime");
21953
+ var import_jsx_runtime117 = require("@emotion/react/jsx-runtime");
21913
21954
  var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
21914
- const itemsWithStatus = (0, import_react137.useMemo)(() => {
21955
+ const itemsWithStatus = (0, import_react138.useMemo)(() => {
21915
21956
  const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
21916
21957
  return items.map((item, index) => {
21917
21958
  let status = "queued";
@@ -21923,8 +21964,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
21923
21964
  return { ...item, status };
21924
21965
  });
21925
21966
  }, [items, inProgressId]);
21926
- return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
21927
- return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
21967
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
21968
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
21928
21969
  ProgressListItem,
21929
21970
  {
21930
21971
  status,
@@ -21944,7 +21985,7 @@ var ProgressListItem = ({
21944
21985
  errorLevel = "danger",
21945
21986
  autoEllipsis = false
21946
21987
  }) => {
21947
- const icon = (0, import_react137.useMemo)(() => {
21988
+ const icon = (0, import_react138.useMemo)(() => {
21948
21989
  if (error) {
21949
21990
  return warningIcon;
21950
21991
  }
@@ -21955,14 +21996,14 @@ var ProgressListItem = ({
21955
21996
  };
21956
21997
  return iconPerStatus[status];
21957
21998
  }, [status, error]);
21958
- const statusStyles = (0, import_react137.useMemo)(() => {
21999
+ const statusStyles = (0, import_react138.useMemo)(() => {
21959
22000
  if (error) {
21960
- return errorLevel === "caution" ? import_react136.css`
22001
+ return errorLevel === "caution" ? import_react137.css`
21961
22002
  color: rgb(161, 98, 7);
21962
22003
  & svg {
21963
22004
  color: rgb(250, 204, 21);
21964
22005
  }
21965
- ` : import_react136.css`
22006
+ ` : import_react137.css`
21966
22007
  color: rgb(185, 28, 28);
21967
22008
  & svg {
21968
22009
  color: var(--brand-primary-2);
@@ -21970,23 +22011,23 @@ var ProgressListItem = ({
21970
22011
  `;
21971
22012
  }
21972
22013
  const colorPerStatus = {
21973
- completed: import_react136.css`
22014
+ completed: import_react137.css`
21974
22015
  opacity: 0.75;
21975
22016
  `,
21976
- inProgress: import_react136.css`
22017
+ inProgress: import_react137.css`
21977
22018
  -webkit-text-stroke-width: thin;
21978
22019
  `,
21979
- queued: import_react136.css`
22020
+ queued: import_react137.css`
21980
22021
  opacity: 0.5;
21981
22022
  `
21982
22023
  };
21983
22024
  return colorPerStatus[status];
21984
22025
  }, [status, error, errorLevel]);
21985
- return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("li", { css: [progressListItemStyles, statusStyles], children: [
21986
- /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
21987
- /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { children: [
22026
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("li", { css: [progressListItemStyles, statusStyles], children: [
22027
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
22028
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { children: [
21988
22029
  children,
21989
- /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
22030
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
21990
22031
  ] })
21991
22032
  ] });
21992
22033
  };
@@ -22231,21 +22272,21 @@ init_emotion_jsx_shim();
22231
22272
 
22232
22273
  // src/components/SearchAndFilter/styles/SearchAndFilter.styles.ts
22233
22274
  init_emotion_jsx_shim();
22234
- var import_react138 = require("@emotion/react");
22235
- var SearchAndFilterContainer = import_react138.css``;
22236
- var SearchAndFilterControlsWrapper = (gridColumns) => import_react138.css`
22275
+ var import_react139 = require("@emotion/react");
22276
+ var SearchAndFilterContainer = import_react139.css``;
22277
+ var SearchAndFilterControlsWrapper = (gridColumns) => import_react139.css`
22237
22278
  align-items: stretch;
22238
22279
  display: grid;
22239
22280
  grid-template-columns: ${gridColumns};
22240
22281
  gap: var(--spacing-sm);
22241
22282
  `;
22242
- var SearchAndFilterOutterControlWrapper = (gridColumns) => import_react138.css`
22283
+ var SearchAndFilterOutterControlWrapper = (gridColumns) => import_react139.css`
22243
22284
  align-items: stretch;
22244
22285
  display: grid;
22245
22286
  grid-template-columns: ${gridColumns};
22246
22287
  gap: var(--spacing-sm);
22247
22288
  `;
22248
- var ConditionalFilterRow = import_react138.css`
22289
+ var ConditionalFilterRow = import_react139.css`
22249
22290
  display: grid;
22250
22291
  grid-template-columns: 35px 1fr;
22251
22292
  gap: var(--spacing-sm);
@@ -22264,7 +22305,7 @@ var ConditionalFilterRow = import_react138.css`
22264
22305
  animation: ${fadeInLtr} var(--duration-fast) var(--timing-ease-out);
22265
22306
  }
22266
22307
  `;
22267
- var ConditionalInputRow = import_react138.css`
22308
+ var ConditionalInputRow = import_react139.css`
22268
22309
  display: flex;
22269
22310
  gap: var(--spacing-sm);
22270
22311
  flex-direction: column;
@@ -22278,14 +22319,14 @@ var ConditionalInputRow = import_react138.css`
22278
22319
  grid-template-columns: 200px 160px 1fr 32px;
22279
22320
  }
22280
22321
  `;
22281
- var SearchInput = import_react138.css`
22322
+ var SearchInput = import_react139.css`
22282
22323
  ${input("nowrap")}
22283
22324
  border-radius: var(--rounded-full);
22284
22325
  padding: var(--spacing-sm) var(--spacing-base);
22285
22326
  font-size: var(--fs-sm);
22286
22327
  padding-right: var(--spacing-2xl);
22287
22328
  `;
22288
- var FilterButton = import_react138.css`
22329
+ var FilterButton = import_react139.css`
22289
22330
  align-items: center;
22290
22331
  background: var(--white);
22291
22332
  border: 1px solid var(--gray-300);
@@ -22319,13 +22360,13 @@ var FilterButton = import_react138.css`
22319
22360
  opacity: var(--opacity-50);
22320
22361
  }
22321
22362
  `;
22322
- var FilterButtonText = import_react138.css`
22363
+ var FilterButtonText = import_react139.css`
22323
22364
  overflow: hidden;
22324
22365
  text-overflow: ellipsis;
22325
22366
  white-space: nowrap;
22326
22367
  max-width: 14ch;
22327
22368
  `;
22328
- var FilterButtonSelected = import_react138.css`
22369
+ var FilterButtonSelected = import_react139.css`
22329
22370
  background: var(--gray-100);
22330
22371
  border-color: var(--gray-300);
22331
22372
 
@@ -22333,7 +22374,7 @@ var FilterButtonSelected = import_react138.css`
22333
22374
  color: var(--accent-dark);
22334
22375
  }
22335
22376
  `;
22336
- var FilterButtonWithOptions = import_react138.css`
22377
+ var FilterButtonWithOptions = import_react139.css`
22337
22378
  :where([aria-expanded='true']) {
22338
22379
  background: var(--purple-rain-100);
22339
22380
  border-color: var(--accent-light);
@@ -22345,14 +22386,14 @@ var FilterButtonWithOptions = import_react138.css`
22345
22386
  }
22346
22387
  }
22347
22388
  `;
22348
- var SearchIcon = import_react138.css`
22389
+ var SearchIcon = import_react139.css`
22349
22390
  color: var(--icon-color);
22350
22391
  position: absolute;
22351
22392
  inset: 0 var(--spacing-base) 0 auto;
22352
22393
  margin: auto;
22353
22394
  transition: color var(--duration-fast) var(--timing-ease-out);
22354
22395
  `;
22355
- var AddConditionalBtn = import_react138.css`
22396
+ var AddConditionalBtn = import_react139.css`
22356
22397
  align-items: center;
22357
22398
  background: transparent;
22358
22399
  border: none;
@@ -22371,14 +22412,14 @@ var AddConditionalBtn = import_react138.css`
22371
22412
  color: var(--gray-400);
22372
22413
  }
22373
22414
  `;
22374
- var Title = import_react138.css`
22415
+ var Title = import_react139.css`
22375
22416
  color: var(--typography-light);
22376
22417
 
22377
22418
  &:focus {
22378
22419
  outline: none;
22379
22420
  }
22380
22421
  `;
22381
- var ResetConditionsBtn = import_react138.css`
22422
+ var ResetConditionsBtn = import_react139.css`
22382
22423
  background: transparent;
22383
22424
  border: none;
22384
22425
  color: var(--action-destructive-default);
@@ -22390,12 +22431,12 @@ var ResetConditionsBtn = import_react138.css`
22390
22431
  color: var(--action-destructive-hover);
22391
22432
  }
22392
22433
  `;
22393
- var IconBtn = import_react138.css`
22434
+ var IconBtn = import_react139.css`
22394
22435
  background: transparent;
22395
22436
  border: none;
22396
22437
  padding: var(--spacing-sm);
22397
22438
  `;
22398
- var CloseBtn = import_react138.css`
22439
+ var CloseBtn = import_react139.css`
22399
22440
  color: var(--gray-500);
22400
22441
  background: transparent;
22401
22442
  border: none;
@@ -22404,7 +22445,7 @@ var CloseBtn = import_react138.css`
22404
22445
  top: var(--spacing-base);
22405
22446
  right: var(--spacing-base);
22406
22447
  `;
22407
- var SearchAndFilterOptionsContainer = import_react138.css`
22448
+ var SearchAndFilterOptionsContainer = import_react139.css`
22408
22449
  background: var(--gray-50);
22409
22450
  border: 1px solid var(--gray-300);
22410
22451
  border-radius: var(--rounded-base);
@@ -22417,22 +22458,22 @@ var SearchAndFilterOptionsContainer = import_react138.css`
22417
22458
  position: relative;
22418
22459
  z-index: 1;
22419
22460
  `;
22420
- var SearchAndFilterOptionsInnerContainer = import_react138.css`
22461
+ var SearchAndFilterOptionsInnerContainer = import_react139.css`
22421
22462
  display: flex;
22422
22463
  flex-direction: column;
22423
22464
  gap: var(--spacing-sm);
22424
22465
  `;
22425
- var SearchAndFilterButtonGroup = import_react138.css`
22466
+ var SearchAndFilterButtonGroup = import_react139.css`
22426
22467
  margin-top: var(--spacing-base);
22427
22468
  `;
22428
- var SortFilterInputRow = import_react138.css`
22469
+ var SortFilterInputRow = import_react139.css`
22429
22470
  align-items: center;
22430
22471
  display: flex;
22431
22472
  gap: var(--spacing-sm);
22432
22473
  `;
22433
22474
 
22434
22475
  // src/components/SearchAndFilter/FilterButton.tsx
22435
- var import_jsx_runtime117 = require("@emotion/react/jsx-runtime");
22476
+ var import_jsx_runtime118 = require("@emotion/react/jsx-runtime");
22436
22477
  var FilterButton2 = ({
22437
22478
  text = "Filters",
22438
22479
  icon = "filter-add",
@@ -22440,7 +22481,7 @@ var FilterButton2 = ({
22440
22481
  hasSelectedValue,
22441
22482
  ...props
22442
22483
  }) => {
22443
- return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(
22484
+ return /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(
22444
22485
  "button",
22445
22486
  {
22446
22487
  type: "button",
@@ -22452,9 +22493,9 @@ var FilterButton2 = ({
22452
22493
  ...props,
22453
22494
  "data-testid": "filters-button",
22454
22495
  children: [
22455
- /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Icon, { icon, iconColor: "currentColor", size: "1rem" }),
22456
- /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("span", { css: FilterButtonText, children: text }),
22457
- filterCount ? /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Counter, { count: filterCount, bgColor: "var(--white)" }) : null
22496
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Icon, { icon, iconColor: "currentColor", size: "1rem" }),
22497
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("span", { css: FilterButtonText, children: text }),
22498
+ filterCount ? /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Counter, { count: filterCount, bgColor: "var(--white)" }) : null
22458
22499
  ]
22459
22500
  }
22460
22501
  );
@@ -22462,14 +22503,14 @@ var FilterButton2 = ({
22462
22503
 
22463
22504
  // src/components/SearchAndFilter/FilterControls.tsx
22464
22505
  init_emotion_jsx_shim();
22465
- var import_react140 = require("react");
22506
+ var import_react141 = require("react");
22466
22507
  var import_react_use3 = require("react-use");
22467
22508
 
22468
22509
  // src/components/SearchAndFilter/hooks/useSearchAndFilter.tsx
22469
22510
  init_emotion_jsx_shim();
22470
- var import_react139 = require("react");
22471
- var import_jsx_runtime118 = require("@emotion/react/jsx-runtime");
22472
- var SearchAndFilterContext = (0, import_react139.createContext)({
22511
+ var import_react140 = require("react");
22512
+ var import_jsx_runtime119 = require("@emotion/react/jsx-runtime");
22513
+ var SearchAndFilterContext = (0, import_react140.createContext)({
22473
22514
  searchTerm: "",
22474
22515
  setSearchTerm: () => {
22475
22516
  },
@@ -22505,48 +22546,48 @@ var SearchAndFilterProvider = ({
22505
22546
  totalResults,
22506
22547
  children
22507
22548
  }) => {
22508
- const [searchTerm, setSearchTerm] = (0, import_react139.useState)("");
22509
- const deferredSearchTerm = (0, import_react139.useDeferredValue)(searchTerm);
22510
- const [filterVisibility, setFilterVisibility] = (0, import_react139.useState)(filterMode3);
22511
- const [sortByValue, setSortByValue] = (0, import_react139.useState)(defaultSortByValue);
22512
- const handleSearchTerm = (0, import_react139.useCallback)(
22549
+ const [searchTerm, setSearchTerm] = (0, import_react140.useState)("");
22550
+ const deferredSearchTerm = (0, import_react140.useDeferredValue)(searchTerm);
22551
+ const [filterVisibility, setFilterVisibility] = (0, import_react140.useState)(filterMode3);
22552
+ const [sortByValue, setSortByValue] = (0, import_react140.useState)(defaultSortByValue);
22553
+ const handleSearchTerm = (0, import_react140.useCallback)(
22513
22554
  (term) => {
22514
22555
  setSearchTerm(term);
22515
22556
  onSearchChange == null ? void 0 : onSearchChange(term);
22516
22557
  },
22517
22558
  [setSearchTerm, onSearchChange]
22518
22559
  );
22519
- const handleOnSortChange = (0, import_react139.useCallback)(
22560
+ const handleOnSortChange = (0, import_react140.useCallback)(
22520
22561
  (sort) => {
22521
22562
  setSortByValue(sort);
22522
22563
  onSortChange(sort);
22523
22564
  },
22524
22565
  [onSortChange]
22525
22566
  );
22526
- const handleToggleFilterVisibilty = (0, import_react139.useCallback)(
22567
+ const handleToggleFilterVisibilty = (0, import_react140.useCallback)(
22527
22568
  (mode) => setFilterVisibility(mode),
22528
22569
  [setFilterVisibility]
22529
22570
  );
22530
- const handleAddFilter = (0, import_react139.useCallback)(() => {
22571
+ const handleAddFilter = (0, import_react140.useCallback)(() => {
22531
22572
  onChange([...filters, { field: "", operator: "", value: "" }]);
22532
22573
  }, [filters, onChange]);
22533
- const handleResetFilters = (0, import_react139.useCallback)(() => {
22574
+ const handleResetFilters = (0, import_react140.useCallback)(() => {
22534
22575
  onChange([]);
22535
22576
  }, [onChange]);
22536
- const handleDeleteFilter = (0, import_react139.useCallback)(
22577
+ const handleDeleteFilter = (0, import_react140.useCallback)(
22537
22578
  (index) => {
22538
22579
  const remainingFilters = filters.filter((_, i) => i !== index);
22539
22580
  onChange(remainingFilters);
22540
22581
  },
22541
22582
  [filters, onChange]
22542
22583
  );
22543
- const validFilterQuery = (0, import_react139.useMemo)(() => {
22584
+ const validFilterQuery = (0, import_react140.useMemo)(() => {
22544
22585
  const hasValidFilters = filters.every((f) => f.field && f.operator && f.value);
22545
22586
  if (hasValidFilters) {
22546
22587
  return filters;
22547
22588
  }
22548
22589
  }, [filters]);
22549
- (0, import_react139.useEffect)(() => {
22590
+ (0, import_react140.useEffect)(() => {
22550
22591
  if (filterVisibility) {
22551
22592
  const handleEscKeyFilterClose = (e) => {
22552
22593
  if (e.key === "Escape") {
@@ -22559,7 +22600,7 @@ var SearchAndFilterProvider = ({
22559
22600
  };
22560
22601
  }
22561
22602
  }, [filterVisibility]);
22562
- return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
22603
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
22563
22604
  SearchAndFilterContext.Provider,
22564
22605
  {
22565
22606
  value: {
@@ -22579,17 +22620,17 @@ var SearchAndFilterProvider = ({
22579
22620
  validFilterQuery,
22580
22621
  totalResults
22581
22622
  },
22582
- children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(VerticalRhythm, { children })
22623
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(VerticalRhythm, { children })
22583
22624
  }
22584
22625
  );
22585
22626
  };
22586
22627
  var useSearchAndFilter = () => {
22587
- const value = (0, import_react139.useContext)(SearchAndFilterContext);
22628
+ const value = (0, import_react140.useContext)(SearchAndFilterContext);
22588
22629
  return { ...value };
22589
22630
  };
22590
22631
 
22591
22632
  // src/components/SearchAndFilter/FilterControls.tsx
22592
- var import_jsx_runtime119 = require("@emotion/react/jsx-runtime");
22633
+ var import_jsx_runtime120 = require("@emotion/react/jsx-runtime");
22593
22634
  var FilterControls = ({
22594
22635
  children,
22595
22636
  defaultSortByValue,
@@ -22605,9 +22646,9 @@ var FilterControls = ({
22605
22646
  sortByValue,
22606
22647
  filterOptions
22607
22648
  } = useSearchAndFilter();
22608
- const [initialSortValue, setInitialSortValue] = (0, import_react140.useState)(sortByValue);
22609
- const [localeSearchTerm, setLocaleSearchTerm] = (0, import_react140.useState)("");
22610
- const [userHasChangedSortByValue, setUserHasChangedSortByValue] = (0, import_react140.useState)(false);
22649
+ const [initialSortValue, setInitialSortValue] = (0, import_react141.useState)(sortByValue);
22650
+ const [localeSearchTerm, setLocaleSearchTerm] = (0, import_react141.useState)("");
22651
+ const [userHasChangedSortByValue, setUserHasChangedSortByValue] = (0, import_react141.useState)(false);
22611
22652
  (0, import_react_use3.useDebounce)(
22612
22653
  () => {
22613
22654
  setSearchTerm(localeSearchTerm);
@@ -22615,7 +22656,7 @@ var FilterControls = ({
22615
22656
  300,
22616
22657
  [localeSearchTerm, searchTerm]
22617
22658
  );
22618
- (0, import_react140.useEffect)(() => {
22659
+ (0, import_react141.useEffect)(() => {
22619
22660
  if (searchTerm === "") {
22620
22661
  setLocaleSearchTerm("");
22621
22662
  }
@@ -22635,13 +22676,13 @@ var FilterControls = ({
22635
22676
  (0, import_react_use3.useEffectOnce)(() => {
22636
22677
  setInitialSortValue(sortByValue);
22637
22678
  });
22638
- (0, import_react140.useEffect)(() => {
22679
+ (0, import_react141.useEffect)(() => {
22639
22680
  if (initialSortValue !== sortByValue) {
22640
22681
  setUserHasChangedSortByValue(true);
22641
22682
  }
22642
22683
  }, [initialSortValue, sortByValue]);
22643
- return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(import_jsx_runtime119.Fragment, { children: [
22644
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
22684
+ return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_jsx_runtime120.Fragment, { children: [
22685
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
22645
22686
  FilterButton2,
22646
22687
  {
22647
22688
  "aria-controls": "search-and-filter-options",
@@ -22652,7 +22693,7 @@ var FilterControls = ({
22652
22693
  onClick: () => handleFilterToggle("filters")
22653
22694
  }
22654
22695
  ),
22655
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
22696
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
22656
22697
  FilterButton2,
22657
22698
  {
22658
22699
  "aria-controls": "search-and-filter-sortBy",
@@ -22666,7 +22707,7 @@ var FilterControls = ({
22666
22707
  "data-testid": "sort-by-dropdown"
22667
22708
  }
22668
22709
  ),
22669
- hideSearchInput ? null : /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
22710
+ hideSearchInput ? null : /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
22670
22711
  InputKeywordSearch,
22671
22712
  {
22672
22713
  placeholder: "Search...",
@@ -22682,11 +22723,11 @@ var FilterControls = ({
22682
22723
 
22683
22724
  // src/components/SearchAndFilter/FilterItem.tsx
22684
22725
  init_emotion_jsx_shim();
22685
- var import_react144 = require("react");
22726
+ var import_react145 = require("react");
22686
22727
 
22687
22728
  // src/components/SearchAndFilter/FilterEditor.tsx
22688
22729
  init_emotion_jsx_shim();
22689
- var import_react142 = require("react");
22730
+ var import_react143 = require("react");
22690
22731
  var import_react_use4 = require("react-use");
22691
22732
 
22692
22733
  // src/components/Validation/StatusBullet.tsx
@@ -22694,8 +22735,8 @@ init_emotion_jsx_shim();
22694
22735
 
22695
22736
  // src/components/Validation/StatusBullet.styles.ts
22696
22737
  init_emotion_jsx_shim();
22697
- var import_react141 = require("@emotion/react");
22698
- var StatusBulletContainer = import_react141.css`
22738
+ var import_react142 = require("@emotion/react");
22739
+ var StatusBulletContainer = import_react142.css`
22699
22740
  align-items: center;
22700
22741
  align-self: center;
22701
22742
  color: var(--gray-500);
@@ -22712,33 +22753,33 @@ var StatusBulletContainer = import_react141.css`
22712
22753
  display: block;
22713
22754
  }
22714
22755
  `;
22715
- var StatusBulletBase = import_react141.css`
22756
+ var StatusBulletBase = import_react142.css`
22716
22757
  font-size: var(--fs-sm);
22717
22758
  &:before {
22718
22759
  width: var(--fs-xs);
22719
22760
  height: var(--fs-xs);
22720
22761
  }
22721
22762
  `;
22722
- var StatusBulletSmall = import_react141.css`
22763
+ var StatusBulletSmall = import_react142.css`
22723
22764
  font-size: var(--fs-xs);
22724
22765
  &:before {
22725
22766
  width: var(--fs-xxs);
22726
22767
  height: var(--fs-xxs);
22727
22768
  }
22728
22769
  `;
22729
- var StatusDraft = import_react141.css`
22770
+ var StatusDraft = import_react142.css`
22730
22771
  &:before {
22731
22772
  background: var(--white);
22732
22773
  box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
22733
22774
  }
22734
22775
  `;
22735
- var StatusModified = import_react141.css`
22776
+ var StatusModified = import_react142.css`
22736
22777
  &:before {
22737
22778
  background: linear-gradient(to right, var(--white) 50%, var(--primary-action-default) 50% 100%);
22738
22779
  box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
22739
22780
  }
22740
22781
  `;
22741
- var StatusError = import_react141.css`
22782
+ var StatusError = import_react142.css`
22742
22783
  color: var(--error);
22743
22784
  &:before {
22744
22785
  /* TODO: replace this with an svg icon */
@@ -22751,29 +22792,29 @@ var StatusError = import_react141.css`
22751
22792
  );
22752
22793
  }
22753
22794
  `;
22754
- var StatusPublished = import_react141.css`
22795
+ var StatusPublished = import_react142.css`
22755
22796
  &:before {
22756
22797
  background: var(--primary-action-default);
22757
22798
  }
22758
22799
  `;
22759
- var StatusOrphan = import_react141.css`
22800
+ var StatusOrphan = import_react142.css`
22760
22801
  &:before {
22761
22802
  background: var(--brand-secondary-5);
22762
22803
  }
22763
22804
  `;
22764
- var StatusUnknown = import_react141.css`
22805
+ var StatusUnknown = import_react142.css`
22765
22806
  &:before {
22766
22807
  background: var(--gray-800);
22767
22808
  }
22768
22809
  `;
22769
- var StatusDeleted = import_react141.css`
22810
+ var StatusDeleted = import_react142.css`
22770
22811
  &:before {
22771
22812
  background: var(--error);
22772
22813
  }
22773
22814
  `;
22774
22815
 
22775
22816
  // src/components/Validation/StatusBullet.tsx
22776
- var import_jsx_runtime120 = require("@emotion/react/jsx-runtime");
22817
+ var import_jsx_runtime121 = require("@emotion/react/jsx-runtime");
22777
22818
  var StatusBullet = ({
22778
22819
  status,
22779
22820
  hideText = false,
@@ -22793,7 +22834,7 @@ var StatusBullet = ({
22793
22834
  Deleted: StatusDeleted
22794
22835
  };
22795
22836
  const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
22796
- return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
22837
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
22797
22838
  "span",
22798
22839
  {
22799
22840
  role: "status",
@@ -22806,7 +22847,7 @@ var StatusBullet = ({
22806
22847
  };
22807
22848
 
22808
22849
  // src/components/SearchAndFilter/FilterEditor.tsx
22809
- var import_jsx_runtime121 = require("@emotion/react/jsx-runtime");
22850
+ var import_jsx_runtime122 = require("@emotion/react/jsx-runtime");
22810
22851
  var readOnlyAttributes = {
22811
22852
  isSearchable: false,
22812
22853
  menuIsOpen: false,
@@ -22821,7 +22862,7 @@ var FilterMultiChoiceEditor = ({
22821
22862
  ...props
22822
22863
  }) => {
22823
22864
  const readOnlyProps = readOnly ? readOnlyAttributes : {};
22824
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { "data-testid": valueTestId, children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
22865
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { "data-testid": valueTestId, children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
22825
22866
  InputComboBox,
22826
22867
  {
22827
22868
  ...props,
@@ -22857,7 +22898,7 @@ var FilterSingleChoiceEditor = ({
22857
22898
  valueTestId
22858
22899
  }) => {
22859
22900
  const readOnlyProps = readOnly ? readOnlyAttributes : {};
22860
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { "data-testid": valueTestId, children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
22901
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { "data-testid": valueTestId, children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
22861
22902
  InputComboBox,
22862
22903
  {
22863
22904
  placeholder: "Type to search...",
@@ -22883,7 +22924,7 @@ var FilterSingleChoiceEditor = ({
22883
22924
  ) });
22884
22925
  };
22885
22926
  var CustomOptions = ({ label, value }) => {
22886
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(StatusBullet, { status: label, message: value });
22927
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(StatusBullet, { status: label, message: value });
22887
22928
  };
22888
22929
  var StatusMultiEditor = ({
22889
22930
  options,
@@ -22894,7 +22935,7 @@ var StatusMultiEditor = ({
22894
22935
  valueTestId
22895
22936
  }) => {
22896
22937
  const readOnlyProps = readOnly ? readOnlyAttributes : {};
22897
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { "data-testid": valueTestId, children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
22938
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { "data-testid": valueTestId, children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
22898
22939
  InputComboBox,
22899
22940
  {
22900
22941
  options,
@@ -22927,7 +22968,7 @@ var StatusSingleEditor = ({
22927
22968
  valueTestId
22928
22969
  }) => {
22929
22970
  const readOnlyProps = readOnly ? readOnlyAttributes : {};
22930
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { "data-testid": valueTestId, children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
22971
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { "data-testid": valueTestId, children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
22931
22972
  InputComboBox,
22932
22973
  {
22933
22974
  options,
@@ -22952,7 +22993,7 @@ var StatusSingleEditor = ({
22952
22993
  };
22953
22994
  var TextEditor = ({ onChange, ariaLabel, value, readOnly, valueTestId }) => {
22954
22995
  (0, import_react_use4.useDebounce)(() => onChange, 500, [value]);
22955
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
22996
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
22956
22997
  Input,
22957
22998
  {
22958
22999
  showLabel: false,
@@ -22973,10 +23014,10 @@ var NumberRangeEditor = ({
22973
23014
  readOnly,
22974
23015
  valueTestId
22975
23016
  }) => {
22976
- const [minValue, setMinValue] = (0, import_react142.useState)("");
22977
- const [maxValue, setMaxValue] = (0, import_react142.useState)("");
22978
- const [error, setError] = (0, import_react142.useState)("");
22979
- (0, import_react142.useEffect)(() => {
23017
+ const [minValue, setMinValue] = (0, import_react143.useState)("");
23018
+ const [maxValue, setMaxValue] = (0, import_react143.useState)("");
23019
+ const [error, setError] = (0, import_react143.useState)("");
23020
+ (0, import_react143.useEffect)(() => {
22980
23021
  if (!maxValue && !minValue) {
22981
23022
  return;
22982
23023
  }
@@ -22995,9 +23036,9 @@ var NumberRangeEditor = ({
22995
23036
  setError("");
22996
23037
  onChange([minValue, maxValue]);
22997
23038
  }, [maxValue, minValue, setError]);
22998
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(import_jsx_runtime121.Fragment, { children: [
22999
- /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { css: twoColumnGrid, "data-testid": valueTestId, children: [
23000
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
23039
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(import_jsx_runtime122.Fragment, { children: [
23040
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { css: twoColumnGrid, "data-testid": valueTestId, children: [
23041
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
23001
23042
  Input,
23002
23043
  {
23003
23044
  label: `${ariaLabel}-min`,
@@ -23012,7 +23053,7 @@ var NumberRangeEditor = ({
23012
23053
  readOnly
23013
23054
  }
23014
23055
  ),
23015
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
23056
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
23016
23057
  Input,
23017
23058
  {
23018
23059
  type: "number",
@@ -23028,7 +23069,7 @@ var NumberRangeEditor = ({
23028
23069
  }
23029
23070
  )
23030
23071
  ] }),
23031
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(ErrorContainer, { errorMessage: error })
23072
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(ErrorContainer, { errorMessage: error })
23032
23073
  ] });
23033
23074
  };
23034
23075
  var NumberEditor = ({
@@ -23039,7 +23080,7 @@ var NumberEditor = ({
23039
23080
  readOnly,
23040
23081
  valueTestId
23041
23082
  }) => {
23042
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
23083
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
23043
23084
  Input,
23044
23085
  {
23045
23086
  label: ariaLabel,
@@ -23062,7 +23103,7 @@ var DateEditor = ({
23062
23103
  readOnly,
23063
23104
  valueTestId
23064
23105
  }) => {
23065
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
23106
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
23066
23107
  Input,
23067
23108
  {
23068
23109
  type: "date",
@@ -23084,10 +23125,10 @@ var DateRangeEditor = ({
23084
23125
  readOnly,
23085
23126
  valueTestId
23086
23127
  }) => {
23087
- const [minDateValue, setMinDateValue] = (0, import_react142.useState)(value ? value[0] : "");
23088
- const [maxDateValue, setMaxDateValue] = (0, import_react142.useState)(value ? value[1] : "");
23089
- const [error, setError] = (0, import_react142.useState)("");
23090
- (0, import_react142.useEffect)(() => {
23128
+ const [minDateValue, setMinDateValue] = (0, import_react143.useState)(value ? value[0] : "");
23129
+ const [maxDateValue, setMaxDateValue] = (0, import_react143.useState)(value ? value[1] : "");
23130
+ const [error, setError] = (0, import_react143.useState)("");
23131
+ (0, import_react143.useEffect)(() => {
23091
23132
  if (!minDateValue || !maxDateValue) {
23092
23133
  return;
23093
23134
  }
@@ -23118,9 +23159,9 @@ var DateRangeEditor = ({
23118
23159
  setError("");
23119
23160
  onChange([minDateValue, maxDateValue]);
23120
23161
  }, [minDateValue, maxDateValue, setError]);
23121
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(import_jsx_runtime121.Fragment, { children: [
23122
- /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { css: twoColumnGrid, "data-testid": valueTestId, children: [
23123
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
23162
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(import_jsx_runtime122.Fragment, { children: [
23163
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { css: twoColumnGrid, "data-testid": valueTestId, children: [
23164
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
23124
23165
  Input,
23125
23166
  {
23126
23167
  label: `${ariaLabel}-min-date`,
@@ -23133,7 +23174,7 @@ var DateRangeEditor = ({
23133
23174
  readOnly
23134
23175
  }
23135
23176
  ),
23136
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
23177
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
23137
23178
  Input,
23138
23179
  {
23139
23180
  label: `${ariaLabel}-max-date`,
@@ -23147,7 +23188,7 @@ var DateRangeEditor = ({
23147
23188
  }
23148
23189
  )
23149
23190
  ] }),
23150
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(ErrorContainer, { errorMessage: error })
23191
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(ErrorContainer, { errorMessage: error })
23151
23192
  ] });
23152
23193
  };
23153
23194
  var FilterEditorRenderer = ({ editorType, ...props }) => {
@@ -23158,7 +23199,7 @@ var FilterEditorRenderer = ({ editorType, ...props }) => {
23158
23199
  if (editorType === "empty") {
23159
23200
  return null;
23160
23201
  }
23161
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(Editor, { ...props, disabled: props.isDisabled });
23202
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Editor, { ...props, disabled: props.isDisabled });
23162
23203
  };
23163
23204
  var filterMapper = {
23164
23205
  multiChoice: FilterMultiChoiceEditor,
@@ -23173,14 +23214,14 @@ var filterMapper = {
23173
23214
  empty: null
23174
23215
  };
23175
23216
  var ErrorContainer = ({ errorMessage }) => {
23176
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
23217
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
23177
23218
  "div",
23178
23219
  {
23179
23220
  css: {
23180
23221
  gridColumn: "span 6",
23181
23222
  order: 6
23182
23223
  },
23183
- children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(FieldMessage, { errorMessage })
23224
+ children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(FieldMessage, { errorMessage })
23184
23225
  }
23185
23226
  );
23186
23227
  };
@@ -23192,15 +23233,15 @@ var twoColumnGrid = {
23192
23233
 
23193
23234
  // src/components/SearchAndFilter/FilterMenu.tsx
23194
23235
  init_emotion_jsx_shim();
23195
- var import_react143 = __toESM(require("react"));
23196
- var import_jsx_runtime122 = require("@emotion/react/jsx-runtime");
23236
+ var import_react144 = __toESM(require("react"));
23237
+ var import_jsx_runtime123 = require("@emotion/react/jsx-runtime");
23197
23238
  var SearchAndFilterOptionsContainer2 = ({
23198
23239
  buttonRow,
23199
23240
  children
23200
23241
  }) => {
23201
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { css: SearchAndFilterOptionsContainer, "data-testid": "search-and-filter-options", children: [
23202
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { css: SearchAndFilterOptionsInnerContainer, children }),
23203
- buttonRow ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
23242
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { css: SearchAndFilterOptionsContainer, "data-testid": "search-and-filter-options", children: [
23243
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { css: SearchAndFilterOptionsInnerContainer, children }),
23244
+ buttonRow ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
23204
23245
  HorizontalRhythm,
23205
23246
  {
23206
23247
  css: SearchAndFilterButtonGroup,
@@ -23214,23 +23255,23 @@ var SearchAndFilterOptionsContainer2 = ({
23214
23255
  };
23215
23256
  var FilterMenu = ({ id, filterTitle = "Show results", menuControls, children }) => {
23216
23257
  const { filterVisibility, setFilterVisibility } = useSearchAndFilter();
23217
- const innerMenuRef = import_react143.default.useRef(null);
23218
- (0, import_react143.useEffect)(() => {
23258
+ const innerMenuRef = import_react144.default.useRef(null);
23259
+ (0, import_react144.useEffect)(() => {
23219
23260
  var _a;
23220
23261
  if (filterVisibility) {
23221
23262
  (_a = innerMenuRef.current) == null ? void 0 : _a.focus();
23222
23263
  }
23223
23264
  }, [filterVisibility]);
23224
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(VerticalRhythm, { gap: "sm", "aria-haspopup": "true", id, children: filterVisibility ? /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(SearchAndFilterOptionsContainer2, { buttonRow: menuControls, children: [
23225
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { css: Title, ref: innerMenuRef, tabIndex: 0, children: filterTitle }),
23226
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
23265
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(VerticalRhythm, { gap: "sm", "aria-haspopup": "true", id, children: filterVisibility ? /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(SearchAndFilterOptionsContainer2, { buttonRow: menuControls, children: [
23266
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("span", { css: Title, ref: innerMenuRef, tabIndex: 0, children: filterTitle }),
23267
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
23227
23268
  "button",
23228
23269
  {
23229
23270
  type: "button",
23230
23271
  "aria-label": "close filters",
23231
23272
  css: [CloseBtn],
23232
23273
  onClick: () => setFilterVisibility(void 0),
23233
- children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Icon, { icon: "close", iconColor: "currentColor", size: "1.1rem" })
23274
+ children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Icon, { icon: "close", iconColor: "currentColor", size: "1.1rem" })
23234
23275
  }
23235
23276
  ),
23236
23277
  children
@@ -23238,7 +23279,7 @@ var FilterMenu = ({ id, filterTitle = "Show results", menuControls, children })
23238
23279
  };
23239
23280
 
23240
23281
  // src/components/SearchAndFilter/FilterItem.tsx
23241
- var import_jsx_runtime123 = require("@emotion/react/jsx-runtime");
23282
+ var import_jsx_runtime124 = require("@emotion/react/jsx-runtime");
23242
23283
  var FilterItem = ({
23243
23284
  index,
23244
23285
  paramOptions,
@@ -23254,7 +23295,7 @@ var FilterItem = ({
23254
23295
  const operatorLabel = filters[index].operator !== "" ? `operator ${filters[index].operator}` : "unknown operator";
23255
23296
  const metaDataLabel = filters[index].value !== "" ? `value ${filters[index].value}` : "unknown value";
23256
23297
  const metaDataPossibleOptions = (_b = (_a = operatorOptions.find((op) => filters[index].operator === op.value)) == null ? void 0 : _a.editorType) != null ? _b : "singleChoice";
23257
- const { selectedFieldValue, selectedOperatorValue, selectedMetaValue, readOnly } = (0, import_react144.useMemo)(() => {
23298
+ const { selectedFieldValue, selectedOperatorValue, selectedMetaValue, readOnly } = (0, import_react145.useMemo)(() => {
23258
23299
  var _a2;
23259
23300
  const currentSelectedFilter = filterOptions.find((item) => {
23260
23301
  var _a3;
@@ -23286,10 +23327,10 @@ var FilterItem = ({
23286
23327
  menuIsOpen: false,
23287
23328
  isClearable: false
23288
23329
  } : {};
23289
- return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { css: ConditionalFilterRow, "data-testid": "filter-item", children: [
23290
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("span", { children: index === 0 ? "Where" : "and" }),
23291
- /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { css: ConditionalInputRow, children: [
23292
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
23330
+ return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("div", { css: ConditionalFilterRow, "data-testid": "filter-item", children: [
23331
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { children: index === 0 ? "Where" : "and" }),
23332
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("div", { css: ConditionalInputRow, children: [
23333
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
23293
23334
  InputComboBox,
23294
23335
  {
23295
23336
  "aria-label": label,
@@ -23315,7 +23356,7 @@ var FilterItem = ({
23315
23356
  id: "filter-field"
23316
23357
  }
23317
23358
  ),
23318
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
23359
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
23319
23360
  InputComboBox,
23320
23361
  {
23321
23362
  "aria-label": operatorLabel,
@@ -23338,7 +23379,7 @@ var FilterItem = ({
23338
23379
  id: "filter-operator"
23339
23380
  }
23340
23381
  ),
23341
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
23382
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
23342
23383
  FilterEditorRenderer,
23343
23384
  {
23344
23385
  "aria-label": metaDataLabel,
@@ -23351,7 +23392,7 @@ var FilterItem = ({
23351
23392
  valueTestId: "filter-value"
23352
23393
  }
23353
23394
  ),
23354
- readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
23395
+ readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
23355
23396
  "button",
23356
23397
  {
23357
23398
  type: "button",
@@ -23359,7 +23400,7 @@ var FilterItem = ({
23359
23400
  "aria-label": "delete filter",
23360
23401
  css: IconBtn,
23361
23402
  "data-testid": "delete-filter",
23362
- children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Icon, { icon: "trash", iconColor: "red", size: "1rem" })
23403
+ children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(Icon, { icon: "trash", iconColor: "red", size: "1rem" })
23363
23404
  }
23364
23405
  )
23365
23406
  ] })
@@ -23393,12 +23434,12 @@ var FilterItems = ({
23393
23434
  }
23394
23435
  setFilters(next);
23395
23436
  };
23396
- return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
23437
+ return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
23397
23438
  FilterMenu,
23398
23439
  {
23399
23440
  id: "search-and-filter-options",
23400
- menuControls: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(import_jsx_runtime123.Fragment, { children: [
23401
- /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(
23441
+ menuControls: /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_jsx_runtime124.Fragment, { children: [
23442
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
23402
23443
  "button",
23403
23444
  {
23404
23445
  type: "button",
@@ -23406,12 +23447,12 @@ var FilterItems = ({
23406
23447
  onClick: handleAddFilter,
23407
23448
  "data-testid": "add-filter",
23408
23449
  children: [
23409
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Icon, { icon: "math-plus", iconColor: "currentColor", size: "1rem" }),
23450
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(Icon, { icon: "math-plus", iconColor: "currentColor", size: "1rem" }),
23410
23451
  addButtonText
23411
23452
  ]
23412
23453
  }
23413
23454
  ),
23414
- (filters == null ? void 0 : filters.length) ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
23455
+ (filters == null ? void 0 : filters.length) ? /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
23415
23456
  "button",
23416
23457
  {
23417
23458
  type: "button",
@@ -23433,7 +23474,7 @@ var FilterItems = ({
23433
23474
  })) == null ? void 0 : _a.options) != null ? _b : [];
23434
23475
  const possibleValueOptions = (_d = (_c = availableTypeOptions == null ? void 0 : availableTypeOptions.find((op) => op.value === item.field)) == null ? void 0 : _c.valueOptions) != null ? _d : [];
23435
23476
  const possibleOperators = (_f = (_e = availableTypeOptions == null ? void 0 : availableTypeOptions.find((op) => op.value === item.field)) == null ? void 0 : _e.operatorOptions) != null ? _f : [];
23436
- return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
23477
+ return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
23437
23478
  FilterItem,
23438
23479
  {
23439
23480
  index: i,
@@ -23462,14 +23503,14 @@ init_emotion_jsx_shim();
23462
23503
 
23463
23504
  // src/components/SegmentedControl/SegmentedControl.tsx
23464
23505
  init_emotion_jsx_shim();
23465
- var import_react146 = require("@emotion/react");
23506
+ var import_react147 = require("@emotion/react");
23466
23507
  var import_CgCheck5 = require("@react-icons/all-files/cg/CgCheck");
23467
- var import_react147 = require("react");
23508
+ var import_react148 = require("react");
23468
23509
 
23469
23510
  // src/components/SegmentedControl/SegmentedControl.styles.ts
23470
23511
  init_emotion_jsx_shim();
23471
- var import_react145 = require("@emotion/react");
23472
- var segmentedControlStyles = import_react145.css`
23512
+ var import_react146 = require("@emotion/react");
23513
+ var segmentedControlStyles = import_react146.css`
23473
23514
  --segmented-control-rounded-value: var(--rounded-base);
23474
23515
  --segmented-control-border-width: 1px;
23475
23516
  --segmented-control-selected-color: var(--brand-secondary-3);
@@ -23488,14 +23529,14 @@ var segmentedControlStyles = import_react145.css`
23488
23529
  border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
23489
23530
  font-size: var(--fs-xs);
23490
23531
  `;
23491
- var segmentedControlVerticalStyles = import_react145.css`
23532
+ var segmentedControlVerticalStyles = import_react146.css`
23492
23533
  flex-direction: column;
23493
23534
  --segmented-control-first-border-radius: var(--segmented-control-rounded-value)
23494
23535
  var(--segmented-control-rounded-value) 0 0;
23495
23536
  --segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
23496
23537
  var(--segmented-control-rounded-value);
23497
23538
  `;
23498
- var segmentedControlItemStyles = import_react145.css`
23539
+ var segmentedControlItemStyles = import_react146.css`
23499
23540
  &:first-of-type label {
23500
23541
  border-radius: var(--segmented-control-first-border-radius);
23501
23542
  }
@@ -23503,10 +23544,10 @@ var segmentedControlItemStyles = import_react145.css`
23503
23544
  border-radius: var(--segmented-control-last-border-radius);
23504
23545
  }
23505
23546
  `;
23506
- var segmentedControlInputStyles = import_react145.css`
23547
+ var segmentedControlInputStyles = import_react146.css`
23507
23548
  ${accessibleHidden}
23508
23549
  `;
23509
- var segmentedControlLabelStyles = (checked, disabled2) => import_react145.css`
23550
+ var segmentedControlLabelStyles = (checked, disabled2) => import_react146.css`
23510
23551
  position: relative;
23511
23552
  display: flex;
23512
23553
  align-items: center;
@@ -23573,23 +23614,23 @@ var segmentedControlLabelStyles = (checked, disabled2) => import_react145.css`
23573
23614
  `}
23574
23615
  }
23575
23616
  `;
23576
- var segmentedControlLabelIconOnlyStyles = import_react145.css`
23617
+ var segmentedControlLabelIconOnlyStyles = import_react146.css`
23577
23618
  padding-inline: 0.5em;
23578
23619
  `;
23579
- var segmentedControlLabelCheckStyles = import_react145.css`
23620
+ var segmentedControlLabelCheckStyles = import_react146.css`
23580
23621
  opacity: 0.5;
23581
23622
  `;
23582
- var segmentedControlLabelContentStyles = import_react145.css`
23623
+ var segmentedControlLabelContentStyles = import_react146.css`
23583
23624
  display: flex;
23584
23625
  align-items: center;
23585
23626
  justify-content: center;
23586
23627
  gap: var(--spacing-sm);
23587
23628
  height: 100%;
23588
23629
  `;
23589
- var segmentedControlLabelTextStyles = import_react145.css``;
23630
+ var segmentedControlLabelTextStyles = import_react146.css``;
23590
23631
 
23591
23632
  // src/components/SegmentedControl/SegmentedControl.tsx
23592
- var import_jsx_runtime124 = require("@emotion/react/jsx-runtime");
23633
+ var import_jsx_runtime125 = require("@emotion/react/jsx-runtime");
23593
23634
  var SegmentedControl = ({
23594
23635
  name,
23595
23636
  options,
@@ -23601,7 +23642,7 @@ var SegmentedControl = ({
23601
23642
  size = "md",
23602
23643
  ...props
23603
23644
  }) => {
23604
- const onOptionChange = (0, import_react147.useCallback)(
23645
+ const onOptionChange = (0, import_react148.useCallback)(
23605
23646
  (event) => {
23606
23647
  if (event.target.checked) {
23607
23648
  onChange == null ? void 0 : onChange(options[parseInt(event.target.value)].value);
@@ -23609,18 +23650,18 @@ var SegmentedControl = ({
23609
23650
  },
23610
23651
  [options, onChange]
23611
23652
  );
23612
- const sizeStyles = (0, import_react147.useMemo)(() => {
23653
+ const sizeStyles = (0, import_react148.useMemo)(() => {
23613
23654
  const map = {
23614
- sm: (0, import_react146.css)({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
23615
- md: (0, import_react146.css)({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
23616
- lg: (0, import_react146.css)({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
23655
+ sm: (0, import_react147.css)({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
23656
+ md: (0, import_react147.css)({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
23657
+ lg: (0, import_react147.css)({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
23617
23658
  };
23618
23659
  return map[size];
23619
23660
  }, [size]);
23620
- const isIconOnly = (0, import_react147.useMemo)(() => {
23661
+ const isIconOnly = (0, import_react148.useMemo)(() => {
23621
23662
  return options.every((option) => option && option.icon && !option.label);
23622
23663
  }, [options]);
23623
- return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
23664
+ return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
23624
23665
  "div",
23625
23666
  {
23626
23667
  css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
@@ -23632,7 +23673,7 @@ var SegmentedControl = ({
23632
23673
  }
23633
23674
  const text = option.label ? option.label : option.icon ? null : String(option.value);
23634
23675
  const isDisabled = disabled2 || option.disabled;
23635
- return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(Tooltip, { title: (_a = option.tooltip) != null ? _a : "", children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
23676
+ return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(Tooltip, { title: (_a = option.tooltip) != null ? _a : "", children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
23636
23677
  "label",
23637
23678
  {
23638
23679
  css: [
@@ -23641,7 +23682,7 @@ var SegmentedControl = ({
23641
23682
  isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
23642
23683
  ],
23643
23684
  children: [
23644
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
23685
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
23645
23686
  "input",
23646
23687
  {
23647
23688
  css: segmentedControlInputStyles,
@@ -23653,10 +23694,10 @@ var SegmentedControl = ({
23653
23694
  disabled: isDisabled
23654
23695
  }
23655
23696
  ),
23656
- option.value !== value || noCheckmark ? null : /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_CgCheck5.CgCheck, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
23657
- /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("span", { css: segmentedControlLabelContentStyles, children: [
23658
- !option.icon ? null : /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(Icon, { icon: option.icon, size: "1.5em", iconColor: "currentColor" }),
23659
- !text ? null : /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { css: segmentedControlLabelTextStyles, children: text })
23697
+ option.value !== value || noCheckmark ? null : /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_CgCheck5.CgCheck, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
23698
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)("span", { css: segmentedControlLabelContentStyles, children: [
23699
+ !option.icon ? null : /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(Icon, { icon: option.icon, size: "1.5em", iconColor: "currentColor" }),
23700
+ !text ? null : /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("span", { css: segmentedControlLabelTextStyles, children: text })
23660
23701
  ] })
23661
23702
  ]
23662
23703
  }
@@ -23667,7 +23708,7 @@ var SegmentedControl = ({
23667
23708
  };
23668
23709
 
23669
23710
  // src/components/SearchAndFilter/SortItems.tsx
23670
- var import_jsx_runtime125 = require("@emotion/react/jsx-runtime");
23711
+ var import_jsx_runtime126 = require("@emotion/react/jsx-runtime");
23671
23712
  var SortItems = () => {
23672
23713
  var _a, _b;
23673
23714
  const { sortOptions, setSortBy, sortByValue } = useSearchAndFilter();
@@ -23678,8 +23719,8 @@ var SortItems = () => {
23678
23719
  var _a2;
23679
23720
  return (_a2 = item.options) == null ? void 0 : _a2.find((option) => option.value === sortField);
23680
23721
  })) == null ? void 0 : _a.options) == null ? void 0 : _b.find((nestedOption) => nestedOption.value === sortField);
23681
- return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(FilterMenu, { id: "search-and-filter-options", filterTitle: "Sort by", children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)("div", { css: SortFilterInputRow, children: [
23682
- /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
23722
+ return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(FilterMenu, { id: "search-and-filter-options", filterTitle: "Sort by", children: /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)("div", { css: SortFilterInputRow, children: [
23723
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
23683
23724
  InputComboBox,
23684
23725
  {
23685
23726
  options: sortOptions,
@@ -23698,7 +23739,7 @@ var SortItems = () => {
23698
23739
  value: currentSelectedOption
23699
23740
  }
23700
23741
  ),
23701
- /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
23742
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
23702
23743
  SegmentedControl,
23703
23744
  {
23704
23745
  noCheckmark: true,
@@ -23715,19 +23756,19 @@ var SortItems = () => {
23715
23756
  };
23716
23757
 
23717
23758
  // src/components/SearchAndFilter/FilterModeView.tsx
23718
- var import_jsx_runtime126 = require("@emotion/react/jsx-runtime");
23759
+ var import_jsx_runtime127 = require("@emotion/react/jsx-runtime");
23719
23760
  var FilterModeView = () => {
23720
23761
  const { filterVisibility } = useSearchAndFilter();
23721
23762
  const modeView = {
23722
- filters: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(FilterItems, {}),
23723
- sort: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(SortItems, {})
23763
+ filters: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(FilterItems, {}),
23764
+ sort: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(SortItems, {})
23724
23765
  };
23725
23766
  return filterVisibility ? modeView[filterVisibility] : null;
23726
23767
  };
23727
23768
 
23728
23769
  // src/components/SearchAndFilter/SearchAndFilterResultContainer.tsx
23729
23770
  init_emotion_jsx_shim();
23730
- var import_jsx_runtime127 = require("@emotion/react/jsx-runtime");
23771
+ var import_jsx_runtime128 = require("@emotion/react/jsx-runtime");
23731
23772
  var SearchAndFilterResultContainer = ({
23732
23773
  buttonText,
23733
23774
  clearButtonLabel = "clear",
@@ -23761,24 +23802,24 @@ var SearchAndFilterResultContainer = ({
23761
23802
  if (totalResults && totalResults > 0) {
23762
23803
  return null;
23763
23804
  }
23764
- return /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_jsx_runtime127.Fragment, { children: [
23765
- /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(HorizontalRhythm, { children: [
23766
- /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)("span", { children: [
23805
+ return /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(import_jsx_runtime128.Fragment, { children: [
23806
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(HorizontalRhythm, { children: [
23807
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)("span", { children: [
23767
23808
  totalResults,
23768
23809
  " results ",
23769
23810
  searchTerm ? `for "${searchTerm}"` : null
23770
23811
  ] }),
23771
- !searchTerm ? null : /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(Button, { buttonType: "ghostDestructive", size: "zero", onClick: () => setSearchTerm(""), children: clearButtonLabel })
23812
+ !searchTerm ? null : /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(Button, { buttonType: "ghostDestructive", size: "zero", onClick: () => setSearchTerm(""), children: clearButtonLabel })
23772
23813
  ] }),
23773
- totalResults === 0 ? /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(Callout, { title: calloutTitle2 != null ? calloutTitle2 : automateCalloutTitle(), type: "note", children: [
23774
- calloutText ? /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(Paragraph, { children: calloutText }) : null,
23775
- /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(Button, { buttonType: "tertiaryOutline", size: "xs", onClick: onHandleClear != null ? onHandleClear : handleResetFilters, children: buttonText != null ? buttonText : "Clear search" })
23814
+ totalResults === 0 ? /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(Callout, { title: calloutTitle2 != null ? calloutTitle2 : automateCalloutTitle(), type: "note", children: [
23815
+ calloutText ? /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(Paragraph, { children: calloutText }) : null,
23816
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(Button, { buttonType: "tertiaryOutline", size: "xs", onClick: onHandleClear != null ? onHandleClear : handleResetFilters, children: buttonText != null ? buttonText : "Clear search" })
23776
23817
  ] }) : null
23777
23818
  ] });
23778
23819
  };
23779
23820
 
23780
23821
  // src/components/SearchAndFilter/SearchAndFilter.tsx
23781
- var import_jsx_runtime128 = require("@emotion/react/jsx-runtime");
23822
+ var import_jsx_runtime129 = require("@emotion/react/jsx-runtime");
23782
23823
  var SearchAndFilter = ({
23783
23824
  filters,
23784
23825
  filterOptions,
@@ -23787,14 +23828,14 @@ var SearchAndFilter = ({
23787
23828
  defaultSortByValue,
23788
23829
  filterControls,
23789
23830
  viewSwitchControls,
23790
- resultsContainerView = /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(SearchAndFilterResultContainer, {}),
23791
- children = /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(FilterModeView, {}),
23831
+ resultsContainerView = /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(SearchAndFilterResultContainer, {}),
23832
+ children = /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(FilterModeView, {}),
23792
23833
  onChange,
23793
23834
  onSearchChange,
23794
23835
  onSortChange,
23795
23836
  totalResults
23796
23837
  }) => {
23797
- return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
23838
+ return /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
23798
23839
  SearchAndFilterProvider,
23799
23840
  {
23800
23841
  filters,
@@ -23806,15 +23847,15 @@ var SearchAndFilter = ({
23806
23847
  onSearchChange,
23807
23848
  onSortChange,
23808
23849
  totalResults,
23809
- children: /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(VerticalRhythm, { css: SearchAndFilterContainer, "data-testid": "search-and-filter", children: [
23810
- /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)("div", { css: SearchAndFilterOutterControlWrapper(viewSwitchControls ? "1fr auto" : "1fr"), children: [
23811
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
23850
+ children: /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(VerticalRhythm, { css: SearchAndFilterContainer, "data-testid": "search-and-filter", children: [
23851
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)("div", { css: SearchAndFilterOutterControlWrapper(viewSwitchControls ? "1fr auto" : "1fr"), children: [
23852
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
23812
23853
  "div",
23813
23854
  {
23814
23855
  css: SearchAndFilterControlsWrapper(
23815
23856
  viewSwitchControls ? "auto auto 1fr 0.5fr" : "auto auto 1fr"
23816
23857
  ),
23817
- children: !filterControls ? /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(FilterControls, { hideSearchInput: !onSearchChange, defaultSortByValue }) : filterControls
23858
+ children: !filterControls ? /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(FilterControls, { hideSearchInput: !onSearchChange, defaultSortByValue }) : filterControls
23818
23859
  }
23819
23860
  ),
23820
23861
  viewSwitchControls
@@ -23828,17 +23869,17 @@ var SearchAndFilter = ({
23828
23869
 
23829
23870
  // src/components/SearchAndFilter/SearchOnlyFilter.tsx
23830
23871
  init_emotion_jsx_shim();
23831
- var import_react148 = require("react");
23872
+ var import_react149 = require("react");
23832
23873
  var import_react_use5 = require("react-use");
23833
- var import_jsx_runtime129 = require("@emotion/react/jsx-runtime");
23834
- var SearchOnlyContext = (0, import_react148.createContext)({
23874
+ var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
23875
+ var SearchOnlyContext = (0, import_react149.createContext)({
23835
23876
  searchTerm: "",
23836
23877
  setSearchTerm: () => {
23837
23878
  }
23838
23879
  });
23839
23880
  var SearchOnlyFilter = ({ onSearchChange, maxWidth }) => {
23840
23881
  const { searchTerm, setSearchTerm } = useSearchAndFilter();
23841
- const [localeSearchTerm, setLocaleSearchTerm] = (0, import_react148.useState)("");
23882
+ const [localeSearchTerm, setLocaleSearchTerm] = (0, import_react149.useState)("");
23842
23883
  (0, import_react_use5.useDebounce)(
23843
23884
  () => {
23844
23885
  setSearchTerm(localeSearchTerm);
@@ -23847,14 +23888,14 @@ var SearchOnlyFilter = ({ onSearchChange, maxWidth }) => {
23847
23888
  300,
23848
23889
  [localeSearchTerm]
23849
23890
  );
23850
- return /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
23891
+ return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
23851
23892
  SearchOnlyContext.Provider,
23852
23893
  {
23853
23894
  value: {
23854
23895
  searchTerm,
23855
23896
  setSearchTerm: setLocaleSearchTerm
23856
23897
  },
23857
- children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)("div", { css: { maxWidth: maxWidth != null ? maxWidth : "712px" }, children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
23898
+ children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("div", { css: { maxWidth: maxWidth != null ? maxWidth : "712px" }, children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
23858
23899
  InputKeywordSearch,
23859
23900
  {
23860
23901
  placeholder: "Search...",
@@ -23873,18 +23914,18 @@ init_emotion_jsx_shim();
23873
23914
 
23874
23915
  // src/components/Skeleton/Skeleton.styles.ts
23875
23916
  init_emotion_jsx_shim();
23876
- var import_react149 = require("@emotion/react");
23877
- var lightFadingOut = import_react149.keyframes`
23917
+ var import_react150 = require("@emotion/react");
23918
+ var lightFadingOut = import_react150.keyframes`
23878
23919
  from { opacity: 0.1; }
23879
23920
  to { opacity: 0.025; }
23880
23921
  `;
23881
- var skeletonStyles = import_react149.css`
23922
+ var skeletonStyles = import_react150.css`
23882
23923
  animation: ${lightFadingOut} 1s ease-out infinite alternate;
23883
23924
  background-color: var(--gray-900);
23884
23925
  `;
23885
23926
 
23886
23927
  // src/components/Skeleton/Skeleton.tsx
23887
- var import_jsx_runtime130 = require("@emotion/react/jsx-runtime");
23928
+ var import_jsx_runtime131 = require("@emotion/react/jsx-runtime");
23888
23929
  var Skeleton = ({
23889
23930
  width = "100%",
23890
23931
  height = "1.25rem",
@@ -23892,7 +23933,7 @@ var Skeleton = ({
23892
23933
  circle = false,
23893
23934
  children,
23894
23935
  ...otherProps
23895
- }) => /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
23936
+ }) => /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
23896
23937
  "div",
23897
23938
  {
23898
23939
  css: [
@@ -23917,8 +23958,8 @@ var React26 = __toESM(require("react"));
23917
23958
 
23918
23959
  // src/components/Switch/Switch.styles.ts
23919
23960
  init_emotion_jsx_shim();
23920
- var import_react150 = require("@emotion/react");
23921
- var SwitchInputContainer = import_react150.css`
23961
+ var import_react151 = require("@emotion/react");
23962
+ var SwitchInputContainer = import_react151.css`
23922
23963
  cursor: pointer;
23923
23964
  display: inline-block;
23924
23965
  position: relative;
@@ -23927,7 +23968,7 @@ var SwitchInputContainer = import_react150.css`
23927
23968
  vertical-align: middle;
23928
23969
  user-select: none;
23929
23970
  `;
23930
- var SwitchInput = import_react150.css`
23971
+ var SwitchInput = import_react151.css`
23931
23972
  appearance: none;
23932
23973
  border-radius: var(--rounded-full);
23933
23974
  background-color: var(--white);
@@ -23965,7 +24006,7 @@ var SwitchInput = import_react150.css`
23965
24006
  cursor: not-allowed;
23966
24007
  }
23967
24008
  `;
23968
- var SwitchInputDisabled = import_react150.css`
24009
+ var SwitchInputDisabled = import_react151.css`
23969
24010
  opacity: var(--opacity-50);
23970
24011
  cursor: not-allowed;
23971
24012
 
@@ -23973,7 +24014,7 @@ var SwitchInputDisabled = import_react150.css`
23973
24014
  cursor: not-allowed;
23974
24015
  }
23975
24016
  `;
23976
- var SwitchInputLabel = import_react150.css`
24017
+ var SwitchInputLabel = import_react151.css`
23977
24018
  align-items: center;
23978
24019
  color: var(--typography-base);
23979
24020
  display: inline-flex;
@@ -23994,26 +24035,26 @@ var SwitchInputLabel = import_react150.css`
23994
24035
  top: 0;
23995
24036
  }
23996
24037
  `;
23997
- var SwitchText = import_react150.css`
24038
+ var SwitchText = import_react151.css`
23998
24039
  color: var(--gray-500);
23999
24040
  font-size: var(--fs-sm);
24000
24041
  padding-inline: var(--spacing-2xl) 0;
24001
24042
  `;
24002
24043
 
24003
24044
  // src/components/Switch/Switch.tsx
24004
- var import_jsx_runtime131 = require("@emotion/react/jsx-runtime");
24045
+ var import_jsx_runtime132 = require("@emotion/react/jsx-runtime");
24005
24046
  var Switch = React26.forwardRef(
24006
24047
  ({ label, infoText, toggleText, children, ...inputProps }, ref) => {
24007
24048
  let additionalText = infoText;
24008
24049
  if (infoText && toggleText) {
24009
24050
  additionalText = inputProps.checked ? toggleText : infoText;
24010
24051
  }
24011
- return /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(import_jsx_runtime131.Fragment, { children: [
24012
- /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
24013
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
24014
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("span", { css: SwitchInputLabel, children: label })
24052
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(import_jsx_runtime132.Fragment, { children: [
24053
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
24054
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
24055
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("span", { css: SwitchInputLabel, children: label })
24015
24056
  ] }),
24016
- additionalText ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("p", { css: SwitchText, children: additionalText }) : null,
24057
+ additionalText ? /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("p", { css: SwitchText, children: additionalText }) : null,
24017
24058
  children
24018
24059
  ] });
24019
24060
  }
@@ -24025,8 +24066,8 @@ var React27 = __toESM(require("react"));
24025
24066
 
24026
24067
  // src/components/Table/Table.styles.ts
24027
24068
  init_emotion_jsx_shim();
24028
- var import_react151 = require("@emotion/react");
24029
- var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => import_react151.css`
24069
+ var import_react152 = require("@emotion/react");
24070
+ var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => import_react152.css`
24030
24071
  border-bottom: 1px solid var(--gray-400);
24031
24072
  border-collapse: collapse;
24032
24073
  min-width: 100%;
@@ -24037,67 +24078,67 @@ var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => impor
24037
24078
  padding: ${cellPadding};
24038
24079
  }
24039
24080
  `;
24040
- var tableHead = import_react151.css`
24081
+ var tableHead = import_react152.css`
24041
24082
  background: var(--gray-100);
24042
24083
  color: var(--typography-base);
24043
24084
  text-align: left;
24044
24085
  `;
24045
- var tableRow = import_react151.css`
24086
+ var tableRow = import_react152.css`
24046
24087
  border-bottom: 1px solid var(--gray-200);
24047
24088
  `;
24048
- var tableCellHead = import_react151.css`
24089
+ var tableCellHead = import_react152.css`
24049
24090
  font-size: var(--fs-sm);
24050
24091
  text-transform: uppercase;
24051
24092
  font-weight: var(--fw-bold);
24052
24093
  `;
24053
24094
 
24054
24095
  // src/components/Table/Table.tsx
24055
- var import_jsx_runtime132 = require("@emotion/react/jsx-runtime");
24096
+ var import_jsx_runtime133 = require("@emotion/react/jsx-runtime");
24056
24097
  var Table = React27.forwardRef(
24057
24098
  ({ children, cellPadding, ...otherProps }, ref) => {
24058
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("table", { ref, css: table({ cellPadding }), ...otherProps, children });
24099
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("table", { ref, css: table({ cellPadding }), ...otherProps, children });
24059
24100
  }
24060
24101
  );
24061
24102
  var TableHead = React27.forwardRef(
24062
24103
  ({ children, ...otherProps }, ref) => {
24063
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
24104
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
24064
24105
  }
24065
24106
  );
24066
24107
  var TableBody = React27.forwardRef(
24067
24108
  ({ children, ...otherProps }, ref) => {
24068
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("tbody", { ref, ...otherProps, children });
24109
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("tbody", { ref, ...otherProps, children });
24069
24110
  }
24070
24111
  );
24071
24112
  var TableFoot = React27.forwardRef(
24072
24113
  ({ children, ...otherProps }, ref) => {
24073
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("tfoot", { ref, ...otherProps, children });
24114
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("tfoot", { ref, ...otherProps, children });
24074
24115
  }
24075
24116
  );
24076
24117
  var TableRow = React27.forwardRef(
24077
24118
  ({ children, ...otherProps }, ref) => {
24078
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
24119
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
24079
24120
  }
24080
24121
  );
24081
24122
  var TableCellHead = React27.forwardRef(
24082
24123
  ({ children, ...otherProps }, ref) => {
24083
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
24124
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
24084
24125
  }
24085
24126
  );
24086
24127
  var TableCellData = React27.forwardRef(
24087
24128
  ({ children, ...otherProps }, ref) => {
24088
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("td", { ref, ...otherProps, children });
24129
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("td", { ref, ...otherProps, children });
24089
24130
  }
24090
24131
  );
24091
24132
 
24092
24133
  // src/components/Tabs/Tabs.tsx
24093
24134
  init_emotion_jsx_shim();
24094
- var import_react153 = require("@ariakit/react");
24095
- var import_react154 = require("react");
24135
+ var import_react154 = require("@ariakit/react");
24136
+ var import_react155 = require("react");
24096
24137
 
24097
24138
  // src/components/Tabs/Tabs.styles.ts
24098
24139
  init_emotion_jsx_shim();
24099
- var import_react152 = require("@emotion/react");
24100
- var tabButtonStyles = import_react152.css`
24140
+ var import_react153 = require("@emotion/react");
24141
+ var tabButtonStyles = import_react153.css`
24101
24142
  align-items: center;
24102
24143
  border: 0;
24103
24144
  height: 2.5rem;
@@ -24114,16 +24155,16 @@ var tabButtonStyles = import_react152.css`
24114
24155
  box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
24115
24156
  }
24116
24157
  `;
24117
- var tabButtonGroupStyles = import_react152.css`
24158
+ var tabButtonGroupStyles = import_react153.css`
24118
24159
  display: flex;
24119
24160
  gap: var(--spacing-base);
24120
24161
  border-bottom: 1px solid var(--gray-300);
24121
24162
  `;
24122
24163
 
24123
24164
  // src/components/Tabs/Tabs.tsx
24124
- var import_jsx_runtime133 = require("@emotion/react/jsx-runtime");
24165
+ var import_jsx_runtime134 = require("@emotion/react/jsx-runtime");
24125
24166
  var useCurrentTab = () => {
24126
- const context = (0, import_react153.useTabStore)();
24167
+ const context = (0, import_react154.useTabStore)();
24127
24168
  if (!context) {
24128
24169
  throw new Error("This component can only be used inside <Tabs>");
24129
24170
  }
@@ -24137,13 +24178,13 @@ var Tabs = ({
24137
24178
  manual,
24138
24179
  ...props
24139
24180
  }) => {
24140
- const selected = (0, import_react154.useMemo)(() => {
24181
+ const selected = (0, import_react155.useMemo)(() => {
24141
24182
  if (selectedId)
24142
24183
  return selectedId;
24143
24184
  return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
24144
24185
  }, [selectedId, useHashForState]);
24145
- const tab = (0, import_react153.useTabStore)({ ...props, selectOnMove: !manual, selectedId: selected });
24146
- const onTabSelect = (0, import_react154.useCallback)(
24186
+ const tab = (0, import_react154.useTabStore)({ ...props, selectOnMove: !manual, selectedId: selected });
24187
+ const onTabSelect = (0, import_react155.useCallback)(
24147
24188
  (value) => {
24148
24189
  const selectedValueWithoutNull = value != null ? value : void 0;
24149
24190
  onSelectedIdChange == null ? void 0 : onSelectedIdChange(selectedValueWithoutNull);
@@ -24154,28 +24195,28 @@ var Tabs = ({
24154
24195
  },
24155
24196
  [onSelectedIdChange, useHashForState]
24156
24197
  );
24157
- (0, import_react154.useEffect)(() => {
24198
+ (0, import_react155.useEffect)(() => {
24158
24199
  if (selected && selected !== tab.getState().activeId) {
24159
24200
  tab.setSelectedId(selected);
24160
24201
  }
24161
24202
  }, [selected, tab]);
24162
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_react153.TabProvider, { store: tab, setSelectedId: onTabSelect, children });
24203
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_react154.TabProvider, { store: tab, setSelectedId: onTabSelect, children });
24163
24204
  };
24164
24205
  var TabButtonGroup = ({ children, ...props }) => {
24165
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_react153.TabList, { ...props, css: tabButtonGroupStyles, children });
24206
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_react154.TabList, { ...props, css: tabButtonGroupStyles, children });
24166
24207
  };
24167
24208
  var TabButton = ({
24168
24209
  children,
24169
24210
  id,
24170
24211
  ...props
24171
24212
  }) => {
24172
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_react153.Tab, { type: "button", id, ...props, css: tabButtonStyles, children });
24213
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_react154.Tab, { type: "button", id, ...props, css: tabButtonStyles, children });
24173
24214
  };
24174
24215
  var TabContent = ({
24175
24216
  children,
24176
24217
  ...props
24177
24218
  }) => {
24178
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_react153.TabPanel, { ...props, children });
24219
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_react154.TabPanel, { ...props, children });
24179
24220
  };
24180
24221
 
24181
24222
  // src/components/Toast/Toast.tsx
@@ -24184,8 +24225,8 @@ var import_react_toastify = require("react-toastify");
24184
24225
 
24185
24226
  // src/components/Toast/Toast.styles.ts
24186
24227
  init_emotion_jsx_shim();
24187
- var import_react155 = require("@emotion/react");
24188
- var toastContainerStyles = import_react155.css`
24228
+ var import_react156 = require("@emotion/react");
24229
+ var toastContainerStyles = import_react156.css`
24189
24230
  ${functionalColors}
24190
24231
 
24191
24232
  --toastify-color-light: white;
@@ -24408,9 +24449,9 @@ var toastContainerStyles = import_react155.css`
24408
24449
  `;
24409
24450
 
24410
24451
  // src/components/Toast/Toast.tsx
24411
- var import_jsx_runtime134 = require("@emotion/react/jsx-runtime");
24452
+ var import_jsx_runtime135 = require("@emotion/react/jsx-runtime");
24412
24453
  var ToastContainer = ({ limit = 4 }) => {
24413
- return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
24454
+ return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
24414
24455
  import_react_toastify.ToastContainer,
24415
24456
  {
24416
24457
  css: toastContainerStyles,
@@ -24510,6 +24551,7 @@ var ToastContainer = ({ limit = 4 }) => {
24510
24551
  MenuItemInner,
24511
24552
  MenuItemSeparator,
24512
24553
  Modal,
24554
+ ModalDialog,
24513
24555
  MultilineChip,
24514
24556
  NUMBER_OPERATORS,
24515
24557
  PageHeaderSection,