@uniformdev/design-system 18.38.2-alpha.6 → 19.0.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
@@ -89,6 +89,10 @@ __export(src_exports, {
89
89
  MenuGroup: () => MenuGroup,
90
90
  MenuItem: () => MenuItem,
91
91
  MenuItemSeparator: () => MenuItemSeparator,
92
+ ObjectCompositionListItem: () => ObjectCompositionListItem,
93
+ ObjectListContainer: () => ObjectListContainer,
94
+ ObjectListItemLoadingSkeleton: () => ObjectListItemLoadingSkeleton,
95
+ ObjectPersonalizationListItem: () => ObjectPersonalizationListItem,
92
96
  PageHeaderSection: () => PageHeaderSection,
93
97
  Paragraph: () => Paragraph,
94
98
  ParameterDataResource: () => ParameterDataResource,
@@ -430,6 +434,16 @@ var mq = (size) => `@media (min-width: ${breakpoints[size]}px)`;
430
434
  var supports = (cssProp) => `@supports (${cssProp})`;
431
435
  var cq = (size) => `@container (min-width: ${size})`;
432
436
 
437
+ // src/utils/formatDate.ts
438
+ var formatDate = (date) => {
439
+ const normalizeDate = new Date(date).toLocaleDateString(navigator.language, {
440
+ year: "numeric",
441
+ month: "short",
442
+ day: "numeric"
443
+ });
444
+ return normalizeDate;
445
+ };
446
+
433
447
  // src/utils/replaceUnderscoreInString.ts
434
448
  var replaceUnderscoreInString = (title) => (title == null ? void 0 : title.includes("_")) ? title.replaceAll("_", " ") : title;
435
449
 
@@ -11658,6 +11672,7 @@ var TwoColumnLayoutMain = import_react35.css``;
11658
11672
  var TwoColumnLayoutSupporting = import_react35.css`
11659
11673
  display: flex;
11660
11674
  flex-direction: column;
11675
+ gap: var(--spacing-md);
11661
11676
  `;
11662
11677
 
11663
11678
  // src/components/Layout/TwoColumnLayout.tsx
@@ -12886,30 +12901,44 @@ var InputSelect = ({
12886
12901
  };
12887
12902
 
12888
12903
  // src/components/Input/InputToggle.tsx
12904
+ var React14 = __toESM(require("react"));
12889
12905
  var import_jsx_runtime51 = require("@emotion/react/jsx-runtime");
12890
- var InputToggle = ({
12891
- label,
12892
- type,
12893
- disabled,
12894
- checked,
12895
- name,
12896
- caption,
12897
- errorMessage,
12898
- warningMessage,
12899
- testId,
12900
- fontWeight = "medium",
12901
- ...props
12902
- }) => {
12903
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Label, { css: [inputToggleLabel, disabled ? inputDisabled : void 0], "data-test-id": testId, children: [
12904
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("input", { type, css: toggleInput, checked, name, disabled, ...props }),
12905
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { css: inlineLabel(fontWeight), dangerouslySetInnerHTML: { __html: label } }),
12906
- caption || errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("span", { css: inputToggleMessageContainer, children: [
12907
- caption ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Caption, { children: caption }) : null,
12908
- errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ErrorMessage, { message: errorMessage }) : null,
12909
- warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(WarningMessage, { message: warningMessage }) : null
12910
- ] }) : null
12911
- ] });
12912
- };
12906
+ var InputToggle = React14.forwardRef(
12907
+ ({
12908
+ label,
12909
+ type,
12910
+ disabled,
12911
+ checked,
12912
+ name,
12913
+ caption,
12914
+ errorMessage,
12915
+ warningMessage,
12916
+ testId,
12917
+ fontWeight = "medium",
12918
+ ...props
12919
+ }, ref) => {
12920
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Label, { css: [inputToggleLabel, disabled ? inputDisabled : void 0], "data-test-id": testId, children: [
12921
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12922
+ "input",
12923
+ {
12924
+ ref,
12925
+ type,
12926
+ css: toggleInput,
12927
+ checked,
12928
+ name,
12929
+ disabled,
12930
+ ...props
12931
+ }
12932
+ ),
12933
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { css: inlineLabel(fontWeight), dangerouslySetInnerHTML: { __html: label } }),
12934
+ caption || errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("span", { css: inputToggleMessageContainer, children: [
12935
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Caption, { children: caption }) : null,
12936
+ errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ErrorMessage, { message: errorMessage }) : null,
12937
+ warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(WarningMessage, { message: warningMessage }) : null
12938
+ ] }) : null
12939
+ ] });
12940
+ }
12941
+ );
12913
12942
 
12914
12943
  // src/components/Input/Legend.tsx
12915
12944
  var import_jsx_runtime52 = require("@emotion/react/jsx-runtime");
@@ -14007,174 +14036,656 @@ var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
14007
14036
  ] });
14008
14037
  };
14009
14038
 
14010
- // src/components/Tooltip/Tooltip.tsx
14011
- var import_react74 = __toESM(require("react"));
14012
- var import_Tooltip = require("reakit/Tooltip");
14039
+ // src/components/ObjectList/ObjectCompositionListItem.tsx
14040
+ var import_react75 = require("react");
14013
14041
 
14014
- // src/components/Tooltip/Tooltip.styles.ts
14042
+ // src/components/Validation/StatusBullet.styles.ts
14015
14043
  var import_react73 = require("@emotion/react");
14016
- var TooltipContainer = import_react73.css`
14017
- border: 2px solid var(--gray-300);
14018
- border-radius: var(--rounded-base);
14019
- padding: var(--spacing-xs) var(--spacing-sm);
14044
+ var StatusBulletContainer = import_react73.css`
14045
+ align-items: center;
14046
+ align-self: center;
14020
14047
  color: var(--gray-500);
14048
+ display: inline-flex;
14049
+ font-weight: var(--fw-regular);
14050
+ gap: var(--spacing-xs);
14051
+ line-height: 1;
14052
+ position: relative;
14053
+ text-transform: lowercase;
14054
+
14055
+ &:before {
14056
+ border-radius: var(--rounded-full);
14057
+ content: '';
14058
+ display: block;
14059
+ }
14060
+ `;
14061
+ var StatusBulletBase = import_react73.css`
14062
+ font-size: var(--fs-sm);
14063
+ &:before {
14064
+ width: var(--fs-xs);
14065
+ height: var(--fs-xs);
14066
+ }
14067
+ `;
14068
+ var StatusBulletSmall = import_react73.css`
14021
14069
  font-size: var(--fs-xs);
14022
- background: var(--white);
14070
+ &:before {
14071
+ width: var(--fs-xxs);
14072
+ height: var(--fs-xxs);
14073
+ }
14023
14074
  `;
14024
- var TooltipArrowStyles = import_react73.css`
14025
- svg {
14026
- fill: var(--gray-300);
14075
+ var StatusDraft = import_react73.css`
14076
+ &:before {
14077
+ background: var(--white);
14078
+ box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
14027
14079
  }
14028
14080
  `;
14029
-
14030
- // src/components/Tooltip/Tooltip.tsx
14031
- var import_jsx_runtime72 = require("@emotion/react/jsx-runtime");
14032
- function Tooltip({ children, title, placement = "bottom", visible, ...props }) {
14033
- const tooltip = (0, import_Tooltip.useTooltipState)({ placement });
14034
- return !title ? children : /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_jsx_runtime72.Fragment, { children: [
14035
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_Tooltip.TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => import_react74.default.cloneElement(children, referenceProps) }),
14036
- /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_Tooltip.Tooltip, { ...tooltip, ...props, css: TooltipContainer, visible: visible != null ? visible : tooltip.visible, children: [
14037
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_Tooltip.TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
14038
- title
14039
- ] })
14040
- ] });
14041
- }
14042
-
14043
- // src/components/ParameterInputs/styles/ParameterBindingButton.styles.ts
14044
- var import_react75 = require("@emotion/react");
14045
- var inputIconBtn = import_react75.css`
14046
- align-items: center;
14047
- border: none;
14048
- border-radius: var(--rounded-base);
14049
- background: none;
14050
- display: flex;
14051
- padding: var(--spacing-2xs);
14052
- transition: background var(--duration-fast) var(--timing-ease-out),
14053
- color var(--duration-fast) var(--timing-ease-out);
14054
-
14055
- &:hover,
14056
- &[aria-pressed='true']:not(:disabled) {
14081
+ var StatusModified = import_react73.css`
14082
+ &:before {
14083
+ background: linear-gradient(to right, var(--white) 50%, var(--brand-primary-1) 50% 100%);
14084
+ box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
14085
+ }
14086
+ `;
14087
+ var StatusError = import_react73.css`
14088
+ color: var(--error);
14089
+ &:before {
14090
+ background: linear-gradient(120deg, var(--error) 40%, var(--white) 50%, var(--error) 60%);
14091
+ }
14092
+ `;
14093
+ var StatusPublished = import_react73.css`
14094
+ &:before {
14057
14095
  background: var(--brand-secondary-3);
14058
- color: var(--white);
14059
14096
  }
