@uniformdev/design-system 19.53.1-alpha.41 → 19.54.2-alpha.3
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 +282 -221
- package/dist/index.d.mts +406 -388
- package/dist/index.d.ts +406 -388
- package/dist/index.js +328 -259
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -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
|
|
@@ -11387,8 +11344,6 @@ var Button = React6.forwardRef(
|
|
|
11387
11344
|
const buttonTheme = {
|
|
11388
11345
|
primary: buttonPrimary,
|
|
11389
11346
|
primaryInvert: buttonPrimaryInvert,
|
|
11390
|
-
"accent-alt-dark": buttonAccentAltDark,
|
|
11391
|
-
"accent-alt-dark-outline": buttonAccentAltDarkOutline,
|
|
11392
11347
|
destructive: buttonDestructive,
|
|
11393
11348
|
secondary: buttonSecondary,
|
|
11394
11349
|
secondaryInvert: buttonSecondaryInvert,
|
|
@@ -11675,14 +11630,48 @@ function renderWithIcon(children, icon) {
|
|
|
11675
11630
|
|
|
11676
11631
|
// src/components/ButtonWithMenu/ButtonWithMenu.styles.ts
|
|
11677
11632
|
import { css as css26 } from "@emotion/react";
|
|
11633
|
+
var buttonSizeBase = css26`
|
|
11634
|
+
--icon-padding: var(--spacing-xs);
|
|
11635
|
+
--svg-size: 1rem;
|
|
11636
|
+
--line-offset: -5px;
|
|
11637
|
+
font-size: var(--fs-sm);
|
|
11638
|
+
|
|
11639
|
+
> button {
|
|
11640
|
+
padding: var(--spacing-sm) var(--spacing-base);
|
|
11641
|
+
}
|
|
11642
|
+
`;
|
|
11643
|
+
var buttonSizeSmall = css26`
|
|
11644
|
+
--icon-padding: var(--spacing-xs);
|
|
11645
|
+
--svg-size: 0.85rem;
|
|
11646
|
+
--line-offset: -1px;
|
|
11647
|
+
font-size: var(--fs-sm);
|
|
11648
|
+
|
|
11649
|
+
> button {
|
|
11650
|
+
padding: var(--spacing-xs) var(--spacing-base);
|
|
11651
|
+
}
|
|
11652
|
+
`;
|
|
11653
|
+
var buttonSizeLarge = css26`
|
|
11654
|
+
--icon-padding: var(--spacing-sm);
|
|
11655
|
+
--svg-size: 1.5rem;
|
|
11656
|
+
--line-offset: -5px;
|
|
11657
|
+
font-size: var(--fs-sm);
|
|
11658
|
+
line-height: 1.25;
|
|
11659
|
+
|
|
11660
|
+
> button {
|
|
11661
|
+
padding: var(--spacing-sm) var(--spacing-base);
|
|
11662
|
+
}
|
|
11663
|
+
`;
|
|
11678
11664
|
var ButtonWithMenuContainer = css26`
|
|
11679
11665
|
align-items: center;
|
|
11680
11666
|
border: 1px solid transparent;
|
|
11681
11667
|
border-radius: var(--rounded-sm);
|
|
11682
11668
|
color: var(--white);
|
|
11683
11669
|
display: inline-flex;
|
|
11684
|
-
font-size: var(--fs-sm);
|
|
11685
11670
|
position: relative;
|
|
11671
|
+
min-height: 24px;
|
|
11672
|
+
transition: color var(--duration-fast) var(--timing-ease-out),
|
|
11673
|
+
border-color var(--duration-fast) var(--timing-ease-out),
|
|
11674
|
+
background-color var(--duration-fast) var(--timing-ease-out);
|
|
11686
11675
|
|
|
11687
11676
|
&:active {
|
|
11688
11677
|
opacity: var(--opacity-75);
|
|
@@ -11695,15 +11684,19 @@ var ButtonWithMenuContainer = css26`
|
|
|
11695
11684
|
&:focus {
|
|
11696
11685
|
border-color: var(--gray-700);
|
|
11697
11686
|
}
|
|
11687
|
+
|
|
11688
|
+
svg {
|
|
11689
|
+
width: var(--svg-size);
|
|
11690
|
+
height: var(--svg-size);
|
|
11691
|
+
}
|
|
11698
11692
|
`;
|
|
11699
11693
|
var ButtonWithMenuBtn = css26`
|
|
11694
|
+
align-items: center;
|
|
11700
11695
|
border: 1px solid transparent;
|
|
11701
11696
|
background: transparent;
|
|
11702
|
-
|
|
11703
|
-
|
|
11704
|
-
|
|
11705
|
-
letter-spacing: 0.025rem;
|
|
11706
|
-
line-height: 1.25;
|
|
11697
|
+
line-height: 1;
|
|
11698
|
+
display: inline-flex;
|
|
11699
|
+
gap: var(--spacing-xs);
|
|
11707
11700
|
|
|
11708
11701
|
&:focus {
|
|
11709
11702
|
outline: none;
|
|
@@ -11720,8 +11713,17 @@ var ButtonWithMenuBtn = css26`
|
|
|
11720
11713
|
}
|
|
11721
11714
|
`;
|
|
11722
11715
|
var ButtonWithMenuIcon = css26`
|
|
11723
|
-
padding: var(--
|
|
11724
|
-
|
|
11716
|
+
padding: var(--icon-padding);
|
|
11717
|
+
position: relative;
|
|
11718
|
+
|
|
11719
|
+
&:before {
|
|
11720
|
+
background: currentColor;
|
|
11721
|
+
content: '';
|
|
11722
|
+
display: block;
|
|
11723
|
+
inset: var(--line-offset) auto var(--line-offset) -1px;
|
|
11724
|
+
width: 1px;
|
|
11725
|
+
position: absolute;
|
|
11726
|
+
}
|
|
11725
11727
|
`;
|
|
11726
11728
|
var buttonPrimary2 = css26`
|
|
11727
11729
|
background: var(--brand-secondary-1);
|
|
@@ -11761,6 +11763,24 @@ var buttonGhostDisabled = css26`
|
|
|
11761
11763
|
border-color: var(--gray-400);
|
|
11762
11764
|
color: var(--gray-400);
|
|
11763
11765
|
`;
|
|
11766
|
+
var buttonSecondaryOutline = css26`
|
|
11767
|
+
background: var(--white);
|
|
11768
|
+
color: var(--primary-action-default);
|
|
11769
|
+
border-color: var(--primary-action-default);
|
|
11770
|
+
|
|
11771
|
+
&:hover {
|
|
11772
|
+
color: var(--primary-action-hover);
|
|
11773
|
+
border-color: var(--primary-action-hover);
|
|
11774
|
+
}
|
|
11775
|
+
`;
|
|
11776
|
+
var buttonSecondaryOutlineDisabled = css26`
|
|
11777
|
+
background: var(--white);
|
|
11778
|
+
color: var(--gray-400);
|
|
11779
|
+
border-color: var(--gray-400);
|
|
11780
|
+
`;
|
|
11781
|
+
var buttonWithMenuIconOffset = css26`
|
|
11782
|
+
margin-left: -10px;
|
|
11783
|
+
`;
|
|
11764
11784
|
|
|
11765
11785
|
// src/components/ButtonWithMenu/ButtonWithMenu.tsx
|
|
11766
11786
|
import { jsx as jsx27, jsxs as jsxs17 } from "@emotion/react/jsx-runtime";
|
|
@@ -11768,30 +11788,43 @@ var ButtonWithMenu = ({
|
|
|
11768
11788
|
onButtonClick,
|
|
11769
11789
|
buttonType = "secondary",
|
|
11770
11790
|
buttonText,
|
|
11791
|
+
icon,
|
|
11771
11792
|
disabled,
|
|
11772
11793
|
children,
|
|
11773
11794
|
placement,
|
|
11795
|
+
size = "lg",
|
|
11774
11796
|
...buttonProps
|
|
11775
11797
|
}) => {
|
|
11776
11798
|
const buttonTheme = {
|
|
11777
11799
|
primary: buttonPrimary2,
|
|
11778
11800
|
secondary: buttonSecondary2,
|
|
11779
11801
|
ghost: buttonGhost2,
|
|
11780
|
-
unimportant: buttonUnimportant2
|
|
11802
|
+
unimportant: buttonUnimportant2,
|
|
11803
|
+
secondaryOutline: buttonSecondaryOutline
|
|
11781
11804
|
};
|
|
11782
11805
|
const buttonDisabledTheme = {
|
|
11783
11806
|
primary: buttonPrimaryDisabled,
|
|
11784
11807
|
secondary: buttonSecondaryDisabled,
|
|
11785
11808
|
ghost: buttonGhostDisabled,
|
|
11786
|
-
unimportant: buttonUnimportantDisabled
|
|
11809
|
+
unimportant: buttonUnimportantDisabled,
|
|
11810
|
+
secondaryOutline: buttonSecondaryOutlineDisabled
|
|
11811
|
+
};
|
|
11812
|
+
const sizes2 = {
|
|
11813
|
+
base: buttonSizeBase,
|
|
11814
|
+
sm: buttonSizeSmall,
|
|
11815
|
+
lg: buttonSizeLarge
|
|
11787
11816
|
};
|
|
11788
11817
|
return /* @__PURE__ */ jsxs17(
|
|
11789
11818
|
"div",
|
|
11790
11819
|
{
|
|
11791
|
-
css: [
|
|
11820
|
+
css: [
|
|
11821
|
+
sizes2[size],
|
|
11822
|
+
ButtonWithMenuContainer,
|
|
11823
|
+
disabled ? buttonDisabledTheme[buttonType] : buttonTheme[buttonType]
|
|
11824
|
+
],
|
|
11792
11825
|
"data-testid": "multioptions-button",
|
|
11793
11826
|
children: [
|
|
11794
|
-
/* @__PURE__ */
|
|
11827
|
+
/* @__PURE__ */ jsxs17(
|
|
11795
11828
|
"button",
|
|
11796
11829
|
{
|
|
11797
11830
|
type: "button",
|
|
@@ -11800,7 +11833,10 @@ var ButtonWithMenu = ({
|
|
|
11800
11833
|
onClick: onButtonClick,
|
|
11801
11834
|
"data-testid": "multioptions-button-main",
|
|
11802
11835
|
...buttonProps,
|
|
11803
|
-
children:
|
|
11836
|
+
children: [
|
|
11837
|
+
icon ? /* @__PURE__ */ jsx27(Icon, { icon, iconColor: "currentColor", css: buttonWithMenuIconOffset }) : null,
|
|
11838
|
+
buttonText
|
|
11839
|
+
]
|
|
11804
11840
|
}
|
|
11805
11841
|
),
|
|
11806
11842
|
/* @__PURE__ */ jsx27(
|
|
@@ -11808,7 +11844,7 @@ var ButtonWithMenu = ({
|
|
|
11808
11844
|
{
|
|
11809
11845
|
menuLabel: "buttonMenu",
|
|
11810
11846
|
placement,
|
|
11811
|
-
menuTrigger: /* @__PURE__ */ jsx27("div", { css: ButtonWithMenuIcon, "data-testid": "multioptions-button-call-menu", children: /* @__PURE__ */ jsx27(Icon, { icon: CgChevronDown,
|
|
11847
|
+
menuTrigger: /* @__PURE__ */ jsx27("div", { css: ButtonWithMenuIcon, "data-testid": "multioptions-button-call-menu", children: /* @__PURE__ */ jsx27(Icon, { icon: CgChevronDown, iconColor: "currentColor" }) }),
|
|
11812
11848
|
children
|
|
11813
11849
|
}
|
|
11814
11850
|
)
|
|
@@ -13494,23 +13530,6 @@ IconButton.displayName = "IconButton";
|
|
|
13494
13530
|
// src/components/Image/Image.tsx
|
|
13495
13531
|
import { useCallback as useCallback2, useEffect as useEffect7, useState as useState8 } from "react";
|
|
13496
13532
|
|
|
13497
|
-
// src/utils/url.ts
|
|
13498
|
-
var isValidUrl = (urlString, options = {}) => {
|
|
13499
|
-
try {
|
|
13500
|
-
const isRelativeToLocation = /^([/.])/.test(urlString);
|
|
13501
|
-
const url = new URL(
|
|
13502
|
-
urlString,
|
|
13503
|
-
options.allowRelative && isRelativeToLocation ? "https://defaultbaseurl.com" : void 0
|
|
13504
|
-
);
|
|
13505
|
-
if (options.isSecure) {
|
|
13506
|
-
return url.protocol === "https:";
|
|
13507
|
-
}
|
|
13508
|
-
return true;
|
|
13509
|
-
} catch (e) {
|
|
13510
|
-
return false;
|
|
13511
|
-
}
|
|
13512
|
-
};
|
|
13513
|
-
|
|
13514
13533
|
// src/components/Input/styles/CaptionText.styles.ts
|
|
13515
13534
|
import { css as css45 } from "@emotion/react";
|
|
13516
13535
|
var CaptionText = (dynamicSize) => css45`
|
|
@@ -15474,7 +15493,6 @@ import { CgCheck as CgCheck3 } from "@react-icons/all-files/cg/CgCheck";
|
|
|
15474
15493
|
import { jsx as jsx83, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
15475
15494
|
var ScrollableListItem = ({
|
|
15476
15495
|
buttonText,
|
|
15477
|
-
icon,
|
|
15478
15496
|
active,
|
|
15479
15497
|
disableShadow,
|
|
15480
15498
|
...props
|
|
@@ -15488,10 +15506,7 @@ var ScrollableListItem = ({
|
|
|
15488
15506
|
active ? ScrollableListItemActive : void 0
|
|
15489
15507
|
],
|
|
15490
15508
|
children: /* @__PURE__ */ jsxs54("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
15491
|
-
/* @__PURE__ */
|
|
15492
|
-
icon,
|
|
15493
|
-
/* @__PURE__ */ jsx83("span", { children: buttonText })
|
|
15494
|
-
] }),
|
|
15509
|
+
/* @__PURE__ */ jsx83("span", { children: buttonText }),
|
|
15495
15510
|
/* @__PURE__ */ jsx83(
|
|
15496
15511
|
Icon,
|
|
15497
15512
|
{
|
|
@@ -16487,7 +16502,6 @@ var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
|
16487
16502
|
};
|
|
16488
16503
|
|
|
16489
16504
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
16490
|
-
import { css as css80 } from "@emotion/react";
|
|
16491
16505
|
import { useState as useState11 } from "react";
|
|
16492
16506
|
|
|
16493
16507
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
@@ -16603,7 +16617,6 @@ var ParameterShell = ({
|
|
|
16603
16617
|
errorTestId,
|
|
16604
16618
|
captionTestId,
|
|
16605
16619
|
menuItems,
|
|
16606
|
-
actionItems,
|
|
16607
16620
|
hasOverriddenValue,
|
|
16608
16621
|
onResetOverriddenValue,
|
|
16609
16622
|
title,
|
|
@@ -16625,18 +16638,6 @@ var ParameterShell = ({
|
|
|
16625
16638
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
16626
16639
|
] }),
|
|
16627
16640
|
/* @__PURE__ */ jsxs65("div", { css: inputWrapper, children: [
|
|
16628
|
-
actionItems ? /* @__PURE__ */ jsx96(
|
|
16629
|
-
"div",
|
|
16630
|
-
{
|
|
16631
|
-
css: [
|
|
16632
|
-
inputMenu,
|
|
16633
|
-
menuItems ? css80`
|
|
16634
|
-
right: 1.25rem;
|
|
16635
|
-
` : void 0
|
|
16636
|
-
],
|
|
16637
|
-
children: actionItems
|
|
16638
|
-
}
|
|
16639
|
-
) : null,
|
|
16640
16641
|
menuItems ? /* @__PURE__ */ jsx96(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
16641
16642
|
/* @__PURE__ */ jsx96(
|
|
16642
16643
|
ParameterShellContext.Provider,
|
|
@@ -16873,7 +16874,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16873
16874
|
};
|
|
16874
16875
|
|
|
16875
16876
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
16876
|
-
import { css as
|
|
16877
|
+
import { css as css83 } from "@emotion/react";
|
|
16877
16878
|
import { ListItemNode, ListNode as ListNode2 } from "@lexical/list";
|
|
16878
16879
|
import {
|
|
16879
16880
|
CODE,
|
|
@@ -17025,23 +17026,23 @@ function DisableStylesPlugin() {
|
|
|
17025
17026
|
}
|
|
17026
17027
|
|
|
17027
17028
|
// src/components/ParameterInputs/rich-text/editorStyles.ts
|
|
17028
|
-
import { css as
|
|
17029
|
-
var textBold =
|
|
17029
|
+
import { css as css80 } from "@emotion/css";
|
|
17030
|
+
var textBold = css80`
|
|
17030
17031
|
font-weight: 700;
|
|
17031
17032
|
`;
|
|
17032
|
-
var textItalic =
|
|
17033
|
+
var textItalic = css80`
|
|
17033
17034
|
font-style: italic;
|
|
17034
17035
|
`;
|
|
17035
|
-
var textUnderline =
|
|
17036
|
+
var textUnderline = css80`
|
|
17036
17037
|
text-decoration: underline;
|
|
17037
17038
|
`;
|
|
17038
|
-
var textStrikethrough =
|
|
17039
|
+
var textStrikethrough = css80`
|
|
17039
17040
|
text-decoration: line-through;
|
|
17040
17041
|
`;
|
|
17041
|
-
var textUnderlineStrikethrough =
|
|
17042
|
+
var textUnderlineStrikethrough = css80`
|
|
17042
17043
|
text-decoration: underline line-through;
|
|
17043
17044
|
`;
|
|
17044
|
-
var textCode =
|
|
17045
|
+
var textCode = css80`
|
|
17045
17046
|
background-color: var(--gray-100);
|
|
17046
17047
|
border-radius: var(--rounded-sm);
|
|
17047
17048
|
display: inline-block;
|
|
@@ -17052,68 +17053,68 @@ var textCode = css81`
|
|
|
17052
17053
|
padding-left: var(--spacing-xs);
|
|
17053
17054
|
padding-right: var(--spacing-xs);
|
|
17054
17055
|
`;
|
|
17055
|
-
var textSuperscript =
|
|
17056
|
+
var textSuperscript = css80`
|
|
17056
17057
|
vertical-align: super;
|
|
17057
17058
|
font-size: smaller;
|
|
17058
17059
|
`;
|
|
17059
|
-
var textSubscript =
|
|
17060
|
+
var textSubscript = css80`
|
|
17060
17061
|
vertical-align: sub;
|
|
17061
17062
|
font-size: smaller;
|
|
17062
17063
|
`;
|
|
17063
|
-
var linkElement =
|
|
17064
|
+
var linkElement = css80`
|
|
17064
17065
|
${link}
|
|
17065
17066
|
${linkColorDefault}
|
|
17066
17067
|
text-decoration: underline;
|
|
17067
17068
|
`;
|
|
17068
|
-
var h12 =
|
|
17069
|
+
var h12 = css80`
|
|
17069
17070
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.7rem);
|
|
17070
17071
|
`;
|
|
17071
|
-
var h22 =
|
|
17072
|
+
var h22 = css80`
|
|
17072
17073
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.6rem);
|
|
17073
17074
|
`;
|
|
17074
|
-
var h32 =
|
|
17075
|
+
var h32 = css80`
|
|
17075
17076
|
font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
|
|
17076
17077
|
`;
|
|
17077
|
-
var h42 =
|
|
17078
|
+
var h42 = css80`
|
|
17078
17079
|
font-size: clamp(1.15rem, var(--fluid-font-base), 1.25rem);
|
|
17079
17080
|
`;
|
|
17080
|
-
var h52 =
|
|
17081
|
+
var h52 = css80`
|
|
17081
17082
|
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
17082
17083
|
`;
|
|
17083
|
-
var h62 =
|
|
17084
|
+
var h62 = css80`
|
|
17084
17085
|
font-size: var(--fs-base);
|
|
17085
17086
|
`;
|
|
17086
|
-
var heading1Element =
|
|
17087
|
+
var heading1Element = css80`
|
|
17087
17088
|
${h12}
|
|
17088
17089
|
${commonHeadingAttr(true)}
|
|
17089
17090
|
${commonLineHeight}
|
|
17090
17091
|
`;
|
|
17091
|
-
var heading2Element =
|
|
17092
|
+
var heading2Element = css80`
|
|
17092
17093
|
${h22}
|
|
17093
17094
|
${commonHeadingAttr(true)}
|
|
17094
17095
|
${commonLineHeight}
|
|
17095
17096
|
`;
|
|
17096
|
-
var heading3Element =
|
|
17097
|
+
var heading3Element = css80`
|
|
17097
17098
|
${h32}
|
|
17098
17099
|
${commonHeadingAttr(true)}
|
|
17099
17100
|
${commonLineHeight}
|
|
17100
17101
|
`;
|
|
17101
|
-
var heading4Element =
|
|
17102
|
+
var heading4Element = css80`
|
|
17102
17103
|
${h42}
|
|
17103
17104
|
${commonHeadingAttr(true)}
|
|
17104
17105
|
${commonLineHeight}
|
|
17105
17106
|
`;
|
|
17106
|
-
var heading5Element =
|
|
17107
|
+
var heading5Element = css80`
|
|
17107
17108
|
${h52}
|
|
17108
17109
|
${commonHeadingAttr(true)}
|
|
17109
17110
|
${commonLineHeight}
|
|
17110
17111
|
`;
|
|
17111
|
-
var heading6Element =
|
|
17112
|
+
var heading6Element = css80`
|
|
17112
17113
|
${h62}
|
|
17113
17114
|
${commonHeadingAttr(true)}
|
|
17114
17115
|
${commonLineHeight}
|
|
17115
17116
|
`;
|
|
17116
|
-
var paragraphElement =
|
|
17117
|
+
var paragraphElement = css80`
|
|
17117
17118
|
line-height: 1.5;
|
|
17118
17119
|
margin-bottom: var(--spacing-base);
|
|
17119
17120
|
|
|
@@ -17121,7 +17122,7 @@ var paragraphElement = css81`
|
|
|
17121
17122
|
margin-bottom: 0;
|
|
17122
17123
|
}
|
|
17123
17124
|
`;
|
|
17124
|
-
var orderedListElement =
|
|
17125
|
+
var orderedListElement = css80`
|
|
17125
17126
|
${commonLineHeight}
|
|
17126
17127
|
display: block;
|
|
17127
17128
|
list-style: decimal;
|
|
@@ -17150,7 +17151,7 @@ var orderedListElement = css81`
|
|
|
17150
17151
|
}
|
|
17151
17152
|
}
|
|
17152
17153
|
`;
|
|
17153
|
-
var unorderedListElement =
|
|
17154
|
+
var unorderedListElement = css80`
|
|
17154
17155
|
${commonLineHeight}
|
|
17155
17156
|
display: block;
|
|
17156
17157
|
list-style: disc;
|
|
@@ -17171,13 +17172,13 @@ var unorderedListElement = css81`
|
|
|
17171
17172
|
}
|
|
17172
17173
|
}
|
|
17173
17174
|
`;
|
|
17174
|
-
var listItemElement =
|
|
17175
|
+
var listItemElement = css80`
|
|
17175
17176
|
margin-left: var(--spacing-md);
|
|
17176
17177
|
`;
|
|
17177
|
-
var nestedListItemElement =
|
|
17178
|
+
var nestedListItemElement = css80`
|
|
17178
17179
|
list-style-type: none;
|
|
17179
17180
|
`;
|
|
17180
|
-
var blockquoteElement =
|
|
17181
|
+
var blockquoteElement = css80`
|
|
17181
17182
|
border-left: 0.25rem solid var(--gray-300);
|
|
17182
17183
|
color: var(--gray-600);
|
|
17183
17184
|
margin-bottom: var(--spacing-base);
|
|
@@ -17187,7 +17188,7 @@ var blockquoteElement = css81`
|
|
|
17187
17188
|
margin-bottom: 0;
|
|
17188
17189
|
}
|
|
17189
17190
|
`;
|
|
17190
|
-
var codeElement =
|
|
17191
|
+
var codeElement = css80`
|
|
17191
17192
|
background-color: var(--gray-100);
|
|
17192
17193
|
border-radius: var(--rounded-sm);
|
|
17193
17194
|
display: block;
|
|
@@ -17204,7 +17205,7 @@ var codeElement = css81`
|
|
|
17204
17205
|
`;
|
|
17205
17206
|
|
|
17206
17207
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
17207
|
-
import { css as
|
|
17208
|
+
import { css as css81 } from "@emotion/react";
|
|
17208
17209
|
import { useLexicalComposerContext as useLexicalComposerContext2 } from "@lexical/react/LexicalComposerContext";
|
|
17209
17210
|
import { NodeEventPlugin } from "@lexical/react/LexicalNodeEventPlugin";
|
|
17210
17211
|
import { addClassNamesToElement, isHTMLAnchorElement, mergeRegister as mergeRegister2 } from "@lexical/utils";
|
|
@@ -17545,16 +17546,16 @@ var OPEN_LINK_NODE_MODAL_COMMAND = createCommand(
|
|
|
17545
17546
|
);
|
|
17546
17547
|
var LINK_POPOVER_OFFSET_X = 0;
|
|
17547
17548
|
var LINK_POPOVER_OFFSET_Y = 8;
|
|
17548
|
-
var linkPopover =
|
|
17549
|
+
var linkPopover = css81`
|
|
17549
17550
|
position: absolute;
|
|
17550
17551
|
z-index: 5;
|
|
17551
17552
|
`;
|
|
17552
|
-
var linkPopoverContainer =
|
|
17553
|
+
var linkPopoverContainer = css81`
|
|
17553
17554
|
${Popover};
|
|
17554
17555
|
align-items: center;
|
|
17555
17556
|
display: flex;
|
|
17556
17557
|
`;
|
|
17557
|
-
var linkPopoverAnchor =
|
|
17558
|
+
var linkPopoverAnchor = css81`
|
|
17558
17559
|
${link}
|
|
17559
17560
|
${linkColorDefault}
|
|
17560
17561
|
`;
|
|
@@ -17801,7 +17802,7 @@ function ListIndentPlugin({ maxDepth }) {
|
|
|
17801
17802
|
}
|
|
17802
17803
|
|
|
17803
17804
|
// src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
|
|
17804
|
-
import { css as
|
|
17805
|
+
import { css as css82 } from "@emotion/react";
|
|
17805
17806
|
import { $createCodeNode } from "@lexical/code";
|
|
17806
17807
|
import {
|
|
17807
17808
|
$isListNode as $isListNode2,
|
|
@@ -17825,7 +17826,7 @@ import {
|
|
|
17825
17826
|
} from "lexical";
|
|
17826
17827
|
import { useCallback as useCallback5, useEffect as useEffect13, useMemo as useMemo3, useState as useState13 } from "react";
|
|
17827
17828
|
import { Fragment as Fragment18, jsx as jsx103, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
17828
|
-
var toolbar =
|
|
17829
|
+
var toolbar = css82`
|
|
17829
17830
|
background: var(--gray-50);
|
|
17830
17831
|
border-radius: var(--rounded-base);
|
|
17831
17832
|
display: flex;
|
|
@@ -17837,7 +17838,7 @@ var toolbar = css83`
|
|
|
17837
17838
|
top: calc(var(--spacing-sm) * -2);
|
|
17838
17839
|
z-index: 10;
|
|
17839
17840
|
`;
|
|
17840
|
-
var toolbarGroup =
|
|
17841
|
+
var toolbarGroup = css82`
|
|
17841
17842
|
display: flex;
|
|
17842
17843
|
gap: var(--spacing-xs);
|
|
17843
17844
|
position: relative;
|
|
@@ -17853,7 +17854,7 @@ var toolbarGroup = css83`
|
|
|
17853
17854
|
width: 1px;
|
|
17854
17855
|
}
|
|
17855
17856
|
`;
|
|
17856
|
-
var richTextToolbarButton =
|
|
17857
|
+
var richTextToolbarButton = css82`
|
|
17857
17858
|
align-items: center;
|
|
17858
17859
|
appearance: none;
|
|
17859
17860
|
border: 0;
|
|
@@ -17866,13 +17867,13 @@ var richTextToolbarButton = css83`
|
|
|
17866
17867
|
min-width: 32px;
|
|
17867
17868
|
padding: 0 var(--spacing-sm);
|
|
17868
17869
|
`;
|
|
17869
|
-
var richTextToolbarButtonActive =
|
|
17870
|
+
var richTextToolbarButtonActive = css82`
|
|
17870
17871
|
background: var(--gray-200);
|
|
17871
17872
|
`;
|
|
17872
|
-
var toolbarIcon =
|
|
17873
|
+
var toolbarIcon = css82`
|
|
17873
17874
|
color: inherit;
|
|
17874
17875
|
`;
|
|
17875
|
-
var toolbarChevron =
|
|
17876
|
+
var toolbarChevron = css82`
|
|
17876
17877
|
margin-left: var(--spacing-xs);
|
|
17877
17878
|
`;
|
|
17878
17879
|
var RichTextToolbarIcon = ({ icon }) => {
|
|
@@ -18286,18 +18287,18 @@ var ParameterRichText = ({
|
|
|
18286
18287
|
}
|
|
18287
18288
|
);
|
|
18288
18289
|
};
|
|
18289
|
-
var editorWrapper =
|
|
18290
|
+
var editorWrapper = css83`
|
|
18290
18291
|
display: flex;
|
|
18291
18292
|
flex-flow: column;
|
|
18292
18293
|
flex-grow: 1;
|
|
18293
18294
|
`;
|
|
18294
|
-
var editorContainer =
|
|
18295
|
+
var editorContainer = css83`
|
|
18295
18296
|
display: flex;
|
|
18296
18297
|
flex-flow: column;
|
|
18297
18298
|
flex-grow: 1;
|
|
18298
18299
|
position: relative;
|
|
18299
18300
|
`;
|
|
18300
|
-
var editorPlaceholder =
|
|
18301
|
+
var editorPlaceholder = css83`
|
|
18301
18302
|
color: var(--gray-500);
|
|
18302
18303
|
font-style: italic;
|
|
18303
18304
|
/* 1px is added to make sure caret is clearly visible when field is focused
|
|
@@ -18308,7 +18309,7 @@ var editorPlaceholder = css84`
|
|
|
18308
18309
|
top: var(--spacing-xs);
|
|
18309
18310
|
user-select: none;
|
|
18310
18311
|
`;
|
|
18311
|
-
var editorInput =
|
|
18312
|
+
var editorInput = css83`
|
|
18312
18313
|
background: var(--white);
|
|
18313
18314
|
border: 1px solid var(--white);
|
|
18314
18315
|
border-radius: var(--rounded-sm);
|
|
@@ -18550,6 +18551,62 @@ var ParameterToggleInner = forwardRef17(
|
|
|
18550
18551
|
}
|
|
18551
18552
|
);
|
|
18552
18553
|
|
|
18554
|
+
// src/components/ProgressBar/ProgressBar.styles.ts
|
|
18555
|
+
import { css as css84 } from "@emotion/react";
|
|
18556
|
+
var container = css84`
|
|
18557
|
+
background: var(--gray-50);
|
|
18558
|
+
margin-block: var(--spacing-sm);
|
|
18559
|
+
position: relative;
|
|
18560
|
+
overflow: hidden;
|
|
18561
|
+
height: 1rem;
|
|
18562
|
+
border-radius: var(--rounded-sm);
|
|
18563
|
+
border: solid 1px var(--gray-300);
|
|
18564
|
+
`;
|
|
18565
|
+
var themeMap = {
|
|
18566
|
+
primary: css84`
|
|
18567
|
+
background-color: var(--accent-light);
|
|
18568
|
+
`,
|
|
18569
|
+
secondary: css84`
|
|
18570
|
+
background-color: var(--brand-secondary-5);
|
|
18571
|
+
`
|
|
18572
|
+
};
|
|
18573
|
+
var bar = css84`
|
|
18574
|
+
position: absolute;
|
|
18575
|
+
inset: 0;
|
|
18576
|
+
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
18577
|
+
transform-origin: 0 center;
|
|
18578
|
+
`;
|
|
18579
|
+
|
|
18580
|
+
// src/components/ProgressBar/ProgressBar.tsx
|
|
18581
|
+
import { jsx as jsx108 } from "@emotion/react/jsx-runtime";
|
|
18582
|
+
function ProgressBar({ className, current, max, theme = "primary" }) {
|
|
18583
|
+
const valueNow = Math.min(current, max);
|
|
18584
|
+
const valuePercentage = max > 0 ? Math.ceil(100 / max * valueNow) : 0;
|
|
18585
|
+
return /* @__PURE__ */ jsx108(
|
|
18586
|
+
"div",
|
|
18587
|
+
{
|
|
18588
|
+
className,
|
|
18589
|
+
css: container,
|
|
18590
|
+
role: "progressbar",
|
|
18591
|
+
"aria-busy": valuePercentage !== 100,
|
|
18592
|
+
"aria-invalid": false,
|
|
18593
|
+
"aria-valuemin": 0,
|
|
18594
|
+
"aria-valuemax": max,
|
|
18595
|
+
"aria-valuenow": valueNow,
|
|
18596
|
+
children: /* @__PURE__ */ jsx108(
|
|
18597
|
+
"div",
|
|
18598
|
+
{
|
|
18599
|
+
css: [bar, themeMap[theme]],
|
|
18600
|
+
style: {
|
|
18601
|
+
transform: `scaleX(${valuePercentage / 100})`
|
|
18602
|
+
},
|
|
18603
|
+
"aria-label": `${current} / ${max}`
|
|
18604
|
+
}
|
|
18605
|
+
)
|
|
18606
|
+
}
|
|
18607
|
+
);
|
|
18608
|
+
}
|
|
18609
|
+
|
|
18553
18610
|
// src/components/ProgressList/ProgressList.tsx
|
|
18554
18611
|
import { css as css86 } from "@emotion/react";
|
|
18555
18612
|
import { CgCheckO as CgCheckO2 } from "@react-icons/all-files/cg/CgCheckO";
|
|
@@ -18572,7 +18629,7 @@ var progressListItemStyles = css85`
|
|
|
18572
18629
|
`;
|
|
18573
18630
|
|
|
18574
18631
|
// src/components/ProgressList/ProgressList.tsx
|
|
18575
|
-
import { jsx as
|
|
18632
|
+
import { jsx as jsx109, jsxs as jsxs74 } from "@emotion/react/jsx-runtime";
|
|
18576
18633
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
18577
18634
|
const itemsWithStatus = useMemo4(() => {
|
|
18578
18635
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -18586,8 +18643,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
18586
18643
|
return { ...item, status };
|
|
18587
18644
|
});
|
|
18588
18645
|
}, [items, inProgressId]);
|
|
18589
|
-
return /* @__PURE__ */
|
|
18590
|
-
return /* @__PURE__ */
|
|
18646
|
+
return /* @__PURE__ */ jsx109("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
18647
|
+
return /* @__PURE__ */ jsx109(
|
|
18591
18648
|
ProgressListItem,
|
|
18592
18649
|
{
|
|
18593
18650
|
status,
|
|
@@ -18646,10 +18703,10 @@ var ProgressListItem = ({
|
|
|
18646
18703
|
return colorPerStatus[status];
|
|
18647
18704
|
}, [status, error, errorLevel]);
|
|
18648
18705
|
return /* @__PURE__ */ jsxs74("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
18649
|
-
/* @__PURE__ */
|
|
18706
|
+
/* @__PURE__ */ jsx109(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx109("div", { children: /* @__PURE__ */ jsx109(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
|
|
18650
18707
|
/* @__PURE__ */ jsxs74("div", { children: [
|
|
18651
18708
|
children,
|
|
18652
|
-
/* @__PURE__ */
|
|
18709
|
+
/* @__PURE__ */ jsx109("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
18653
18710
|
] })
|
|
18654
18711
|
] });
|
|
18655
18712
|
};
|
|
@@ -18781,7 +18838,7 @@ var segmentedControlLabelContentStyles = css87`
|
|
|
18781
18838
|
var segmentedControlLabelTextStyles = css87``;
|
|
18782
18839
|
|
|
18783
18840
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
18784
|
-
import { jsx as
|
|
18841
|
+
import { jsx as jsx110, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
|
|
18785
18842
|
var SegmentedControl = ({
|
|
18786
18843
|
name,
|
|
18787
18844
|
options,
|
|
@@ -18812,7 +18869,7 @@ var SegmentedControl = ({
|
|
|
18812
18869
|
const isIconOnly = useMemo5(() => {
|
|
18813
18870
|
return options.every((option) => option.icon && !option.label);
|
|
18814
18871
|
}, [options]);
|
|
18815
|
-
return /* @__PURE__ */
|
|
18872
|
+
return /* @__PURE__ */ jsx110(
|
|
18816
18873
|
"div",
|
|
18817
18874
|
{
|
|
18818
18875
|
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
@@ -18820,11 +18877,11 @@ var SegmentedControl = ({
|
|
|
18820
18877
|
children: options.map((option, index) => {
|
|
18821
18878
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
18822
18879
|
const isDisabled = disabled || option.disabled;
|
|
18823
|
-
return /* @__PURE__ */
|
|
18880
|
+
return /* @__PURE__ */ jsx110(
|
|
18824
18881
|
Tooltip,
|
|
18825
18882
|
{
|
|
18826
18883
|
title: isDisabled || !option.tooltip ? "" : option.tooltip,
|
|
18827
|
-
children: /* @__PURE__ */
|
|
18884
|
+
children: /* @__PURE__ */ jsx110("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ jsxs75(
|
|
18828
18885
|
"label",
|
|
18829
18886
|
{
|
|
18830
18887
|
css: [
|
|
@@ -18833,7 +18890,7 @@ var SegmentedControl = ({
|
|
|
18833
18890
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
18834
18891
|
],
|
|
18835
18892
|
children: [
|
|
18836
|
-
/* @__PURE__ */
|
|
18893
|
+
/* @__PURE__ */ jsx110(
|
|
18837
18894
|
"input",
|
|
18838
18895
|
{
|
|
18839
18896
|
css: segmentedControlInputStyles,
|
|
@@ -18845,10 +18902,10 @@ var SegmentedControl = ({
|
|
|
18845
18902
|
disabled: isDisabled
|
|
18846
18903
|
}
|
|
18847
18904
|
),
|
|
18848
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */
|
|
18905
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx110(CgCheck4, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
18849
18906
|
/* @__PURE__ */ jsxs75("span", { css: segmentedControlLabelContentStyles, children: [
|
|
18850
|
-
!option.icon ? null : /* @__PURE__ */
|
|
18851
|
-
!text ? null : /* @__PURE__ */
|
|
18907
|
+
!option.icon ? null : /* @__PURE__ */ jsx110(Icon, { icon: option.icon, size: "1.5em", iconColor: "currentColor" }),
|
|
18908
|
+
!text ? null : /* @__PURE__ */ jsx110("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
18852
18909
|
] })
|
|
18853
18910
|
]
|
|
18854
18911
|
}
|
|
@@ -18873,7 +18930,7 @@ var skeletonStyles = css89`
|
|
|
18873
18930
|
`;
|
|
18874
18931
|
|
|
18875
18932
|
// src/components/Skeleton/Skeleton.tsx
|
|
18876
|
-
import { jsx as
|
|
18933
|
+
import { jsx as jsx111 } from "@emotion/react/jsx-runtime";
|
|
18877
18934
|
var Skeleton = ({
|
|
18878
18935
|
width = "100%",
|
|
18879
18936
|
height = "1.25rem",
|
|
@@ -18881,7 +18938,7 @@ var Skeleton = ({
|
|
|
18881
18938
|
circle = false,
|
|
18882
18939
|
children,
|
|
18883
18940
|
...otherProps
|
|
18884
|
-
}) => /* @__PURE__ */
|
|
18941
|
+
}) => /* @__PURE__ */ jsx111(
|
|
18885
18942
|
"div",
|
|
18886
18943
|
{
|
|
18887
18944
|
css: [
|
|
@@ -18989,7 +19046,7 @@ var SwitchText = css90`
|
|
|
18989
19046
|
`;
|
|
18990
19047
|
|
|
18991
19048
|
// src/components/Switch/Switch.tsx
|
|
18992
|
-
import { Fragment as Fragment20, jsx as
|
|
19049
|
+
import { Fragment as Fragment20, jsx as jsx112, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
|
|
18993
19050
|
var Switch = React23.forwardRef(
|
|
18994
19051
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
18995
19052
|
let additionalText = infoText;
|
|
@@ -18998,10 +19055,10 @@ var Switch = React23.forwardRef(
|
|
|
18998
19055
|
}
|
|
18999
19056
|
return /* @__PURE__ */ jsxs76(Fragment20, { children: [
|
|
19000
19057
|
/* @__PURE__ */ jsxs76("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
19001
|
-
/* @__PURE__ */
|
|
19002
|
-
/* @__PURE__ */
|
|
19058
|
+
/* @__PURE__ */ jsx112("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
19059
|
+
/* @__PURE__ */ jsx112("span", { css: SwitchInputLabel, children: label })
|
|
19003
19060
|
] }),
|
|
19004
|
-
additionalText ? /* @__PURE__ */
|
|
19061
|
+
additionalText ? /* @__PURE__ */ jsx112("p", { css: SwitchText, children: additionalText }) : null,
|
|
19005
19062
|
children
|
|
19006
19063
|
] });
|
|
19007
19064
|
}
|
|
@@ -19038,40 +19095,40 @@ var tableCellHead = css91`
|
|
|
19038
19095
|
`;
|
|
19039
19096
|
|
|
19040
19097
|
// src/components/Table/Table.tsx
|
|
19041
|
-
import { jsx as
|
|
19098
|
+
import { jsx as jsx113 } from "@emotion/react/jsx-runtime";
|
|
19042
19099
|
var Table = React24.forwardRef(
|
|
19043
19100
|
({ children, cellPadding, ...otherProps }, ref) => {
|
|
19044
|
-
return /* @__PURE__ */
|
|
19101
|
+
return /* @__PURE__ */ jsx113("table", { ref, css: table({ cellPadding }), ...otherProps, children });
|
|
19045
19102
|
}
|
|
19046
19103
|
);
|
|
19047
19104
|
var TableHead = React24.forwardRef(
|
|
19048
19105
|
({ children, ...otherProps }, ref) => {
|
|
19049
|
-
return /* @__PURE__ */
|
|
19106
|
+
return /* @__PURE__ */ jsx113("thead", { ref, css: tableHead, ...otherProps, children });
|
|
19050
19107
|
}
|
|
19051
19108
|
);
|
|
19052
19109
|
var TableBody = React24.forwardRef(
|
|
19053
19110
|
({ children, ...otherProps }, ref) => {
|
|
19054
|
-
return /* @__PURE__ */
|
|
19111
|
+
return /* @__PURE__ */ jsx113("tbody", { ref, ...otherProps, children });
|
|
19055
19112
|
}
|
|
19056
19113
|
);
|
|
19057
19114
|
var TableFoot = React24.forwardRef(
|
|
19058
19115
|
({ children, ...otherProps }, ref) => {
|
|
19059
|
-
return /* @__PURE__ */
|
|
19116
|
+
return /* @__PURE__ */ jsx113("tfoot", { ref, ...otherProps, children });
|
|
19060
19117
|
}
|
|
19061
19118
|
);
|
|
19062
19119
|
var TableRow = React24.forwardRef(
|
|
19063
19120
|
({ children, ...otherProps }, ref) => {
|
|
19064
|
-
return /* @__PURE__ */
|
|
19121
|
+
return /* @__PURE__ */ jsx113("tr", { ref, css: tableRow, ...otherProps, children });
|
|
19065
19122
|
}
|
|
19066
19123
|
);
|
|
19067
19124
|
var TableCellHead = React24.forwardRef(
|
|
19068
19125
|
({ children, ...otherProps }, ref) => {
|
|
19069
|
-
return /* @__PURE__ */
|
|
19126
|
+
return /* @__PURE__ */ jsx113("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
19070
19127
|
}
|
|
19071
19128
|
);
|
|
19072
19129
|
var TableCellData = React24.forwardRef(
|
|
19073
19130
|
({ children, ...otherProps }, ref) => {
|
|
19074
|
-
return /* @__PURE__ */
|
|
19131
|
+
return /* @__PURE__ */ jsx113("td", { ref, ...otherProps, children });
|
|
19075
19132
|
}
|
|
19076
19133
|
);
|
|
19077
19134
|
|
|
@@ -19110,7 +19167,7 @@ var tabButtonGroupStyles = css92`
|
|
|
19110
19167
|
`;
|
|
19111
19168
|
|
|
19112
19169
|
// src/components/Tabs/Tabs.tsx
|
|
19113
|
-
import { jsx as
|
|
19170
|
+
import { jsx as jsx114 } from "@emotion/react/jsx-runtime";
|
|
19114
19171
|
var CurrentTabContext = createContext6(null);
|
|
19115
19172
|
var useCurrentTab = () => {
|
|
19116
19173
|
const context = useContext7(CurrentTabContext);
|
|
@@ -19139,19 +19196,19 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
19139
19196
|
tab.setSelectedId(selected);
|
|
19140
19197
|
}
|
|
19141
19198
|
}, [selected]);
|
|
19142
|
-
return /* @__PURE__ */
|
|
19199
|
+
return /* @__PURE__ */ jsx114(CurrentTabContext.Provider, { value: tab, children });
|
|
19143
19200
|
};
|
|
19144
19201
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
19145
19202
|
const currentTab = useCurrentTab();
|
|
19146
|
-
return /* @__PURE__ */
|
|
19203
|
+
return /* @__PURE__ */ jsx114(ReakitTabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
19147
19204
|
};
|
|
19148
19205
|
var TabButton = ({ children, id, ...props }) => {
|
|
19149
19206
|
const currentTab = useCurrentTab();
|
|
19150
|
-
return /* @__PURE__ */
|
|
19207
|
+
return /* @__PURE__ */ jsx114(ReakitTab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
19151
19208
|
};
|
|
19152
19209
|
var TabContent = ({ children, ...props }) => {
|
|
19153
19210
|
const currentTab = useCurrentTab();
|
|
19154
|
-
return /* @__PURE__ */
|
|
19211
|
+
return /* @__PURE__ */ jsx114(ReakitTabPanel, { ...props, ...currentTab, children });
|
|
19155
19212
|
};
|
|
19156
19213
|
|
|
19157
19214
|
// src/components/Validation/StatusBullet.styles.ts
|
|
@@ -19224,7 +19281,7 @@ var StatusOrphan = css93`
|
|
|
19224
19281
|
`;
|
|
19225
19282
|
|
|
19226
19283
|
// src/components/Validation/StatusBullet.tsx
|
|
19227
|
-
import { jsx as
|
|
19284
|
+
import { jsx as jsx115 } from "@emotion/react/jsx-runtime";
|
|
19228
19285
|
var StatusBullet = ({
|
|
19229
19286
|
status,
|
|
19230
19287
|
hideText = false,
|
|
@@ -19242,7 +19299,7 @@ var StatusBullet = ({
|
|
|
19242
19299
|
Previous: StatusDraft
|
|
19243
19300
|
};
|
|
19244
19301
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
19245
|
-
return /* @__PURE__ */
|
|
19302
|
+
return /* @__PURE__ */ jsx115(
|
|
19246
19303
|
"span",
|
|
19247
19304
|
{
|
|
19248
19305
|
role: "status",
|
|
@@ -19357,6 +19414,7 @@ export {
|
|
|
19357
19414
|
ParameterToggle,
|
|
19358
19415
|
ParameterToggleInner,
|
|
19359
19416
|
Popover2 as Popover,
|
|
19417
|
+
ProgressBar,
|
|
19360
19418
|
ProgressList,
|
|
19361
19419
|
ProgressListItem,
|
|
19362
19420
|
ResolveIcon,
|
|
@@ -19395,11 +19453,10 @@ export {
|
|
|
19395
19453
|
VerticalRhythm,
|
|
19396
19454
|
WarningMessage,
|
|
19397
19455
|
accessibleHidden,
|
|
19456
|
+
addPathSegmentToPathname,
|
|
19398
19457
|
borderTopIcon,
|
|
19399
19458
|
breakpoints,
|
|
19400
19459
|
button,
|
|
19401
|
-
buttonAccentAltDark,
|
|
19402
|
-
buttonAccentAltDarkOutline,
|
|
19403
19460
|
buttonDestructive,
|
|
19404
19461
|
buttonGhost,
|
|
19405
19462
|
buttonGhostDestructive,
|
|
@@ -19425,6 +19482,8 @@ export {
|
|
|
19425
19482
|
fadeOutBottom,
|
|
19426
19483
|
fullWidthScreenIcon,
|
|
19427
19484
|
getDrawerAttributes,
|
|
19485
|
+
getParentPath,
|
|
19486
|
+
getPathSegment,
|
|
19428
19487
|
growSubtle,
|
|
19429
19488
|
imageTextIcon,
|
|
19430
19489
|
infoFilledIcon,
|
|
@@ -19432,6 +19491,8 @@ export {
|
|
|
19432
19491
|
inputError,
|
|
19433
19492
|
inputSelect,
|
|
19434
19493
|
isMacLike,
|
|
19494
|
+
isSecureURL,
|
|
19495
|
+
isValidUrl,
|
|
19435
19496
|
jsonIcon,
|
|
19436
19497
|
labelText,
|
|
19437
19498
|
loader_default as loaderAnimationData,
|