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