14060
-
14061
- &[aria-disabled='true'] {
14062
- background: none;
14063
- color: currentColor;
14097
+ `;
14098
+ var StatusOrphan = import_react73.css`
14099
+ &:before {
14100
+ background: var(--brand-secondary-5);
14064
14101
  }
14065
14102
  `;
14066
14103
 
14067
- // src/components/ParameterInputs/ConnectToDataElementButton.tsx
14068
- var import_jsx_runtime73 = require("@emotion/react/jsx-runtime");
14069
- var ConnectToDataElementButton = ({
14070
- icon,
14071
- iconColor,
14072
- children,
14073
- isBound,
14074
- isLocked,
14104
+ // src/components/Validation/StatusBullet.tsx
14105
+ var import_jsx_runtime72 = require("@emotion/react/jsx-runtime");
14106
+ var StatusBullet = ({
14107
+ status,
14108
+ hideText = false,
14109
+ size = "base",
14110
+ message,
14075
14111
  ...props
14076
14112
  }) => {
14077
- const title = isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
14078
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Tooltip, { title, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
14079
- "button",
14113
+ const currentStateStyles = {
14114
+ Error: StatusError,
14115
+ Modified: StatusModified,
14116
+ Unsaved: StatusDraft,
14117
+ Orphan: StatusOrphan,
14118
+ Published: StatusPublished,
14119
+ Draft: StatusDraft
14120
+ };
14121
+ const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
14122
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
14123
+ "span",
14080
14124
  {
14081
- css: inputIconBtn,
14082
- type: "button",
14083
- "aria-pressed": isBound,
14084
- "aria-disabled": isLocked,
14125
+ role: "status",
14126
+ css: [StatusBulletContainer, currentStateStyles[status], statusSize],
14127
+ title: message != null ? message : status,
14085
14128
  ...props,
14086
- children: [
14087
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
14088
- Icon,
14089
- {
14090
- icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
14091
- iconColor: iconColor ? iconColor : "currentColor",
14092
- size: "1rem"
14093
- }
14094
- ),
14095
- children
14096
- ]
14129
+ children: hideText ? null : message ? message : status
14097
14130
  }
14098
- ) });
14131
+ );
14099
14132
  };
14100
14133
 
14101
- // src/components/ParameterInputs/hooks/ParameterShellContext.tsx
14102
- var import_react76 = require("react");
14103
- var ParameterShellContext = (0, import_react76.createContext)({
14104
- id: "",
14105
- label: "",
14106
- hiddenLabel: void 0,
14107
- errorMessage: void 0,
14108
- onManuallySetErrorMessage: () => {
14109
- }
14110
- });
14111
- var useParameterShell = () => {
14112
- const { id, label, hiddenLabel, errorMessage, onManuallySetErrorMessage } = (0, import_react76.useContext)(ParameterShellContext);
14113
- return {
14114
- id,
14115
- label,
14116
- hiddenLabel,
14117
- errorMessage,
14118
- onManuallySetErrorMessage
14119
- };
14120
- };
14134
+ // src/components/ObjectList/styles/ObjectListItem.styles.ts
14135
+ var import_react74 = require("@emotion/react");
14136
+ var ObjectListItemContainer = import_react74.css`
14137
+ border-top: 1px solid var(--gray-300);
14138
+ border-bottom: 1px solid var(--gray-300);
14139
+ display: block;
14140
+ padding: var(--spacing-base) var(--spacing-sm);
14141
+ font-size: var(--fs-sm);
14142
+ margin-bottom: -1px;
14143
+ transition: background-color var(--duration-fast) var(--timing-ease-out);
14144
+ text-decoration: none;
14121
14145
 
14122
- // src/components/ParameterInputs/styles/ParameterInput.styles.ts
14123
- var import_react77 = require("@emotion/react");
14124
- var inputContainer2 = import_react77.css`
14125
- position: relative;
14146
+ &:hover {
14147
+ background: var(--gray-50);
14126
14148
 
14127
- &:hover,
14128
- &:focus,
14129
- &:focus-within {
14130
- .parameter-menu {
14131
- opacity: var(--opacity-100);
14132
- translate: 0 0;
14149
+ & [role='heading'] {
14150
+ text-decoration: underline;
14133
14151
  }
14134
14152
  }
14135
14153
  `;
14136
- var labelText2 = import_react77.css`
14137
- align-items: center;
14154
+ var ObjectListItemLoading = import_react74.css`
14155
+ animation: ${skeletonLoading} 1s linear infinite alternate;
14156
+ border-color: var(--white);
14138
14157
  display: flex;
14139
- gap: var(--spacing-xs);
14140
- font-weight: var(--fw-regular);
14141
- margin: 0 0 var(--spacing-xs);
14158
+ flex-direction: column;
14159
+ padding: var(--spacing-base) var(--spacing-sm);
14160
+ gap: var(--spacing-sm);
14142
14161
  `;
14143
- var input2 = import_react77.css`
14162
+ var ObjectListItemLoadingText = (textLength) => import_react74.css`
14163
+ animation: ${fadeIn} 1s linear infinite alternate;
14164
+ border-radius: var(--rounded-base);
14165
+ background: var(--gray-300);
14144
14166
  display: block;
14145
- appearance: none;
14146
- box-sizing: border-box;
14147
- background: var(--white);
14148
- border: 1px solid var(--white);
14149
- border-radius: var(--rounded-sm);
14150
- color: var(--gray-700);
14167
+ width: ${textLength};
14168
+ height: var(--fs-sm);
14169
+ `;
14170
+ var ObjectListItemInlineGroup = import_react74.css`
14171
+ align-items: center;
14172
+ display: flex;
14173
+ gap: var(--spacing-sm);
14174
+ `;
14175
+ var ObjectListItemInlineHeadingGroup = import_react74.css`
14176
+ justify-content: space-between;
14177
+ `;
14178
+ var ObjectListItemTitle = import_react74.css`
14179
+ color: var(--brand-secondary-1);
14151
14180
  font-size: var(--fs-sm);
14152
- line-height: 1.2;
14153
- min-height: 2rem;
14154
- padding: var(--spacing-sm);
14155
- width: 100%;
14156
- position: relative;
14157
- white-space: normal;
14158
- transition-property: background, border-color, color, box-shadow, border-radius;
14159
- transition-duration: var(--duration-fast);
14160
- transition-timing-function: var(--timing-ease-out);
14181
+ `;
14182
+ var ObjectListItemSmallText = import_react74.css`
14183
+ color: var(--brand-secondary-1);
14184
+ font-size: var(--fs-xs);
14185
+ min-width: max-content;
14186
+ `;
14187
+ var ObjectListKeyText = import_react74.css`
14188
+ color: var(--gray-400);
14189
+ font-size: var(--fs-xs);
14190
+ text-transform: capitalize;
14191
+ `;
14192
+ var ObjectListValueText = import_react74.css`
14193
+ color: var(--gray-500);
14194
+ font-size: var(--fs-xs);
14195
+ text-transform: none;
14196
+ `;
14161
14197
 
14162
- &::placeholder {
14163
- color: var(--gray-400);
14198
+ // src/components/ObjectList/ObjectCompositionListItem.tsx
14199
+ var import_jsx_runtime73 = require("@emotion/react/jsx-runtime");
14200
+ var ObjectCompositionListItem = (0, import_react75.forwardRef)(
14201
+ ({
14202
+ title,
14203
+ date,
14204
+ componentName,
14205
+ icon,
14206
+ publishStatus,
14207
+ href,
14208
+ as,
14209
+ linkManagerComponent: LinkManager,
14210
+ ...props
14211
+ }, ref) => {
14212
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(LinkManager, { ...props, as, href, ref, passHref: true, legacyBehavior: true, role: "listitem", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("a", { css: ObjectListItemContainer, children: [
14213
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { css: [ObjectListItemInlineGroup, ObjectListItemInlineHeadingGroup], children: [
14214
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { role: "heading", css: ObjectListItemTitle, children: title }),
14215
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("time", { role: "time", dateTime: `${date}`, css: ObjectListItemSmallText, children: formatDate(date) })
14216
+ ] }),
14217
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { css: ObjectListItemInlineGroup, children: [
14218
+ !icon && !componentName ? null : /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { css: [ObjectListItemInlineGroup, ObjectListItemSmallText], children: [
14219
+ !icon ? null : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Icon, { icon, size: "1rem" }),
14220
+ !componentName ? null : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { children: componentName })
14221
+ ] }),
14222
+ !publishStatus ? null : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(StatusBullet, { status: publishStatus, size: "sm" })
14223
+ ] })
14224
+ ] }) });
14164
14225
  }
14226
+ );
14165
14227
 
14166
- &:focus,
14167
- &:focus-within {
14168
- border-radius: var(--rounded-md);
14169
- box-shadow: none;
14170
- border: 1px solid var(--gray-300);
14171
- outline: none;
14172
- }
14228
+ // src/components/ObjectList/ObjectListContainer.tsx
14229
+ var React18 = __toESM(require("react"));
14173
14230
 
