@uniformdev/design-system 19.50.2-alpha.45 → 19.51.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +1070 -908
- package/dist/index.d.mts +416 -387
- package/dist/index.d.ts +416 -387
- package/dist/index.js +1157 -981
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -27,7 +27,7 @@ var Theme = ({ disableReset = false }) => {
|
|
|
27
27
|
{
|
|
28
28
|
dangerouslySetInnerHTML: {
|
|
29
29
|
__html: `
|
|
30
|
-
:root {
|
|
30
|
+
:root, :host {
|
|
31
31
|
--brand-primary-1: #438fd5; /* bright blue */
|
|
32
32
|
--brand-primary-2: #f4220b; /* red */
|
|
33
33
|
--brand-primary-3: #83c6e1; /* slate blue */
|
|
@@ -134,10 +134,11 @@ var Theme = ({ disableReset = false }) => {
|
|
|
134
134
|
--prose: 65ch;
|
|
135
135
|
|
|
136
136
|
/* brand shadow styles */
|
|
137
|
-
--shadow-sm: rgba(
|
|
138
|
-
--shadow-base: rgba(
|
|
139
|
-
rgba(
|
|
140
|
-
--shadow-md: 0px 4px 4px rgba(
|
|
137
|
+
--shadow-sm: rgba(31, 43, 52, 0.05) 0px 0px 0px 1px;
|
|
138
|
+
--shadow-base: rgba(31, 43, 52, 0.25) 0 2px 5px -1px,
|
|
139
|
+
rgba(31, 43, 52, 0.3) 0px 1px 3px -1px;
|
|
140
|
+
--shadow-md: 0px 4px 4px rgba(31, 43, 52, 0.25), 0 2px 4px -2px rgba(31, 43, 52, 0.1);
|
|
141
|
+
--shadow-xl: 0px 0px 24px rgba(31, 43, 52, 0.3);
|
|
141
142
|
|
|
142
143
|
/* rounder corners */
|
|
143
144
|
--rounded-sm: 0.125rem; /* 2px */
|
|
@@ -194,8 +195,7 @@ var Theme = ({ disableReset = false }) => {
|
|
|
194
195
|
--duration-xfast: 0.15s;
|
|
195
196
|
}
|
|
196
197
|
|
|
197
|
-
html,
|
|
198
|
-
body {
|
|
198
|
+
html, body, :host {
|
|
199
199
|
color: var(--brand-secondary-1);
|
|
200
200
|
font-family: var(--ff-base);
|
|
201
201
|
scroll-behavior: smooth;
|
|
@@ -274,6 +274,50 @@ var cq = (size) => `@container (min-width: ${size})`;
|
|
|
274
274
|
// src/utils/replaceUnderscoreInString.ts
|
|
275
275
|
var replaceUnderscoreInString = (title) => (title == null ? void 0 : title.includes("_")) ? title.replaceAll("_", " ") : title;
|
|
276
276
|
|
|
277
|
+
// src/utils/url.ts
|
|
278
|
+
var isSecureURL = (value = "") => {
|
|
279
|
+
try {
|
|
280
|
+
const url = new URL(value);
|
|
281
|
+
return url.protocol === "https:";
|
|
282
|
+
} catch (e) {
|
|
283
|
+
return false;
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
var isValidUrl = (urlString, options = {}) => {
|
|
287
|
+
try {
|
|
288
|
+
const isRelativeToLocation = /^([/.])/.test(urlString);
|
|
289
|
+
const url = new URL(
|
|
290
|
+
urlString,
|
|
291
|
+
options.allowRelative && isRelativeToLocation ? "https://defaultbaseurl.com" : void 0
|
|
292
|
+
);
|
|
293
|
+
if (options.isSecure) {
|
|
294
|
+
return url.protocol === "https:";
|
|
295
|
+
}
|
|
296
|
+
return true;
|
|
297
|
+
} catch (e) {
|
|
298
|
+
return false;
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
var addPathSegmentToPathname = (path, pathSegment) => {
|
|
302
|
+
return `/${path.substring(1).split("/").filter((s) => s).concat(pathSegment).join("/")}`;
|
|
303
|
+
};
|
|
304
|
+
var getPathSegment = (path) => {
|
|
305
|
+
return path.split("/").pop() || path;
|
|
306
|
+
};
|
|
307
|
+
var getParentPath = (path, noRootSlash) => {
|
|
308
|
+
var _a;
|
|
309
|
+
if (path === "/") {
|
|
310
|
+
return "";
|
|
311
|
+
}
|
|
312
|
+
const pathSegments = path == null ? void 0 : path.split("/");
|
|
313
|
+
if ((pathSegments == null ? void 0 : pathSegments.length) === 2) {
|
|
314
|
+
return noRootSlash ? "" : "/";
|
|
315
|
+
} else {
|
|
316
|
+
pathSegments == null ? void 0 : pathSegments.pop();
|
|
317
|
+
return (_a = pathSegments == null ? void 0 : pathSegments.join("/")) != null ? _a : "n/a";
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
|
|
277
321
|
// src/utils/useOutsideClick.tsx
|
|
278
322
|
import { useEffect } from "react";
|
|
279
323
|
var useOutsideClick = (containerRef, handler) => {
|
|
@@ -328,34 +372,6 @@ var buttonRippleEffect = (props) => css`
|
|
|
328
372
|
transition: background 0s;
|
|
329
373
|
}
|
|
330
374
|
`;
|
|
331
|
-
var buttonAccentAltDark = css`
|
|
332
|
-
background: var(--accent-alt-dark);
|
|
333
|
-
color: var(--white);
|
|
334
|
-
|
|
335
|
-
&:disabled {
|
|
336
|
-
background: var(--gray-300);
|
|
337
|
-
color: var(--white);
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
${buttonRippleEffect({ hoverColor: "var(--brand-secondary-1)" })}
|
|
341
|
-
`;
|
|
342
|
-
var buttonAccentAltDarkOutline = css`
|
|
343
|
-
background: var(--white);
|
|
344
|
-
color: var(--accent-alt-dark);
|
|
345
|
-
box-shadow: 0 0 0 1px var(--accent-alt-dark);
|
|
346
|
-
transition: box-shadow var(--duration-fast) var(--timing-ease-out);
|
|
347
|
-
|
|
348
|
-
&:hover {
|
|
349
|
-
color: var(--primary-action-hover);
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
&:disabled {
|
|
353
|
-
color: var(--gray-300);
|
|
354
|
-
box-shadow: 0 0 0 1px var(--gray-300);
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
${buttonRippleEffect({ hoverColor: "var(--gray-50)" })}
|
|
358
|
-
`;
|
|
359
375
|
var buttonPrimary = css`
|
|
360
376
|
background: var(--brand-secondary-1);
|
|
361
377
|
color: var(--white);
|
|
@@ -1053,9 +1069,6 @@ var IconImg = css8`
|
|
|
1053
1069
|
vertical-align: middle;
|
|
1054
1070
|
}
|
|
1055
1071
|
`;
|
|
1056
|
-
var IconWhite = css8`
|
|
1057
|
-
color: var(--white);
|
|
1058
|
-
`;
|
|
1059
1072
|
var IconColorDefault = css8`
|
|
1060
1073
|
color: var(--brand-secondary-3);
|
|
1061
1074
|
`;
|
|
@@ -1110,7 +1123,6 @@ var IconInner = ({ icon, iconColor = "default", size = "1.5rem", ...otherProps }
|
|
|
1110
1123
|
const isIconName = typeof icon === "string";
|
|
1111
1124
|
const { iconsMap, isLoading } = useIconContext();
|
|
1112
1125
|
const customColor = {
|
|
1113
|
-
white: IconWhite,
|
|
1114
1126
|
action: IconColorAction,
|
|
1115
1127
|
default: IconColorDefault,
|
|
1116
1128
|
gray: IconColorGray,
|
|
@@ -1720,60 +1732,6 @@ var diamondFill = GenIcon({
|
|
|
1720
1732
|
}
|
|
1721
1733
|
]
|
|
1722
1734
|
});
|
|
1723
|
-
var magicWand = GenIcon({
|
|
1724
|
-
tag: "svg",
|
|
1725
|
-
attr: {
|
|
1726
|
-
role: "img",
|
|
1727
|
-
viewBox: "0 0 24 24"
|
|
1728
|
-
},
|
|
1729
|
-
child: [
|
|
1730
|
-
{
|
|
1731
|
-
tag: "path",
|
|
1732
|
-
attr: {
|
|
1733
|
-
fill: "currentColor",
|
|
1734
|
-
fillOpacity: "0.5",
|
|
1735
|
-
d: "M12.6021 0.799316C12.5443 0.799316 12.487 0.802204 12.4305 0.807862C12.3484 1.91145 11.5902 2.79082 10.6387 2.88601C10.6338 2.9516 10.6313 3.01798 10.6313 3.08503C10.6313 3.15208 10.6338 3.21846 10.6387 3.28405C11.5902 3.37924 12.3484 4.25862 12.4305 5.3622C12.487 5.36786 12.5443 5.37074 12.6021 5.37074C12.6599 5.37074 12.7171 5.36786 12.7737 5.3622C12.8558 4.25862 13.614 3.37924 14.5655 3.28405C14.5704 3.21846 14.5729 3.15208 14.5729 3.08503C14.5729 3.01798 14.5704 2.9516 14.5655 2.88601C13.614 2.79082 12.8558 1.91145 12.7737 0.807862C12.7171 0.802204 12.6599 0.799316 12.6021 0.799316Z"
|
|
1736
|
-
},
|
|
1737
|
-
child: []
|
|
1738
|
-
},
|
|
1739
|
-
{
|
|
1740
|
-
tag: "path",
|
|
1741
|
-
attr: {
|
|
1742
|
-
fill: "currentColor",
|
|
1743
|
-
fillOpacity: "0.5",
|
|
1744
|
-
d: "M17.8945 12.4247C17.8367 12.4247 17.7795 12.4276 17.7229 12.4332C17.6409 13.5368 16.8826 14.4162 15.9311 14.5114C15.9262 14.577 15.9237 14.6433 15.9237 14.7104C15.9237 14.7774 15.9262 14.8438 15.9311 14.9094C16.8826 15.0046 17.6409 15.884 17.7229 16.9876C17.7795 16.9932 17.8367 16.9961 17.8945 16.9961C17.9523 16.9961 18.0096 16.9932 18.0661 16.9876C18.1482 15.884 18.9064 15.0046 19.858 14.9094C19.8628 14.8438 19.8653 14.7774 19.8653 14.7104C19.8653 14.6433 19.8628 14.577 19.858 14.5114C18.9064 14.4162 18.1482 13.5368 18.0661 12.4332C18.0096 12.4276 17.9523 12.4247 17.8945 12.4247Z"
|
|
1745
|
-
},
|
|
1746
|
-
child: []
|
|
1747
|
-
},
|
|
1748
|
-
{
|
|
1749
|
-
tag: "path",
|
|
1750
|
-
attr: {
|
|
1751
|
-
fill: "currentColor",
|
|
1752
|
-
fillOpacity: "0.5",
|
|
1753
|
-
d: "M21.571 1.6413C21.509 1.6413 21.4476 1.6449 21.387 1.65195C21.299 3.02718 20.4858 4.12302 19.4653 4.24164C19.4601 4.32337 19.4574 4.40609 19.4574 4.48965C19.4574 4.57321 19.4601 4.65592 19.4653 4.73766C20.4858 4.85628 21.299 5.95211 21.387 7.32734C21.4476 7.33439 21.509 7.33799 21.571 7.33799C21.633 7.33799 21.6944 7.33439 21.755 7.32734C21.8431 5.95211 22.6562 4.85628 23.6767 4.73766C23.6819 4.65592 23.6846 4.57321 23.6846 4.48965C23.6846 4.40609 23.6819 4.32337 23.6767 4.24164C22.6562 4.12302 21.8431 3.02718 21.755 1.65195C21.6944 1.6449 21.633 1.6413 21.571 1.6413Z"
|
|
1754
|
-
},
|
|
1755
|
-
child: []
|
|
1756
|
-
},
|
|
1757
|
-
{
|
|
1758
|
-
tag: "path",
|
|
1759
|
-
attr: {
|
|
1760
|
-
fill: "currentColor",
|
|
1761
|
-
d: "M15.6875 11.9141L12.5116 8.73823L2.07262 19.1773C1.9166 19.3333 1.9166 19.5862 2.07262 19.7422L4.68354 22.3532C4.83956 22.5092 5.0925 22.5092 5.24852 22.3532L15.6875 11.9141Z"
|
|
1762
|
-
},
|
|
1763
|
-
child: []
|
|
1764
|
-
},
|
|
1765
|
-
{
|
|
1766
|
-
tag: "path",
|
|
1767
|
-
attr: {
|
|
1768
|
-
fill: "currentColor",
|
|
1769
|
-
fillRule: "evenodd",
|
|
1770
|
-
clipRule: "evenodd",
|
|
1771
|
-
d: "M16.8929 4.92196L19.5038 7.53288L14.8688 12.1679L12.2578 9.55702L16.8929 4.92196ZM19.7863 7.2504C19.9423 7.40641 19.9423 7.65936 19.7863 7.81537L15.6875 11.9141L12.5116 8.73823L16.6104 4.63947C16.7664 4.48346 17.0194 4.48346 17.1754 4.63947L19.7863 7.2504Z"
|
|
1772
|
-
},
|
|
1773
|
-
child: []
|
|
1774
|
-
}
|
|
1775
|
-
]
|
|
1776
|
-
});
|
|
1777
1735
|
var customIcons = {
|
|
1778
1736
|
"rectangle-rounded": rectangleRoundedIcon,
|
|
1779
1737
|
card: cardIcon,
|
|
@@ -1797,8 +1755,7 @@ var customIcons = {
|
|
|
1797
1755
|
"clear-formatting": clearFormatting,
|
|
1798
1756
|
"yes-no": yesNoIcon,
|
|
1799
1757
|
"diamond-outline": diamondOutline,
|
|
1800
|
-
"diamond-fill": diamondFill
|
|
1801
|
-
"magic-wand": magicWand
|
|
1758
|
+
"diamond-fill": diamondFill
|
|
1802
1759
|
};
|
|
1803
1760
|
|
|
1804
1761
|
// src/components/AddListButton/AddListButton.styles.ts
|
|
@@ -2097,7 +2054,7 @@ var Link = React4.forwardRef(
|
|
|
2097
2054
|
] });
|
|
2098
2055
|
}
|
|
2099
2056
|
);
|
|
2100
|
-
var LinkWithRef = React4.forwardRef(({ linkManagerComponent: LinkManager, href, as, ...props }, ref) => /* @__PURE__ */ jsx11(LinkManager, { ...props, as, href, ref, passHref: true, legacyBehavior: true, children: /* @__PURE__ */ jsx11(Link, { ...props }) }));
|
|
2057
|
+
var LinkWithRef = React4.forwardRef(({ linkManagerComponent: LinkManager, href, as, onClick, ...props }, ref) => /* @__PURE__ */ jsx11(LinkManager, { ...props, as, href, ref, passHref: true, legacyBehavior: true, children: /* @__PURE__ */ jsx11(Link, { ...props, onClick }) }));
|
|
2101
2058
|
|
|
2102
2059
|
// src/components/Typography/styles/Paragraph.styles.ts
|
|
2103
2060
|
import { css as css13 } from "@emotion/react";
|
|
@@ -2354,7 +2311,7 @@ var PageHeaderSection = ({
|
|
|
2354
2311
|
if (linkText && linkProps && !linkManagerComponent) {
|
|
2355
2312
|
throw Error("You must provide a linkManagerComponent");
|
|
2356
2313
|
}
|
|
2357
|
-
return /* @__PURE__ */ jsxs6("div", { css: PageHeaderSectionContainer, children: [
|
|
2314
|
+
return /* @__PURE__ */ jsxs6("div", { css: PageHeaderSectionContainer, "data-testid": "page-header", children: [
|
|
2358
2315
|
/* @__PURE__ */ jsxs6("section", { css: PageHeaderSectionDetails, children: [
|
|
2359
2316
|
linkText && linkProps && linkManagerComponent ? /* @__PURE__ */ jsxs6("div", { css: PageHeaderSectionLinkContainer, children: [
|
|
2360
2317
|
/* @__PURE__ */ jsx14(Icon, { icon: CgChevronLeft, size: 18, css: PageHeaderSectionLinkIcon, iconColor: "currentColor" }),
|
|
@@ -2364,7 +2321,8 @@ var PageHeaderSection = ({
|
|
|
2364
2321
|
linkManagerComponent,
|
|
2365
2322
|
...linkProps,
|
|
2366
2323
|
css: PageHeaderSectionLink,
|
|
2367
|
-
text: linkText
|
|
2324
|
+
text: linkText,
|
|
2325
|
+
"data-testid": "page-header-link"
|
|
2368
2326
|
}
|
|
2369
2327
|
)
|
|
2370
2328
|
] }) : null,
|
|
@@ -10964,14 +10922,31 @@ var TooltipArrowStyles = css17`
|
|
|
10964
10922
|
|
|
10965
10923
|
// src/components/Tooltip/Tooltip.tsx
|
|
10966
10924
|
import { Fragment as Fragment4, jsx as jsx17, jsxs as jsxs8 } from "@emotion/react/jsx-runtime";
|
|
10967
|
-
function Tooltip({
|
|
10925
|
+
function Tooltip({
|
|
10926
|
+
children,
|
|
10927
|
+
title,
|
|
10928
|
+
placement = "bottom",
|
|
10929
|
+
visible,
|
|
10930
|
+
withoutPortal = false,
|
|
10931
|
+
...props
|
|
10932
|
+
}) {
|
|
10968
10933
|
const tooltip = useTooltipState({ placement });
|
|
10969
10934
|
return !title ? children : /* @__PURE__ */ jsxs8(Fragment4, { children: [
|
|
10970
10935
|
/* @__PURE__ */ jsx17(TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => React5.cloneElement(children, referenceProps) }),
|
|
10971
|
-
/* @__PURE__ */ jsxs8(
|
|
10972
|
-
|
|
10973
|
-
|
|
10974
|
-
|
|
10936
|
+
/* @__PURE__ */ jsxs8(
|
|
10937
|
+
ReakitTooltip,
|
|
10938
|
+
{
|
|
10939
|
+
...tooltip,
|
|
10940
|
+
...props,
|
|
10941
|
+
unstable_portal: !withoutPortal,
|
|
10942
|
+
css: TooltipContainer,
|
|
10943
|
+
visible: visible != null ? visible : tooltip.visible,
|
|
10944
|
+
children: [
|
|
10945
|
+
/* @__PURE__ */ jsx17(TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
|
|
10946
|
+
title
|
|
10947
|
+
]
|
|
10948
|
+
}
|
|
10949
|
+
)
|
|
10975
10950
|
] });
|
|
10976
10951
|
}
|
|
10977
10952
|
|
|
@@ -11386,8 +11361,6 @@ var Button = React6.forwardRef(
|
|
|
11386
11361
|
const buttonTheme = {
|
|
11387
11362
|
primary: buttonPrimary,
|
|
11388
11363
|
primaryInvert: buttonPrimaryInvert,
|
|
11389
|
-
"accent-alt-dark": buttonAccentAltDark,
|
|
11390
|
-
"accent-alt-dark-outline": buttonAccentAltDarkOutline,
|
|
11391
11364
|
destructive: buttonDestructive,
|
|
11392
11365
|
secondary: buttonSecondary,
|
|
11393
11366
|
secondaryInvert: buttonSecondaryInvert,
|
|
@@ -11621,6 +11594,7 @@ var Menu = ({
|
|
|
11621
11594
|
typeof menuItemsContainerCssClasses === "object" ? menuItemsContainerCssClasses : void 0
|
|
11622
11595
|
],
|
|
11623
11596
|
className: typeof menuItemsContainerCssClasses === "string" ? menuItemsContainerCssClasses : "",
|
|
11597
|
+
"data-testid": "more-menu",
|
|
11624
11598
|
children: disableAutoSeparatorManagement ? children : filterMenuSeparators(children)
|
|
11625
11599
|
}
|
|
11626
11600
|
) })
|
|
@@ -11673,14 +11647,48 @@ function renderWithIcon(children, icon) {
|
|
|
11673
11647
|
|
|
11674
11648
|
// src/components/ButtonWithMenu/ButtonWithMenu.styles.ts
|
|
11675
11649
|
import { css as css26 } from "@emotion/react";
|
|
11650
|
+
var buttonSizeBase = css26`
|
|
11651
|
+
--icon-padding: var(--spacing-xs);
|
|
11652
|
+
--svg-size: 1rem;
|
|
11653
|
+
--line-offset: -5px;
|
|
11654
|
+
font-size: var(--fs-sm);
|
|
11655
|
+
|
|
11656
|
+
> button {
|
|
11657
|
+
padding: var(--spacing-sm) var(--spacing-base);
|
|
11658
|
+
}
|
|
11659
|
+
`;
|
|
11660
|
+
var buttonSizeSmall = css26`
|
|
11661
|
+
--icon-padding: var(--spacing-xs);
|
|
11662
|
+
--svg-size: 0.85rem;
|
|
11663
|
+
--line-offset: -1px;
|
|
11664
|
+
font-size: var(--fs-sm);
|
|
11665
|
+
|
|
11666
|
+
> button {
|
|
11667
|
+
padding: var(--spacing-xs) var(--spacing-base);
|
|
11668
|
+
}
|
|
11669
|
+
`;
|
|
11670
|
+
var buttonSizeLarge = css26`
|
|
11671
|
+
--icon-padding: var(--spacing-sm);
|
|
11672
|
+
--svg-size: 1.5rem;
|
|
11673
|
+
--line-offset: -5px;
|
|
11674
|
+
font-size: var(--fs-sm);
|
|
11675
|
+
line-height: 1.25;
|
|
11676
|
+
|
|
11677
|
+
> button {
|
|
11678
|
+
padding: var(--spacing-sm) var(--spacing-base);
|
|
11679
|
+
}
|
|
11680
|
+
`;
|
|
11676
11681
|
var ButtonWithMenuContainer = css26`
|
|
11677
11682
|
align-items: center;
|
|
11678
11683
|
border: 1px solid transparent;
|
|
11679
11684
|
border-radius: var(--rounded-sm);
|
|
11680
11685
|
color: var(--white);
|
|
11681
11686
|
display: inline-flex;
|
|
11682
|
-
font-size: var(--fs-sm);
|
|
11683
11687
|
position: relative;
|
|
11688
|
+
min-height: 24px;
|
|
11689
|
+
transition: color var(--duration-fast) var(--timing-ease-out),
|
|
11690
|
+
border-color var(--duration-fast) var(--timing-ease-out),
|
|
11691
|
+
background-color var(--duration-fast) var(--timing-ease-out);
|
|
11684
11692
|
|
|
11685
11693
|
&:active {
|
|
11686
11694
|
opacity: var(--opacity-75);
|
|
@@ -11693,15 +11701,19 @@ var ButtonWithMenuContainer = css26`
|
|
|
11693
11701
|
&:focus {
|
|
11694
11702
|
border-color: var(--gray-700);
|
|
11695
11703
|
}
|
|
11704
|
+
|
|
11705
|
+
svg {
|
|
11706
|
+
width: var(--svg-size);
|
|
11707
|
+
height: var(--svg-size);
|
|
11708
|
+
}
|
|
11696
11709
|
`;
|
|
11697
11710
|
var ButtonWithMenuBtn = css26`
|
|
11711
|
+
align-items: center;
|
|
11698
11712
|
border: 1px solid transparent;
|
|
11699
11713
|
background: transparent;
|
|
11700
|
-
|
|
11701
|
-
|
|
11702
|
-
|
|
11703
|
-
letter-spacing: 0.025rem;
|
|
11704
|
-
line-height: 1.25;
|
|
11714
|
+
line-height: 1;
|
|
11715
|
+
display: inline-flex;
|
|
11716
|
+
gap: var(--spacing-xs);
|
|
11705
11717
|
|
|
11706
11718
|
&:focus {
|
|
11707
11719
|
outline: none;
|
|
@@ -11718,8 +11730,17 @@ var ButtonWithMenuBtn = css26`
|
|
|
11718
11730
|
}
|
|
11719
11731
|
`;
|
|
11720
11732
|
var ButtonWithMenuIcon = css26`
|
|
11721
|
-
padding: var(--
|
|
11722
|
-
|
|
11733
|
+
padding: var(--icon-padding);
|
|
11734
|
+
position: relative;
|
|
11735
|
+
|
|
11736
|
+
&:before {
|
|
11737
|
+
background: currentColor;
|
|
11738
|
+
content: '';
|
|
11739
|
+
display: block;
|
|
11740
|
+
inset: var(--line-offset) auto var(--line-offset) -1px;
|
|
11741
|
+
width: 1px;
|
|
11742
|
+
position: absolute;
|
|
11743
|
+
}
|
|
11723
11744
|
`;
|
|
11724
11745
|
var buttonPrimary2 = css26`
|
|
11725
11746
|
background: var(--brand-secondary-1);
|
|
@@ -11759,6 +11780,24 @@ var buttonGhostDisabled = css26`
|
|
|
11759
11780
|
border-color: var(--gray-400);
|
|
11760
11781
|
color: var(--gray-400);
|
|
11761
11782
|
`;
|
|
11783
|
+
var buttonSecondaryOutline = css26`
|
|
11784
|
+
background: var(--white);
|
|
11785
|
+
color: var(--primary-action-default);
|
|
11786
|
+
border-color: var(--primary-action-default);
|
|
11787
|
+
|
|
11788
|
+
&:hover {
|
|
11789
|
+
color: var(--primary-action-hover);
|
|
11790
|
+
border-color: var(--primary-action-hover);
|
|
11791
|
+
}
|
|
11792
|
+
`;
|
|
11793
|
+
var buttonSecondaryOutlineDisabled = css26`
|
|
11794
|
+
background: var(--white);
|
|
11795
|
+
color: var(--gray-400);
|
|
11796
|
+
border-color: var(--gray-400);
|
|
11797
|
+
`;
|
|
11798
|
+
var buttonWithMenuIconOffset = css26`
|
|
11799
|
+
margin-left: -10px;
|
|
11800
|
+
`;
|
|
11762
11801
|
|
|
11763
11802
|
// src/components/ButtonWithMenu/ButtonWithMenu.tsx
|
|
11764
11803
|
import { jsx as jsx27, jsxs as jsxs17 } from "@emotion/react/jsx-runtime";
|
|
@@ -11766,30 +11805,43 @@ var ButtonWithMenu = ({
|
|
|
11766
11805
|
onButtonClick,
|
|
11767
11806
|
buttonType = "secondary",
|
|
11768
11807
|
buttonText,
|
|
11808
|
+
icon,
|
|
11769
11809
|
disabled,
|
|
11770
11810
|
children,
|
|
11771
11811
|
placement,
|
|
11812
|
+
size = "lg",
|
|
11772
11813
|
...buttonProps
|
|
11773
11814
|
}) => {
|
|
11774
11815
|
const buttonTheme = {
|
|
11775
11816
|
primary: buttonPrimary2,
|
|
11776
11817
|
secondary: buttonSecondary2,
|
|
11777
11818
|
ghost: buttonGhost2,
|
|
11778
|
-
unimportant: buttonUnimportant2
|
|
11819
|
+
unimportant: buttonUnimportant2,
|
|
11820
|
+
secondaryOutline: buttonSecondaryOutline
|
|
11779
11821
|
};
|
|
11780
11822
|
const buttonDisabledTheme = {
|
|
11781
11823
|
primary: buttonPrimaryDisabled,
|
|
11782
11824
|
secondary: buttonSecondaryDisabled,
|
|
11783
11825
|
ghost: buttonGhostDisabled,
|
|
11784
|
-
unimportant: buttonUnimportantDisabled
|
|
11826
|
+
unimportant: buttonUnimportantDisabled,
|
|
11827
|
+
secondaryOutline: buttonSecondaryOutlineDisabled
|
|
11828
|
+
};
|
|
11829
|
+
const sizes2 = {
|
|
11830
|
+
base: buttonSizeBase,
|
|
11831
|
+
sm: buttonSizeSmall,
|
|
11832
|
+
lg: buttonSizeLarge
|
|
11785
11833
|
};
|
|
11786
11834
|
return /* @__PURE__ */ jsxs17(
|
|
11787
11835
|
"div",
|
|
11788
11836
|
{
|
|
11789
|
-
css: [
|
|
11837
|
+
css: [
|
|
11838
|
+
sizes2[size],
|
|
11839
|
+
ButtonWithMenuContainer,
|
|
11840
|
+
disabled ? buttonDisabledTheme[buttonType] : buttonTheme[buttonType]
|
|
11841
|
+
],
|
|
11790
11842
|
"data-testid": "multioptions-button",
|
|
11791
11843
|
children: [
|
|
11792
|
-
/* @__PURE__ */
|
|
11844
|
+
/* @__PURE__ */ jsxs17(
|
|
11793
11845
|
"button",
|
|
11794
11846
|
{
|
|
11795
11847
|
type: "button",
|
|
@@ -11798,7 +11850,10 @@ var ButtonWithMenu = ({
|
|
|
11798
11850
|
onClick: onButtonClick,
|
|
11799
11851
|
"data-testid": "multioptions-button-main",
|
|
11800
11852
|
...buttonProps,
|
|
11801
|
-
children:
|
|
11853
|
+
children: [
|
|
11854
|
+
icon ? /* @__PURE__ */ jsx27(Icon, { icon, iconColor: "currentColor", css: buttonWithMenuIconOffset }) : null,
|
|
11855
|
+
buttonText
|
|
11856
|
+
]
|
|
11802
11857
|
}
|
|
11803
11858
|
),
|
|
11804
11859
|
/* @__PURE__ */ jsx27(
|
|
@@ -11806,7 +11861,7 @@ var ButtonWithMenu = ({
|
|
|
11806
11861
|
{
|
|
11807
11862
|
menuLabel: "buttonMenu",
|
|
11808
11863
|
placement,
|
|
11809
|
-
menuTrigger: /* @__PURE__ */ jsx27("div", { css: ButtonWithMenuIcon, "data-testid": "multioptions-button-call-menu", children: /* @__PURE__ */ jsx27(Icon, { icon: CgChevronDown,
|
|
11864
|
+
menuTrigger: /* @__PURE__ */ jsx27("div", { css: ButtonWithMenuIcon, "data-testid": "multioptions-button-call-menu", children: /* @__PURE__ */ jsx27(Icon, { icon: CgChevronDown, iconColor: "currentColor" }) }),
|
|
11810
11865
|
children
|
|
11811
11866
|
}
|
|
11812
11867
|
)
|
|
@@ -13456,51 +13511,41 @@ import { forwardRef as forwardRef4 } from "react";
|
|
|
13456
13511
|
// src/components/IconButton/IconButton.styles.ts
|
|
13457
13512
|
import { css as css44 } from "@emotion/react";
|
|
13458
13513
|
var iconButton = css44`
|
|
13459
|
-
|
|
13460
|
-
|
|
13461
|
-
|
|
13514
|
+
padding: 0;
|
|
13515
|
+
max-width: unset;
|
|
13516
|
+
justify-content: center;
|
|
13517
|
+
width: var(--button-size);
|
|
13518
|
+
height: var(--button-size);
|
|
13519
|
+
`;
|
|
13520
|
+
var sizes = {
|
|
13521
|
+
xs: css44`
|
|
13522
|
+
--button-size: 2rem;
|
|
13523
|
+
`,
|
|
13524
|
+
sm: css44`
|
|
13525
|
+
--button-size: 2.25rem;
|
|
13526
|
+
`,
|
|
13527
|
+
md: css44`
|
|
13528
|
+
--button-size: 2.5rem;
|
|
13529
|
+
`
|
|
13530
|
+
};
|
|
13531
|
+
var variants = {
|
|
13532
|
+
square: null,
|
|
13533
|
+
rounded: css44`
|
|
13534
|
+
border-radius: 50%;
|
|
13535
|
+
`
|
|
13536
|
+
};
|
|
13462
13537
|
|
|
13463
13538
|
// src/components/IconButton/IconButton.tsx
|
|
13464
13539
|
import { jsx as jsx47 } from "@emotion/react/jsx-runtime";
|
|
13465
|
-
var IconButton = forwardRef4(
|
|
13466
|
-
|
|
13467
|
-
});
|
|
13540
|
+
var IconButton = forwardRef4(
|
|
13541
|
+
({ children, size = "md", variant = "square", ...props }, ref) => {
|
|
13542
|
+
return /* @__PURE__ */ jsx47(Button, { ref, css: [iconButton, variants[variant], sizes[size]], ...props, children });
|
|
13543
|
+
}
|
|
13544
|
+
);
|
|
13468
13545
|
IconButton.displayName = "IconButton";
|
|
13469
13546
|
|
|
13470
|
-
// src/components/Image/
|
|
13471
|
-
import {
|
|
13472
|
-
var ImageBroken = ({ width, height, ...props }) => {
|
|
13473
|
-
return /* @__PURE__ */ jsxs29(
|
|
13474
|
-
"svg",
|
|
13475
|
-
{
|
|
13476
|
-
role: "img",
|
|
13477
|
-
width: width != null ? width : "214",
|
|
13478
|
-
height: height != null ? height : "214",
|
|
13479
|
-
viewBox: "0 0 214 214",
|
|
13480
|
-
fill: "none",
|
|
13481
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13482
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
13483
|
-
"data-testid": "broken-image",
|
|
13484
|
-
...props,
|
|
13485
|
-
children: [
|
|
13486
|
-
/* @__PURE__ */ jsx48("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
13487
|
-
/* @__PURE__ */ jsx48("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
13488
|
-
/* @__PURE__ */ jsxs29("defs", { children: [
|
|
13489
|
-
/* @__PURE__ */ jsx48("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx48("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
13490
|
-
/* @__PURE__ */ jsx48(
|
|
13491
|
-
"image",
|
|
13492
|
-
{
|
|
13493
|
-
id: "image0_761_4353",
|
|
13494
|
-
width: "400",
|
|
13495
|
-
height: "400",
|
|
13496
|
-
xlinkHref: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAABX2lDQ1BJQ0MgUHJvZmlsZQAAKJFtkMFLAlEQxj/NEFIyQaJDhz1EEFiYdupmRhp5WCyxhA7rc3ODdXvsrkSn+ge6RATRPTpGBF46CP0DQVDQqVu3LoGXkm2eW61W8xjmx8fMvOED/GGFcz0AoG7YZiG7IK1vlKXgC/wYQ4ReVGEWT8tynlrwXfuj/QCfqPfTYlertBTZv3o9W8mdhmcblxN/+/tiqKpajOoHZZJx0wZ8CWJ51+aCD4hjJh1FfCy45vKF4IrLN92etUKG+I54hGlKlfiZOF7p0Ws9XNcb7OsGcX1YNYqrVEcpx5FHFhKK0GHDhEKcwyJ59P/MXHcmgx1w7FH/NmrQaFJCmhROW1TiZRhgmEGcOIkEZUp4/dtDT7PIh/lD+op72mYMuNaAYeZpk0dANATclrliKj/O+toBayuVdDnUBAZPHOetBASngM6j47w3HadzDgw8Aa32JyLnYb5bLiabAAAAOGVYSWZNTQAqAAAACAABh2kABAAAAAEAAAAaAAAAAAACoAIABAAAAAEAAAGQoAMABAAAAAEAAAGQAAAAADj5TfYAABuPSURBVHgB7Z0Ld9RG1kX94GmMAYcECJAwyZq1vv//czKLDEMghkB4GIPf9ne6FRq5W60qt9Vq3aPNypoR3erSvftUTuqWSqXl/YPDJf5AAAIQiEBgJUKQxAgBCEBgQADDoh9AAA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DEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBuB/we75KcVO2CRagAAAABJRU5ErkJggg=="
|
|
13497
|
-
}
|
|
13498
|
-
)
|
|
13499
|
-
] })
|
|
13500
|
-
]
|
|
13501
|
-
}
|
|
13502
|
-
);
|
|
13503
|
-
};
|
|
13547
|
+
// src/components/Image/Image.tsx
|
|
13548
|
+
import { useCallback as useCallback2, useEffect as useEffect7, useState as useState8 } from "react";
|
|
13504
13549
|
|
|
13505
13550
|
// src/components/Input/styles/CaptionText.styles.ts
|
|
13506
13551
|
import { css as css45 } from "@emotion/react";
|
|
@@ -13513,9 +13558,9 @@ var CaptionText = (dynamicSize) => css45`
|
|
|
13513
13558
|
`;
|
|
13514
13559
|
|
|
13515
13560
|
// src/components/Input/Caption.tsx
|
|
13516
|
-
import { jsx as
|
|
13561
|
+
import { jsx as jsx48 } from "@emotion/react/jsx-runtime";
|
|
13517
13562
|
var Caption = ({ children, testId, dynamicSize = false, ...props }) => {
|
|
13518
|
-
return /* @__PURE__ */
|
|
13563
|
+
return /* @__PURE__ */ jsx48("small", { css: CaptionText(dynamicSize), "data-testid": testId, ...props, children });
|
|
13519
13564
|
};
|
|
13520
13565
|
|
|
13521
13566
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
@@ -13594,21 +13639,21 @@ var InfoDialogMessage = css46`
|
|
|
13594
13639
|
`;
|
|
13595
13640
|
|
|
13596
13641
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
13597
|
-
import { jsx as
|
|
13642
|
+
import { jsx as jsx49, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
|
|
13598
13643
|
var InfoDialog = ({ message }) => {
|
|
13599
|
-
return /* @__PURE__ */
|
|
13600
|
-
/* @__PURE__ */
|
|
13601
|
-
/* @__PURE__ */
|
|
13644
|
+
return /* @__PURE__ */ jsxs29("div", { "data-testid": "info-dialog", css: InfoDialogContainer, children: [
|
|
13645
|
+
/* @__PURE__ */ jsx49(Icon, { icon: "info", iconColor: "action", size: "0.9rem" }),
|
|
13646
|
+
/* @__PURE__ */ jsx49("div", { role: "paragraph", css: InfoDialogMessage, className: "info-message", children: message })
|
|
13602
13647
|
] });
|
|
13603
13648
|
};
|
|
13604
13649
|
var CheckboxWithInfo = forwardRef5(
|
|
13605
13650
|
({ label, name, info, ...props }, ref) => {
|
|
13606
|
-
return /* @__PURE__ */
|
|
13607
|
-
/* @__PURE__ */
|
|
13608
|
-
/* @__PURE__ */
|
|
13609
|
-
/* @__PURE__ */
|
|
13651
|
+
return /* @__PURE__ */ jsxs29("div", { css: CheckboxWithInfoContainer, children: [
|
|
13652
|
+
/* @__PURE__ */ jsxs29("label", { css: CheckboxWithInfoLabel, children: [
|
|
13653
|
+
/* @__PURE__ */ jsx49("input", { type: "checkbox", name, ref, css: CheckboxWithInfoInput, ...props }),
|
|
13654
|
+
/* @__PURE__ */ jsx49("span", { children: label })
|
|
13610
13655
|
] }),
|
|
13611
|
-
info ? /* @__PURE__ */
|
|
13656
|
+
info ? /* @__PURE__ */ jsx49(InfoDialog, { message: info }) : null
|
|
13612
13657
|
] });
|
|
13613
13658
|
}
|
|
13614
13659
|
);
|
|
@@ -13626,10 +13671,10 @@ var ErrorText = css47`
|
|
|
13626
13671
|
`;
|
|
13627
13672
|
|
|
13628
13673
|
// src/components/Input/ErrorMessage.tsx
|
|
13629
|
-
import { jsx as
|
|
13674
|
+
import { jsx as jsx50, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
|
|
13630
13675
|
var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
13631
|
-
return message ? /* @__PURE__ */
|
|
13632
|
-
/* @__PURE__ */
|
|
13676
|
+
return message ? /* @__PURE__ */ jsxs30("span", { role: "alert", css: ErrorText, "data-testid": testId, ...otherProps, children: [
|
|
13677
|
+
/* @__PURE__ */ jsx50("span", { children: /* @__PURE__ */ jsx50(Icon, { icon: MdWarning, size: "1rem", iconColor: "currentColor" }) }),
|
|
13633
13678
|
message
|
|
13634
13679
|
] }) : null;
|
|
13635
13680
|
};
|
|
@@ -13678,12 +13723,12 @@ var fieldsetBody = css48`
|
|
|
13678
13723
|
`;
|
|
13679
13724
|
|
|
13680
13725
|
// src/components/Input/Fieldset.tsx
|
|
13681
|
-
import { jsx as
|
|
13726
|
+
import { jsx as jsx51, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
|
|
13682
13727
|
var Fieldset = React15.forwardRef(
|
|
13683
13728
|
({ legend, disabled, children, invert, ...props }, ref) => {
|
|
13684
|
-
return /* @__PURE__ */
|
|
13729
|
+
return /* @__PURE__ */ jsxs31("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled, ...props, children: [
|
|
13685
13730
|
legend,
|
|
13686
|
-
/* @__PURE__ */
|
|
13731
|
+
/* @__PURE__ */ jsx51("div", { css: fieldsetBody, children })
|
|
13687
13732
|
] });
|
|
13688
13733
|
}
|
|
13689
13734
|
);
|
|
@@ -13707,10 +13752,10 @@ var InfoIcon2 = css49`
|
|
|
13707
13752
|
`;
|
|
13708
13753
|
|
|
13709
13754
|
// src/components/Input/InfoMessage.tsx
|
|
13710
|
-
import { jsx as
|
|
13755
|
+
import { jsx as jsx52, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
|
|
13711
13756
|
var InfoMessage = ({ message, testId, ...props }) => {
|
|
13712
|
-
return message ? /* @__PURE__ */
|
|
13713
|
-
/* @__PURE__ */
|
|
13757
|
+
return message ? /* @__PURE__ */ jsxs32("span", { role: "status", css: InfoText, "data-testid": testId, ...props, children: [
|
|
13758
|
+
/* @__PURE__ */ jsx52("span", { children: /* @__PURE__ */ jsx52(Icon, { css: InfoIcon2, icon: MdInfoOutline, size: "1rem", iconColor: "currentColor" }) }),
|
|
13714
13759
|
message
|
|
13715
13760
|
] }) : null;
|
|
13716
13761
|
};
|
|
@@ -13719,9 +13764,9 @@ var InfoMessage = ({ message, testId, ...props }) => {
|
|
|
13719
13764
|
import * as React16 from "react";
|
|
13720
13765
|
|
|
13721
13766
|
// src/components/Input/Label.tsx
|
|
13722
|
-
import { jsx as
|
|
13767
|
+
import { jsx as jsx53 } from "@emotion/react/jsx-runtime";
|
|
13723
13768
|
var Label = ({ children, className, testId, ...props }) => {
|
|
13724
|
-
return /* @__PURE__ */
|
|
13769
|
+
return /* @__PURE__ */ jsx53(
|
|
13725
13770
|
"label",
|
|
13726
13771
|
{
|
|
13727
13772
|
css: [labelText, typeof className === "object" ? className : void 0],
|
|
@@ -13749,16 +13794,16 @@ var WarningIcon = css50`
|
|
|
13749
13794
|
`;
|
|
13750
13795
|
|
|
13751
13796
|
// src/components/Input/WarningMessage.tsx
|
|
13752
|
-
import { jsx as
|
|
13797
|
+
import { jsx as jsx54, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
|
|
13753
13798
|
var WarningMessage = ({ message, testId, ...props }) => {
|
|
13754
|
-
return message ? /* @__PURE__ */
|
|
13755
|
-
/* @__PURE__ */
|
|
13799
|
+
return message ? /* @__PURE__ */ jsxs33("span", { role: "status", css: WarningText, "data-testid": testId, ...props, children: [
|
|
13800
|
+
/* @__PURE__ */ jsx54("span", { children: /* @__PURE__ */ jsx54(Icon, { css: WarningIcon, icon: MdWarning2, size: "1rem", iconColor: "currentColor" }) }),
|
|
13756
13801
|
message
|
|
13757
13802
|
] }) : null;
|
|
13758
13803
|
};
|
|
13759
13804
|
|
|
13760
13805
|
// src/components/Input/Input.tsx
|
|
13761
|
-
import { jsx as
|
|
13806
|
+
import { jsx as jsx55, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
|
|
13762
13807
|
var Input = React16.forwardRef(
|
|
13763
13808
|
({
|
|
13764
13809
|
label,
|
|
@@ -13778,13 +13823,13 @@ var Input = React16.forwardRef(
|
|
|
13778
13823
|
classNameLabel,
|
|
13779
13824
|
...props
|
|
13780
13825
|
}, ref) => {
|
|
13781
|
-
return /* @__PURE__ */
|
|
13826
|
+
return /* @__PURE__ */ jsxs34(
|
|
13782
13827
|
"div",
|
|
13783
13828
|
{
|
|
13784
13829
|
css: [inputContainer, typeof classNameRoot === "object" ? classNameRoot : void 0],
|
|
13785
13830
|
"data-testid": containerTestId ? containerTestId : "container-input-field",
|
|
13786
13831
|
children: [
|
|
13787
|
-
showLabel ? /* @__PURE__ */
|
|
13832
|
+
showLabel ? /* @__PURE__ */ jsx55(
|
|
13788
13833
|
Label,
|
|
13789
13834
|
{
|
|
13790
13835
|
htmlFor: id,
|
|
@@ -13794,13 +13839,13 @@ var Input = React16.forwardRef(
|
|
|
13794
13839
|
children: label
|
|
13795
13840
|
}
|
|
13796
13841
|
) : null,
|
|
13797
|
-
/* @__PURE__ */
|
|
13842
|
+
/* @__PURE__ */ jsxs34(
|
|
13798
13843
|
"div",
|
|
13799
13844
|
{
|
|
13800
13845
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
13801
13846
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
13802
13847
|
children: [
|
|
13803
|
-
/* @__PURE__ */
|
|
13848
|
+
/* @__PURE__ */ jsx55(
|
|
13804
13849
|
"input",
|
|
13805
13850
|
{
|
|
13806
13851
|
id,
|
|
@@ -13816,13 +13861,13 @@ var Input = React16.forwardRef(
|
|
|
13816
13861
|
ref
|
|
13817
13862
|
}
|
|
13818
13863
|
),
|
|
13819
|
-
icon ? /* @__PURE__ */
|
|
13864
|
+
icon ? /* @__PURE__ */ jsx55("div", { css: inputIcon, children: icon }) : null
|
|
13820
13865
|
]
|
|
13821
13866
|
}
|
|
13822
13867
|
),
|
|
13823
|
-
caption ? /* @__PURE__ */
|
|
13824
|
-
errorMessage ? /* @__PURE__ */
|
|
13825
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
13868
|
+
caption ? /* @__PURE__ */ jsx55(Caption, { testId: captionTestId, children: caption }) : null,
|
|
13869
|
+
errorMessage ? /* @__PURE__ */ jsx55(ErrorMessage, { message: errorMessage, testId: errorTestId }) : null,
|
|
13870
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx55(WarningMessage, { message: warningMessage }) : null
|
|
13826
13871
|
]
|
|
13827
13872
|
}
|
|
13828
13873
|
);
|
|
@@ -13831,10 +13876,10 @@ var Input = React16.forwardRef(
|
|
|
13831
13876
|
|
|
13832
13877
|
// src/components/Input/InputComboBox.tsx
|
|
13833
13878
|
import Select from "react-select";
|
|
13834
|
-
import { jsx as
|
|
13879
|
+
import { jsx as jsx56 } from "@emotion/react/jsx-runtime";
|
|
13835
13880
|
function InputComboBox(props) {
|
|
13836
13881
|
var _a;
|
|
13837
|
-
return /* @__PURE__ */
|
|
13882
|
+
return /* @__PURE__ */ jsx56(
|
|
13838
13883
|
Select,
|
|
13839
13884
|
{
|
|
13840
13885
|
...props,
|
|
@@ -14034,7 +14079,7 @@ var inlineSelectMenuClosed = css51`
|
|
|
14034
14079
|
`;
|
|
14035
14080
|
|
|
14036
14081
|
// src/components/Input/InputInlineSelect.tsx
|
|
14037
|
-
import { jsx as
|
|
14082
|
+
import { jsx as jsx57, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
14038
14083
|
var InputInlineSelect = ({
|
|
14039
14084
|
classNameContainer,
|
|
14040
14085
|
options,
|
|
@@ -14048,7 +14093,7 @@ var InputInlineSelect = ({
|
|
|
14048
14093
|
const divRef = useRef4(null);
|
|
14049
14094
|
useOutsideClick(divRef, () => setMenuVisible(false));
|
|
14050
14095
|
const selected = options.find((option) => option.value === value);
|
|
14051
|
-
return /* @__PURE__ */
|
|
14096
|
+
return /* @__PURE__ */ jsxs35(
|
|
14052
14097
|
"div",
|
|
14053
14098
|
{
|
|
14054
14099
|
ref: divRef,
|
|
@@ -14058,7 +14103,7 @@ var InputInlineSelect = ({
|
|
|
14058
14103
|
`,
|
|
14059
14104
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
14060
14105
|
children: [
|
|
14061
|
-
/* @__PURE__ */
|
|
14106
|
+
/* @__PURE__ */ jsxs35(
|
|
14062
14107
|
"button",
|
|
14063
14108
|
{
|
|
14064
14109
|
type: "button",
|
|
@@ -14072,18 +14117,18 @@ var InputInlineSelect = ({
|
|
|
14072
14117
|
disabled,
|
|
14073
14118
|
...props,
|
|
14074
14119
|
children: [
|
|
14075
|
-
/* @__PURE__ */
|
|
14076
|
-
disabled ? null : /* @__PURE__ */
|
|
14120
|
+
/* @__PURE__ */ jsx57("span", { children: (_a = selected == null ? void 0 : selected.label) != null ? _a : value }),
|
|
14121
|
+
disabled ? null : /* @__PURE__ */ jsx57(Icon, { icon: CgChevronDown2, iconColor: "currentColor", size: 24 })
|
|
14077
14122
|
]
|
|
14078
14123
|
}
|
|
14079
14124
|
),
|
|
14080
|
-
/* @__PURE__ */
|
|
14125
|
+
/* @__PURE__ */ jsx57(
|
|
14081
14126
|
"div",
|
|
14082
14127
|
{
|
|
14083
14128
|
id: `and-or-${props.id}`,
|
|
14084
14129
|
css: [inlineSelectMenu, menuVisible ? void 0 : inlineSelectMenuClosed],
|
|
14085
14130
|
"aria-hidden": !menuVisible,
|
|
14086
|
-
children: options.map((opt) => /* @__PURE__ */
|
|
14131
|
+
children: options.map((opt) => /* @__PURE__ */ jsx57(
|
|
14087
14132
|
"button",
|
|
14088
14133
|
{
|
|
14089
14134
|
type: "button",
|
|
@@ -14106,7 +14151,7 @@ var InputInlineSelect = ({
|
|
|
14106
14151
|
// src/components/Input/InputKeywordSearch.tsx
|
|
14107
14152
|
import { CgClose as CgClose4 } from "@react-icons/all-files/cg/CgClose";
|
|
14108
14153
|
import { CgSearch } from "@react-icons/all-files/cg/CgSearch";
|
|
14109
|
-
import { jsx as
|
|
14154
|
+
import { jsx as jsx58 } from "@emotion/react/jsx-runtime";
|
|
14110
14155
|
var InputKeywordSearch = ({
|
|
14111
14156
|
onSearchTextChanged,
|
|
14112
14157
|
disabled = false,
|
|
@@ -14127,7 +14172,7 @@ var InputKeywordSearch = ({
|
|
|
14127
14172
|
e.preventDefault();
|
|
14128
14173
|
}
|
|
14129
14174
|
};
|
|
14130
|
-
return /* @__PURE__ */
|
|
14175
|
+
return /* @__PURE__ */ jsx58(
|
|
14131
14176
|
Input,
|
|
14132
14177
|
{
|
|
14133
14178
|
type: "text",
|
|
@@ -14135,7 +14180,7 @@ var InputKeywordSearch = ({
|
|
|
14135
14180
|
placeholder,
|
|
14136
14181
|
showLabel: false,
|
|
14137
14182
|
value,
|
|
14138
|
-
icon: value ? /* @__PURE__ */
|
|
14183
|
+
icon: value ? /* @__PURE__ */ jsx58("button", { css: inputSearchCloseBtn, onClick: onClear, type: "button", children: /* @__PURE__ */ jsx58(Icon, { icon: CgClose4, iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ jsx58(Icon, { icon: CgSearch, iconColor: "gray", size: "1rem" }),
|
|
14139
14184
|
onChange: handleSearchTextChanged,
|
|
14140
14185
|
onKeyPress: preventSubmitOnField,
|
|
14141
14186
|
disabled,
|
|
@@ -14153,7 +14198,7 @@ var InputKeywordSearch = ({
|
|
|
14153
14198
|
};
|
|
14154
14199
|
|
|
14155
14200
|
// src/components/Input/InputSelect.tsx
|
|
14156
|
-
import { Fragment as Fragment8, jsx as
|
|
14201
|
+
import { Fragment as Fragment8, jsx as jsx59, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
14157
14202
|
var InputSelect = ({
|
|
14158
14203
|
label,
|
|
14159
14204
|
defaultOption,
|
|
@@ -14169,13 +14214,13 @@ var InputSelect = ({
|
|
|
14169
14214
|
classNameLabel,
|
|
14170
14215
|
...props
|
|
14171
14216
|
}) => {
|
|
14172
|
-
return /* @__PURE__ */
|
|
14217
|
+
return /* @__PURE__ */ jsxs36(
|
|
14173
14218
|
"div",
|
|
14174
14219
|
{
|
|
14175
14220
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
14176
14221
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
14177
14222
|
children: [
|
|
14178
|
-
showLabel ? /* @__PURE__ */
|
|
14223
|
+
showLabel ? /* @__PURE__ */ jsx59(Fragment8, { children: /* @__PURE__ */ jsxs36(
|
|
14179
14224
|
Label,
|
|
14180
14225
|
{
|
|
14181
14226
|
htmlFor: props.id,
|
|
@@ -14187,7 +14232,7 @@ var InputSelect = ({
|
|
|
14187
14232
|
]
|
|
14188
14233
|
}
|
|
14189
14234
|
) }) : null,
|
|
14190
|
-
/* @__PURE__ */
|
|
14235
|
+
/* @__PURE__ */ jsxs36(
|
|
14191
14236
|
"select",
|
|
14192
14237
|
{
|
|
14193
14238
|
title: label,
|
|
@@ -14202,14 +14247,14 @@ var InputSelect = ({
|
|
|
14202
14247
|
className: typeof classNameControl === "string" ? classNameControl : "",
|
|
14203
14248
|
...props,
|
|
14204
14249
|
children: [
|
|
14205
|
-
defaultOption ? /* @__PURE__ */
|
|
14206
|
-
options.map((opt, index) => /* @__PURE__ */
|
|
14250
|
+
defaultOption ? /* @__PURE__ */ jsx59("option", { value: "", children: defaultOption }) : null,
|
|
14251
|
+
options.map((opt, index) => /* @__PURE__ */ jsx59("option", { value: opt.label, ...opt }, index))
|
|
14207
14252
|
]
|
|
14208
14253
|
}
|
|
14209
14254
|
),
|
|
14210
|
-
caption ? /* @__PURE__ */
|
|
14211
|
-
errorMessage ? /* @__PURE__ */
|
|
14212
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14255
|
+
caption ? /* @__PURE__ */ jsx59(Caption, { children: caption }) : null,
|
|
14256
|
+
errorMessage ? /* @__PURE__ */ jsx59(ErrorMessage, { message: errorMessage }) : null,
|
|
14257
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx59(WarningMessage, { message: warningMessage }) : null
|
|
14213
14258
|
]
|
|
14214
14259
|
}
|
|
14215
14260
|
);
|
|
@@ -14217,7 +14262,7 @@ var InputSelect = ({
|
|
|
14217
14262
|
|
|
14218
14263
|
// src/components/Input/InputToggle.tsx
|
|
14219
14264
|
import * as React17 from "react";
|
|
14220
|
-
import { jsx as
|
|
14265
|
+
import { jsx as jsx60, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
|
|
14221
14266
|
var InputToggle = React17.forwardRef(
|
|
14222
14267
|
({
|
|
14223
14268
|
label,
|
|
@@ -14232,13 +14277,13 @@ var InputToggle = React17.forwardRef(
|
|
|
14232
14277
|
fontWeight = "medium",
|
|
14233
14278
|
...props
|
|
14234
14279
|
}, ref) => {
|
|
14235
|
-
return /* @__PURE__ */
|
|
14280
|
+
return /* @__PURE__ */ jsxs37(
|
|
14236
14281
|
Label,
|
|
14237
14282
|
{
|
|
14238
14283
|
css: [inputToggleLabel, disabled ? inputDisabled : void 0],
|
|
14239
14284
|
"data-testid": testId ? testId : "input-toggle",
|
|
14240
14285
|
children: [
|
|
14241
|
-
/* @__PURE__ */
|
|
14286
|
+
/* @__PURE__ */ jsx60(
|
|
14242
14287
|
"input",
|
|
14243
14288
|
{
|
|
14244
14289
|
ref,
|
|
@@ -14250,11 +14295,11 @@ var InputToggle = React17.forwardRef(
|
|
|
14250
14295
|
...props
|
|
14251
14296
|
}
|
|
14252
14297
|
),
|
|
14253
|
-
/* @__PURE__ */
|
|
14254
|
-
caption || errorMessage ? /* @__PURE__ */
|
|
14255
|
-
caption ? /* @__PURE__ */
|
|
14256
|
-
errorMessage ? /* @__PURE__ */
|
|
14257
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14298
|
+
/* @__PURE__ */ jsx60("span", { css: inlineLabel(fontWeight), children: label }),
|
|
14299
|
+
caption || errorMessage ? /* @__PURE__ */ jsxs37("span", { css: inputToggleMessageContainer, children: [
|
|
14300
|
+
caption ? /* @__PURE__ */ jsx60(Caption, { children: caption }) : null,
|
|
14301
|
+
errorMessage ? /* @__PURE__ */ jsx60(ErrorMessage, { message: errorMessage }) : null,
|
|
14302
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx60(WarningMessage, { message: warningMessage }) : null
|
|
14258
14303
|
] }) : null
|
|
14259
14304
|
]
|
|
14260
14305
|
}
|
|
@@ -14263,9 +14308,9 @@ var InputToggle = React17.forwardRef(
|
|
|
14263
14308
|
);
|
|
14264
14309
|
|
|
14265
14310
|
// src/components/Input/Legend.tsx
|
|
14266
|
-
import { jsx as
|
|
14311
|
+
import { jsx as jsx61 } from "@emotion/react/jsx-runtime";
|
|
14267
14312
|
var Legend = ({ children }) => {
|
|
14268
|
-
return /* @__PURE__ */
|
|
14313
|
+
return /* @__PURE__ */ jsx61("legend", { css: fieldsetLegend, children });
|
|
14269
14314
|
};
|
|
14270
14315
|
|
|
14271
14316
|
// src/components/Input/SuccessMessage.tsx
|
|
@@ -14287,23 +14332,23 @@ var SuccessIcon2 = css53`
|
|
|
14287
14332
|
`;
|
|
14288
14333
|
|
|
14289
14334
|
// src/components/Input/SuccessMessage.tsx
|
|
14290
|
-
import { jsx as
|
|
14335
|
+
import { jsx as jsx62, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
|
|
14291
14336
|
var SuccessMessage = ({ message, testId, ...props }) => {
|
|
14292
|
-
return message ? /* @__PURE__ */
|
|
14293
|
-
/* @__PURE__ */
|
|
14337
|
+
return message ? /* @__PURE__ */ jsxs38("span", { role: "status", css: SuccessText, "data-testid": testId, ...props, children: [
|
|
14338
|
+
/* @__PURE__ */ jsx62("span", { children: /* @__PURE__ */ jsx62(Icon, { css: SuccessIcon2, icon: CgCheckO, size: "1rem", iconColor: "currentColor" }) }),
|
|
14294
14339
|
message
|
|
14295
14340
|
] }) : null;
|
|
14296
14341
|
};
|
|
14297
14342
|
|
|
14298
14343
|
// src/components/Input/Textarea.tsx
|
|
14299
14344
|
import { forwardRef as forwardRef9 } from "react";
|
|
14300
|
-
import { Fragment as Fragment9, jsx as
|
|
14345
|
+
import { Fragment as Fragment9, jsx as jsx63, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
14301
14346
|
var Textarea = forwardRef9(
|
|
14302
14347
|
({ label, icon, id, caption, showLabel = true, errorMessage, warningMessage, ...props }, ref) => {
|
|
14303
|
-
return /* @__PURE__ */
|
|
14304
|
-
showLabel ? /* @__PURE__ */
|
|
14305
|
-
/* @__PURE__ */
|
|
14306
|
-
/* @__PURE__ */
|
|
14348
|
+
return /* @__PURE__ */ jsxs39(Fragment9, { children: [
|
|
14349
|
+
showLabel ? /* @__PURE__ */ jsx63("label", { htmlFor: id, css: [labelText], children: label }) : null,
|
|
14350
|
+
/* @__PURE__ */ jsxs39("div", { css: [inputContainer], children: [
|
|
14351
|
+
/* @__PURE__ */ jsx63(
|
|
14307
14352
|
"textarea",
|
|
14308
14353
|
{
|
|
14309
14354
|
ref,
|
|
@@ -14318,69 +14363,242 @@ var Textarea = forwardRef9(
|
|
|
14318
14363
|
...props
|
|
14319
14364
|
}
|
|
14320
14365
|
),
|
|
14321
|
-
icon ? /* @__PURE__ */
|
|
14366
|
+
icon ? /* @__PURE__ */ jsx63("div", { css: inputIcon, children: icon }) : null
|
|
14322
14367
|
] }),
|
|
14323
|
-
caption ? /* @__PURE__ */
|
|
14324
|
-
errorMessage ? /* @__PURE__ */
|
|
14325
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14368
|
+
caption ? /* @__PURE__ */ jsx63(Caption, { children: caption }) : null,
|
|
14369
|
+
errorMessage ? /* @__PURE__ */ jsx63(ErrorMessage, { message: errorMessage }) : null,
|
|
14370
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx63(WarningMessage, { message: warningMessage }) : null
|
|
14326
14371
|
] });
|
|
14327
14372
|
}
|
|
14328
14373
|
);
|
|
14329
14374
|
|
|
14330
|
-
// src/components/
|
|
14331
|
-
import { css as css55 } from "@emotion/react";
|
|
14332
|
-
import { CgAdd as CgAdd2 } from "@react-icons/all-files/cg/CgAdd";
|
|
14333
|
-
import { CgChevronRight as CgChevronRight2 } from "@react-icons/all-files/cg/CgChevronRight";
|
|
14334
|
-
|
|
14335
|
-
// src/components/Tiles/styles/IntegrationTile.styles.ts
|
|
14375
|
+
// src/components/Image/Image.styles.ts
|
|
14336
14376
|
import { css as css54 } from "@emotion/react";
|
|
14337
|
-
var
|
|
14338
|
-
align-items: center;
|
|
14339
|
-
box-sizing: border-box;
|
|
14340
|
-
border-radius: var(--rounded-base);
|
|
14341
|
-
border: 1px solid var(--gray-300);
|
|
14342
|
-
background: var(--white);
|
|
14343
|
-
display: inline-flex;
|
|
14344
|
-
flex-flow: column wrap;
|
|
14345
|
-
padding: var(--spacing-base);
|
|
14377
|
+
var imageWrapper = css54`
|
|
14346
14378
|
position: relative;
|
|
14347
|
-
|
|
14348
|
-
|
|
14349
|
-
|
|
14350
|
-
|
|
14351
|
-
|
|
14352
|
-
transition: box-shadow var(--duration-fast) var(--timing-ease-out);
|
|
14353
|
-
|
|
14354
|
-
&:hover {
|
|
14355
|
-
box-shadow: var(--shadow-md);
|
|
14356
|
-
}
|
|
14357
|
-
|
|
14358
|
-
${supports("aspect-ratio: 1/1")} {
|
|
14359
|
-
aspect-ratio: 1/1;
|
|
14360
|
-
|
|
14361
|
-
${mq("sm")} {
|
|
14362
|
-
max-width: unset;
|
|
14363
|
-
max-height: unset;
|
|
14364
|
-
margin: unset;
|
|
14365
|
-
}
|
|
14366
|
-
}
|
|
14379
|
+
display: inline-flex;
|
|
14380
|
+
flex-direction: column;
|
|
14381
|
+
background: var(--gray-50);
|
|
14382
|
+
max-width: 100%;
|
|
14383
|
+
max-height: 100%;
|
|
14367
14384
|
`;
|
|
14368
|
-
var
|
|
14369
|
-
|
|
14385
|
+
var imageWrapperLoading = css54`
|
|
14386
|
+
animation: ${skeletonLoading} var(--duration-slow) linear infinite alternate;
|
|
14370
14387
|
`;
|
|
14371
|
-
var
|
|
14372
|
-
|
|
14388
|
+
var img = css54`
|
|
14389
|
+
object-fit: contain;
|
|
14390
|
+
max-width: 100%;
|
|
14391
|
+
max-height: 100%;
|
|
14392
|
+
height: auto;
|
|
14393
|
+
opacity: var(--opacity-0);
|
|
14394
|
+
margin: 0 auto;
|
|
14395
|
+
`;
|
|
14396
|
+
var imgLoading = css54`
|
|
14397
|
+
opacity: 0;
|
|
14398
|
+
`;
|
|
14399
|
+
var imgLoaded = css54`
|
|
14400
|
+
animation: ${fadeIn} var(--duration-slow) var(--timing-ease-out) forwards;
|
|
14401
|
+
opacity: 1;
|
|
14402
|
+
`;
|
|
14403
|
+
var brokenImage = css54`
|
|
14404
|
+
height: 160px;
|
|
14405
|
+
`;
|
|
14406
|
+
var variantFillImageWrapper = css54`
|
|
14407
|
+
display: flex;
|
|
14408
|
+
justify-content: center;
|
|
14409
|
+
height: 100%;
|
|
14410
|
+
width: 100%;
|
|
14411
|
+
`;
|
|
14412
|
+
var variantFillImageImg = css54`
|
|
14413
|
+
height: inherit;
|
|
14414
|
+
`;
|
|
14415
|
+
|
|
14416
|
+
// src/components/Image/ImageBroken.tsx
|
|
14417
|
+
import { jsx as jsx64, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
|
|
14418
|
+
var ImageBroken = ({ width, height, ...props }) => {
|
|
14419
|
+
return /* @__PURE__ */ jsxs40(
|
|
14420
|
+
"svg",
|
|
14421
|
+
{
|
|
14422
|
+
role: "img",
|
|
14423
|
+
width: width != null ? width : "214",
|
|
14424
|
+
height: height != null ? height : "214",
|
|
14425
|
+
viewBox: "0 0 214 214",
|
|
14426
|
+
fill: "none",
|
|
14427
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14428
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
14429
|
+
"data-testid": "broken-image",
|
|
14430
|
+
...props,
|
|
14431
|
+
children: [
|
|
14432
|
+
/* @__PURE__ */ jsx64("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
14433
|
+
/* @__PURE__ */ jsx64("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
14434
|
+
/* @__PURE__ */ jsxs40("defs", { children: [
|
|
14435
|
+
/* @__PURE__ */ jsx64("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx64("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
14436
|
+
/* @__PURE__ */ jsx64(
|
|
14437
|
+
"image",
|
|
14438
|
+
{
|
|
14439
|
+
id: "image0_761_4353",
|
|
14440
|
+
width: "400",
|
|
14441
|
+
height: "400",
|
|
14442
|
+
xlinkHref: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAABX2lDQ1BJQ0MgUHJvZmlsZQAAKJFtkMFLAlEQxj/NEFIyQaJDhz1EEFiYdupmRhp5WCyxhA7rc3ODdXvsrkSn+ge6RATRPTpGBF46CP0DQVDQqVu3LoGXkm2eW61W8xjmx8fMvOED/GGFcz0AoG7YZiG7IK1vlKXgC/wYQ4ReVGEWT8tynlrwXfuj/QCfqPfTYlertBTZv3o9W8mdhmcblxN/+/tiqKpajOoHZZJx0wZ8CW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DgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBuB/we75KcVO2CRagAAAABJRU5ErkJggg=="
|
|
14443
|
+
}
|
|
14444
|
+
)
|
|
14445
|
+
] })
|
|
14446
|
+
]
|
|
14447
|
+
}
|
|
14448
|
+
);
|
|
14449
|
+
};
|
|
14450
|
+
|
|
14451
|
+
// src/components/Image/Image.tsx
|
|
14452
|
+
import { Fragment as Fragment10, jsx as jsx65, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
14453
|
+
var MIN_LOADING_MS = 500;
|
|
14454
|
+
function Image({
|
|
14455
|
+
alt,
|
|
14456
|
+
src,
|
|
14457
|
+
className,
|
|
14458
|
+
imgClassName,
|
|
14459
|
+
variant = "inline",
|
|
14460
|
+
width,
|
|
14461
|
+
height,
|
|
14462
|
+
...imgAttribs
|
|
14463
|
+
}) {
|
|
14464
|
+
const [loading, setLoading] = useState8(true);
|
|
14465
|
+
const [loadErrorText, setLoadErrorText] = useState8("");
|
|
14466
|
+
const errorText = "The text you provided is not a valid URL";
|
|
14467
|
+
const updateImageSrc = useCallback2(() => {
|
|
14468
|
+
let message = "";
|
|
14469
|
+
try {
|
|
14470
|
+
if (src === "") {
|
|
14471
|
+
setLoading(false);
|
|
14472
|
+
} else {
|
|
14473
|
+
const url = String(src).startsWith("//") ? `${location.protocol}${src}` : String(src);
|
|
14474
|
+
if (!isValidUrl(url, { allowRelative: true, isSecure: true })) {
|
|
14475
|
+
throw Error(errorText);
|
|
14476
|
+
}
|
|
14477
|
+
}
|
|
14478
|
+
message = "";
|
|
14479
|
+
} catch (e) {
|
|
14480
|
+
message = errorText;
|
|
14481
|
+
setLoading(false);
|
|
14482
|
+
}
|
|
14483
|
+
setLoadErrorText(message);
|
|
14484
|
+
}, [setLoadErrorText, src]);
|
|
14485
|
+
useEffect7(() => {
|
|
14486
|
+
updateImageSrc();
|
|
14487
|
+
}, [src]);
|
|
14488
|
+
const handleLoadEvent = () => {
|
|
14489
|
+
setLoadErrorText("");
|
|
14490
|
+
if (src) {
|
|
14491
|
+
setLoading(true);
|
|
14492
|
+
}
|
|
14493
|
+
const timer = setTimeout(() => {
|
|
14494
|
+
setLoading(false);
|
|
14495
|
+
}, MIN_LOADING_MS);
|
|
14496
|
+
return () => clearTimeout(timer);
|
|
14497
|
+
};
|
|
14498
|
+
const handleErrorEvent = () => {
|
|
14499
|
+
setLoadErrorText("The value you provided is not a valid image URL");
|
|
14500
|
+
setLoading(false);
|
|
14501
|
+
};
|
|
14502
|
+
return /* @__PURE__ */ jsxs41(
|
|
14503
|
+
"span",
|
|
14504
|
+
{
|
|
14505
|
+
className,
|
|
14506
|
+
css: [
|
|
14507
|
+
imageWrapper,
|
|
14508
|
+
loading ? imageWrapperLoading : null,
|
|
14509
|
+
variant === "fill-container" ? variantFillImageWrapper : null
|
|
14510
|
+
],
|
|
14511
|
+
children: [
|
|
14512
|
+
src && !loadErrorText ? /* @__PURE__ */ jsx65(
|
|
14513
|
+
"img",
|
|
14514
|
+
{
|
|
14515
|
+
...imgAttribs,
|
|
14516
|
+
className: imgClassName,
|
|
14517
|
+
alt,
|
|
14518
|
+
src,
|
|
14519
|
+
css: [
|
|
14520
|
+
img,
|
|
14521
|
+
variant === "fill-container" ? variantFillImageImg : null,
|
|
14522
|
+
loading ? imgLoading : imgLoaded
|
|
14523
|
+
],
|
|
14524
|
+
loading: "lazy",
|
|
14525
|
+
width,
|
|
14526
|
+
height,
|
|
14527
|
+
onLoad: handleLoadEvent,
|
|
14528
|
+
onError: handleErrorEvent
|
|
14529
|
+
}
|
|
14530
|
+
) : null,
|
|
14531
|
+
src && loadErrorText ? /* @__PURE__ */ jsxs41(Fragment10, { children: [
|
|
14532
|
+
/* @__PURE__ */ jsx65(
|
|
14533
|
+
ImageBroken,
|
|
14534
|
+
{
|
|
14535
|
+
css: [brokenImage, img, imgLoaded],
|
|
14536
|
+
width,
|
|
14537
|
+
height,
|
|
14538
|
+
"data-testid": "broken-image"
|
|
14539
|
+
}
|
|
14540
|
+
),
|
|
14541
|
+
/* @__PURE__ */ jsx65(ErrorMessage, { message: loadErrorText })
|
|
14542
|
+
] }) : null
|
|
14543
|
+
]
|
|
14544
|
+
}
|
|
14545
|
+
);
|
|
14546
|
+
}
|
|
14547
|
+
|
|
14548
|
+
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
14549
|
+
import { css as css56 } from "@emotion/react";
|
|
14550
|
+
import { CgAdd as CgAdd2 } from "@react-icons/all-files/cg/CgAdd";
|
|
14551
|
+
import { CgChevronRight as CgChevronRight2 } from "@react-icons/all-files/cg/CgChevronRight";
|
|
14552
|
+
|
|
14553
|
+
// src/components/Tiles/styles/IntegrationTile.styles.ts
|
|
14554
|
+
import { css as css55 } from "@emotion/react";
|
|
14555
|
+
var IntegrationTileContainer = css55`
|
|
14556
|
+
align-items: center;
|
|
14557
|
+
box-sizing: border-box;
|
|
14558
|
+
border-radius: var(--rounded-base);
|
|
14559
|
+
border: 1px solid var(--gray-300);
|
|
14560
|
+
background: var(--white);
|
|
14561
|
+
display: inline-flex;
|
|
14562
|
+
flex-flow: column wrap;
|
|
14563
|
+
padding: var(--spacing-base);
|
|
14564
|
+
position: relative;
|
|
14565
|
+
min-height: 13rem;
|
|
14566
|
+
max-height: 13rem;
|
|
14567
|
+
text-align: center;
|
|
14568
|
+
justify-content: center;
|
|
14569
|
+
margin: auto;
|
|
14570
|
+
transition: box-shadow var(--duration-fast) var(--timing-ease-out);
|
|
14571
|
+
|
|
14572
|
+
&:hover {
|
|
14573
|
+
box-shadow: var(--shadow-md);
|
|
14574
|
+
}
|
|
14575
|
+
|
|
14576
|
+
${supports("aspect-ratio: 1/1")} {
|
|
14577
|
+
aspect-ratio: 1/1;
|
|
14578
|
+
|
|
14579
|
+
${mq("sm")} {
|
|
14580
|
+
max-width: unset;
|
|
14581
|
+
max-height: unset;
|
|
14582
|
+
margin: unset;
|
|
14583
|
+
}
|
|
14584
|
+
}
|
|
14585
|
+
`;
|
|
14586
|
+
var IntegrationTileBtnDashedBorder = css55`
|
|
14587
|
+
border: 1px dashed var(--brand-secondary-1);
|
|
14588
|
+
`;
|
|
14589
|
+
var IntegrationTileTitle = css55`
|
|
14590
|
+
display: block;
|
|
14373
14591
|
font-weight: var(--fw-bold);
|
|
14374
14592
|
margin: 0 0 var(--spacing-base);
|
|
14375
14593
|
max-width: 13rem;
|
|
14376
14594
|
`;
|
|
14377
|
-
var IntegrationTitleLogo =
|
|
14595
|
+
var IntegrationTitleLogo = css55`
|
|
14378
14596
|
display: block;
|
|
14379
14597
|
max-width: 10rem;
|
|
14380
14598
|
max-height: 4rem;
|
|
14381
14599
|
margin: 0 auto;
|
|
14382
14600
|
`;
|
|
14383
|
-
var IntegrationTileName =
|
|
14601
|
+
var IntegrationTileName = css55`
|
|
14384
14602
|
color: var(--gray-500);
|
|
14385
14603
|
display: -webkit-box;
|
|
14386
14604
|
-webkit-line-clamp: 1;
|
|
@@ -14393,7 +14611,7 @@ var IntegrationTileName = css54`
|
|
|
14393
14611
|
position: absolute;
|
|
14394
14612
|
bottom: calc(var(--spacing-base) * 3.8);
|
|
14395
14613
|
`;
|
|
14396
|
-
var IntegrationAddedText =
|
|
14614
|
+
var IntegrationAddedText = css55`
|
|
14397
14615
|
align-items: center;
|
|
14398
14616
|
background: var(--brand-secondary-3);
|
|
14399
14617
|
border-radius: 0 var(--rounded-md) 0 var(--rounded-md);
|
|
@@ -14408,7 +14626,7 @@ var IntegrationAddedText = css54`
|
|
|
14408
14626
|
top: 0;
|
|
14409
14627
|
right: 0;
|
|
14410
14628
|
`;
|
|
14411
|
-
var IntegrationCustomBadgeText = (theme) =>
|
|
14629
|
+
var IntegrationCustomBadgeText = (theme) => css55`
|
|
14412
14630
|
align-items: center;
|
|
14413
14631
|
border-radius: var(--rounded-sm) 0 var(--rounded-sm) 0;
|
|
14414
14632
|
background: ${theme === "gray" ? "var(--brand-secondary-2)" : "var(--brand-secondary-1)"};
|
|
@@ -14422,26 +14640,26 @@ var IntegrationCustomBadgeText = (theme) => css54`
|
|
|
14422
14640
|
top: 0;
|
|
14423
14641
|
left: 0;
|
|
14424
14642
|
`;
|
|
14425
|
-
var IntegrationAuthorBadgeIcon =
|
|
14643
|
+
var IntegrationAuthorBadgeIcon = css55`
|
|
14426
14644
|
position: absolute;
|
|
14427
14645
|
bottom: var(--spacing-sm);
|
|
14428
14646
|
right: var(--spacing-xs);
|
|
14429
14647
|
max-height: 1rem;
|
|
14430
14648
|
`;
|
|
14431
|
-
var IntegrationTitleFakeButton =
|
|
14649
|
+
var IntegrationTitleFakeButton = css55`
|
|
14432
14650
|
font-size: var(--fs-xs);
|
|
14433
14651
|
gap: var(--spacing-sm);
|
|
14434
14652
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
14435
14653
|
text-transform: uppercase;
|
|
14436
14654
|
`;
|
|
14437
|
-
var IntegrationTileFloatingButton =
|
|
14655
|
+
var IntegrationTileFloatingButton = css55`
|
|
14438
14656
|
position: absolute;
|
|
14439
14657
|
bottom: var(--spacing-base);
|
|
14440
14658
|
gap: var(--spacing-sm);
|
|
14441
14659
|
font-size: var(--fs-xs);
|
|
14442
14660
|
overflow: hidden;
|
|
14443
14661
|
`;
|
|
14444
|
-
var IntegrationTileFloatingButtonMessage = (clicked) =>
|
|
14662
|
+
var IntegrationTileFloatingButtonMessage = (clicked) => css55`
|
|
14445
14663
|
strong,
|
|
14446
14664
|
span:first-of-type {
|
|
14447
14665
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
@@ -14462,7 +14680,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => css54`
|
|
|
14462
14680
|
`;
|
|
14463
14681
|
|
|
14464
14682
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
14465
|
-
import { jsx as
|
|
14683
|
+
import { jsx as jsx66, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
14466
14684
|
var CreateTeamIntegrationTile = ({
|
|
14467
14685
|
title = "Create a custom integration for your team",
|
|
14468
14686
|
buttonText = "Add Integration",
|
|
@@ -14470,9 +14688,9 @@ var CreateTeamIntegrationTile = ({
|
|
|
14470
14688
|
asDeepLink = false,
|
|
14471
14689
|
...props
|
|
14472
14690
|
}) => {
|
|
14473
|
-
return /* @__PURE__ */
|
|
14474
|
-
/* @__PURE__ */
|
|
14475
|
-
/* @__PURE__ */
|
|
14691
|
+
return /* @__PURE__ */ jsxs42("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
14692
|
+
/* @__PURE__ */ jsx66("span", { css: IntegrationTileTitle, title, children: title }),
|
|
14693
|
+
/* @__PURE__ */ jsxs42(
|
|
14476
14694
|
Button,
|
|
14477
14695
|
{
|
|
14478
14696
|
buttonType: "tertiary",
|
|
@@ -14482,23 +14700,23 @@ var CreateTeamIntegrationTile = ({
|
|
|
14482
14700
|
css: IntegrationTitleFakeButton,
|
|
14483
14701
|
children: [
|
|
14484
14702
|
buttonText,
|
|
14485
|
-
asDeepLink ? /* @__PURE__ */
|
|
14703
|
+
asDeepLink ? /* @__PURE__ */ jsx66(
|
|
14486
14704
|
Icon,
|
|
14487
14705
|
{
|
|
14488
14706
|
icon: CgChevronRight2,
|
|
14489
14707
|
iconColor: "currentColor",
|
|
14490
14708
|
size: 20,
|
|
14491
|
-
css:
|
|
14709
|
+
css: css56`
|
|
14492
14710
|
order: 1;
|
|
14493
14711
|
`
|
|
14494
14712
|
}
|
|
14495
|
-
) : /* @__PURE__ */
|
|
14713
|
+
) : /* @__PURE__ */ jsx66(
|
|
14496
14714
|
Icon,
|
|
14497
14715
|
{
|
|
14498
14716
|
icon: CgAdd2,
|
|
14499
14717
|
iconColor: "currentColor",
|
|
14500
14718
|
size: 16,
|
|
14501
|
-
css:
|
|
14719
|
+
css: css56`
|
|
14502
14720
|
order: -1;
|
|
14503
14721
|
`
|
|
14504
14722
|
}
|
|
@@ -14513,31 +14731,31 @@ var CreateTeamIntegrationTile = ({
|
|
|
14513
14731
|
import { CgCheck } from "@react-icons/all-files/cg/CgCheck";
|
|
14514
14732
|
import { CgLock } from "@react-icons/all-files/cg/CgLock";
|
|
14515
14733
|
import { CgSandClock } from "@react-icons/all-files/cg/CgSandClock";
|
|
14516
|
-
import { jsx as
|
|
14734
|
+
import { jsx as jsx67, jsxs as jsxs43 } from "@emotion/react/jsx-runtime";
|
|
14517
14735
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
14518
|
-
return /* @__PURE__ */
|
|
14519
|
-
/* @__PURE__ */
|
|
14736
|
+
return /* @__PURE__ */ jsxs43("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
14737
|
+
/* @__PURE__ */ jsx67(Icon, { icon: CgCheck, iconColor: "currentColor" }),
|
|
14520
14738
|
text
|
|
14521
14739
|
] });
|
|
14522
14740
|
};
|
|
14523
14741
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
14524
|
-
return /* @__PURE__ */
|
|
14742
|
+
return /* @__PURE__ */ jsx67("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
14525
14743
|
};
|
|
14526
14744
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
14527
|
-
return /* @__PURE__ */
|
|
14528
|
-
/* @__PURE__ */
|
|
14745
|
+
return /* @__PURE__ */ jsxs43("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
14746
|
+
/* @__PURE__ */ jsx67(Icon, { icon: CgLock, iconColor: "currentColor", size: 12 }),
|
|
14529
14747
|
text
|
|
14530
14748
|
] });
|
|
14531
14749
|
};
|
|
14532
14750
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
14533
|
-
return /* @__PURE__ */
|
|
14534
|
-
/* @__PURE__ */
|
|
14751
|
+
return /* @__PURE__ */ jsxs43("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
14752
|
+
/* @__PURE__ */ jsx67(Icon, { icon: CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
14535
14753
|
text
|
|
14536
14754
|
] });
|
|
14537
14755
|
};
|
|
14538
14756
|
|
|
14539
14757
|
// src/components/Tiles/ResolveIcon.tsx
|
|
14540
|
-
import { jsx as
|
|
14758
|
+
import { jsx as jsx68 } from "@emotion/react/jsx-runtime";
|
|
14541
14759
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
14542
14760
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
14543
14761
|
const mapClassName = {
|
|
@@ -14545,13 +14763,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
14545
14763
|
logo: IntegrationTitleLogo
|
|
14546
14764
|
};
|
|
14547
14765
|
if (icon) {
|
|
14548
|
-
return CompIcon ? /* @__PURE__ */
|
|
14766
|
+
return CompIcon ? /* @__PURE__ */ jsx68(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ jsx68("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
14549
14767
|
}
|
|
14550
14768
|
return null;
|
|
14551
14769
|
};
|
|
14552
14770
|
|
|
14553
14771
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
14554
|
-
import { jsx as
|
|
14772
|
+
import { jsx as jsx69, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
14555
14773
|
var EditTeamIntegrationTile = ({
|
|
14556
14774
|
id,
|
|
14557
14775
|
icon,
|
|
@@ -14560,17 +14778,17 @@ var EditTeamIntegrationTile = ({
|
|
|
14560
14778
|
isPublic,
|
|
14561
14779
|
canEdit = false
|
|
14562
14780
|
}) => {
|
|
14563
|
-
return /* @__PURE__ */
|
|
14781
|
+
return /* @__PURE__ */ jsxs44(
|
|
14564
14782
|
"div",
|
|
14565
14783
|
{
|
|
14566
14784
|
css: IntegrationTileContainer,
|
|
14567
14785
|
"data-testid": "configure-integration-container",
|
|
14568
14786
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
14569
14787
|
children: [
|
|
14570
|
-
/* @__PURE__ */
|
|
14571
|
-
/* @__PURE__ */
|
|
14572
|
-
!isPublic ? /* @__PURE__ */
|
|
14573
|
-
canEdit ? /* @__PURE__ */
|
|
14788
|
+
/* @__PURE__ */ jsx69(ResolveIcon, { icon, name, "data-testid": "integration-logo" }),
|
|
14789
|
+
/* @__PURE__ */ jsx69("span", { css: IntegrationTileName, "data-testid": "integration-card-name", children: name }),
|
|
14790
|
+
!isPublic ? /* @__PURE__ */ jsx69(IntegrationCustomBadge, {}) : null,
|
|
14791
|
+
canEdit ? /* @__PURE__ */ jsx69(
|
|
14574
14792
|
Button,
|
|
14575
14793
|
{
|
|
14576
14794
|
buttonType: "unimportant",
|
|
@@ -14588,10 +14806,10 @@ var EditTeamIntegrationTile = ({
|
|
|
14588
14806
|
};
|
|
14589
14807
|
|
|
14590
14808
|
// src/components/Tiles/IntegrationComingSoon.tsx
|
|
14591
|
-
import { css as
|
|
14809
|
+
import { css as css57 } from "@emotion/react";
|
|
14592
14810
|
import { CgHeart } from "@react-icons/all-files/cg/CgHeart";
|
|
14593
|
-
import { useEffect as
|
|
14594
|
-
import { jsx as
|
|
14811
|
+
import { useEffect as useEffect8, useState as useState9 } from "react";
|
|
14812
|
+
import { jsx as jsx70, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
|
|
14595
14813
|
var IntegrationComingSoon = ({
|
|
14596
14814
|
name,
|
|
14597
14815
|
icon,
|
|
@@ -14600,12 +14818,12 @@ var IntegrationComingSoon = ({
|
|
|
14600
14818
|
timing = 1e3,
|
|
14601
14819
|
...props
|
|
14602
14820
|
}) => {
|
|
14603
|
-
const [upVote, setUpVote] =
|
|
14821
|
+
const [upVote, setUpVote] = useState9(false);
|
|
14604
14822
|
const handleUpVoteInteraction = () => {
|
|
14605
14823
|
setUpVote((prev) => !prev);
|
|
14606
14824
|
onUpVoteClick();
|
|
14607
14825
|
};
|
|
14608
|
-
|
|
14826
|
+
useEffect8(() => {
|
|
14609
14827
|
if (upVote) {
|
|
14610
14828
|
const timer = setTimeout(() => setUpVote(false), timing);
|
|
14611
14829
|
return () => {
|
|
@@ -14613,17 +14831,17 @@ var IntegrationComingSoon = ({
|
|
|
14613
14831
|
};
|
|
14614
14832
|
}
|
|
14615
14833
|
}, [upVote, setUpVote, timing]);
|
|
14616
|
-
return /* @__PURE__ */
|
|
14834
|
+
return /* @__PURE__ */ jsxs45(
|
|
14617
14835
|
"div",
|
|
14618
14836
|
{
|
|
14619
14837
|
css: IntegrationTileContainer,
|
|
14620
14838
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
14621
14839
|
...props,
|
|
14622
14840
|
children: [
|
|
14623
|
-
/* @__PURE__ */
|
|
14624
|
-
/* @__PURE__ */
|
|
14625
|
-
/* @__PURE__ */
|
|
14626
|
-
/* @__PURE__ */
|
|
14841
|
+
/* @__PURE__ */ jsx70(IntegrationComingSoonBadge, {}),
|
|
14842
|
+
/* @__PURE__ */ jsx70(ResolveIcon, { icon, name }),
|
|
14843
|
+
/* @__PURE__ */ jsx70("span", { css: IntegrationTileName, title: name, children: name }),
|
|
14844
|
+
/* @__PURE__ */ jsxs45(
|
|
14627
14845
|
Button,
|
|
14628
14846
|
{
|
|
14629
14847
|
buttonType: "unimportant",
|
|
@@ -14633,19 +14851,19 @@ var IntegrationComingSoon = ({
|
|
|
14633
14851
|
role: "link",
|
|
14634
14852
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
14635
14853
|
children: [
|
|
14636
|
-
/* @__PURE__ */
|
|
14637
|
-
/* @__PURE__ */
|
|
14854
|
+
/* @__PURE__ */ jsx70("strong", { children: "+1" }),
|
|
14855
|
+
/* @__PURE__ */ jsx70(
|
|
14638
14856
|
"span",
|
|
14639
14857
|
{
|
|
14640
|
-
css:
|
|
14858
|
+
css: css57`
|
|
14641
14859
|
text-transform: uppercase;
|
|
14642
14860
|
color: var(--gray-500);
|
|
14643
14861
|
`,
|
|
14644
14862
|
children: "(I want this)"
|
|
14645
14863
|
}
|
|
14646
14864
|
),
|
|
14647
|
-
/* @__PURE__ */
|
|
14648
|
-
/* @__PURE__ */
|
|
14865
|
+
/* @__PURE__ */ jsxs45("span", { "aria-hidden": !upVote, children: [
|
|
14866
|
+
/* @__PURE__ */ jsx70(Icon, { icon: CgHeart, iconColor: "currentColor", size: 18 }),
|
|
14649
14867
|
"Thanks!"
|
|
14650
14868
|
] })
|
|
14651
14869
|
]
|
|
@@ -14657,8 +14875,8 @@ var IntegrationComingSoon = ({
|
|
|
14657
14875
|
};
|
|
14658
14876
|
|
|
14659
14877
|
// src/components/Tiles/styles/IntegrationLoadingTile.styles.ts
|
|
14660
|
-
import { css as
|
|
14661
|
-
var IntegrationLoadingTileContainer =
|
|
14878
|
+
import { css as css58 } from "@emotion/react";
|
|
14879
|
+
var IntegrationLoadingTileContainer = css58`
|
|
14662
14880
|
align-items: center;
|
|
14663
14881
|
box-sizing: border-box;
|
|
14664
14882
|
border-radius: var(--rounded-base);
|
|
@@ -14685,39 +14903,39 @@ var IntegrationLoadingTileContainer = css57`
|
|
|
14685
14903
|
}
|
|
14686
14904
|
}
|
|
14687
14905
|
`;
|
|
14688
|
-
var IntegrationLoadingTileImg =
|
|
14906
|
+
var IntegrationLoadingTileImg = css58`
|
|
14689
14907
|
width: 10rem;
|
|
14690
14908
|
height: 4rem;
|
|
14691
14909
|
margin: 0 auto;
|
|
14692
14910
|
`;
|
|
14693
|
-
var IntegrationLoadingTileText =
|
|
14911
|
+
var IntegrationLoadingTileText = css58`
|
|
14694
14912
|
width: 5rem;
|
|
14695
14913
|
height: var(--spacing-sm);
|
|
14696
14914
|
margin: var(--spacing-sm) 0;
|
|
14697
14915
|
`;
|
|
14698
|
-
var IntegrationLoadingFrame =
|
|
14916
|
+
var IntegrationLoadingFrame = css58`
|
|
14699
14917
|
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
14700
14918
|
border-radius: var(--rounded-base);
|
|
14701
14919
|
`;
|
|
14702
14920
|
|
|
14703
14921
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
14704
|
-
import { Fragment as
|
|
14922
|
+
import { Fragment as Fragment11, jsx as jsx71, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
14705
14923
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
14706
14924
|
const componentCount = Array.from(Array(count).keys());
|
|
14707
|
-
return /* @__PURE__ */
|
|
14708
|
-
/* @__PURE__ */
|
|
14709
|
-
/* @__PURE__ */
|
|
14925
|
+
return /* @__PURE__ */ jsx71(Fragment11, { children: componentCount.map((i) => /* @__PURE__ */ jsxs46("div", { css: IntegrationLoadingTileContainer, children: [
|
|
14926
|
+
/* @__PURE__ */ jsx71("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
14927
|
+
/* @__PURE__ */ jsx71("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
14710
14928
|
] }, i)) });
|
|
14711
14929
|
};
|
|
14712
14930
|
|
|
14713
14931
|
// src/components/Tiles/styles/IntegrationModalIcon.styles.ts
|
|
14714
|
-
import { css as
|
|
14715
|
-
var IntegrationModalIconContainer =
|
|
14932
|
+
import { css as css59 } from "@emotion/react";
|
|
14933
|
+
var IntegrationModalIconContainer = css59`
|
|
14716
14934
|
position: relative;
|
|
14717
14935
|
width: 50px;
|
|
14718
14936
|
margin-bottom: var(--spacing-base);
|
|
14719
14937
|
`;
|
|
14720
|
-
var IntegrationModalImage =
|
|
14938
|
+
var IntegrationModalImage = css59`
|
|
14721
14939
|
position: absolute;
|
|
14722
14940
|
inset: 0;
|
|
14723
14941
|
margin: auto;
|
|
@@ -14726,7 +14944,7 @@ var IntegrationModalImage = css58`
|
|
|
14726
14944
|
`;
|
|
14727
14945
|
|
|
14728
14946
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
14729
|
-
import { jsx as
|
|
14947
|
+
import { jsx as jsx72, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
14730
14948
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
14731
14949
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
14732
14950
|
let iconSrc = void 0;
|
|
@@ -14742,9 +14960,9 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
14742
14960
|
}
|
|
14743
14961
|
}
|
|
14744
14962
|
}
|
|
14745
|
-
return /* @__PURE__ */
|
|
14746
|
-
/* @__PURE__ */
|
|
14747
|
-
/* @__PURE__ */
|
|
14963
|
+
return /* @__PURE__ */ jsxs47("div", { css: IntegrationModalIconContainer, children: [
|
|
14964
|
+
/* @__PURE__ */ jsxs47("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
14965
|
+
/* @__PURE__ */ jsx72(
|
|
14748
14966
|
"path",
|
|
14749
14967
|
{
|
|
14750
14968
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -14753,12 +14971,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
14753
14971
|
strokeWidth: "2"
|
|
14754
14972
|
}
|
|
14755
14973
|
),
|
|
14756
|
-
/* @__PURE__ */
|
|
14757
|
-
/* @__PURE__ */
|
|
14758
|
-
/* @__PURE__ */
|
|
14974
|
+
/* @__PURE__ */ jsx72("defs", { children: /* @__PURE__ */ jsxs47("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
14975
|
+
/* @__PURE__ */ jsx72("stop", { stopColor: "#1768B2" }),
|
|
14976
|
+
/* @__PURE__ */ jsx72("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
14759
14977
|
] }) })
|
|
14760
14978
|
] }),
|
|
14761
|
-
CompIcon ? /* @__PURE__ */
|
|
14979
|
+
CompIcon ? /* @__PURE__ */ jsx72(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : iconSrc ? /* @__PURE__ */ jsx72(
|
|
14762
14980
|
"img",
|
|
14763
14981
|
{
|
|
14764
14982
|
src: iconSrc,
|
|
@@ -14772,7 +14990,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
14772
14990
|
};
|
|
14773
14991
|
|
|
14774
14992
|
// src/components/Tiles/IntegrationTile.tsx
|
|
14775
|
-
import { jsx as
|
|
14993
|
+
import { jsx as jsx73, jsxs as jsxs48 } from "@emotion/react/jsx-runtime";
|
|
14776
14994
|
var IntegrationTile = ({
|
|
14777
14995
|
id,
|
|
14778
14996
|
icon,
|
|
@@ -14784,7 +15002,7 @@ var IntegrationTile = ({
|
|
|
14784
15002
|
authorIcon,
|
|
14785
15003
|
...btnProps
|
|
14786
15004
|
}) => {
|
|
14787
|
-
return /* @__PURE__ */
|
|
15005
|
+
return /* @__PURE__ */ jsxs48(
|
|
14788
15006
|
"button",
|
|
14789
15007
|
{
|
|
14790
15008
|
type: "button",
|
|
@@ -14794,21 +15012,21 @@ var IntegrationTile = ({
|
|
|
14794
15012
|
"aria-label": name,
|
|
14795
15013
|
...btnProps,
|
|
14796
15014
|
children: [
|
|
14797
|
-
/* @__PURE__ */
|
|
14798
|
-
/* @__PURE__ */
|
|
14799
|
-
isInstalled ? /* @__PURE__ */
|
|
14800
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */
|
|
14801
|
-
!isPublic ? /* @__PURE__ */
|
|
14802
|
-
authorIcon ? /* @__PURE__ */
|
|
15015
|
+
/* @__PURE__ */ jsx73(ResolveIcon, { icon, name }),
|
|
15016
|
+
/* @__PURE__ */ jsx73("span", { css: IntegrationTileName, title: name, children: name }),
|
|
15017
|
+
isInstalled ? /* @__PURE__ */ jsx73(IntegrationedAddedBadge, {}) : null,
|
|
15018
|
+
requiedEntitlement && isPublic ? /* @__PURE__ */ jsx73(IntegrationPremiumBadge, {}) : null,
|
|
15019
|
+
!isPublic ? /* @__PURE__ */ jsx73(IntegrationCustomBadge, {}) : null,
|
|
15020
|
+
authorIcon ? /* @__PURE__ */ jsx73(ResolveIcon, { icon: authorIcon, name }) : null
|
|
14803
15021
|
]
|
|
14804
15022
|
}
|
|
14805
15023
|
);
|
|
14806
15024
|
};
|
|
14807
15025
|
|
|
14808
15026
|
// src/components/Tiles/styles/Tile.styles.ts
|
|
14809
|
-
import { css as
|
|
15027
|
+
import { css as css60 } from "@emotion/react";
|
|
14810
15028
|
var tileBorderSize = "1px";
|
|
14811
|
-
var Tile =
|
|
15029
|
+
var Tile = css60`
|
|
14812
15030
|
background: var(--white);
|
|
14813
15031
|
cursor: pointer;
|
|
14814
15032
|
border: ${tileBorderSize} solid var(--gray-300);
|
|
@@ -14832,18 +15050,18 @@ var Tile = css59`
|
|
|
14832
15050
|
`;
|
|
14833
15051
|
|
|
14834
15052
|
// src/components/Tiles/Tile.tsx
|
|
14835
|
-
import { jsx as
|
|
15053
|
+
import { jsx as jsx74 } from "@emotion/react/jsx-runtime";
|
|
14836
15054
|
var Tile2 = ({ children, disabled, ...props }) => {
|
|
14837
|
-
return /* @__PURE__ */
|
|
15055
|
+
return /* @__PURE__ */ jsx74("button", { type: "button", css: Tile, disabled, ...props, children });
|
|
14838
15056
|
};
|
|
14839
15057
|
|
|
14840
15058
|
// src/components/Tiles/styles/TileContainer.styles.ts
|
|
14841
|
-
import { css as
|
|
14842
|
-
var TileContainerWrapper = (theme, padding) =>
|
|
15059
|
+
import { css as css61 } from "@emotion/react";
|
|
15060
|
+
var TileContainerWrapper = (theme, padding) => css61`
|
|
14843
15061
|
background: ${theme};
|
|
14844
15062
|
padding: ${padding != "none" ? `var(--spacing-${padding})` : "0"};
|
|
14845
15063
|
`;
|
|
14846
|
-
var TileContainerInner = (gap, templateColumns) =>
|
|
15064
|
+
var TileContainerInner = (gap, templateColumns) => css61`
|
|
14847
15065
|
display: grid;
|
|
14848
15066
|
grid-template-columns: ${templateColumns};
|
|
14849
15067
|
gap: var(--spacing-${gap});
|
|
@@ -14857,7 +15075,7 @@ var TileContainerInner = (gap, templateColumns) => css60`
|
|
|
14857
15075
|
`;
|
|
14858
15076
|
|
|
14859
15077
|
// src/components/Tiles/TileContainer.tsx
|
|
14860
|
-
import { jsx as
|
|
15078
|
+
import { jsx as jsx75 } from "@emotion/react/jsx-runtime";
|
|
14861
15079
|
var TileContainer = ({
|
|
14862
15080
|
bgColor = "var(--brand-secondary-2)",
|
|
14863
15081
|
containerPadding = "base",
|
|
@@ -14866,25 +15084,25 @@ var TileContainer = ({
|
|
|
14866
15084
|
children,
|
|
14867
15085
|
...props
|
|
14868
15086
|
}) => {
|
|
14869
|
-
return /* @__PURE__ */
|
|
15087
|
+
return /* @__PURE__ */ jsx75("div", { css: TileContainerWrapper(bgColor, containerPadding), ...props, children: /* @__PURE__ */ jsx75("div", { css: TileContainerInner(gap, gridTemplateColumns), children }) });
|
|
14870
15088
|
};
|
|
14871
15089
|
|
|
14872
15090
|
// src/components/Tiles/styles/TileText.styles.ts
|
|
14873
|
-
import { css as
|
|
14874
|
-
var TileHeading =
|
|
15091
|
+
import { css as css62 } from "@emotion/react";
|
|
15092
|
+
var TileHeading = css62`
|
|
14875
15093
|
font-size: var(--fs-base);
|
|
14876
15094
|
`;
|
|
14877
|
-
var TileText =
|
|
15095
|
+
var TileText = css62`
|
|
14878
15096
|
color: var(--gray-500);
|
|
14879
15097
|
font-size: var(--fs-sm);
|
|
14880
15098
|
line-height: 1.2;
|
|
14881
15099
|
`;
|
|
14882
15100
|
|
|
14883
15101
|
// src/components/Tiles/TileText.tsx
|
|
14884
|
-
import { jsx as
|
|
15102
|
+
import { jsx as jsx76 } from "@emotion/react/jsx-runtime";
|
|
14885
15103
|
var TileText2 = ({ as = "heading", children, ...props }) => {
|
|
14886
15104
|
const isHeading = as === "heading";
|
|
14887
|
-
return /* @__PURE__ */
|
|
15105
|
+
return /* @__PURE__ */ jsx76(
|
|
14888
15106
|
"span",
|
|
14889
15107
|
{
|
|
14890
15108
|
role: isHeading ? "heading" : void 0,
|
|
@@ -14896,39 +15114,39 @@ var TileText2 = ({ as = "heading", children, ...props }) => {
|
|
|
14896
15114
|
};
|
|
14897
15115
|
|
|
14898
15116
|
// src/components/IntegrationModalHeader/IntegrationModalHeader.styles.ts
|
|
14899
|
-
import { css as
|
|
14900
|
-
var IntegrationModalHeaderSVGBackground =
|
|
15117
|
+
import { css as css63 } from "@emotion/react";
|
|
15118
|
+
var IntegrationModalHeaderSVGBackground = css63`
|
|
14901
15119
|
position: absolute;
|
|
14902
15120
|
top: 0;
|
|
14903
15121
|
left: 0;
|
|
14904
15122
|
`;
|
|
14905
|
-
var IntegrationModalHeaderGroup =
|
|
15123
|
+
var IntegrationModalHeaderGroup = css63`
|
|
14906
15124
|
align-items: center;
|
|
14907
15125
|
display: flex;
|
|
14908
15126
|
gap: var(--spacing-sm);
|
|
14909
15127
|
margin: 0 0 var(--spacing-md);
|
|
14910
15128
|
position: relative;
|
|
14911
15129
|
`;
|
|
14912
|
-
var IntegrationModalHeaderTitleGroup =
|
|
15130
|
+
var IntegrationModalHeaderTitleGroup = css63`
|
|
14913
15131
|
align-items: center;
|
|
14914
15132
|
display: flex;
|
|
14915
15133
|
gap: var(--spacing-base);
|
|
14916
15134
|
`;
|
|
14917
|
-
var IntegrationModalHeaderTitle =
|
|
15135
|
+
var IntegrationModalHeaderTitle = css63`
|
|
14918
15136
|
margin-top: 0;
|
|
14919
15137
|
`;
|
|
14920
|
-
var IntegrationModalHeaderMenuPlacement =
|
|
15138
|
+
var IntegrationModalHeaderMenuPlacement = css63`
|
|
14921
15139
|
margin-bottom: var(--spacing-base);
|
|
14922
15140
|
`;
|
|
14923
|
-
var IntegrationModalHeaderContentWrapper =
|
|
15141
|
+
var IntegrationModalHeaderContentWrapper = css63`
|
|
14924
15142
|
position: relative;
|
|
14925
15143
|
z-index: var(--z-10);
|
|
14926
15144
|
`;
|
|
14927
15145
|
|
|
14928
15146
|
// src/components/IntegrationModalHeader/IntegrationModalHeader.tsx
|
|
14929
|
-
import { Fragment as
|
|
15147
|
+
import { Fragment as Fragment12, jsx as jsx77, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
14930
15148
|
var HexModalBackground = ({ ...props }) => {
|
|
14931
|
-
return /* @__PURE__ */
|
|
15149
|
+
return /* @__PURE__ */ jsxs49(
|
|
14932
15150
|
"svg",
|
|
14933
15151
|
{
|
|
14934
15152
|
width: "236",
|
|
@@ -14938,7 +15156,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14938
15156
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14939
15157
|
...props,
|
|
14940
15158
|
children: [
|
|
14941
|
-
/* @__PURE__ */
|
|
15159
|
+
/* @__PURE__ */ jsx77(
|
|
14942
15160
|
"path",
|
|
14943
15161
|
{
|
|
14944
15162
|
fillRule: "evenodd",
|
|
@@ -14947,7 +15165,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14947
15165
|
fill: "url(#paint0_linear_196_2737)"
|
|
14948
15166
|
}
|
|
14949
15167
|
),
|
|
14950
|
-
/* @__PURE__ */
|
|
15168
|
+
/* @__PURE__ */ jsx77("defs", { children: /* @__PURE__ */ jsxs49(
|
|
14951
15169
|
"linearGradient",
|
|
14952
15170
|
{
|
|
14953
15171
|
id: "paint0_linear_196_2737",
|
|
@@ -14957,8 +15175,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14957
15175
|
y2: "-95.2742",
|
|
14958
15176
|
gradientUnits: "userSpaceOnUse",
|
|
14959
15177
|
children: [
|
|
14960
|
-
/* @__PURE__ */
|
|
14961
|
-
/* @__PURE__ */
|
|
15178
|
+
/* @__PURE__ */ jsx77("stop", { stopColor: "#81DCDE" }),
|
|
15179
|
+
/* @__PURE__ */ jsx77("stop", { offset: "1", stopColor: "#428ED4" })
|
|
14962
15180
|
]
|
|
14963
15181
|
}
|
|
14964
15182
|
) })
|
|
@@ -14967,23 +15185,23 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14967
15185
|
);
|
|
14968
15186
|
};
|
|
14969
15187
|
var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
14970
|
-
return /* @__PURE__ */
|
|
14971
|
-
/* @__PURE__ */
|
|
14972
|
-
/* @__PURE__ */
|
|
14973
|
-
icon ? /* @__PURE__ */
|
|
14974
|
-
/* @__PURE__ */
|
|
14975
|
-
menu2 ? /* @__PURE__ */
|
|
15188
|
+
return /* @__PURE__ */ jsxs49(Fragment12, { children: [
|
|
15189
|
+
/* @__PURE__ */ jsx77(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
15190
|
+
/* @__PURE__ */ jsx77("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs49("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
15191
|
+
icon ? /* @__PURE__ */ jsx77(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
15192
|
+
/* @__PURE__ */ jsx77(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-testid": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
15193
|
+
menu2 ? /* @__PURE__ */ jsxs49("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
14976
15194
|
menu2,
|
|
14977
15195
|
" "
|
|
14978
15196
|
] }) : null
|
|
14979
15197
|
] }) }),
|
|
14980
|
-
/* @__PURE__ */
|
|
15198
|
+
/* @__PURE__ */ jsx77("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
14981
15199
|
] });
|
|
14982
15200
|
};
|
|
14983
15201
|
|
|
14984
15202
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
14985
15203
|
import MonacoEditor from "@monaco-editor/react";
|
|
14986
|
-
import { jsx as
|
|
15204
|
+
import { jsx as jsx78 } from "@emotion/react/jsx-runtime";
|
|
14987
15205
|
var minEditorHeightPx = 150;
|
|
14988
15206
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
14989
15207
|
let effectiveHeight = height;
|
|
@@ -14993,7 +15211,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
14993
15211
|
if (typeof effectiveHeight === "number" && effectiveHeight < minEditorHeightPx) {
|
|
14994
15212
|
effectiveHeight = minEditorHeightPx;
|
|
14995
15213
|
}
|
|
14996
|
-
return /* @__PURE__ */
|
|
15214
|
+
return /* @__PURE__ */ jsx78(
|
|
14997
15215
|
MonacoEditor,
|
|
14998
15216
|
{
|
|
14999
15217
|
height: effectiveHeight,
|
|
@@ -15030,39 +15248,39 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
15030
15248
|
};
|
|
15031
15249
|
|
|
15032
15250
|
// src/components/LimitsBar/LimitsBar.styles.ts
|
|
15033
|
-
import { css as
|
|
15034
|
-
var LimitsBarContainer =
|
|
15251
|
+
import { css as css64 } from "@emotion/react";
|
|
15252
|
+
var LimitsBarContainer = css64`
|
|
15035
15253
|
margin-block: var(--spacing-sm);
|
|
15036
15254
|
`;
|
|
15037
|
-
var LimitsBarProgressBar =
|
|
15255
|
+
var LimitsBarProgressBar = css64`
|
|
15038
15256
|
background: var(--gray-100);
|
|
15039
15257
|
margin-top: var(--spacing-sm);
|
|
15040
15258
|
position: relative;
|
|
15041
15259
|
overflow: hidden;
|
|
15042
15260
|
height: 0.25rem;
|
|
15043
15261
|
`;
|
|
15044
|
-
var LimitsBarProgressBarLine =
|
|
15262
|
+
var LimitsBarProgressBarLine = css64`
|
|
15045
15263
|
position: absolute;
|
|
15046
15264
|
inset: 0;
|
|
15047
15265
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
15048
15266
|
`;
|
|
15049
|
-
var LimitsBarLabelContainer =
|
|
15267
|
+
var LimitsBarLabelContainer = css64`
|
|
15050
15268
|
display: flex;
|
|
15051
15269
|
justify-content: space-between;
|
|
15052
15270
|
font-weight: var(--fw-bold);
|
|
15053
15271
|
`;
|
|
15054
|
-
var LimitsBarLabel =
|
|
15272
|
+
var LimitsBarLabel = css64`
|
|
15055
15273
|
font-size: var(--fs-baase);
|
|
15056
15274
|
`;
|
|
15057
|
-
var LimitsBarBgColor = (statusColor) =>
|
|
15275
|
+
var LimitsBarBgColor = (statusColor) => css64`
|
|
15058
15276
|
background: ${statusColor};
|
|
15059
15277
|
`;
|
|
15060
|
-
var LimitsBarTextColor = (statusColor) =>
|
|
15278
|
+
var LimitsBarTextColor = (statusColor) => css64`
|
|
15061
15279
|
color: ${statusColor};
|
|
15062
15280
|
`;
|
|
15063
15281
|
|
|
15064
15282
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
15065
|
-
import { jsx as
|
|
15283
|
+
import { jsx as jsx79, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
15066
15284
|
var LimitsBar = ({ current, max, label }) => {
|
|
15067
15285
|
const maxPercentage = 100;
|
|
15068
15286
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -15073,16 +15291,16 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
15073
15291
|
danger: "var(--brand-secondary-5)"
|
|
15074
15292
|
};
|
|
15075
15293
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
15076
|
-
return /* @__PURE__ */
|
|
15077
|
-
/* @__PURE__ */
|
|
15078
|
-
/* @__PURE__ */
|
|
15079
|
-
/* @__PURE__ */
|
|
15294
|
+
return /* @__PURE__ */ jsxs50("div", { css: LimitsBarContainer, children: [
|
|
15295
|
+
/* @__PURE__ */ jsxs50("div", { css: LimitsBarLabelContainer, children: [
|
|
15296
|
+
/* @__PURE__ */ jsx79("span", { css: LimitsBarLabel, children: label }),
|
|
15297
|
+
/* @__PURE__ */ jsxs50("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
15080
15298
|
current,
|
|
15081
15299
|
" of ",
|
|
15082
15300
|
max
|
|
15083
15301
|
] })
|
|
15084
15302
|
] }),
|
|
15085
|
-
/* @__PURE__ */
|
|
15303
|
+
/* @__PURE__ */ jsx79(
|
|
15086
15304
|
"div",
|
|
15087
15305
|
{
|
|
15088
15306
|
role: "progressbar",
|
|
@@ -15091,7 +15309,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
15091
15309
|
"aria-valuemax": max,
|
|
15092
15310
|
"aria-valuetext": `${current} of ${max}`,
|
|
15093
15311
|
css: LimitsBarProgressBar,
|
|
15094
|
-
children: /* @__PURE__ */
|
|
15312
|
+
children: /* @__PURE__ */ jsx79(
|
|
15095
15313
|
"span",
|
|
15096
15314
|
{
|
|
15097
15315
|
role: "presentation",
|
|
@@ -15107,8 +15325,8 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
15107
15325
|
};
|
|
15108
15326
|
|
|
15109
15327
|
// src/components/LinkList/LinkList.styles.ts
|
|
15110
|
-
import { css as
|
|
15111
|
-
var LinkListContainer = (padding) =>
|
|
15328
|
+
import { css as css65 } from "@emotion/react";
|
|
15329
|
+
var LinkListContainer = (padding) => css65`
|
|
15112
15330
|
padding: ${padding};
|
|
15113
15331
|
|
|
15114
15332
|
${mq("sm")} {
|
|
@@ -15116,30 +15334,30 @@ var LinkListContainer = (padding) => css64`
|
|
|
15116
15334
|
grid-row: 1 / last-line;
|
|
15117
15335
|
}
|
|
15118
15336
|
`;
|
|
15119
|
-
var LinkListTitle =
|
|
15337
|
+
var LinkListTitle = css65`
|
|
15120
15338
|
font-weight: var(--fw-bold);
|
|
15121
15339
|
font-size: var(--fs-sm);
|
|
15122
15340
|
text-transform: uppercase;
|
|
15123
15341
|
`;
|
|
15124
15342
|
|
|
15125
15343
|
// src/components/LinkList/LinkList.tsx
|
|
15126
|
-
import { jsx as
|
|
15344
|
+
import { jsx as jsx80, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
15127
15345
|
var LinkList = ({ title, padding = "var(--spacing-md)", children, ...props }) => {
|
|
15128
|
-
return /* @__PURE__ */
|
|
15129
|
-
/* @__PURE__ */
|
|
15346
|
+
return /* @__PURE__ */ jsxs51("div", { css: LinkListContainer(padding), ...props, children: [
|
|
15347
|
+
/* @__PURE__ */ jsx80(Heading, { level: 3, css: LinkListTitle, children: title }),
|
|
15130
15348
|
children
|
|
15131
15349
|
] });
|
|
15132
15350
|
};
|
|
15133
15351
|
|
|
15134
15352
|
// src/components/List/ScrollableList.tsx
|
|
15135
|
-
import { css as
|
|
15353
|
+
import { css as css67 } from "@emotion/react";
|
|
15136
15354
|
|
|
15137
15355
|
// src/components/List/styles/ScrollableList.styles.ts
|
|
15138
|
-
import { css as
|
|
15139
|
-
var ScrollableListContainer =
|
|
15356
|
+
import { css as css66 } from "@emotion/react";
|
|
15357
|
+
var ScrollableListContainer = css66`
|
|
15140
15358
|
position: relative;
|
|
15141
15359
|
`;
|
|
15142
|
-
var ScrollableListInner =
|
|
15360
|
+
var ScrollableListInner = css66`
|
|
15143
15361
|
background: var(--gray-50);
|
|
15144
15362
|
border-top: 1px solid var(--gray-200);
|
|
15145
15363
|
border-bottom: 1px solid var(--gray-200);
|
|
@@ -15162,19 +15380,19 @@ var ScrollableListInner = css65`
|
|
|
15162
15380
|
`;
|
|
15163
15381
|
|
|
15164
15382
|
// src/components/List/ScrollableList.tsx
|
|
15165
|
-
import { jsx as
|
|
15383
|
+
import { jsx as jsx81, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
15166
15384
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
15167
|
-
return /* @__PURE__ */
|
|
15168
|
-
label ? /* @__PURE__ */
|
|
15385
|
+
return /* @__PURE__ */ jsxs52("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
15386
|
+
label ? /* @__PURE__ */ jsx81(
|
|
15169
15387
|
"span",
|
|
15170
15388
|
{
|
|
15171
|
-
css:
|
|
15389
|
+
css: css67`
|
|
15172
15390
|
${labelText}
|
|
15173
15391
|
`,
|
|
15174
15392
|
children: label
|
|
15175
15393
|
}
|
|
15176
15394
|
) : null,
|
|
15177
|
-
/* @__PURE__ */
|
|
15395
|
+
/* @__PURE__ */ jsx81("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
15178
15396
|
] });
|
|
15179
15397
|
};
|
|
15180
15398
|
|
|
@@ -15182,8 +15400,8 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
15182
15400
|
import { CgCheck as CgCheck2 } from "@react-icons/all-files/cg/CgCheck";
|
|
15183
15401
|
|
|
15184
15402
|
// src/components/List/styles/ScrollableListItem.styles.ts
|
|
15185
|
-
import { css as
|
|
15186
|
-
var ScrollableListItemContainer =
|
|
15403
|
+
import { css as css68 } from "@emotion/react";
|
|
15404
|
+
var ScrollableListItemContainer = css68`
|
|
15187
15405
|
align-items: center;
|
|
15188
15406
|
background: var(--white);
|
|
15189
15407
|
border-radius: var(--rounded-base);
|
|
@@ -15192,13 +15410,13 @@ var ScrollableListItemContainer = css67`
|
|
|
15192
15410
|
min-height: 52px;
|
|
15193
15411
|
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
15194
15412
|
`;
|
|
15195
|
-
var ScrollableListItemShadow =
|
|
15413
|
+
var ScrollableListItemShadow = css68`
|
|
15196
15414
|
box-shadow: var(--shadow-base);
|
|
15197
15415
|
`;
|
|
15198
|
-
var ScrollableListItemActive =
|
|
15416
|
+
var ScrollableListItemActive = css68`
|
|
15199
15417
|
border-color: var(--brand-secondary-3);
|
|
15200
15418
|
`;
|
|
15201
|
-
var ScrollableListItemBtn =
|
|
15419
|
+
var ScrollableListItemBtn = css68`
|
|
15202
15420
|
align-items: center;
|
|
15203
15421
|
border: none;
|
|
15204
15422
|
background: transparent;
|
|
@@ -15213,27 +15431,27 @@ var ScrollableListItemBtn = css67`
|
|
|
15213
15431
|
outline: none;
|
|
15214
15432
|
}
|
|
15215
15433
|
`;
|
|
15216
|
-
var ScrollableListInputLabel =
|
|
15434
|
+
var ScrollableListInputLabel = css68`
|
|
15217
15435
|
align-items: center;
|
|
15218
15436
|
cursor: pointer;
|
|
15219
15437
|
display: flex;
|
|
15220
15438
|
padding: var(--spacing-xs) var(--spacing-base) var(--spacing-xs);
|
|
15221
15439
|
flex-grow: 1;
|
|
15222
15440
|
`;
|
|
15223
|
-
var ScrollableListInputText =
|
|
15441
|
+
var ScrollableListInputText = css68`
|
|
15224
15442
|
align-items: center;
|
|
15225
15443
|
display: flex;
|
|
15226
15444
|
gap: var(--spacing-sm);
|
|
15227
15445
|
flex-grow: 1;
|
|
15228
15446
|
flex-wrap: wrap;
|
|
15229
15447
|
`;
|
|
15230
|
-
var ScrollableListHiddenInput =
|
|
15448
|
+
var ScrollableListHiddenInput = css68`
|
|
15231
15449
|
position: absolute;
|
|
15232
15450
|
height: 0;
|
|
15233
15451
|
width: 0;
|
|
15234
15452
|
opacity: 0;
|
|
15235
15453
|
`;
|
|
15236
|
-
var ScrollableListIcon =
|
|
15454
|
+
var ScrollableListIcon = css68`
|
|
15237
15455
|
border-radius: var(--rounded-full);
|
|
15238
15456
|
background: var(--brand-secondary-3);
|
|
15239
15457
|
color: var(--white);
|
|
@@ -15241,12 +15459,12 @@ var ScrollableListIcon = css67`
|
|
|
15241
15459
|
min-width: 24px;
|
|
15242
15460
|
opacity: 0;
|
|
15243
15461
|
`;
|
|
15244
|
-
var ScrollableListIconVisible =
|
|
15462
|
+
var ScrollableListIconVisible = css68`
|
|
15245
15463
|
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
15246
15464
|
`;
|
|
15247
15465
|
|
|
15248
15466
|
// src/components/List/ScrollableListInputItem.tsx
|
|
15249
|
-
import { jsx as
|
|
15467
|
+
import { jsx as jsx82, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
15250
15468
|
var ScrollableListInputItem = ({
|
|
15251
15469
|
label,
|
|
15252
15470
|
icon,
|
|
@@ -15256,7 +15474,7 @@ var ScrollableListInputItem = ({
|
|
|
15256
15474
|
labelTestId,
|
|
15257
15475
|
...props
|
|
15258
15476
|
}) => {
|
|
15259
|
-
return /* @__PURE__ */
|
|
15477
|
+
return /* @__PURE__ */ jsx82(
|
|
15260
15478
|
"div",
|
|
15261
15479
|
{
|
|
15262
15480
|
css: [
|
|
@@ -15265,13 +15483,13 @@ var ScrollableListInputItem = ({
|
|
|
15265
15483
|
active ? ScrollableListItemActive : void 0
|
|
15266
15484
|
],
|
|
15267
15485
|
...props,
|
|
15268
|
-
children: /* @__PURE__ */
|
|
15269
|
-
/* @__PURE__ */
|
|
15486
|
+
children: /* @__PURE__ */ jsxs53("label", { "data-testid": labelTestId, css: ScrollableListInputLabel, children: [
|
|
15487
|
+
/* @__PURE__ */ jsxs53("span", { css: ScrollableListInputText, children: [
|
|
15270
15488
|
icon,
|
|
15271
15489
|
label
|
|
15272
15490
|
] }),
|
|
15273
|
-
/* @__PURE__ */
|
|
15274
|
-
/* @__PURE__ */
|
|
15491
|
+
/* @__PURE__ */ jsx82("div", { css: ScrollableListHiddenInput, children }),
|
|
15492
|
+
/* @__PURE__ */ jsx82(
|
|
15275
15493
|
Icon,
|
|
15276
15494
|
{
|
|
15277
15495
|
icon: CgCheck2,
|
|
@@ -15289,15 +15507,14 @@ var ScrollableListInputItem = ({
|
|
|
15289
15507
|
|
|
15290
15508
|
// src/components/List/ScrollableListItem.tsx
|
|
15291
15509
|
import { CgCheck as CgCheck3 } from "@react-icons/all-files/cg/CgCheck";
|
|
15292
|
-
import { jsx as
|
|
15510
|
+
import { jsx as jsx83, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
15293
15511
|
var ScrollableListItem = ({
|
|
15294
15512
|
buttonText,
|
|
15295
|
-
icon,
|
|
15296
15513
|
active,
|
|
15297
15514
|
disableShadow,
|
|
15298
15515
|
...props
|
|
15299
15516
|
}) => {
|
|
15300
|
-
return /* @__PURE__ */
|
|
15517
|
+
return /* @__PURE__ */ jsx83(
|
|
15301
15518
|
"div",
|
|
15302
15519
|
{
|
|
15303
15520
|
css: [
|
|
@@ -15305,12 +15522,9 @@ var ScrollableListItem = ({
|
|
|
15305
15522
|
disableShadow ? void 0 : ScrollableListItemShadow,
|
|
15306
15523
|
active ? ScrollableListItemActive : void 0
|
|
15307
15524
|
],
|
|
15308
|
-
children: /* @__PURE__ */
|
|
15309
|
-
/* @__PURE__ */
|
|
15310
|
-
|
|
15311
|
-
/* @__PURE__ */ jsx82("span", { children: buttonText })
|
|
15312
|
-
] }),
|
|
15313
|
-
/* @__PURE__ */ jsx82(
|
|
15525
|
+
children: /* @__PURE__ */ jsxs54("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
15526
|
+
/* @__PURE__ */ jsx83("span", { children: buttonText }),
|
|
15527
|
+
/* @__PURE__ */ jsx83(
|
|
15314
15528
|
Icon,
|
|
15315
15529
|
{
|
|
15316
15530
|
icon: CgCheck3,
|
|
@@ -15325,7 +15539,7 @@ var ScrollableListItem = ({
|
|
|
15325
15539
|
};
|
|
15326
15540
|
|
|
15327
15541
|
// src/components/LoadingIndicator/LoadingIndicator.styles.ts
|
|
15328
|
-
import { css as
|
|
15542
|
+
import { css as css69, keyframes as keyframes3 } from "@emotion/react";
|
|
15329
15543
|
function bounceFade(size) {
|
|
15330
15544
|
const bounceHeight = size === "lg" ? 10 : 5;
|
|
15331
15545
|
return keyframes3`
|
|
@@ -15346,13 +15560,13 @@ function bounceFade(size) {
|
|
|
15346
15560
|
}
|
|
15347
15561
|
`;
|
|
15348
15562
|
}
|
|
15349
|
-
var loader =
|
|
15563
|
+
var loader = css69`
|
|
15350
15564
|
display: inline-flex;
|
|
15351
15565
|
justify-content: center;
|
|
15352
15566
|
`;
|
|
15353
15567
|
function loadingDot(size) {
|
|
15354
15568
|
const dotSize = size === "lg" ? 8 : 4;
|
|
15355
|
-
return
|
|
15569
|
+
return css69`
|
|
15356
15570
|
background-color: var(--gray-700);
|
|
15357
15571
|
display: block;
|
|
15358
15572
|
border-radius: var(--rounded-full);
|
|
@@ -15377,25 +15591,25 @@ function loadingDot(size) {
|
|
|
15377
15591
|
}
|
|
15378
15592
|
|
|
15379
15593
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
15380
|
-
import { jsx as
|
|
15594
|
+
import { jsx as jsx84, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
15381
15595
|
var LoadingIndicator = ({
|
|
15382
15596
|
size = "lg",
|
|
15383
15597
|
...props
|
|
15384
15598
|
}) => {
|
|
15385
15599
|
const dotStyle = loadingDot(size);
|
|
15386
|
-
return /* @__PURE__ */
|
|
15387
|
-
/* @__PURE__ */
|
|
15388
|
-
/* @__PURE__ */
|
|
15389
|
-
/* @__PURE__ */
|
|
15600
|
+
return /* @__PURE__ */ jsxs55("div", { role: "alert", css: loader, "data-testid": "loading-indicator", ...props, children: [
|
|
15601
|
+
/* @__PURE__ */ jsx84("span", { css: dotStyle }),
|
|
15602
|
+
/* @__PURE__ */ jsx84("span", { css: dotStyle }),
|
|
15603
|
+
/* @__PURE__ */ jsx84("span", { css: dotStyle })
|
|
15390
15604
|
] });
|
|
15391
15605
|
};
|
|
15392
15606
|
|
|
15393
15607
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
15394
|
-
import { useCallback as
|
|
15608
|
+
import { useCallback as useCallback3, useEffect as useEffect9, useRef as useRef5 } from "react";
|
|
15395
15609
|
|
|
15396
15610
|
// src/components/LoadingOverlay/LoadingOverlay.styles.ts
|
|
15397
|
-
import { css as
|
|
15398
|
-
var loadingOverlayContainer =
|
|
15611
|
+
import { css as css70 } from "@emotion/react";
|
|
15612
|
+
var loadingOverlayContainer = css70`
|
|
15399
15613
|
position: absolute;
|
|
15400
15614
|
inset: 0;
|
|
15401
15615
|
overflow: hidden;
|
|
@@ -15403,30 +15617,30 @@ var loadingOverlayContainer = css69`
|
|
|
15403
15617
|
padding: var(--spacing-xl);
|
|
15404
15618
|
overflow-y: auto;
|
|
15405
15619
|
`;
|
|
15406
|
-
var loadingOverlayVisible =
|
|
15620
|
+
var loadingOverlayVisible = css70`
|
|
15407
15621
|
display: flex;
|
|
15408
15622
|
`;
|
|
15409
|
-
var loadingOverlayHidden =
|
|
15623
|
+
var loadingOverlayHidden = css70`
|
|
15410
15624
|
display: none;
|
|
15411
15625
|
`;
|
|
15412
|
-
var loadingOverlayBackground = (bgColor) =>
|
|
15626
|
+
var loadingOverlayBackground = (bgColor) => css70`
|
|
15413
15627
|
background: ${bgColor};
|
|
15414
15628
|
opacity: 0.92;
|
|
15415
15629
|
position: absolute;
|
|
15416
15630
|
inset: 0 0;
|
|
15417
15631
|
`;
|
|
15418
|
-
var loadingOverlayBody =
|
|
15632
|
+
var loadingOverlayBody = css70`
|
|
15419
15633
|
align-items: center;
|
|
15420
15634
|
display: flex;
|
|
15421
15635
|
flex-direction: column;
|
|
15422
15636
|
`;
|
|
15423
|
-
var loadingOverlayMessage =
|
|
15637
|
+
var loadingOverlayMessage = css70`
|
|
15424
15638
|
color: var(--gray-600);
|
|
15425
15639
|
margin: var(--spacing-base) 0 0;
|
|
15426
15640
|
`;
|
|
15427
15641
|
|
|
15428
15642
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
15429
|
-
import { jsx as
|
|
15643
|
+
import { jsx as jsx85, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
15430
15644
|
var LoadingOverlay = ({
|
|
15431
15645
|
isActive,
|
|
15432
15646
|
statusMessage,
|
|
@@ -15438,13 +15652,13 @@ var LoadingOverlay = ({
|
|
|
15438
15652
|
children
|
|
15439
15653
|
}) => {
|
|
15440
15654
|
const lottieRef = useRef5(null);
|
|
15441
|
-
const onLoopComplete =
|
|
15655
|
+
const onLoopComplete = useCallback3(() => {
|
|
15442
15656
|
var _a, _b, _c;
|
|
15443
15657
|
if (isPaused && !((_b = (_a = lottieRef.current) == null ? void 0 : _a.animationItem) == null ? void 0 : _b.isPaused)) {
|
|
15444
15658
|
(_c = lottieRef.current) == null ? void 0 : _c.stop();
|
|
15445
15659
|
}
|
|
15446
15660
|
}, [isPaused]);
|
|
15447
|
-
|
|
15661
|
+
useEffect9(() => {
|
|
15448
15662
|
var _a, _b, _c, _d, _e, _f;
|
|
15449
15663
|
if (!isPaused && ((_b = (_a = lottieRef.current) == null ? void 0 : _a.animationItem) == null ? void 0 : _b.isPaused)) {
|
|
15450
15664
|
(_c = lottieRef.current) == null ? void 0 : _c.play();
|
|
@@ -15452,7 +15666,7 @@ var LoadingOverlay = ({
|
|
|
15452
15666
|
(_f = lottieRef.current) == null ? void 0 : _f.stop();
|
|
15453
15667
|
}
|
|
15454
15668
|
}, [isPaused]);
|
|
15455
|
-
return /* @__PURE__ */
|
|
15669
|
+
return /* @__PURE__ */ jsxs56(
|
|
15456
15670
|
"div",
|
|
15457
15671
|
{
|
|
15458
15672
|
role: "alert",
|
|
@@ -15460,9 +15674,9 @@ var LoadingOverlay = ({
|
|
|
15460
15674
|
"aria-hidden": !isActive,
|
|
15461
15675
|
"aria-busy": isActive && !isPaused,
|
|
15462
15676
|
children: [
|
|
15463
|
-
/* @__PURE__ */
|
|
15464
|
-
/* @__PURE__ */
|
|
15465
|
-
/* @__PURE__ */
|
|
15677
|
+
/* @__PURE__ */ jsx85("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
15678
|
+
/* @__PURE__ */ jsx85("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ jsxs56("div", { css: loadingOverlayBody, children: [
|
|
15679
|
+
/* @__PURE__ */ jsx85(
|
|
15466
15680
|
AnimationFile,
|
|
15467
15681
|
{
|
|
15468
15682
|
lottieRef,
|
|
@@ -15477,15 +15691,15 @@ var LoadingOverlay = ({
|
|
|
15477
15691
|
}
|
|
15478
15692
|
}
|
|
15479
15693
|
),
|
|
15480
|
-
statusMessage ? /* @__PURE__ */
|
|
15481
|
-
/* @__PURE__ */
|
|
15694
|
+
statusMessage ? /* @__PURE__ */ jsx85("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
|
|
15695
|
+
/* @__PURE__ */ jsx85("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
|
|
15482
15696
|
] }) })
|
|
15483
15697
|
]
|
|
15484
15698
|
}
|
|
15485
15699
|
);
|
|
15486
15700
|
};
|
|
15487
15701
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
15488
|
-
return /* @__PURE__ */
|
|
15702
|
+
return /* @__PURE__ */ jsx85(
|
|
15489
15703
|
"svg",
|
|
15490
15704
|
{
|
|
15491
15705
|
viewBox: "0 0 38 38",
|
|
@@ -15495,9 +15709,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
15495
15709
|
stroke: "currentColor",
|
|
15496
15710
|
...props,
|
|
15497
15711
|
"data-testid": "loading-icon",
|
|
15498
|
-
children: /* @__PURE__ */
|
|
15499
|
-
/* @__PURE__ */
|
|
15500
|
-
/* @__PURE__ */
|
|
15712
|
+
children: /* @__PURE__ */ jsx85("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs56("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
15713
|
+
/* @__PURE__ */ jsx85("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
15714
|
+
/* @__PURE__ */ jsx85("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ jsx85(
|
|
15501
15715
|
"animateTransform",
|
|
15502
15716
|
{
|
|
15503
15717
|
attributeName: "transform",
|
|
@@ -15521,12 +15735,12 @@ import {
|
|
|
15521
15735
|
} from "reakit/Popover";
|
|
15522
15736
|
|
|
15523
15737
|
// src/components/Popover/Popover.styles.ts
|
|
15524
|
-
import { css as
|
|
15525
|
-
var PopoverBtn =
|
|
15738
|
+
import { css as css71 } from "@emotion/react";
|
|
15739
|
+
var PopoverBtn = css71`
|
|
15526
15740
|
border: none;
|
|
15527
15741
|
background: none;
|
|
15528
15742
|
`;
|
|
15529
|
-
var PopoverDefaulterTriggerBtn =
|
|
15743
|
+
var PopoverDefaulterTriggerBtn = css71`
|
|
15530
15744
|
border: none;
|
|
15531
15745
|
background: none;
|
|
15532
15746
|
padding: var(--spacing-2xs);
|
|
@@ -15536,7 +15750,7 @@ var PopoverDefaulterTriggerBtn = css70`
|
|
|
15536
15750
|
background-color: rgba(0, 0, 0, 0.05);
|
|
15537
15751
|
}
|
|
15538
15752
|
`;
|
|
15539
|
-
var Popover =
|
|
15753
|
+
var Popover = css71`
|
|
15540
15754
|
border-left: var(--spacing-xs) solid var(--brand-secondary-3);
|
|
15541
15755
|
border-radius: var(--rounded-base);
|
|
15542
15756
|
box-shadow: var(--shadow-base);
|
|
@@ -15550,7 +15764,7 @@ var Popover = css70`
|
|
|
15550
15764
|
`;
|
|
15551
15765
|
|
|
15552
15766
|
// src/components/Popover/Popover.tsx
|
|
15553
|
-
import { Fragment as
|
|
15767
|
+
import { Fragment as Fragment13, jsx as jsx86, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
|
|
15554
15768
|
var Popover2 = ({
|
|
15555
15769
|
iconColor = "action",
|
|
15556
15770
|
icon = "info",
|
|
@@ -15564,27 +15778,27 @@ var Popover2 = ({
|
|
|
15564
15778
|
...otherProps
|
|
15565
15779
|
}) => {
|
|
15566
15780
|
const popover = usePopoverState({ placement });
|
|
15567
|
-
return /* @__PURE__ */
|
|
15568
|
-
/* @__PURE__ */
|
|
15781
|
+
return /* @__PURE__ */ jsxs57(Fragment13, { children: [
|
|
15782
|
+
/* @__PURE__ */ jsx86(
|
|
15569
15783
|
PopoverDisclosure,
|
|
15570
15784
|
{
|
|
15571
15785
|
...popover,
|
|
15572
15786
|
css: [PopoverBtn, trigger ? void 0 : PopoverDefaulterTriggerBtn],
|
|
15573
15787
|
title: buttonText,
|
|
15574
15788
|
"data-testid": testId,
|
|
15575
|
-
children: trigger ? trigger : /* @__PURE__ */
|
|
15576
|
-
/* @__PURE__ */
|
|
15577
|
-
/* @__PURE__ */
|
|
15789
|
+
children: trigger ? trigger : /* @__PURE__ */ jsxs57(Fragment13, { children: [
|
|
15790
|
+
/* @__PURE__ */ jsx86(Icon, { icon, iconColor, size: iconSize }),
|
|
15791
|
+
/* @__PURE__ */ jsx86("span", { hidden: true, children: buttonText })
|
|
15578
15792
|
] })
|
|
15579
15793
|
}
|
|
15580
15794
|
),
|
|
15581
|
-
/* @__PURE__ */
|
|
15795
|
+
/* @__PURE__ */ jsx86(ReakitPopover, { css: Popover, ...otherProps, ...popover, role: "tooltip", "aria-label": ariaLabel, children })
|
|
15582
15796
|
] });
|
|
15583
15797
|
};
|
|
15584
15798
|
|
|
15585
15799
|
// src/components/MediaCard/MediaCard.styles.ts
|
|
15586
|
-
import { css as
|
|
15587
|
-
var cardBaseStyles =
|
|
15800
|
+
import { css as css72 } from "@emotion/react";
|
|
15801
|
+
var cardBaseStyles = css72`
|
|
15588
15802
|
display: flex;
|
|
15589
15803
|
flex-direction: column;
|
|
15590
15804
|
justify-content: flex-start;
|
|
@@ -15598,7 +15812,7 @@ var cardBaseStyles = css71`
|
|
|
15598
15812
|
outline: 2px solid var(--primary-action-default);
|
|
15599
15813
|
}
|
|
15600
15814
|
`;
|
|
15601
|
-
var cardBaseCoverIconWrapperStyles =
|
|
15815
|
+
var cardBaseCoverIconWrapperStyles = css72`
|
|
15602
15816
|
position: relative;
|
|
15603
15817
|
display: flex;
|
|
15604
15818
|
align-items: center;
|
|
@@ -15610,19 +15824,19 @@ var cardBaseCoverIconWrapperStyles = css71`
|
|
|
15610
15824
|
padding: var(--spacing-sm);
|
|
15611
15825
|
cursor: pointer;
|
|
15612
15826
|
`;
|
|
15613
|
-
var cardBaseContentStyles =
|
|
15827
|
+
var cardBaseContentStyles = css72`
|
|
15614
15828
|
padding: var(--spacing-sm);
|
|
15615
15829
|
`;
|
|
15616
|
-
var cardBaseTitleStyles =
|
|
15830
|
+
var cardBaseTitleStyles = css72`
|
|
15617
15831
|
font-size: var(--fs-sm);
|
|
15618
15832
|
color: var(--gray-500);
|
|
15619
15833
|
cursor: pointer;
|
|
15620
15834
|
`;
|
|
15621
|
-
var cardBaseSubtitleStyles =
|
|
15835
|
+
var cardBaseSubtitleStyles = css72`
|
|
15622
15836
|
font-size: var(--fs-xs);
|
|
15623
15837
|
color: var(--gray-500);
|
|
15624
15838
|
`;
|
|
15625
|
-
var cardBaseMenuButtonStyles =
|
|
15839
|
+
var cardBaseMenuButtonStyles = css72`
|
|
15626
15840
|
padding: var(--spacing-2xs);
|
|
15627
15841
|
border-radius: var(--rounded-sm);
|
|
15628
15842
|
border-width: 0;
|
|
@@ -15634,7 +15848,7 @@ var cardBaseMenuButtonStyles = css71`
|
|
|
15634
15848
|
`;
|
|
15635
15849
|
|
|
15636
15850
|
// src/components/MediaCard/MediaCard.tsx
|
|
15637
|
-
import { jsx as
|
|
15851
|
+
import { jsx as jsx87, jsxs as jsxs58 } from "@emotion/react/jsx-runtime";
|
|
15638
15852
|
var MediaCard = ({
|
|
15639
15853
|
title,
|
|
15640
15854
|
subtitle,
|
|
@@ -15645,13 +15859,13 @@ var MediaCard = ({
|
|
|
15645
15859
|
onClick,
|
|
15646
15860
|
...cardProps
|
|
15647
15861
|
}) => {
|
|
15648
|
-
return /* @__PURE__ */
|
|
15649
|
-
/* @__PURE__ */
|
|
15650
|
-
/* @__PURE__ */
|
|
15651
|
-
/* @__PURE__ */
|
|
15652
|
-
/* @__PURE__ */
|
|
15653
|
-
/* @__PURE__ */
|
|
15654
|
-
!infoPopover ? null : /* @__PURE__ */
|
|
15862
|
+
return /* @__PURE__ */ jsxs58(Card, { tag: "button", css: cardBaseStyles, ...cardProps, onClick, children: [
|
|
15863
|
+
/* @__PURE__ */ jsx87("div", { css: cardBaseCoverIconWrapperStyles, children: cover }),
|
|
15864
|
+
/* @__PURE__ */ jsx87("div", { css: cardBaseContentStyles, children: /* @__PURE__ */ jsxs58(HorizontalRhythm, { gap: "sm", justify: "space-between", align: "center", css: { width: "100%" }, children: [
|
|
15865
|
+
/* @__PURE__ */ jsxs58(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1 }, children: [
|
|
15866
|
+
/* @__PURE__ */ jsxs58(HorizontalRhythm, { gap: "xs", align: "center", children: [
|
|
15867
|
+
/* @__PURE__ */ jsx87("div", { css: cardBaseTitleStyles, "data-testid": "card-title", children: title }),
|
|
15868
|
+
!infoPopover ? null : /* @__PURE__ */ jsx87("div", { css: { display: "flex", cursor: "default" }, onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsx87(
|
|
15655
15869
|
Popover2,
|
|
15656
15870
|
{
|
|
15657
15871
|
baseId: `info-of-${title}`,
|
|
@@ -15660,17 +15874,17 @@ var MediaCard = ({
|
|
|
15660
15874
|
iconColor: "default",
|
|
15661
15875
|
tabIndex: 0,
|
|
15662
15876
|
css: { display: "block" },
|
|
15663
|
-
children: /* @__PURE__ */
|
|
15877
|
+
children: /* @__PURE__ */ jsx87("div", { children: infoPopover })
|
|
15664
15878
|
}
|
|
15665
15879
|
) })
|
|
15666
15880
|
] }),
|
|
15667
|
-
!subtitle ? null : /* @__PURE__ */
|
|
15881
|
+
!subtitle ? null : /* @__PURE__ */ jsx87("div", { css: cardBaseSubtitleStyles, children: subtitle })
|
|
15668
15882
|
] }),
|
|
15669
|
-
/* @__PURE__ */
|
|
15670
|
-
/* @__PURE__ */
|
|
15883
|
+
/* @__PURE__ */ jsx87("div", { css: { cursor: "default" }, onClick: (e) => e.stopPropagation(), children: sideSection }),
|
|
15884
|
+
/* @__PURE__ */ jsx87(VerticalRhythm, { align: "center", justify: "center", onClick: (e) => e.stopPropagation(), children: !menuItems || Array.isArray(menuItems) && !menuItems.length ? null : /* @__PURE__ */ jsx87(
|
|
15671
15885
|
Menu,
|
|
15672
15886
|
{
|
|
15673
|
-
menuTrigger: /* @__PURE__ */
|
|
15887
|
+
menuTrigger: /* @__PURE__ */ jsx87("button", { type: "button", "aria-label": "More options", css: cardBaseMenuButtonStyles, children: /* @__PURE__ */ jsx87(Icon, { icon: "more-alt", iconColor: "gray", size: 16 }) }),
|
|
15674
15888
|
menuLabel: `Menu of ${title}`,
|
|
15675
15889
|
children: menuItems
|
|
15676
15890
|
}
|
|
@@ -15684,8 +15898,8 @@ import { CgClose as CgClose5 } from "@react-icons/all-files/cg/CgClose";
|
|
|
15684
15898
|
import React19 from "react";
|
|
15685
15899
|
|
|
15686
15900
|
// src/components/Modal/Modal.styles.ts
|
|
15687
|
-
import { css as
|
|
15688
|
-
var modalWrapperStyles =
|
|
15901
|
+
import { css as css73 } from "@emotion/react";
|
|
15902
|
+
var modalWrapperStyles = css73`
|
|
15689
15903
|
position: fixed;
|
|
15690
15904
|
inset: 0;
|
|
15691
15905
|
display: flex;
|
|
@@ -15693,13 +15907,13 @@ var modalWrapperStyles = css72`
|
|
|
15693
15907
|
justify-content: center;
|
|
15694
15908
|
z-index: var(--z-drawer);
|
|
15695
15909
|
`;
|
|
15696
|
-
var modalBackdropStyles =
|
|
15910
|
+
var modalBackdropStyles = css73`
|
|
15697
15911
|
position: absolute;
|
|
15698
15912
|
inset: 0;
|
|
15699
15913
|
background-color: var(--brand-secondary-1);
|
|
15700
15914
|
opacity: 0.4;
|
|
15701
15915
|
`;
|
|
15702
|
-
var modalStyles =
|
|
15916
|
+
var modalStyles = css73`
|
|
15703
15917
|
position: relative;
|
|
15704
15918
|
display: flex;
|
|
15705
15919
|
flex-direction: column;
|
|
@@ -15714,21 +15928,21 @@ var modalStyles = css72`
|
|
|
15714
15928
|
color: unset;
|
|
15715
15929
|
z-index: 1;
|
|
15716
15930
|
`;
|
|
15717
|
-
var modalHeaderStyles =
|
|
15931
|
+
var modalHeaderStyles = css73`
|
|
15718
15932
|
display: flex;
|
|
15719
15933
|
align-items: flex-start;
|
|
15720
15934
|
gap: var(--spacing-base);
|
|
15721
15935
|
font-size: var(--fs-md);
|
|
15722
15936
|
line-height: 1.2;
|
|
15723
15937
|
`;
|
|
15724
|
-
var modalCloseButtonStyles =
|
|
15938
|
+
var modalCloseButtonStyles = css73`
|
|
15725
15939
|
display: block;
|
|
15726
15940
|
padding: 0;
|
|
15727
15941
|
background: transparent;
|
|
15728
15942
|
border: none;
|
|
15729
15943
|
margin-left: auto;
|
|
15730
15944
|
`;
|
|
15731
|
-
var modalContentStyles =
|
|
15945
|
+
var modalContentStyles = css73`
|
|
15732
15946
|
flex: 1;
|
|
15733
15947
|
background-color: white;
|
|
15734
15948
|
padding: var(--spacing-md);
|
|
@@ -15737,7 +15951,7 @@ var modalContentStyles = css72`
|
|
|
15737
15951
|
`;
|
|
15738
15952
|
|
|
15739
15953
|
// src/components/Modal/Modal.tsx
|
|
15740
|
-
import { jsx as
|
|
15954
|
+
import { jsx as jsx88, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
|
|
15741
15955
|
var defaultModalWidth = "75rem";
|
|
15742
15956
|
var defaultModalHeight = "51rem";
|
|
15743
15957
|
var Modal = React19.forwardRef(
|
|
@@ -15756,12 +15970,12 @@ var Modal = React19.forwardRef(
|
|
|
15756
15970
|
handler: onRequestClose,
|
|
15757
15971
|
shortcut: "escape"
|
|
15758
15972
|
});
|
|
15759
|
-
return /* @__PURE__ */
|
|
15760
|
-
/* @__PURE__ */
|
|
15761
|
-
/* @__PURE__ */
|
|
15762
|
-
/* @__PURE__ */
|
|
15763
|
-
/* @__PURE__ */
|
|
15764
|
-
/* @__PURE__ */
|
|
15973
|
+
return /* @__PURE__ */ jsxs59("div", { css: [modalWrapperStyles, wrapperClassName], children: [
|
|
15974
|
+
/* @__PURE__ */ jsx88("div", { onClick: onRequestClose, css: modalBackdropStyles }),
|
|
15975
|
+
/* @__PURE__ */ jsxs59("dialog", { ref, css: modalStyles, style: { width, height }, ...modalProps, children: [
|
|
15976
|
+
/* @__PURE__ */ jsxs59("div", { css: modalHeaderStyles, children: [
|
|
15977
|
+
/* @__PURE__ */ jsx88("div", { children: header }),
|
|
15978
|
+
/* @__PURE__ */ jsx88(
|
|
15765
15979
|
Button,
|
|
15766
15980
|
{
|
|
15767
15981
|
type: "button",
|
|
@@ -15770,12 +15984,12 @@ var Modal = React19.forwardRef(
|
|
|
15770
15984
|
title: "Close dialog",
|
|
15771
15985
|
buttonType: "ghost",
|
|
15772
15986
|
"data-testid": "close-dialog",
|
|
15773
|
-
children: /* @__PURE__ */
|
|
15987
|
+
children: /* @__PURE__ */ jsx88(Icon, { icon: CgClose5, iconColor: "gray", size: 24 })
|
|
15774
15988
|
}
|
|
15775
15989
|
)
|
|
15776
15990
|
] }),
|
|
15777
|
-
/* @__PURE__ */
|
|
15778
|
-
buttonGroup ? /* @__PURE__ */
|
|
15991
|
+
/* @__PURE__ */ jsx88("div", { css: [modalContentStyles, !withoutContentPadding ? null : { padding: 0 }], children }),
|
|
15992
|
+
buttonGroup ? /* @__PURE__ */ jsx88(HorizontalRhythm, { children: buttonGroup }) : null
|
|
15779
15993
|
] })
|
|
15780
15994
|
] });
|
|
15781
15995
|
}
|
|
@@ -15804,8 +16018,8 @@ var useParameterShell = () => {
|
|
|
15804
16018
|
};
|
|
15805
16019
|
|
|
15806
16020
|
// src/components/ParameterInputs/styles/LabelLeadingIcon.styles.ts
|
|
15807
|
-
import { css as
|
|
15808
|
-
var inputIconBtn =
|
|
16021
|
+
import { css as css74 } from "@emotion/react";
|
|
16022
|
+
var inputIconBtn = css74`
|
|
15809
16023
|
align-items: center;
|
|
15810
16024
|
border: none;
|
|
15811
16025
|
border-radius: var(--rounded-base);
|
|
@@ -15831,7 +16045,7 @@ var inputIconBtn = css73`
|
|
|
15831
16045
|
`;
|
|
15832
16046
|
|
|
15833
16047
|
// src/components/ParameterInputs/LabelLeadingIcon.tsx
|
|
15834
|
-
import { jsx as
|
|
16048
|
+
import { jsx as jsx89, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
|
|
15835
16049
|
var LabelLeadingIcon = ({
|
|
15836
16050
|
icon,
|
|
15837
16051
|
iconColor,
|
|
@@ -15843,7 +16057,7 @@ var LabelLeadingIcon = ({
|
|
|
15843
16057
|
...props
|
|
15844
16058
|
}) => {
|
|
15845
16059
|
const titleFr = title != null ? title : isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
15846
|
-
return /* @__PURE__ */
|
|
16060
|
+
return /* @__PURE__ */ jsx89(Tooltip, { title: titleFr, children: /* @__PURE__ */ jsxs60(
|
|
15847
16061
|
"button",
|
|
15848
16062
|
{
|
|
15849
16063
|
css: inputIconBtn,
|
|
@@ -15852,7 +16066,7 @@ var LabelLeadingIcon = ({
|
|
|
15852
16066
|
"aria-disabled": isLocked,
|
|
15853
16067
|
...props,
|
|
15854
16068
|
children: [
|
|
15855
|
-
/* @__PURE__ */
|
|
16069
|
+
/* @__PURE__ */ jsx89(
|
|
15856
16070
|
Icon,
|
|
15857
16071
|
{
|
|
15858
16072
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -15868,8 +16082,8 @@ var LabelLeadingIcon = ({
|
|
|
15868
16082
|
var ConnectToDataElementButton = LabelLeadingIcon;
|
|
15869
16083
|
|
|
15870
16084
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
15871
|
-
import { css as
|
|
15872
|
-
var inputContainer2 =
|
|
16085
|
+
import { css as css75 } from "@emotion/react";
|
|
16086
|
+
var inputContainer2 = css75`
|
|
15873
16087
|
position: relative;
|
|
15874
16088
|
|
|
15875
16089
|
&:hover,
|
|
@@ -15881,14 +16095,14 @@ var inputContainer2 = css74`
|
|
|
15881
16095
|
}
|
|
15882
16096
|
}
|
|
15883
16097
|
`;
|
|
15884
|
-
var labelText2 =
|
|
16098
|
+
var labelText2 = css75`
|
|
15885
16099
|
align-items: center;
|
|
15886
16100
|
display: flex;
|
|
15887
16101
|
gap: var(--spacing-xs);
|
|
15888
16102
|
font-weight: var(--fw-regular);
|
|
15889
16103
|
margin: 0 0 var(--spacing-xs);
|
|
15890
16104
|
`;
|
|
15891
|
-
var input2 =
|
|
16105
|
+
var input2 = css75`
|
|
15892
16106
|
display: block;
|
|
15893
16107
|
appearance: none;
|
|
15894
16108
|
box-sizing: border-box;
|
|
@@ -15932,18 +16146,18 @@ var input2 = css74`
|
|
|
15932
16146
|
color: var(--gray-400);
|
|
15933
16147
|
}
|
|
15934
16148
|
`;
|
|
15935
|
-
var selectInput =
|
|
16149
|
+
var selectInput = css75`
|
|
15936
16150
|
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");
|
|
15937
16151
|
background-position: right var(--spacing-sm) center;
|
|
15938
16152
|
background-repeat: no-repeat;
|
|
15939
16153
|
background-size: 1rem;
|
|
15940
16154
|
padding-right: var(--spacing-xl);
|
|
15941
16155
|
`;
|
|
15942
|
-
var inputWrapper =
|
|
16156
|
+
var inputWrapper = css75`
|
|
15943
16157
|
display: flex; // used to correct overflow with chrome textarea
|
|
15944
16158
|
position: relative;
|
|
15945
16159
|
`;
|
|
15946
|
-
var inputIcon2 =
|
|
16160
|
+
var inputIcon2 = css75`
|
|
15947
16161
|
align-items: center;
|
|
15948
16162
|
background: var(--white);
|
|
15949
16163
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -15959,7 +16173,7 @@ var inputIcon2 = css74`
|
|
|
15959
16173
|
width: var(--spacing-lg);
|
|
15960
16174
|
z-index: var(--z-10);
|
|
15961
16175
|
`;
|
|
15962
|
-
var inputToggleLabel2 =
|
|
16176
|
+
var inputToggleLabel2 = css75`
|
|
15963
16177
|
align-items: center;
|
|
15964
16178
|
background: var(--white);
|
|
15965
16179
|
cursor: pointer;
|
|
@@ -15970,7 +16184,7 @@ var inputToggleLabel2 = css74`
|
|
|
15970
16184
|
min-height: var(--spacing-md);
|
|
15971
16185
|
position: relative;
|
|
15972
16186
|
`;
|
|
15973
|
-
var toggleInput2 =
|
|
16187
|
+
var toggleInput2 = css75`
|
|
15974
16188
|
appearance: none;
|
|
15975
16189
|
border: 1px solid var(--gray-300);
|
|
15976
16190
|
background: var(--white);
|
|
@@ -16009,7 +16223,7 @@ var toggleInput2 = css74`
|
|
|
16009
16223
|
border-color: var(--gray-300);
|
|
16010
16224
|
}
|
|
16011
16225
|
`;
|
|
16012
|
-
var inlineLabel2 =
|
|
16226
|
+
var inlineLabel2 = css75`
|
|
16013
16227
|
padding-left: var(--spacing-lg);
|
|
16014
16228
|
font-size: var(--fs-sm);
|
|
16015
16229
|
font-weight: var(--fw-regular);
|
|
@@ -16025,7 +16239,7 @@ var inlineLabel2 = css74`
|
|
|
16025
16239
|
}
|
|
16026
16240
|
}
|
|
16027
16241
|
`;
|
|
16028
|
-
var inputMenu =
|
|
16242
|
+
var inputMenu = css75`
|
|
16029
16243
|
background: none;
|
|
16030
16244
|
border: none;
|
|
16031
16245
|
padding: var(--spacing-2xs);
|
|
@@ -16041,11 +16255,11 @@ var inputMenu = css74`
|
|
|
16041
16255
|
background-color: var(--gray-200);
|
|
16042
16256
|
}
|
|
16043
16257
|
`;
|
|
16044
|
-
var textarea2 =
|
|
16258
|
+
var textarea2 = css75`
|
|
16045
16259
|
resize: vertical;
|
|
16046
16260
|
min-height: 2rem;
|
|
16047
16261
|
`;
|
|
16048
|
-
var dataConnectButton =
|
|
16262
|
+
var dataConnectButton = css75`
|
|
16049
16263
|
align-items: center;
|
|
16050
16264
|
appearance: none;
|
|
16051
16265
|
box-sizing: border-box;
|
|
@@ -16080,7 +16294,7 @@ var dataConnectButton = css74`
|
|
|
16080
16294
|
pointer-events: none;
|
|
16081
16295
|
}
|
|
16082
16296
|
`;
|
|
16083
|
-
var linkParameterBtn =
|
|
16297
|
+
var linkParameterBtn = css75`
|
|
16084
16298
|
border-radius: var(--rounded-base);
|
|
16085
16299
|
background: var(--white);
|
|
16086
16300
|
border: none;
|
|
@@ -16089,7 +16303,7 @@ var linkParameterBtn = css74`
|
|
|
16089
16303
|
font-size: var(--fs-sm);
|
|
16090
16304
|
line-height: 1;
|
|
16091
16305
|
`;
|
|
16092
|
-
var linkParameterControls =
|
|
16306
|
+
var linkParameterControls = css75`
|
|
16093
16307
|
position: absolute;
|
|
16094
16308
|
inset: 0 0 0 auto;
|
|
16095
16309
|
padding: 0 var(--spacing-base);
|
|
@@ -16098,7 +16312,7 @@ var linkParameterControls = css74`
|
|
|
16098
16312
|
justify-content: center;
|
|
16099
16313
|
gap: var(--spacing-base);
|
|
16100
16314
|
`;
|
|
16101
|
-
var linkParameterInput = (withExternalLinkIcon) =>
|
|
16315
|
+
var linkParameterInput = (withExternalLinkIcon) => css75`
|
|
16102
16316
|
padding-right: calc(
|
|
16103
16317
|
${withExternalLinkIcon ? "calc(var(--spacing-lg) * 2 + var(--spacing-xs))" : "var(--spacing-xl)"} +
|
|
16104
16318
|
var(--spacing-base)
|
|
@@ -16111,7 +16325,7 @@ var linkParameterInput = (withExternalLinkIcon) => css74`
|
|
|
16111
16325
|
}
|
|
16112
16326
|
}
|
|
16113
16327
|
`;
|
|
16114
|
-
var linkParameterIcon =
|
|
16328
|
+
var linkParameterIcon = css75`
|
|
16115
16329
|
align-items: center;
|
|
16116
16330
|
color: var(--brand-secondary-3);
|
|
16117
16331
|
display: flex;
|
|
@@ -16126,7 +16340,7 @@ var linkParameterIcon = css74`
|
|
|
16126
16340
|
`;
|
|
16127
16341
|
|
|
16128
16342
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
16129
|
-
import { jsx as
|
|
16343
|
+
import { jsx as jsx90, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
|
|
16130
16344
|
function ParameterDataResource({
|
|
16131
16345
|
label,
|
|
16132
16346
|
labelLeadingIcon,
|
|
@@ -16136,12 +16350,12 @@ function ParameterDataResource({
|
|
|
16136
16350
|
disabled,
|
|
16137
16351
|
children
|
|
16138
16352
|
}) {
|
|
16139
|
-
return /* @__PURE__ */
|
|
16140
|
-
/* @__PURE__ */
|
|
16353
|
+
return /* @__PURE__ */ jsxs61("div", { "data-testid": "parameter-data-connect-button", children: [
|
|
16354
|
+
/* @__PURE__ */ jsxs61("span", { css: labelText2, children: [
|
|
16141
16355
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
16142
16356
|
label
|
|
16143
16357
|
] }),
|
|
16144
|
-
/* @__PURE__ */
|
|
16358
|
+
/* @__PURE__ */ jsxs61(
|
|
16145
16359
|
"button",
|
|
16146
16360
|
{
|
|
16147
16361
|
type: "button",
|
|
@@ -16150,30 +16364,30 @@ function ParameterDataResource({
|
|
|
16150
16364
|
disabled,
|
|
16151
16365
|
onClick: onConnectDatasource,
|
|
16152
16366
|
children: [
|
|
16153
|
-
/* @__PURE__ */
|
|
16367
|
+
/* @__PURE__ */ jsx90("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx90(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
16154
16368
|
children
|
|
16155
16369
|
]
|
|
16156
16370
|
}
|
|
16157
16371
|
),
|
|
16158
|
-
caption ? /* @__PURE__ */
|
|
16372
|
+
caption ? /* @__PURE__ */ jsx90(Caption, { children: caption }) : null
|
|
16159
16373
|
] });
|
|
16160
16374
|
}
|
|
16161
16375
|
|
|
16162
16376
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
16163
|
-
import { css as
|
|
16164
|
-
var ParameterDrawerHeaderContainer =
|
|
16377
|
+
import { css as css76 } from "@emotion/react";
|
|
16378
|
+
var ParameterDrawerHeaderContainer = css76`
|
|
16165
16379
|
align-items: center;
|
|
16166
16380
|
display: flex;
|
|
16167
16381
|
gap: var(--spacing-base);
|
|
16168
16382
|
justify-content: space-between;
|
|
16169
16383
|
margin-bottom: var(--spacing-sm);
|
|
16170
16384
|
`;
|
|
16171
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
16385
|
+
var ParameterDrawerHeaderTitleGroup = css76`
|
|
16172
16386
|
align-items: center;
|
|
16173
16387
|
display: flex;
|
|
16174
16388
|
gap: var(--spacing-sm);
|
|
16175
16389
|
`;
|
|
16176
|
-
var ParameterDrawerHeaderTitle =
|
|
16390
|
+
var ParameterDrawerHeaderTitle = css76`
|
|
16177
16391
|
text-overflow: ellipsis;
|
|
16178
16392
|
white-space: nowrap;
|
|
16179
16393
|
overflow: hidden;
|
|
@@ -16181,12 +16395,12 @@ var ParameterDrawerHeaderTitle = css75`
|
|
|
16181
16395
|
`;
|
|
16182
16396
|
|
|
16183
16397
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
16184
|
-
import { jsx as
|
|
16398
|
+
import { jsx as jsx91, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
|
|
16185
16399
|
var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
16186
|
-
return /* @__PURE__ */
|
|
16187
|
-
/* @__PURE__ */
|
|
16400
|
+
return /* @__PURE__ */ jsxs62("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
16401
|
+
/* @__PURE__ */ jsxs62("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
16188
16402
|
iconBeforeTitle,
|
|
16189
|
-
/* @__PURE__ */
|
|
16403
|
+
/* @__PURE__ */ jsx91(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
|
|
16190
16404
|
] }),
|
|
16191
16405
|
children
|
|
16192
16406
|
] });
|
|
@@ -16196,8 +16410,8 @@ var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
|
16196
16410
|
import { forwardRef as forwardRef10 } from "react";
|
|
16197
16411
|
|
|
16198
16412
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
16199
|
-
import { css as
|
|
16200
|
-
var fieldsetStyles =
|
|
16413
|
+
import { css as css77 } from "@emotion/react";
|
|
16414
|
+
var fieldsetStyles = css77`
|
|
16201
16415
|
&:disabled,
|
|
16202
16416
|
[readonly] {
|
|
16203
16417
|
pointer-events: none;
|
|
@@ -16208,7 +16422,7 @@ var fieldsetStyles = css76`
|
|
|
16208
16422
|
}
|
|
16209
16423
|
}
|
|
16210
16424
|
`;
|
|
16211
|
-
var fieldsetLegend2 =
|
|
16425
|
+
var fieldsetLegend2 = css77`
|
|
16212
16426
|
display: block;
|
|
16213
16427
|
font-weight: var(--fw-medium);
|
|
16214
16428
|
margin-bottom: var(--spacing-sm);
|
|
@@ -16216,11 +16430,11 @@ var fieldsetLegend2 = css76`
|
|
|
16216
16430
|
`;
|
|
16217
16431
|
|
|
16218
16432
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
16219
|
-
import { jsx as
|
|
16433
|
+
import { jsx as jsx92, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
|
|
16220
16434
|
var ParameterGroup = forwardRef10(
|
|
16221
16435
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
16222
|
-
return /* @__PURE__ */
|
|
16223
|
-
/* @__PURE__ */
|
|
16436
|
+
return /* @__PURE__ */ jsxs63("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
16437
|
+
/* @__PURE__ */ jsx92("legend", { css: fieldsetLegend2, children: legend }),
|
|
16224
16438
|
children
|
|
16225
16439
|
] });
|
|
16226
16440
|
}
|
|
@@ -16230,57 +16444,19 @@ var ParameterGroup = forwardRef10(
|
|
|
16230
16444
|
import { forwardRef as forwardRef12, useDeferredValue } from "react";
|
|
16231
16445
|
|
|
16232
16446
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
16233
|
-
import {
|
|
16447
|
+
import { useState as useState10 } from "react";
|
|
16234
16448
|
import { createPortal as createPortal2 } from "react-dom";
|
|
16235
16449
|
|
|
16236
|
-
// src/utils/url.ts
|
|
16237
|
-
var isValidUrl = (url, options = {}) => {
|
|
16238
|
-
try {
|
|
16239
|
-
new URL(url, options.allowRelative ? "https://defaultbaseurl.com" : void 0);
|
|
16240
|
-
return true;
|
|
16241
|
-
} catch (e) {
|
|
16242
|
-
return false;
|
|
16243
|
-
}
|
|
16244
|
-
};
|
|
16245
|
-
|
|
16246
16450
|
// src/components/ParameterInputs/styles/ParameterImage.styles.ts
|
|
16247
|
-
import { css as
|
|
16248
|
-
var
|
|
16249
|
-
position: relative;
|
|
16250
|
-
display: flex;
|
|
16251
|
-
flex-direction: column;
|
|
16252
|
-
background: var(--gray-50);
|
|
16253
|
-
max-width: 100%;
|
|
16254
|
-
max-height: 100%;
|
|
16255
|
-
`;
|
|
16256
|
-
var imageWrapperLoading = css77`
|
|
16257
|
-
animation: ${skeletonLoading} var(--duration-slow) linear infinite alternate;
|
|
16258
|
-
`;
|
|
16259
|
-
var img = css77`
|
|
16260
|
-
object-fit: contain;
|
|
16261
|
-
max-width: 100%;
|
|
16262
|
-
height: auto;
|
|
16263
|
-
opacity: var(--opacity-0);
|
|
16264
|
-
margin: 0 auto;
|
|
16265
|
-
`;
|
|
16266
|
-
var imgLoading = css77`
|
|
16267
|
-
opacity: 0;
|
|
16268
|
-
`;
|
|
16269
|
-
var imgLoaded = css77`
|
|
16270
|
-
animation: ${fadeIn} var(--duration-slow) var(--timing-ease-out) forwards;
|
|
16271
|
-
opacity: 1;
|
|
16272
|
-
`;
|
|
16273
|
-
var brokenImage = css77`
|
|
16274
|
-
height: 160px;
|
|
16275
|
-
`;
|
|
16276
|
-
var previewWrapper = css77`
|
|
16451
|
+
import { css as css78 } from "@emotion/react";
|
|
16452
|
+
var previewWrapper = css78`
|
|
16277
16453
|
margin-top: var(--spacing-xs);
|
|
16278
16454
|
background: var(--gray-50);
|
|
16279
16455
|
padding: var(--spacing-sm);
|
|
16280
16456
|
border: solid 1px var(--gray-300);
|
|
16281
16457
|
border-radius: var(--rounded-sm);
|
|
16282
16458
|
`;
|
|
16283
|
-
var previewLink =
|
|
16459
|
+
var previewLink = css78`
|
|
16284
16460
|
display: block;
|
|
16285
16461
|
width: 100%;
|
|
16286
16462
|
|
|
@@ -16288,7 +16464,7 @@ var previewLink = css77`
|
|
|
16288
16464
|
max-height: 9rem;
|
|
16289
16465
|
}
|
|
16290
16466
|
`;
|
|
16291
|
-
var previewModalWrapper =
|
|
16467
|
+
var previewModalWrapper = css78`
|
|
16292
16468
|
background: var(--gray-50);
|
|
16293
16469
|
display: flex;
|
|
16294
16470
|
height: 100%;
|
|
@@ -16297,7 +16473,7 @@ var previewModalWrapper = css77`
|
|
|
16297
16473
|
border: solid 1px var(--gray-300);
|
|
16298
16474
|
border-radius: var(--rounded-sm);
|
|
16299
16475
|
`;
|
|
16300
|
-
var previewModalImage =
|
|
16476
|
+
var previewModalImage = css78`
|
|
16301
16477
|
display: flex;
|
|
16302
16478
|
height: 100%;
|
|
16303
16479
|
width: 100%;
|
|
@@ -16309,120 +16485,58 @@ var previewModalImage = css77`
|
|
|
16309
16485
|
`;
|
|
16310
16486
|
|
|
16311
16487
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
16312
|
-
import { Fragment as
|
|
16488
|
+
import { Fragment as Fragment14, jsx as jsx93, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
|
|
16313
16489
|
function ParameterImagePreview({ imageSrc }) {
|
|
16314
|
-
const [showModal, setShowModal] =
|
|
16315
|
-
return imageSrc ? /* @__PURE__ */
|
|
16316
|
-
/* @__PURE__ */
|
|
16317
|
-
/* @__PURE__ */
|
|
16490
|
+
const [showModal, setShowModal] = useState10(false);
|
|
16491
|
+
return imageSrc ? /* @__PURE__ */ jsxs64("div", { css: previewWrapper, children: [
|
|
16492
|
+
/* @__PURE__ */ jsx93(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
|
|
16493
|
+
/* @__PURE__ */ jsx93(
|
|
16318
16494
|
"button",
|
|
16319
16495
|
{
|
|
16320
16496
|
css: previewLink,
|
|
16321
16497
|
onClick: () => {
|
|
16322
16498
|
setShowModal(true);
|
|
16323
16499
|
},
|
|
16324
|
-
children: /* @__PURE__ */
|
|
16500
|
+
children: /* @__PURE__ */ jsx93(Image, { src: imageSrc, "data-testid": "parameter-image-preview" })
|
|
16325
16501
|
}
|
|
16326
16502
|
)
|
|
16327
16503
|
] }) : null;
|
|
16328
16504
|
}
|
|
16329
16505
|
var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
16330
|
-
return open ? /* @__PURE__ */
|
|
16331
|
-
/* @__PURE__ */
|
|
16506
|
+
return open ? /* @__PURE__ */ jsx93(Fragment14, { children: createPortal2(
|
|
16507
|
+
/* @__PURE__ */ jsx93(
|
|
16332
16508
|
Modal,
|
|
16333
16509
|
{
|
|
16334
16510
|
header: "Image Preview",
|
|
16335
16511
|
onRequestClose,
|
|
16336
16512
|
withoutContentPadding: true,
|
|
16337
|
-
buttonGroup: /* @__PURE__ */
|
|
16338
|
-
children: /* @__PURE__ */
|
|
16513
|
+
buttonGroup: /* @__PURE__ */ jsx93(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
|
|
16514
|
+
children: /* @__PURE__ */ jsx93("div", { css: previewModalWrapper, children: /* @__PURE__ */ jsx93(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
|
|
16339
16515
|
}
|
|
16340
16516
|
),
|
|
16341
16517
|
document.body
|
|
16342
16518
|
) }) : null;
|
|
16343
16519
|
};
|
|
16344
|
-
var Image = ({ src, className }) => {
|
|
16345
|
-
const [loading, setLoading] = useState9(false);
|
|
16346
|
-
const [loadErrorText, setLoadErrorText] = useState9("");
|
|
16347
|
-
const errorText = "The text you provided is not a valid URL";
|
|
16348
|
-
const updateImageSrc = useCallback3(() => {
|
|
16349
|
-
let message = "";
|
|
16350
|
-
try {
|
|
16351
|
-
if (src !== "") {
|
|
16352
|
-
const url = String(src).startsWith("//") ? `${location.protocol}${src}` : String(src);
|
|
16353
|
-
if (!isValidUrl(url) || !url.startsWith("https")) {
|
|
16354
|
-
throw Error(errorText);
|
|
16355
|
-
}
|
|
16356
|
-
}
|
|
16357
|
-
message = "";
|
|
16358
|
-
} catch (e) {
|
|
16359
|
-
message = errorText;
|
|
16360
|
-
}
|
|
16361
|
-
setLoadErrorText(message);
|
|
16362
|
-
}, [setLoadErrorText, src]);
|
|
16363
|
-
useEffect9(() => {
|
|
16364
|
-
updateImageSrc();
|
|
16365
|
-
}, [src]);
|
|
16366
|
-
const handleLoadEvent = () => {
|
|
16367
|
-
setLoadErrorText("");
|
|
16368
|
-
if (src) {
|
|
16369
|
-
setLoading(true);
|
|
16370
|
-
}
|
|
16371
|
-
const timer = setTimeout(() => {
|
|
16372
|
-
setLoading(false);
|
|
16373
|
-
}, 1e3);
|
|
16374
|
-
return () => clearTimeout(timer);
|
|
16375
|
-
};
|
|
16376
|
-
const handleErrorEvent = () => {
|
|
16377
|
-
setLoadErrorText("The value you provided is not a valid image URL");
|
|
16378
|
-
};
|
|
16379
|
-
return /* @__PURE__ */ jsxs63(
|
|
16380
|
-
"span",
|
|
16381
|
-
{
|
|
16382
|
-
className,
|
|
16383
|
-
css: [imageWrapper, loading ? imageWrapperLoading : null],
|
|
16384
|
-
children: [
|
|
16385
|
-
src && !loadErrorText ? /* @__PURE__ */ jsx92(
|
|
16386
|
-
"img",
|
|
16387
|
-
{
|
|
16388
|
-
src,
|
|
16389
|
-
css: [img, loading ? imgLoading : imgLoaded],
|
|
16390
|
-
alt: "image preview",
|
|
16391
|
-
onLoad: handleLoadEvent,
|
|
16392
|
-
onError: handleErrorEvent,
|
|
16393
|
-
loading: "lazy",
|
|
16394
|
-
"data-testid": "parameter-image-preview"
|
|
16395
|
-
}
|
|
16396
|
-
) : null,
|
|
16397
|
-
src && loadErrorText ? /* @__PURE__ */ jsxs63(Fragment13, { children: [
|
|
16398
|
-
/* @__PURE__ */ jsx92(ImageBroken, { css: [brokenImage, img, imgLoaded] }),
|
|
16399
|
-
/* @__PURE__ */ jsx92(ErrorMessage, { message: loadErrorText })
|
|
16400
|
-
] }) : null
|
|
16401
|
-
]
|
|
16402
|
-
}
|
|
16403
|
-
);
|
|
16404
|
-
};
|
|
16405
16520
|
|
|
16406
16521
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
16407
|
-
import {
|
|
16408
|
-
import { useState as useState10 } from "react";
|
|
16522
|
+
import { useState as useState11 } from "react";
|
|
16409
16523
|
|
|
16410
16524
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
16411
|
-
import { jsx as
|
|
16525
|
+
import { jsx as jsx94 } from "@emotion/react/jsx-runtime";
|
|
16412
16526
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
16413
|
-
return !asSpan ? /* @__PURE__ */
|
|
16527
|
+
return !asSpan ? /* @__PURE__ */ jsx94("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx94("span", { "aria-labelledby": id, css: labelText2, children });
|
|
16414
16528
|
};
|
|
16415
16529
|
|
|
16416
16530
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
16417
16531
|
import { forwardRef as forwardRef11 } from "react";
|
|
16418
|
-
import { jsx as
|
|
16532
|
+
import { jsx as jsx95 } from "@emotion/react/jsx-runtime";
|
|
16419
16533
|
var ParameterMenuButton = forwardRef11(
|
|
16420
16534
|
({ label, children }, ref) => {
|
|
16421
|
-
return /* @__PURE__ */
|
|
16535
|
+
return /* @__PURE__ */ jsx95(
|
|
16422
16536
|
Menu,
|
|
16423
16537
|
{
|
|
16424
16538
|
menuLabel: `${label} menu`,
|
|
16425
|
-
menuTrigger: /* @__PURE__ */
|
|
16539
|
+
menuTrigger: /* @__PURE__ */ jsx95(
|
|
16426
16540
|
"button",
|
|
16427
16541
|
{
|
|
16428
16542
|
className: "parameter-menu",
|
|
@@ -16430,7 +16544,7 @@ var ParameterMenuButton = forwardRef11(
|
|
|
16430
16544
|
type: "button",
|
|
16431
16545
|
"aria-label": `${label} options`,
|
|
16432
16546
|
ref,
|
|
16433
|
-
children: /* @__PURE__ */
|
|
16547
|
+
children: /* @__PURE__ */ jsx95(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
16434
16548
|
}
|
|
16435
16549
|
),
|
|
16436
16550
|
children
|
|
@@ -16440,8 +16554,8 @@ var ParameterMenuButton = forwardRef11(
|
|
|
16440
16554
|
);
|
|
16441
16555
|
|
|
16442
16556
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
16443
|
-
import { css as
|
|
16444
|
-
var emptyParameterShell =
|
|
16557
|
+
import { css as css79 } from "@emotion/react";
|
|
16558
|
+
var emptyParameterShell = css79`
|
|
16445
16559
|
border-radius: var(--rounded-sm);
|
|
16446
16560
|
background: var(--white);
|
|
16447
16561
|
flex-grow: 1;
|
|
@@ -16449,7 +16563,7 @@ var emptyParameterShell = css78`
|
|
|
16449
16563
|
position: relative;
|
|
16450
16564
|
max-width: 100%;
|
|
16451
16565
|
`;
|
|
16452
|
-
var emptyParameterShellText =
|
|
16566
|
+
var emptyParameterShellText = css79`
|
|
16453
16567
|
background: var(--brand-secondary-6);
|
|
16454
16568
|
border-radius: var(--rounded-sm);
|
|
16455
16569
|
padding: var(--spacing-sm);
|
|
@@ -16457,7 +16571,7 @@ var emptyParameterShellText = css78`
|
|
|
16457
16571
|
font-size: var(--fs-sm);
|
|
16458
16572
|
margin: 0;
|
|
16459
16573
|
`;
|
|
16460
|
-
var overrideMarker =
|
|
16574
|
+
var overrideMarker = css79`
|
|
16461
16575
|
border-radius: var(--rounded-sm);
|
|
16462
16576
|
border: 10px solid var(--gray-300);
|
|
16463
16577
|
border-left-color: transparent;
|
|
@@ -16468,7 +16582,7 @@ var overrideMarker = css78`
|
|
|
16468
16582
|
`;
|
|
16469
16583
|
|
|
16470
16584
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
16471
|
-
import { jsx as
|
|
16585
|
+
import { jsx as jsx96, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
|
|
16472
16586
|
var extractParameterProps = (props) => {
|
|
16473
16587
|
const {
|
|
16474
16588
|
id,
|
|
@@ -16520,42 +16634,29 @@ var ParameterShell = ({
|
|
|
16520
16634
|
errorTestId,
|
|
16521
16635
|
captionTestId,
|
|
16522
16636
|
menuItems,
|
|
16523
|
-
actionItems,
|
|
16524
16637
|
hasOverriddenValue,
|
|
16525
16638
|
onResetOverriddenValue,
|
|
16526
16639
|
title,
|
|
16527
16640
|
children,
|
|
16528
16641
|
...props
|
|
16529
16642
|
}) => {
|
|
16530
|
-
const [manualErrorMessage, setManualErrorMessage] =
|
|
16643
|
+
const [manualErrorMessage, setManualErrorMessage] = useState11(void 0);
|
|
16531
16644
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
16532
16645
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
16533
|
-
return /* @__PURE__ */
|
|
16534
|
-
hiddenLabel || title ? null : /* @__PURE__ */
|
|
16646
|
+
return /* @__PURE__ */ jsxs65("div", { css: inputContainer2, ...props, children: [
|
|
16647
|
+
hiddenLabel || title ? null : /* @__PURE__ */ jsxs65(ParameterLabel, { id, css: labelText2, children: [
|
|
16535
16648
|
labelLeadingIcon != null ? labelLeadingIcon : null,
|
|
16536
16649
|
label,
|
|
16537
16650
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
16538
16651
|
] }),
|
|
16539
|
-
!title ? null : /* @__PURE__ */
|
|
16652
|
+
!title ? null : /* @__PURE__ */ jsxs65(ParameterLabel, { id, asSpan: true, children: [
|
|
16540
16653
|
labelLeadingIcon != null ? labelLeadingIcon : null,
|
|
16541
16654
|
title,
|
|
16542
16655
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
16543
16656
|
] }),
|
|
16544
|
-
/* @__PURE__ */
|
|
16545
|
-
|
|
16546
|
-
|
|
16547
|
-
{
|
|
16548
|
-
css: [
|
|
16549
|
-
inputMenu,
|
|
16550
|
-
menuItems ? css79`
|
|
16551
|
-
right: 1.25rem;
|
|
16552
|
-
` : void 0
|
|
16553
|
-
],
|
|
16554
|
-
children: actionItems
|
|
16555
|
-
}
|
|
16556
|
-
) : null,
|
|
16557
|
-
menuItems ? /* @__PURE__ */ jsx95(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
16558
|
-
/* @__PURE__ */ jsx95(
|
|
16657
|
+
/* @__PURE__ */ jsxs65("div", { css: inputWrapper, children: [
|
|
16658
|
+
menuItems ? /* @__PURE__ */ jsx96(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
16659
|
+
/* @__PURE__ */ jsx96(
|
|
16559
16660
|
ParameterShellContext.Provider,
|
|
16560
16661
|
{
|
|
16561
16662
|
value: {
|
|
@@ -16565,31 +16666,31 @@ var ParameterShell = ({
|
|
|
16565
16666
|
errorMessage: errorMessaging,
|
|
16566
16667
|
handleManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
16567
16668
|
},
|
|
16568
|
-
children: /* @__PURE__ */
|
|
16669
|
+
children: /* @__PURE__ */ jsxs65(ParameterShellPlaceholder, { children: [
|
|
16569
16670
|
children,
|
|
16570
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
16671
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx96(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
16571
16672
|
] })
|
|
16572
16673
|
}
|
|
16573
16674
|
)
|
|
16574
16675
|
] }),
|
|
16575
|
-
caption ? /* @__PURE__ */
|
|
16576
|
-
errorMessaging ? /* @__PURE__ */
|
|
16577
|
-
warningMessage ? /* @__PURE__ */
|
|
16578
|
-
infoMessage ? /* @__PURE__ */
|
|
16676
|
+
caption ? /* @__PURE__ */ jsx96(Caption, { testId: captionTestId, children: caption }) : null,
|
|
16677
|
+
errorMessaging ? /* @__PURE__ */ jsx96(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null,
|
|
16678
|
+
warningMessage ? /* @__PURE__ */ jsx96(WarningMessage, { message: warningMessage }) : null,
|
|
16679
|
+
infoMessage ? /* @__PURE__ */ jsx96(InfoMessage, { message: infoMessage }) : null
|
|
16579
16680
|
] });
|
|
16580
16681
|
};
|
|
16581
16682
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
16582
|
-
return /* @__PURE__ */
|
|
16683
|
+
return /* @__PURE__ */ jsx96("div", { css: emptyParameterShell, children });
|
|
16583
16684
|
};
|
|
16584
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
16685
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx96(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx96("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx96("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
16585
16686
|
|
|
16586
16687
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
16587
|
-
import { Fragment as
|
|
16688
|
+
import { Fragment as Fragment15, jsx as jsx97, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
|
|
16588
16689
|
var ParameterImage = forwardRef12(
|
|
16589
16690
|
({ children, ...props }, ref) => {
|
|
16590
16691
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16591
|
-
return /* @__PURE__ */
|
|
16592
|
-
/* @__PURE__ */
|
|
16692
|
+
return /* @__PURE__ */ jsxs66(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
|
|
16693
|
+
/* @__PURE__ */ jsx97(ParameterImageInner, { ref, ...innerProps }),
|
|
16593
16694
|
children
|
|
16594
16695
|
] });
|
|
16595
16696
|
}
|
|
@@ -16598,8 +16699,8 @@ var ParameterImageInner = forwardRef12((props, ref) => {
|
|
|
16598
16699
|
const { value } = props;
|
|
16599
16700
|
const { id, label, hiddenLabel, errorMessage } = useParameterShell();
|
|
16600
16701
|
const deferredValue = useDeferredValue(value);
|
|
16601
|
-
return /* @__PURE__ */
|
|
16602
|
-
/* @__PURE__ */
|
|
16702
|
+
return /* @__PURE__ */ jsxs66(Fragment15, { children: [
|
|
16703
|
+
/* @__PURE__ */ jsx97(
|
|
16603
16704
|
"input",
|
|
16604
16705
|
{
|
|
16605
16706
|
css: input2,
|
|
@@ -16611,21 +16712,21 @@ var ParameterImageInner = forwardRef12((props, ref) => {
|
|
|
16611
16712
|
...props
|
|
16612
16713
|
}
|
|
16613
16714
|
),
|
|
16614
|
-
errorMessage || props.disablePreview ? null : /* @__PURE__ */
|
|
16715
|
+
errorMessage || props.disablePreview ? null : /* @__PURE__ */ jsx97(ParameterImagePreview, { imageSrc: deferredValue })
|
|
16615
16716
|
] });
|
|
16616
16717
|
});
|
|
16617
16718
|
|
|
16618
16719
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
16619
16720
|
import { forwardRef as forwardRef13 } from "react";
|
|
16620
|
-
import { jsx as
|
|
16721
|
+
import { jsx as jsx98 } from "@emotion/react/jsx-runtime";
|
|
16621
16722
|
var ParameterInput = forwardRef13((props, ref) => {
|
|
16622
16723
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16623
|
-
return /* @__PURE__ */
|
|
16724
|
+
return /* @__PURE__ */ jsx98(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx98(ParameterInputInner, { ref, ...innerProps }) });
|
|
16624
16725
|
});
|
|
16625
16726
|
var ParameterInputInner = forwardRef13(
|
|
16626
16727
|
({ ...props }, ref) => {
|
|
16627
16728
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
16628
|
-
return /* @__PURE__ */
|
|
16729
|
+
return /* @__PURE__ */ jsx98(
|
|
16629
16730
|
"input",
|
|
16630
16731
|
{
|
|
16631
16732
|
css: input2,
|
|
@@ -16642,18 +16743,18 @@ var ParameterInputInner = forwardRef13(
|
|
|
16642
16743
|
|
|
16643
16744
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
16644
16745
|
import { forwardRef as forwardRef14 } from "react";
|
|
16645
|
-
import { jsx as
|
|
16746
|
+
import { jsx as jsx99, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
|
|
16646
16747
|
var ParameterLink = forwardRef14(
|
|
16647
16748
|
({ disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
16648
16749
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16649
|
-
return /* @__PURE__ */
|
|
16750
|
+
return /* @__PURE__ */ jsx99(
|
|
16650
16751
|
ParameterShell,
|
|
16651
16752
|
{
|
|
16652
16753
|
"data-testid": "link-parameter-editor",
|
|
16653
16754
|
...shellProps,
|
|
16654
16755
|
label: innerProps.value ? shellProps.label : "",
|
|
16655
16756
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
16656
|
-
children: /* @__PURE__ */
|
|
16757
|
+
children: /* @__PURE__ */ jsx99(
|
|
16657
16758
|
ParameterLinkInner,
|
|
16658
16759
|
{
|
|
16659
16760
|
onConnectLink,
|
|
@@ -16670,9 +16771,9 @@ var ParameterLinkInner = forwardRef14(
|
|
|
16670
16771
|
({ externalLink, onConnectLink, disabled, buttonText = "Select link", ...props }, ref) => {
|
|
16671
16772
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
16672
16773
|
if (!props.value)
|
|
16673
|
-
return /* @__PURE__ */
|
|
16674
|
-
return /* @__PURE__ */
|
|
16675
|
-
/* @__PURE__ */
|
|
16774
|
+
return /* @__PURE__ */ jsx99("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText });
|
|
16775
|
+
return /* @__PURE__ */ jsxs67("div", { css: inputWrapper, children: [
|
|
16776
|
+
/* @__PURE__ */ jsx99(
|
|
16676
16777
|
"input",
|
|
16677
16778
|
{
|
|
16678
16779
|
type: "text",
|
|
@@ -16684,8 +16785,8 @@ var ParameterLinkInner = forwardRef14(
|
|
|
16684
16785
|
...props
|
|
16685
16786
|
}
|
|
16686
16787
|
),
|
|
16687
|
-
/* @__PURE__ */
|
|
16688
|
-
/* @__PURE__ */
|
|
16788
|
+
/* @__PURE__ */ jsxs67("div", { css: linkParameterControls, children: [
|
|
16789
|
+
/* @__PURE__ */ jsx99(
|
|
16689
16790
|
"button",
|
|
16690
16791
|
{
|
|
16691
16792
|
type: "button",
|
|
@@ -16696,7 +16797,7 @@ var ParameterLinkInner = forwardRef14(
|
|
|
16696
16797
|
children: "edit"
|
|
16697
16798
|
}
|
|
16698
16799
|
),
|
|
16699
|
-
externalLink ? /* @__PURE__ */
|
|
16800
|
+
externalLink ? /* @__PURE__ */ jsx99(
|
|
16700
16801
|
"a",
|
|
16701
16802
|
{
|
|
16702
16803
|
href: externalLink,
|
|
@@ -16704,7 +16805,7 @@ var ParameterLinkInner = forwardRef14(
|
|
|
16704
16805
|
title: "Open link in new tab",
|
|
16705
16806
|
target: "_blank",
|
|
16706
16807
|
rel: "noopener noreferrer",
|
|
16707
|
-
children: /* @__PURE__ */
|
|
16808
|
+
children: /* @__PURE__ */ jsx99(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
16708
16809
|
}
|
|
16709
16810
|
) : null
|
|
16710
16811
|
] })
|
|
@@ -16713,7 +16814,7 @@ var ParameterLinkInner = forwardRef14(
|
|
|
16713
16814
|
);
|
|
16714
16815
|
|
|
16715
16816
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
16716
|
-
import { Fragment as
|
|
16817
|
+
import { Fragment as Fragment16, jsx as jsx100, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
|
|
16717
16818
|
var ParameterNameAndPublicIdInput = ({
|
|
16718
16819
|
id,
|
|
16719
16820
|
onBlur,
|
|
@@ -16739,8 +16840,8 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16739
16840
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
16740
16841
|
};
|
|
16741
16842
|
autoFocus == null ? void 0 : autoFocus();
|
|
16742
|
-
return /* @__PURE__ */
|
|
16743
|
-
/* @__PURE__ */
|
|
16843
|
+
return /* @__PURE__ */ jsxs68(Fragment16, { children: [
|
|
16844
|
+
/* @__PURE__ */ jsx100(
|
|
16744
16845
|
ParameterInput,
|
|
16745
16846
|
{
|
|
16746
16847
|
id: nameIdField,
|
|
@@ -16759,7 +16860,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16759
16860
|
value: values[nameIdField]
|
|
16760
16861
|
}
|
|
16761
16862
|
),
|
|
16762
|
-
/* @__PURE__ */
|
|
16863
|
+
/* @__PURE__ */ jsx100(
|
|
16763
16864
|
ParameterInput,
|
|
16764
16865
|
{
|
|
16765
16866
|
id: publicIdFieldName,
|
|
@@ -16773,11 +16874,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16773
16874
|
caption: publicIdCaption,
|
|
16774
16875
|
placeholder: publicIdPlaceholderText,
|
|
16775
16876
|
errorMessage: publicIdError,
|
|
16776
|
-
menuItems: /* @__PURE__ */
|
|
16877
|
+
menuItems: /* @__PURE__ */ jsx100(
|
|
16777
16878
|
MenuItem,
|
|
16778
16879
|
{
|
|
16779
16880
|
disabled: !values[publicIdFieldName],
|
|
16780
|
-
icon: /* @__PURE__ */
|
|
16881
|
+
icon: /* @__PURE__ */ jsx100(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
16781
16882
|
onClick: handleCopyPidFieldValue,
|
|
16782
16883
|
children: "Copy"
|
|
16783
16884
|
}
|
|
@@ -16785,7 +16886,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16785
16886
|
value: values[publicIdFieldName]
|
|
16786
16887
|
}
|
|
16787
16888
|
),
|
|
16788
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
16889
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx100(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
16789
16890
|
] });
|
|
16790
16891
|
};
|
|
16791
16892
|
|
|
@@ -17137,7 +17238,7 @@ import {
|
|
|
17137
17238
|
ElementNode as ElementNode2,
|
|
17138
17239
|
FOCUS_COMMAND
|
|
17139
17240
|
} from "lexical";
|
|
17140
|
-
import { useCallback as useCallback4, useEffect as useEffect11, useRef as useRef6, useState as
|
|
17241
|
+
import { useCallback as useCallback4, useEffect as useEffect11, useRef as useRef6, useState as useState12 } from "react";
|
|
17141
17242
|
|
|
17142
17243
|
// src/components/ParameterInputs/rich-text/utils.ts
|
|
17143
17244
|
import { $isAtNodeEnd } from "@lexical/selection";
|
|
@@ -17175,7 +17276,7 @@ var getSelectedNode = (selection) => {
|
|
|
17175
17276
|
};
|
|
17176
17277
|
|
|
17177
17278
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
17178
|
-
import { Fragment as
|
|
17279
|
+
import { Fragment as Fragment17, jsx as jsx101, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
|
|
17179
17280
|
var isProjectMapLinkValue = (value) => {
|
|
17180
17281
|
return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
|
|
17181
17282
|
value.nodeId && value.path && value.projectMapId
|
|
@@ -17480,10 +17581,10 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17480
17581
|
return path;
|
|
17481
17582
|
};
|
|
17482
17583
|
const [editor] = useLexicalComposerContext2();
|
|
17483
|
-
const [linkPopoverState, setLinkPopoverState] =
|
|
17584
|
+
const [linkPopoverState, setLinkPopoverState] = useState12();
|
|
17484
17585
|
const linkPopoverElRef = useRef6(null);
|
|
17485
|
-
const [isEditorFocused, setIsEditorFocused] =
|
|
17486
|
-
const [isLinkPopoverFocused, setIsLinkPopoverFocused] =
|
|
17586
|
+
const [isEditorFocused, setIsEditorFocused] = useState12(false);
|
|
17587
|
+
const [isLinkPopoverFocused, setIsLinkPopoverFocused] = useState12(false);
|
|
17487
17588
|
useEffect11(() => {
|
|
17488
17589
|
if (!isEditorFocused && !isLinkPopoverFocused) {
|
|
17489
17590
|
setLinkPopoverState(void 0);
|
|
@@ -17618,8 +17719,8 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17618
17719
|
});
|
|
17619
17720
|
});
|
|
17620
17721
|
};
|
|
17621
|
-
return /* @__PURE__ */
|
|
17622
|
-
/* @__PURE__ */
|
|
17722
|
+
return /* @__PURE__ */ jsxs69(Fragment17, { children: [
|
|
17723
|
+
/* @__PURE__ */ jsx101(
|
|
17623
17724
|
NodeEventPlugin,
|
|
17624
17725
|
{
|
|
17625
17726
|
nodeType: LinkNode,
|
|
@@ -17629,7 +17730,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17629
17730
|
}
|
|
17630
17731
|
}
|
|
17631
17732
|
),
|
|
17632
|
-
linkPopoverState ? /* @__PURE__ */
|
|
17733
|
+
linkPopoverState ? /* @__PURE__ */ jsx101(
|
|
17633
17734
|
"div",
|
|
17634
17735
|
{
|
|
17635
17736
|
css: linkPopover,
|
|
@@ -17638,8 +17739,8 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17638
17739
|
top: linkPopoverState.position.y
|
|
17639
17740
|
},
|
|
17640
17741
|
ref: linkPopoverElRef,
|
|
17641
|
-
children: /* @__PURE__ */
|
|
17642
|
-
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */
|
|
17742
|
+
children: /* @__PURE__ */ jsxs69("div", { css: linkPopoverContainer, children: [
|
|
17743
|
+
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ jsx101(
|
|
17643
17744
|
"a",
|
|
17644
17745
|
{
|
|
17645
17746
|
href: parsePath(
|
|
@@ -17651,7 +17752,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17651
17752
|
children: parsePath(linkPopoverState.node.__link.path)
|
|
17652
17753
|
}
|
|
17653
17754
|
),
|
|
17654
|
-
/* @__PURE__ */
|
|
17755
|
+
/* @__PURE__ */ jsx101(
|
|
17655
17756
|
Button,
|
|
17656
17757
|
{
|
|
17657
17758
|
size: "xs",
|
|
@@ -17659,7 +17760,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17659
17760
|
onEditLinkNode(linkPopoverState.node);
|
|
17660
17761
|
},
|
|
17661
17762
|
buttonType: "ghost",
|
|
17662
|
-
children: /* @__PURE__ */
|
|
17763
|
+
children: /* @__PURE__ */ jsx101(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
|
|
17663
17764
|
}
|
|
17664
17765
|
)
|
|
17665
17766
|
] })
|
|
@@ -17684,7 +17785,7 @@ import {
|
|
|
17684
17785
|
INDENT_CONTENT_COMMAND
|
|
17685
17786
|
} from "lexical";
|
|
17686
17787
|
import { useEffect as useEffect12 } from "react";
|
|
17687
|
-
import { jsx as
|
|
17788
|
+
import { jsx as jsx102 } from "@emotion/react/jsx-runtime";
|
|
17688
17789
|
function isIndentPermitted(maxDepth) {
|
|
17689
17790
|
const selection = $getSelection2();
|
|
17690
17791
|
if (!$isRangeSelection2(selection)) {
|
|
@@ -17714,7 +17815,7 @@ function ListIndentPlugin({ maxDepth }) {
|
|
|
17714
17815
|
COMMAND_PRIORITY_CRITICAL
|
|
17715
17816
|
);
|
|
17716
17817
|
}, [editor, maxDepth]);
|
|
17717
|
-
return /* @__PURE__ */
|
|
17818
|
+
return /* @__PURE__ */ jsx102(TabIndentationPlugin, {});
|
|
17718
17819
|
}
|
|
17719
17820
|
|
|
17720
17821
|
// src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
|
|
@@ -17740,8 +17841,8 @@ import {
|
|
|
17740
17841
|
FORMAT_TEXT_COMMAND,
|
|
17741
17842
|
SELECTION_CHANGE_COMMAND
|
|
17742
17843
|
} from "lexical";
|
|
17743
|
-
import { useCallback as useCallback5, useEffect as useEffect13, useMemo as useMemo3, useState as
|
|
17744
|
-
import { Fragment as
|
|
17844
|
+
import { useCallback as useCallback5, useEffect as useEffect13, useMemo as useMemo3, useState as useState13 } from "react";
|
|
17845
|
+
import { Fragment as Fragment18, jsx as jsx103, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
17745
17846
|
var toolbar = css82`
|
|
17746
17847
|
background: var(--gray-50);
|
|
17747
17848
|
border-radius: var(--rounded-base);
|
|
@@ -17793,7 +17894,7 @@ var toolbarChevron = css82`
|
|
|
17793
17894
|
margin-left: var(--spacing-xs);
|
|
17794
17895
|
`;
|
|
17795
17896
|
var RichTextToolbarIcon = ({ icon }) => {
|
|
17796
|
-
return /* @__PURE__ */
|
|
17897
|
+
return /* @__PURE__ */ jsx103(Icon, { icon, css: toolbarIcon, size: "1rem" });
|
|
17797
17898
|
};
|
|
17798
17899
|
var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
|
|
17799
17900
|
["bold", "format-bold"],
|
|
@@ -17902,15 +18003,15 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
17902
18003
|
});
|
|
17903
18004
|
});
|
|
17904
18005
|
}, [editor, updateToolbar]);
|
|
17905
|
-
return /* @__PURE__ */
|
|
17906
|
-
/* @__PURE__ */
|
|
18006
|
+
return /* @__PURE__ */ jsxs70("div", { css: toolbar, children: [
|
|
18007
|
+
/* @__PURE__ */ jsxs70(
|
|
17907
18008
|
Menu,
|
|
17908
18009
|
{
|
|
17909
18010
|
menuLabel: "Elements",
|
|
17910
|
-
menuTrigger: /* @__PURE__ */
|
|
18011
|
+
menuTrigger: /* @__PURE__ */ jsxs70("button", { css: richTextToolbarButton, title: "Text styles", children: [
|
|
17911
18012
|
visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
|
|
17912
18013
|
" ",
|
|
17913
|
-
/* @__PURE__ */
|
|
18014
|
+
/* @__PURE__ */ jsx103(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
|
|
17914
18015
|
] }),
|
|
17915
18016
|
placement: "bottom-start",
|
|
17916
18017
|
children: [
|
|
@@ -17920,7 +18021,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
17920
18021
|
type: "paragraph"
|
|
17921
18022
|
},
|
|
17922
18023
|
...visibleTextualElements
|
|
17923
|
-
].map((element) => /* @__PURE__ */
|
|
18024
|
+
].map((element) => /* @__PURE__ */ jsx103(
|
|
17924
18025
|
MenuItem,
|
|
17925
18026
|
{
|
|
17926
18027
|
onClick: () => {
|
|
@@ -17930,12 +18031,12 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
17930
18031
|
},
|
|
17931
18032
|
element.type
|
|
17932
18033
|
)),
|
|
17933
|
-
visibleTextualElements.length === 0 ? /* @__PURE__ */
|
|
18034
|
+
visibleTextualElements.length === 0 ? /* @__PURE__ */ jsx103(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
|
|
17934
18035
|
]
|
|
17935
18036
|
}
|
|
17936
18037
|
),
|
|
17937
|
-
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
17938
|
-
visibleFormatsWithIcon.map((format) => /* @__PURE__ */
|
|
18038
|
+
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsxs70("div", { css: toolbarGroup, children: [
|
|
18039
|
+
visibleFormatsWithIcon.map((format) => /* @__PURE__ */ jsx103(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ jsx103(
|
|
17939
18040
|
"button",
|
|
17940
18041
|
{
|
|
17941
18042
|
onClick: () => {
|
|
@@ -17945,16 +18046,16 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
17945
18046
|
richTextToolbarButton,
|
|
17946
18047
|
activeFormats.includes(format.type) ? richTextToolbarButtonActive : null
|
|
17947
18048
|
],
|
|
17948
|
-
children: /* @__PURE__ */
|
|
18049
|
+
children: /* @__PURE__ */ jsx103(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
|
|
17949
18050
|
}
|
|
17950
18051
|
) }, format.type)),
|
|
17951
|
-
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
18052
|
+
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsx103(
|
|
17952
18053
|
Menu,
|
|
17953
18054
|
{
|
|
17954
18055
|
menuLabel: "Alternative text styles",
|
|
17955
|
-
menuTrigger: /* @__PURE__ */
|
|
18056
|
+
menuTrigger: /* @__PURE__ */ jsx103("button", { css: richTextToolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ jsx103(Icon, { icon: "more-alt", css: toolbarIcon }) }),
|
|
17956
18057
|
placement: "bottom-start",
|
|
17957
|
-
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */
|
|
18058
|
+
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ jsx103(
|
|
17958
18059
|
MenuItem,
|
|
17959
18060
|
{
|
|
17960
18061
|
onClick: () => {
|
|
@@ -17967,19 +18068,19 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
17967
18068
|
}
|
|
17968
18069
|
) : null
|
|
17969
18070
|
] }) : null,
|
|
17970
|
-
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */
|
|
17971
|
-
linkElementVisible ? /* @__PURE__ */
|
|
18071
|
+
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ jsxs70("div", { css: toolbarGroup, children: [
|
|
18072
|
+
linkElementVisible ? /* @__PURE__ */ jsx103(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ jsx103(
|
|
17972
18073
|
"button",
|
|
17973
18074
|
{
|
|
17974
18075
|
onClick: () => {
|
|
17975
18076
|
isLink ? editor.dispatchCommand(REMOVE_LINK_NODE_COMMAND, {}) : editor.dispatchCommand(OPEN_LINK_NODE_MODAL_COMMAND, {});
|
|
17976
18077
|
},
|
|
17977
18078
|
css: [richTextToolbarButton, isLink ? richTextToolbarButtonActive : null],
|
|
17978
|
-
children: /* @__PURE__ */
|
|
18079
|
+
children: /* @__PURE__ */ jsx103(RichTextToolbarIcon, { icon: "link" })
|
|
17979
18080
|
}
|
|
17980
18081
|
) }) : null,
|
|
17981
|
-
visibleLists.size > 0 ? /* @__PURE__ */
|
|
17982
|
-
visibleLists.has("unorderedList") ? /* @__PURE__ */
|
|
18082
|
+
visibleLists.size > 0 ? /* @__PURE__ */ jsxs70(Fragment18, { children: [
|
|
18083
|
+
visibleLists.has("unorderedList") ? /* @__PURE__ */ jsx103(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ jsx103(
|
|
17983
18084
|
"button",
|
|
17984
18085
|
{
|
|
17985
18086
|
onClick: () => {
|
|
@@ -17989,10 +18090,10 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
17989
18090
|
richTextToolbarButton,
|
|
17990
18091
|
activeElement === "unorderedList" ? richTextToolbarButtonActive : null
|
|
17991
18092
|
],
|
|
17992
|
-
children: /* @__PURE__ */
|
|
18093
|
+
children: /* @__PURE__ */ jsx103(RichTextToolbarIcon, { icon: "layout-list" })
|
|
17993
18094
|
}
|
|
17994
18095
|
) }) : null,
|
|
17995
|
-
visibleLists.has("orderedList") ? /* @__PURE__ */
|
|
18096
|
+
visibleLists.has("orderedList") ? /* @__PURE__ */ jsx103(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ jsx103(
|
|
17996
18097
|
"button",
|
|
17997
18098
|
{
|
|
17998
18099
|
onClick: () => {
|
|
@@ -18002,32 +18103,32 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18002
18103
|
richTextToolbarButton,
|
|
18003
18104
|
activeElement === "orderedList" ? richTextToolbarButtonActive : null
|
|
18004
18105
|
],
|
|
18005
|
-
children: /* @__PURE__ */
|
|
18106
|
+
children: /* @__PURE__ */ jsx103(RichTextToolbarIcon, { icon: "layout-list-numbered" })
|
|
18006
18107
|
}
|
|
18007
18108
|
) }) : null
|
|
18008
18109
|
] }) : null,
|
|
18009
|
-
quoteElementVisible ? /* @__PURE__ */
|
|
18110
|
+
quoteElementVisible ? /* @__PURE__ */ jsx103(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ jsx103(
|
|
18010
18111
|
"button",
|
|
18011
18112
|
{
|
|
18012
18113
|
onClick: () => {
|
|
18013
18114
|
activeElement === "quote" ? onSelectElement("paragraph") : onSelectElement("quote");
|
|
18014
18115
|
},
|
|
18015
18116
|
css: [richTextToolbarButton, activeElement === "quote" ? richTextToolbarButtonActive : null],
|
|
18016
|
-
children: /* @__PURE__ */
|
|
18117
|
+
children: /* @__PURE__ */ jsx103(RichTextToolbarIcon, { icon: "quote" })
|
|
18017
18118
|
}
|
|
18018
18119
|
) }) : null,
|
|
18019
|
-
codeElementVisible ? /* @__PURE__ */
|
|
18120
|
+
codeElementVisible ? /* @__PURE__ */ jsx103(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ jsx103(
|
|
18020
18121
|
"button",
|
|
18021
18122
|
{
|
|
18022
18123
|
onClick: () => {
|
|
18023
18124
|
activeElement === "code" ? onSelectElement("paragraph") : onSelectElement("code");
|
|
18024
18125
|
},
|
|
18025
18126
|
css: [richTextToolbarButton, activeElement === "code" ? richTextToolbarButtonActive : null],
|
|
18026
|
-
children: /* @__PURE__ */
|
|
18127
|
+
children: /* @__PURE__ */ jsx103(RichTextToolbarIcon, { icon: "code-slash" })
|
|
18027
18128
|
}
|
|
18028
18129
|
) }) : null
|
|
18029
18130
|
] }) : null,
|
|
18030
|
-
customControls ? /* @__PURE__ */
|
|
18131
|
+
customControls ? /* @__PURE__ */ jsx103("div", { css: toolbarGroup, children: customControls }) : null
|
|
18031
18132
|
] });
|
|
18032
18133
|
};
|
|
18033
18134
|
var RichTextToolbar_default = RichTextToolbar;
|
|
@@ -18051,7 +18152,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
18051
18152
|
const enabledBuiltInFormatsWithoutIcon = enabledBuiltInFormats.filter(
|
|
18052
18153
|
(format) => !FORMATS_WITH_ICON.has(format.type)
|
|
18053
18154
|
);
|
|
18054
|
-
const [activeFormats, setActiveFormats] =
|
|
18155
|
+
const [activeFormats, setActiveFormats] = useState13([]);
|
|
18055
18156
|
const visibleFormatsWithIcon = useMemo3(() => {
|
|
18056
18157
|
const visibleFormats = /* @__PURE__ */ new Set();
|
|
18057
18158
|
activeFormats.filter((type) => FORMATS_WITH_ICON.has(type)).forEach((type) => {
|
|
@@ -18072,7 +18173,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
18072
18173
|
});
|
|
18073
18174
|
return richTextBuiltInFormats.filter((format) => visibleFormats.has(format.type));
|
|
18074
18175
|
}, [activeFormats, enabledBuiltInFormatsWithoutIcon]);
|
|
18075
|
-
const [activeElement, setActiveElement] =
|
|
18176
|
+
const [activeElement, setActiveElement] = useState13("paragraph");
|
|
18076
18177
|
const enabledTextualElements = enabledBuiltInElements.filter(
|
|
18077
18178
|
(element) => TEXTUAL_ELEMENTS.includes(element.type)
|
|
18078
18179
|
);
|
|
@@ -18087,7 +18188,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
18087
18188
|
}
|
|
18088
18189
|
);
|
|
18089
18190
|
}, [activeElement, (_a = config == null ? void 0 : config.elements) == null ? void 0 : _a.builtIn, enabledTextualElements]);
|
|
18090
|
-
const [isLink, setIsLink] =
|
|
18191
|
+
const [isLink, setIsLink] = useState13(false);
|
|
18091
18192
|
const linkElementVisible = useMemo3(() => {
|
|
18092
18193
|
return enabledBuiltInElements.some((element) => element.type === "link") || isLink;
|
|
18093
18194
|
}, [isLink, enabledBuiltInElements]);
|
|
@@ -18141,7 +18242,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
18141
18242
|
};
|
|
18142
18243
|
|
|
18143
18244
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
18144
|
-
import { Fragment as
|
|
18245
|
+
import { Fragment as Fragment19, jsx as jsx104, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
|
|
18145
18246
|
var ParameterRichText = ({
|
|
18146
18247
|
label,
|
|
18147
18248
|
labelLeadingIcon,
|
|
@@ -18166,7 +18267,7 @@ var ParameterRichText = ({
|
|
|
18166
18267
|
variables,
|
|
18167
18268
|
customControls
|
|
18168
18269
|
}) => {
|
|
18169
|
-
return /* @__PURE__ */
|
|
18270
|
+
return /* @__PURE__ */ jsxs71(
|
|
18170
18271
|
ParameterShell,
|
|
18171
18272
|
{
|
|
18172
18273
|
"data-testid": "parameter-input",
|
|
@@ -18180,7 +18281,7 @@ var ParameterRichText = ({
|
|
|
18180
18281
|
captionTestId,
|
|
18181
18282
|
menuItems,
|
|
18182
18283
|
children: [
|
|
18183
|
-
/* @__PURE__ */
|
|
18284
|
+
/* @__PURE__ */ jsx104(
|
|
18184
18285
|
ParameterRichTextInner,
|
|
18185
18286
|
{
|
|
18186
18287
|
value,
|
|
@@ -18198,7 +18299,7 @@ var ParameterRichText = ({
|
|
|
18198
18299
|
children
|
|
18199
18300
|
}
|
|
18200
18301
|
),
|
|
18201
|
-
menuItems ? /* @__PURE__ */
|
|
18302
|
+
menuItems ? /* @__PURE__ */ jsx104(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx104(Fragment19, { children: menuItems }) }) : null
|
|
18202
18303
|
]
|
|
18203
18304
|
}
|
|
18204
18305
|
);
|
|
@@ -18309,8 +18410,8 @@ var ParameterRichTextInner = ({
|
|
|
18309
18410
|
},
|
|
18310
18411
|
editable: !readOnly
|
|
18311
18412
|
};
|
|
18312
|
-
return /* @__PURE__ */
|
|
18313
|
-
/* @__PURE__ */
|
|
18413
|
+
return /* @__PURE__ */ jsxs71(Fragment19, { children: [
|
|
18414
|
+
/* @__PURE__ */ jsx104("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx104(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx104(
|
|
18314
18415
|
RichText,
|
|
18315
18416
|
{
|
|
18316
18417
|
onChange,
|
|
@@ -18366,20 +18467,20 @@ var RichText = ({
|
|
|
18366
18467
|
removeUpdateListener();
|
|
18367
18468
|
};
|
|
18368
18469
|
}, []);
|
|
18369
|
-
return /* @__PURE__ */
|
|
18370
|
-
readOnly ? null : /* @__PURE__ */
|
|
18371
|
-
/* @__PURE__ */
|
|
18372
|
-
/* @__PURE__ */
|
|
18470
|
+
return /* @__PURE__ */ jsxs71(Fragment19, { children: [
|
|
18471
|
+
readOnly ? null : /* @__PURE__ */ jsx104(RichTextToolbar_default, { config, customControls }),
|
|
18472
|
+
/* @__PURE__ */ jsxs71("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
|
|
18473
|
+
/* @__PURE__ */ jsx104(
|
|
18373
18474
|
RichTextPlugin,
|
|
18374
18475
|
{
|
|
18375
|
-
contentEditable: /* @__PURE__ */
|
|
18376
|
-
placeholder: /* @__PURE__ */
|
|
18476
|
+
contentEditable: /* @__PURE__ */ jsx104(ContentEditable, { css: editorInput, className: editorInputClassName }),
|
|
18477
|
+
placeholder: /* @__PURE__ */ jsx104("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
|
|
18377
18478
|
ErrorBoundary: LexicalErrorBoundary
|
|
18378
18479
|
}
|
|
18379
18480
|
),
|
|
18380
|
-
/* @__PURE__ */
|
|
18381
|
-
readOnly ? null : /* @__PURE__ */
|
|
18382
|
-
/* @__PURE__ */
|
|
18481
|
+
/* @__PURE__ */ jsx104(ListPlugin, {}),
|
|
18482
|
+
readOnly ? null : /* @__PURE__ */ jsx104(HistoryPlugin, {}),
|
|
18483
|
+
/* @__PURE__ */ jsx104(
|
|
18383
18484
|
LinkNodePlugin,
|
|
18384
18485
|
{
|
|
18385
18486
|
onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve(),
|
|
@@ -18389,27 +18490,27 @@ var RichText = ({
|
|
|
18389
18490
|
} : void 0
|
|
18390
18491
|
}
|
|
18391
18492
|
),
|
|
18392
|
-
/* @__PURE__ */
|
|
18393
|
-
/* @__PURE__ */
|
|
18394
|
-
/* @__PURE__ */
|
|
18395
|
-
/* @__PURE__ */
|
|
18493
|
+
/* @__PURE__ */ jsx104(ListIndentPlugin, { maxDepth: 4 }),
|
|
18494
|
+
/* @__PURE__ */ jsx104(DisableStylesPlugin, {}),
|
|
18495
|
+
/* @__PURE__ */ jsx104(MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
|
|
18496
|
+
/* @__PURE__ */ jsx104(Fragment19, { children })
|
|
18396
18497
|
] })
|
|
18397
18498
|
] });
|
|
18398
18499
|
};
|
|
18399
18500
|
|
|
18400
18501
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
18401
18502
|
import { forwardRef as forwardRef15 } from "react";
|
|
18402
|
-
import { jsx as
|
|
18503
|
+
import { jsx as jsx105, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
|
|
18403
18504
|
var ParameterSelect = forwardRef15(
|
|
18404
18505
|
({ defaultOption, options, ...props }, ref) => {
|
|
18405
18506
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18406
|
-
return /* @__PURE__ */
|
|
18507
|
+
return /* @__PURE__ */ jsx105(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx105(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
18407
18508
|
}
|
|
18408
18509
|
);
|
|
18409
18510
|
var ParameterSelectInner = forwardRef15(
|
|
18410
18511
|
({ defaultOption, options, ...props }, ref) => {
|
|
18411
18512
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
18412
|
-
return /* @__PURE__ */
|
|
18513
|
+
return /* @__PURE__ */ jsxs72(
|
|
18413
18514
|
"select",
|
|
18414
18515
|
{
|
|
18415
18516
|
css: [input2, selectInput],
|
|
@@ -18418,10 +18519,10 @@ var ParameterSelectInner = forwardRef15(
|
|
|
18418
18519
|
ref,
|
|
18419
18520
|
...props,
|
|
18420
18521
|
children: [
|
|
18421
|
-
defaultOption ? /* @__PURE__ */
|
|
18522
|
+
defaultOption ? /* @__PURE__ */ jsx105("option", { value: "", children: defaultOption }) : null,
|
|
18422
18523
|
options.map((option) => {
|
|
18423
18524
|
var _a;
|
|
18424
|
-
return /* @__PURE__ */
|
|
18525
|
+
return /* @__PURE__ */ jsx105("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
18425
18526
|
})
|
|
18426
18527
|
]
|
|
18427
18528
|
}
|
|
@@ -18431,14 +18532,14 @@ var ParameterSelectInner = forwardRef15(
|
|
|
18431
18532
|
|
|
18432
18533
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
18433
18534
|
import { forwardRef as forwardRef16 } from "react";
|
|
18434
|
-
import { jsx as
|
|
18535
|
+
import { jsx as jsx106 } from "@emotion/react/jsx-runtime";
|
|
18435
18536
|
var ParameterTextarea = forwardRef16((props, ref) => {
|
|
18436
18537
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18437
|
-
return /* @__PURE__ */
|
|
18538
|
+
return /* @__PURE__ */ jsx106(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx106(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
18438
18539
|
});
|
|
18439
18540
|
var ParameterTextareaInner = forwardRef16(({ ...props }, ref) => {
|
|
18440
18541
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
18441
|
-
return /* @__PURE__ */
|
|
18542
|
+
return /* @__PURE__ */ jsx106(
|
|
18442
18543
|
"textarea",
|
|
18443
18544
|
{
|
|
18444
18545
|
css: [input2, textarea2],
|
|
@@ -18452,44 +18553,100 @@ var ParameterTextareaInner = forwardRef16(({ ...props }, ref) => {
|
|
|
18452
18553
|
|
|
18453
18554
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
18454
18555
|
import { forwardRef as forwardRef17 } from "react";
|
|
18455
|
-
import { jsx as
|
|
18556
|
+
import { jsx as jsx107, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
|
|
18456
18557
|
var ParameterToggle = forwardRef17((props, ref) => {
|
|
18457
18558
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18458
|
-
return /* @__PURE__ */
|
|
18559
|
+
return /* @__PURE__ */ jsx107(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx107(ParameterToggleInner, { ref, ...innerProps }) });
|
|
18459
18560
|
});
|
|
18460
18561
|
var ParameterToggleInner = forwardRef17(
|
|
18461
18562
|
({ ...props }, ref) => {
|
|
18462
18563
|
const { id, label } = useParameterShell();
|
|
18463
|
-
return /* @__PURE__ */
|
|
18464
|
-
/* @__PURE__ */
|
|
18465
|
-
/* @__PURE__ */
|
|
18564
|
+
return /* @__PURE__ */ jsxs73("label", { css: inputToggleLabel2, children: [
|
|
18565
|
+
/* @__PURE__ */ jsx107("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
18566
|
+
/* @__PURE__ */ jsx107("span", { css: inlineLabel2, children: label })
|
|
18466
18567
|
] });
|
|
18467
18568
|
}
|
|
18468
18569
|
);
|
|
18469
18570
|
|
|
18571
|
+
// src/components/ProgressBar/ProgressBar.styles.ts
|
|
18572
|
+
import { css as css84 } from "@emotion/react";
|
|
18573
|
+
var container = css84`
|
|
18574
|
+
background: var(--gray-50);
|
|
18575
|
+
margin-block: var(--spacing-sm);
|
|
18576
|
+
position: relative;
|
|
18577
|
+
overflow: hidden;
|
|
18578
|
+
height: 1rem;
|
|
18579
|
+
border-radius: var(--rounded-sm);
|
|
18580
|
+
border: solid 1px var(--gray-300);
|
|
18581
|
+
`;
|
|
18582
|
+
var themeMap = {
|
|
18583
|
+
primary: css84`
|
|
18584
|
+
background-color: var(--accent-light);
|
|
18585
|
+
`,
|
|
18586
|
+
secondary: css84`
|
|
18587
|
+
background-color: var(--brand-secondary-5);
|
|
18588
|
+
`
|
|
18589
|
+
};
|
|
18590
|
+
var bar = css84`
|
|
18591
|
+
position: absolute;
|
|
18592
|
+
inset: 0;
|
|
18593
|
+
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
18594
|
+
transform-origin: 0 center;
|
|
18595
|
+
`;
|
|
18596
|
+
|
|
18597
|
+
// src/components/ProgressBar/ProgressBar.tsx
|
|
18598
|
+
import { jsx as jsx108 } from "@emotion/react/jsx-runtime";
|
|
18599
|
+
function ProgressBar({ className, current, max, theme = "primary" }) {
|
|
18600
|
+
const valueNow = Math.min(current, max);
|
|
18601
|
+
const valuePercentage = max > 0 ? Math.ceil(100 / max * valueNow) : 0;
|
|
18602
|
+
return /* @__PURE__ */ jsx108(
|
|
18603
|
+
"div",
|
|
18604
|
+
{
|
|
18605
|
+
className,
|
|
18606
|
+
css: container,
|
|
18607
|
+
role: "progressbar",
|
|
18608
|
+
"aria-busy": valuePercentage !== 100,
|
|
18609
|
+
"aria-invalid": false,
|
|
18610
|
+
"aria-valuemin": 0,
|
|
18611
|
+
"aria-valuemax": max,
|
|
18612
|
+
"aria-valuenow": valueNow,
|
|
18613
|
+
children: /* @__PURE__ */ jsx108(
|
|
18614
|
+
"div",
|
|
18615
|
+
{
|
|
18616
|
+
css: [bar, themeMap[theme]],
|
|
18617
|
+
style: {
|
|
18618
|
+
transform: `scaleX(${valuePercentage / 100})`
|
|
18619
|
+
},
|
|
18620
|
+
"aria-label": `${current} / ${max}`
|
|
18621
|
+
}
|
|
18622
|
+
)
|
|
18623
|
+
}
|
|
18624
|
+
);
|
|
18625
|
+
}
|
|
18626
|
+
|
|
18470
18627
|
// src/components/ProgressList/ProgressList.tsx
|
|
18471
|
-
import { css as
|
|
18628
|
+
import { css as css86 } from "@emotion/react";
|
|
18472
18629
|
import { CgCheckO as CgCheckO2 } from "@react-icons/all-files/cg/CgCheckO";
|
|
18473
18630
|
import { CgRadioCheck } from "@react-icons/all-files/cg/CgRadioCheck";
|
|
18474
18631
|
import { CgRecord } from "@react-icons/all-files/cg/CgRecord";
|
|
18475
18632
|
import { useMemo as useMemo4 } from "react";
|
|
18476
18633
|
|
|
18477
18634
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
18478
|
-
import { css as
|
|
18479
|
-
var progressListStyles =
|
|
18635
|
+
import { css as css85 } from "@emotion/react";
|
|
18636
|
+
var progressListStyles = css85`
|
|
18480
18637
|
display: flex;
|
|
18481
18638
|
flex-direction: column;
|
|
18482
18639
|
gap: var(--spacing-sm);
|
|
18483
18640
|
list-style-type: none;
|
|
18484
18641
|
`;
|
|
18485
|
-
var progressListItemStyles =
|
|
18642
|
+
var progressListItemStyles = css85`
|
|
18486
18643
|
display: flex;
|
|
18487
18644
|
gap: var(--spacing-base);
|
|
18488
18645
|
align-items: center;
|
|
18489
18646
|
`;
|
|
18490
18647
|
|
|
18491
18648
|
// src/components/ProgressList/ProgressList.tsx
|
|
18492
|
-
import { jsx as
|
|
18649
|
+
import { jsx as jsx109, jsxs as jsxs74 } from "@emotion/react/jsx-runtime";
|
|
18493
18650
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
18494
18651
|
const itemsWithStatus = useMemo4(() => {
|
|
18495
18652
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -18503,8 +18660,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
18503
18660
|
return { ...item, status };
|
|
18504
18661
|
});
|
|
18505
18662
|
}, [items, inProgressId]);
|
|
18506
|
-
return /* @__PURE__ */
|
|
18507
|
-
return /* @__PURE__ */
|
|
18663
|
+
return /* @__PURE__ */ jsx109("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
18664
|
+
return /* @__PURE__ */ jsx109(
|
|
18508
18665
|
ProgressListItem,
|
|
18509
18666
|
{
|
|
18510
18667
|
status,
|
|
@@ -18537,12 +18694,12 @@ var ProgressListItem = ({
|
|
|
18537
18694
|
}, [status, error]);
|
|
18538
18695
|
const statusStyles = useMemo4(() => {
|
|
18539
18696
|
if (error) {
|
|
18540
|
-
return errorLevel === "caution" ?
|
|
18697
|
+
return errorLevel === "caution" ? css86`
|
|
18541
18698
|
color: rgb(161, 98, 7);
|
|
18542
18699
|
& svg {
|
|
18543
18700
|
color: rgb(250, 204, 21);
|
|
18544
18701
|
}
|
|
18545
|
-
` :
|
|
18702
|
+
` : css86`
|
|
18546
18703
|
color: rgb(185, 28, 28);
|
|
18547
18704
|
& svg {
|
|
18548
18705
|
color: var(--brand-primary-2);
|
|
@@ -18550,35 +18707,35 @@ var ProgressListItem = ({
|
|
|
18550
18707
|
`;
|
|
18551
18708
|
}
|
|
18552
18709
|
const colorPerStatus = {
|
|
18553
|
-
completed:
|
|
18710
|
+
completed: css86`
|
|
18554
18711
|
opacity: 0.75;
|
|
18555
18712
|
`,
|
|
18556
|
-
inProgress:
|
|
18713
|
+
inProgress: css86`
|
|
18557
18714
|
-webkit-text-stroke-width: thin;
|
|
18558
18715
|
`,
|
|
18559
|
-
queued:
|
|
18716
|
+
queued: css86`
|
|
18560
18717
|
opacity: 0.5;
|
|
18561
18718
|
`
|
|
18562
18719
|
};
|
|
18563
18720
|
return colorPerStatus[status];
|
|
18564
18721
|
}, [status, error, errorLevel]);
|
|
18565
|
-
return /* @__PURE__ */
|
|
18566
|
-
/* @__PURE__ */
|
|
18567
|
-
/* @__PURE__ */
|
|
18722
|
+
return /* @__PURE__ */ jsxs74("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
18723
|
+
/* @__PURE__ */ jsx109(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx109("div", { children: /* @__PURE__ */ jsx109(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
|
|
18724
|
+
/* @__PURE__ */ jsxs74("div", { children: [
|
|
18568
18725
|
children,
|
|
18569
|
-
/* @__PURE__ */
|
|
18726
|
+
/* @__PURE__ */ jsx109("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
18570
18727
|
] })
|
|
18571
18728
|
] });
|
|
18572
18729
|
};
|
|
18573
18730
|
|
|
18574
18731
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
18575
|
-
import { css as
|
|
18732
|
+
import { css as css88 } from "@emotion/react";
|
|
18576
18733
|
import { CgCheck as CgCheck4 } from "@react-icons/all-files/cg/CgCheck";
|
|
18577
18734
|
import { useCallback as useCallback6, useMemo as useMemo5 } from "react";
|
|
18578
18735
|
|
|
18579
18736
|
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
18580
|
-
import { css as
|
|
18581
|
-
var segmentedControlStyles =
|
|
18737
|
+
import { css as css87 } from "@emotion/react";
|
|
18738
|
+
var segmentedControlStyles = css87`
|
|
18582
18739
|
--segmented-control-rounded-value: var(--rounded-base);
|
|
18583
18740
|
--segmented-control-border-width: 1px;
|
|
18584
18741
|
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
@@ -18597,14 +18754,14 @@ var segmentedControlStyles = css86`
|
|
|
18597
18754
|
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
18598
18755
|
font-size: var(--fs-xs);
|
|
18599
18756
|
`;
|
|
18600
|
-
var segmentedControlVerticalStyles =
|
|
18757
|
+
var segmentedControlVerticalStyles = css87`
|
|
18601
18758
|
flex-direction: column;
|
|
18602
18759
|
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
18603
18760
|
var(--segmented-control-rounded-value) 0 0;
|
|
18604
18761
|
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
18605
18762
|
var(--segmented-control-rounded-value);
|
|
18606
18763
|
`;
|
|
18607
|
-
var segmentedControlItemStyles =
|
|
18764
|
+
var segmentedControlItemStyles = css87`
|
|
18608
18765
|
&:first-of-type label {
|
|
18609
18766
|
border-radius: var(--segmented-control-first-border-radius);
|
|
18610
18767
|
}
|
|
@@ -18612,10 +18769,10 @@ var segmentedControlItemStyles = css86`
|
|
|
18612
18769
|
border-radius: var(--segmented-control-last-border-radius);
|
|
18613
18770
|
}
|
|
18614
18771
|
`;
|
|
18615
|
-
var segmentedControlInputStyles =
|
|
18772
|
+
var segmentedControlInputStyles = css87`
|
|
18616
18773
|
${accessibleHidden}
|
|
18617
18774
|
`;
|
|
18618
|
-
var segmentedControlLabelStyles = (checked, disabled) =>
|
|
18775
|
+
var segmentedControlLabelStyles = (checked, disabled) => css87`
|
|
18619
18776
|
position: relative;
|
|
18620
18777
|
display: flex;
|
|
18621
18778
|
align-items: center;
|
|
@@ -18682,23 +18839,23 @@ var segmentedControlLabelStyles = (checked, disabled) => css86`
|
|
|
18682
18839
|
`}
|
|
18683
18840
|
}
|
|
18684
18841
|
`;
|
|
18685
|
-
var segmentedControlLabelIconOnlyStyles =
|
|
18842
|
+
var segmentedControlLabelIconOnlyStyles = css87`
|
|
18686
18843
|
padding-inline: 0.5em;
|
|
18687
18844
|
`;
|
|
18688
|
-
var segmentedControlLabelCheckStyles =
|
|
18845
|
+
var segmentedControlLabelCheckStyles = css87`
|
|
18689
18846
|
opacity: 0.5;
|
|
18690
18847
|
`;
|
|
18691
|
-
var segmentedControlLabelContentStyles =
|
|
18848
|
+
var segmentedControlLabelContentStyles = css87`
|
|
18692
18849
|
display: flex;
|
|
18693
18850
|
align-items: center;
|
|
18694
18851
|
justify-content: center;
|
|
18695
18852
|
gap: var(--spacing-sm);
|
|
18696
18853
|
height: 100%;
|
|
18697
18854
|
`;
|
|
18698
|
-
var segmentedControlLabelTextStyles =
|
|
18855
|
+
var segmentedControlLabelTextStyles = css87``;
|
|
18699
18856
|
|
|
18700
18857
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
18701
|
-
import { jsx as
|
|
18858
|
+
import { jsx as jsx110, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
|
|
18702
18859
|
var SegmentedControl = ({
|
|
18703
18860
|
name,
|
|
18704
18861
|
options,
|
|
@@ -18720,16 +18877,16 @@ var SegmentedControl = ({
|
|
|
18720
18877
|
);
|
|
18721
18878
|
const sizeStyles = useMemo5(() => {
|
|
18722
18879
|
const map = {
|
|
18723
|
-
sm:
|
|
18724
|
-
md:
|
|
18725
|
-
lg:
|
|
18880
|
+
sm: css88({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
18881
|
+
md: css88({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
18882
|
+
lg: css88({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
|
|
18726
18883
|
};
|
|
18727
18884
|
return map[size];
|
|
18728
18885
|
}, [size]);
|
|
18729
18886
|
const isIconOnly = useMemo5(() => {
|
|
18730
18887
|
return options.every((option) => option.icon && !option.label);
|
|
18731
18888
|
}, [options]);
|
|
18732
|
-
return /* @__PURE__ */
|
|
18889
|
+
return /* @__PURE__ */ jsx110(
|
|
18733
18890
|
"div",
|
|
18734
18891
|
{
|
|
18735
18892
|
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
@@ -18737,11 +18894,11 @@ var SegmentedControl = ({
|
|
|
18737
18894
|
children: options.map((option, index) => {
|
|
18738
18895
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
18739
18896
|
const isDisabled = disabled || option.disabled;
|
|
18740
|
-
return /* @__PURE__ */
|
|
18897
|
+
return /* @__PURE__ */ jsx110(
|
|
18741
18898
|
Tooltip,
|
|
18742
18899
|
{
|
|
18743
18900
|
title: isDisabled || !option.tooltip ? "" : option.tooltip,
|
|
18744
|
-
children: /* @__PURE__ */
|
|
18901
|
+
children: /* @__PURE__ */ jsx110("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ jsxs75(
|
|
18745
18902
|
"label",
|
|
18746
18903
|
{
|
|
18747
18904
|
css: [
|
|
@@ -18750,7 +18907,7 @@ var SegmentedControl = ({
|
|
|
18750
18907
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
18751
18908
|
],
|
|
18752
18909
|
children: [
|
|
18753
|
-
/* @__PURE__ */
|
|
18910
|
+
/* @__PURE__ */ jsx110(
|
|
18754
18911
|
"input",
|
|
18755
18912
|
{
|
|
18756
18913
|
css: segmentedControlInputStyles,
|
|
@@ -18762,10 +18919,10 @@ var SegmentedControl = ({
|
|
|
18762
18919
|
disabled: isDisabled
|
|
18763
18920
|
}
|
|
18764
18921
|
),
|
|
18765
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */
|
|
18766
|
-
/* @__PURE__ */
|
|
18767
|
-
!option.icon ? null : /* @__PURE__ */
|
|
18768
|
-
!text ? null : /* @__PURE__ */
|
|
18922
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx110(CgCheck4, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
18923
|
+
/* @__PURE__ */ jsxs75("span", { css: segmentedControlLabelContentStyles, children: [
|
|
18924
|
+
!option.icon ? null : /* @__PURE__ */ jsx110(Icon, { icon: option.icon, size: "1.5em", iconColor: "currentColor" }),
|
|
18925
|
+
!text ? null : /* @__PURE__ */ jsx110("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
18769
18926
|
] })
|
|
18770
18927
|
]
|
|
18771
18928
|
}
|
|
@@ -18779,18 +18936,18 @@ var SegmentedControl = ({
|
|
|
18779
18936
|
};
|
|
18780
18937
|
|
|
18781
18938
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
18782
|
-
import { css as
|
|
18939
|
+
import { css as css89, keyframes as keyframes4 } from "@emotion/react";
|
|
18783
18940
|
var lightFadingOut = keyframes4`
|
|
18784
18941
|
from { opacity: 0.1; }
|
|
18785
18942
|
to { opacity: 0.025; }
|
|
18786
18943
|
`;
|
|
18787
|
-
var skeletonStyles =
|
|
18944
|
+
var skeletonStyles = css89`
|
|
18788
18945
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
18789
18946
|
background-color: var(--gray-900);
|
|
18790
18947
|
`;
|
|
18791
18948
|
|
|
18792
18949
|
// src/components/Skeleton/Skeleton.tsx
|
|
18793
|
-
import { jsx as
|
|
18950
|
+
import { jsx as jsx111 } from "@emotion/react/jsx-runtime";
|
|
18794
18951
|
var Skeleton = ({
|
|
18795
18952
|
width = "100%",
|
|
18796
18953
|
height = "1.25rem",
|
|
@@ -18798,7 +18955,7 @@ var Skeleton = ({
|
|
|
18798
18955
|
circle = false,
|
|
18799
18956
|
children,
|
|
18800
18957
|
...otherProps
|
|
18801
|
-
}) => /* @__PURE__ */
|
|
18958
|
+
}) => /* @__PURE__ */ jsx111(
|
|
18802
18959
|
"div",
|
|
18803
18960
|
{
|
|
18804
18961
|
css: [
|
|
@@ -18821,8 +18978,8 @@ var Skeleton = ({
|
|
|
18821
18978
|
import * as React23 from "react";
|
|
18822
18979
|
|
|
18823
18980
|
// src/components/Switch/Switch.styles.ts
|
|
18824
|
-
import { css as
|
|
18825
|
-
var SwitchInputContainer =
|
|
18981
|
+
import { css as css90 } from "@emotion/react";
|
|
18982
|
+
var SwitchInputContainer = css90`
|
|
18826
18983
|
cursor: pointer;
|
|
18827
18984
|
display: inline-block;
|
|
18828
18985
|
position: relative;
|
|
@@ -18831,7 +18988,7 @@ var SwitchInputContainer = css89`
|
|
|
18831
18988
|
vertical-align: middle;
|
|
18832
18989
|
user-select: none;
|
|
18833
18990
|
`;
|
|
18834
|
-
var SwitchInput =
|
|
18991
|
+
var SwitchInput = css90`
|
|
18835
18992
|
appearance: none;
|
|
18836
18993
|
border-radius: var(--rounded-full);
|
|
18837
18994
|
background-color: var(--white);
|
|
@@ -18869,7 +19026,7 @@ var SwitchInput = css89`
|
|
|
18869
19026
|
cursor: not-allowed;
|
|
18870
19027
|
}
|
|
18871
19028
|
`;
|
|
18872
|
-
var SwitchInputDisabled =
|
|
19029
|
+
var SwitchInputDisabled = css90`
|
|
18873
19030
|
opacity: var(--opacity-50);
|
|
18874
19031
|
cursor: not-allowed;
|
|
18875
19032
|
|
|
@@ -18877,7 +19034,7 @@ var SwitchInputDisabled = css89`
|
|
|
18877
19034
|
cursor: not-allowed;
|
|
18878
19035
|
}
|
|
18879
19036
|
`;
|
|
18880
|
-
var SwitchInputLabel =
|
|
19037
|
+
var SwitchInputLabel = css90`
|
|
18881
19038
|
align-items: center;
|
|
18882
19039
|
color: var(--brand-secondary-1);
|
|
18883
19040
|
display: inline-flex;
|
|
@@ -18899,26 +19056,26 @@ var SwitchInputLabel = css89`
|
|
|
18899
19056
|
top: 0;
|
|
18900
19057
|
}
|
|
18901
19058
|
`;
|
|
18902
|
-
var SwitchText =
|
|
19059
|
+
var SwitchText = css90`
|
|
18903
19060
|
color: var(--gray-500);
|
|
18904
19061
|
font-size: var(--fs-sm);
|
|
18905
19062
|
padding-inline: var(--spacing-2xl) 0;
|
|
18906
19063
|
`;
|
|
18907
19064
|
|
|
18908
19065
|
// src/components/Switch/Switch.tsx
|
|
18909
|
-
import { Fragment as
|
|
19066
|
+
import { Fragment as Fragment20, jsx as jsx112, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
|
|
18910
19067
|
var Switch = React23.forwardRef(
|
|
18911
19068
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
18912
19069
|
let additionalText = infoText;
|
|
18913
19070
|
if (infoText && toggleText) {
|
|
18914
19071
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
18915
19072
|
}
|
|
18916
|
-
return /* @__PURE__ */
|
|
18917
|
-
/* @__PURE__ */
|
|
18918
|
-
/* @__PURE__ */
|
|
18919
|
-
/* @__PURE__ */
|
|
19073
|
+
return /* @__PURE__ */ jsxs76(Fragment20, { children: [
|
|
19074
|
+
/* @__PURE__ */ jsxs76("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
19075
|
+
/* @__PURE__ */ jsx112("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
19076
|
+
/* @__PURE__ */ jsx112("span", { css: SwitchInputLabel, children: label })
|
|
18920
19077
|
] }),
|
|
18921
|
-
additionalText ? /* @__PURE__ */
|
|
19078
|
+
additionalText ? /* @__PURE__ */ jsx112("p", { css: SwitchText, children: additionalText }) : null,
|
|
18922
19079
|
children
|
|
18923
19080
|
] });
|
|
18924
19081
|
}
|
|
@@ -18928,8 +19085,8 @@ var Switch = React23.forwardRef(
|
|
|
18928
19085
|
import * as React24 from "react";
|
|
18929
19086
|
|
|
18930
19087
|
// src/components/Table/Table.styles.ts
|
|
18931
|
-
import { css as
|
|
18932
|
-
var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) =>
|
|
19088
|
+
import { css as css91 } from "@emotion/react";
|
|
19089
|
+
var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css91`
|
|
18933
19090
|
border-bottom: 1px solid var(--gray-400);
|
|
18934
19091
|
border-collapse: collapse;
|
|
18935
19092
|
min-width: 100%;
|
|
@@ -18940,55 +19097,55 @@ var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css90
|
|
|
18940
19097
|
padding: ${cellPadding};
|
|
18941
19098
|
}
|
|
18942
19099
|
`;
|
|
18943
|
-
var tableHead =
|
|
19100
|
+
var tableHead = css91`
|
|
18944
19101
|
background: var(--gray-100);
|
|
18945
19102
|
color: var(--brand-secondary-1);
|
|
18946
19103
|
text-align: left;
|
|
18947
19104
|
`;
|
|
18948
|
-
var tableRow =
|
|
19105
|
+
var tableRow = css91`
|
|
18949
19106
|
border-bottom: 1px solid var(--gray-200);
|
|
18950
19107
|
`;
|
|
18951
|
-
var tableCellHead =
|
|
19108
|
+
var tableCellHead = css91`
|
|
18952
19109
|
font-size: var(--fs-sm);
|
|
18953
19110
|
text-transform: uppercase;
|
|
18954
19111
|
font-weight: var(--fw-bold);
|
|
18955
19112
|
`;
|
|
18956
19113
|
|
|
18957
19114
|
// src/components/Table/Table.tsx
|
|
18958
|
-
import { jsx as
|
|
19115
|
+
import { jsx as jsx113 } from "@emotion/react/jsx-runtime";
|
|
18959
19116
|
var Table = React24.forwardRef(
|
|
18960
19117
|
({ children, cellPadding, ...otherProps }, ref) => {
|
|
18961
|
-
return /* @__PURE__ */
|
|
19118
|
+
return /* @__PURE__ */ jsx113("table", { ref, css: table({ cellPadding }), ...otherProps, children });
|
|
18962
19119
|
}
|
|
18963
19120
|
);
|
|
18964
19121
|
var TableHead = React24.forwardRef(
|
|
18965
19122
|
({ children, ...otherProps }, ref) => {
|
|
18966
|
-
return /* @__PURE__ */
|
|
19123
|
+
return /* @__PURE__ */ jsx113("thead", { ref, css: tableHead, ...otherProps, children });
|
|
18967
19124
|
}
|
|
18968
19125
|
);
|
|
18969
19126
|
var TableBody = React24.forwardRef(
|
|
18970
19127
|
({ children, ...otherProps }, ref) => {
|
|
18971
|
-
return /* @__PURE__ */
|
|
19128
|
+
return /* @__PURE__ */ jsx113("tbody", { ref, ...otherProps, children });
|
|
18972
19129
|
}
|
|
18973
19130
|
);
|
|
18974
19131
|
var TableFoot = React24.forwardRef(
|
|
18975
19132
|
({ children, ...otherProps }, ref) => {
|
|
18976
|
-
return /* @__PURE__ */
|
|
19133
|
+
return /* @__PURE__ */ jsx113("tfoot", { ref, ...otherProps, children });
|
|
18977
19134
|
}
|
|
18978
19135
|
);
|
|
18979
19136
|
var TableRow = React24.forwardRef(
|
|
18980
19137
|
({ children, ...otherProps }, ref) => {
|
|
18981
|
-
return /* @__PURE__ */
|
|
19138
|
+
return /* @__PURE__ */ jsx113("tr", { ref, css: tableRow, ...otherProps, children });
|
|
18982
19139
|
}
|
|
18983
19140
|
);
|
|
18984
19141
|
var TableCellHead = React24.forwardRef(
|
|
18985
19142
|
({ children, ...otherProps }, ref) => {
|
|
18986
|
-
return /* @__PURE__ */
|
|
19143
|
+
return /* @__PURE__ */ jsx113("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
18987
19144
|
}
|
|
18988
19145
|
);
|
|
18989
19146
|
var TableCellData = React24.forwardRef(
|
|
18990
19147
|
({ children, ...otherProps }, ref) => {
|
|
18991
|
-
return /* @__PURE__ */
|
|
19148
|
+
return /* @__PURE__ */ jsx113("td", { ref, ...otherProps, children });
|
|
18992
19149
|
}
|
|
18993
19150
|
);
|
|
18994
19151
|
|
|
@@ -19002,8 +19159,8 @@ import {
|
|
|
19002
19159
|
} from "reakit/Tab";
|
|
19003
19160
|
|
|
19004
19161
|
// src/components/Tabs/Tabs.styles.ts
|
|
19005
|
-
import { css as
|
|
19006
|
-
var tabButtonStyles =
|
|
19162
|
+
import { css as css92 } from "@emotion/react";
|
|
19163
|
+
var tabButtonStyles = css92`
|
|
19007
19164
|
align-items: center;
|
|
19008
19165
|
border: 0;
|
|
19009
19166
|
height: 2.5rem;
|
|
@@ -19020,14 +19177,14 @@ var tabButtonStyles = css91`
|
|
|
19020
19177
|
box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
|
|
19021
19178
|
}
|
|
19022
19179
|
`;
|
|
19023
|
-
var tabButtonGroupStyles =
|
|
19180
|
+
var tabButtonGroupStyles = css92`
|
|
19024
19181
|
display: flex;
|
|
19025
19182
|
gap: var(--spacing-base);
|
|
19026
19183
|
border-bottom: 1px solid var(--gray-300);
|
|
19027
19184
|
`;
|
|
19028
19185
|
|
|
19029
19186
|
// src/components/Tabs/Tabs.tsx
|
|
19030
|
-
import { jsx as
|
|
19187
|
+
import { jsx as jsx114 } from "@emotion/react/jsx-runtime";
|
|
19031
19188
|
var CurrentTabContext = createContext6(null);
|
|
19032
19189
|
var useCurrentTab = () => {
|
|
19033
19190
|
const context = useContext7(CurrentTabContext);
|
|
@@ -19056,24 +19213,24 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
19056
19213
|
tab.setSelectedId(selected);
|
|
19057
19214
|
}
|
|
19058
19215
|
}, [selected]);
|
|
19059
|
-
return /* @__PURE__ */
|
|
19216
|
+
return /* @__PURE__ */ jsx114(CurrentTabContext.Provider, { value: tab, children });
|
|
19060
19217
|
};
|
|
19061
19218
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
19062
19219
|
const currentTab = useCurrentTab();
|
|
19063
|
-
return /* @__PURE__ */
|
|
19220
|
+
return /* @__PURE__ */ jsx114(ReakitTabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
19064
19221
|
};
|
|
19065
19222
|
var TabButton = ({ children, id, ...props }) => {
|
|
19066
19223
|
const currentTab = useCurrentTab();
|
|
19067
|
-
return /* @__PURE__ */
|
|
19224
|
+
return /* @__PURE__ */ jsx114(ReakitTab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
19068
19225
|
};
|
|
19069
19226
|
var TabContent = ({ children, ...props }) => {
|
|
19070
19227
|
const currentTab = useCurrentTab();
|
|
19071
|
-
return /* @__PURE__ */
|
|
19228
|
+
return /* @__PURE__ */ jsx114(ReakitTabPanel, { ...props, ...currentTab, children });
|
|
19072
19229
|
};
|
|
19073
19230
|
|
|
19074
19231
|
// src/components/Validation/StatusBullet.styles.ts
|
|
19075
|
-
import { css as
|
|
19076
|
-
var StatusBulletContainer =
|
|
19232
|
+
import { css as css93 } from "@emotion/react";
|
|
19233
|
+
var StatusBulletContainer = css93`
|
|
19077
19234
|
align-items: center;
|
|
19078
19235
|
align-self: center;
|
|
19079
19236
|
color: var(--gray-500);
|
|
@@ -19090,33 +19247,33 @@ var StatusBulletContainer = css92`
|
|
|
19090
19247
|
display: block;
|
|
19091
19248
|
}
|
|
19092
19249
|
`;
|
|
19093
|
-
var StatusBulletBase =
|
|
19250
|
+
var StatusBulletBase = css93`
|
|
19094
19251
|
font-size: var(--fs-sm);
|
|
19095
19252
|
&:before {
|
|
19096
19253
|
width: var(--fs-xs);
|
|
19097
19254
|
height: var(--fs-xs);
|
|
19098
19255
|
}
|
|
19099
19256
|
`;
|
|
19100
|
-
var StatusBulletSmall =
|
|
19257
|
+
var StatusBulletSmall = css93`
|
|
19101
19258
|
font-size: var(--fs-xs);
|
|
19102
19259
|
&:before {
|
|
19103
19260
|
width: var(--fs-xxs);
|
|
19104
19261
|
height: var(--fs-xxs);
|
|
19105
19262
|
}
|
|
19106
19263
|
`;
|
|
19107
|
-
var StatusDraft =
|
|
19264
|
+
var StatusDraft = css93`
|
|
19108
19265
|
&:before {
|
|
19109
19266
|
background: var(--white);
|
|
19110
19267
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
19111
19268
|
}
|
|
19112
19269
|
`;
|
|
19113
|
-
var StatusModified =
|
|
19270
|
+
var StatusModified = css93`
|
|
19114
19271
|
&:before {
|
|
19115
19272
|
background: linear-gradient(to right, var(--white) 50%, var(--primary-action-default) 50% 100%);
|
|
19116
19273
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
19117
19274
|
}
|
|
19118
19275
|
`;
|
|
19119
|
-
var StatusError =
|
|
19276
|
+
var StatusError = css93`
|
|
19120
19277
|
color: var(--error);
|
|
19121
19278
|
&:before {
|
|
19122
19279
|
/* TODO: replace this with an svg icon */
|
|
@@ -19129,19 +19286,19 @@ var StatusError = css92`
|
|
|
19129
19286
|
);
|
|
19130
19287
|
}
|
|
19131
19288
|
`;
|
|
19132
|
-
var StatusPublished =
|
|
19289
|
+
var StatusPublished = css93`
|
|
19133
19290
|
&:before {
|
|
19134
19291
|
background: var(--primary-action-default);
|
|
19135
19292
|
}
|
|
19136
19293
|
`;
|
|
19137
|
-
var StatusOrphan =
|
|
19294
|
+
var StatusOrphan = css93`
|
|
19138
19295
|
&:before {
|
|
19139
19296
|
background: var(--brand-secondary-5);
|
|
19140
19297
|
}
|
|
19141
19298
|
`;
|
|
19142
19299
|
|
|
19143
19300
|
// src/components/Validation/StatusBullet.tsx
|
|
19144
|
-
import { jsx as
|
|
19301
|
+
import { jsx as jsx115 } from "@emotion/react/jsx-runtime";
|
|
19145
19302
|
var StatusBullet = ({
|
|
19146
19303
|
status,
|
|
19147
19304
|
hideText = false,
|
|
@@ -19159,7 +19316,7 @@ var StatusBullet = ({
|
|
|
19159
19316
|
Previous: StatusDraft
|
|
19160
19317
|
};
|
|
19161
19318
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
19162
|
-
return /* @__PURE__ */
|
|
19319
|
+
return /* @__PURE__ */ jsx115(
|
|
19163
19320
|
"span",
|
|
19164
19321
|
{
|
|
19165
19322
|
role: "status",
|
|
@@ -19209,6 +19366,7 @@ export {
|
|
|
19209
19366
|
Icon,
|
|
19210
19367
|
IconButton,
|
|
19211
19368
|
IconsProvider,
|
|
19369
|
+
Image,
|
|
19212
19370
|
ImageBroken,
|
|
19213
19371
|
InfoMessage,
|
|
19214
19372
|
InlineAlert,
|
|
@@ -19273,6 +19431,7 @@ export {
|
|
|
19273
19431
|
ParameterToggle,
|
|
19274
19432
|
ParameterToggleInner,
|
|
19275
19433
|
Popover2 as Popover,
|
|
19434
|
+
ProgressBar,
|
|
19276
19435
|
ProgressList,
|
|
19277
19436
|
ProgressListItem,
|
|
19278
19437
|
ResolveIcon,
|
|
@@ -19311,11 +19470,10 @@ export {
|
|
|
19311
19470
|
VerticalRhythm,
|
|
19312
19471
|
WarningMessage,
|
|
19313
19472
|
accessibleHidden,
|
|
19473
|
+
addPathSegmentToPathname,
|
|
19314
19474
|
borderTopIcon,
|
|
19315
19475
|
breakpoints,
|
|
19316
19476
|
button,
|
|
19317
|
-
buttonAccentAltDark,
|
|
19318
|
-
buttonAccentAltDarkOutline,
|
|
19319
19477
|
buttonDestructive,
|
|
19320
19478
|
buttonGhost,
|
|
19321
19479
|
buttonGhostDestructive,
|
|
@@ -19341,6 +19499,8 @@ export {
|
|
|
19341
19499
|
fadeOutBottom,
|
|
19342
19500
|
fullWidthScreenIcon,
|
|
19343
19501
|
getDrawerAttributes,
|
|
19502
|
+
getParentPath,
|
|
19503
|
+
getPathSegment,
|
|
19344
19504
|
growSubtle,
|
|
19345
19505
|
imageTextIcon,
|
|
19346
19506
|
infoFilledIcon,
|
|
@@ -19348,6 +19508,8 @@ export {
|
|
|
19348
19508
|
inputError,
|
|
19349
19509
|
inputSelect,
|
|
19350
19510
|
isMacLike,
|
|
19511
|
+
isSecureURL,
|
|
19512
|
+
isValidUrl,
|
|
19351
19513
|
jsonIcon,
|
|
19352
19514
|
labelText,
|
|
19353
19515
|
loader_default as loaderAnimationData,
|