14174
- &:disabled,
14175
- &:disabled::placeholder,
14176
- &:disabled:hover {
14177
- border-radius: var(--rounded-md);
14231
+ // src/components/SegmentedControl/SegmentedControl.tsx
14232
+ var import_react79 = require("@emotion/react");
14233
+ var import_react80 = require("react");
14234
+ var import_cg15 = require("react-icons/cg");
14235
+
14236
+ // src/components/Tooltip/Tooltip.tsx
14237
+ var import_react77 = __toESM(require("react"));
14238
+ var import_Tooltip = require("reakit/Tooltip");
14239
+
14240
+ // src/components/Tooltip/Tooltip.styles.ts
14241
+ var import_react76 = require("@emotion/react");
14242
+ var TooltipContainer = import_react76.css`
14243
+ border: 2px solid var(--gray-300);
14244
+ border-radius: var(--rounded-base);
14245
+ padding: var(--spacing-xs) var(--spacing-sm);
14246
+ color: var(--gray-500);
14247
+ font-size: var(--fs-xs);
14248
+ background: var(--white);
14249
+ `;
14250
+ var TooltipArrowStyles = import_react76.css`
14251
+ svg {
14252
+ fill: var(--gray-300);
14253
+ }
14254
+ `;
14255
+
14256
+ // src/components/Tooltip/Tooltip.tsx
14257
+ var import_jsx_runtime74 = require("@emotion/react/jsx-runtime");
14258
+ function Tooltip({ children, title, placement = "bottom", visible, ...props }) {
14259
+ const tooltip = (0, import_Tooltip.useTooltipState)({ placement });
14260
+ return !title ? children : /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_jsx_runtime74.Fragment, { children: [
14261
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_Tooltip.TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => import_react77.default.cloneElement(children, referenceProps) }),
14262
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_Tooltip.Tooltip, { ...tooltip, ...props, css: TooltipContainer, visible: visible != null ? visible : tooltip.visible, children: [
14263
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_Tooltip.TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
14264
+ title
14265
+ ] })
14266
+ ] });
14267
+ }
14268
+
14269
+ // src/components/SegmentedControl/SegmentedControl.styles.ts
14270
+ var import_react78 = require("@emotion/react");
14271
+ var segmentedControlStyles = import_react78.css`
14272
+ --segmented-control-rounded-value: var(--rounded-base);
14273
+ --segmented-control-border-width: 1px;
14274
+ --segmented-control-selected-color: var(--brand-secondary-3);
14275
+ --segmented-control-first-border-radius: var(--segmented-control-rounded-value) 0 0
14276
+ var(--segmented-control-rounded-value);
14277
+ --segmented-control-last-border-radius: 0 var(--segmented-control-rounded-value)
14278
+ var(--segmented-control-rounded-value) 0;
14279
+
14280
+ position: relative;
14281
+ display: flex;
14282
+ justify-content: flex-start;
14283
+ width: fit-content;
14284
+ background-color: var(--gray-300);
14285
+ padding: var(--segmented-control-border-width);
14286
+ gap: var(--segmented-control-border-width);
14287
+ border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
14288
+ font-size: var(--fs-xs);
14289
+ `;
14290
+ var segmentedControlVerticalStyles = import_react78.css`
14291
+ flex-direction: column;
14292
+ --segmented-control-first-border-radius: var(--segmented-control-rounded-value)
14293
+ var(--segmented-control-rounded-value) 0 0;
14294
+ --segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
14295
+ var(--segmented-control-rounded-value);
14296
+ `;
14297
+ var segmentedControlItemStyles = import_react78.css`
14298
+ &:first-of-type label {
14299
+ border-radius: var(--segmented-control-first-border-radius);
14300
+ }
14301
+ &:last-of-type label {
14302
+ border-radius: var(--segmented-control-last-border-radius);
14303
+ }
14304
+ `;
14305
+ var segmentedControlInputStyles = import_react78.css`
14306
+ clip: rect(0, 0, 0, 0);
14307
+ position: absolute;
14308
+ width: 1px;
14309
+ height: 1px;
14310
+ overflow: hidden;
14311
+ `;
14312
+ var segmentedControlLabelStyles = import_react78.css`
14313
+ position: relative;
14314
+ display: flex;
14315
+ align-items: center;
14316
+ justify-content: center;
14317
+ height: 2rem;
14318
+ padding-inline: var(--spacing-base);
14319
+ background-color: white;
14320
+ transition-property: background-color, color, box-shadow;
14321
+ transition-duration: var(--duration-xfast);
14322
+ transition-timing-function: ease-in-out;
14323
+ z-index: 1;
14324
+ cursor: pointer;
14325
+
14326
+ &:has(:checked:not(:disabled)) {
14327
+ background-color: var(--segmented-control-selected-color);
14328
+ outline: var(--segmented-control-border-width) solid var(--segmented-control-selected-color);
14329
+ box-shadow: 0 0.43em 1.7em 0 rgba(0, 0, 0, 0.15);
14330
+ color: white;
14331
+ -webkit-text-stroke-width: thin;
14332
+ z-index: 0;
14333
+ }
14334
+
14335
+ &:hover:not(:has(:disabled, :checked)) {
14336
+ background-color: var(--gray-100);
14337
+ }
14338
+
14339
+ &:has(:disabled) {
14340
+ color: var(--gray-400);
14341
+ cursor: default;
14342
+ }
14343
+
14344
+ &:has(:checked:disabled) {
14345
+ color: var(--gray-50);
14346
+ background-color: var(--gray-400);
14347
+ }
14348
+ `;
14349
+ var segmentedControlLabelIconOnlyStyles = import_react78.css`
14350
+ padding-inline: 0.5em;
14351
+ `;
14352
+ var segmentedControlLabelCheckStyles = import_react78.css`
14353
+ opacity: 0.5;
14354
+ `;
14355
+ var segmentedControlLabelContentStyles = import_react78.css`
14356
+ display: flex;
14357
+ align-items: center;
14358
+ justify-content: center;
14359
+ gap: var(--spacing-sm);
14360
+ height: 100%;
14361
+ `;
14362
+ var segmentedControlLabelTextStyles = import_react78.css``;
14363
+
14364
+ // src/components/SegmentedControl/SegmentedControl.tsx
14365
+ var import_jsx_runtime75 = require("@emotion/react/jsx-runtime");
14366
+ var SegmentedControl = ({
14367
+ name,
14368
+ options,
14369
+ value,
14370
+ onChange,
14371
+ noCheckmark = false,
14372
+ disabled = false,
14373
+ orientation = "horizontal",
14374
+ size = "md",
14375
+ ...props
14376
+ }) => {
14377
+ const onOptionChange = (0, import_react80.useCallback)(
14378
+ (event) => {
14379
+ if (event.target.checked) {
14380
+ onChange == null ? void 0 : onChange(options[parseInt(event.target.value)].value);
14381
+ }
14382
+ },
14383
+ [options, onChange]
14384
+ );
14385
+ const sizeStyles = (0, import_react80.useMemo)(() => {
14386
+ const map = {
14387
+ sm: (0, import_react79.css)({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
14388
+ md: (0, import_react79.css)({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
14389
+ lg: (0, import_react79.css)({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
14390
+ };
14391
+ return map[size];
14392
+ }, [size]);
14393
+ const isIconOnly = (0, import_react80.useMemo)(() => {
14394
+ return options.every((option) => option.icon && !option.label);
14395
+ }, [options]);
14396
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
14397
+ "div",
14398
+ {
14399
+ css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
14400
+ ...props,
14401
+ children: options.map((option, index) => {
14402
+ const text = option.label ? option.label : option.icon ? null : String(option.value);
14403
+ const isDisabled = disabled || option.disabled;
14404
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
14405
+ Tooltip,
14406
+ {
14407
+ title: isDisabled || !option.tooltip ? "" : option.tooltip,
14408
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { css: segmentedControlItemStyles, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
14409
+ "label",
14410
+ {
14411
+ css: [
14412
+ segmentedControlLabelStyles,
14413
+ sizeStyles,
14414
+ isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
14415
+ ],
14416
+ children: [
14417
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
14418
+ "input",
14419
+ {
14420
+ css: segmentedControlInputStyles,
14421
+ type: "radio",
14422
+ name,
14423
+ value: index,
14424
+ checked: option.value === value,
14425
+ onChange: onOptionChange,
14426
+ disabled: isDisabled
14427
+ }
14428
+ ),
14429
+ option.value !== value || noCheckmark ? null : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_cg15.CgCheck, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
14430
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("span", { css: segmentedControlLabelContentStyles, children: [
14431
+ !option.icon ? null : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(option.icon, { size: "1.5em" }),
14432
+ !text ? null : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { css: segmentedControlLabelTextStyles, children: text })
14433
+ ] })
14434
+ ]
14435
+ }
14436
+ ) })
14437
+ },
14438
+ JSON.stringify(option.value)
14439
+ );
14440
+ })
14441
+ }
14442
+ );
14443
+ };
14444
+
14445
+ // src/components/ObjectList/ObjectListItemLoadingSkeleton.tsx
14446
+ var import_jsx_runtime76 = require("@emotion/react/jsx-runtime");
14447
+ var ObjectListItemLoadingSkeleton = () => {
14448
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { css: [ObjectListItemContainer, ObjectListItemLoading], children: [
14449
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { css: [ObjectListItemInlineGroup, ObjectListItemInlineHeadingGroup], children: [
14450
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { css: ObjectListItemLoadingText("30ch") }),
14451
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { css: ObjectListItemLoadingText("5ch") })
14452
+ ] }),
14453
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { css: ObjectListItemInlineGroup, children: [
14454
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { css: ObjectListItemLoadingText("10ch") }),
14455
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { css: ObjectListItemLoadingText("10ch") })
14456
+ ] })
14457
+ ] });
14458
+ };
14459
+
14460
+ // src/components/ObjectList/styles/ObjectListContainer.styles.ts
14461
+ var import_react81 = require("@emotion/react");
14462
+ var InlineGroup = import_react81.css`
14463
+ align-items: center;
14464
+ display: flex;
14465
+ gap: var(--spacing-base);
14466
+ `;
14467
+ var FilterGroup = import_react81.css`
14468
+ ${InlineGroup}
14469
+ justify-content: space-between
14470
+ `;
14471
+ var GroupLabel = import_react81.css`
14472
+ font-size: var(--fs-sm);
14473
+ `;
14474
+
14475
+ // src/components/ObjectList/ObjectListContainer.tsx
14476
+ var import_jsx_runtime77 = require("@emotion/react/jsx-runtime");
14477
+ var ObjectListContainer = ({
14478
+ title = "Recent Compositions",
14479
+ list,
14480
+ filterOptions,
14481
+ filterValue,
14482
+ isLoading,
14483
+ onSetFilterOption,
14484
+ resolveDefaultComponent = (value) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ObjectCompositionListItem, { ...value }),
14485
+ children,
14486
+ ...props
14487
+ }) => {
14488
+ const [loadingList, setLoadingList] = React18.useState(5);
14489
+ React18.useEffect(() => {
14490
+ if (list.length) {
14491
+ setLoadingList(list.length);
14492
+ }
14493
+ }, [list]);
14494
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(VerticalRhythm, { ...props, children: [
14495
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { css: FilterGroup, children: [
14496
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Heading, { level: 4, withMarginBottom: false, children: title }),
14497
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { css: InlineGroup, children: [
14498
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { css: GroupLabel, children: "Show" }),
14499
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
14500
+ SegmentedControl,
14501
+ {
14502
+ name: "recent-filter-options",
14503
+ options: filterOptions,
14504
+ value: filterValue,
14505
+ onChange: (e) => onSetFilterOption(e),
14506
+ noCheckmark: true,
14507
+ disabled: list.length === 0
14508
+ }
14509
+ )
14510
+ ] })
14511
+ ] }),
14512
+ isLoading ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { children: Array.from(Array(loadingList).keys()).map((item) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ObjectListItemLoadingSkeleton, {}, item)) }) : null,
14513
+ list.length && !isLoading ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { role: "list", children: list == null ? void 0 : list.map((item) => resolveDefaultComponent(item)) }) : null,
14514
+ children
14515
+ ] });
14516
+ };
14517
+
14518
+ // src/components/ObjectList/ObjectPersonalizationListItem.tsx
14519
+ var import_react82 = require("react");
14520
+ var import_jsx_runtime78 = require("@emotion/react/jsx-runtime");
14521
+ var ObjectPersonalizationListItem = (0, import_react82.forwardRef)(({ title, date, id, data, linkManagerComponent: LinkManager, as, ...props }, ref) => {
14522
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
14523
+ LinkManager,
14524
+ {
14525
+ ...props,
14526
+ as,
14527
+ href: props.href,
14528
+ ref,
14529
+ passHref: true,
14530
+ legacyBehavior: true,
14531
+ css: ObjectListItemContainer,
14532
+ role: "listitem",
14533
+ children: [
14534
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { css: [ObjectListItemInlineGroup, ObjectListItemInlineHeadingGroup], children: [
14535
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { role: "heading", css: ObjectListItemTitle, children: title }),
14536
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("time", { role: "time", dateTime: `${date}`, css: ObjectListItemSmallText, children: formatDate(date) })
14537
+ ] }),
14538
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { css: ObjectListItemInlineGroup, children: [
14539
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("span", { css: ObjectListKeyText, children: [
14540
+ "ID: ",
14541
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { css: ObjectListValueText, children: id })
14542
+ ] }),
14543
+ Object.entries(data).map(([key, value], i) => /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("span", { css: ObjectListKeyText, children: [
14544
+ key,
14545
+ ": ",
14546
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { css: ObjectListValueText, children: value })
14547
+ ] }, i))
14548
+ ] })
14549
+ ]
14550
+ }
14551
+ );
14552
+ });
14553
+
14554
+ // src/components/ParameterInputs/styles/ParameterBindingButton.styles.ts
14555
+ var import_react83 = require("@emotion/react");
14556
+ var inputIconBtn = import_react83.css`
14557
+ align-items: center;
14558
+ border: none;
14559
+ border-radius: var(--rounded-base);
14560
+ background: none;
14561
+ display: flex;
14562
+ padding: var(--spacing-2xs);
14563
+ transition: background var(--duration-fast) var(--timing-ease-out),
14564
+ color var(--duration-fast) var(--timing-ease-out);
14565
+
14566
+ &:hover,
14567
+ &[aria-pressed='true']:not(:disabled) {
14568
+ background: var(--brand-secondary-3);
14569
+ color: var(--white);
14570
+ }
14571
+
14572
+ &[aria-disabled='true'] {
14573
+ background: none;
14574
+ color: currentColor;
14575
+ }
14576
+ `;
14577
+
14578
+ // src/components/ParameterInputs/ConnectToDataElementButton.tsx
14579
+ var import_jsx_runtime79 = require("@emotion/react/jsx-runtime");
14580
+ var ConnectToDataElementButton = ({
14581
+ icon,
14582
+ iconColor,
14583
+ children,
14584
+ isBound,
14585
+ isLocked,
14586
+ ...props
14587
+ }) => {
14588
+ const title = isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
14589
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Tooltip, { title, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
14590
+ "button",
14591
+ {
14592
+ css: inputIconBtn,
14593
+ type: "button",
14594
+ "aria-pressed": isBound,
14595
+ "aria-disabled": isLocked,
14596
+ ...props,
14597
+ children: [
14598
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
14599
+ Icon,
14600
+ {
14601
+ icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
14602
+ iconColor: iconColor ? iconColor : "currentColor",
14603
+ size: "1rem"
14604
+ }
14605
+ ),
14606
+ children
14607
+ ]
14608
+ }
14609
+ ) });
14610
+ };
14611
+
14612
+ // src/components/ParameterInputs/hooks/ParameterShellContext.tsx
14613
+ var import_react84 = require("react");
14614
+ var ParameterShellContext = (0, import_react84.createContext)({
14615
+ id: "",
14616
+ label: "",
14617
+ hiddenLabel: void 0,
14618
+ errorMessage: void 0,
14619
+ onManuallySetErrorMessage: () => {
14620
+ }
14621
+ });
14622
+ var useParameterShell = () => {
14623
+ const { id, label, hiddenLabel, errorMessage, onManuallySetErrorMessage } = (0, import_react84.useContext)(ParameterShellContext);
14624
+ return {
14625
+ id,
14626
+ label,
14627
+ hiddenLabel,
14628
+ errorMessage,
14629
+ onManuallySetErrorMessage
14630
+ };
14631
+ };
14632
+
14633
+ // src/components/ParameterInputs/styles/ParameterInput.styles.ts
14634
+ var import_react85 = require("@emotion/react");
14635
+ var inputContainer2 = import_react85.css`
14636
+ position: relative;
14637
+
14638
+ &:hover,
14639
+ &:focus,
14640
+ &:focus-within {
14641
+ .parameter-menu {
14642
+ opacity: var(--opacity-100);
14643
+ translate: 0 0;
14644
+ }
14645
+ }
14646
+ `;
14647
+ var labelText2 = import_react85.css`
14648
+ align-items: center;
14649
+ display: flex;
14650
+ gap: var(--spacing-xs);
14651
+ font-weight: var(--fw-regular);
14652
+ margin: 0 0 var(--spacing-xs);
14653
+ `;
14654
+ var input2 = import_react85.css`
14655
+ display: block;
14656
+ appearance: none;
14657
+ box-sizing: border-box;
14658
+ background: var(--white);
14659
+ border: 1px solid var(--white);
14660
+ border-radius: var(--rounded-sm);
14661
+ color: var(--gray-700);
14662
+ font-size: var(--fs-sm);
14663
+ line-height: 1.2;
14664
+ min-height: 2rem;
14665
+ padding: var(--spacing-sm);
14666
+ width: 100%;
14667
+ position: relative;
14668
+ white-space: normal;
14669
+ transition-property: background, border-color, color, box-shadow, border-radius;
14670
+ transition-duration: var(--duration-fast);
14671
+ transition-timing-function: var(--timing-ease-out);
14672
+
14673
+ &::placeholder {
14674
+ color: var(--gray-400);
14675
+ }
14676
+
14677
+ &:focus,
14678
+ &:focus-within {
14679
+ border-radius: var(--rounded-md);
14680
+ box-shadow: none;
14681
+ border: 1px solid var(--gray-300);
14682
+ outline: none;
14683
+ }
14684
+
14685
+ &:disabled,
14686
+ &:disabled::placeholder,
14687
+ &:disabled:hover {
14688
+ border-radius: var(--rounded-md);
14178
14689
  cursor: not-allowed;
14179
14690
  color: var(--gray-400);
14180
14691
  }
@@ -14184,18 +14695,18 @@ var input2 = import_react77.css`
14184
14695
  color: var(--gray-400);
14185
14696
  }
14186
14697
  `;
14187
- var selectInput = import_react77.css`
14698
+ var selectInput = import_react85.css`
14188
14699
  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");
14189
14700
  background-position: right var(--spacing-sm) center;
14190
14701
  background-repeat: no-repeat;
14191
14702
  background-size: 1rem;
14192
14703
  padding-right: var(--spacing-xl);
14193
14704
  `;
14194
- var inputWrapper = import_react77.css`
14705
+ var inputWrapper = import_react85.css`
14195
14706
  display: flex; // used to correct overflow with chrome textarea
14196
14707
  position: relative;
14197
14708
  `;
14198
- var inputIcon2 = import_react77.css`
14709
+ var inputIcon2 = import_react85.css`
14199
14710
  align-items: center;
14200
14711
  background: var(--white);
14201
14712
  border-radius: var(--rounded-md) 0 0 var(--rounded-md);
@@ -14211,7 +14722,7 @@ var inputIcon2 = import_react77.css`
14211
14722
  width: var(--spacing-lg);
14212
14723
  z-index: var(--z-10);
14213
14724
  `;
14214
- var inputToggleLabel2 = import_react77.css`
14725
+ var inputToggleLabel2 = import_react85.css`
14215
14726
  align-items: center;
14216
14727
  background: var(--white);
14217
14728
  cursor: pointer;
@@ -14222,7 +14733,7 @@ var inputToggleLabel2 = import_react77.css`
14222
14733
  min-height: var(--spacing-md);
14223
14734
  position: relative;
14224
14735
  `;
14225
- var toggleInput2 = import_react77.css`
14736
+ var toggleInput2 = import_react85.css`
14226
14737
  appearance: none;
14227
14738
  border: 1px solid var(--gray-300);
14228
14739
  background: var(--white);
@@ -14261,7 +14772,7 @@ var toggleInput2 = import_react77.css`
14261
14772
  border-color: var(--gray-300);
14262
14773
  }
14263
14774
  `;
14264
- var inlineLabel2 = import_react77.css`
14775
+ var inlineLabel2 = import_react85.css`
14265
14776
  padding-left: var(--spacing-lg);
14266
14777
  font-size: var(--fs-sm);
14267
14778
  font-weight: var(--fw-regular);
@@ -14277,7 +14788,7 @@ var inlineLabel2 = import_react77.css`
14277
14788
  }
14278
14789
  }
14279
14790
  `;
14280
- var inputMenu = import_react77.css`
14791
+ var inputMenu = import_react85.css`
14281
14792
  background: none;
14282
14793
  border: none;
14283
14794
  padding: var(--spacing-2xs);
@@ -14293,14 +14804,14 @@ var inputMenu = import_react77.css`
14293
14804
  background-color: var(--gray-200);
14294
14805
  }
14295
14806
  `;
14296
- var textarea2 = import_react77.css`
14807
+ var textarea2 = import_react85.css`
14297
14808
  resize: vertical;
14298
14809
  min-height: 2rem;
14299
14810
  `;
14300
- var imageWrapper = import_react77.css`
14811
+ var imageWrapper = import_react85.css`
14301
14812
  background: var(--white);
14302
14813
  `;
14303
- var img = import_react77.css`
14814
+ var img = import_react85.css`
14304
14815
  animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
14305
14816
  object-fit: contain;
14306
14817
  max-width: 100%;
@@ -14308,7 +14819,7 @@ var img = import_react77.css`
14308
14819
  opacity: var(--opacity-0);
14309
14820
  margin: var(--spacing-sm) auto 0;
14310
14821
  `;
14311
- var dataConnectButton = import_react77.css`
14822
+ var dataConnectButton = import_react85.css`
14312
14823
  align-items: center;
14313
14824
  appearance: none;
14314
14825
  box-sizing: border-box;
@@ -14343,7 +14854,7 @@ var dataConnectButton = import_react77.css`
14343
14854
  pointer-events: none;
14344
14855
  }
14345
14856
  `;
14346
- var linkParameterBtn = import_react77.css`
14857
+ var linkParameterBtn = import_react85.css`
14347
14858
  border-radius: var(--rounded-base);
14348
14859
  background: var(--white);
14349
14860
  border: none;
@@ -14352,7 +14863,7 @@ var linkParameterBtn = import_react77.css`
14352
14863
  font-size: var(--fs-sm);
14353
14864
  line-height: 1;
14354
14865
  `;
14355
- var linkParameterControls = import_react77.css`
14866
+ var linkParameterControls = import_react85.css`
14356
14867
  position: absolute;
14357
14868
  inset: 0 0 0 auto;
14358
14869
  padding: 0 var(--spacing-base);
@@ -14361,12 +14872,12 @@ var linkParameterControls = import_react77.css`
14361
14872
  justify-content: center;
14362
14873
  gap: var(--spacing-base);
14363
14874
  `;
14364
- var linkParameterInput = (withExternalLinkIcon) => import_react77.css`
14875
+ var linkParameterInput = (withExternalLinkIcon) => import_react85.css`
14365
14876
  padding-right: calc(
14366
14877
  ${withExternalLinkIcon ? "var(--spacing-2xl)" : "var(--spacing-xl)"} + var(--spacing-base)
14367
14878
  );
14368
14879
  `;
14369
- var linkParameterIcon = import_react77.css`
14880
+ var linkParameterIcon = import_react85.css`
14370
14881
  align-items: center;
14371
14882
  color: var(--brand-secondary-3);
14372
14883
  display: flex;
@@ -14381,7 +14892,7 @@ var linkParameterIcon = import_react77.css`
14381
14892
  `;
14382
14893
 
14383
14894
  // src/components/ParameterInputs/ParameterDataResource.tsx
14384
- var import_jsx_runtime74 = require("@emotion/react/jsx-runtime");
14895
+ var import_jsx_runtime80 = require("@emotion/react/jsx-runtime");
14385
14896
  function ParameterDataResource({
14386
14897
  label,
14387
14898
  labelLeadingIcon,
@@ -14391,12 +14902,12 @@ function ParameterDataResource({
14391
14902
  disabled,
14392
14903
  children
14393
14904
  }) {
14394
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { "data-testid": "parameter-data-connect-button", children: [
14395
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("span", { css: labelText2, children: [
14905
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { "data-testid": "parameter-data-connect-button", children: [
14906
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("span", { css: labelText2, children: [
14396
14907
  labelLeadingIcon ? labelLeadingIcon : null,
14397
14908
  label
14398
14909
  ] }),
14399
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
14910
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
14400
14911
  "button",
14401
14912
  {
14402
14913
  type: "button",
@@ -14405,30 +14916,30 @@ function ParameterDataResource({
14405
14916
  disabled,
14406
14917
  onClick: onConnectDatasource,
14407
14918
  children: [
14408
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
14919
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
14409
14920
  children
14410
14921
  ]
14411
14922
  }
14412
14923
  ),
14413
- caption ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Caption, { children: caption }) : null
14924
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Caption, { children: caption }) : null
14414
14925
  ] });
14415
14926
  }
14416
14927
 
14417
14928
  // src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
14418
- var import_react78 = require("@emotion/react");
14419
- var ParameterDrawerHeaderContainer = import_react78.css`
14929
+ var import_react86 = require("@emotion/react");
14930
+ var ParameterDrawerHeaderContainer = import_react86.css`
14420
14931
  align-items: center;
14421
14932
  display: flex;
14422
14933
  gap: var(--spacing-base);
14423
14934
  justify-content: space-between;
14424
14935
  margin-bottom: var(--spacing-sm);
14425
14936
  `;
14426
- var ParameterDrawerHeaderTitleGroup = import_react78.css`
14937
+ var ParameterDrawerHeaderTitleGroup = import_react86.css`
14427
14938
  align-items: center;
14428
14939
  display: flex;
14429
14940
  gap: var(--spacing-sm);
14430
14941
  `;
14431
- var ParameterDrawerHeaderTitle = import_react78.css`
14942
+ var ParameterDrawerHeaderTitle = import_react86.css`
14432
14943
  text-overflow: ellipsis;
14433
14944
  white-space: nowrap;
14434
14945
  overflow: hidden;
@@ -14436,23 +14947,23 @@ var ParameterDrawerHeaderTitle = import_react78.css`
14436
14947
  `;
14437
14948
 
14438
14949
  // src/components/ParameterInputs/ParameterDrawerHeader.tsx
14439
- var import_jsx_runtime75 = require("@emotion/react/jsx-runtime");
14950
+ var import_jsx_runtime81 = require("@emotion/react/jsx-runtime");
14440
14951
  var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
14441
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { css: ParameterDrawerHeaderContainer, children: [
14442
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("header", { css: ParameterDrawerHeaderTitleGroup, children: [
14952
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { css: ParameterDrawerHeaderContainer, children: [
14953
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("header", { css: ParameterDrawerHeaderTitleGroup, children: [
14443
14954
  iconBeforeTitle,
14444
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
14955
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
14445
14956
  ] }),
14446
14957
  children
14447
14958
  ] });
14448
14959
  };
14449
14960
 
14450
14961
  // src/components/ParameterInputs/ParameterGroup.tsx
14451
- var import_react80 = require("react");
14962
+ var import_react88 = require("react");
14452
14963
 
14453
14964
  // src/components/ParameterInputs/styles/ParameterGroup.styles.ts
14454
- var import_react79 = require("@emotion/react");
14455
- var fieldsetStyles = import_react79.css`
14965
+ var import_react87 = require("@emotion/react");
14966
+ var fieldsetStyles = import_react87.css`
14456
14967
  &:disabled,
14457
14968
  [readonly] {
14458
14969
  pointer-events: none;
@@ -14463,7 +14974,7 @@ var fieldsetStyles = import_react79.css`
14463
14974
  }
14464
14975
  }
14465
14976
  `;
14466
- var fieldsetLegend2 = import_react79.css`
14977
+ var fieldsetLegend2 = import_react87.css`
14467
14978
  display: block;
14468
14979
  font-weight: var(--fw-medium);
14469
14980
  margin-bottom: var(--spacing-sm);
@@ -14471,38 +14982,38 @@ var fieldsetLegend2 = import_react79.css`
14471
14982
  `;
14472
14983
 
14473
14984
  // src/components/ParameterInputs/ParameterGroup.tsx
14474
- var import_jsx_runtime76 = require("@emotion/react/jsx-runtime");
14475
- var ParameterGroup = (0, import_react80.forwardRef)(
14985
+ var import_jsx_runtime82 = require("@emotion/react/jsx-runtime");
14986
+ var ParameterGroup = (0, import_react88.forwardRef)(
14476
14987
  ({ legend, isDisabled, children, ...props }, ref) => {
14477
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
14478
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("legend", { css: fieldsetLegend2, children: legend }),
14988
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
14989
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("legend", { css: fieldsetLegend2, children: legend }),
14479
14990
  children
14480
14991
  ] });
14481
14992
  }
14482
14993
  );
14483
14994
 
14484
14995
  // src/components/ParameterInputs/ParameterImage.tsx
14485
- var import_react84 = require("react");
14996
+ var import_react92 = require("react");
14486
14997
 
14487
14998
  // src/components/ParameterInputs/ParameterShell.tsx
14488
- var import_react83 = require("react");
14999
+ var import_react91 = require("react");
14489
15000
 
14490
15001
  // src/components/ParameterInputs/ParameterLabel.tsx
14491
- var import_jsx_runtime77 = require("@emotion/react/jsx-runtime");
15002
+ var import_jsx_runtime83 = require("@emotion/react/jsx-runtime");
14492
15003
  var ParameterLabel = ({ id, asSpan, children, ...props }) => {
14493
- return !asSpan ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { "aria-labelledby": id, css: labelText2, children });
15004
+ return !asSpan ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { "aria-labelledby": id, css: labelText2, children });
14494
15005
  };
14495
15006
 
14496
15007
  // src/components/ParameterInputs/ParameterMenuButton.tsx
14497
- var import_react81 = require("react");
14498
- var import_jsx_runtime78 = require("@emotion/react/jsx-runtime");
14499
- var ParameterMenuButton = (0, import_react81.forwardRef)(
15008
+ var import_react89 = require("react");
15009
+ var import_jsx_runtime84 = require("@emotion/react/jsx-runtime");
15010
+ var ParameterMenuButton = (0, import_react89.forwardRef)(
14500
15011
  ({ label, children }, ref) => {
14501
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
15012
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
14502
15013
  Menu,
14503
15014
  {
14504
15015
  menuLabel: `${label} menu`,
14505
- menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
15016
+ menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
14506
15017
  "button",
14507
15018
  {
14508
15019
  className: "parameter-menu",
@@ -14510,7 +15021,7 @@ var ParameterMenuButton = (0, import_react81.forwardRef)(
14510
15021
  type: "button",
14511
15022
  "aria-label": `${label} options`,
14512
15023
  ref,
14513
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
15024
+ children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
14514
15025
  }
14515
15026
  ),
14516
15027
  children
@@ -14520,15 +15031,15 @@ var ParameterMenuButton = (0, import_react81.forwardRef)(
14520
15031
  );
14521
15032
 
14522
15033
  // src/components/ParameterInputs/styles/ParameterShell.styles.ts
14523
- var import_react82 = require("@emotion/react");
14524
- var emptyParameterShell = import_react82.css`
15034
+ var import_react90 = require("@emotion/react");
15035
+ var emptyParameterShell = import_react90.css`
14525
15036
  border-radius: var(--rounded-sm);
14526
15037
  background: var(--white);
14527
15038
  flex-grow: 1;
14528
15039
  padding: var(--spacing-xs);
14529
15040
  position: relative;
14530
15041
  `;
14531
- var emptyParameterShellText = import_react82.css`
15042
+ var emptyParameterShellText = import_react90.css`
14532
15043
  background: var(--brand-secondary-6);
14533
15044
  border-radius: var(--rounded-sm);
14534
15045
  padding: var(--spacing-sm);
@@ -14536,7 +15047,7 @@ var emptyParameterShellText = import_react82.css`
14536
15047
  font-size: var(--fs-sm);
14537
15048
  margin: 0;
14538
15049
  `;
14539
- var overrideMarker = import_react82.css`
15050
+ var overrideMarker = import_react90.css`
14540
15051
  border-radius: var(--rounded-sm);
14541
15052
  border: 10px solid var(--gray-300);
14542
15053
  border-left-color: transparent;
@@ -14547,7 +15058,7 @@ var overrideMarker = import_react82.css`
14547
15058
  `;
14548
15059
 
14549
15060
  // src/components/ParameterInputs/ParameterShell.tsx
14550
- var import_jsx_runtime79 = require("@emotion/react/jsx-runtime");
15061
+ var import_jsx_runtime85 = require("@emotion/react/jsx-runtime");
14551
15062
  var extractParameterProps = (props) => {
14552
15063
  const {
14553
15064
  id,
@@ -14606,21 +15117,21 @@ var ParameterShell = ({
14606
15117
  children,
14607
15118
  ...props
14608
15119
  }) => {
14609
- const [manualErrorMessage, setManualErrorMessage] = (0, import_react83.useState)(void 0);
15120
+ const [manualErrorMessage, setManualErrorMessage] = (0, import_react91.useState)(void 0);
14610
15121
  const setErrorMessage = (message) => setManualErrorMessage(message);
14611
15122
  const errorMessaging = errorMessage || manualErrorMessage;
14612
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { css: inputContainer2, ...props, children: [
14613
- hiddenLabel || title ? null : /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(ParameterLabel, { id, css: labelText2, children: [
15123
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { css: inputContainer2, ...props, children: [
15124
+ hiddenLabel || title ? null : /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(ParameterLabel, { id, css: labelText2, children: [
14614
15125
  labelLeadingIcon ? labelLeadingIcon : null,
14615
15126
  label
14616
15127
  ] }),
14617
- !title ? null : /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(ParameterLabel, { id, asSpan: true, children: [
15128
+ !title ? null : /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(ParameterLabel, { id, asSpan: true, children: [
14618
15129
  labelLeadingIcon ? labelLeadingIcon : null,
14619
15130
  title
14620
15131
  ] }),
14621
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { css: inputWrapper, children: [
14622
- menuItems ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
14623
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
15132
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { css: inputWrapper, children: [
15133
+ menuItems ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
15134
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
14624
15135
  ParameterShellContext.Provider,
14625
15136
  {
14626
15137
  value: {
@@ -14630,32 +15141,32 @@ var ParameterShell = ({
14630
15141
  errorMessage: errorMessaging,
14631
15142
  onManuallySetErrorMessage: (message) => setErrorMessage(message)
14632
15143
  },
14633
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(ParameterShellPlaceholder, { children: [
15144
+ children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(ParameterShellPlaceholder, { children: [
14634
15145
  children,
14635
- hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
15146
+ hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
14636
15147
  ] })
14637
15148
  }
14638
15149
  )
14639
15150
  ] }),
14640
- caption ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Caption, { testId: captionTestId, children: caption }) : null,
14641
- errorMessaging ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null,
14642
- warningMessage ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(WarningMessage, { message: warningMessage }) : null,
14643
- infoMessage ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(InfoMessage, { message: infoMessage }) : null
15151
+ caption ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Caption, { testId: captionTestId, children: caption }) : null,
15152
+ errorMessaging ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null,
15153
+ warningMessage ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(WarningMessage, { message: warningMessage }) : null,
15154
+ infoMessage ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(InfoMessage, { message: infoMessage }) : null
14644
15155
  ] });
14645
15156
  };
14646
15157
  var ParameterShellPlaceholder = ({ children }) => {
14647
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { css: emptyParameterShell, children });
15158
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { css: emptyParameterShell, children });
14648
15159
  };
14649
- var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { hidden: true, children: "reset overridden value to default" }) }) });
15160
+ var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { hidden: true, children: "reset overridden value to default" }) }) });
14650
15161
 
14651
15162
  // src/components/ParameterInputs/ParameterImage.tsx
14652
- var import_jsx_runtime80 = require("@emotion/react/jsx-runtime");
14653
- var ParameterImage = (0, import_react84.forwardRef)((props, ref) => {
15163
+ var import_jsx_runtime86 = require("@emotion/react/jsx-runtime");
15164
+ var ParameterImage = (0, import_react92.forwardRef)((props, ref) => {
14654
15165
  const { shellProps, innerProps } = extractParameterProps(props);
14655
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ParameterImageInner, { ref, ...innerProps }) });
15166
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ParameterImageInner, { ref, ...innerProps }) });
14656
15167
  });
14657
15168
  var BrokenImage = ({ ...props }) => {
14658
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
15169
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
14659
15170
  "svg",
14660
15171
  {
14661
15172
  width: "214",
@@ -14666,11 +15177,11 @@ var BrokenImage = ({ ...props }) => {
14666
15177
  xmlnsXlink: "http://www.w3.org/1999/xlink",
14667
15178
  ...props,
14668
15179
  children: [
14669
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
14670
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
14671
- /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("defs", { children: [
14672
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
14673
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
15180
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
15181
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
15182
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("defs", { children: [
15183
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
15184
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
14674
15185
  "image",
14675
15186
  {
14676
15187
  id: "image0_761_4353",
@@ -14684,14 +15195,14 @@ var BrokenImage = ({ ...props }) => {
14684
15195
  }
14685
15196
  );
14686
15197
  };
14687
- var ParameterImageInner = (0, import_react84.forwardRef)(
15198
+ var ParameterImageInner = (0, import_react92.forwardRef)(
14688
15199
  ({ ...props }, ref) => {
14689
15200
  const { value } = props;
14690
15201
  const { id, label, hiddenLabel, errorMessage, onManuallySetErrorMessage } = useParameterShell();
14691
- const [loading, setLoading] = (0, import_react84.useState)(false);
14692
- const deferredValue = (0, import_react84.useDeferredValue)(value);
15202
+ const [loading, setLoading] = (0, import_react92.useState)(false);
15203
+ const deferredValue = (0, import_react92.useDeferredValue)(value);
14693
15204
  const errorText = "The text you provided is not a valid URL";
14694
- const updateImageSrc = (0, import_react84.useCallback)(() => {
15205
+ const updateImageSrc = (0, import_react92.useCallback)(() => {
14695
15206
  let message = void 0;
14696
15207
  try {
14697
15208
  if (value !== "") {
@@ -14719,11 +15230,11 @@ var ParameterImageInner = (0, import_react84.forwardRef)(
14719
15230
  onManuallySetErrorMessage(errorText);
14720
15231
  }
14721
15232
  };
14722
- (0, import_react84.useEffect)(() => {
15233
+ (0, import_react92.useEffect)(() => {
14723
15234
  updateImageSrc();
14724
15235
  }, [value]);
14725
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
14726
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
15236
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
15237
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
14727
15238
  "input",
14728
15239
  {
14729
15240
  css: input2,
@@ -14735,8 +15246,8 @@ var ParameterImageInner = (0, import_react84.forwardRef)(
14735
15246
  ...props
14736
15247
  }
14737
15248
  ),
14738
- /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { css: imageWrapper, children: [
14739
- deferredValue && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
15249
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { css: imageWrapper, children: [
15250
+ deferredValue && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
14740
15251
  "img",
14741
15252
  {
14742
15253
  src: deferredValue,
@@ -14746,24 +15257,24 @@ var ParameterImageInner = (0, import_react84.forwardRef)(
14746
15257
  loading: "lazy"
14747
15258
  }
14748
15259
  ) : null,
14749
- deferredValue && errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(BrokenImage, { css: img }) : null
15260
+ deferredValue && errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(BrokenImage, { css: img }) : null
14750
15261
  ] }),
14751
- loading ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(LoadingIcon, {}) : null
15262
+ loading ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(LoadingIcon, {}) : null
14752
15263
  ] });
14753
15264
  }
14754
15265
  );
14755
15266
 
14756
15267
  // src/components/ParameterInputs/ParameterInput.tsx
14757
- var import_react85 = require("react");
14758
- var import_jsx_runtime81 = require("@emotion/react/jsx-runtime");
14759
- var ParameterInput = (0, import_react85.forwardRef)((props, ref) => {
15268
+ var import_react93 = require("react");
15269
+ var import_jsx_runtime87 = require("@emotion/react/jsx-runtime");
15270
+ var ParameterInput = (0, import_react93.forwardRef)((props, ref) => {
14760
15271
  const { shellProps, innerProps } = extractParameterProps(props);
14761
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ParameterShell, { "data-test-id": "parameter-input", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ParameterInputInner, { ref, ...innerProps }) });
15272
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(ParameterShell, { "data-test-id": "parameter-input", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(ParameterInputInner, { ref, ...innerProps }) });
14762
15273
  });
14763
- var ParameterInputInner = (0, import_react85.forwardRef)(
15274
+ var ParameterInputInner = (0, import_react93.forwardRef)(
14764
15275
  ({ ...props }, ref) => {
14765
15276
  const { id, label, hiddenLabel } = useParameterShell();
14766
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
15277
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
14767
15278
  "input",
14768
15279
  {
14769
15280
  css: input2,
@@ -14779,19 +15290,19 @@ var ParameterInputInner = (0, import_react85.forwardRef)(
14779
15290
  );
14780
15291
 
14781
15292
  // src/components/ParameterInputs/ParameterLink.tsx
14782
- var import_react86 = require("react");
14783
- var import_jsx_runtime82 = require("@emotion/react/jsx-runtime");
14784
- var ParameterLink = (0, import_react86.forwardRef)(
15293
+ var import_react94 = require("react");
15294
+ var import_jsx_runtime88 = require("@emotion/react/jsx-runtime");
15295
+ var ParameterLink = (0, import_react94.forwardRef)(
14785
15296
  ({ buttonText = "Select link", disabled, onConnectLink, externalLink, ...props }, ref) => {
14786
15297
  const { shellProps, innerProps } = extractParameterProps(props);
14787
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
15298
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
14788
15299
  ParameterShell,
14789
15300
  {
14790
15301
  "data-test-id": "link-parameter-editor",
14791
15302
  ...shellProps,
14792
15303
  label: innerProps.value ? shellProps.label : "",
14793
15304
  title: !innerProps.value ? shellProps.label : void 0,
14794
- children: !innerProps.value ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText }) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
15305
+ children: !innerProps.value ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
14795
15306
  ParameterLinkInner,
14796
15307
  {
14797
15308
  onConnectLink,
@@ -14804,11 +15315,11 @@ var ParameterLink = (0, import_react86.forwardRef)(
14804
15315
  );
14805
15316
  }
14806
15317
  );
14807
- var ParameterLinkInner = (0, import_react86.forwardRef)(
15318
+ var ParameterLinkInner = (0, import_react94.forwardRef)(
14808
15319
  ({ externalLink, onConnectLink, disabled, ...props }, ref) => {
14809
15320
  const { id, label, hiddenLabel } = useParameterShell();
14810
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { css: inputWrapper, children: [
14811
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
15321
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { css: inputWrapper, children: [
15322
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
14812
15323
  "input",
14813
15324
  {
14814
15325
  type: "text",
@@ -14820,8 +15331,8 @@ var ParameterLinkInner = (0, import_react86.forwardRef)(
14820
15331
  ...props
14821
15332
  }
14822
15333
  ),
14823
- /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { css: linkParameterControls, children: [
14824
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
15334
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { css: linkParameterControls, children: [
15335
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
14825
15336
  "button",
14826
15337
  {
14827
15338
  type: "button",
@@ -14832,7 +15343,7 @@ var ParameterLinkInner = (0, import_react86.forwardRef)(
14832
15343
  children: "edit"
14833
15344
  }
14834
15345
  ),
14835
- externalLink ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
15346
+ externalLink ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
14836
15347
  "a",
14837
15348
  {
14838
15349
  href: externalLink,
@@ -14840,7 +15351,7 @@ var ParameterLinkInner = (0, import_react86.forwardRef)(
14840
15351
  title: "Open link in new tab",
14841
15352
  target: "_blank",
14842
15353
  rel: "noopener noreferrer",
14843
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
15354
+ children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
14844
15355
  }
14845
15356
  ) : null
14846
15357
  ] })
@@ -14849,7 +15360,7 @@ var ParameterLinkInner = (0, import_react86.forwardRef)(
14849
15360
  );
14850
15361
 
14851
15362
  // src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
14852
- var import_jsx_runtime83 = require("@emotion/react/jsx-runtime");
15363
+ var import_jsx_runtime89 = require("@emotion/react/jsx-runtime");
14853
15364
  var ParameterNameAndPublicIdInput = ({
14854
15365
  id,
14855
15366
  onBlur,
@@ -14875,8 +15386,8 @@ var ParameterNameAndPublicIdInput = ({
14875
15386
  navigator.clipboard.writeText(values[publicIdFieldName]);
14876
15387
  };
14877
15388
  autoFocus == null ? void 0 : autoFocus();
14878
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
14879
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
15389
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_jsx_runtime89.Fragment, { children: [
15390
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
14880
15391
  ParameterInput,
14881
15392
  {
14882
15393
  id: nameIdField,
@@ -14895,7 +15406,7 @@ var ParameterNameAndPublicIdInput = ({
14895
15406
  value: values[nameIdField]
14896
15407
  }
14897
15408
  ),
14898
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
15409
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
14899
15410
  ParameterInput,
14900
15411
  {
14901
15412
  id: publicIdFieldName,
@@ -14909,11 +15420,11 @@ var ParameterNameAndPublicIdInput = ({
14909
15420
  caption: publicIdCaption,
14910
15421
  placeholder: publicIdPlaceholderText,
14911
15422
  errorMessage: publicIdError,
14912
- menuItems: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
15423
+ menuItems: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
14913
15424
  MenuItem,
14914
15425
  {
14915
15426
  disabled: !values[publicIdFieldName],
14916
- icon: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Icon, { icon: "path-trim", iconColor: "currentColor" }),
15427
+ icon: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Icon, { icon: "path-trim", iconColor: "currentColor" }),
14917
15428
  onClick: handleCopyPidFieldValue,
14918
15429
  children: "Copy"
14919
15430
  }
@@ -14921,14 +15432,14 @@ var ParameterNameAndPublicIdInput = ({
14921
15432
  value: values[publicIdFieldName]
14922
15433
  }
14923
15434
  ),
14924
- (warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Callout, { type: "caution", children: warnOverLength.message }) : null
15435
+ (warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Callout, { type: "caution", children: warnOverLength.message }) : null
14925
15436
  ] });
14926
15437
  };
14927
15438
 
14928
15439
  // src/components/ParameterInputs/ParameterRichText.tsx
14929
- var import_react87 = require("react");
14930
- var import_jsx_runtime84 = require("@emotion/react/jsx-runtime");
14931
- var ParameterRichText = (0, import_react87.forwardRef)(
15440
+ var import_react95 = require("react");
15441
+ var import_jsx_runtime90 = require("@emotion/react/jsx-runtime");
15442
+ var ParameterRichText = (0, import_react95.forwardRef)(
14932
15443
  ({
14933
15444
  label,
14934
15445
  labelLeadingIcon,
@@ -14941,7 +15452,7 @@ var ParameterRichText = (0, import_react87.forwardRef)(
14941
15452
  menuItems,
14942
15453
  ...props
14943
15454
  }, ref) => {
14944
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
15455
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
14945
15456
  ParameterShell,
14946
15457
  {
14947
15458
  "data-test-id": "parameter-input",
@@ -14954,16 +15465,16 @@ var ParameterRichText = (0, import_react87.forwardRef)(
14954
15465
  captionTestId,
14955
15466
  menuItems,
14956
15467
  children: [
14957
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ParameterRichTextInner, { ref, ...props }),
14958
- menuItems ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_jsx_runtime84.Fragment, { children: menuItems }) }) : null
15468
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(ParameterRichTextInner, { ref, ...props }),
15469
+ menuItems ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_jsx_runtime90.Fragment, { children: menuItems }) }) : null
14959
15470
  ]
14960
15471
  }
14961
15472
  );
14962
15473
  }
14963
15474
  );
14964
- var ParameterRichTextInner = (0, import_react87.forwardRef)(({ ...props }, ref) => {
15475
+ var ParameterRichTextInner = (0, import_react95.forwardRef)(({ ...props }, ref) => {
14965
15476
  const { id, label, hiddenLabel } = useParameterShell();
14966
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
15477
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
14967
15478
  "textarea",
14968
15479
  {
14969
15480
  css: [input2, textarea2],
@@ -14976,18 +15487,18 @@ var ParameterRichTextInner = (0, import_react87.forwardRef)(({ ...props }, ref)
14976
15487
  });
14977
15488
 
14978
15489
  // src/components/ParameterInputs/ParameterSelect.tsx
14979
- var import_react88 = require("react");
14980
- var import_jsx_runtime85 = require("@emotion/react/jsx-runtime");
14981
- var ParameterSelect = (0, import_react88.forwardRef)(
15490
+ var import_react96 = require("react");
15491
+ var import_jsx_runtime91 = require("@emotion/react/jsx-runtime");
15492
+ var ParameterSelect = (0, import_react96.forwardRef)(
14982
15493
  ({ defaultOption, options, ...props }, ref) => {
14983
15494
  const { shellProps, innerProps } = extractParameterProps(props);
14984
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
15495
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
14985
15496
  }
14986
15497
  );
14987
- var ParameterSelectInner = (0, import_react88.forwardRef)(
15498
+ var ParameterSelectInner = (0, import_react96.forwardRef)(
14988
15499
  ({ defaultOption, options, ...props }, ref) => {
14989
15500
  const { id, label, hiddenLabel } = useParameterShell();
14990
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
15501
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
14991
15502
  "select",
14992
15503
  {
14993
15504
  css: [input2, selectInput],
@@ -14996,10 +15507,10 @@ var ParameterSelectInner = (0, import_react88.forwardRef)(
14996
15507
  ref,
14997
15508
  ...props,
14998
15509
  children: [
14999
- defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("option", { value: "", children: defaultOption }) : null,
15510
+ defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("option", { value: "", children: defaultOption }) : null,
15000
15511
  options.map((option) => {
15001
15512
  var _a;
15002
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
15513
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
15003
15514
  })
15004
15515
  ]
15005
15516
  }
@@ -15008,15 +15519,15 @@ var ParameterSelectInner = (0, import_react88.forwardRef)(
15008
15519
  );
15009
15520
 
15010
15521
  // src/components/ParameterInputs/ParameterTextarea.tsx
15011
- var import_react89 = require("react");
15012
- var import_jsx_runtime86 = require("@emotion/react/jsx-runtime");
15013
- var ParameterTextarea = (0, import_react89.forwardRef)((props, ref) => {
15522
+ var import_react97 = require("react");
15523
+ var import_jsx_runtime92 = require("@emotion/react/jsx-runtime");
15524
+ var ParameterTextarea = (0, import_react97.forwardRef)((props, ref) => {
15014
15525
  const { shellProps, innerProps } = extractParameterProps(props);
15015
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ParameterShell, { "data-test-id": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ParameterTextareaInner, { ref, ...innerProps }) });
15526
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ParameterShell, { "data-test-id": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ParameterTextareaInner, { ref, ...innerProps }) });
15016
15527
  });
15017
- var ParameterTextareaInner = (0, import_react89.forwardRef)(({ ...props }, ref) => {
15528
+ var ParameterTextareaInner = (0, import_react97.forwardRef)(({ ...props }, ref) => {
15018
15529
  const { id, label, hiddenLabel } = useParameterShell();
15019
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
15530
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
15020
15531
  "textarea",
15021
15532
  {
15022
15533
  css: [input2, textarea2],
@@ -15029,18 +15540,18 @@ var ParameterTextareaInner = (0, import_react89.forwardRef)(({ ...props }, ref)
15029
15540
  });
15030
15541
 
15031
15542
  // src/components/ParameterInputs/ParameterToggle.tsx
15032
- var import_react90 = require("react");
15033
- var import_jsx_runtime87 = require("@emotion/react/jsx-runtime");
15034
- var ParameterToggle = (0, import_react90.forwardRef)((props, ref) => {
15543
+ var import_react98 = require("react");
15544
+ var import_jsx_runtime93 = require("@emotion/react/jsx-runtime");
15545
+ var ParameterToggle = (0, import_react98.forwardRef)((props, ref) => {
15035
15546
  const { shellProps, innerProps } = extractParameterProps(props);
15036
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(ParameterToggleInner, { ref, ...innerProps }) });
15547
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ParameterToggleInner, { ref, ...innerProps }) });
15037
15548
  });
15038
- var ParameterToggleInner = (0, import_react90.forwardRef)(
15549
+ var ParameterToggleInner = (0, import_react98.forwardRef)(
15039
15550
  ({ ...props }, ref) => {
15040
15551
  const { id, label } = useParameterShell();
15041
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("label", { css: inputToggleLabel2, children: [
15042
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
15043
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { css: inlineLabel2, children: label })
15552
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("label", { css: inputToggleLabel2, children: [
15553
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
15554
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { css: inlineLabel2, children: label })
15044
15555
  ] });
15045
15556
  }
15046
15557
  );
@@ -15050,13 +15561,13 @@ var import_Popover = require("reakit/Popover");
15050
15561
  var import_Portal2 = require("reakit/Portal");
15051
15562
 
15052
15563
  // src/components/Popover/Popover.styles.ts
15053
- var import_react91 = require("@emotion/react");
15054
- var PopoverBtn = import_react91.css`
15564
+ var import_react99 = require("@emotion/react");
15565
+ var PopoverBtn = import_react99.css`
15055
15566
  border: none;
15056
15567
  background: none;
15057
15568
  padding: 0;
15058
15569
  `;
15059
- var Popover = import_react91.css`
15570
+ var Popover = import_react99.css`
15060
15571
  border-left: var(--spacing-xs) solid var(--brand-secondary-3);
15061
15572
  border-radius: var(--rounded-base);
15062
15573
  box-shadow: var(--shadow-base);
@@ -15069,7 +15580,7 @@ var Popover = import_react91.css`
15069
15580
  `;
15070
15581
 
15071
15582
  // src/components/Popover/Popover.tsx
15072
- var import_jsx_runtime88 = require("@emotion/react/jsx-runtime");
15583
+ var import_jsx_runtime94 = require("@emotion/react/jsx-runtime");
15073
15584
  var Popover2 = ({
15074
15585
  iconColor = "green",
15075
15586
  buttonText,
@@ -15078,38 +15589,38 @@ var Popover2 = ({
15078
15589
  children
15079
15590
  }) => {
15080
15591
  const popover = (0, import_Popover.usePopoverState)({ placement });
15081
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_jsx_runtime88.Fragment, { children: [
15082
- /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_Popover.PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, children: [
15083
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Icon, { icon: "info", iconColor, size: "1rem" }),
15084
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { hidden: true, children: buttonText })
15592
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_jsx_runtime94.Fragment, { children: [
15593
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_Popover.PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, children: [
15594
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Icon, { icon: "info", iconColor, size: "1rem" }),
15595
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { hidden: true, children: buttonText })
15085
15596
  ] }),
15086
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_Portal2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_Popover.Popover, { css: Popover, ...popover, "aria-label": ariaLabel, children }) })
15597
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_Portal2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_Popover.Popover, { css: Popover, ...popover, "aria-label": ariaLabel, children }) })
15087
15598
  ] });
15088
15599
  };
15089
15600
 
15090
15601
  // src/components/ProgressList/ProgressList.tsx
15091
- var import_react93 = require("@emotion/react");
15092
- var import_react94 = require("react");
15093
- var import_cg15 = require("react-icons/cg");
15602
+ var import_react101 = require("@emotion/react");
15603
+ var import_react102 = require("react");
15604
+ var import_cg16 = require("react-icons/cg");
15094
15605
 
15095
15606
  // src/components/ProgressList/styles/ProgressList.styles.ts
15096
- var import_react92 = require("@emotion/react");
15097
- var progressListStyles = import_react92.css`
15607
+ var import_react100 = require("@emotion/react");
15608
+ var progressListStyles = import_react100.css`
15098
15609
  display: flex;
15099
15610
  flex-direction: column;
15100
15611
  gap: var(--spacing-sm);
15101
15612
  list-style-type: none;
15102
15613
  `;
15103
- var progressListItemStyles = import_react92.css`
15614
+ var progressListItemStyles = import_react100.css`
15104
15615
  display: flex;
15105
15616
  gap: var(--spacing-base);
15106
15617
  align-items: center;
15107
15618
  `;
15108
15619
 
15109
15620
  // src/components/ProgressList/ProgressList.tsx
15110
- var import_jsx_runtime89 = require("@emotion/react/jsx-runtime");
15621
+ var import_jsx_runtime95 = require("@emotion/react/jsx-runtime");
15111
15622
  var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
15112
- const itemsWithStatus = (0, import_react94.useMemo)(() => {
15623
+ const itemsWithStatus = (0, import_react102.useMemo)(() => {
15113
15624
  const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
15114
15625
  return items.map((item, index) => {
15115
15626
  let status = "queued";
@@ -15121,8 +15632,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
15121
15632
  return { ...item, status };
15122
15633
  });
15123
15634
  }, [items, inProgressId]);
15124
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
15125
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
15635
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
15636
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
15126
15637
  ProgressListItem,
15127
15638
  {
15128
15639
  status,
@@ -15142,25 +15653,25 @@ var ProgressListItem = ({
15142
15653
  errorLevel = "danger",
15143
15654
  autoEllipsis = false
15144
15655
  }) => {
15145
- const Icon2 = (0, import_react94.useMemo)(() => {
15656
+ const Icon2 = (0, import_react102.useMemo)(() => {
15146
15657
  if (error) {
15147
15658
  return warningIcon;
15148
15659
  }
15149
15660
  const iconPerStatus = {
15150
- completed: import_cg15.CgCheckO,
15151
- inProgress: import_cg15.CgRecord,
15152
- queued: import_cg15.CgRadioCheck
15661
+ completed: import_cg16.CgCheckO,
15662
+ inProgress: import_cg16.CgRecord,
15663
+ queued: import_cg16.CgRadioCheck
15153
15664
  };
15154
15665
  return iconPerStatus[status];
15155
15666
  }, [status, error]);
15156
- const statusStyles = (0, import_react94.useMemo)(() => {
15667
+ const statusStyles = (0, import_react102.useMemo)(() => {
15157
15668
  if (error) {
15158
- return errorLevel === "caution" ? import_react93.css`
15669
+ return errorLevel === "caution" ? import_react101.css`
15159
15670
  color: rgb(161, 98, 7);
15160
15671
  & svg {
15161
15672
  color: rgb(250, 204, 21);
15162
15673
  }
15163
- ` : import_react93.css`
15674
+ ` : import_react101.css`
15164
15675
  color: rgb(185, 28, 28);
15165
15676
  & svg {
15166
15677
  color: var(--brand-primary-2);
@@ -15168,221 +15679,40 @@ var ProgressListItem = ({
15168
15679
  `;
15169
15680
  }
15170
15681
  const colorPerStatus = {
15171
- completed: import_react93.css`
15682
+ completed: import_react101.css`
15172
15683
  opacity: 0.75;
15173
15684
  `,
15174
- inProgress: import_react93.css`
15685
+ inProgress: import_react101.css`
15175
15686
  -webkit-text-stroke-width: thin;
15176
15687
  `,
15177
- queued: import_react93.css`
15688
+ queued: import_react101.css`
15178
15689
  opacity: 0.5;
15179
15690
  `
15180
15691
  };
15181
15692
  return colorPerStatus[status];
15182
15693
  }, [status, error, errorLevel]);
15183
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("li", { css: [progressListItemStyles, statusStyles], children: [
15184
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Icon2, { size: 20 }) }) }),
15185
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { children: [
15694
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("li", { css: [progressListItemStyles, statusStyles], children: [
15695
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Icon2, { size: 20 }) }) }),
15696
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { children: [
15186
15697
  children,
15187
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
15698
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
15188
15699
  ] })
15189
15700
  ] });
15190
15701
  };
15191
15702
 
15192
- // src/components/SegmentedControl/SegmentedControl.tsx
15193
- var import_react96 = require("@emotion/react");
15194
- var import_react97 = require("react");
15195
- var import_cg16 = require("react-icons/cg");
15196
-
15197
- // src/components/SegmentedControl/SegmentedControl.styles.ts
15198
- var import_react95 = require("@emotion/react");
15199
- var segmentedControlStyles = import_react95.css`
15200
- --segmented-control-rounded-value: var(--rounded-base);
15201
- --segmented-control-border-width: 1px;
15202
- --segmented-control-selected-color: var(--brand-secondary-3);
15203
- --segmented-control-first-border-radius: var(--segmented-control-rounded-value) 0 0
15204
- var(--segmented-control-rounded-value);
15205
- --segmented-control-last-border-radius: 0 var(--segmented-control-rounded-value)
15206
- var(--segmented-control-rounded-value) 0;
15207
-
15208
- position: relative;
15209
- display: flex;
15210
- justify-content: flex-start;
15211
- width: fit-content;
15212
- background-color: var(--gray-300);
15213
- padding: var(--segmented-control-border-width);
15214
- gap: var(--segmented-control-border-width);
15215
- border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
15216
- font-size: var(--fs-xs);
15217
- `;
15218
- var segmentedControlVerticalStyles = import_react95.css`
15219
- flex-direction: column;
15220
- --segmented-control-first-border-radius: var(--segmented-control-rounded-value)
15221
- var(--segmented-control-rounded-value) 0 0;
15222
- --segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
15223
- var(--segmented-control-rounded-value);
15224
- `;
15225
- var segmentedControlItemStyles = import_react95.css`
15226
- &:first-of-type label {
15227
- border-radius: var(--segmented-control-first-border-radius);
15228
- }
15229
- &:last-of-type label {
15230
- border-radius: var(--segmented-control-last-border-radius);
15231
- }
15232
- `;
15233
- var segmentedControlInputStyles = import_react95.css`
15234
- clip: rect(0, 0, 0, 0);
15235
- position: absolute;
15236
- width: 1px;
15237
- height: 1px;
15238
- overflow: hidden;
15239
- `;
15240
- var segmentedControlLabelStyles = import_react95.css`
15241
- position: relative;
15242
- display: flex;
15243
- align-items: center;
15244
- justify-content: center;
15245
- height: 2rem;
15246
- padding-inline: var(--spacing-base);
15247
- background-color: white;
15248
- transition-property: background-color, color, box-shadow;
15249
- transition-duration: var(--duration-xfast);
15250
- transition-timing-function: ease-in-out;
15251
- z-index: 1;
15252
- cursor: pointer;
15253
-
15254
- &:has(:checked:not(:disabled)) {
15255
- background-color: var(--segmented-control-selected-color);
15256
- outline: var(--segmented-control-border-width) solid var(--segmented-control-selected-color);
15257
- box-shadow: 0 0.43em 1.7em 0 rgba(0, 0, 0, 0.15);
15258
- color: white;
15259
- -webkit-text-stroke-width: thin;
15260
- z-index: 0;
15261
- }
15262
-
15263
- &:hover:not(:has(:disabled, :checked)) {
15264
- background-color: var(--gray-100);
15265
- }
15266
-
15267
- &:has(:disabled) {
15268
- color: var(--gray-400);
15269
- cursor: default;
15270
- }
15271
-
15272
- &:has(:checked:disabled) {
15273
- color: var(--gray-50);
15274
- background-color: var(--gray-400);
15275
- }
15276
- `;
15277
- var segmentedControlLabelIconOnlyStyles = import_react95.css`
15278
- padding-inline: 0.5em;
15279
- `;
15280
- var segmentedControlLabelCheckStyles = import_react95.css`
15281
- opacity: 0.5;
15282
- `;
15283
- var segmentedControlLabelContentStyles = import_react95.css`
15284
- display: flex;
15285
- align-items: center;
15286
- justify-content: center;
15287
- gap: var(--spacing-sm);
15288
- height: 100%;
15289
- `;
15290
- var segmentedControlLabelTextStyles = import_react95.css``;
15291
-
15292
- // src/components/SegmentedControl/SegmentedControl.tsx
15293
- var import_jsx_runtime90 = require("@emotion/react/jsx-runtime");
15294
- var SegmentedControl = ({
15295
- name,
15296
- options,
15297
- value,
15298
- onChange,
15299
- noCheckmark = false,
15300
- disabled = false,
15301
- orientation = "horizontal",
15302
- size = "md",
15303
- ...props
15304
- }) => {
15305
- const onOptionChange = (0, import_react97.useCallback)(
15306
- (event) => {
15307
- if (event.target.checked) {
15308
- onChange == null ? void 0 : onChange(options[parseInt(event.target.value)].value);
15309
- }
15310
- },
15311
- [options, onChange]
15312
- );
15313
- const sizeStyles = (0, import_react97.useMemo)(() => {
15314
- const map = {
15315
- sm: (0, import_react96.css)({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
15316
- md: (0, import_react96.css)({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
15317
- lg: (0, import_react96.css)({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
15318
- };
15319
- return map[size];
15320
- }, [size]);
15321
- const isIconOnly = (0, import_react97.useMemo)(() => {
15322
- return options.every((option) => option.icon && !option.label);
15323
- }, [options]);
15324
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
15325
- "div",
15326
- {
15327
- css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
15328
- ...props,
15329
- children: options.map((option, index) => {
15330
- const text = option.label ? option.label : option.icon ? null : String(option.value);
15331
- const isDisabled = disabled || option.disabled;
15332
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
15333
- Tooltip,
15334
- {
15335
- title: isDisabled || !option.tooltip ? "" : option.tooltip,
15336
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { css: segmentedControlItemStyles, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
15337
- "label",
15338
- {
15339
- css: [
15340
- segmentedControlLabelStyles,
15341
- sizeStyles,
15342
- isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
15343
- ],
15344
- children: [
15345
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
15346
- "input",
15347
- {
15348
- css: segmentedControlInputStyles,
15349
- type: "radio",
15350
- name,
15351
- value: index,
15352
- checked: option.value === value,
15353
- onChange: onOptionChange,
15354
- disabled: isDisabled
15355
- }
15356
- ),
15357
- option.value !== value || noCheckmark ? null : /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_cg16.CgCheck, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
15358
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("span", { css: segmentedControlLabelContentStyles, children: [
15359
- !option.icon ? null : /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(option.icon, { size: "1.5em" }),
15360
- !text ? null : /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { css: segmentedControlLabelTextStyles, children: text })
15361
- ] })
15362
- ]
15363
- }
15364
- ) })
15365
- },
15366
- JSON.stringify(option.value)
15367
- );
15368
- })
15369
- }
15370
- );
15371
- };
15372
-
15373
15703
  // src/components/Skeleton/Skeleton.styles.ts
15374
- var import_react98 = require("@emotion/react");
15375
- var lightFadingOut = import_react98.keyframes`
15704
+ var import_react103 = require("@emotion/react");
15705
+ var lightFadingOut = import_react103.keyframes`
15376
15706
  from { opacity: 0.1; }
15377
15707
  to { opacity: 0.025; }
15378
15708
  `;
15379
- var skeletonStyles = import_react98.css`
15709
+ var skeletonStyles = import_react103.css`
15380
15710
  animation: ${lightFadingOut} 1s ease-out infinite alternate;
15381
15711
  background-color: var(--gray-900);
15382
15712
  `;
15383
15713
 
15384
15714
  // src/components/Skeleton/Skeleton.tsx
15385
- var import_jsx_runtime91 = require("@emotion/react/jsx-runtime");
15715
+ var import_jsx_runtime96 = require("@emotion/react/jsx-runtime");
15386
15716
  var Skeleton = ({
15387
15717
  width = "100%",
15388
15718
  height = "1.25rem",
@@ -15390,7 +15720,7 @@ var Skeleton = ({
15390
15720
  circle = false,
15391
15721
  children,
15392
15722
  ...otherProps
15393
- }) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
15723
+ }) => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
15394
15724
  "div",
15395
15725
  {
15396
15726
  css: [
@@ -15410,11 +15740,11 @@ var Skeleton = ({
15410
15740
  );
15411
15741
 
15412
15742
  // src/components/Switch/Switch.tsx
15413
- var React18 = __toESM(require("react"));
15743
+ var React20 = __toESM(require("react"));
15414
15744
 
15415
15745
  // src/components/Switch/Switch.styles.ts
15416
- var import_react99 = require("@emotion/react");
15417
- var SwitchInputContainer = import_react99.css`
15746
+ var import_react104 = require("@emotion/react");
15747
+ var SwitchInputContainer = import_react104.css`
15418
15748
  cursor: pointer;
15419
15749
  display: inline-block;
15420
15750
  position: relative;
@@ -15423,7 +15753,7 @@ var SwitchInputContainer = import_react99.css`
15423
15753
  vertical-align: middle;
15424
15754
  user-select: none;
15425
15755
  `;
15426
- var SwitchInput = import_react99.css`
15756
+ var SwitchInput = import_react104.css`
15427
15757
  appearance: none;
15428
15758
  border-radius: var(--rounded-full);
15429
15759
  background-color: var(--white);
@@ -15461,7 +15791,7 @@ var SwitchInput = import_react99.css`
15461
15791
  cursor: not-allowed;
15462
15792
  }
15463
15793
  `;
15464
- var SwitchInputDisabled = import_react99.css`
15794
+ var SwitchInputDisabled = import_react104.css`
15465
15795
  opacity: var(--opacity-50);
15466
15796
  cursor: not-allowed;
15467
15797
 
@@ -15469,7 +15799,7 @@ var SwitchInputDisabled = import_react99.css`
15469
15799
  cursor: not-allowed;
15470
15800
  }
15471
15801
  `;
15472
- var SwitchInputLabel = import_react99.css`
15802
+ var SwitchInputLabel = import_react104.css`
15473
15803
  align-items: center;
15474
15804
  color: var(--brand-secondary-1);
15475
15805
  display: inline-flex;
@@ -15491,103 +15821,103 @@ var SwitchInputLabel = import_react99.css`
15491
15821
  top: 0;
15492
15822
  }
15493
15823
  `;
15494
- var SwitchText = import_react99.css`
15824
+ var SwitchText = import_react104.css`
15495
15825
  color: var(--gray-500);
15496
15826
  font-size: var(--fs-sm);
15497
15827
  padding-inline: var(--spacing-2xl) 0;
15498
15828
  `;
15499
15829
 
15500
15830
  // src/components/Switch/Switch.tsx
15501
- var import_jsx_runtime92 = require("@emotion/react/jsx-runtime");
15502
- var Switch = React18.forwardRef(
15831
+ var import_jsx_runtime97 = require("@emotion/react/jsx-runtime");
15832
+ var Switch = React20.forwardRef(
15503
15833
  ({ label, infoText, toggleText, children, ...inputProps }, ref) => {
15504
15834
  let additionalText = infoText;
15505
15835
  if (infoText && toggleText) {
15506
15836
  additionalText = inputProps.checked ? toggleText : infoText;
15507
15837
  }
15508
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
15509
- /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
15510
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
15511
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { css: SwitchInputLabel, children: label })
15838
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_jsx_runtime97.Fragment, { children: [
15839
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
15840
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
15841
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { css: SwitchInputLabel, children: label })
15512
15842
  ] }),
15513
- additionalText ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("p", { css: SwitchText, children: additionalText }) : null,
15843
+ additionalText ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { css: SwitchText, children: additionalText }) : null,
15514
15844
  children
15515
15845
  ] });
15516
15846
  }
15517
15847
  );
15518
15848
 
15519
15849
  // src/components/Table/Table.tsx
15520
- var React19 = __toESM(require("react"));
15850
+ var React21 = __toESM(require("react"));
15521
15851
 
15522
15852
  // src/components/Table/Table.styles.ts
15523
- var import_react100 = require("@emotion/react");
15524
- var table = import_react100.css`
15853
+ var import_react105 = require("@emotion/react");
15854
+ var table = import_react105.css`
15525
15855
  border-bottom: 1px solid var(--gray-400);
15526
15856
  border-collapse: collapse;
15527
15857
  min-width: 100%;
15528
15858
  table-layout: auto;
15529
15859
  `;
15530
- var tableHead = import_react100.css`
15860
+ var tableHead = import_react105.css`
15531
15861
  background: var(--gray-100);
15532
15862
  color: var(--brand-secondary-1);
15533
15863
  text-align: left;
15534
15864
  `;
15535
- var tableRow = import_react100.css`
15865
+ var tableRow = import_react105.css`
15536
15866
  border-bottom: 1px solid var(--gray-200);
15537
15867
  `;
15538
- var tableCellHead = import_react100.css`
15868
+ var tableCellHead = import_react105.css`
15539
15869
  font-size: var(--fs-sm);
15540
15870
  padding: var(--spacing-base) var(--spacing-md);
15541
15871
  text-transform: uppercase;
15542
15872
  font-weight: var(--fw-bold);
15543
15873
  `;
15544
- var tableCellData = import_react100.css`
15874
+ var tableCellData = import_react105.css`
15545
15875
  padding: var(--spacing-base) var(--spacing-md);
15546
15876
  `;
15547
15877
 
15548
15878
  // src/components/Table/Table.tsx
15549
- var import_jsx_runtime93 = require("@emotion/react/jsx-runtime");
15550
- var Table = React19.forwardRef(({ children, ...otherProps }, ref) => {
15551
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("table", { ref, css: table, ...otherProps, children });
15879
+ var import_jsx_runtime98 = require("@emotion/react/jsx-runtime");
15880
+ var Table = React21.forwardRef(({ children, ...otherProps }, ref) => {
15881
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("table", { ref, css: table, ...otherProps, children });
15552
15882
  });
15553
- var TableHead = React19.forwardRef(
15883
+ var TableHead = React21.forwardRef(
15554
15884
  ({ children, ...otherProps }, ref) => {
15555
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
15885
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
15556
15886
  }
15557
15887
  );
15558
- var TableBody = React19.forwardRef(
15888
+ var TableBody = React21.forwardRef(
15559
15889
  ({ children, ...otherProps }, ref) => {
15560
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("tbody", { ref, ...otherProps, children });
15890
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("tbody", { ref, ...otherProps, children });
15561
15891
  }
15562
15892
  );
15563
- var TableFoot = React19.forwardRef(
15893
+ var TableFoot = React21.forwardRef(
15564
15894
  ({ children, ...otherProps }, ref) => {
15565
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("tfoot", { ref, ...otherProps, children });
15895
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("tfoot", { ref, ...otherProps, children });
15566
15896
  }
15567
15897
  );
15568
- var TableRow = React19.forwardRef(
15898
+ var TableRow = React21.forwardRef(
15569
15899
  ({ children, ...otherProps }, ref) => {
15570
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
15900
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
15571
15901
  }
15572
15902
  );
15573
- var TableCellHead = React19.forwardRef(
15903
+ var TableCellHead = React21.forwardRef(
15574
15904
  ({ children, ...otherProps }, ref) => {
15575
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
15905
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
15576
15906
  }
15577
15907
  );
15578
- var TableCellData = React19.forwardRef(
15908
+ var TableCellData = React21.forwardRef(
15579
15909
  ({ children, ...otherProps }, ref) => {
15580
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("td", { ref, css: tableCellData, ...otherProps, children });
15910
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("td", { ref, css: tableCellData, ...otherProps, children });
15581
15911
  }
15582
15912
  );
15583
15913
 
15584
15914
  // src/components/Tabs/Tabs.tsx
15585
- var import_react102 = require("react");
15915
+ var import_react107 = require("react");
15586
15916
  var import_Tab = require("reakit/Tab");
15587
15917
 
15588
15918
  // src/components/Tabs/Tabs.styles.ts
15589
- var import_react101 = require("@emotion/react");
15590
- var tabButtonStyles = import_react101.css`
15919
+ var import_react106 = require("@emotion/react");
15920
+ var tabButtonStyles = import_react106.css`
15591
15921
  align-items: center;
15592
15922
  border: 0;
15593
15923
  height: 2.5rem;
@@ -15604,30 +15934,30 @@ var tabButtonStyles = import_react101.css`
15604
15934
  -webkit-text-stroke-width: thin;
15605
15935
  }
15606
15936
  `;
15607
- var tabButtonGroupStyles = import_react101.css`
15937
+ var tabButtonGroupStyles = import_react106.css`
15608
15938
  display: flex;
15609
15939
  gap: var(--spacing-base);
15610
15940
  border-bottom: 1px solid var(--gray-300);
15611
15941
  `;
15612
15942
 
15613
15943
  // src/components/Tabs/Tabs.tsx
15614
- var import_jsx_runtime94 = require("@emotion/react/jsx-runtime");
15615
- var CurrentTabContext = (0, import_react102.createContext)(null);
15944
+ var import_jsx_runtime99 = require("@emotion/react/jsx-runtime");
15945
+ var CurrentTabContext = (0, import_react107.createContext)(null);
15616
15946
  var useCurrentTab = () => {
15617
- const context = (0, import_react102.useContext)(CurrentTabContext);
15947
+ const context = (0, import_react107.useContext)(CurrentTabContext);
15618
15948
  if (!context) {
15619
15949
  throw new Error("This component can only be used inside <Tabs>");
15620
15950
  }
15621
15951
  return context;
15622
15952
  };
15623
15953
  var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...props }) => {
15624
- const selected = (0, import_react102.useMemo)(() => {
15954
+ const selected = (0, import_react107.useMemo)(() => {
15625
15955
  if (selectedId)
15626
15956
  return selectedId;
15627
15957
  return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
15628
15958
  }, [selectedId, useHashForState]);
15629
15959
  const tab = (0, import_Tab.useTabState)({ ...props, selectedId: selected });
15630
- (0, import_react102.useEffect)(() => {
15960
+ (0, import_react107.useEffect)(() => {
15631
15961
  var _a;
15632
15962
  const selectedValueWithoutNull = (_a = tab.selectedId) != null ? _a : void 0;
15633
15963
  onSelectedIdChange == null ? void 0 : onSelectedIdChange(selectedValueWithoutNull);
@@ -15635,116 +15965,24 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
15635
15965
  window.location.hash = selectedValueWithoutNull != null ? selectedValueWithoutNull : "";
15636
15966
  }
15637
15967
  }, [tab.selectedId, onSelectedIdChange, useHashForState]);
15638
- (0, import_react102.useEffect)(() => {
15968
+ (0, import_react107.useEffect)(() => {
15639
15969
  if (selected && selected !== tab.selectedId) {
15640
15970
  tab.setSelectedId(selected);
15641
15971
  }
15642
15972
  }, [selected]);
15643
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(CurrentTabContext.Provider, { value: tab, children });
15973
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(CurrentTabContext.Provider, { value: tab, children });
15644
15974
  };
15645
15975
  var TabButtonGroup = ({ children, ...props }) => {
15646
15976
  const currentTab = useCurrentTab();
15647
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_Tab.TabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
15977
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_Tab.TabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
15648
15978
  };
15649
15979
  var TabButton = ({ children, id, ...props }) => {
15650
15980
  const currentTab = useCurrentTab();
15651
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_Tab.Tab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
15981
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_Tab.Tab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
15652
15982
  };
15653
15983
  var TabContent = ({ children, ...props }) => {
15654
15984
  const currentTab = useCurrentTab();
15655
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_Tab.TabPanel, { ...props, ...currentTab, children });
15656
- };
15657
-
15658
- // src/components/Validation/StatusBullet.styles.ts
15659
- var import_react103 = require("@emotion/react");
15660
- var StatusBulletContainer = import_react103.css`
15661
- align-items: center;
15662
- align-self: center;
15663
- color: var(--gray-500);
15664
- display: inline-flex;
15665
- font-weight: var(--fw-regular);
15666
- gap: var(--spacing-xs);
15667
- line-height: 1;
15668
- position: relative;
15669
- text-transform: lowercase;
15670
-
15671
- &:before {
15672
- border-radius: var(--rounded-full);
15673
- content: '';
15674
- display: block;
15675
- }
15676
- `;
15677
- var StatusBulletBase = import_react103.css`
15678
- font-size: var(--fs-sm);
15679
- &:before {
15680
- width: var(--fs-xs);
15681
- height: var(--fs-xs);
15682
- }
15683
- `;
15684
- var StatusBulletSmall = import_react103.css`
15685
- font-size: var(--fs-xs);
15686
- &:before {
15687
- width: var(--fs-xxs);
15688
- height: var(--fs-xxs);
15689
- }
15690
- `;
15691
- var StatusDraft = import_react103.css`
15692
- &:before {
15693
- background: var(--white);
15694
- box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
15695
- }
15696
- `;
15697
- var StatusModified = import_react103.css`
15698
- &:before {
15699
- background: linear-gradient(to right, var(--white) 50%, var(--brand-primary-1) 50% 100%);
15700
- box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
15701
- }
15702
- `;
15703
- var StatusError = import_react103.css`
15704
- color: var(--error);
15705
- &:before {
15706
- background: linear-gradient(120deg, var(--error) 40%, var(--white) 50%, var(--error) 60%);
15707
- }
15708
- `;
15709
- var StatusPublished = import_react103.css`
15710
- &:before {
15711
- background: var(--brand-secondary-3);
15712
- }
15713
- `;
15714
- var StatusOrphan = import_react103.css`
15715
- &:before {
15716
- background: var(--brand-secondary-5);
15717
- }
15718
- `;
15719
-
15720
- // src/components/Validation/StatusBullet.tsx
15721
- var import_jsx_runtime95 = require("@emotion/react/jsx-runtime");
15722
- var StatusBullet = ({
15723
- status,
15724
- hideText = false,
15725
- size = "base",
15726
- message,
15727
- ...props
15728
- }) => {
15729
- const currentStateStyles = {
15730
- Error: StatusError,
15731
- Modified: StatusModified,
15732
- Unsaved: StatusDraft,
15733
- Orphan: StatusOrphan,
15734
- Published: StatusPublished,
15735
- Draft: StatusDraft
15736
- };
15737
- const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
15738
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
15739
- "span",
15740
- {
15741
- role: "status",
15742
- css: [StatusBulletContainer, currentStateStyles[status], statusSize],
15743
- title: message != null ? message : status,
15744
- ...props,
15745
- children: hideText ? null : message ? message : status
15746
- }
15747
- );
15985
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_Tab.TabPanel, { ...props, ...currentTab, children });
15748
15986
  };
15749
15987
  // Annotate the CommonJS export names for ESM import in node:
15750
15988
  0 && (module.exports = {
@@ -15807,6 +16045,10 @@ var StatusBullet = ({
15807
16045
  MenuGroup,
15808
16046
  MenuItem,
15809
16047
  MenuItemSeparator,
16048
+ ObjectCompositionListItem,
16049
+ ObjectListContainer,
16050
+ ObjectListItemLoadingSkeleton,
16051
+ ObjectPersonalizationListItem,
15810
16052
  PageHeaderSection,
15811
16053
  Paragraph,
15812
16054
  ParameterDataResource,