@uniformdev/design-system 18.34.1-alpha.57 → 18.35.1-alpha.26
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 +1048 -880
- package/dist/index.d.ts +77 -27
- package/dist/index.js +1149 -974
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -218,6 +218,10 @@ var breakpoints = {
|
|
|
218
218
|
var useBreakpoint = createBreakpoint(breakpoints);
|
|
219
219
|
var mq = (size) => `@media (min-width: ${breakpoints[size]}px)`;
|
|
220
220
|
var supports = (cssProp) => `@supports (${cssProp})`;
|
|
221
|
+
var cq = (size) => `@container (min-width: ${size})`;
|
|
222
|
+
|
|
223
|
+
// src/utils/replaceUnderscoreInString.ts
|
|
224
|
+
var replaceUnderscoreInString = (title) => (title == null ? void 0 : title.includes("_")) ? title.replaceAll("_", " ") : title;
|
|
221
225
|
|
|
222
226
|
// src/utils/useOutsideClick.tsx
|
|
223
227
|
import { useEffect } from "react";
|
|
@@ -868,6 +872,103 @@ import { CgAdd, CgAddR, CgMathPlus } from "react-icons/cg";
|
|
|
868
872
|
|
|
869
873
|
// src/components/Icons/customIcons.tsx
|
|
870
874
|
import { GenIcon } from "react-icons";
|
|
875
|
+
import { MdSettings } from "react-icons/md";
|
|
876
|
+
|
|
877
|
+
// src/components/Icons/Icon.tsx
|
|
878
|
+
import React3 from "react";
|
|
879
|
+
|
|
880
|
+
// src/components/Icons/Icon.styles.ts
|
|
881
|
+
import { css as css7 } from "@emotion/react";
|
|
882
|
+
var IconImg = css7`
|
|
883
|
+
display: hidden;
|
|
884
|
+
|
|
885
|
+
${mq("sm")} {
|
|
886
|
+
display: block;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
& svg {
|
|
890
|
+
display: block;
|
|
891
|
+
vertical-align: middle;
|
|
892
|
+
}
|
|
893
|
+
`;
|
|
894
|
+
var IconColorGreen = css7`
|
|
895
|
+
color: var(--brand-secondary-3);
|
|
896
|
+
`;
|
|
897
|
+
var IconColorRed = css7`
|
|
898
|
+
color: var(--brand-secondary-5);
|
|
899
|
+
`;
|
|
900
|
+
var IconColorGray = css7`
|
|
901
|
+
color: var(--gray-500);
|
|
902
|
+
`;
|
|
903
|
+
var IconColorCurrent = css7`
|
|
904
|
+
color: currentColor;
|
|
905
|
+
`;
|
|
906
|
+
|
|
907
|
+
// src/components/Icons/IconsProvider.tsx
|
|
908
|
+
import { paramCase } from "param-case";
|
|
909
|
+
import { createContext, useContext as useContext2, useEffect as useEffect3, useState as useState2 } from "react";
|
|
910
|
+
import { jsx as jsx5 } from "@emotion/react/jsx-runtime";
|
|
911
|
+
var IconContext = createContext({
|
|
912
|
+
/** object mapping of available icons */
|
|
913
|
+
iconsMap: {},
|
|
914
|
+
/** sets the loading state of the icon */
|
|
915
|
+
isLoading: true
|
|
916
|
+
});
|
|
917
|
+
function useIconContext() {
|
|
918
|
+
return useContext2(IconContext);
|
|
919
|
+
}
|
|
920
|
+
function IconsProvider({ children }) {
|
|
921
|
+
const [isLoading, setIsLoading] = useState2(true);
|
|
922
|
+
const [iconsMap, setIconsMap] = useState2({});
|
|
923
|
+
const initializeIconsMap = async () => {
|
|
924
|
+
const allCssGgIcons = await import("react-icons/cg");
|
|
925
|
+
const iconMap = Object.entries(allCssGgIcons).reduce((map, [key, icon]) => {
|
|
926
|
+
if (key === "default") {
|
|
927
|
+
return map;
|
|
928
|
+
}
|
|
929
|
+
const iconName = getIconNameFromCssGgComponentName(key);
|
|
930
|
+
return { ...map, [iconName]: icon };
|
|
931
|
+
}, {});
|
|
932
|
+
setIconsMap({ ...iconMap, ...customIcons });
|
|
933
|
+
setIsLoading(false);
|
|
934
|
+
};
|
|
935
|
+
useEffect3(() => {
|
|
936
|
+
initializeIconsMap();
|
|
937
|
+
}, []);
|
|
938
|
+
return /* @__PURE__ */ jsx5(IconContext.Provider, { value: { iconsMap, isLoading }, children });
|
|
939
|
+
}
|
|
940
|
+
function getIconNameFromCssGgComponentName(cssGgComponentName) {
|
|
941
|
+
var _a, _b;
|
|
942
|
+
return (_b = (_a = paramCase(cssGgComponentName.replace("Cg", "")).match(/[a-z]+|\d+/gi)) == null ? void 0 : _a.join("-")) != null ? _b : "";
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
// src/components/Icons/Icon.tsx
|
|
946
|
+
import { jsx as jsx6 } from "@emotion/react/jsx-runtime";
|
|
947
|
+
var IconInner = ({ icon, iconColor = "green", size = "1.5rem", ...otherProps }) => {
|
|
948
|
+
const isIconName = typeof icon === "string";
|
|
949
|
+
const { iconsMap, isLoading } = useIconContext();
|
|
950
|
+
const customColor = {
|
|
951
|
+
green: IconColorGreen,
|
|
952
|
+
gray: IconColorGray,
|
|
953
|
+
red: IconColorRed,
|
|
954
|
+
currentColor: IconColorCurrent
|
|
955
|
+
};
|
|
956
|
+
if (isIconName && isLoading) {
|
|
957
|
+
return null;
|
|
958
|
+
}
|
|
959
|
+
const IconComponent = isIconName ? iconsMap[icon] : icon;
|
|
960
|
+
if (isIconName && IconComponent === void 0) {
|
|
961
|
+
console.error(
|
|
962
|
+
`We don't seem to have the icon you're looking for ("${icon}"). Make sure you're using <IconsProvider> and try an icon from our Storybook.`
|
|
963
|
+
);
|
|
964
|
+
return null;
|
|
965
|
+
}
|
|
966
|
+
return /* @__PURE__ */ jsx6(IconComponent, { role: "img", size, ...otherProps, css: [IconImg, customColor[iconColor]] });
|
|
967
|
+
};
|
|
968
|
+
var Icon = React3.memo(IconInner);
|
|
969
|
+
|
|
970
|
+
// src/components/Icons/customIcons.tsx
|
|
971
|
+
import { jsx as jsx7 } from "@emotion/react/jsx-runtime";
|
|
871
972
|
var rectangleRoundedIcon = GenIcon({
|
|
872
973
|
tag: "svg",
|
|
873
974
|
attr: {
|
|
@@ -1165,6 +1266,7 @@ var infoFilledIcon = GenIcon({
|
|
|
1165
1266
|
}
|
|
1166
1267
|
]
|
|
1167
1268
|
});
|
|
1269
|
+
var settings = (props) => /* @__PURE__ */ jsx7(Icon, { ...props, icon: MdSettings });
|
|
1168
1270
|
var customIcons = {
|
|
1169
1271
|
"rectangle-rounded": rectangleRoundedIcon,
|
|
1170
1272
|
card: cardIcon,
|
|
@@ -1175,101 +1277,9 @@ var customIcons = {
|
|
|
1175
1277
|
"number-input": numberInput,
|
|
1176
1278
|
"canvas-alert": canvasAlertIcon,
|
|
1177
1279
|
warning: warningIcon,
|
|
1178
|
-
"info-filled": infoFilledIcon
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
// src/components/Icons/Icon.tsx
|
|
1182
|
-
import React3 from "react";
|
|
1183
|
-
|
|
1184
|
-
// src/components/Icons/Icon.styles.ts
|
|
1185
|
-
import { css as css7 } from "@emotion/react";
|
|
1186
|
-
var IconImg = css7`
|
|
1187
|
-
display: hidden;
|
|
1188
|
-
|
|
1189
|
-
${mq("sm")} {
|
|
1190
|
-
display: block;
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
& svg {
|
|
1194
|
-
display: block;
|
|
1195
|
-
vertical-align: middle;
|
|
1196
|
-
}
|
|
1197
|
-
`;
|
|
1198
|
-
var IconColorGreen = css7`
|
|
1199
|
-
color: var(--brand-secondary-3);
|
|
1200
|
-
`;
|
|
1201
|
-
var IconColorRed = css7`
|
|
1202
|
-
color: var(--brand-secondary-5);
|
|
1203
|
-
`;
|
|
1204
|
-
var IconColorGray = css7`
|
|
1205
|
-
color: var(--gray-500);
|
|
1206
|
-
`;
|
|
1207
|
-
var IconColorCurrent = css7`
|
|
1208
|
-
color: currentColor;
|
|
1209
|
-
`;
|
|
1210
|
-
|
|
1211
|
-
// src/components/Icons/IconsProvider.tsx
|
|
1212
|
-
import { paramCase } from "param-case";
|
|
1213
|
-
import { createContext, useContext as useContext2, useEffect as useEffect3, useState as useState2 } from "react";
|
|
1214
|
-
import { jsx as jsx5 } from "@emotion/react/jsx-runtime";
|
|
1215
|
-
var IconContext = createContext({
|
|
1216
|
-
/** object mapping of available icons */
|
|
1217
|
-
iconsMap: {},
|
|
1218
|
-
/** sets the loading state of the icon */
|
|
1219
|
-
isLoading: true
|
|
1220
|
-
});
|
|
1221
|
-
function useIconContext() {
|
|
1222
|
-
return useContext2(IconContext);
|
|
1223
|
-
}
|
|
1224
|
-
function IconsProvider({ children }) {
|
|
1225
|
-
const [isLoading, setIsLoading] = useState2(true);
|
|
1226
|
-
const [iconsMap, setIconsMap] = useState2({});
|
|
1227
|
-
const initializeIconsMap = async () => {
|
|
1228
|
-
const allCssGgIcons = await import("react-icons/cg");
|
|
1229
|
-
const iconMap = Object.entries(allCssGgIcons).reduce((map, [key, icon]) => {
|
|
1230
|
-
if (key === "default") {
|
|
1231
|
-
return map;
|
|
1232
|
-
}
|
|
1233
|
-
const iconName = getIconNameFromCssGgComponentName(key);
|
|
1234
|
-
return { ...map, [iconName]: icon };
|
|
1235
|
-
}, {});
|
|
1236
|
-
setIconsMap({ ...iconMap, ...customIcons });
|
|
1237
|
-
setIsLoading(false);
|
|
1238
|
-
};
|
|
1239
|
-
useEffect3(() => {
|
|
1240
|
-
initializeIconsMap();
|
|
1241
|
-
}, []);
|
|
1242
|
-
return /* @__PURE__ */ jsx5(IconContext.Provider, { value: { iconsMap, isLoading }, children });
|
|
1243
|
-
}
|
|
1244
|
-
function getIconNameFromCssGgComponentName(cssGgComponentName) {
|
|
1245
|
-
var _a, _b;
|
|
1246
|
-
return (_b = (_a = paramCase(cssGgComponentName.replace("Cg", "")).match(/[a-z]+|\d+/gi)) == null ? void 0 : _a.join("-")) != null ? _b : "";
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
|
-
// src/components/Icons/Icon.tsx
|
|
1250
|
-
import { jsx as jsx6 } from "@emotion/react/jsx-runtime";
|
|
1251
|
-
var IconInner = ({ icon, iconColor = "green", size = "1.5rem", ...otherProps }) => {
|
|
1252
|
-
const isIconName = typeof icon === "string";
|
|
1253
|
-
const { iconsMap, isLoading } = useIconContext();
|
|
1254
|
-
const customColor = {
|
|
1255
|
-
green: IconColorGreen,
|
|
1256
|
-
gray: IconColorGray,
|
|
1257
|
-
red: IconColorRed,
|
|
1258
|
-
currentColor: IconColorCurrent
|
|
1259
|
-
};
|
|
1260
|
-
if (isIconName && isLoading) {
|
|
1261
|
-
return null;
|
|
1262
|
-
}
|
|
1263
|
-
const IconComponent = isIconName ? iconsMap[icon] : icon;
|
|
1264
|
-
if (isIconName && IconComponent === void 0) {
|
|
1265
|
-
console.error(
|
|
1266
|
-
`We don't seem to have the icon you're looking for ("${icon}"). Make sure you're using <IconsProvider> and try an icon from our Storybook.`
|
|
1267
|
-
);
|
|
1268
|
-
return null;
|
|
1269
|
-
}
|
|
1270
|
-
return /* @__PURE__ */ jsx6(IconComponent, { role: "img", size, ...otherProps, css: [IconImg, customColor[iconColor]] });
|
|
1280
|
+
"info-filled": infoFilledIcon,
|
|
1281
|
+
settings
|
|
1271
1282
|
};
|
|
1272
|
-
var Icon = React3.memo(IconInner);
|
|
1273
1283
|
|
|
1274
1284
|
// src/components/AddListButton/AddListButton.styles.ts
|
|
1275
1285
|
import { css as css8 } from "@emotion/react";
|
|
@@ -1314,7 +1324,7 @@ var AddListButtonIcon = css8`
|
|
|
1314
1324
|
`;
|
|
1315
1325
|
|
|
1316
1326
|
// src/components/AddListButton/AddListButton.tsx
|
|
1317
|
-
import { jsx as
|
|
1327
|
+
import { jsx as jsx8, jsxs as jsxs3 } from "@emotion/react/jsx-runtime";
|
|
1318
1328
|
var AddListButton = ({
|
|
1319
1329
|
buttonText = "Add Item",
|
|
1320
1330
|
onButtonClick,
|
|
@@ -1343,7 +1353,7 @@ var AddListButton = ({
|
|
|
1343
1353
|
disabled,
|
|
1344
1354
|
...buttonProps,
|
|
1345
1355
|
children: [
|
|
1346
|
-
icon === "math-plus" ? /* @__PURE__ */
|
|
1356
|
+
icon === "math-plus" ? /* @__PURE__ */ jsx8(
|
|
1347
1357
|
Icon,
|
|
1348
1358
|
{
|
|
1349
1359
|
icon: mapIcon[icon],
|
|
@@ -1351,7 +1361,7 @@ var AddListButton = ({
|
|
|
1351
1361
|
size: "1.25em",
|
|
1352
1362
|
css: [AddListButtonIcon, AddListButtonIconMathPlus(disabled, theme)]
|
|
1353
1363
|
}
|
|
1354
|
-
) : /* @__PURE__ */
|
|
1364
|
+
) : /* @__PURE__ */ jsx8(Icon, { icon: mapIcon[icon], iconColor: "currentColor", size: "1.25em", css: AddListButtonIcon }),
|
|
1355
1365
|
buttonText
|
|
1356
1366
|
]
|
|
1357
1367
|
}
|
|
@@ -1392,7 +1402,7 @@ var commonLineHeight = css9`
|
|
|
1392
1402
|
`;
|
|
1393
1403
|
|
|
1394
1404
|
// src/components/Typography/Heading.tsx
|
|
1395
|
-
import { jsx as
|
|
1405
|
+
import { jsx as jsx9 } from "@emotion/react/jsx-runtime";
|
|
1396
1406
|
var Heading = ({
|
|
1397
1407
|
level = 2,
|
|
1398
1408
|
asSpan,
|
|
@@ -1409,7 +1419,7 @@ var Heading = ({
|
|
|
1409
1419
|
5: h5,
|
|
1410
1420
|
6: h6
|
|
1411
1421
|
};
|
|
1412
|
-
return /* @__PURE__ */
|
|
1422
|
+
return /* @__PURE__ */ jsx9(
|
|
1413
1423
|
Heading2,
|
|
1414
1424
|
{
|
|
1415
1425
|
...hAttributes,
|
|
@@ -1486,7 +1496,7 @@ var UppercaseText = css10`
|
|
|
1486
1496
|
`;
|
|
1487
1497
|
|
|
1488
1498
|
// src/components/Badges/Badge.tsx
|
|
1489
|
-
import { jsx as
|
|
1499
|
+
import { jsx as jsx10 } from "@emotion/react/jsx-runtime";
|
|
1490
1500
|
var Badge = ({
|
|
1491
1501
|
text,
|
|
1492
1502
|
theme = "unimportant",
|
|
@@ -1507,7 +1517,7 @@ var Badge = ({
|
|
|
1507
1517
|
sm: Small,
|
|
1508
1518
|
base: Base
|
|
1509
1519
|
};
|
|
1510
|
-
return /* @__PURE__ */
|
|
1520
|
+
return /* @__PURE__ */ jsx10(
|
|
1511
1521
|
"span",
|
|
1512
1522
|
{
|
|
1513
1523
|
css: [
|
|
@@ -1547,7 +1557,7 @@ var linkColorCurrent = css11`
|
|
|
1547
1557
|
`;
|
|
1548
1558
|
|
|
1549
1559
|
// src/components/Typography/Link.tsx
|
|
1550
|
-
import { jsx as
|
|
1560
|
+
import { jsx as jsx11, jsxs as jsxs4 } from "@emotion/react/jsx-runtime";
|
|
1551
1561
|
var Link = React4.forwardRef(
|
|
1552
1562
|
({ external, text, linkColor = "currentColor", children, ...props }, ref) => {
|
|
1553
1563
|
const textColor = {
|
|
@@ -1561,12 +1571,12 @@ var Link = React4.forwardRef(
|
|
|
1561
1571
|
} : {};
|
|
1562
1572
|
return /* @__PURE__ */ jsxs4("a", { css: [link, textColor[linkColor]], ...props, ...externalAttrs, ref, children: [
|
|
1563
1573
|
text,
|
|
1564
|
-
external ? /* @__PURE__ */
|
|
1574
|
+
external ? /* @__PURE__ */ jsx11(Icon, { icon: CgExternal, iconColor: "currentColor", size: 24 }) : null,
|
|
1565
1575
|
children
|
|
1566
1576
|
] });
|
|
1567
1577
|
}
|
|
1568
1578
|
);
|
|
1569
|
-
var LinkWithRef = React4.forwardRef(({ linkManagerComponent: LinkManager, href, as, ...props }, ref) => /* @__PURE__ */
|
|
1579
|
+
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 }) }));
|
|
1570
1580
|
|
|
1571
1581
|
// src/components/Typography/styles/Paragraph.styles.ts
|
|
1572
1582
|
import { css as css12 } from "@emotion/react";
|
|
@@ -1580,7 +1590,7 @@ var paragraph = css12`
|
|
|
1580
1590
|
`;
|
|
1581
1591
|
|
|
1582
1592
|
// src/components/Typography/Paragraph.tsx
|
|
1583
|
-
import { Fragment as Fragment2, jsx as
|
|
1593
|
+
import { Fragment as Fragment2, jsx as jsx12 } from "@emotion/react/jsx-runtime";
|
|
1584
1594
|
import { createElement } from "@emotion/react";
|
|
1585
1595
|
var Paragraph = ({ className, htmlContent, children, ...pAttributes }) => {
|
|
1586
1596
|
if (htmlContent && Array.isArray(htmlContent)) {
|
|
@@ -1594,9 +1604,9 @@ var Paragraph = ({ className, htmlContent, children, ...pAttributes }) => {
|
|
|
1594
1604
|
dangerouslySetInnerHTML: { __html: html }
|
|
1595
1605
|
}
|
|
1596
1606
|
));
|
|
1597
|
-
return /* @__PURE__ */
|
|
1607
|
+
return /* @__PURE__ */ jsx12(Fragment2, { children: paragraphContent });
|
|
1598
1608
|
}
|
|
1599
|
-
return htmlContent ? /* @__PURE__ */
|
|
1609
|
+
return htmlContent ? /* @__PURE__ */ jsx12(
|
|
1600
1610
|
"p",
|
|
1601
1611
|
{
|
|
1602
1612
|
...pAttributes,
|
|
@@ -1604,7 +1614,7 @@ var Paragraph = ({ className, htmlContent, children, ...pAttributes }) => {
|
|
|
1604
1614
|
className: typeof className === "string" ? className : "",
|
|
1605
1615
|
dangerouslySetInnerHTML: { __html: htmlContent }
|
|
1606
1616
|
}
|
|
1607
|
-
) : /* @__PURE__ */
|
|
1617
|
+
) : /* @__PURE__ */ jsx12(
|
|
1608
1618
|
"p",
|
|
1609
1619
|
{
|
|
1610
1620
|
...pAttributes,
|
|
@@ -1663,10 +1673,10 @@ var IntegrationHeaderSectionDocsLink = css13`
|
|
|
1663
1673
|
`;
|
|
1664
1674
|
|
|
1665
1675
|
// src/components/Typography/IntegrationHeaderSection.tsx
|
|
1666
|
-
import { Fragment as Fragment3, jsx as
|
|
1676
|
+
import { Fragment as Fragment3, jsx as jsx13, jsxs as jsxs5 } from "@emotion/react/jsx-runtime";
|
|
1667
1677
|
var IntegrationHeaderSectionHexImage = ({ ...props }) => {
|
|
1668
1678
|
return /* @__PURE__ */ jsxs5("svg", { viewBox: "0 0 100 116", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1669
|
-
/* @__PURE__ */
|
|
1679
|
+
/* @__PURE__ */ jsx13(
|
|
1670
1680
|
"path",
|
|
1671
1681
|
{
|
|
1672
1682
|
d: "M50 2L98.4974 30V86L50 114L1.50258 86V30L50 2Z",
|
|
@@ -1675,7 +1685,7 @@ var IntegrationHeaderSectionHexImage = ({ ...props }) => {
|
|
|
1675
1685
|
strokeWidth: "2"
|
|
1676
1686
|
}
|
|
1677
1687
|
),
|
|
1678
|
-
/* @__PURE__ */
|
|
1688
|
+
/* @__PURE__ */ jsx13("defs", { children: /* @__PURE__ */ jsxs5(
|
|
1679
1689
|
"linearGradient",
|
|
1680
1690
|
{
|
|
1681
1691
|
id: "paint0_linear_154_2529",
|
|
@@ -1685,8 +1695,8 @@ var IntegrationHeaderSectionHexImage = ({ ...props }) => {
|
|
|
1685
1695
|
y2: "6.75894",
|
|
1686
1696
|
gradientUnits: "userSpaceOnUse",
|
|
1687
1697
|
children: [
|
|
1688
|
-
/* @__PURE__ */
|
|
1689
|
-
/* @__PURE__ */
|
|
1698
|
+
/* @__PURE__ */ jsx13("stop", { stopColor: "#1768B2" }),
|
|
1699
|
+
/* @__PURE__ */ jsx13("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
1690
1700
|
]
|
|
1691
1701
|
}
|
|
1692
1702
|
) })
|
|
@@ -1707,14 +1717,14 @@ var IntegrationHeaderSection = ({
|
|
|
1707
1717
|
/* @__PURE__ */ jsxs5("div", { css: IntegrationHeaderSectionContainer, ...props, children: [
|
|
1708
1718
|
/* @__PURE__ */ jsxs5("div", { css: IntegrationHeaderSectionTitleContainer, children: [
|
|
1709
1719
|
icon ? /* @__PURE__ */ jsxs5("div", { css: IntegrationHeaderSectionIconContainer, children: [
|
|
1710
|
-
/* @__PURE__ */
|
|
1711
|
-
CompIcon ? /* @__PURE__ */
|
|
1720
|
+
/* @__PURE__ */ jsx13(IntegrationHeaderSectionHexImage, { css: IntegrationHeaderSectionHexIcon }),
|
|
1721
|
+
CompIcon ? /* @__PURE__ */ jsx13(CompIcon, { css: IntegrationHeaderSectionIcon }) : icon ? /* @__PURE__ */ jsx13("img", { src: icon, alt: title, css: IntegrationHeaderSectionIcon }) : null
|
|
1712
1722
|
] }) : null,
|
|
1713
1723
|
/* @__PURE__ */ jsxs5("div", { css: IntegrationHeaderSectionTitleGroup, "data-test-id": "integration-header-text", children: [
|
|
1714
|
-
/* @__PURE__ */
|
|
1715
|
-
badgeText ? /* @__PURE__ */
|
|
1716
|
-
menu2 ? /* @__PURE__ */
|
|
1717
|
-
docsLink ? /* @__PURE__ */
|
|
1724
|
+
/* @__PURE__ */ jsx13("h1", { css: IntegrationHeaderSectionTitle, children: title }),
|
|
1725
|
+
badgeText ? /* @__PURE__ */ jsx13(Badge, { text: badgeText }) : null,
|
|
1726
|
+
menu2 ? /* @__PURE__ */ jsx13("div", { children: menu2 }) : null,
|
|
1727
|
+
docsLink ? /* @__PURE__ */ jsx13(
|
|
1718
1728
|
Link,
|
|
1719
1729
|
{
|
|
1720
1730
|
href: docsLink,
|
|
@@ -1728,7 +1738,7 @@ var IntegrationHeaderSection = ({
|
|
|
1728
1738
|
) : null
|
|
1729
1739
|
] })
|
|
1730
1740
|
] }),
|
|
1731
|
-
description ? /* @__PURE__ */
|
|
1741
|
+
description ? /* @__PURE__ */ jsx13(
|
|
1732
1742
|
Paragraph,
|
|
1733
1743
|
{
|
|
1734
1744
|
css: IntegrationHeaderSectionText,
|
|
@@ -1805,7 +1815,7 @@ var PageHeaderSectionTitle = css14`
|
|
|
1805
1815
|
`;
|
|
1806
1816
|
|
|
1807
1817
|
// src/components/Typography/PageHeaderSection.tsx
|
|
1808
|
-
import { jsx as
|
|
1818
|
+
import { jsx as jsx14, jsxs as jsxs6 } from "@emotion/react/jsx-runtime";
|
|
1809
1819
|
var PageHeaderSection = ({
|
|
1810
1820
|
title,
|
|
1811
1821
|
desc,
|
|
@@ -1822,8 +1832,8 @@ var PageHeaderSection = ({
|
|
|
1822
1832
|
return /* @__PURE__ */ jsxs6("div", { css: PageHeaderSectionContainer, children: [
|
|
1823
1833
|
/* @__PURE__ */ jsxs6("section", { css: PageHeaderSectionDetails, children: [
|
|
1824
1834
|
linkText && linkProps && linkManagerComponent ? /* @__PURE__ */ jsxs6("div", { css: PageHeaderSectionLinkContainer, children: [
|
|
1825
|
-
/* @__PURE__ */
|
|
1826
|
-
/* @__PURE__ */
|
|
1835
|
+
/* @__PURE__ */ jsx14(Icon, { icon: CgChevronLeft, size: 18, css: PageHeaderSectionLinkIcon }),
|
|
1836
|
+
/* @__PURE__ */ jsx14(
|
|
1827
1837
|
LinkWithRef,
|
|
1828
1838
|
{
|
|
1829
1839
|
linkManagerComponent,
|
|
@@ -1833,10 +1843,10 @@ var PageHeaderSection = ({
|
|
|
1833
1843
|
}
|
|
1834
1844
|
)
|
|
1835
1845
|
] }) : null,
|
|
1836
|
-
/* @__PURE__ */
|
|
1846
|
+
/* @__PURE__ */ jsx14(Heading, { level, css: PageHeaderSectionTitle, ...htmlProps, "data-test-id": "page-header-section", children: title }),
|
|
1837
1847
|
desc
|
|
1838
1848
|
] }),
|
|
1839
|
-
children ? /* @__PURE__ */
|
|
1849
|
+
children ? /* @__PURE__ */ jsx14("div", { css: PageHeaderSectionChildContainer, children }) : null
|
|
1840
1850
|
] });
|
|
1841
1851
|
};
|
|
1842
1852
|
|
|
@@ -1925,7 +1935,7 @@ var InlineAlertParagraph = css15`
|
|
|
1925
1935
|
`;
|
|
1926
1936
|
|
|
1927
1937
|
// src/components/Alerts/InlineAlert.tsx
|
|
1928
|
-
import { jsx as
|
|
1938
|
+
import { jsx as jsx15, jsxs as jsxs7 } from "@emotion/react/jsx-runtime";
|
|
1929
1939
|
var InlineAlert = ({
|
|
1930
1940
|
id,
|
|
1931
1941
|
title,
|
|
@@ -1935,9 +1945,9 @@ var InlineAlert = ({
|
|
|
1935
1945
|
...btnProps
|
|
1936
1946
|
}) => {
|
|
1937
1947
|
return /* @__PURE__ */ jsxs7("div", { role: "alert", id, css: [InlineAlertContainer, InlineAlertTriangle(arrowPosition), positionCss], children: [
|
|
1938
|
-
/* @__PURE__ */
|
|
1939
|
-
/* @__PURE__ */
|
|
1940
|
-
/* @__PURE__ */
|
|
1948
|
+
/* @__PURE__ */ jsx15("button", { type: "button", "aria-controls": id, title: "close alert", css: InlineAlertCloseBtn, ...btnProps, children: /* @__PURE__ */ jsx15(Icon, { icon: CgClose, iconColor: "currentColor", size: 24 }) }),
|
|
1949
|
+
/* @__PURE__ */ jsx15(Heading, { level: 3, css: InlineAlertTitle, children: title }),
|
|
1950
|
+
/* @__PURE__ */ jsx15("p", { css: InlineAlertParagraph, children: text })
|
|
1941
1951
|
] });
|
|
1942
1952
|
};
|
|
1943
1953
|
|
|
@@ -10375,7 +10385,7 @@ var spinner_default = {
|
|
|
10375
10385
|
|
|
10376
10386
|
// src/components/AnimationFile/AnimationFile.tsx
|
|
10377
10387
|
import Lottie from "lottie-react";
|
|
10378
|
-
import { jsx as
|
|
10388
|
+
import { jsx as jsx16 } from "@emotion/react/jsx-runtime";
|
|
10379
10389
|
var AnimationFile = ({
|
|
10380
10390
|
label,
|
|
10381
10391
|
loop,
|
|
@@ -10384,7 +10394,7 @@ var AnimationFile = ({
|
|
|
10384
10394
|
height = "auto",
|
|
10385
10395
|
...props
|
|
10386
10396
|
}) => {
|
|
10387
|
-
return /* @__PURE__ */
|
|
10397
|
+
return /* @__PURE__ */ jsx16(
|
|
10388
10398
|
Lottie,
|
|
10389
10399
|
{
|
|
10390
10400
|
role: "graphics-symbol",
|
|
@@ -10505,7 +10515,7 @@ var bannerDismissButtonStyles = css17`
|
|
|
10505
10515
|
`;
|
|
10506
10516
|
|
|
10507
10517
|
// src/components/Banner/Banner.tsx
|
|
10508
|
-
import { jsx as
|
|
10518
|
+
import { jsx as jsx17, jsxs as jsxs8 } from "@emotion/react/jsx-runtime";
|
|
10509
10519
|
var Banner = ({ type = "note", onDismiss, children, isAnimated = false, ...props }) => {
|
|
10510
10520
|
return /* @__PURE__ */ jsxs8(
|
|
10511
10521
|
"div",
|
|
@@ -10515,8 +10525,8 @@ var Banner = ({ type = "note", onDismiss, children, isAnimated = false, ...props
|
|
|
10515
10525
|
"data-type": type,
|
|
10516
10526
|
...props,
|
|
10517
10527
|
children: [
|
|
10518
|
-
/* @__PURE__ */
|
|
10519
|
-
!onDismiss ? null : /* @__PURE__ */
|
|
10528
|
+
/* @__PURE__ */ jsx17("div", { css: bannerContentStyles, children }),
|
|
10529
|
+
!onDismiss ? null : /* @__PURE__ */ jsx17("button", { type: "button", css: bannerDismissButtonStyles, title: "Dismiss banner", onClick: onDismiss, children: /* @__PURE__ */ jsx17(CgClose2, {}) })
|
|
10520
10530
|
]
|
|
10521
10531
|
}
|
|
10522
10532
|
);
|
|
@@ -10537,7 +10547,7 @@ var SVGDark = css18`
|
|
|
10537
10547
|
`;
|
|
10538
10548
|
|
|
10539
10549
|
// src/components/Brand/UniformBadge.tsx
|
|
10540
|
-
import { jsx as
|
|
10550
|
+
import { jsx as jsx18, jsxs as jsxs9 } from "@emotion/react/jsx-runtime";
|
|
10541
10551
|
var UniformBadge = ({
|
|
10542
10552
|
theme = "light",
|
|
10543
10553
|
...props
|
|
@@ -10554,15 +10564,15 @@ var UniformBadge = ({
|
|
|
10554
10564
|
css: [SVG, theme === "dark" ? SVGDark : SVGLight],
|
|
10555
10565
|
...props,
|
|
10556
10566
|
children: [
|
|
10557
|
-
/* @__PURE__ */
|
|
10558
|
-
/* @__PURE__ */
|
|
10567
|
+
/* @__PURE__ */ jsx18("path", { d: "M28.998 0 0 16.744V50.23l28.998-16.744 29.004-16.743L28.998 0Z", fill: "#7BB3FF" }),
|
|
10568
|
+
/* @__PURE__ */ jsx18(
|
|
10559
10569
|
"path",
|
|
10560
10570
|
{
|
|
10561
10571
|
d: "M28.998 66.974V33.487L0 50.231v33.487l28.998 16.744 29.004-16.744V50.23L28.998 66.974Z",
|
|
10562
10572
|
fill: "#498DFF"
|
|
10563
10573
|
}
|
|
10564
10574
|
),
|
|
10565
|
-
/* @__PURE__ */
|
|
10575
|
+
/* @__PURE__ */ jsx18(
|
|
10566
10576
|
"path",
|
|
10567
10577
|
{
|
|
10568
10578
|
d: "M58.002 16.744 28.998 33.487l29.004 16.744v33.487L87 66.975V33.487L58.002 16.744Z",
|
|
@@ -10575,12 +10585,12 @@ var UniformBadge = ({
|
|
|
10575
10585
|
};
|
|
10576
10586
|
|
|
10577
10587
|
// src/components/Brand/UniformLogo.tsx
|
|
10578
|
-
import { jsx as
|
|
10588
|
+
import { jsx as jsx19, jsxs as jsxs10 } from "@emotion/react/jsx-runtime";
|
|
10579
10589
|
var UniformLogo = ({
|
|
10580
10590
|
theme = "light",
|
|
10581
10591
|
...props
|
|
10582
10592
|
}) => {
|
|
10583
|
-
return /* @__PURE__ */
|
|
10593
|
+
return /* @__PURE__ */ jsx19("div", { "data-test-id": "uniform-Logo", children: /* @__PURE__ */ jsxs10(
|
|
10584
10594
|
"svg",
|
|
10585
10595
|
{
|
|
10586
10596
|
width: "153",
|
|
@@ -10591,16 +10601,16 @@ var UniformLogo = ({
|
|
|
10591
10601
|
css: [SVG, theme === "dark" ? SVGDark : SVGLight],
|
|
10592
10602
|
...props,
|
|
10593
10603
|
children: [
|
|
10594
|
-
/* @__PURE__ */
|
|
10595
|
-
/* @__PURE__ */
|
|
10604
|
+
/* @__PURE__ */ jsx19("path", { d: "M11.249 0 0 6.495v12.99l11.249-6.495L22.5 6.495 11.25 0Z", fill: "#7BB3FF" }),
|
|
10605
|
+
/* @__PURE__ */ jsx19(
|
|
10596
10606
|
"path",
|
|
10597
10607
|
{
|
|
10598
10608
|
d: "M11.249 25.98V12.99L0 19.486v12.99l11.249 6.495L22.5 32.476v-12.99L11.25 25.98Z",
|
|
10599
10609
|
fill: "#498DFF"
|
|
10600
10610
|
}
|
|
10601
10611
|
),
|
|
10602
|
-
/* @__PURE__ */
|
|
10603
|
-
/* @__PURE__ */
|
|
10612
|
+
/* @__PURE__ */ jsx19("path", { d: "m22.5 6.495-11.25 6.496 11.25 6.495v12.99l11.25-6.495V12.99L22.5 6.495Z", fill: "#E61408" }),
|
|
10613
|
+
/* @__PURE__ */ jsx19(
|
|
10604
10614
|
"path",
|
|
10605
10615
|
{
|
|
10606
10616
|
d: "M86.45 12.98h-4.076v14.87h4.076V12.98Zm.146-6.843h-4.371v4.076h4.37V6.137Zm5.861 1.993v4.85h-2.736v3.477h2.736V27.85h4.076V16.457h3.27V12.98h-3.27V9.617h3.27v-3.48h-3.896l-3.45 1.992Zm13.503 4.7-3.45 1.993v11.183l3.45 1.992h6.335l3.45-1.992V14.823l-3.45-1.992h-6.335Zm5.71 11.688h-5.087v-8.21h5.087v8.21Zm12.607-10.315-2.119-1.224h-1.954v14.87h4.076V16.457h5.115V12.98h-2.999l-2.119 1.224ZM71.034 12.83l-2.375 1.373-2.379-1.372h-1.6v15.018h4.075V16.31h5.084v11.54h4.076V14.823l-3.45-1.992h-3.431ZM56.145 24.517h-5.087V12.98h-4.073v13.027l3.45 1.992h3.593l2.111-1.22.003.002.003-.003v.003l2.108 1.218h1.965v-15.02h-4.073v11.538Zm93.68-11.687h-2.855l-2.794 1.604-2.767-1.603h-2.854l-2.111 1.218-2.111-1.218h-1.965v15.018h4.076V16.31h4.343v11.54h4.073V16.31h4.343v11.54h4.073V14.823l-3.451-1.992Z",
|
|
@@ -10615,7 +10625,7 @@ var UniformLogo = ({
|
|
|
10615
10625
|
// src/components/Button/Button.tsx
|
|
10616
10626
|
import * as React5 from "react";
|
|
10617
10627
|
import { Button as BaseButton } from "reakit/Button";
|
|
10618
|
-
import { jsx as
|
|
10628
|
+
import { jsx as jsx20 } from "@emotion/react/jsx-runtime";
|
|
10619
10629
|
var Button = React5.forwardRef(
|
|
10620
10630
|
({ buttonType = "primary", size = "md", children, ...props }, ref) => {
|
|
10621
10631
|
const buttonTheme = {
|
|
@@ -10636,7 +10646,7 @@ var Button = React5.forwardRef(
|
|
|
10636
10646
|
lg: "padding: var(--spacing-sm) var(--spacing-base)",
|
|
10637
10647
|
xl: "padding: 0.75rem var(--spacing-md)"
|
|
10638
10648
|
};
|
|
10639
|
-
return /* @__PURE__ */
|
|
10649
|
+
return /* @__PURE__ */ jsx20(BaseButton, { ref, css: [button, buttonTheme[buttonType], btnSize[size]], ...props, children });
|
|
10640
10650
|
}
|
|
10641
10651
|
);
|
|
10642
10652
|
|
|
@@ -10668,7 +10678,7 @@ var menu = css19`
|
|
|
10668
10678
|
`;
|
|
10669
10679
|
|
|
10670
10680
|
// src/components/Menu/Menu.tsx
|
|
10671
|
-
import { jsx as
|
|
10681
|
+
import { jsx as jsx21, jsxs as jsxs11 } from "@emotion/react/jsx-runtime";
|
|
10672
10682
|
var MenuContext = React6.createContext({});
|
|
10673
10683
|
var useMenuContext = () => {
|
|
10674
10684
|
return React6.useContext(MenuContext);
|
|
@@ -10678,12 +10688,18 @@ var Menu = ({
|
|
|
10678
10688
|
menuTrigger,
|
|
10679
10689
|
placement = "auto",
|
|
10680
10690
|
menuItemsContainerCssClasses,
|
|
10681
|
-
children
|
|
10691
|
+
children,
|
|
10692
|
+
forceVisible
|
|
10682
10693
|
}) => {
|
|
10683
|
-
const menuState = useMenuState({ placement });
|
|
10694
|
+
const menuState = useMenuState({ placement, visible: forceVisible });
|
|
10695
|
+
React6.useEffect(() => {
|
|
10696
|
+
if (forceVisible !== void 0) {
|
|
10697
|
+
menuState.setVisible(forceVisible);
|
|
10698
|
+
}
|
|
10699
|
+
});
|
|
10684
10700
|
return /* @__PURE__ */ jsxs11(MenuContext.Provider, { value: menuState, children: [
|
|
10685
|
-
/* @__PURE__ */
|
|
10686
|
-
/* @__PURE__ */
|
|
10701
|
+
/* @__PURE__ */ jsx21(MenuButton, { ...menuState, ref: menuTrigger.ref, ...menuTrigger.props, children: (triggerProps) => React6.cloneElement(menuTrigger, triggerProps) }),
|
|
10702
|
+
/* @__PURE__ */ jsx21(Portal, { children: /* @__PURE__ */ jsx21(
|
|
10687
10703
|
BaseMenu,
|
|
10688
10704
|
{
|
|
10689
10705
|
...menuState,
|
|
@@ -10699,13 +10715,35 @@ var Menu = ({
|
|
|
10699
10715
|
] });
|
|
10700
10716
|
};
|
|
10701
10717
|
|
|
10718
|
+
// src/components/Menu/MenuGroup.styles.ts
|
|
10719
|
+
import { css as css20 } from "@emotion/react";
|
|
10720
|
+
var MenuGroupContainer = css20`
|
|
10721
|
+
display: flex;
|
|
10722
|
+
flex-direction: column;
|
|
10723
|
+
`;
|
|
10724
|
+
var MenuTitle = css20`
|
|
10725
|
+
color: var(--gray-400);
|
|
10726
|
+
font-size: var(--fs-xs);
|
|
10727
|
+
font-weight: var(--fw-bold);
|
|
10728
|
+
text-transform: uppercase;
|
|
10729
|
+
`;
|
|
10730
|
+
|
|
10731
|
+
// src/components/Menu/MenuGroup.tsx
|
|
10732
|
+
import { jsx as jsx22, jsxs as jsxs12 } from "@emotion/react/jsx-runtime";
|
|
10733
|
+
var MenuGroup = ({ title, children }) => {
|
|
10734
|
+
return /* @__PURE__ */ jsxs12("div", { css: MenuGroupContainer, "data-test-id": "menu-group", children: [
|
|
10735
|
+
/* @__PURE__ */ jsx22("span", { css: MenuTitle, children: title }),
|
|
10736
|
+
children
|
|
10737
|
+
] });
|
|
10738
|
+
};
|
|
10739
|
+
|
|
10702
10740
|
// src/components/Menu/MenuItem.tsx
|
|
10703
10741
|
import * as React7 from "react";
|
|
10704
10742
|
import { MenuItem as BaseMenuItem } from "reakit";
|
|
10705
10743
|
|
|
10706
10744
|
// src/components/Menu/MenuItem.styles.ts
|
|
10707
|
-
import { css as
|
|
10708
|
-
var menuItem = (textTheme) =>
|
|
10745
|
+
import { css as css21 } from "@emotion/react";
|
|
10746
|
+
var menuItem = (textTheme) => css21`
|
|
10709
10747
|
align-items: center;
|
|
10710
10748
|
border: none;
|
|
10711
10749
|
border-radius: var(--rounded-base);
|
|
@@ -10731,7 +10769,7 @@ var menuItem = (textTheme) => css20`
|
|
|
10731
10769
|
outline: none;
|
|
10732
10770
|
}
|
|
10733
10771
|
`;
|
|
10734
|
-
var menuItemWithIcon =
|
|
10772
|
+
var menuItemWithIcon = css21`
|
|
10735
10773
|
align-items: center;
|
|
10736
10774
|
display: flex;
|
|
10737
10775
|
justify-content: space-between;
|
|
@@ -10743,14 +10781,14 @@ var menuItemWithIcon = css20`
|
|
|
10743
10781
|
height: var(--spacing-base);
|
|
10744
10782
|
}
|
|
10745
10783
|
`;
|
|
10746
|
-
var menuItemSeparator =
|
|
10784
|
+
var menuItemSeparator = css21`
|
|
10747
10785
|
border-top: 1px solid var(--gray-300);
|
|
10748
10786
|
width: 100%;
|
|
10749
10787
|
margin-block: var(--spacing-sm);
|
|
10750
10788
|
`;
|
|
10751
10789
|
|
|
10752
10790
|
// src/components/Menu/MenuItem.tsx
|
|
10753
|
-
import { jsx as
|
|
10791
|
+
import { jsx as jsx23, jsxs as jsxs13 } from "@emotion/react/jsx-runtime";
|
|
10754
10792
|
var MenuItem = React7.forwardRef(
|
|
10755
10793
|
({ children, className, hideMenuOnClick = true, icon, textColor = "base", ...props }, ref) => {
|
|
10756
10794
|
const menuState = useMenuContext();
|
|
@@ -10767,7 +10805,7 @@ var MenuItem = React7.forwardRef(
|
|
|
10767
10805
|
};
|
|
10768
10806
|
const resolvedProps = hideMenuOnClick ? resolveProps(props) : props;
|
|
10769
10807
|
const resolvedChildren = typeof children === "function" ? children(resolvedProps) : children;
|
|
10770
|
-
return /* @__PURE__ */
|
|
10808
|
+
return /* @__PURE__ */ jsx23(
|
|
10771
10809
|
BaseMenuItem,
|
|
10772
10810
|
{
|
|
10773
10811
|
ref,
|
|
@@ -10783,7 +10821,7 @@ var MenuItem = React7.forwardRef(
|
|
|
10783
10821
|
}
|
|
10784
10822
|
);
|
|
10785
10823
|
function renderWithIcon(children, icon) {
|
|
10786
|
-
return /* @__PURE__ */
|
|
10824
|
+
return /* @__PURE__ */ jsxs13("span", { css: menuItemWithIcon, children: [
|
|
10787
10825
|
icon,
|
|
10788
10826
|
" ",
|
|
10789
10827
|
children
|
|
@@ -10791,12 +10829,12 @@ function renderWithIcon(children, icon) {
|
|
|
10791
10829
|
}
|
|
10792
10830
|
|
|
10793
10831
|
// src/components/Menu/MenuItemSeparator.tsx
|
|
10794
|
-
import { jsx as
|
|
10795
|
-
var MenuItemSeparator = () => /* @__PURE__ */
|
|
10832
|
+
import { jsx as jsx24 } from "@emotion/react/jsx-runtime";
|
|
10833
|
+
var MenuItemSeparator = () => /* @__PURE__ */ jsx24("hr", { css: menuItemSeparator });
|
|
10796
10834
|
|
|
10797
10835
|
// src/components/ButtonWithMenu/ButtonWithMenu.styles.ts
|
|
10798
|
-
import { css as
|
|
10799
|
-
var ButtonWithMenuContainer =
|
|
10836
|
+
import { css as css22 } from "@emotion/react";
|
|
10837
|
+
var ButtonWithMenuContainer = css22`
|
|
10800
10838
|
align-items: center;
|
|
10801
10839
|
border: 1px solid transparent;
|
|
10802
10840
|
border-radius: var(--rounded-sm);
|
|
@@ -10817,7 +10855,7 @@ var ButtonWithMenuContainer = css21`
|
|
|
10817
10855
|
border-color: var(--gray-700);
|
|
10818
10856
|
}
|
|
10819
10857
|
`;
|
|
10820
|
-
var ButtonWithMenuBtn =
|
|
10858
|
+
var ButtonWithMenuBtn = css22`
|
|
10821
10859
|
border: 1px solid transparent;
|
|
10822
10860
|
background: transparent;
|
|
10823
10861
|
border-radius: var(--rounded-base);
|
|
@@ -10840,33 +10878,33 @@ var ButtonWithMenuBtn = css21`
|
|
|
10840
10878
|
pointer-events: none;
|
|
10841
10879
|
}
|
|
10842
10880
|
`;
|
|
10843
|
-
var ButtonWithMenuIcon =
|
|
10881
|
+
var ButtonWithMenuIcon = css22`
|
|
10844
10882
|
padding: var(--spacing-sm);
|
|
10845
10883
|
border-left: 1px solid currentColor;
|
|
10846
10884
|
`;
|
|
10847
|
-
var buttonPrimary2 =
|
|
10885
|
+
var buttonPrimary2 = css22`
|
|
10848
10886
|
background: var(--brand-secondary-1);
|
|
10849
10887
|
color: var(--white);
|
|
10850
10888
|
`;
|
|
10851
|
-
var buttonPrimaryDisabled =
|
|
10889
|
+
var buttonPrimaryDisabled = css22`
|
|
10852
10890
|
background: var(--gray-300);
|
|
10853
10891
|
color: var(--white);
|
|
10854
10892
|
`;
|
|
10855
|
-
var buttonSecondary2 =
|
|
10893
|
+
var buttonSecondary2 = css22`
|
|
10856
10894
|
background: var(--brand-secondary-5);
|
|
10857
10895
|
color: var(--white);
|
|
10858
10896
|
`;
|
|
10859
|
-
var buttonSecondaryDisabled =
|
|
10897
|
+
var buttonSecondaryDisabled = css22`
|
|
10860
10898
|
${buttonPrimaryDisabled}
|
|
10861
10899
|
`;
|
|
10862
|
-
var buttonUnimportant2 =
|
|
10900
|
+
var buttonUnimportant2 = css22`
|
|
10863
10901
|
background: var(--brand-secondary-2);
|
|
10864
10902
|
color: var(--brand-secondary-1);
|
|
10865
10903
|
`;
|
|
10866
|
-
var buttonUnimportantDisabled =
|
|
10904
|
+
var buttonUnimportantDisabled = css22`
|
|
10867
10905
|
${buttonPrimaryDisabled}
|
|
10868
10906
|
`;
|
|
10869
|
-
var buttonGhost2 =
|
|
10907
|
+
var buttonGhost2 = css22`
|
|
10870
10908
|
background: transparent;
|
|
10871
10909
|
color: var(--brand-secondary-3);
|
|
10872
10910
|
|
|
@@ -10874,13 +10912,13 @@ var buttonGhost2 = css21`
|
|
|
10874
10912
|
border-color: var(--brand-secondary-3);
|
|
10875
10913
|
}
|
|
10876
10914
|
`;
|
|
10877
|
-
var buttonGhostDisabled =
|
|
10915
|
+
var buttonGhostDisabled = css22`
|
|
10878
10916
|
border-color: var(--gray-400);
|
|
10879
10917
|
color: var(--gray-400);
|
|
10880
10918
|
`;
|
|
10881
10919
|
|
|
10882
10920
|
// src/components/ButtonWithMenu/ButtonWithMenu.tsx
|
|
10883
|
-
import { jsx as
|
|
10921
|
+
import { jsx as jsx25, jsxs as jsxs14 } from "@emotion/react/jsx-runtime";
|
|
10884
10922
|
var ButtonWithMenu = ({
|
|
10885
10923
|
onButtonClick,
|
|
10886
10924
|
buttonType = "secondary",
|
|
@@ -10902,13 +10940,13 @@ var ButtonWithMenu = ({
|
|
|
10902
10940
|
ghost: buttonGhostDisabled,
|
|
10903
10941
|
unimportant: buttonUnimportantDisabled
|
|
10904
10942
|
};
|
|
10905
|
-
return /* @__PURE__ */
|
|
10943
|
+
return /* @__PURE__ */ jsxs14(
|
|
10906
10944
|
"div",
|
|
10907
10945
|
{
|
|
10908
10946
|
css: [ButtonWithMenuContainer, disabled ? buttonDisabledTheme[buttonType] : buttonTheme[buttonType]],
|
|
10909
10947
|
"data-test-id": "multioptions-button",
|
|
10910
10948
|
children: [
|
|
10911
|
-
/* @__PURE__ */
|
|
10949
|
+
/* @__PURE__ */ jsx25(
|
|
10912
10950
|
"button",
|
|
10913
10951
|
{
|
|
10914
10952
|
type: "button",
|
|
@@ -10920,12 +10958,12 @@ var ButtonWithMenu = ({
|
|
|
10920
10958
|
children: buttonText
|
|
10921
10959
|
}
|
|
10922
10960
|
),
|
|
10923
|
-
/* @__PURE__ */
|
|
10961
|
+
/* @__PURE__ */ jsx25(
|
|
10924
10962
|
Menu,
|
|
10925
10963
|
{
|
|
10926
10964
|
menuLabel: "buttonMenu",
|
|
10927
10965
|
placement,
|
|
10928
|
-
menuTrigger: /* @__PURE__ */
|
|
10966
|
+
menuTrigger: /* @__PURE__ */ jsx25("div", { css: ButtonWithMenuIcon, "data-test-id": "multioptions-button-call-menu", children: /* @__PURE__ */ jsx25(Icon, { icon: CgChevronDown, size: 24, iconColor: "currentColor" }) }),
|
|
10929
10967
|
children
|
|
10930
10968
|
}
|
|
10931
10969
|
)
|
|
@@ -10935,18 +10973,18 @@ var ButtonWithMenu = ({
|
|
|
10935
10973
|
};
|
|
10936
10974
|
|
|
10937
10975
|
// src/components/Callout/Callout.tsx
|
|
10938
|
-
import { css as
|
|
10976
|
+
import { css as css24 } from "@emotion/react";
|
|
10939
10977
|
|
|
10940
10978
|
// src/components/Callout/Callout.styles.ts
|
|
10941
|
-
import { css as
|
|
10942
|
-
var calloutContainer =
|
|
10979
|
+
import { css as css23 } from "@emotion/react";
|
|
10980
|
+
var calloutContainer = css23`
|
|
10943
10981
|
${functionalColors}
|
|
10944
10982
|
|
|
10945
10983
|
font-size: var(--fs-sm);
|
|
10946
10984
|
border-radius: var(--rounded-base);
|
|
10947
10985
|
padding: var(--spacing-base);
|
|
10948
10986
|
`;
|
|
10949
|
-
var calloutContainerCompact =
|
|
10987
|
+
var calloutContainerCompact = css23`
|
|
10950
10988
|
font-size: var(--fs-xs);
|
|
10951
10989
|
padding: var(--spacing-sm);
|
|
10952
10990
|
border-radius: 0 var(--rounded-base) var(--rounded-base) 0;
|
|
@@ -10958,32 +10996,32 @@ var calloutContainerCompact = css22`
|
|
|
10958
10996
|
--note-desc: var(--brand-secondary-1);
|
|
10959
10997
|
--success-desc: var(--brand-secondary-1);
|
|
10960
10998
|
`;
|
|
10961
|
-
var calloutInner =
|
|
10999
|
+
var calloutInner = css23`
|
|
10962
11000
|
display: flex;
|
|
10963
11001
|
gap: var(--spacing-sm);
|
|
10964
11002
|
`;
|
|
10965
|
-
var calloutBody =
|
|
11003
|
+
var calloutBody = css23`
|
|
10966
11004
|
display: flex;
|
|
10967
11005
|
flex-direction: column;
|
|
10968
11006
|
gap: var(--spacing-base);
|
|
10969
11007
|
`;
|
|
10970
|
-
var calloutBodyCompact =
|
|
11008
|
+
var calloutBodyCompact = css23`
|
|
10971
11009
|
gap: var(--spacing-xs);
|
|
10972
11010
|
`;
|
|
10973
|
-
var calloutIconWrap =
|
|
11011
|
+
var calloutIconWrap = css23`
|
|
10974
11012
|
flex-shrink: 0;
|
|
10975
11013
|
`;
|
|
10976
|
-
var calloutTitle =
|
|
11014
|
+
var calloutTitle = css23`
|
|
10977
11015
|
font-weight: var(--fw-bold);
|
|
10978
11016
|
`;
|
|
10979
|
-
var calloutIcon =
|
|
11017
|
+
var calloutIcon = css23`
|
|
10980
11018
|
width: 1.25rem;
|
|
10981
11019
|
height: 1.25rem;
|
|
10982
11020
|
`;
|
|
10983
11021
|
|
|
10984
11022
|
// src/components/Callout/CalloutIcons.tsx
|
|
10985
|
-
import { jsx as
|
|
10986
|
-
var InfoIcon = ({ ...props }) => /* @__PURE__ */
|
|
11023
|
+
import { jsx as jsx26 } from "@emotion/react/jsx-runtime";
|
|
11024
|
+
var InfoIcon = ({ ...props }) => /* @__PURE__ */ jsx26(
|
|
10987
11025
|
"svg",
|
|
10988
11026
|
{
|
|
10989
11027
|
role: "img",
|
|
@@ -10994,7 +11032,7 @@ var InfoIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
10994
11032
|
viewBox: "0 0 14 16",
|
|
10995
11033
|
fill: "currentColor",
|
|
10996
11034
|
...props,
|
|
10997
|
-
children: /* @__PURE__ */
|
|
11035
|
+
children: /* @__PURE__ */ jsx26(
|
|
10998
11036
|
"path",
|
|
10999
11037
|
{
|
|
11000
11038
|
fillRule: "evenodd",
|
|
@@ -11003,7 +11041,7 @@ var InfoIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
11003
11041
|
)
|
|
11004
11042
|
}
|
|
11005
11043
|
);
|
|
11006
|
-
var DangerIcon = ({ ...props }) => /* @__PURE__ */
|
|
11044
|
+
var DangerIcon = ({ ...props }) => /* @__PURE__ */ jsx26(
|
|
11007
11045
|
"svg",
|
|
11008
11046
|
{
|
|
11009
11047
|
role: "img",
|
|
@@ -11014,7 +11052,7 @@ var DangerIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
11014
11052
|
viewBox: "0 0 12 16",
|
|
11015
11053
|
fill: "currentColor",
|
|
11016
11054
|
...props,
|
|
11017
|
-
children: /* @__PURE__ */
|
|
11055
|
+
children: /* @__PURE__ */ jsx26(
|
|
11018
11056
|
"path",
|
|
11019
11057
|
{
|
|
11020
11058
|
fillRule: "evenodd",
|
|
@@ -11023,7 +11061,7 @@ var DangerIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
11023
11061
|
)
|
|
11024
11062
|
}
|
|
11025
11063
|
);
|
|
11026
|
-
var NoteIcon = ({ ...props }) => /* @__PURE__ */
|
|
11064
|
+
var NoteIcon = ({ ...props }) => /* @__PURE__ */ jsx26(
|
|
11027
11065
|
"svg",
|
|
11028
11066
|
{
|
|
11029
11067
|
role: "img",
|
|
@@ -11034,7 +11072,7 @@ var NoteIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
11034
11072
|
viewBox: "0 0 14 16",
|
|
11035
11073
|
fill: "currentColor",
|
|
11036
11074
|
...props,
|
|
11037
|
-
children: /* @__PURE__ */
|
|
11075
|
+
children: /* @__PURE__ */ jsx26(
|
|
11038
11076
|
"path",
|
|
11039
11077
|
{
|
|
11040
11078
|
fillRule: "evenodd",
|
|
@@ -11043,7 +11081,7 @@ var NoteIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
11043
11081
|
)
|
|
11044
11082
|
}
|
|
11045
11083
|
);
|
|
11046
|
-
var TipIcon = ({ ...props }) => /* @__PURE__ */
|
|
11084
|
+
var TipIcon = ({ ...props }) => /* @__PURE__ */ jsx26(
|
|
11047
11085
|
"svg",
|
|
11048
11086
|
{
|
|
11049
11087
|
role: "img",
|
|
@@ -11054,7 +11092,7 @@ var TipIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
11054
11092
|
viewBox: "0 0 12 16",
|
|
11055
11093
|
fill: "currentColor",
|
|
11056
11094
|
...props,
|
|
11057
|
-
children: /* @__PURE__ */
|
|
11095
|
+
children: /* @__PURE__ */ jsx26(
|
|
11058
11096
|
"path",
|
|
11059
11097
|
{
|
|
11060
11098
|
fillRule: "evenodd",
|
|
@@ -11063,7 +11101,7 @@ var TipIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
11063
11101
|
)
|
|
11064
11102
|
}
|
|
11065
11103
|
);
|
|
11066
|
-
var CautionIcon = ({ ...props }) => /* @__PURE__ */
|
|
11104
|
+
var CautionIcon = ({ ...props }) => /* @__PURE__ */ jsx26(
|
|
11067
11105
|
"svg",
|
|
11068
11106
|
{
|
|
11069
11107
|
role: "img",
|
|
@@ -11074,7 +11112,7 @@ var CautionIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
11074
11112
|
viewBox: "0 0 16 16",
|
|
11075
11113
|
fill: "currentColor",
|
|
11076
11114
|
...props,
|
|
11077
|
-
children: /* @__PURE__ */
|
|
11115
|
+
children: /* @__PURE__ */ jsx26(
|
|
11078
11116
|
"path",
|
|
11079
11117
|
{
|
|
11080
11118
|
fillRule: "evenodd",
|
|
@@ -11083,7 +11121,7 @@ var CautionIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
11083
11121
|
)
|
|
11084
11122
|
}
|
|
11085
11123
|
);
|
|
11086
|
-
var SuccessIcon = ({ ...props }) => /* @__PURE__ */
|
|
11124
|
+
var SuccessIcon = ({ ...props }) => /* @__PURE__ */ jsx26(
|
|
11087
11125
|
"svg",
|
|
11088
11126
|
{
|
|
11089
11127
|
role: "img",
|
|
@@ -11094,7 +11132,7 @@ var SuccessIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
11094
11132
|
fill: "currentColor",
|
|
11095
11133
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11096
11134
|
...props,
|
|
11097
|
-
children: /* @__PURE__ */
|
|
11135
|
+
children: /* @__PURE__ */ jsx26(
|
|
11098
11136
|
"path",
|
|
11099
11137
|
{
|
|
11100
11138
|
fillRule: "evenodd",
|
|
@@ -11106,95 +11144,95 @@ var SuccessIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
11106
11144
|
);
|
|
11107
11145
|
|
|
11108
11146
|
// src/components/Callout/Callout.tsx
|
|
11109
|
-
import { jsx as
|
|
11147
|
+
import { jsx as jsx27, jsxs as jsxs15 } from "@emotion/react/jsx-runtime";
|
|
11110
11148
|
var calloutTypeDataMap = {
|
|
11111
11149
|
caution: {
|
|
11112
11150
|
icon: CautionIcon,
|
|
11113
|
-
descriptionColor:
|
|
11151
|
+
descriptionColor: css24`
|
|
11114
11152
|
color: var(--caution-desc);
|
|
11115
11153
|
`,
|
|
11116
|
-
iconColor:
|
|
11154
|
+
iconColor: css24`
|
|
11117
11155
|
color: var(--caution-icon);
|
|
11118
11156
|
`,
|
|
11119
|
-
containerStyles:
|
|
11157
|
+
containerStyles: css24`
|
|
11120
11158
|
color: var(--caution-title);
|
|
11121
11159
|
background-color: var(--caution-container);
|
|
11122
11160
|
`
|
|
11123
11161
|
},
|
|
11124
11162
|
danger: {
|
|
11125
11163
|
icon: DangerIcon,
|
|
11126
|
-
descriptionColor:
|
|
11164
|
+
descriptionColor: css24`
|
|
11127
11165
|
color: var(--danger-desc);
|
|
11128
11166
|
`,
|
|
11129
|
-
iconColor:
|
|
11167
|
+
iconColor: css24`
|
|
11130
11168
|
color: var(--danger-icon);
|
|
11131
11169
|
`,
|
|
11132
|
-
containerStyles:
|
|
11170
|
+
containerStyles: css24`
|
|
11133
11171
|
color: var(--danger-title);
|
|
11134
11172
|
background-color: var(--danger-container);
|
|
11135
11173
|
`
|
|
11136
11174
|
},
|
|
11137
11175
|
error: {
|
|
11138
11176
|
icon: CautionIcon,
|
|
11139
|
-
descriptionColor:
|
|
11177
|
+
descriptionColor: css24`
|
|
11140
11178
|
color: var(--danger-desc);
|
|
11141
11179
|
`,
|
|
11142
|
-
iconColor:
|
|
11180
|
+
iconColor: css24`
|
|
11143
11181
|
color: var(--danger-icon);
|
|
11144
11182
|
`,
|
|
11145
|
-
containerStyles:
|
|
11183
|
+
containerStyles: css24`
|
|
11146
11184
|
color: var(--danger-title);
|
|
11147
11185
|
background-color: var(--danger-container);
|
|
11148
11186
|
`
|
|
11149
11187
|
},
|
|
11150
11188
|
info: {
|
|
11151
11189
|
icon: InfoIcon,
|
|
11152
|
-
descriptionColor:
|
|
11190
|
+
descriptionColor: css24`
|
|
11153
11191
|
color: var(--info-desc);
|
|
11154
11192
|
`,
|
|
11155
|
-
iconColor:
|
|
11193
|
+
iconColor: css24`
|
|
11156
11194
|
color: var(--info-icon);
|
|
11157
11195
|
`,
|
|
11158
|
-
containerStyles:
|
|
11196
|
+
containerStyles: css24`
|
|
11159
11197
|
color: var(--info-title);
|
|
11160
11198
|
background-color: var(--info-container);
|
|
11161
11199
|
`
|
|
11162
11200
|
},
|
|
11163
11201
|
note: {
|
|
11164
11202
|
icon: NoteIcon,
|
|
11165
|
-
descriptionColor:
|
|
11203
|
+
descriptionColor: css24`
|
|
11166
11204
|
color: var(--note-desc);
|
|
11167
11205
|
`,
|
|
11168
|
-
iconColor:
|
|
11206
|
+
iconColor: css24`
|
|
11169
11207
|
color: var(--note-icon);
|
|
11170
11208
|
`,
|
|
11171
|
-
containerStyles:
|
|
11209
|
+
containerStyles: css24`
|
|
11172
11210
|
color: var(--note-title);
|
|
11173
11211
|
background-color: var(--note-container);
|
|
11174
11212
|
`
|
|
11175
11213
|
},
|
|
11176
11214
|
success: {
|
|
11177
11215
|
icon: SuccessIcon,
|
|
11178
|
-
descriptionColor:
|
|
11216
|
+
descriptionColor: css24`
|
|
11179
11217
|
color: var(--success-desc);
|
|
11180
11218
|
`,
|
|
11181
|
-
iconColor:
|
|
11219
|
+
iconColor: css24`
|
|
11182
11220
|
color: var(--success-icon);
|
|
11183
11221
|
`,
|
|
11184
|
-
containerStyles:
|
|
11222
|
+
containerStyles: css24`
|
|
11185
11223
|
color: var(--success-title);
|
|
11186
11224
|
background-color: var(--success-container);
|
|
11187
11225
|
`
|
|
11188
11226
|
},
|
|
11189
11227
|
tip: {
|
|
11190
11228
|
icon: TipIcon,
|
|
11191
|
-
descriptionColor:
|
|
11229
|
+
descriptionColor: css24`
|
|
11192
11230
|
color: var(--success-desc);
|
|
11193
11231
|
`,
|
|
11194
|
-
iconColor:
|
|
11232
|
+
iconColor: css24`
|
|
11195
11233
|
color: var(--success-icon);
|
|
11196
11234
|
`,
|
|
11197
|
-
containerStyles:
|
|
11235
|
+
containerStyles: css24`
|
|
11198
11236
|
color: var(--success-title);
|
|
11199
11237
|
background-color: var(--success-container);
|
|
11200
11238
|
`
|
|
@@ -11206,7 +11244,7 @@ var Callout = ({ type = "info", compact = false, title, children, className }) =
|
|
|
11206
11244
|
return null;
|
|
11207
11245
|
}
|
|
11208
11246
|
const Icon2 = calloutTypeData.icon;
|
|
11209
|
-
return /* @__PURE__ */
|
|
11247
|
+
return /* @__PURE__ */ jsx27(
|
|
11210
11248
|
"div",
|
|
11211
11249
|
{
|
|
11212
11250
|
"data-testid": "sdk-ui-callout",
|
|
@@ -11217,11 +11255,11 @@ var Callout = ({ type = "info", compact = false, title, children, className }) =
|
|
|
11217
11255
|
typeof className === "object" ? className : ""
|
|
11218
11256
|
],
|
|
11219
11257
|
className: `${typeof className === "string" ? className : ""}`,
|
|
11220
|
-
children: /* @__PURE__ */
|
|
11221
|
-
compact ? null : /* @__PURE__ */
|
|
11222
|
-
/* @__PURE__ */
|
|
11223
|
-
title ? /* @__PURE__ */
|
|
11224
|
-
children ? /* @__PURE__ */
|
|
11258
|
+
children: /* @__PURE__ */ jsxs15("div", { css: calloutInner, children: [
|
|
11259
|
+
compact ? null : /* @__PURE__ */ jsx27("div", { css: calloutIconWrap, children: /* @__PURE__ */ jsx27(Icon2, { css: [calloutIcon, calloutTypeData.iconColor] }) }),
|
|
11260
|
+
/* @__PURE__ */ jsxs15("div", { css: [calloutBody, compact ? calloutBodyCompact : void 0], children: [
|
|
11261
|
+
title ? /* @__PURE__ */ jsx27("div", { css: [calloutTitle], children: title }) : null,
|
|
11262
|
+
children ? /* @__PURE__ */ jsx27("div", { css: [calloutTypeData.descriptionColor], children }) : null
|
|
11225
11263
|
] })
|
|
11226
11264
|
] })
|
|
11227
11265
|
}
|
|
@@ -11232,46 +11270,74 @@ var Callout = ({ type = "info", compact = false, title, children, className }) =
|
|
|
11232
11270
|
import { CgMoreAlt } from "react-icons/cg";
|
|
11233
11271
|
|
|
11234
11272
|
// src/components/Card/Card.styles.ts
|
|
11235
|
-
import { css as
|
|
11236
|
-
var CardContainer =
|
|
11273
|
+
import { css as css25 } from "@emotion/react";
|
|
11274
|
+
var CardContainer = css25`
|
|
11237
11275
|
background: var(--white);
|
|
11238
11276
|
border: 1px solid var(--gray-300);
|
|
11239
11277
|
border-radius: var(--rounded-base);
|
|
11240
11278
|
padding: var(--spacing-md);
|
|
11241
11279
|
position: relative;
|
|
11280
|
+
transition: background-color var(--duration-fast) var(--timing-ease-out);
|
|
11281
|
+
min-height: 160px;
|
|
11282
|
+
|
|
11283
|
+
&:hover {
|
|
11284
|
+
background: var(--gray-50);
|
|
11285
|
+
}
|
|
11242
11286
|
`;
|
|
11243
|
-
var CardTitle =
|
|
11244
|
-
|
|
11287
|
+
var CardTitle = (marginBottom) => css25`
|
|
11288
|
+
display: flex;
|
|
11289
|
+
margin: ${marginBottom ? "0 0 var(--spacing-base)" : "0"};
|
|
11245
11290
|
padding-right: var(--spacing-lg);
|
|
11291
|
+
word-break: break-word;
|
|
11292
|
+
gap: var(--spacing-xs);
|
|
11293
|
+
font-weight: var(--fw-regular);
|
|
11246
11294
|
`;
|
|
11247
|
-
var CardMenu =
|
|
11295
|
+
var CardMenu = css25`
|
|
11296
|
+
align-items: center;
|
|
11248
11297
|
background: transparent;
|
|
11298
|
+
color: var(--gray-300);
|
|
11249
11299
|
border: none;
|
|
11250
11300
|
padding: 0;
|
|
11251
11301
|
position: absolute;
|
|
11252
11302
|
top: var(--spacing-md);
|
|
11253
11303
|
right: var(--spacing-md);
|
|
11304
|
+
z-index: var(--z-10);
|
|
11305
|
+
transition: color var(--duration-fast) var(--timing-ease-out);
|
|
11306
|
+
|
|
11307
|
+
&:hover,
|
|
11308
|
+
&:focus,
|
|
11309
|
+
&:active,
|
|
11310
|
+
&[aria-expanded='true'] {
|
|
11311
|
+
color: var(--gray-500);
|
|
11312
|
+
}
|
|
11254
11313
|
`;
|
|
11255
11314
|
|
|
11256
11315
|
// src/components/Card/Card.tsx
|
|
11257
|
-
import { jsx as
|
|
11258
|
-
var Card = ({
|
|
11259
|
-
|
|
11260
|
-
|
|
11261
|
-
|
|
11262
|
-
|
|
11263
|
-
|
|
11264
|
-
|
|
11265
|
-
|
|
11266
|
-
|
|
11267
|
-
|
|
11268
|
-
|
|
11269
|
-
|
|
11316
|
+
import { jsx as jsx28, jsxs as jsxs16 } from "@emotion/react/jsx-runtime";
|
|
11317
|
+
var Card = ({
|
|
11318
|
+
title,
|
|
11319
|
+
menuItems,
|
|
11320
|
+
children,
|
|
11321
|
+
titleWithMarginBottom = true,
|
|
11322
|
+
disabled,
|
|
11323
|
+
menuButtonTestId,
|
|
11324
|
+
...props
|
|
11325
|
+
}) => {
|
|
11326
|
+
return /* @__PURE__ */ jsxs16("div", { css: CardContainer, ...props, children: [
|
|
11327
|
+
title ? /* @__PURE__ */ jsx28(CardTitle2, { title, titleWithMarginBottom }) : null,
|
|
11328
|
+
menuItems ? /* @__PURE__ */ jsx28(
|
|
11329
|
+
Menu,
|
|
11330
|
+
{
|
|
11331
|
+
menuLabel: "More options",
|
|
11332
|
+
menuTrigger: /* @__PURE__ */ jsx28(
|
|
11333
|
+
"button",
|
|
11334
|
+
{
|
|
11335
|
+
"aria-label": "More options",
|
|
11270
11336
|
type: "button",
|
|
11271
11337
|
disabled,
|
|
11272
11338
|
css: CardMenu,
|
|
11273
11339
|
"data-test-id": menuButtonTestId != null ? menuButtonTestId : "list-card-menu",
|
|
11274
|
-
children: /* @__PURE__ */
|
|
11340
|
+
children: /* @__PURE__ */ jsx28(Icon, { icon: CgMoreAlt, iconColor: "currentColor", size: 32 })
|
|
11275
11341
|
}
|
|
11276
11342
|
),
|
|
11277
11343
|
children: menuItems
|
|
@@ -11280,27 +11346,35 @@ var Card = ({ title, menuItems, children, disabled, menuButtonTestId, ...props }
|
|
|
11280
11346
|
children
|
|
11281
11347
|
] });
|
|
11282
11348
|
};
|
|
11349
|
+
var CardTitle2 = ({ title, titleWithMarginBottom, children }) => {
|
|
11350
|
+
const normalizeTitle = replaceUnderscoreInString(title);
|
|
11351
|
+
return /* @__PURE__ */ jsxs16(Heading, { level: 3, css: CardTitle(titleWithMarginBottom), children: [
|
|
11352
|
+
normalizeTitle,
|
|
11353
|
+
children
|
|
11354
|
+
] });
|
|
11355
|
+
};
|
|
11283
11356
|
|
|
11284
11357
|
// src/components/Card/CardContainer.styles.ts
|
|
11285
|
-
import { css as
|
|
11286
|
-
var CardContainerWrapper = (bgColor) =>
|
|
11358
|
+
import { css as css26 } from "@emotion/react";
|
|
11359
|
+
var CardContainerWrapper = (bgColor) => css26`
|
|
11287
11360
|
background: ${bgColor === "gray" ? `var(--gray-50)` : `var(--white)`};
|
|
11361
|
+
container-type: inline-size;
|
|
11288
11362
|
`;
|
|
11289
|
-
var CardContainerInner = ({ padding, withLastColumn }) =>
|
|
11363
|
+
var CardContainerInner = ({ padding, withLastColumn }) => css26`
|
|
11290
11364
|
display: grid;
|
|
11291
11365
|
gap: var(--spacing-lg);
|
|
11292
11366
|
max-width: var(--site-width);
|
|
11293
11367
|
margin: 0 auto;
|
|
11294
11368
|
padding: ${padding ? "var(--spacing-2xl) var(--spacing-lg)" : "0"};
|
|
11295
11369
|
|
|
11296
|
-
${
|
|
11370
|
+
${cq("640px")} {
|
|
11297
11371
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) ${withLastColumn && "[last-col] minmax(300px, 1fr)"};
|
|
11298
11372
|
${withLastColumn && `grid-template-rows: auto [last-line]`};
|
|
11299
11373
|
}
|
|
11300
11374
|
`;
|
|
11301
11375
|
|
|
11302
11376
|
// src/components/Card/CardContainer.tsx
|
|
11303
|
-
import { jsx as
|
|
11377
|
+
import { jsx as jsx29 } from "@emotion/react/jsx-runtime";
|
|
11304
11378
|
var CardContainer2 = ({
|
|
11305
11379
|
bgColor = "white",
|
|
11306
11380
|
padding = true,
|
|
@@ -11308,12 +11382,151 @@ var CardContainer2 = ({
|
|
|
11308
11382
|
children,
|
|
11309
11383
|
...props
|
|
11310
11384
|
}) => {
|
|
11311
|
-
return /* @__PURE__ */
|
|
11385
|
+
return /* @__PURE__ */ jsx29("div", { css: CardContainerWrapper(bgColor), ...props, children: /* @__PURE__ */ jsx29("div", { css: CardContainerInner({ padding, withLastColumn }), children }) });
|
|
11386
|
+
};
|
|
11387
|
+
|
|
11388
|
+
// src/components/Card/LoadingCardSkeleton.tsx
|
|
11389
|
+
import { CgMoreAlt as CgMoreAlt2 } from "react-icons/cg";
|
|
11390
|
+
|
|
11391
|
+
// src/components/Card/LoadingCardSkeleton.styles.ts
|
|
11392
|
+
import { css as css27 } from "@emotion/react";
|
|
11393
|
+
var LoadingCardSkeleton = css27`
|
|
11394
|
+
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
11395
|
+
color: var(--gray-400);
|
|
11396
|
+
border-radius: var(--rounded-base);
|
|
11397
|
+
padding: var(--spacing-md);
|
|
11398
|
+
min-height: 160px;
|
|
11399
|
+
position: relative;
|
|
11400
|
+
`;
|
|
11401
|
+
var LoadingText = css27`
|
|
11402
|
+
animation: ${fadeIn} 1s linear infinite alternate;
|
|
11403
|
+
border-radius: var(--rounded-base);
|
|
11404
|
+
background: var(--gray-300);
|
|
11405
|
+
display: block;
|
|
11406
|
+
`;
|
|
11407
|
+
var LoadingTitle = css27`
|
|
11408
|
+
width: clamp(200px, 100vw, 60%);
|
|
11409
|
+
height: var(--spacing-md);
|
|
11410
|
+
`;
|
|
11411
|
+
var LoadingTimeStamp = css27`
|
|
11412
|
+
width: clamp(200px, 100vw, 30%);
|
|
11413
|
+
height: var(--spacing-sm);
|
|
11414
|
+
`;
|
|
11415
|
+
var LoadingMenuIcon = css27`
|
|
11416
|
+
animation: ${fadeIn} 1s linear infinite alternate;
|
|
11417
|
+
position: absolute;
|
|
11418
|
+
top: var(--spacing-md);
|
|
11419
|
+
right: var(--spacing-md);
|
|
11420
|
+
`;
|
|
11421
|
+
|
|
11422
|
+
// src/components/Layout/styles/Container.styles.ts
|
|
11423
|
+
import { css as css28 } from "@emotion/react";
|
|
11424
|
+
var Container = ({ backgroundColor, border, rounded, padding, margin }) => css28`
|
|
11425
|
+
background: var(--${backgroundColor});
|
|
11426
|
+
${border ? "border: 1px solid var(--gray-300)" : void 0};
|
|
11427
|
+
${rounded ? `border-radius: var(--${rounded})` : void 0};
|
|
11428
|
+
${padding ? `padding: ${padding}` : void 0};
|
|
11429
|
+
${margin ? `margin: ${margin}` : void 0};
|
|
11430
|
+
`;
|
|
11431
|
+
|
|
11432
|
+
// src/components/Layout/Container.tsx
|
|
11433
|
+
import { jsx as jsx30 } from "@emotion/react/jsx-runtime";
|
|
11434
|
+
var Container2 = ({
|
|
11435
|
+
tag = "div",
|
|
11436
|
+
backgroundColor = "white",
|
|
11437
|
+
border,
|
|
11438
|
+
rounded,
|
|
11439
|
+
padding,
|
|
11440
|
+
margin,
|
|
11441
|
+
children,
|
|
11442
|
+
...props
|
|
11443
|
+
}) => {
|
|
11444
|
+
const Tag = tag;
|
|
11445
|
+
return /* @__PURE__ */ jsx30(
|
|
11446
|
+
Tag,
|
|
11447
|
+
{
|
|
11448
|
+
css: Container({
|
|
11449
|
+
backgroundColor,
|
|
11450
|
+
border,
|
|
11451
|
+
rounded,
|
|
11452
|
+
padding,
|
|
11453
|
+
margin
|
|
11454
|
+
}),
|
|
11455
|
+
...props,
|
|
11456
|
+
children
|
|
11457
|
+
}
|
|
11458
|
+
);
|
|
11459
|
+
};
|
|
11460
|
+
|
|
11461
|
+
// src/components/Layout/styles/TwoColumnLayout.styles.ts
|
|
11462
|
+
import { css as css29 } from "@emotion/react";
|
|
11463
|
+
var TwoColumnLayoutContainer = (bgColor) => css29`
|
|
11464
|
+
background: ${bgColor};
|
|
11465
|
+
`;
|
|
11466
|
+
var TwoColumnLayoutInner = (invertLayout) => css29`
|
|
11467
|
+
display: grid;
|
|
11468
|
+
max-width: var(--site-width);
|
|
11469
|
+
margin-inline: auto;
|
|
11470
|
+
gap: var(--spacing-base);
|
|
11471
|
+
padding: var(--spacing-md) var(--spacing-lg);
|
|
11472
|
+
|
|
11473
|
+
${mq("md")} {
|
|
11474
|
+
grid-template-columns: ${!invertLayout ? "minmax(0, 1fr) minmax(300px, 0.25fr)" : "minmax(300px, 0.25fr) minmax(0, 1fr)"};
|
|
11475
|
+
gap: var(--spacing-lg);
|
|
11476
|
+
|
|
11477
|
+
${invertLayout && `> section {
|
|
11478
|
+
order: 1;
|
|
11479
|
+
}`}
|
|
11480
|
+
}
|
|
11481
|
+
`;
|
|
11482
|
+
var TwoColumnLayoutMain = css29``;
|
|
11483
|
+
var TwoColumnLayoutSupporting = css29`
|
|
11484
|
+
display: flex;
|
|
11485
|
+
flex-direction: column;
|
|
11486
|
+
`;
|
|
11487
|
+
|
|
11488
|
+
// src/components/Layout/TwoColumnLayout.tsx
|
|
11489
|
+
import { jsx as jsx31, jsxs as jsxs17 } from "@emotion/react/jsx-runtime";
|
|
11490
|
+
var TwoColumnLayout = ({
|
|
11491
|
+
bgColor = "var(--white)",
|
|
11492
|
+
invertLayout = false,
|
|
11493
|
+
supportingContent,
|
|
11494
|
+
children
|
|
11495
|
+
}) => {
|
|
11496
|
+
return /* @__PURE__ */ jsx31("div", { css: TwoColumnLayoutContainer(bgColor), children: /* @__PURE__ */ jsxs17("div", { css: TwoColumnLayoutInner(invertLayout), children: [
|
|
11497
|
+
/* @__PURE__ */ jsx31("section", { css: TwoColumnLayoutMain, children }),
|
|
11498
|
+
/* @__PURE__ */ jsx31("aside", { css: TwoColumnLayoutSupporting, children: supportingContent })
|
|
11499
|
+
] }) });
|
|
11500
|
+
};
|
|
11501
|
+
|
|
11502
|
+
// src/components/Layout/styles/VerticalRhythm.styles.ts
|
|
11503
|
+
import { css as css30 } from "@emotion/react";
|
|
11504
|
+
var VerticalRhythmContainer = (size) => css30`
|
|
11505
|
+
display: flex;
|
|
11506
|
+
flex-direction: column;
|
|
11507
|
+
gap: var(--spacing-${size});
|
|
11508
|
+
`;
|
|
11509
|
+
|
|
11510
|
+
// src/components/Layout/VerticalRhythm.tsx
|
|
11511
|
+
import { jsx as jsx32 } from "@emotion/react/jsx-runtime";
|
|
11512
|
+
var VerticalRhythm = ({ tag = "div", gap = "base", children, ...props }) => {
|
|
11513
|
+
const Tag = tag;
|
|
11514
|
+
return /* @__PURE__ */ jsx32(Tag, { css: VerticalRhythmContainer(gap), ...props, children });
|
|
11515
|
+
};
|
|
11516
|
+
|
|
11517
|
+
// src/components/Card/LoadingCardSkeleton.tsx
|
|
11518
|
+
import { jsx as jsx33, jsxs as jsxs18 } from "@emotion/react/jsx-runtime";
|
|
11519
|
+
var LoadingCardSkeleton2 = () => {
|
|
11520
|
+
return /* @__PURE__ */ jsxs18(VerticalRhythm, { css: LoadingCardSkeleton, children: [
|
|
11521
|
+
/* @__PURE__ */ jsx33("span", { css: [LoadingText, LoadingTitle] }),
|
|
11522
|
+
/* @__PURE__ */ jsx33("span", { css: [LoadingText, LoadingTimeStamp] }),
|
|
11523
|
+
/* @__PURE__ */ jsx33(Icon, { css: LoadingMenuIcon, icon: CgMoreAlt2, iconColor: "currentColor", size: 32 })
|
|
11524
|
+
] });
|
|
11312
11525
|
};
|
|
11313
11526
|
|
|
11314
11527
|
// src/components/Counter/Counter.styles.ts
|
|
11315
|
-
import { css as
|
|
11316
|
-
var counterContainer =
|
|
11528
|
+
import { css as css31 } from "@emotion/react";
|
|
11529
|
+
var counterContainer = css31`
|
|
11317
11530
|
align-items: center;
|
|
11318
11531
|
border-radius: var(--rounded-full);
|
|
11319
11532
|
border: 1px solid var(--gray-300);
|
|
@@ -11325,16 +11538,16 @@ var counterContainer = css26`
|
|
|
11325
11538
|
width: var(--spacing-base);
|
|
11326
11539
|
height: var(--spacing-base);
|
|
11327
11540
|
`;
|
|
11328
|
-
var counterZeroValue =
|
|
11541
|
+
var counterZeroValue = css31`
|
|
11329
11542
|
background: var(--brand-secondary-1);
|
|
11330
11543
|
border-radius: var(--rounded-full);
|
|
11331
11544
|
width: 2px;
|
|
11332
11545
|
height: 2px;
|
|
11333
11546
|
`;
|
|
11334
|
-
var counterTripleValue =
|
|
11547
|
+
var counterTripleValue = css31`
|
|
11335
11548
|
position: relative;
|
|
11336
11549
|
`;
|
|
11337
|
-
var counterIcon =
|
|
11550
|
+
var counterIcon = css31`
|
|
11338
11551
|
border-radius: var(--rounded-full);
|
|
11339
11552
|
background: var(--white);
|
|
11340
11553
|
color: var(--brand-secondary-3);
|
|
@@ -11345,21 +11558,21 @@ var counterIcon = css26`
|
|
|
11345
11558
|
`;
|
|
11346
11559
|
|
|
11347
11560
|
// src/components/Counter/Counter.tsx
|
|
11348
|
-
import { jsx as
|
|
11561
|
+
import { jsx as jsx34, jsxs as jsxs19 } from "@emotion/react/jsx-runtime";
|
|
11349
11562
|
var Counter = ({ count }) => {
|
|
11350
11563
|
if (typeof count === "undefined") {
|
|
11351
11564
|
return null;
|
|
11352
11565
|
}
|
|
11353
|
-
const isTripleDigits = count > 99 ? /* @__PURE__ */
|
|
11566
|
+
const isTripleDigits = count > 99 ? /* @__PURE__ */ jsxs19("span", { css: counterTripleValue, title: `${count}`, children: [
|
|
11354
11567
|
"99",
|
|
11355
|
-
/* @__PURE__ */
|
|
11568
|
+
/* @__PURE__ */ jsx34(Icon, { icon: "math-plus", iconColor: "currentColor", size: "0.5rem", css: counterIcon })
|
|
11356
11569
|
] }) : count;
|
|
11357
|
-
const formatCount = count === 0 ? /* @__PURE__ */
|
|
11358
|
-
return /* @__PURE__ */
|
|
11570
|
+
const formatCount = count === 0 ? /* @__PURE__ */ jsx34("span", { css: counterZeroValue, title: `${count}` }) : isTripleDigits;
|
|
11571
|
+
return /* @__PURE__ */ jsx34("div", { css: counterContainer, children: formatCount });
|
|
11359
11572
|
};
|
|
11360
11573
|
|
|
11361
11574
|
// src/components/DashedBox/DashedBox.styles.ts
|
|
11362
|
-
import { css as
|
|
11575
|
+
import { css as css32 } from "@emotion/react";
|
|
11363
11576
|
var minHeight = (prop) => {
|
|
11364
11577
|
const values = {
|
|
11365
11578
|
auto: "auto",
|
|
@@ -11378,7 +11591,7 @@ var alignItemsConvert = (props) => {
|
|
|
11378
11591
|
};
|
|
11379
11592
|
return alignment[props];
|
|
11380
11593
|
};
|
|
11381
|
-
var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) =>
|
|
11594
|
+
var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) => css32`
|
|
11382
11595
|
align-items: ${alignItemsConvert(textAlign)};
|
|
11383
11596
|
border: 2px dashed var(--gray-300);
|
|
11384
11597
|
border-radius: var(--rounded-base);
|
|
@@ -11393,7 +11606,7 @@ var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) => css27`
|
|
|
11393
11606
|
`;
|
|
11394
11607
|
|
|
11395
11608
|
// src/components/DashedBox/DashedBox.tsx
|
|
11396
|
-
import { jsx as
|
|
11609
|
+
import { jsx as jsx35 } from "@emotion/react/jsx-runtime";
|
|
11397
11610
|
var DashedBox = ({
|
|
11398
11611
|
bgColor = "transparent",
|
|
11399
11612
|
textAlign = "center",
|
|
@@ -11401,15 +11614,15 @@ var DashedBox = ({
|
|
|
11401
11614
|
children,
|
|
11402
11615
|
...props
|
|
11403
11616
|
}) => {
|
|
11404
|
-
return /* @__PURE__ */
|
|
11617
|
+
return /* @__PURE__ */ jsx35("div", { css: DashedBoxContainer({ bgColor, boxHeight, textAlign }), ...props, children });
|
|
11405
11618
|
};
|
|
11406
11619
|
|
|
11407
11620
|
// src/components/Details/Details.tsx
|
|
11408
11621
|
import * as React8 from "react";
|
|
11409
11622
|
|
|
11410
11623
|
// src/components/Details/Details.styles.ts
|
|
11411
|
-
import { css as
|
|
11412
|
-
var details =
|
|
11624
|
+
import { css as css33 } from "@emotion/react";
|
|
11625
|
+
var details = css33`
|
|
11413
11626
|
cursor: pointer;
|
|
11414
11627
|
&[open] {
|
|
11415
11628
|
& > summary svg {
|
|
@@ -11417,11 +11630,11 @@ var details = css28`
|
|
|
11417
11630
|
}
|
|
11418
11631
|
}
|
|
11419
11632
|
`;
|
|
11420
|
-
var detailsContent =
|
|
11633
|
+
var detailsContent = css33`
|
|
11421
11634
|
animation: ${fadeInRtl} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
11422
11635
|
will-change: height;
|
|
11423
11636
|
`;
|
|
11424
|
-
var summary =
|
|
11637
|
+
var summary = css33`
|
|
11425
11638
|
align-items: center;
|
|
11426
11639
|
display: grid;
|
|
11427
11640
|
grid-template-columns: 1.25rem 1fr;
|
|
@@ -11434,16 +11647,16 @@ var summary = css28`
|
|
|
11434
11647
|
display: none;
|
|
11435
11648
|
}
|
|
11436
11649
|
`;
|
|
11437
|
-
var summaryIcon =
|
|
11650
|
+
var summaryIcon = css33`
|
|
11438
11651
|
transition: rotate var(--duration-fast) var(--timing-ease-out);
|
|
11439
11652
|
rotate: -90deg;
|
|
11440
11653
|
`;
|
|
11441
|
-
var summaryIconVisiblyHidden =
|
|
11654
|
+
var summaryIconVisiblyHidden = css33`
|
|
11442
11655
|
visibility: hidden;
|
|
11443
11656
|
`;
|
|
11444
11657
|
|
|
11445
11658
|
// src/components/Details/Details.tsx
|
|
11446
|
-
import { jsx as
|
|
11659
|
+
import { jsx as jsx36, jsxs as jsxs20 } from "@emotion/react/jsx-runtime";
|
|
11447
11660
|
var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props }) => {
|
|
11448
11661
|
const detailsRef = React8.useRef(null);
|
|
11449
11662
|
const [open, setOpen] = React8.useState(isOpenByDefault);
|
|
@@ -11463,9 +11676,9 @@ var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props
|
|
|
11463
11676
|
return (_a2 = detailsRef.current) == null ? void 0 : _a2.removeEventListener("toggle", toggleEvent);
|
|
11464
11677
|
};
|
|
11465
11678
|
}, [detailsRef]);
|
|
11466
|
-
return /* @__PURE__ */
|
|
11467
|
-
/* @__PURE__ */
|
|
11468
|
-
/* @__PURE__ */
|
|
11679
|
+
return /* @__PURE__ */ jsxs20("details", { "data-testid": "details", css: details, open, ref: detailsRef, ...props, children: [
|
|
11680
|
+
/* @__PURE__ */ jsxs20("summary", { "data-testid": "summary", css: summary, children: [
|
|
11681
|
+
/* @__PURE__ */ jsx36(
|
|
11469
11682
|
Icon,
|
|
11470
11683
|
{
|
|
11471
11684
|
css: [!children ? summaryIconVisiblyHidden : void 0, summaryIcon],
|
|
@@ -11476,17 +11689,17 @@ var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props
|
|
|
11476
11689
|
),
|
|
11477
11690
|
summary2
|
|
11478
11691
|
] }),
|
|
11479
|
-
open ? /* @__PURE__ */
|
|
11692
|
+
open ? /* @__PURE__ */ jsx36("div", { "data-testid": "details-content", css: detailsContent, children }) : null
|
|
11480
11693
|
] });
|
|
11481
11694
|
};
|
|
11482
11695
|
|
|
11483
11696
|
// src/components/Drawer/Drawer.tsx
|
|
11484
|
-
import React11, { useEffect as
|
|
11697
|
+
import React11, { useEffect as useEffect6, useMemo, useRef as useRef2 } from "react";
|
|
11485
11698
|
import { CgChevronRight } from "react-icons/cg";
|
|
11486
11699
|
|
|
11487
11700
|
// src/components/Drawer/Drawer.styles.ts
|
|
11488
|
-
import { css as
|
|
11489
|
-
var drawerStyles = (bgColor = "var(--white)") =>
|
|
11701
|
+
import { css as css34, keyframes as keyframes2 } from "@emotion/react";
|
|
11702
|
+
var drawerStyles = (bgColor = "var(--white)") => css34`
|
|
11490
11703
|
background-color: ${bgColor};
|
|
11491
11704
|
display: flex;
|
|
11492
11705
|
gap: var(--spacing-sm);
|
|
@@ -11496,7 +11709,7 @@ var drawerStyles = (bgColor = "var(--white)") => css29`
|
|
|
11496
11709
|
padding-top: var(--spacing-sm);
|
|
11497
11710
|
height: 100%;
|
|
11498
11711
|
`;
|
|
11499
|
-
var drawerCloseButtonStyles =
|
|
11712
|
+
var drawerCloseButtonStyles = css34`
|
|
11500
11713
|
align-self: flex-end;
|
|
11501
11714
|
background: transparent;
|
|
11502
11715
|
border: none;
|
|
@@ -11504,17 +11717,17 @@ var drawerCloseButtonStyles = css29`
|
|
|
11504
11717
|
padding: var(--spacing-xs);
|
|
11505
11718
|
margin-right: var(--spacing-sm);
|
|
11506
11719
|
`;
|
|
11507
|
-
var drawerHeaderStyles =
|
|
11720
|
+
var drawerHeaderStyles = css34`
|
|
11508
11721
|
font-size: var(--fs-lg);
|
|
11509
11722
|
font-weight: var(--fw-bold);
|
|
11510
11723
|
padding-inline: var(--spacing-base);
|
|
11511
11724
|
`;
|
|
11512
|
-
var drawerRendererStyles =
|
|
11725
|
+
var drawerRendererStyles = css34`
|
|
11513
11726
|
inset: 0;
|
|
11514
11727
|
overflow: hidden;
|
|
11515
11728
|
z-index: 40;
|
|
11516
11729
|
`;
|
|
11517
|
-
var drawerInnerStyles =
|
|
11730
|
+
var drawerInnerStyles = css34`
|
|
11518
11731
|
height: 100%;
|
|
11519
11732
|
padding: 0 var(--spacing-base) var(--spacing-base);
|
|
11520
11733
|
overflow: auto;
|
|
@@ -11535,7 +11748,7 @@ var slideDrawerIn = keyframes2`
|
|
|
11535
11748
|
transform: translate(0);
|
|
11536
11749
|
}
|
|
11537
11750
|
`;
|
|
11538
|
-
var drawerWrapperStyles =
|
|
11751
|
+
var drawerWrapperStyles = css34`
|
|
11539
11752
|
position: absolute;
|
|
11540
11753
|
inset-block: 0;
|
|
11541
11754
|
right: 0;
|
|
@@ -11546,7 +11759,7 @@ var drawerWrapperStyles = css29`
|
|
|
11546
11759
|
transition: width var(--duration-fast) ease-out;
|
|
11547
11760
|
box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
|
|
11548
11761
|
`;
|
|
11549
|
-
var drawerWrapperOverlayStyles =
|
|
11762
|
+
var drawerWrapperOverlayStyles = css34`
|
|
11550
11763
|
position: absolute;
|
|
11551
11764
|
inset: 0;
|
|
11552
11765
|
background: rgba(31, 43, 52, 0.4);
|
|
@@ -11555,7 +11768,7 @@ var drawerWrapperOverlayStyles = css29`
|
|
|
11555
11768
|
|
|
11556
11769
|
// src/components/Drawer/DrawerProvider.tsx
|
|
11557
11770
|
import { createContext as createContext3, useCallback, useContext as useContext4, useState as useState4 } from "react";
|
|
11558
|
-
import { jsx as
|
|
11771
|
+
import { jsx as jsx37 } from "@emotion/react/jsx-runtime";
|
|
11559
11772
|
var DrawerContext = createContext3({
|
|
11560
11773
|
drawersRegistry: [],
|
|
11561
11774
|
registerDrawer: () => {
|
|
@@ -11604,7 +11817,7 @@ var DrawerProvider = ({ children }) => {
|
|
|
11604
11817
|
},
|
|
11605
11818
|
[setDrawersRegistry]
|
|
11606
11819
|
);
|
|
11607
|
-
return /* @__PURE__ */
|
|
11820
|
+
return /* @__PURE__ */ jsx37(DrawerContext.Provider, { value: { drawersRegistry, registerDrawer, unregisterDrawer }, children });
|
|
11608
11821
|
};
|
|
11609
11822
|
var useDrawer = () => {
|
|
11610
11823
|
return useContext4(DrawerContext);
|
|
@@ -11625,7 +11838,7 @@ function isEqualDrawerInstance(a, b) {
|
|
|
11625
11838
|
|
|
11626
11839
|
// src/components/Drawer/DrawerRenderer.tsx
|
|
11627
11840
|
import { createContext as createContext4, useContext as useContext5 } from "react";
|
|
11628
|
-
import { Fragment as Fragment4, jsx as
|
|
11841
|
+
import { Fragment as Fragment4, jsx as jsx38, jsxs as jsxs21 } from "@emotion/react/jsx-runtime";
|
|
11629
11842
|
var maxLayeringInPx = 64;
|
|
11630
11843
|
var idealDistanceBetweenLayersInPx = 16;
|
|
11631
11844
|
var CurrentDrawerRendererContext = createContext4({});
|
|
@@ -11645,7 +11858,7 @@ var DrawerRenderer = ({
|
|
|
11645
11858
|
if (drawersToRender.length === 0) {
|
|
11646
11859
|
return null;
|
|
11647
11860
|
}
|
|
11648
|
-
return /* @__PURE__ */
|
|
11861
|
+
return /* @__PURE__ */ jsx38(CurrentDrawerRendererContext.Provider, { value: { stackId }, children: /* @__PURE__ */ jsx38(
|
|
11649
11862
|
"div",
|
|
11650
11863
|
{
|
|
11651
11864
|
css: [
|
|
@@ -11654,7 +11867,7 @@ var DrawerRenderer = ({
|
|
|
11654
11867
|
position === "sticky" ? { height: "100%", marginTop: "-100%" } : void 0
|
|
11655
11868
|
],
|
|
11656
11869
|
...otherProps,
|
|
11657
|
-
children: drawersToRender.map(({ component, id, stackId: stackId2, onRequestClose }, index) => /* @__PURE__ */
|
|
11870
|
+
children: drawersToRender.map(({ component, id, stackId: stackId2, onRequestClose }, index) => /* @__PURE__ */ jsx38(
|
|
11658
11871
|
DrawerWrapper,
|
|
11659
11872
|
{
|
|
11660
11873
|
index,
|
|
@@ -11685,22 +11898,22 @@ var DrawerWrapper = ({
|
|
|
11685
11898
|
offsetInPx = Math.round(maxLayeringInPx * relativeLevel);
|
|
11686
11899
|
}
|
|
11687
11900
|
const calculatedWidth = `calc(${width} - ${offsetInPx}px)`;
|
|
11688
|
-
return /* @__PURE__ */
|
|
11689
|
-
/* @__PURE__ */
|
|
11690
|
-
/* @__PURE__ */
|
|
11901
|
+
return /* @__PURE__ */ jsxs21(Fragment4, { children: [
|
|
11902
|
+
/* @__PURE__ */ jsx38("div", { css: drawerWrapperOverlayStyles, onClick: onOverlayClick }),
|
|
11903
|
+
/* @__PURE__ */ jsx38("div", { css: [drawerWrapperStyles, { width: calculatedWidth, minWidth, maxWidth }], children })
|
|
11691
11904
|
] });
|
|
11692
11905
|
};
|
|
11693
11906
|
|
|
11694
11907
|
// src/components/Drawer/Drawer.tsx
|
|
11695
|
-
import { jsx as
|
|
11908
|
+
import { jsx as jsx39, jsxs as jsxs22 } from "@emotion/react/jsx-runtime";
|
|
11696
11909
|
var defaultSackId = "_default";
|
|
11697
11910
|
var Drawer = React11.forwardRef(
|
|
11698
11911
|
({ width, minWidth, maxWidth, position, ...drawerProps }, ref) => {
|
|
11699
11912
|
const drawerRendererProps = { width, minWidth, maxWidth, position };
|
|
11700
11913
|
const { stackId: inheritedStackId } = useCurrentDrawerRenderer();
|
|
11701
|
-
return inheritedStackId ? /* @__PURE__ */
|
|
11702
|
-
/* @__PURE__ */
|
|
11703
|
-
/* @__PURE__ */
|
|
11914
|
+
return inheritedStackId ? /* @__PURE__ */ jsx39(DrawerInner, { ref, ...drawerProps, stackId: inheritedStackId }) : drawerProps.stackId ? /* @__PURE__ */ jsx39(DrawerInner, { ref, ...drawerProps }) : /* @__PURE__ */ jsxs22(DrawerProvider, { children: [
|
|
11915
|
+
/* @__PURE__ */ jsx39(DrawerInner, { ref, ...drawerProps }),
|
|
11916
|
+
/* @__PURE__ */ jsx39(DrawerRenderer, { stackId: defaultSackId, ...drawerRendererProps })
|
|
11704
11917
|
] });
|
|
11705
11918
|
}
|
|
11706
11919
|
);
|
|
@@ -11712,13 +11925,14 @@ var DrawerInner = ({
|
|
|
11712
11925
|
children,
|
|
11713
11926
|
header,
|
|
11714
11927
|
instanceKey,
|
|
11715
|
-
onRequestClose
|
|
11928
|
+
onRequestClose,
|
|
11929
|
+
testId = "side-dialog"
|
|
11716
11930
|
}) => {
|
|
11717
11931
|
const { registerDrawer, unregisterDrawer } = useDrawer();
|
|
11718
11932
|
const closeButtonRef = useRef2(null);
|
|
11719
11933
|
const component = useMemo(() => {
|
|
11720
11934
|
const headerId = `dialog-header-${stackId}-${id}`;
|
|
11721
|
-
return /* @__PURE__ */
|
|
11935
|
+
return /* @__PURE__ */ jsxs22(
|
|
11722
11936
|
"div",
|
|
11723
11937
|
{
|
|
11724
11938
|
ref,
|
|
@@ -11727,9 +11941,9 @@ var DrawerInner = ({
|
|
|
11727
11941
|
tabIndex: -1,
|
|
11728
11942
|
"aria-labelledby": headerId,
|
|
11729
11943
|
css: drawerStyles(bgColor),
|
|
11730
|
-
"data-test-id":
|
|
11944
|
+
"data-test-id": testId,
|
|
11731
11945
|
children: [
|
|
11732
|
-
/* @__PURE__ */
|
|
11946
|
+
/* @__PURE__ */ jsx39(
|
|
11733
11947
|
Button,
|
|
11734
11948
|
{
|
|
11735
11949
|
ref: closeButtonRef,
|
|
@@ -11738,16 +11952,16 @@ var DrawerInner = ({
|
|
|
11738
11952
|
css: drawerCloseButtonStyles,
|
|
11739
11953
|
title: "Close dialog",
|
|
11740
11954
|
buttonType: "ghost",
|
|
11741
|
-
children: /* @__PURE__ */
|
|
11955
|
+
children: /* @__PURE__ */ jsx39(Icon, { icon: CgChevronRight, iconColor: "gray", size: "1.5rem" })
|
|
11742
11956
|
}
|
|
11743
11957
|
),
|
|
11744
|
-
header ? /* @__PURE__ */
|
|
11745
|
-
/* @__PURE__ */
|
|
11958
|
+
header ? /* @__PURE__ */ jsx39("div", { id: headerId, css: drawerHeaderStyles, children: header }) : null,
|
|
11959
|
+
/* @__PURE__ */ jsx39("div", { css: drawerInnerStyles, children })
|
|
11746
11960
|
]
|
|
11747
11961
|
}
|
|
11748
11962
|
);
|
|
11749
|
-
}, [children, header, id, stackId, bgColor, onRequestClose, ref]);
|
|
11750
|
-
|
|
11963
|
+
}, [children, header, id, stackId, bgColor, onRequestClose, ref, testId]);
|
|
11964
|
+
useEffect6(() => {
|
|
11751
11965
|
registerDrawer({
|
|
11752
11966
|
drawer: {
|
|
11753
11967
|
id,
|
|
@@ -11764,15 +11978,15 @@ var DrawerInner = ({
|
|
|
11764
11978
|
}
|
|
11765
11979
|
});
|
|
11766
11980
|
}, [component, instanceKey, registerDrawer]);
|
|
11767
|
-
|
|
11981
|
+
useEffect6(() => {
|
|
11768
11982
|
return () => unregisterDrawer({ id, stackId, instanceKey });
|
|
11769
11983
|
}, [id, stackId, instanceKey, unregisterDrawer]);
|
|
11770
11984
|
return null;
|
|
11771
11985
|
};
|
|
11772
11986
|
|
|
11773
11987
|
// src/components/Input/styles/CaptionText.styles.ts
|
|
11774
|
-
import { css as
|
|
11775
|
-
var CaptionText = (dynamicSize) =>
|
|
11988
|
+
import { css as css35 } from "@emotion/react";
|
|
11989
|
+
var CaptionText = (dynamicSize) => css35`
|
|
11776
11990
|
color: var(--gray-500);
|
|
11777
11991
|
display: block;
|
|
11778
11992
|
font-size: ${dynamicSize ? "clamp(var(--fs-xs), 87.5%,var(--fs-sm))" : "var(--fs-sm)"};
|
|
@@ -11781,29 +11995,29 @@ var CaptionText = (dynamicSize) => css30`
|
|
|
11781
11995
|
`;
|
|
11782
11996
|
|
|
11783
11997
|
// src/components/Input/Caption.tsx
|
|
11784
|
-
import { jsx as
|
|
11998
|
+
import { jsx as jsx40 } from "@emotion/react/jsx-runtime";
|
|
11785
11999
|
var Caption = ({ children, testId, dynamicSize = false, ...props }) => {
|
|
11786
|
-
return /* @__PURE__ */
|
|
12000
|
+
return /* @__PURE__ */ jsx40("small", { css: CaptionText(dynamicSize), "data-test-id": testId, ...props, children });
|
|
11787
12001
|
};
|
|
11788
12002
|
|
|
11789
12003
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
11790
12004
|
import { forwardRef as forwardRef4 } from "react";
|
|
11791
12005
|
|
|
11792
12006
|
// src/components/Input/styles/CheckboxWithInfo.styles.ts
|
|
11793
|
-
import { css as
|
|
11794
|
-
var CheckboxWithInfoContainer =
|
|
12007
|
+
import { css as css36 } from "@emotion/react";
|
|
12008
|
+
var CheckboxWithInfoContainer = css36`
|
|
11795
12009
|
align-items: center;
|
|
11796
12010
|
display: flex;
|
|
11797
12011
|
gap: var(--spacing-sm);
|
|
11798
12012
|
`;
|
|
11799
|
-
var CheckboxWithInfoLabel =
|
|
12013
|
+
var CheckboxWithInfoLabel = css36`
|
|
11800
12014
|
align-items: center;
|
|
11801
12015
|
color: var(--gray-500);
|
|
11802
12016
|
display: flex;
|
|
11803
12017
|
font-size: var(--fs-xs);
|
|
11804
12018
|
gap: var(--spacing-sm);
|
|
11805
12019
|
`;
|
|
11806
|
-
var CheckboxWithInfoInput =
|
|
12020
|
+
var CheckboxWithInfoInput = css36`
|
|
11807
12021
|
appearance: none;
|
|
11808
12022
|
border: 1px solid var(--gray-300);
|
|
11809
12023
|
background: var(--white) no-repeat bottom center;
|
|
@@ -11836,7 +12050,7 @@ var CheckboxWithInfoInput = css31`
|
|
|
11836
12050
|
border-color: var(--gray-200);
|
|
11837
12051
|
}
|
|
11838
12052
|
`;
|
|
11839
|
-
var InfoDialogContainer =
|
|
12053
|
+
var InfoDialogContainer = css36`
|
|
11840
12054
|
position: relative;
|
|
11841
12055
|
|
|
11842
12056
|
&:hover {
|
|
@@ -11845,7 +12059,7 @@ var InfoDialogContainer = css31`
|
|
|
11845
12059
|
}
|
|
11846
12060
|
}
|
|
11847
12061
|
`;
|
|
11848
|
-
var InfoDialogMessage =
|
|
12062
|
+
var InfoDialogMessage = css36`
|
|
11849
12063
|
background: var(--white);
|
|
11850
12064
|
box-shadow: var(--shadow-base);
|
|
11851
12065
|
border-radius: var(--rounded-md);
|
|
@@ -11862,21 +12076,21 @@ var InfoDialogMessage = css31`
|
|
|
11862
12076
|
`;
|
|
11863
12077
|
|
|
11864
12078
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
11865
|
-
import { jsx as
|
|
12079
|
+
import { jsx as jsx41, jsxs as jsxs23 } from "@emotion/react/jsx-runtime";
|
|
11866
12080
|
var InfoDialog = ({ message }) => {
|
|
11867
|
-
return /* @__PURE__ */
|
|
11868
|
-
/* @__PURE__ */
|
|
11869
|
-
/* @__PURE__ */
|
|
12081
|
+
return /* @__PURE__ */ jsxs23("div", { "data-testid": "info-dialog", css: InfoDialogContainer, children: [
|
|
12082
|
+
/* @__PURE__ */ jsx41(Icon, { icon: "info", iconColor: "green", size: "0.9rem" }),
|
|
12083
|
+
/* @__PURE__ */ jsx41("div", { role: "paragraph", css: InfoDialogMessage, className: "info-message", children: message })
|
|
11870
12084
|
] });
|
|
11871
12085
|
};
|
|
11872
12086
|
var CheckboxWithInfo = forwardRef4(
|
|
11873
12087
|
({ label, name, info, ...props }, ref) => {
|
|
11874
|
-
return /* @__PURE__ */
|
|
11875
|
-
/* @__PURE__ */
|
|
11876
|
-
/* @__PURE__ */
|
|
11877
|
-
/* @__PURE__ */
|
|
12088
|
+
return /* @__PURE__ */ jsxs23("div", { css: CheckboxWithInfoContainer, children: [
|
|
12089
|
+
/* @__PURE__ */ jsxs23("label", { css: CheckboxWithInfoLabel, children: [
|
|
12090
|
+
/* @__PURE__ */ jsx41("input", { type: "checkbox", name, ref, css: CheckboxWithInfoInput, ...props }),
|
|
12091
|
+
/* @__PURE__ */ jsx41("span", { children: label })
|
|
11878
12092
|
] }),
|
|
11879
|
-
info ? /* @__PURE__ */
|
|
12093
|
+
info ? /* @__PURE__ */ jsx41(InfoDialog, { message: info }) : null
|
|
11880
12094
|
] });
|
|
11881
12095
|
}
|
|
11882
12096
|
);
|
|
@@ -11885,8 +12099,8 @@ var CheckboxWithInfo = forwardRef4(
|
|
|
11885
12099
|
import { MdWarning } from "react-icons/md";
|
|
11886
12100
|
|
|
11887
12101
|
// src/components/Input/styles/ErrorMessage.styles.ts
|
|
11888
|
-
import { css as
|
|
11889
|
-
var ErrorText =
|
|
12102
|
+
import { css as css37 } from "@emotion/react";
|
|
12103
|
+
var ErrorText = css37`
|
|
11890
12104
|
align-items: center;
|
|
11891
12105
|
color: var(--brand-secondary-5);
|
|
11892
12106
|
display: flex;
|
|
@@ -11894,10 +12108,10 @@ var ErrorText = css32`
|
|
|
11894
12108
|
`;
|
|
11895
12109
|
|
|
11896
12110
|
// src/components/Input/ErrorMessage.tsx
|
|
11897
|
-
import { jsx as
|
|
12111
|
+
import { jsx as jsx42, jsxs as jsxs24 } from "@emotion/react/jsx-runtime";
|
|
11898
12112
|
var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
11899
|
-
return message ? /* @__PURE__ */
|
|
11900
|
-
/* @__PURE__ */
|
|
12113
|
+
return message ? /* @__PURE__ */ jsxs24("span", { role: "alert", css: ErrorText, "data-test-id": testId, ...otherProps, children: [
|
|
12114
|
+
/* @__PURE__ */ jsx42(Icon, { icon: MdWarning, size: 16, iconColor: "currentColor" }),
|
|
11901
12115
|
message
|
|
11902
12116
|
] }) : null;
|
|
11903
12117
|
};
|
|
@@ -11906,9 +12120,9 @@ var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
|
11906
12120
|
import * as React12 from "react";
|
|
11907
12121
|
|
|
11908
12122
|
// src/components/Input/styles/Fieldset.styles.ts
|
|
11909
|
-
import { css as
|
|
12123
|
+
import { css as css38 } from "@emotion/react";
|
|
11910
12124
|
function fieldsetContainer(invert) {
|
|
11911
|
-
const base =
|
|
12125
|
+
const base = css38`
|
|
11912
12126
|
border-radius: var(--rounded-base);
|
|
11913
12127
|
border: 1px solid var(--gray-300);
|
|
11914
12128
|
|
|
@@ -11920,18 +12134,18 @@ function fieldsetContainer(invert) {
|
|
|
11920
12134
|
}
|
|
11921
12135
|
`;
|
|
11922
12136
|
return invert ? [
|
|
11923
|
-
|
|
12137
|
+
css38`
|
|
11924
12138
|
background: white;
|
|
11925
12139
|
`,
|
|
11926
12140
|
base
|
|
11927
12141
|
] : [
|
|
11928
|
-
|
|
12142
|
+
css38`
|
|
11929
12143
|
background: var(--gray-50);
|
|
11930
12144
|
`,
|
|
11931
12145
|
base
|
|
11932
12146
|
];
|
|
11933
12147
|
}
|
|
11934
|
-
var fieldsetLegend =
|
|
12148
|
+
var fieldsetLegend = css38`
|
|
11935
12149
|
align-items: center;
|
|
11936
12150
|
color: var(--brand-secondary-1);
|
|
11937
12151
|
display: flex;
|
|
@@ -11941,17 +12155,17 @@ var fieldsetLegend = css33`
|
|
|
11941
12155
|
margin-bottom: var(--spacing-base);
|
|
11942
12156
|
float: left; // allows the legend to be inside the fieldset and not sat on the border line
|
|
11943
12157
|
`;
|
|
11944
|
-
var fieldsetBody =
|
|
12158
|
+
var fieldsetBody = css38`
|
|
11945
12159
|
clear: left;
|
|
11946
12160
|
`;
|
|
11947
12161
|
|
|
11948
12162
|
// src/components/Input/Fieldset.tsx
|
|
11949
|
-
import { jsx as
|
|
12163
|
+
import { jsx as jsx43, jsxs as jsxs25 } from "@emotion/react/jsx-runtime";
|
|
11950
12164
|
var Fieldset = React12.forwardRef(
|
|
11951
12165
|
({ legend, disabled, children, invert, ...props }, ref) => {
|
|
11952
|
-
return /* @__PURE__ */
|
|
12166
|
+
return /* @__PURE__ */ jsxs25("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled, ...props, children: [
|
|
11953
12167
|
legend,
|
|
11954
|
-
/* @__PURE__ */
|
|
12168
|
+
/* @__PURE__ */ jsx43("div", { css: fieldsetBody, children })
|
|
11955
12169
|
] });
|
|
11956
12170
|
}
|
|
11957
12171
|
);
|
|
@@ -11960,8 +12174,8 @@ var Fieldset = React12.forwardRef(
|
|
|
11960
12174
|
import { MdInfoOutline } from "react-icons/md";
|
|
11961
12175
|
|
|
11962
12176
|
// src/components/Input/styles/InfoMessage.styles.tsx
|
|
11963
|
-
import { css as
|
|
11964
|
-
var InfoText =
|
|
12177
|
+
import { css as css39 } from "@emotion/react";
|
|
12178
|
+
var InfoText = css39`
|
|
11965
12179
|
--info-desc: rgb(29, 78, 216);
|
|
11966
12180
|
--info-icon: rgb(96, 165, 250);
|
|
11967
12181
|
|
|
@@ -11970,15 +12184,15 @@ var InfoText = css34`
|
|
|
11970
12184
|
display: flex;
|
|
11971
12185
|
gap: var(--spacing-sm);
|
|
11972
12186
|
`;
|
|
11973
|
-
var InfoIcon2 =
|
|
12187
|
+
var InfoIcon2 = css39`
|
|
11974
12188
|
color: var(--info-icon);
|
|
11975
12189
|
`;
|
|
11976
12190
|
|
|
11977
12191
|
// src/components/Input/InfoMessage.tsx
|
|
11978
|
-
import { jsx as
|
|
12192
|
+
import { jsx as jsx44, jsxs as jsxs26 } from "@emotion/react/jsx-runtime";
|
|
11979
12193
|
var InfoMessage = ({ message, testId, ...props }) => {
|
|
11980
|
-
return message ? /* @__PURE__ */
|
|
11981
|
-
/* @__PURE__ */
|
|
12194
|
+
return message ? /* @__PURE__ */ jsxs26("span", { role: "status", css: InfoText, "data-test-id": testId, ...props, children: [
|
|
12195
|
+
/* @__PURE__ */ jsx44(Icon, { css: InfoIcon2, icon: MdInfoOutline, size: "1rem", iconColor: "currentColor" }),
|
|
11982
12196
|
message
|
|
11983
12197
|
] }) : null;
|
|
11984
12198
|
};
|
|
@@ -11987,9 +12201,9 @@ var InfoMessage = ({ message, testId, ...props }) => {
|
|
|
11987
12201
|
import * as React13 from "react";
|
|
11988
12202
|
|
|
11989
12203
|
// src/components/Input/Label.tsx
|
|
11990
|
-
import { jsx as
|
|
12204
|
+
import { jsx as jsx45 } from "@emotion/react/jsx-runtime";
|
|
11991
12205
|
var Label = ({ children, className, testId, ...props }) => {
|
|
11992
|
-
return /* @__PURE__ */
|
|
12206
|
+
return /* @__PURE__ */ jsx45(
|
|
11993
12207
|
"label",
|
|
11994
12208
|
{
|
|
11995
12209
|
css: [labelText, typeof className === "object" ? className : void 0],
|
|
@@ -12005,28 +12219,28 @@ var Label = ({ children, className, testId, ...props }) => {
|
|
|
12005
12219
|
import { MdWarning as MdWarning2 } from "react-icons/md";
|
|
12006
12220
|
|
|
12007
12221
|
// src/components/Input/styles/WarningMessage.styles.tsx
|
|
12008
|
-
import { css as
|
|
12009
|
-
var WarningText =
|
|
12222
|
+
import { css as css40 } from "@emotion/react";
|
|
12223
|
+
var WarningText = css40`
|
|
12010
12224
|
align-items: center;
|
|
12011
12225
|
color: var(--alert-text);
|
|
12012
12226
|
display: flex;
|
|
12013
12227
|
gap: var(--spacing-sm);
|
|
12014
12228
|
`;
|
|
12015
|
-
var WarningIcon =
|
|
12229
|
+
var WarningIcon = css40`
|
|
12016
12230
|
color: var(--alert);
|
|
12017
12231
|
`;
|
|
12018
12232
|
|
|
12019
12233
|
// src/components/Input/WarningMessage.tsx
|
|
12020
|
-
import { jsx as
|
|
12234
|
+
import { jsx as jsx46, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
|
|
12021
12235
|
var WarningMessage = ({ message, testId, ...props }) => {
|
|
12022
|
-
return message ? /* @__PURE__ */
|
|
12023
|
-
/* @__PURE__ */
|
|
12236
|
+
return message ? /* @__PURE__ */ jsxs27("span", { role: "status", css: WarningText, "data-test-id": testId, ...props, children: [
|
|
12237
|
+
/* @__PURE__ */ jsx46(Icon, { css: WarningIcon, icon: MdWarning2, size: "1rem", iconColor: "currentColor" }),
|
|
12024
12238
|
message
|
|
12025
12239
|
] }) : null;
|
|
12026
12240
|
};
|
|
12027
12241
|
|
|
12028
12242
|
// src/components/Input/Input.tsx
|
|
12029
|
-
import { jsx as
|
|
12243
|
+
import { jsx as jsx47, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
|
|
12030
12244
|
var Input = React13.forwardRef(
|
|
12031
12245
|
({
|
|
12032
12246
|
label,
|
|
@@ -12045,8 +12259,8 @@ var Input = React13.forwardRef(
|
|
|
12045
12259
|
classNameLabel,
|
|
12046
12260
|
...props
|
|
12047
12261
|
}, ref) => {
|
|
12048
|
-
return /* @__PURE__ */
|
|
12049
|
-
showLabel ? /* @__PURE__ */
|
|
12262
|
+
return /* @__PURE__ */ jsxs28("div", { css: inputContainer, "data-test-id": containerTestId ? containerTestId : "container-input-field", children: [
|
|
12263
|
+
showLabel ? /* @__PURE__ */ jsx47(
|
|
12050
12264
|
Label,
|
|
12051
12265
|
{
|
|
12052
12266
|
htmlFor: id,
|
|
@@ -12056,13 +12270,13 @@ var Input = React13.forwardRef(
|
|
|
12056
12270
|
children: label
|
|
12057
12271
|
}
|
|
12058
12272
|
) : null,
|
|
12059
|
-
/* @__PURE__ */
|
|
12273
|
+
/* @__PURE__ */ jsxs28(
|
|
12060
12274
|
"div",
|
|
12061
12275
|
{
|
|
12062
12276
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
12063
12277
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
12064
12278
|
children: [
|
|
12065
|
-
/* @__PURE__ */
|
|
12279
|
+
/* @__PURE__ */ jsx47(
|
|
12066
12280
|
"input",
|
|
12067
12281
|
{
|
|
12068
12282
|
id,
|
|
@@ -12078,23 +12292,23 @@ var Input = React13.forwardRef(
|
|
|
12078
12292
|
ref
|
|
12079
12293
|
}
|
|
12080
12294
|
),
|
|
12081
|
-
icon ? /* @__PURE__ */
|
|
12295
|
+
icon ? /* @__PURE__ */ jsx47("div", { css: inputIcon, children: icon }) : null
|
|
12082
12296
|
]
|
|
12083
12297
|
}
|
|
12084
12298
|
),
|
|
12085
|
-
caption ? /* @__PURE__ */
|
|
12086
|
-
errorMessage ? /* @__PURE__ */
|
|
12087
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
12299
|
+
caption ? /* @__PURE__ */ jsx47(Caption, { testId: captionTestId, children: caption }) : null,
|
|
12300
|
+
errorMessage ? /* @__PURE__ */ jsx47(ErrorMessage, { message: errorMessage, testId: errorTestId }) : null,
|
|
12301
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx47(WarningMessage, { message: warningMessage }) : null
|
|
12088
12302
|
] });
|
|
12089
12303
|
}
|
|
12090
12304
|
);
|
|
12091
12305
|
|
|
12092
12306
|
// src/components/Input/InputComboBox.tsx
|
|
12093
12307
|
import Select from "react-select";
|
|
12094
|
-
import { jsx as
|
|
12308
|
+
import { jsx as jsx48 } from "@emotion/react/jsx-runtime";
|
|
12095
12309
|
function InputComboBox(props) {
|
|
12096
12310
|
var _a;
|
|
12097
|
-
return /* @__PURE__ */
|
|
12311
|
+
return /* @__PURE__ */ jsx48(
|
|
12098
12312
|
Select,
|
|
12099
12313
|
{
|
|
12100
12314
|
...props,
|
|
@@ -12223,17 +12437,17 @@ function InputComboBox(props) {
|
|
|
12223
12437
|
}
|
|
12224
12438
|
|
|
12225
12439
|
// src/components/Input/InputInlineSelect.tsx
|
|
12226
|
-
import { css as
|
|
12440
|
+
import { css as css42 } from "@emotion/react";
|
|
12227
12441
|
import { useRef as useRef3, useState as useState5 } from "react";
|
|
12228
12442
|
import { CgChevronDown as CgChevronDown2 } from "react-icons/cg";
|
|
12229
12443
|
|
|
12230
12444
|
// src/components/Input/styles/InputInlineSelect.styles.ts
|
|
12231
|
-
import { css as
|
|
12232
|
-
var inlineSelectContainer =
|
|
12445
|
+
import { css as css41 } from "@emotion/react";
|
|
12446
|
+
var inlineSelectContainer = css41`
|
|
12233
12447
|
margin-inline: auto;
|
|
12234
12448
|
max-width: fit-content;
|
|
12235
12449
|
`;
|
|
12236
|
-
var inlineSelectBtn =
|
|
12450
|
+
var inlineSelectBtn = css41`
|
|
12237
12451
|
align-items: center;
|
|
12238
12452
|
background: var(--brand-secondary-3);
|
|
12239
12453
|
border: 2px solid var(--brand-secondary-3);
|
|
@@ -12257,7 +12471,7 @@ var inlineSelectBtn = css36`
|
|
|
12257
12471
|
outline: 2px solid var(--brand-secondary-1);
|
|
12258
12472
|
}
|
|
12259
12473
|
`;
|
|
12260
|
-
var inlineSelectMenu =
|
|
12474
|
+
var inlineSelectMenu = css41`
|
|
12261
12475
|
background: var(--white);
|
|
12262
12476
|
border: 1px solid var(--brand-secondary-3);
|
|
12263
12477
|
border-top: none;
|
|
@@ -12268,7 +12482,7 @@ var inlineSelectMenu = css36`
|
|
|
12268
12482
|
inset: auto 0;
|
|
12269
12483
|
transform: translateY(-0.2rem);
|
|
12270
12484
|
`;
|
|
12271
|
-
var inlineSelectBtnOptions =
|
|
12485
|
+
var inlineSelectBtnOptions = css41`
|
|
12272
12486
|
cursor: pointer;
|
|
12273
12487
|
display: block;
|
|
12274
12488
|
font-size: var(--fs-sm);
|
|
@@ -12284,7 +12498,7 @@ var inlineSelectBtnOptions = css36`
|
|
|
12284
12498
|
background: var(--gray-50);
|
|
12285
12499
|
}
|
|
12286
12500
|
`;
|
|
12287
|
-
var inlineSelectMenuClosed =
|
|
12501
|
+
var inlineSelectMenuClosed = css41`
|
|
12288
12502
|
position: absolute;
|
|
12289
12503
|
overflow: hidden;
|
|
12290
12504
|
height: 1px;
|
|
@@ -12294,7 +12508,7 @@ var inlineSelectMenuClosed = css36`
|
|
|
12294
12508
|
`;
|
|
12295
12509
|
|
|
12296
12510
|
// src/components/Input/InputInlineSelect.tsx
|
|
12297
|
-
import { jsx as
|
|
12511
|
+
import { jsx as jsx49, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
|
|
12298
12512
|
var InputInlineSelect = ({
|
|
12299
12513
|
classNameContainer,
|
|
12300
12514
|
options,
|
|
@@ -12308,17 +12522,17 @@ var InputInlineSelect = ({
|
|
|
12308
12522
|
const divRef = useRef3(null);
|
|
12309
12523
|
useOutsideClick(divRef, () => setMenuVisible(false));
|
|
12310
12524
|
const selected = options.find((option) => option.value === value);
|
|
12311
|
-
return /* @__PURE__ */
|
|
12525
|
+
return /* @__PURE__ */ jsxs29(
|
|
12312
12526
|
"div",
|
|
12313
12527
|
{
|
|
12314
12528
|
ref: divRef,
|
|
12315
|
-
css: !classNameContainer ? inlineSelectContainer :
|
|
12529
|
+
css: !classNameContainer ? inlineSelectContainer : css42`
|
|
12316
12530
|
max-width: fit-content;
|
|
12317
12531
|
${typeof classNameContainer === "object" ? classNameContainer : void 0}
|
|
12318
12532
|
`,
|
|
12319
12533
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
12320
12534
|
children: [
|
|
12321
|
-
/* @__PURE__ */
|
|
12535
|
+
/* @__PURE__ */ jsxs29(
|
|
12322
12536
|
"button",
|
|
12323
12537
|
{
|
|
12324
12538
|
type: "button",
|
|
@@ -12332,18 +12546,18 @@ var InputInlineSelect = ({
|
|
|
12332
12546
|
disabled,
|
|
12333
12547
|
...props,
|
|
12334
12548
|
children: [
|
|
12335
|
-
/* @__PURE__ */
|
|
12336
|
-
disabled ? null : /* @__PURE__ */
|
|
12549
|
+
/* @__PURE__ */ jsx49("span", { children: (_a = selected == null ? void 0 : selected.label) != null ? _a : value }),
|
|
12550
|
+
disabled ? null : /* @__PURE__ */ jsx49(Icon, { icon: CgChevronDown2, iconColor: "currentColor", size: 24 })
|
|
12337
12551
|
]
|
|
12338
12552
|
}
|
|
12339
12553
|
),
|
|
12340
|
-
/* @__PURE__ */
|
|
12554
|
+
/* @__PURE__ */ jsx49(
|
|
12341
12555
|
"div",
|
|
12342
12556
|
{
|
|
12343
12557
|
id: `and-or-${props.id}`,
|
|
12344
12558
|
css: [inlineSelectMenu, menuVisible ? void 0 : inlineSelectMenuClosed],
|
|
12345
12559
|
"aria-hidden": !menuVisible,
|
|
12346
|
-
children: options.map((opt) => /* @__PURE__ */
|
|
12560
|
+
children: options.map((opt) => /* @__PURE__ */ jsx49(
|
|
12347
12561
|
"button",
|
|
12348
12562
|
{
|
|
12349
12563
|
type: "button",
|
|
@@ -12364,7 +12578,7 @@ var InputInlineSelect = ({
|
|
|
12364
12578
|
};
|
|
12365
12579
|
|
|
12366
12580
|
// src/components/Input/InputKeywordSearch.tsx
|
|
12367
|
-
import { jsx as
|
|
12581
|
+
import { jsx as jsx50 } from "@emotion/react/jsx-runtime";
|
|
12368
12582
|
var InputKeywordSearch = ({
|
|
12369
12583
|
onSearchTextChanged,
|
|
12370
12584
|
disabled = false,
|
|
@@ -12383,7 +12597,7 @@ var InputKeywordSearch = ({
|
|
|
12383
12597
|
e.preventDefault();
|
|
12384
12598
|
}
|
|
12385
12599
|
};
|
|
12386
|
-
return /* @__PURE__ */
|
|
12600
|
+
return /* @__PURE__ */ jsx50(
|
|
12387
12601
|
Input,
|
|
12388
12602
|
{
|
|
12389
12603
|
type: "text",
|
|
@@ -12391,7 +12605,7 @@ var InputKeywordSearch = ({
|
|
|
12391
12605
|
placeholder,
|
|
12392
12606
|
showLabel: false,
|
|
12393
12607
|
value,
|
|
12394
|
-
icon: value ? /* @__PURE__ */
|
|
12608
|
+
icon: value ? /* @__PURE__ */ jsx50("button", { css: inputSearchCloseBtn, onClick: onClear, children: /* @__PURE__ */ jsx50(Icon, { icon: "close", iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ jsx50(Icon, { icon: "search", iconColor: "gray", size: "1rem" }),
|
|
12395
12609
|
onChange: handleSearchTextChanged,
|
|
12396
12610
|
onKeyPress: preventSubmitOnField,
|
|
12397
12611
|
disabled,
|
|
@@ -12402,7 +12616,7 @@ var InputKeywordSearch = ({
|
|
|
12402
12616
|
};
|
|
12403
12617
|
|
|
12404
12618
|
// src/components/Input/InputSelect.tsx
|
|
12405
|
-
import { Fragment as Fragment5, jsx as
|
|
12619
|
+
import { Fragment as Fragment5, jsx as jsx51, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
|
|
12406
12620
|
var InputSelect = ({
|
|
12407
12621
|
label,
|
|
12408
12622
|
defaultOption,
|
|
@@ -12418,13 +12632,13 @@ var InputSelect = ({
|
|
|
12418
12632
|
classNameLabel,
|
|
12419
12633
|
...props
|
|
12420
12634
|
}) => {
|
|
12421
|
-
return /* @__PURE__ */
|
|
12635
|
+
return /* @__PURE__ */ jsxs30(
|
|
12422
12636
|
"div",
|
|
12423
12637
|
{
|
|
12424
12638
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
12425
12639
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
12426
12640
|
children: [
|
|
12427
|
-
showLabel ? /* @__PURE__ */
|
|
12641
|
+
showLabel ? /* @__PURE__ */ jsx51(Fragment5, { children: /* @__PURE__ */ jsxs30(
|
|
12428
12642
|
Label,
|
|
12429
12643
|
{
|
|
12430
12644
|
htmlFor: props.id,
|
|
@@ -12436,7 +12650,7 @@ var InputSelect = ({
|
|
|
12436
12650
|
]
|
|
12437
12651
|
}
|
|
12438
12652
|
) }) : null,
|
|
12439
|
-
/* @__PURE__ */
|
|
12653
|
+
/* @__PURE__ */ jsxs30(
|
|
12440
12654
|
"select",
|
|
12441
12655
|
{
|
|
12442
12656
|
title: label,
|
|
@@ -12451,21 +12665,21 @@ var InputSelect = ({
|
|
|
12451
12665
|
className: typeof classNameControl === "string" ? classNameControl : "",
|
|
12452
12666
|
...props,
|
|
12453
12667
|
children: [
|
|
12454
|
-
defaultOption ? /* @__PURE__ */
|
|
12455
|
-
options.map((opt, index) => /* @__PURE__ */
|
|
12668
|
+
defaultOption ? /* @__PURE__ */ jsx51("option", { value: "", children: defaultOption }) : null,
|
|
12669
|
+
options.map((opt, index) => /* @__PURE__ */ jsx51("option", { value: opt.label, ...opt }, index))
|
|
12456
12670
|
]
|
|
12457
12671
|
}
|
|
12458
12672
|
),
|
|
12459
|
-
caption ? /* @__PURE__ */
|
|
12460
|
-
errorMessage ? /* @__PURE__ */
|
|
12461
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
12673
|
+
caption ? /* @__PURE__ */ jsx51(Caption, { children: caption }) : null,
|
|
12674
|
+
errorMessage ? /* @__PURE__ */ jsx51(ErrorMessage, { message: errorMessage }) : null,
|
|
12675
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx51(WarningMessage, { message: warningMessage }) : null
|
|
12462
12676
|
]
|
|
12463
12677
|
}
|
|
12464
12678
|
);
|
|
12465
12679
|
};
|
|
12466
12680
|
|
|
12467
12681
|
// src/components/Input/InputToggle.tsx
|
|
12468
|
-
import { jsx as
|
|
12682
|
+
import { jsx as jsx52, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
|
|
12469
12683
|
var InputToggle = ({
|
|
12470
12684
|
label,
|
|
12471
12685
|
type,
|
|
@@ -12479,25 +12693,25 @@ var InputToggle = ({
|
|
|
12479
12693
|
fontWeight = "medium",
|
|
12480
12694
|
...props
|
|
12481
12695
|
}) => {
|
|
12482
|
-
return /* @__PURE__ */
|
|
12483
|
-
/* @__PURE__ */
|
|
12484
|
-
/* @__PURE__ */
|
|
12485
|
-
caption || errorMessage ? /* @__PURE__ */
|
|
12486
|
-
caption ? /* @__PURE__ */
|
|
12487
|
-
errorMessage ? /* @__PURE__ */
|
|
12488
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
12696
|
+
return /* @__PURE__ */ jsxs31(Label, { css: [inputToggleLabel, disabled ? inputDisabled : void 0], "data-test-id": testId, children: [
|
|
12697
|
+
/* @__PURE__ */ jsx52("input", { type, css: toggleInput, checked, name, disabled, ...props }),
|
|
12698
|
+
/* @__PURE__ */ jsx52("span", { css: inlineLabel(fontWeight), dangerouslySetInnerHTML: { __html: label } }),
|
|
12699
|
+
caption || errorMessage ? /* @__PURE__ */ jsxs31("span", { css: inputToggleMessageContainer, children: [
|
|
12700
|
+
caption ? /* @__PURE__ */ jsx52(Caption, { children: caption }) : null,
|
|
12701
|
+
errorMessage ? /* @__PURE__ */ jsx52(ErrorMessage, { message: errorMessage }) : null,
|
|
12702
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx52(WarningMessage, { message: warningMessage }) : null
|
|
12489
12703
|
] }) : null
|
|
12490
12704
|
] });
|
|
12491
12705
|
};
|
|
12492
12706
|
|
|
12493
12707
|
// src/components/Input/Legend.tsx
|
|
12494
|
-
import { jsx as
|
|
12708
|
+
import { jsx as jsx53 } from "@emotion/react/jsx-runtime";
|
|
12495
12709
|
var Legend = ({ children }) => {
|
|
12496
|
-
return /* @__PURE__ */
|
|
12710
|
+
return /* @__PURE__ */ jsx53("legend", { css: fieldsetLegend, children });
|
|
12497
12711
|
};
|
|
12498
12712
|
|
|
12499
12713
|
// src/components/Input/Textarea.tsx
|
|
12500
|
-
import { Fragment as Fragment6, jsx as
|
|
12714
|
+
import { Fragment as Fragment6, jsx as jsx54, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
|
|
12501
12715
|
var Textarea = ({
|
|
12502
12716
|
label,
|
|
12503
12717
|
icon,
|
|
@@ -12508,10 +12722,10 @@ var Textarea = ({
|
|
|
12508
12722
|
warningMessage,
|
|
12509
12723
|
...props
|
|
12510
12724
|
}) => {
|
|
12511
|
-
return /* @__PURE__ */
|
|
12512
|
-
showLabel ? /* @__PURE__ */
|
|
12513
|
-
/* @__PURE__ */
|
|
12514
|
-
/* @__PURE__ */
|
|
12725
|
+
return /* @__PURE__ */ jsxs32(Fragment6, { children: [
|
|
12726
|
+
showLabel ? /* @__PURE__ */ jsx54("label", { htmlFor: id, css: [labelText], children: label }) : null,
|
|
12727
|
+
/* @__PURE__ */ jsxs32("div", { css: [inputContainer], children: [
|
|
12728
|
+
/* @__PURE__ */ jsx54(
|
|
12515
12729
|
"textarea",
|
|
12516
12730
|
{
|
|
12517
12731
|
id,
|
|
@@ -12520,17 +12734,17 @@ var Textarea = ({
|
|
|
12520
12734
|
...props
|
|
12521
12735
|
}
|
|
12522
12736
|
),
|
|
12523
|
-
icon ? /* @__PURE__ */
|
|
12737
|
+
icon ? /* @__PURE__ */ jsx54("div", { css: inputIcon, children: icon }) : null
|
|
12524
12738
|
] }),
|
|
12525
|
-
caption ? /* @__PURE__ */
|
|
12526
|
-
errorMessage ? /* @__PURE__ */
|
|
12527
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
12739
|
+
caption ? /* @__PURE__ */ jsx54(Caption, { children: caption }) : null,
|
|
12740
|
+
errorMessage ? /* @__PURE__ */ jsx54(ErrorMessage, { message: errorMessage }) : null,
|
|
12741
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx54(WarningMessage, { message: warningMessage }) : null
|
|
12528
12742
|
] });
|
|
12529
12743
|
};
|
|
12530
12744
|
|
|
12531
12745
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
12532
12746
|
import MonacoEditor from "@monaco-editor/react";
|
|
12533
|
-
import { jsx as
|
|
12747
|
+
import { jsx as jsx55 } from "@emotion/react/jsx-runtime";
|
|
12534
12748
|
var minEditorHeightPx = 150;
|
|
12535
12749
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
12536
12750
|
let effectiveHeight = height;
|
|
@@ -12540,7 +12754,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
12540
12754
|
if (typeof effectiveHeight === "number" && effectiveHeight < minEditorHeightPx) {
|
|
12541
12755
|
effectiveHeight = minEditorHeightPx;
|
|
12542
12756
|
}
|
|
12543
|
-
return /* @__PURE__ */
|
|
12757
|
+
return /* @__PURE__ */ jsx55(
|
|
12544
12758
|
MonacoEditor,
|
|
12545
12759
|
{
|
|
12546
12760
|
height: effectiveHeight,
|
|
@@ -12576,94 +12790,40 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
12576
12790
|
);
|
|
12577
12791
|
};
|
|
12578
12792
|
|
|
12579
|
-
// src/components/Layout/styles/Container.styles.ts
|
|
12580
|
-
import { css as css38 } from "@emotion/react";
|
|
12581
|
-
var Container = ({ backgroundColor, border, rounded, padding, margin }) => css38`
|
|
12582
|
-
background: var(--${backgroundColor});
|
|
12583
|
-
${border ? "border: 1px solid var(--gray-300)" : void 0};
|
|
12584
|
-
${rounded ? `border-radius: var(--${rounded})` : void 0};
|
|
12585
|
-
${padding ? `padding: ${padding}` : void 0};
|
|
12586
|
-
${margin ? `margin: ${margin}` : void 0};
|
|
12587
|
-
`;
|
|
12588
|
-
|
|
12589
|
-
// src/components/Layout/Container.tsx
|
|
12590
|
-
import { jsx as jsx50 } from "@emotion/react/jsx-runtime";
|
|
12591
|
-
var Container2 = ({
|
|
12592
|
-
tag = "div",
|
|
12593
|
-
backgroundColor = "white",
|
|
12594
|
-
border,
|
|
12595
|
-
rounded,
|
|
12596
|
-
padding,
|
|
12597
|
-
margin,
|
|
12598
|
-
children,
|
|
12599
|
-
...props
|
|
12600
|
-
}) => {
|
|
12601
|
-
const Tag = tag;
|
|
12602
|
-
return /* @__PURE__ */ jsx50(
|
|
12603
|
-
Tag,
|
|
12604
|
-
{
|
|
12605
|
-
css: Container({
|
|
12606
|
-
backgroundColor,
|
|
12607
|
-
border,
|
|
12608
|
-
rounded,
|
|
12609
|
-
padding,
|
|
12610
|
-
margin
|
|
12611
|
-
}),
|
|
12612
|
-
...props,
|
|
12613
|
-
children
|
|
12614
|
-
}
|
|
12615
|
-
);
|
|
12616
|
-
};
|
|
12617
|
-
|
|
12618
|
-
// src/components/Layout/styles/VerticalRhythm.styles.ts
|
|
12619
|
-
import { css as css39 } from "@emotion/react";
|
|
12620
|
-
var VerticalRhythmContainer = (size) => css39`
|
|
12621
|
-
display: flex;
|
|
12622
|
-
flex-direction: column;
|
|
12623
|
-
gap: var(--spacing-${size});
|
|
12624
|
-
`;
|
|
12625
|
-
|
|
12626
|
-
// src/components/Layout/VerticalRhythm.tsx
|
|
12627
|
-
import { jsx as jsx51 } from "@emotion/react/jsx-runtime";
|
|
12628
|
-
var VerticalRhythm = ({ tag = "div", gap = "base", children, ...props }) => {
|
|
12629
|
-
const Tag = tag;
|
|
12630
|
-
return /* @__PURE__ */ jsx51(Tag, { css: VerticalRhythmContainer(gap), ...props, children });
|
|
12631
|
-
};
|
|
12632
|
-
|
|
12633
12793
|
// src/components/LimitsBar/LimitsBar.styles.ts
|
|
12634
|
-
import { css as
|
|
12635
|
-
var LimitsBarContainer =
|
|
12794
|
+
import { css as css43 } from "@emotion/react";
|
|
12795
|
+
var LimitsBarContainer = css43`
|
|
12636
12796
|
margin-block: var(--spacing-sm);
|
|
12637
12797
|
`;
|
|
12638
|
-
var LimitsBarProgressBar =
|
|
12798
|
+
var LimitsBarProgressBar = css43`
|
|
12639
12799
|
background: var(--gray-100);
|
|
12640
12800
|
margin-top: var(--spacing-sm);
|
|
12641
12801
|
position: relative;
|
|
12642
12802
|
overflow: hidden;
|
|
12643
12803
|
height: 0.25rem;
|
|
12644
12804
|
`;
|
|
12645
|
-
var LimitsBarProgressBarLine =
|
|
12805
|
+
var LimitsBarProgressBarLine = css43`
|
|
12646
12806
|
position: absolute;
|
|
12647
12807
|
inset: 0;
|
|
12648
12808
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
12649
12809
|
`;
|
|
12650
|
-
var LimitsBarLabelContainer =
|
|
12810
|
+
var LimitsBarLabelContainer = css43`
|
|
12651
12811
|
display: flex;
|
|
12652
12812
|
justify-content: space-between;
|
|
12653
12813
|
font-weight: var(--fw-bold);
|
|
12654
12814
|
`;
|
|
12655
|
-
var LimitsBarLabel =
|
|
12815
|
+
var LimitsBarLabel = css43`
|
|
12656
12816
|
font-size: var(--fs-baase);
|
|
12657
12817
|
`;
|
|
12658
|
-
var LimitsBarBgColor = (statusColor) =>
|
|
12818
|
+
var LimitsBarBgColor = (statusColor) => css43`
|
|
12659
12819
|
background: ${statusColor};
|
|
12660
12820
|
`;
|
|
12661
|
-
var LimitsBarTextColor = (statusColor) =>
|
|
12821
|
+
var LimitsBarTextColor = (statusColor) => css43`
|
|
12662
12822
|
color: ${statusColor};
|
|
12663
12823
|
`;
|
|
12664
12824
|
|
|
12665
12825
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
12666
|
-
import { jsx as
|
|
12826
|
+
import { jsx as jsx56, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
|
|
12667
12827
|
var LimitsBar = ({ current, max, label }) => {
|
|
12668
12828
|
const maxPercentage = 100;
|
|
12669
12829
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -12674,16 +12834,16 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
12674
12834
|
danger: "var(--brand-secondary-5)"
|
|
12675
12835
|
};
|
|
12676
12836
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
12677
|
-
return /* @__PURE__ */
|
|
12678
|
-
/* @__PURE__ */
|
|
12679
|
-
/* @__PURE__ */
|
|
12680
|
-
/* @__PURE__ */
|
|
12837
|
+
return /* @__PURE__ */ jsxs33("div", { css: LimitsBarContainer, children: [
|
|
12838
|
+
/* @__PURE__ */ jsxs33("div", { css: LimitsBarLabelContainer, children: [
|
|
12839
|
+
/* @__PURE__ */ jsx56("span", { css: LimitsBarLabel, children: label }),
|
|
12840
|
+
/* @__PURE__ */ jsxs33("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
12681
12841
|
current,
|
|
12682
12842
|
" of ",
|
|
12683
12843
|
max
|
|
12684
12844
|
] })
|
|
12685
12845
|
] }),
|
|
12686
|
-
/* @__PURE__ */
|
|
12846
|
+
/* @__PURE__ */ jsx56(
|
|
12687
12847
|
"div",
|
|
12688
12848
|
{
|
|
12689
12849
|
role: "progressbar",
|
|
@@ -12692,7 +12852,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
12692
12852
|
"aria-valuemax": max,
|
|
12693
12853
|
"aria-valuetext": `${current} of ${max}`,
|
|
12694
12854
|
css: LimitsBarProgressBar,
|
|
12695
|
-
children: /* @__PURE__ */
|
|
12855
|
+
children: /* @__PURE__ */ jsx56(
|
|
12696
12856
|
"span",
|
|
12697
12857
|
{
|
|
12698
12858
|
role: "presentation",
|
|
@@ -12708,9 +12868,10 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
12708
12868
|
};
|
|
12709
12869
|
|
|
12710
12870
|
// src/components/LinkList/LinkList.styles.ts
|
|
12711
|
-
import { css as
|
|
12712
|
-
var LinkListContainer =
|
|
12713
|
-
padding: var(--spacing-md)
|
|
12871
|
+
import { css as css44 } from "@emotion/react";
|
|
12872
|
+
var LinkListContainer = css44`
|
|
12873
|
+
padding: var(--spacing-md);
|
|
12874
|
+
|
|
12714
12875
|
${mq("sm")} {
|
|
12715
12876
|
grid-column: last-col / span 1;
|
|
12716
12877
|
grid-row: 1 / last-line;
|
|
@@ -12718,23 +12879,23 @@ var LinkListContainer = css41`
|
|
|
12718
12879
|
`;
|
|
12719
12880
|
|
|
12720
12881
|
// src/components/LinkList/LinkList.tsx
|
|
12721
|
-
import { jsx as
|
|
12882
|
+
import { jsx as jsx57, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
|
|
12722
12883
|
var LinkList = ({ title, children, ...props }) => {
|
|
12723
|
-
return /* @__PURE__ */
|
|
12724
|
-
/* @__PURE__ */
|
|
12884
|
+
return /* @__PURE__ */ jsxs34("div", { css: LinkListContainer, ...props, children: [
|
|
12885
|
+
/* @__PURE__ */ jsx57(Heading, { level: 3, children: title }),
|
|
12725
12886
|
children
|
|
12726
12887
|
] });
|
|
12727
12888
|
};
|
|
12728
12889
|
|
|
12729
12890
|
// src/components/List/ScrollableList.tsx
|
|
12730
|
-
import { css as
|
|
12891
|
+
import { css as css46 } from "@emotion/react";
|
|
12731
12892
|
|
|
12732
12893
|
// src/components/List/styles/ScrollableList.styles.ts
|
|
12733
|
-
import { css as
|
|
12734
|
-
var ScrollableListContainer =
|
|
12894
|
+
import { css as css45 } from "@emotion/react";
|
|
12895
|
+
var ScrollableListContainer = css45`
|
|
12735
12896
|
position: relative;
|
|
12736
12897
|
`;
|
|
12737
|
-
var ScrollableListInner =
|
|
12898
|
+
var ScrollableListInner = css45`
|
|
12738
12899
|
background: var(--gray-50);
|
|
12739
12900
|
border-top: 1px solid var(--gray-200);
|
|
12740
12901
|
border-bottom: 1px solid var(--gray-200);
|
|
@@ -12752,19 +12913,19 @@ var ScrollableListInner = css42`
|
|
|
12752
12913
|
`;
|
|
12753
12914
|
|
|
12754
12915
|
// src/components/List/ScrollableList.tsx
|
|
12755
|
-
import { jsx as
|
|
12916
|
+
import { jsx as jsx58, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
12756
12917
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
12757
|
-
return /* @__PURE__ */
|
|
12758
|
-
label ? /* @__PURE__ */
|
|
12918
|
+
return /* @__PURE__ */ jsxs35("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
12919
|
+
label ? /* @__PURE__ */ jsx58(
|
|
12759
12920
|
"span",
|
|
12760
12921
|
{
|
|
12761
|
-
css:
|
|
12922
|
+
css: css46`
|
|
12762
12923
|
${labelText}
|
|
12763
12924
|
`,
|
|
12764
12925
|
children: label
|
|
12765
12926
|
}
|
|
12766
12927
|
) : null,
|
|
12767
|
-
/* @__PURE__ */
|
|
12928
|
+
/* @__PURE__ */ jsx58("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
12768
12929
|
] });
|
|
12769
12930
|
};
|
|
12770
12931
|
|
|
@@ -12772,8 +12933,8 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
12772
12933
|
import { CgCheck } from "react-icons/cg";
|
|
12773
12934
|
|
|
12774
12935
|
// src/components/List/styles/ScrollableListItem.styles.ts
|
|
12775
|
-
import { css as
|
|
12776
|
-
var ScrollableListItemContainer =
|
|
12936
|
+
import { css as css47 } from "@emotion/react";
|
|
12937
|
+
var ScrollableListItemContainer = css47`
|
|
12777
12938
|
align-items: center;
|
|
12778
12939
|
background: var(--white);
|
|
12779
12940
|
border-radius: var(--rounded-base);
|
|
@@ -12783,10 +12944,10 @@ var ScrollableListItemContainer = css44`
|
|
|
12783
12944
|
min-height: 52px;
|
|
12784
12945
|
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
12785
12946
|
`;
|
|
12786
|
-
var ScrollableListItemActive =
|
|
12947
|
+
var ScrollableListItemActive = css47`
|
|
12787
12948
|
border-color: var(--brand-secondary-3);
|
|
12788
12949
|
`;
|
|
12789
|
-
var ScrollableListItemBtn =
|
|
12950
|
+
var ScrollableListItemBtn = css47`
|
|
12790
12951
|
align-items: center;
|
|
12791
12952
|
border: none;
|
|
12792
12953
|
background: transparent;
|
|
@@ -12801,26 +12962,26 @@ var ScrollableListItemBtn = css44`
|
|
|
12801
12962
|
outline: none;
|
|
12802
12963
|
}
|
|
12803
12964
|
`;
|
|
12804
|
-
var ScrollableListInputLabel =
|
|
12965
|
+
var ScrollableListInputLabel = css47`
|
|
12805
12966
|
align-items: center;
|
|
12806
12967
|
display: flex;
|
|
12807
12968
|
padding: var(--spacing-xs) var(--spacing-base) var(--spacing-xs);
|
|
12808
12969
|
flex-grow: 1;
|
|
12809
12970
|
`;
|
|
12810
|
-
var ScrollableListInputText =
|
|
12971
|
+
var ScrollableListInputText = css47`
|
|
12811
12972
|
align-items: center;
|
|
12812
12973
|
display: flex;
|
|
12813
12974
|
gap: var(--spacing-sm);
|
|
12814
12975
|
font-weight: var(--fw-bold);
|
|
12815
12976
|
flex-grow: 1;
|
|
12816
12977
|
`;
|
|
12817
|
-
var ScrollableListHiddenInput =
|
|
12978
|
+
var ScrollableListHiddenInput = css47`
|
|
12818
12979
|
position: absolute;
|
|
12819
12980
|
height: 0;
|
|
12820
12981
|
width: 0;
|
|
12821
12982
|
opacity: 0;
|
|
12822
12983
|
`;
|
|
12823
|
-
var ScrollableListIcon =
|
|
12984
|
+
var ScrollableListIcon = css47`
|
|
12824
12985
|
border-radius: var(--rounded-full);
|
|
12825
12986
|
background: var(--brand-secondary-3);
|
|
12826
12987
|
color: var(--white);
|
|
@@ -12829,7 +12990,7 @@ var ScrollableListIcon = css44`
|
|
|
12829
12990
|
`;
|
|
12830
12991
|
|
|
12831
12992
|
// src/components/List/ScrollableListInputItem.tsx
|
|
12832
|
-
import { jsx as
|
|
12993
|
+
import { jsx as jsx59, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
12833
12994
|
var ScrollableListInputItem = ({
|
|
12834
12995
|
label,
|
|
12835
12996
|
icon,
|
|
@@ -12837,23 +12998,23 @@ var ScrollableListInputItem = ({
|
|
|
12837
12998
|
children,
|
|
12838
12999
|
labelTestId
|
|
12839
13000
|
}) => {
|
|
12840
|
-
return /* @__PURE__ */
|
|
12841
|
-
/* @__PURE__ */
|
|
13001
|
+
return /* @__PURE__ */ jsx59("div", { css: [ScrollableListItemContainer, active ? ScrollableListItemActive : void 0], children: /* @__PURE__ */ jsxs36("label", { "data-test-id": labelTestId, css: ScrollableListInputLabel, children: [
|
|
13002
|
+
/* @__PURE__ */ jsxs36("span", { css: ScrollableListInputText, children: [
|
|
12842
13003
|
icon,
|
|
12843
13004
|
label
|
|
12844
13005
|
] }),
|
|
12845
|
-
/* @__PURE__ */
|
|
12846
|
-
active ? /* @__PURE__ */
|
|
13006
|
+
/* @__PURE__ */ jsx59("div", { css: ScrollableListHiddenInput, children }),
|
|
13007
|
+
active ? /* @__PURE__ */ jsx59(Icon, { icon: CgCheck, iconColor: "currentColor", css: ScrollableListIcon, size: 24 }) : null
|
|
12847
13008
|
] }) });
|
|
12848
13009
|
};
|
|
12849
13010
|
|
|
12850
13011
|
// src/components/List/ScrollableListItem.tsx
|
|
12851
|
-
import { css as
|
|
12852
|
-
import { jsx as
|
|
13012
|
+
import { css as css48 } from "@emotion/react";
|
|
13013
|
+
import { jsx as jsx60, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
|
|
12853
13014
|
var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
12854
|
-
return /* @__PURE__ */
|
|
12855
|
-
/* @__PURE__ */
|
|
12856
|
-
/* @__PURE__ */
|
|
13015
|
+
return /* @__PURE__ */ jsx60("div", { css: [ScrollableListItemContainer, active ? ScrollableListItemActive : void 0], children: /* @__PURE__ */ jsxs37("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
13016
|
+
/* @__PURE__ */ jsx60("span", { children: buttonText }),
|
|
13017
|
+
/* @__PURE__ */ jsx60(
|
|
12857
13018
|
"svg",
|
|
12858
13019
|
{
|
|
12859
13020
|
width: "24",
|
|
@@ -12862,14 +13023,14 @@ var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
|
12862
13023
|
fill: "currentColor",
|
|
12863
13024
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12864
13025
|
"aria-hidden": !active,
|
|
12865
|
-
css:
|
|
13026
|
+
css: css48`
|
|
12866
13027
|
color: var(--brand-secondary-3);
|
|
12867
13028
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
12868
|
-
${active ?
|
|
13029
|
+
${active ? css48`
|
|
12869
13030
|
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
12870
13031
|
` : "opacity: 0;"}
|
|
12871
13032
|
`,
|
|
12872
|
-
children: /* @__PURE__ */
|
|
13033
|
+
children: /* @__PURE__ */ jsx60(
|
|
12873
13034
|
"path",
|
|
12874
13035
|
{
|
|
12875
13036
|
fillRule: "evenodd",
|
|
@@ -12883,7 +13044,7 @@ var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
|
12883
13044
|
};
|
|
12884
13045
|
|
|
12885
13046
|
// src/components/LoadingIndicator/LoadingIndicator.styles.ts
|
|
12886
|
-
import { css as
|
|
13047
|
+
import { css as css49, keyframes as keyframes3 } from "@emotion/react";
|
|
12887
13048
|
var bounceFade = keyframes3`
|
|
12888
13049
|
0%, 100% {
|
|
12889
13050
|
opacity: 1.0;
|
|
@@ -12901,11 +13062,11 @@ var bounceFade = keyframes3`
|
|
|
12901
13062
|
transform: translateY(-5px);
|
|
12902
13063
|
}
|
|
12903
13064
|
`;
|
|
12904
|
-
var loader =
|
|
13065
|
+
var loader = css49`
|
|
12905
13066
|
display: inline-flex;
|
|
12906
13067
|
justify-content: center;
|
|
12907
13068
|
`;
|
|
12908
|
-
var loadingDot =
|
|
13069
|
+
var loadingDot = css49`
|
|
12909
13070
|
background-color: var(--gray-700);
|
|
12910
13071
|
display: block;
|
|
12911
13072
|
border-radius: var(--rounded-full);
|
|
@@ -12929,21 +13090,21 @@ var loadingDot = css46`
|
|
|
12929
13090
|
`;
|
|
12930
13091
|
|
|
12931
13092
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
12932
|
-
import { jsx as
|
|
13093
|
+
import { jsx as jsx61, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
|
|
12933
13094
|
var LoadingIndicator = ({ ...props }) => {
|
|
12934
|
-
return /* @__PURE__ */
|
|
12935
|
-
/* @__PURE__ */
|
|
12936
|
-
/* @__PURE__ */
|
|
12937
|
-
/* @__PURE__ */
|
|
13095
|
+
return /* @__PURE__ */ jsxs38("div", { role: "alert", css: loader, "data-test-id": "loading-indicator", ...props, children: [
|
|
13096
|
+
/* @__PURE__ */ jsx61("span", { css: loadingDot }),
|
|
13097
|
+
/* @__PURE__ */ jsx61("span", { css: loadingDot }),
|
|
13098
|
+
/* @__PURE__ */ jsx61("span", { css: loadingDot })
|
|
12938
13099
|
] });
|
|
12939
13100
|
};
|
|
12940
13101
|
|
|
12941
13102
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
12942
|
-
import { useCallback as useCallback2, useEffect as
|
|
13103
|
+
import { useCallback as useCallback2, useEffect as useEffect7, useRef as useRef4 } from "react";
|
|
12943
13104
|
|
|
12944
13105
|
// src/components/LoadingOverlay/LoadingOverlay.styles.ts
|
|
12945
|
-
import { css as
|
|
12946
|
-
var loadingOverlayContainer =
|
|
13106
|
+
import { css as css50 } from "@emotion/react";
|
|
13107
|
+
var loadingOverlayContainer = css50`
|
|
12947
13108
|
position: absolute;
|
|
12948
13109
|
inset: 0;
|
|
12949
13110
|
overflow: hidden;
|
|
@@ -12951,30 +13112,30 @@ var loadingOverlayContainer = css47`
|
|
|
12951
13112
|
padding: var(--spacing-xl);
|
|
12952
13113
|
overflow-y: auto;
|
|
12953
13114
|
`;
|
|
12954
|
-
var loadingOverlayVisible =
|
|
13115
|
+
var loadingOverlayVisible = css50`
|
|
12955
13116
|
display: flex;
|
|
12956
13117
|
`;
|
|
12957
|
-
var loadingOverlayHidden =
|
|
13118
|
+
var loadingOverlayHidden = css50`
|
|
12958
13119
|
display: none;
|
|
12959
13120
|
`;
|
|
12960
|
-
var loadingOverlayBackground = (bgColor) =>
|
|
13121
|
+
var loadingOverlayBackground = (bgColor) => css50`
|
|
12961
13122
|
background: ${bgColor};
|
|
12962
13123
|
opacity: 0.92;
|
|
12963
13124
|
position: absolute;
|
|
12964
13125
|
inset: 0 0;
|
|
12965
13126
|
`;
|
|
12966
|
-
var loadingOverlayBody =
|
|
13127
|
+
var loadingOverlayBody = css50`
|
|
12967
13128
|
align-items: center;
|
|
12968
13129
|
display: flex;
|
|
12969
13130
|
flex-direction: column;
|
|
12970
13131
|
`;
|
|
12971
|
-
var loadingOverlayMessage =
|
|
13132
|
+
var loadingOverlayMessage = css50`
|
|
12972
13133
|
color: var(--gray-600);
|
|
12973
13134
|
margin: var(--spacing-base) 0 0;
|
|
12974
13135
|
`;
|
|
12975
13136
|
|
|
12976
13137
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
12977
|
-
import { jsx as
|
|
13138
|
+
import { jsx as jsx62, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
12978
13139
|
var LoadingOverlay = ({
|
|
12979
13140
|
isActive,
|
|
12980
13141
|
statusMessage,
|
|
@@ -12992,7 +13153,7 @@ var LoadingOverlay = ({
|
|
|
12992
13153
|
(_c = lottieRef.current) == null ? void 0 : _c.stop();
|
|
12993
13154
|
}
|
|
12994
13155
|
}, [isPaused]);
|
|
12995
|
-
|
|
13156
|
+
useEffect7(() => {
|
|
12996
13157
|
var _a, _b, _c, _d, _e, _f;
|
|
12997
13158
|
if (!isPaused && ((_b = (_a = lottieRef.current) == null ? void 0 : _a.animationItem) == null ? void 0 : _b.isPaused)) {
|
|
12998
13159
|
(_c = lottieRef.current) == null ? void 0 : _c.play();
|
|
@@ -13000,7 +13161,7 @@ var LoadingOverlay = ({
|
|
|
13000
13161
|
(_f = lottieRef.current) == null ? void 0 : _f.stop();
|
|
13001
13162
|
}
|
|
13002
13163
|
}, [isPaused]);
|
|
13003
|
-
return /* @__PURE__ */
|
|
13164
|
+
return /* @__PURE__ */ jsxs39(
|
|
13004
13165
|
"div",
|
|
13005
13166
|
{
|
|
13006
13167
|
role: "alert",
|
|
@@ -13008,9 +13169,9 @@ var LoadingOverlay = ({
|
|
|
13008
13169
|
"aria-hidden": !isActive,
|
|
13009
13170
|
"aria-busy": isActive && !isPaused,
|
|
13010
13171
|
children: [
|
|
13011
|
-
/* @__PURE__ */
|
|
13012
|
-
/* @__PURE__ */
|
|
13013
|
-
/* @__PURE__ */
|
|
13172
|
+
/* @__PURE__ */ jsx62("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
13173
|
+
/* @__PURE__ */ jsx62("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ jsxs39("div", { css: loadingOverlayBody, children: [
|
|
13174
|
+
/* @__PURE__ */ jsx62(
|
|
13014
13175
|
AnimationFile,
|
|
13015
13176
|
{
|
|
13016
13177
|
lottieRef,
|
|
@@ -13025,15 +13186,15 @@ var LoadingOverlay = ({
|
|
|
13025
13186
|
}
|
|
13026
13187
|
}
|
|
13027
13188
|
),
|
|
13028
|
-
statusMessage ? /* @__PURE__ */
|
|
13029
|
-
/* @__PURE__ */
|
|
13189
|
+
statusMessage ? /* @__PURE__ */ jsx62("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
|
|
13190
|
+
/* @__PURE__ */ jsx62("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
|
|
13030
13191
|
] }) })
|
|
13031
13192
|
]
|
|
13032
13193
|
}
|
|
13033
13194
|
);
|
|
13034
13195
|
};
|
|
13035
13196
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
13036
|
-
return /* @__PURE__ */
|
|
13197
|
+
return /* @__PURE__ */ jsx62(
|
|
13037
13198
|
"svg",
|
|
13038
13199
|
{
|
|
13039
13200
|
"data-testid": "svg",
|
|
@@ -13044,9 +13205,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
13044
13205
|
stroke: "currentColor",
|
|
13045
13206
|
...props,
|
|
13046
13207
|
"data-test-id": "loading-icon",
|
|
13047
|
-
children: /* @__PURE__ */
|
|
13048
|
-
/* @__PURE__ */
|
|
13049
|
-
/* @__PURE__ */
|
|
13208
|
+
children: /* @__PURE__ */ jsx62("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs39("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
13209
|
+
/* @__PURE__ */ jsx62("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
13210
|
+
/* @__PURE__ */ jsx62("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ jsx62(
|
|
13050
13211
|
"animateTransform",
|
|
13051
13212
|
{
|
|
13052
13213
|
attributeName: "transform",
|
|
@@ -13063,12 +13224,12 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
13063
13224
|
};
|
|
13064
13225
|
|
|
13065
13226
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
13066
|
-
import { css as
|
|
13227
|
+
import { css as css52 } from "@emotion/react";
|
|
13067
13228
|
import { CgAdd as CgAdd2, CgChevronRight as CgChevronRight2 } from "react-icons/cg";
|
|
13068
13229
|
|
|
13069
13230
|
// src/components/Tiles/styles/IntegrationTile.styles.ts
|
|
13070
|
-
import { css as
|
|
13071
|
-
var IntegrationTileContainer =
|
|
13231
|
+
import { css as css51 } from "@emotion/react";
|
|
13232
|
+
var IntegrationTileContainer = css51`
|
|
13072
13233
|
align-items: center;
|
|
13073
13234
|
box-sizing: border-box;
|
|
13074
13235
|
border-radius: var(--rounded-base);
|
|
@@ -13099,22 +13260,22 @@ var IntegrationTileContainer = css48`
|
|
|
13099
13260
|
}
|
|
13100
13261
|
}
|
|
13101
13262
|
`;
|
|
13102
|
-
var IntegrationTileBtnDashedBorder =
|
|
13263
|
+
var IntegrationTileBtnDashedBorder = css51`
|
|
13103
13264
|
border: 1px dashed var(--brand-secondary-1);
|
|
13104
13265
|
`;
|
|
13105
|
-
var IntegrationTileTitle =
|
|
13266
|
+
var IntegrationTileTitle = css51`
|
|
13106
13267
|
display: block;
|
|
13107
13268
|
font-weight: var(--fw-bold);
|
|
13108
13269
|
margin: 0 0 var(--spacing-base);
|
|
13109
13270
|
max-width: 13rem;
|
|
13110
13271
|
`;
|
|
13111
|
-
var IntegrationTitleLogo =
|
|
13272
|
+
var IntegrationTitleLogo = css51`
|
|
13112
13273
|
display: block;
|
|
13113
13274
|
max-width: 10rem;
|
|
13114
13275
|
max-height: 4rem;
|
|
13115
13276
|
margin: 0 auto;
|
|
13116
13277
|
`;
|
|
13117
|
-
var IntegrationTileName =
|
|
13278
|
+
var IntegrationTileName = css51`
|
|
13118
13279
|
color: var(--gray-500);
|
|
13119
13280
|
display: -webkit-box;
|
|
13120
13281
|
-webkit-line-clamp: 1;
|
|
@@ -13127,7 +13288,7 @@ var IntegrationTileName = css48`
|
|
|
13127
13288
|
position: absolute;
|
|
13128
13289
|
bottom: calc(var(--spacing-base) * 3.8);
|
|
13129
13290
|
`;
|
|
13130
|
-
var IntegrationAddedText =
|
|
13291
|
+
var IntegrationAddedText = css51`
|
|
13131
13292
|
align-items: center;
|
|
13132
13293
|
background: var(--brand-secondary-3);
|
|
13133
13294
|
border-radius: 0 var(--rounded-md) 0 var(--rounded-md);
|
|
@@ -13142,7 +13303,7 @@ var IntegrationAddedText = css48`
|
|
|
13142
13303
|
top: 0;
|
|
13143
13304
|
right: 0;
|
|
13144
13305
|
`;
|
|
13145
|
-
var IntegrationCustomBadgeText = (theme) =>
|
|
13306
|
+
var IntegrationCustomBadgeText = (theme) => css51`
|
|
13146
13307
|
align-items: center;
|
|
13147
13308
|
border-radius: var(--rounded-sm) 0 var(--rounded-sm) 0;
|
|
13148
13309
|
background: ${theme === "gray" ? "var(--brand-secondary-2)" : "var(--brand-secondary-1)"};
|
|
@@ -13156,26 +13317,26 @@ var IntegrationCustomBadgeText = (theme) => css48`
|
|
|
13156
13317
|
top: 0;
|
|
13157
13318
|
left: 0;
|
|
13158
13319
|
`;
|
|
13159
|
-
var IntegrationAuthorBadgeIcon =
|
|
13320
|
+
var IntegrationAuthorBadgeIcon = css51`
|
|
13160
13321
|
position: absolute;
|
|
13161
13322
|
bottom: var(--spacing-sm);
|
|
13162
13323
|
right: var(--spacing-xs);
|
|
13163
13324
|
max-height: 1rem;
|
|
13164
13325
|
`;
|
|
13165
|
-
var IntegrationTitleFakeButton =
|
|
13326
|
+
var IntegrationTitleFakeButton = css51`
|
|
13166
13327
|
font-size: var(--fs-xs);
|
|
13167
13328
|
gap: var(--spacing-sm);
|
|
13168
13329
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
13169
13330
|
text-transform: uppercase;
|
|
13170
13331
|
`;
|
|
13171
|
-
var IntegrationTileFloatingButton =
|
|
13332
|
+
var IntegrationTileFloatingButton = css51`
|
|
13172
13333
|
position: absolute;
|
|
13173
13334
|
bottom: var(--spacing-base);
|
|
13174
13335
|
gap: var(--spacing-sm);
|
|
13175
13336
|
font-size: var(--fs-xs);
|
|
13176
13337
|
overflow: hidden;
|
|
13177
13338
|
`;
|
|
13178
|
-
var IntegrationTileFloatingButtonMessage = (clicked) =>
|
|
13339
|
+
var IntegrationTileFloatingButtonMessage = (clicked) => css51`
|
|
13179
13340
|
strong,
|
|
13180
13341
|
span:first-of-type {
|
|
13181
13342
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
@@ -13196,7 +13357,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => css48`
|
|
|
13196
13357
|
`;
|
|
13197
13358
|
|
|
13198
13359
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
13199
|
-
import { jsx as
|
|
13360
|
+
import { jsx as jsx63, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
|
|
13200
13361
|
var CreateTeamIntegrationTile = ({
|
|
13201
13362
|
title = "Create a custom integration for your team",
|
|
13202
13363
|
buttonText = "Add Integration",
|
|
@@ -13204,9 +13365,9 @@ var CreateTeamIntegrationTile = ({
|
|
|
13204
13365
|
asDeepLink = false,
|
|
13205
13366
|
...props
|
|
13206
13367
|
}) => {
|
|
13207
|
-
return /* @__PURE__ */
|
|
13208
|
-
/* @__PURE__ */
|
|
13209
|
-
/* @__PURE__ */
|
|
13368
|
+
return /* @__PURE__ */ jsxs40("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
13369
|
+
/* @__PURE__ */ jsx63("span", { css: IntegrationTileTitle, title, children: title }),
|
|
13370
|
+
/* @__PURE__ */ jsxs40(
|
|
13210
13371
|
Button,
|
|
13211
13372
|
{
|
|
13212
13373
|
buttonType: "tertiary",
|
|
@@ -13216,23 +13377,23 @@ var CreateTeamIntegrationTile = ({
|
|
|
13216
13377
|
css: IntegrationTitleFakeButton,
|
|
13217
13378
|
children: [
|
|
13218
13379
|
buttonText,
|
|
13219
|
-
asDeepLink ? /* @__PURE__ */
|
|
13380
|
+
asDeepLink ? /* @__PURE__ */ jsx63(
|
|
13220
13381
|
Icon,
|
|
13221
13382
|
{
|
|
13222
13383
|
icon: CgChevronRight2,
|
|
13223
13384
|
iconColor: "currentColor",
|
|
13224
13385
|
size: 20,
|
|
13225
|
-
css:
|
|
13386
|
+
css: css52`
|
|
13226
13387
|
order: 1;
|
|
13227
13388
|
`
|
|
13228
13389
|
}
|
|
13229
|
-
) : /* @__PURE__ */
|
|
13390
|
+
) : /* @__PURE__ */ jsx63(
|
|
13230
13391
|
Icon,
|
|
13231
13392
|
{
|
|
13232
13393
|
icon: CgAdd2,
|
|
13233
13394
|
iconColor: "currentColor",
|
|
13234
13395
|
size: 16,
|
|
13235
|
-
css:
|
|
13396
|
+
css: css52`
|
|
13236
13397
|
order: -1;
|
|
13237
13398
|
`
|
|
13238
13399
|
}
|
|
@@ -13245,31 +13406,31 @@ var CreateTeamIntegrationTile = ({
|
|
|
13245
13406
|
|
|
13246
13407
|
// src/components/Tiles/IntegrationBadges.tsx
|
|
13247
13408
|
import { CgCheck as CgCheck2, CgLock, CgSandClock } from "react-icons/cg";
|
|
13248
|
-
import { jsx as
|
|
13409
|
+
import { jsx as jsx64, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
13249
13410
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
13250
|
-
return /* @__PURE__ */
|
|
13251
|
-
/* @__PURE__ */
|
|
13411
|
+
return /* @__PURE__ */ jsxs41("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
13412
|
+
/* @__PURE__ */ jsx64(Icon, { icon: CgCheck2, iconColor: "currentColor" }),
|
|
13252
13413
|
text
|
|
13253
13414
|
] });
|
|
13254
13415
|
};
|
|
13255
13416
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
13256
|
-
return /* @__PURE__ */
|
|
13417
|
+
return /* @__PURE__ */ jsx64("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
13257
13418
|
};
|
|
13258
13419
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
13259
|
-
return /* @__PURE__ */
|
|
13260
|
-
/* @__PURE__ */
|
|
13420
|
+
return /* @__PURE__ */ jsxs41("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
13421
|
+
/* @__PURE__ */ jsx64(Icon, { icon: CgLock, iconColor: "currentColor", size: 12 }),
|
|
13261
13422
|
text
|
|
13262
13423
|
] });
|
|
13263
13424
|
};
|
|
13264
13425
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
13265
|
-
return /* @__PURE__ */
|
|
13266
|
-
/* @__PURE__ */
|
|
13426
|
+
return /* @__PURE__ */ jsxs41("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
13427
|
+
/* @__PURE__ */ jsx64(Icon, { icon: CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
13267
13428
|
text
|
|
13268
13429
|
] });
|
|
13269
13430
|
};
|
|
13270
13431
|
|
|
13271
13432
|
// src/components/Tiles/ResolveIcon.tsx
|
|
13272
|
-
import { jsx as
|
|
13433
|
+
import { jsx as jsx65 } from "@emotion/react/jsx-runtime";
|
|
13273
13434
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
13274
13435
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
13275
13436
|
const mapClassName = {
|
|
@@ -13277,13 +13438,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
13277
13438
|
logo: IntegrationTitleLogo
|
|
13278
13439
|
};
|
|
13279
13440
|
if (icon) {
|
|
13280
|
-
return CompIcon ? /* @__PURE__ */
|
|
13441
|
+
return CompIcon ? /* @__PURE__ */ jsx65(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ jsx65("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
13281
13442
|
}
|
|
13282
13443
|
return null;
|
|
13283
13444
|
};
|
|
13284
13445
|
|
|
13285
13446
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
13286
|
-
import { jsx as
|
|
13447
|
+
import { jsx as jsx66, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
13287
13448
|
var EditTeamIntegrationTile = ({
|
|
13288
13449
|
id,
|
|
13289
13450
|
icon,
|
|
@@ -13292,17 +13453,17 @@ var EditTeamIntegrationTile = ({
|
|
|
13292
13453
|
isPublic,
|
|
13293
13454
|
canEdit = false
|
|
13294
13455
|
}) => {
|
|
13295
|
-
return /* @__PURE__ */
|
|
13456
|
+
return /* @__PURE__ */ jsxs42(
|
|
13296
13457
|
"div",
|
|
13297
13458
|
{
|
|
13298
13459
|
css: IntegrationTileContainer,
|
|
13299
13460
|
"data-testid": "configure-integration-container",
|
|
13300
13461
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
13301
13462
|
children: [
|
|
13302
|
-
/* @__PURE__ */
|
|
13303
|
-
/* @__PURE__ */
|
|
13304
|
-
!isPublic ? /* @__PURE__ */
|
|
13305
|
-
canEdit ? /* @__PURE__ */
|
|
13463
|
+
/* @__PURE__ */ jsx66(ResolveIcon, { icon, name, "data-test-id": "integration-logo" }),
|
|
13464
|
+
/* @__PURE__ */ jsx66("span", { css: IntegrationTileName, "data-test-id": "integration-card-name", children: name }),
|
|
13465
|
+
!isPublic ? /* @__PURE__ */ jsx66(IntegrationCustomBadge, {}) : null,
|
|
13466
|
+
canEdit ? /* @__PURE__ */ jsx66(
|
|
13306
13467
|
Button,
|
|
13307
13468
|
{
|
|
13308
13469
|
buttonType: "unimportant",
|
|
@@ -13320,10 +13481,10 @@ var EditTeamIntegrationTile = ({
|
|
|
13320
13481
|
};
|
|
13321
13482
|
|
|
13322
13483
|
// src/components/Tiles/IntegrationComingSoon.tsx
|
|
13323
|
-
import { css as
|
|
13324
|
-
import { useEffect as
|
|
13484
|
+
import { css as css53 } from "@emotion/react";
|
|
13485
|
+
import { useEffect as useEffect8, useState as useState6 } from "react";
|
|
13325
13486
|
import { CgHeart } from "react-icons/cg";
|
|
13326
|
-
import { jsx as
|
|
13487
|
+
import { jsx as jsx67, jsxs as jsxs43 } from "@emotion/react/jsx-runtime";
|
|
13327
13488
|
var IntegrationComingSoon = ({
|
|
13328
13489
|
name,
|
|
13329
13490
|
icon,
|
|
@@ -13337,7 +13498,7 @@ var IntegrationComingSoon = ({
|
|
|
13337
13498
|
setUpVote((prev) => !prev);
|
|
13338
13499
|
onUpVoteClick();
|
|
13339
13500
|
};
|
|
13340
|
-
|
|
13501
|
+
useEffect8(() => {
|
|
13341
13502
|
if (upVote) {
|
|
13342
13503
|
const timer = setTimeout(() => setUpVote(false), timing);
|
|
13343
13504
|
return () => {
|
|
@@ -13345,17 +13506,17 @@ var IntegrationComingSoon = ({
|
|
|
13345
13506
|
};
|
|
13346
13507
|
}
|
|
13347
13508
|
}, [upVote, setUpVote, timing]);
|
|
13348
|
-
return /* @__PURE__ */
|
|
13509
|
+
return /* @__PURE__ */ jsxs43(
|
|
13349
13510
|
"div",
|
|
13350
13511
|
{
|
|
13351
13512
|
css: IntegrationTileContainer,
|
|
13352
13513
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
13353
13514
|
...props,
|
|
13354
13515
|
children: [
|
|
13355
|
-
/* @__PURE__ */
|
|
13356
|
-
/* @__PURE__ */
|
|
13357
|
-
/* @__PURE__ */
|
|
13358
|
-
/* @__PURE__ */
|
|
13516
|
+
/* @__PURE__ */ jsx67(IntegrationComingSoonBadge, {}),
|
|
13517
|
+
/* @__PURE__ */ jsx67(ResolveIcon, { icon, name }),
|
|
13518
|
+
/* @__PURE__ */ jsx67("span", { css: IntegrationTileName, title: name, children: name }),
|
|
13519
|
+
/* @__PURE__ */ jsxs43(
|
|
13359
13520
|
Button,
|
|
13360
13521
|
{
|
|
13361
13522
|
buttonType: "unimportant",
|
|
@@ -13365,19 +13526,19 @@ var IntegrationComingSoon = ({
|
|
|
13365
13526
|
role: "link",
|
|
13366
13527
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
13367
13528
|
children: [
|
|
13368
|
-
/* @__PURE__ */
|
|
13369
|
-
/* @__PURE__ */
|
|
13529
|
+
/* @__PURE__ */ jsx67("strong", { children: "+1" }),
|
|
13530
|
+
/* @__PURE__ */ jsx67(
|
|
13370
13531
|
"span",
|
|
13371
13532
|
{
|
|
13372
|
-
css:
|
|
13533
|
+
css: css53`
|
|
13373
13534
|
text-transform: uppercase;
|
|
13374
13535
|
color: var(--gray-500);
|
|
13375
13536
|
`,
|
|
13376
13537
|
children: "(I want this)"
|
|
13377
13538
|
}
|
|
13378
13539
|
),
|
|
13379
|
-
/* @__PURE__ */
|
|
13380
|
-
/* @__PURE__ */
|
|
13540
|
+
/* @__PURE__ */ jsxs43("span", { "aria-hidden": !upVote, children: [
|
|
13541
|
+
/* @__PURE__ */ jsx67(Icon, { icon: CgHeart, iconColor: "currentColor", size: 18 }),
|
|
13381
13542
|
"Thanks!"
|
|
13382
13543
|
] })
|
|
13383
13544
|
]
|
|
@@ -13389,8 +13550,8 @@ var IntegrationComingSoon = ({
|
|
|
13389
13550
|
};
|
|
13390
13551
|
|
|
13391
13552
|
// src/components/Tiles/styles/IntegrationLoadingTile.styles.ts
|
|
13392
|
-
import { css as
|
|
13393
|
-
var IntegrationLoadingTileContainer =
|
|
13553
|
+
import { css as css54 } from "@emotion/react";
|
|
13554
|
+
var IntegrationLoadingTileContainer = css54`
|
|
13394
13555
|
align-items: center;
|
|
13395
13556
|
box-sizing: border-box;
|
|
13396
13557
|
border-radius: var(--rounded-base);
|
|
@@ -13417,39 +13578,39 @@ var IntegrationLoadingTileContainer = css51`
|
|
|
13417
13578
|
}
|
|
13418
13579
|
}
|
|
13419
13580
|
`;
|
|
13420
|
-
var IntegrationLoadingTileImg =
|
|
13581
|
+
var IntegrationLoadingTileImg = css54`
|
|
13421
13582
|
width: 10rem;
|
|
13422
13583
|
height: 4rem;
|
|
13423
13584
|
margin: 0 auto;
|
|
13424
13585
|
`;
|
|
13425
|
-
var IntegrationLoadingTileText =
|
|
13586
|
+
var IntegrationLoadingTileText = css54`
|
|
13426
13587
|
width: 5rem;
|
|
13427
13588
|
height: var(--spacing-sm);
|
|
13428
13589
|
margin: var(--spacing-sm) 0;
|
|
13429
13590
|
`;
|
|
13430
|
-
var IntegrationLoadingFrame =
|
|
13591
|
+
var IntegrationLoadingFrame = css54`
|
|
13431
13592
|
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
13432
13593
|
border-radius: var(--rounded-base);
|
|
13433
13594
|
`;
|
|
13434
13595
|
|
|
13435
13596
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
13436
|
-
import { Fragment as Fragment7, jsx as
|
|
13597
|
+
import { Fragment as Fragment7, jsx as jsx68, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
13437
13598
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
13438
13599
|
const componentCount = Array.from(Array(count).keys());
|
|
13439
|
-
return /* @__PURE__ */
|
|
13440
|
-
/* @__PURE__ */
|
|
13441
|
-
/* @__PURE__ */
|
|
13600
|
+
return /* @__PURE__ */ jsx68(Fragment7, { children: componentCount.map((i) => /* @__PURE__ */ jsxs44("div", { css: IntegrationLoadingTileContainer, children: [
|
|
13601
|
+
/* @__PURE__ */ jsx68("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
13602
|
+
/* @__PURE__ */ jsx68("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
13442
13603
|
] }, i)) });
|
|
13443
13604
|
};
|
|
13444
13605
|
|
|
13445
13606
|
// src/components/Tiles/styles/IntegrationModalIcon.styles.ts
|
|
13446
|
-
import { css as
|
|
13447
|
-
var IntegrationModalIconContainer =
|
|
13607
|
+
import { css as css55 } from "@emotion/react";
|
|
13608
|
+
var IntegrationModalIconContainer = css55`
|
|
13448
13609
|
position: relative;
|
|
13449
13610
|
width: 50px;
|
|
13450
13611
|
margin-bottom: var(--spacing-base);
|
|
13451
13612
|
`;
|
|
13452
|
-
var IntegrationModalImage =
|
|
13613
|
+
var IntegrationModalImage = css55`
|
|
13453
13614
|
position: absolute;
|
|
13454
13615
|
inset: 0;
|
|
13455
13616
|
margin: auto;
|
|
@@ -13458,7 +13619,7 @@ var IntegrationModalImage = css52`
|
|
|
13458
13619
|
`;
|
|
13459
13620
|
|
|
13460
13621
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
13461
|
-
import { jsx as
|
|
13622
|
+
import { jsx as jsx69, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
|
|
13462
13623
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
13463
13624
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
13464
13625
|
let iconSrc = void 0;
|
|
@@ -13471,9 +13632,9 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
13471
13632
|
} catch (e) {
|
|
13472
13633
|
}
|
|
13473
13634
|
}
|
|
13474
|
-
return /* @__PURE__ */
|
|
13475
|
-
/* @__PURE__ */
|
|
13476
|
-
/* @__PURE__ */
|
|
13635
|
+
return /* @__PURE__ */ jsxs45("div", { css: IntegrationModalIconContainer, children: [
|
|
13636
|
+
/* @__PURE__ */ jsxs45("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
13637
|
+
/* @__PURE__ */ jsx69(
|
|
13477
13638
|
"path",
|
|
13478
13639
|
{
|
|
13479
13640
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -13482,12 +13643,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
13482
13643
|
strokeWidth: "2"
|
|
13483
13644
|
}
|
|
13484
13645
|
),
|
|
13485
|
-
/* @__PURE__ */
|
|
13486
|
-
/* @__PURE__ */
|
|
13487
|
-
/* @__PURE__ */
|
|
13646
|
+
/* @__PURE__ */ jsx69("defs", { children: /* @__PURE__ */ jsxs45("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
13647
|
+
/* @__PURE__ */ jsx69("stop", { stopColor: "#1768B2" }),
|
|
13648
|
+
/* @__PURE__ */ jsx69("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
13488
13649
|
] }) })
|
|
13489
13650
|
] }),
|
|
13490
|
-
CompIcon ? /* @__PURE__ */
|
|
13651
|
+
CompIcon ? /* @__PURE__ */ jsx69(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : /* @__PURE__ */ jsx69(
|
|
13491
13652
|
"img",
|
|
13492
13653
|
{
|
|
13493
13654
|
src: iconSrc,
|
|
@@ -13501,7 +13662,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
13501
13662
|
};
|
|
13502
13663
|
|
|
13503
13664
|
// src/components/Tiles/IntegrationTile.tsx
|
|
13504
|
-
import { jsx as
|
|
13665
|
+
import { jsx as jsx70, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
13505
13666
|
var IntegrationTile = ({
|
|
13506
13667
|
id,
|
|
13507
13668
|
icon,
|
|
@@ -13513,7 +13674,7 @@ var IntegrationTile = ({
|
|
|
13513
13674
|
authorIcon,
|
|
13514
13675
|
...btnProps
|
|
13515
13676
|
}) => {
|
|
13516
|
-
return /* @__PURE__ */
|
|
13677
|
+
return /* @__PURE__ */ jsxs46(
|
|
13517
13678
|
"button",
|
|
13518
13679
|
{
|
|
13519
13680
|
type: "button",
|
|
@@ -13523,70 +13684,70 @@ var IntegrationTile = ({
|
|
|
13523
13684
|
"aria-label": name,
|
|
13524
13685
|
...btnProps,
|
|
13525
13686
|
children: [
|
|
13526
|
-
/* @__PURE__ */
|
|
13527
|
-
/* @__PURE__ */
|
|
13528
|
-
isInstalled ? /* @__PURE__ */
|
|
13529
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */
|
|
13530
|
-
!isPublic ? /* @__PURE__ */
|
|
13531
|
-
authorIcon ? /* @__PURE__ */
|
|
13687
|
+
/* @__PURE__ */ jsx70(ResolveIcon, { icon, name }),
|
|
13688
|
+
/* @__PURE__ */ jsx70("span", { css: IntegrationTileName, title: name, children: name }),
|
|
13689
|
+
isInstalled ? /* @__PURE__ */ jsx70(IntegrationedAddedBadge, {}) : null,
|
|
13690
|
+
requiedEntitlement && isPublic ? /* @__PURE__ */ jsx70(IntegrationPremiumBadge, {}) : null,
|
|
13691
|
+
!isPublic ? /* @__PURE__ */ jsx70(IntegrationCustomBadge, {}) : null,
|
|
13692
|
+
authorIcon ? /* @__PURE__ */ jsx70(ResolveIcon, { icon: authorIcon, name }) : null
|
|
13532
13693
|
]
|
|
13533
13694
|
}
|
|
13534
13695
|
);
|
|
13535
13696
|
};
|
|
13536
13697
|
|
|
13537
13698
|
// src/components/Tiles/styles/TileContainer.styles.ts
|
|
13538
|
-
import { css as
|
|
13539
|
-
var TileContainerWrapper =
|
|
13699
|
+
import { css as css56 } from "@emotion/react";
|
|
13700
|
+
var TileContainerWrapper = css56`
|
|
13540
13701
|
background: var(--brand-secondary-2);
|
|
13541
13702
|
padding: var(--spacing-base);
|
|
13542
13703
|
margin-bottom: var(--spacing-lg);
|
|
13543
13704
|
`;
|
|
13544
|
-
var TileContainerInner =
|
|
13705
|
+
var TileContainerInner = css56`
|
|
13545
13706
|
display: grid;
|
|
13546
13707
|
grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
|
|
13547
13708
|
gap: var(--spacing-base);
|
|
13548
13709
|
`;
|
|
13549
13710
|
|
|
13550
13711
|
// src/components/Tiles/TileContainer.tsx
|
|
13551
|
-
import { jsx as
|
|
13712
|
+
import { jsx as jsx71 } from "@emotion/react/jsx-runtime";
|
|
13552
13713
|
var TileContainer = ({ children, ...props }) => {
|
|
13553
|
-
return /* @__PURE__ */
|
|
13714
|
+
return /* @__PURE__ */ jsx71("div", { css: TileContainerWrapper, ...props, children: /* @__PURE__ */ jsx71("div", { css: TileContainerInner, children }) });
|
|
13554
13715
|
};
|
|
13555
13716
|
|
|
13556
13717
|
// src/components/Modal/IntegrationModalHeader.styles.ts
|
|
13557
|
-
import { css as
|
|
13558
|
-
var IntegrationModalHeaderSVGBackground =
|
|
13718
|
+
import { css as css57 } from "@emotion/react";
|
|
13719
|
+
var IntegrationModalHeaderSVGBackground = css57`
|
|
13559
13720
|
position: absolute;
|
|
13560
13721
|
top: 0;
|
|
13561
13722
|
left: 0;
|
|
13562
13723
|
`;
|
|
13563
|
-
var IntegrationModalHeaderGroup =
|
|
13724
|
+
var IntegrationModalHeaderGroup = css57`
|
|
13564
13725
|
align-items: center;
|
|
13565
13726
|
display: flex;
|
|
13566
13727
|
gap: var(--spacing-sm);
|
|
13567
13728
|
margin: 0 0 var(--spacing-md);
|
|
13568
13729
|
position: relative;
|
|
13569
13730
|
`;
|
|
13570
|
-
var IntegrationModalHeaderTitleGroup =
|
|
13731
|
+
var IntegrationModalHeaderTitleGroup = css57`
|
|
13571
13732
|
align-items: center;
|
|
13572
13733
|
display: flex;
|
|
13573
13734
|
gap: var(--spacing-base);
|
|
13574
13735
|
`;
|
|
13575
|
-
var IntegrationModalHeaderTitle =
|
|
13736
|
+
var IntegrationModalHeaderTitle = css57`
|
|
13576
13737
|
margin-top: 0;
|
|
13577
13738
|
`;
|
|
13578
|
-
var IntegrationModalHeaderMenuPlacement =
|
|
13739
|
+
var IntegrationModalHeaderMenuPlacement = css57`
|
|
13579
13740
|
margin-bottom: var(--spacing-base);
|
|
13580
13741
|
`;
|
|
13581
|
-
var IntegrationModalHeaderContentWrapper =
|
|
13742
|
+
var IntegrationModalHeaderContentWrapper = css57`
|
|
13582
13743
|
position: relative;
|
|
13583
13744
|
z-index: var(--z-10);
|
|
13584
13745
|
`;
|
|
13585
13746
|
|
|
13586
13747
|
// src/components/Modal/IntegrationModalHeader.tsx
|
|
13587
|
-
import { Fragment as Fragment8, jsx as
|
|
13748
|
+
import { Fragment as Fragment8, jsx as jsx72, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
13588
13749
|
var HexModalBackground = ({ ...props }) => {
|
|
13589
|
-
return /* @__PURE__ */
|
|
13750
|
+
return /* @__PURE__ */ jsxs47(
|
|
13590
13751
|
"svg",
|
|
13591
13752
|
{
|
|
13592
13753
|
width: "236",
|
|
@@ -13596,7 +13757,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13596
13757
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13597
13758
|
...props,
|
|
13598
13759
|
children: [
|
|
13599
|
-
/* @__PURE__ */
|
|
13760
|
+
/* @__PURE__ */ jsx72(
|
|
13600
13761
|
"path",
|
|
13601
13762
|
{
|
|
13602
13763
|
fillRule: "evenodd",
|
|
@@ -13605,7 +13766,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13605
13766
|
fill: "url(#paint0_linear_196_2737)"
|
|
13606
13767
|
}
|
|
13607
13768
|
),
|
|
13608
|
-
/* @__PURE__ */
|
|
13769
|
+
/* @__PURE__ */ jsx72("defs", { children: /* @__PURE__ */ jsxs47(
|
|
13609
13770
|
"linearGradient",
|
|
13610
13771
|
{
|
|
13611
13772
|
id: "paint0_linear_196_2737",
|
|
@@ -13615,8 +13776,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13615
13776
|
y2: "-95.2742",
|
|
13616
13777
|
gradientUnits: "userSpaceOnUse",
|
|
13617
13778
|
children: [
|
|
13618
|
-
/* @__PURE__ */
|
|
13619
|
-
/* @__PURE__ */
|
|
13779
|
+
/* @__PURE__ */ jsx72("stop", { stopColor: "#81DCDE" }),
|
|
13780
|
+
/* @__PURE__ */ jsx72("stop", { offset: "1", stopColor: "#428ED4" })
|
|
13620
13781
|
]
|
|
13621
13782
|
}
|
|
13622
13783
|
) })
|
|
@@ -13625,17 +13786,17 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13625
13786
|
);
|
|
13626
13787
|
};
|
|
13627
13788
|
var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
13628
|
-
return /* @__PURE__ */
|
|
13629
|
-
/* @__PURE__ */
|
|
13630
|
-
/* @__PURE__ */
|
|
13631
|
-
icon ? /* @__PURE__ */
|
|
13632
|
-
/* @__PURE__ */
|
|
13633
|
-
menu2 ? /* @__PURE__ */
|
|
13789
|
+
return /* @__PURE__ */ jsxs47(Fragment8, { children: [
|
|
13790
|
+
/* @__PURE__ */ jsx72(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
13791
|
+
/* @__PURE__ */ jsx72("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs47("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
13792
|
+
icon ? /* @__PURE__ */ jsx72(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
13793
|
+
/* @__PURE__ */ jsx72(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-test-id": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
13794
|
+
menu2 ? /* @__PURE__ */ jsxs47("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
13634
13795
|
menu2,
|
|
13635
13796
|
" "
|
|
13636
13797
|
] }) : null
|
|
13637
13798
|
] }) }),
|
|
13638
|
-
/* @__PURE__ */
|
|
13799
|
+
/* @__PURE__ */ jsx72("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
13639
13800
|
] });
|
|
13640
13801
|
};
|
|
13641
13802
|
|
|
@@ -13649,8 +13810,8 @@ import {
|
|
|
13649
13810
|
} from "reakit/Tooltip";
|
|
13650
13811
|
|
|
13651
13812
|
// src/components/Tooltip/Tooltip.styles.ts
|
|
13652
|
-
import { css as
|
|
13653
|
-
var TooltipContainer =
|
|
13813
|
+
import { css as css58 } from "@emotion/react";
|
|
13814
|
+
var TooltipContainer = css58`
|
|
13654
13815
|
border: 2px solid var(--gray-300);
|
|
13655
13816
|
border-radius: var(--rounded-base);
|
|
13656
13817
|
padding: var(--spacing-xs) var(--spacing-sm);
|
|
@@ -13658,28 +13819,28 @@ var TooltipContainer = css55`
|
|
|
13658
13819
|
font-size: var(--fs-xs);
|
|
13659
13820
|
background: var(--white);
|
|
13660
13821
|
`;
|
|
13661
|
-
var TooltipArrowStyles =
|
|
13822
|
+
var TooltipArrowStyles = css58`
|
|
13662
13823
|
svg {
|
|
13663
13824
|
fill: var(--gray-300);
|
|
13664
13825
|
}
|
|
13665
13826
|
`;
|
|
13666
13827
|
|
|
13667
13828
|
// src/components/Tooltip/Tooltip.tsx
|
|
13668
|
-
import { Fragment as Fragment9, jsx as
|
|
13829
|
+
import { Fragment as Fragment9, jsx as jsx73, jsxs as jsxs48 } from "@emotion/react/jsx-runtime";
|
|
13669
13830
|
function Tooltip({ children, title, placement = "bottom", visible, ...props }) {
|
|
13670
13831
|
const tooltip = useTooltipState({ placement });
|
|
13671
|
-
return !title ? children : /* @__PURE__ */
|
|
13672
|
-
/* @__PURE__ */
|
|
13673
|
-
/* @__PURE__ */
|
|
13674
|
-
/* @__PURE__ */
|
|
13832
|
+
return !title ? children : /* @__PURE__ */ jsxs48(Fragment9, { children: [
|
|
13833
|
+
/* @__PURE__ */ jsx73(TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => React15.cloneElement(children, referenceProps) }),
|
|
13834
|
+
/* @__PURE__ */ jsxs48(ReakitTooltip, { ...tooltip, ...props, css: TooltipContainer, visible: visible != null ? visible : tooltip.visible, children: [
|
|
13835
|
+
/* @__PURE__ */ jsx73(TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
|
|
13675
13836
|
title
|
|
13676
13837
|
] })
|
|
13677
13838
|
] });
|
|
13678
13839
|
}
|
|
13679
13840
|
|
|
13680
13841
|
// src/components/ParameterInputs/styles/ParameterBindingButton.styles.ts
|
|
13681
|
-
import { css as
|
|
13682
|
-
var inputIconBtn =
|
|
13842
|
+
import { css as css59 } from "@emotion/react";
|
|
13843
|
+
var inputIconBtn = css59`
|
|
13683
13844
|
align-items: center;
|
|
13684
13845
|
border: none;
|
|
13685
13846
|
border-radius: var(--rounded-base);
|
|
@@ -13702,7 +13863,7 @@ var inputIconBtn = css56`
|
|
|
13702
13863
|
`;
|
|
13703
13864
|
|
|
13704
13865
|
// src/components/ParameterInputs/ConnectToDataElementButton.tsx
|
|
13705
|
-
import { jsx as
|
|
13866
|
+
import { jsx as jsx74, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
13706
13867
|
var ConnectToDataElementButton = ({
|
|
13707
13868
|
icon,
|
|
13708
13869
|
iconColor,
|
|
@@ -13712,7 +13873,7 @@ var ConnectToDataElementButton = ({
|
|
|
13712
13873
|
...props
|
|
13713
13874
|
}) => {
|
|
13714
13875
|
const title = isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
13715
|
-
return /* @__PURE__ */
|
|
13876
|
+
return /* @__PURE__ */ jsx74(Tooltip, { title, children: /* @__PURE__ */ jsxs49(
|
|
13716
13877
|
"button",
|
|
13717
13878
|
{
|
|
13718
13879
|
css: inputIconBtn,
|
|
@@ -13721,7 +13882,7 @@ var ConnectToDataElementButton = ({
|
|
|
13721
13882
|
"aria-disabled": isLocked,
|
|
13722
13883
|
...props,
|
|
13723
13884
|
children: [
|
|
13724
|
-
/* @__PURE__ */
|
|
13885
|
+
/* @__PURE__ */ jsx74(
|
|
13725
13886
|
Icon,
|
|
13726
13887
|
{
|
|
13727
13888
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -13757,8 +13918,8 @@ var useParameterShell = () => {
|
|
|
13757
13918
|
};
|
|
13758
13919
|
|
|
13759
13920
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
13760
|
-
import { css as
|
|
13761
|
-
var inputContainer2 =
|
|
13921
|
+
import { css as css60 } from "@emotion/react";
|
|
13922
|
+
var inputContainer2 = css60`
|
|
13762
13923
|
position: relative;
|
|
13763
13924
|
|
|
13764
13925
|
&:hover,
|
|
@@ -13770,14 +13931,14 @@ var inputContainer2 = css57`
|
|
|
13770
13931
|
}
|
|
13771
13932
|
}
|
|
13772
13933
|
`;
|
|
13773
|
-
var labelText2 =
|
|
13934
|
+
var labelText2 = css60`
|
|
13774
13935
|
align-items: center;
|
|
13775
13936
|
display: flex;
|
|
13776
13937
|
gap: var(--spacing-xs);
|
|
13777
13938
|
font-weight: var(--fw-regular);
|
|
13778
13939
|
margin: 0 0 var(--spacing-xs);
|
|
13779
13940
|
`;
|
|
13780
|
-
var input2 =
|
|
13941
|
+
var input2 = css60`
|
|
13781
13942
|
display: block;
|
|
13782
13943
|
appearance: none;
|
|
13783
13944
|
box-sizing: border-box;
|
|
@@ -13821,18 +13982,18 @@ var input2 = css57`
|
|
|
13821
13982
|
color: var(--gray-400);
|
|
13822
13983
|
}
|
|
13823
13984
|
`;
|
|
13824
|
-
var selectInput =
|
|
13985
|
+
var selectInput = css60`
|
|
13825
13986
|
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");
|
|
13826
13987
|
background-position: right var(--spacing-sm) center;
|
|
13827
13988
|
background-repeat: no-repeat;
|
|
13828
13989
|
background-size: 1rem;
|
|
13829
13990
|
padding-right: var(--spacing-xl);
|
|
13830
13991
|
`;
|
|
13831
|
-
var inputWrapper =
|
|
13992
|
+
var inputWrapper = css60`
|
|
13832
13993
|
display: flex; // used to correct overflow with chrome textarea
|
|
13833
13994
|
position: relative;
|
|
13834
13995
|
`;
|
|
13835
|
-
var inputIcon2 =
|
|
13996
|
+
var inputIcon2 = css60`
|
|
13836
13997
|
align-items: center;
|
|
13837
13998
|
background: var(--white);
|
|
13838
13999
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -13848,7 +14009,7 @@ var inputIcon2 = css57`
|
|
|
13848
14009
|
width: var(--spacing-lg);
|
|
13849
14010
|
z-index: var(--z-10);
|
|
13850
14011
|
`;
|
|
13851
|
-
var inputToggleLabel2 =
|
|
14012
|
+
var inputToggleLabel2 = css60`
|
|
13852
14013
|
align-items: center;
|
|
13853
14014
|
background: var(--white);
|
|
13854
14015
|
cursor: pointer;
|
|
@@ -13859,7 +14020,7 @@ var inputToggleLabel2 = css57`
|
|
|
13859
14020
|
min-height: var(--spacing-md);
|
|
13860
14021
|
position: relative;
|
|
13861
14022
|
`;
|
|
13862
|
-
var toggleInput2 =
|
|
14023
|
+
var toggleInput2 = css60`
|
|
13863
14024
|
appearance: none;
|
|
13864
14025
|
border: 1px solid var(--gray-300);
|
|
13865
14026
|
background: var(--white);
|
|
@@ -13898,7 +14059,7 @@ var toggleInput2 = css57`
|
|
|
13898
14059
|
border-color: var(--gray-300);
|
|
13899
14060
|
}
|
|
13900
14061
|
`;
|
|
13901
|
-
var inlineLabel2 =
|
|
14062
|
+
var inlineLabel2 = css60`
|
|
13902
14063
|
padding-left: var(--spacing-lg);
|
|
13903
14064
|
font-size: var(--fs-sm);
|
|
13904
14065
|
font-weight: var(--fw-regular);
|
|
@@ -13914,7 +14075,7 @@ var inlineLabel2 = css57`
|
|
|
13914
14075
|
}
|
|
13915
14076
|
}
|
|
13916
14077
|
`;
|
|
13917
|
-
var inputMenu =
|
|
14078
|
+
var inputMenu = css60`
|
|
13918
14079
|
background: none;
|
|
13919
14080
|
border: none;
|
|
13920
14081
|
padding: var(--spacing-2xs);
|
|
@@ -13930,14 +14091,14 @@ var inputMenu = css57`
|
|
|
13930
14091
|
background-color: var(--gray-200);
|
|
13931
14092
|
}
|
|
13932
14093
|
`;
|
|
13933
|
-
var textarea2 =
|
|
14094
|
+
var textarea2 = css60`
|
|
13934
14095
|
resize: vertical;
|
|
13935
14096
|
min-height: 2rem;
|
|
13936
14097
|
`;
|
|
13937
|
-
var imageWrapper =
|
|
14098
|
+
var imageWrapper = css60`
|
|
13938
14099
|
background: var(--white);
|
|
13939
14100
|
`;
|
|
13940
|
-
var img =
|
|
14101
|
+
var img = css60`
|
|
13941
14102
|
animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
13942
14103
|
object-fit: contain;
|
|
13943
14104
|
max-width: 100%;
|
|
@@ -13945,7 +14106,7 @@ var img = css57`
|
|
|
13945
14106
|
opacity: var(--opacity-0);
|
|
13946
14107
|
margin: var(--spacing-sm) auto 0;
|
|
13947
14108
|
`;
|
|
13948
|
-
var dataConnectButton =
|
|
14109
|
+
var dataConnectButton = css60`
|
|
13949
14110
|
align-items: center;
|
|
13950
14111
|
appearance: none;
|
|
13951
14112
|
box-sizing: border-box;
|
|
@@ -13980,7 +14141,7 @@ var dataConnectButton = css57`
|
|
|
13980
14141
|
pointer-events: none;
|
|
13981
14142
|
}
|
|
13982
14143
|
`;
|
|
13983
|
-
var linkParameterBtn =
|
|
14144
|
+
var linkParameterBtn = css60`
|
|
13984
14145
|
border-radius: var(--rounded-base);
|
|
13985
14146
|
background: var(--white);
|
|
13986
14147
|
border: none;
|
|
@@ -13992,10 +14153,10 @@ var linkParameterBtn = css57`
|
|
|
13992
14153
|
inset: 0 var(--spacing-base) 0 auto;
|
|
13993
14154
|
padding: 0 var(--spacing-base);
|
|
13994
14155
|
`;
|
|
13995
|
-
var linkParameterInput =
|
|
14156
|
+
var linkParameterInput = css60`
|
|
13996
14157
|
padding-right: calc(var(--spacing-2xl) + var(--spacing-base));
|
|
13997
14158
|
`;
|
|
13998
|
-
var linkParameterIcon =
|
|
14159
|
+
var linkParameterIcon = css60`
|
|
13999
14160
|
align-items: center;
|
|
14000
14161
|
color: var(--brand-secondary-3);
|
|
14001
14162
|
display: flex;
|
|
@@ -14010,7 +14171,7 @@ var linkParameterIcon = css57`
|
|
|
14010
14171
|
`;
|
|
14011
14172
|
|
|
14012
14173
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
14013
|
-
import { jsx as
|
|
14174
|
+
import { jsx as jsx75, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
14014
14175
|
function ParameterDataResource({
|
|
14015
14176
|
label,
|
|
14016
14177
|
labelLeadingIcon,
|
|
@@ -14020,12 +14181,12 @@ function ParameterDataResource({
|
|
|
14020
14181
|
disabled,
|
|
14021
14182
|
children
|
|
14022
14183
|
}) {
|
|
14023
|
-
return /* @__PURE__ */
|
|
14024
|
-
/* @__PURE__ */
|
|
14184
|
+
return /* @__PURE__ */ jsxs50("div", { "data-testid": "parameter-data-connect-button", children: [
|
|
14185
|
+
/* @__PURE__ */ jsxs50("span", { css: labelText2, children: [
|
|
14025
14186
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
14026
14187
|
label
|
|
14027
14188
|
] }),
|
|
14028
|
-
/* @__PURE__ */
|
|
14189
|
+
/* @__PURE__ */ jsxs50(
|
|
14029
14190
|
"button",
|
|
14030
14191
|
{
|
|
14031
14192
|
type: "button",
|
|
@@ -14034,30 +14195,30 @@ function ParameterDataResource({
|
|
|
14034
14195
|
disabled,
|
|
14035
14196
|
onClick: onConnectDatasource,
|
|
14036
14197
|
children: [
|
|
14037
|
-
/* @__PURE__ */
|
|
14198
|
+
/* @__PURE__ */ jsx75("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx75(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
14038
14199
|
children
|
|
14039
14200
|
]
|
|
14040
14201
|
}
|
|
14041
14202
|
),
|
|
14042
|
-
caption ? /* @__PURE__ */
|
|
14203
|
+
caption ? /* @__PURE__ */ jsx75(Caption, { children: caption }) : null
|
|
14043
14204
|
] });
|
|
14044
14205
|
}
|
|
14045
14206
|
|
|
14046
14207
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
14047
|
-
import { css as
|
|
14048
|
-
var ParameterDrawerHeaderContainer =
|
|
14208
|
+
import { css as css61 } from "@emotion/react";
|
|
14209
|
+
var ParameterDrawerHeaderContainer = css61`
|
|
14049
14210
|
align-items: center;
|
|
14050
14211
|
display: flex;
|
|
14051
14212
|
gap: var(--spacing-base);
|
|
14052
14213
|
justify-content: space-between;
|
|
14053
14214
|
margin-bottom: var(--spacing-sm);
|
|
14054
14215
|
`;
|
|
14055
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
14216
|
+
var ParameterDrawerHeaderTitleGroup = css61`
|
|
14056
14217
|
align-items: center;
|
|
14057
14218
|
display: flex;
|
|
14058
14219
|
gap: var(--spacing-sm);
|
|
14059
14220
|
`;
|
|
14060
|
-
var ParameterDrawerHeaderTitle =
|
|
14221
|
+
var ParameterDrawerHeaderTitle = css61`
|
|
14061
14222
|
text-overflow: ellipsis;
|
|
14062
14223
|
white-space: nowrap;
|
|
14063
14224
|
overflow: hidden;
|
|
@@ -14065,12 +14226,12 @@ var ParameterDrawerHeaderTitle = css58`
|
|
|
14065
14226
|
`;
|
|
14066
14227
|
|
|
14067
14228
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
14068
|
-
import { jsx as
|
|
14229
|
+
import { jsx as jsx76, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
14069
14230
|
var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
14070
|
-
return /* @__PURE__ */
|
|
14071
|
-
/* @__PURE__ */
|
|
14231
|
+
return /* @__PURE__ */ jsxs51("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
14232
|
+
/* @__PURE__ */ jsxs51("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
14072
14233
|
iconBeforeTitle,
|
|
14073
|
-
/* @__PURE__ */
|
|
14234
|
+
/* @__PURE__ */ jsx76(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
|
|
14074
14235
|
] }),
|
|
14075
14236
|
children
|
|
14076
14237
|
] });
|
|
@@ -14080,8 +14241,8 @@ var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
|
14080
14241
|
import { forwardRef as forwardRef7 } from "react";
|
|
14081
14242
|
|
|
14082
14243
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
14083
|
-
import { css as
|
|
14084
|
-
var fieldsetStyles =
|
|
14244
|
+
import { css as css62 } from "@emotion/react";
|
|
14245
|
+
var fieldsetStyles = css62`
|
|
14085
14246
|
&:disabled,
|
|
14086
14247
|
[readonly] {
|
|
14087
14248
|
pointer-events: none;
|
|
@@ -14092,7 +14253,7 @@ var fieldsetStyles = css59`
|
|
|
14092
14253
|
}
|
|
14093
14254
|
}
|
|
14094
14255
|
`;
|
|
14095
|
-
var fieldsetLegend2 =
|
|
14256
|
+
var fieldsetLegend2 = css62`
|
|
14096
14257
|
display: block;
|
|
14097
14258
|
font-weight: var(--fw-medium);
|
|
14098
14259
|
margin-bottom: var(--spacing-sm);
|
|
@@ -14100,38 +14261,38 @@ var fieldsetLegend2 = css59`
|
|
|
14100
14261
|
`;
|
|
14101
14262
|
|
|
14102
14263
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
14103
|
-
import { jsx as
|
|
14264
|
+
import { jsx as jsx77, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
14104
14265
|
var ParameterGroup = forwardRef7(
|
|
14105
14266
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
14106
|
-
return /* @__PURE__ */
|
|
14107
|
-
/* @__PURE__ */
|
|
14267
|
+
return /* @__PURE__ */ jsxs52("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
14268
|
+
/* @__PURE__ */ jsx77("legend", { css: fieldsetLegend2, children: legend }),
|
|
14108
14269
|
children
|
|
14109
14270
|
] });
|
|
14110
14271
|
}
|
|
14111
14272
|
);
|
|
14112
14273
|
|
|
14113
14274
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
14114
|
-
import { forwardRef as forwardRef9, useCallback as useCallback3, useDeferredValue, useEffect as
|
|
14275
|
+
import { forwardRef as forwardRef9, useCallback as useCallback3, useDeferredValue, useEffect as useEffect9, useState as useState8 } from "react";
|
|
14115
14276
|
|
|
14116
14277
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
14117
14278
|
import { useState as useState7 } from "react";
|
|
14118
14279
|
|
|
14119
14280
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
14120
|
-
import { jsx as
|
|
14281
|
+
import { jsx as jsx78 } from "@emotion/react/jsx-runtime";
|
|
14121
14282
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
14122
|
-
return !asSpan ? /* @__PURE__ */
|
|
14283
|
+
return !asSpan ? /* @__PURE__ */ jsx78("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx78("span", { "aria-labelledby": id, css: labelText2, children });
|
|
14123
14284
|
};
|
|
14124
14285
|
|
|
14125
14286
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
14126
14287
|
import { forwardRef as forwardRef8 } from "react";
|
|
14127
|
-
import { jsx as
|
|
14288
|
+
import { jsx as jsx79 } from "@emotion/react/jsx-runtime";
|
|
14128
14289
|
var ParameterMenuButton = forwardRef8(
|
|
14129
14290
|
({ label, children }, ref) => {
|
|
14130
|
-
return /* @__PURE__ */
|
|
14291
|
+
return /* @__PURE__ */ jsx79(
|
|
14131
14292
|
Menu,
|
|
14132
14293
|
{
|
|
14133
14294
|
menuLabel: `${label} menu`,
|
|
14134
|
-
menuTrigger: /* @__PURE__ */
|
|
14295
|
+
menuTrigger: /* @__PURE__ */ jsx79(
|
|
14135
14296
|
"button",
|
|
14136
14297
|
{
|
|
14137
14298
|
className: "parameter-menu",
|
|
@@ -14139,7 +14300,7 @@ var ParameterMenuButton = forwardRef8(
|
|
|
14139
14300
|
type: "button",
|
|
14140
14301
|
"aria-label": `${label} options`,
|
|
14141
14302
|
ref,
|
|
14142
|
-
children: /* @__PURE__ */
|
|
14303
|
+
children: /* @__PURE__ */ jsx79(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
14143
14304
|
}
|
|
14144
14305
|
),
|
|
14145
14306
|
children
|
|
@@ -14149,15 +14310,15 @@ var ParameterMenuButton = forwardRef8(
|
|
|
14149
14310
|
);
|
|
14150
14311
|
|
|
14151
14312
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
14152
|
-
import { css as
|
|
14153
|
-
var emptyParameterShell =
|
|
14313
|
+
import { css as css63 } from "@emotion/react";
|
|
14314
|
+
var emptyParameterShell = css63`
|
|
14154
14315
|
border-radius: var(--rounded-sm);
|
|
14155
14316
|
background: var(--white);
|
|
14156
14317
|
flex-grow: 1;
|
|
14157
14318
|
padding: var(--spacing-xs);
|
|
14158
14319
|
position: relative;
|
|
14159
14320
|
`;
|
|
14160
|
-
var emptyParameterShellText =
|
|
14321
|
+
var emptyParameterShellText = css63`
|
|
14161
14322
|
background: var(--brand-secondary-6);
|
|
14162
14323
|
border-radius: var(--rounded-sm);
|
|
14163
14324
|
padding: var(--spacing-sm);
|
|
@@ -14165,7 +14326,7 @@ var emptyParameterShellText = css60`
|
|
|
14165
14326
|
font-size: var(--fs-sm);
|
|
14166
14327
|
margin: 0;
|
|
14167
14328
|
`;
|
|
14168
|
-
var overrideMarker =
|
|
14329
|
+
var overrideMarker = css63`
|
|
14169
14330
|
border-radius: var(--rounded-sm);
|
|
14170
14331
|
border: 10px solid var(--gray-300);
|
|
14171
14332
|
border-left-color: transparent;
|
|
@@ -14176,7 +14337,7 @@ var overrideMarker = css60`
|
|
|
14176
14337
|
`;
|
|
14177
14338
|
|
|
14178
14339
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
14179
|
-
import { jsx as
|
|
14340
|
+
import { jsx as jsx80, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
14180
14341
|
var extractParameterProps = (props) => {
|
|
14181
14342
|
const {
|
|
14182
14343
|
id,
|
|
@@ -14238,18 +14399,18 @@ var ParameterShell = ({
|
|
|
14238
14399
|
const [manualErrorMessage, setManualErrorMessage] = useState7(void 0);
|
|
14239
14400
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
14240
14401
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
14241
|
-
return /* @__PURE__ */
|
|
14242
|
-
hiddenLabel || title ? null : /* @__PURE__ */
|
|
14402
|
+
return /* @__PURE__ */ jsxs53("div", { css: inputContainer2, ...props, children: [
|
|
14403
|
+
hiddenLabel || title ? null : /* @__PURE__ */ jsxs53(ParameterLabel, { id, css: labelText2, children: [
|
|
14243
14404
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
14244
14405
|
label
|
|
14245
14406
|
] }),
|
|
14246
|
-
!title ? null : /* @__PURE__ */
|
|
14407
|
+
!title ? null : /* @__PURE__ */ jsxs53(ParameterLabel, { id, asSpan: true, children: [
|
|
14247
14408
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
14248
14409
|
title
|
|
14249
14410
|
] }),
|
|
14250
|
-
/* @__PURE__ */
|
|
14251
|
-
menuItems ? /* @__PURE__ */
|
|
14252
|
-
/* @__PURE__ */
|
|
14411
|
+
/* @__PURE__ */ jsxs53("div", { css: inputWrapper, children: [
|
|
14412
|
+
menuItems ? /* @__PURE__ */ jsx80(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
14413
|
+
/* @__PURE__ */ jsx80(
|
|
14253
14414
|
ParameterShellContext.Provider,
|
|
14254
14415
|
{
|
|
14255
14416
|
value: {
|
|
@@ -14259,32 +14420,32 @@ var ParameterShell = ({
|
|
|
14259
14420
|
errorMessage: errorMessaging,
|
|
14260
14421
|
onManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
14261
14422
|
},
|
|
14262
|
-
children: /* @__PURE__ */
|
|
14423
|
+
children: /* @__PURE__ */ jsxs53(ParameterShellPlaceholder, { children: [
|
|
14263
14424
|
children,
|
|
14264
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
14425
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx80(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
14265
14426
|
] })
|
|
14266
14427
|
}
|
|
14267
14428
|
)
|
|
14268
14429
|
] }),
|
|
14269
|
-
caption ? /* @__PURE__ */
|
|
14270
|
-
errorMessaging ? /* @__PURE__ */
|
|
14271
|
-
warningMessage ? /* @__PURE__ */
|
|
14272
|
-
infoMessage ? /* @__PURE__ */
|
|
14430
|
+
caption ? /* @__PURE__ */ jsx80(Caption, { testId: captionTestId, children: caption }) : null,
|
|
14431
|
+
errorMessaging ? /* @__PURE__ */ jsx80(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null,
|
|
14432
|
+
warningMessage ? /* @__PURE__ */ jsx80(WarningMessage, { message: warningMessage }) : null,
|
|
14433
|
+
infoMessage ? /* @__PURE__ */ jsx80(InfoMessage, { message: infoMessage }) : null
|
|
14273
14434
|
] });
|
|
14274
14435
|
};
|
|
14275
14436
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
14276
|
-
return /* @__PURE__ */
|
|
14437
|
+
return /* @__PURE__ */ jsx80("div", { css: emptyParameterShell, children });
|
|
14277
14438
|
};
|
|
14278
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
14439
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx80(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx80("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx80("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
14279
14440
|
|
|
14280
14441
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
14281
|
-
import { Fragment as Fragment10, jsx as
|
|
14442
|
+
import { Fragment as Fragment10, jsx as jsx81, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
14282
14443
|
var ParameterImage = forwardRef9((props, ref) => {
|
|
14283
14444
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14284
|
-
return /* @__PURE__ */
|
|
14445
|
+
return /* @__PURE__ */ jsx81(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: /* @__PURE__ */ jsx81(ParameterImageInner, { ref, ...innerProps }) });
|
|
14285
14446
|
});
|
|
14286
14447
|
var BrokenImage = ({ ...props }) => {
|
|
14287
|
-
return /* @__PURE__ */
|
|
14448
|
+
return /* @__PURE__ */ jsxs54(
|
|
14288
14449
|
"svg",
|
|
14289
14450
|
{
|
|
14290
14451
|
width: "214",
|
|
@@ -14295,11 +14456,11 @@ var BrokenImage = ({ ...props }) => {
|
|
|
14295
14456
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
14296
14457
|
...props,
|
|
14297
14458
|
children: [
|
|
14298
|
-
/* @__PURE__ */
|
|
14299
|
-
/* @__PURE__ */
|
|
14300
|
-
/* @__PURE__ */
|
|
14301
|
-
/* @__PURE__ */
|
|
14302
|
-
/* @__PURE__ */
|
|
14459
|
+
/* @__PURE__ */ jsx81("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
14460
|
+
/* @__PURE__ */ jsx81("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
14461
|
+
/* @__PURE__ */ jsxs54("defs", { children: [
|
|
14462
|
+
/* @__PURE__ */ jsx81("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx81("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
14463
|
+
/* @__PURE__ */ jsx81(
|
|
14303
14464
|
"image",
|
|
14304
14465
|
{
|
|
14305
14466
|
id: "image0_761_4353",
|
|
@@ -14348,11 +14509,11 @@ var ParameterImageInner = forwardRef9(
|
|
|
14348
14509
|
onManuallySetErrorMessage(errorText);
|
|
14349
14510
|
}
|
|
14350
14511
|
};
|
|
14351
|
-
|
|
14512
|
+
useEffect9(() => {
|
|
14352
14513
|
updateImageSrc();
|
|
14353
14514
|
}, [value]);
|
|
14354
|
-
return /* @__PURE__ */
|
|
14355
|
-
/* @__PURE__ */
|
|
14515
|
+
return /* @__PURE__ */ jsxs54(Fragment10, { children: [
|
|
14516
|
+
/* @__PURE__ */ jsx81(
|
|
14356
14517
|
"input",
|
|
14357
14518
|
{
|
|
14358
14519
|
css: input2,
|
|
@@ -14364,8 +14525,8 @@ var ParameterImageInner = forwardRef9(
|
|
|
14364
14525
|
...props
|
|
14365
14526
|
}
|
|
14366
14527
|
),
|
|
14367
|
-
/* @__PURE__ */
|
|
14368
|
-
deferredValue && !errorMessage ? /* @__PURE__ */
|
|
14528
|
+
/* @__PURE__ */ jsxs54("div", { css: imageWrapper, children: [
|
|
14529
|
+
deferredValue && !errorMessage ? /* @__PURE__ */ jsx81(
|
|
14369
14530
|
"img",
|
|
14370
14531
|
{
|
|
14371
14532
|
src: deferredValue,
|
|
@@ -14375,24 +14536,24 @@ var ParameterImageInner = forwardRef9(
|
|
|
14375
14536
|
loading: "lazy"
|
|
14376
14537
|
}
|
|
14377
14538
|
) : null,
|
|
14378
|
-
deferredValue && errorMessage ? /* @__PURE__ */
|
|
14539
|
+
deferredValue && errorMessage ? /* @__PURE__ */ jsx81(BrokenImage, { css: img }) : null
|
|
14379
14540
|
] }),
|
|
14380
|
-
loading ? /* @__PURE__ */
|
|
14541
|
+
loading ? /* @__PURE__ */ jsx81(LoadingIcon, {}) : null
|
|
14381
14542
|
] });
|
|
14382
14543
|
}
|
|
14383
14544
|
);
|
|
14384
14545
|
|
|
14385
14546
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
14386
14547
|
import { forwardRef as forwardRef10 } from "react";
|
|
14387
|
-
import { jsx as
|
|
14548
|
+
import { jsx as jsx82 } from "@emotion/react/jsx-runtime";
|
|
14388
14549
|
var ParameterInput = forwardRef10((props, ref) => {
|
|
14389
14550
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14390
|
-
return /* @__PURE__ */
|
|
14551
|
+
return /* @__PURE__ */ jsx82(ParameterShell, { "data-test-id": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx82(ParameterInputInner, { ref, ...innerProps }) });
|
|
14391
14552
|
});
|
|
14392
14553
|
var ParameterInputInner = forwardRef10(
|
|
14393
14554
|
({ ...props }, ref) => {
|
|
14394
14555
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14395
|
-
return /* @__PURE__ */
|
|
14556
|
+
return /* @__PURE__ */ jsx82(
|
|
14396
14557
|
"input",
|
|
14397
14558
|
{
|
|
14398
14559
|
css: input2,
|
|
@@ -14409,18 +14570,18 @@ var ParameterInputInner = forwardRef10(
|
|
|
14409
14570
|
|
|
14410
14571
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
14411
14572
|
import { forwardRef as forwardRef11 } from "react";
|
|
14412
|
-
import { jsx as
|
|
14573
|
+
import { jsx as jsx83, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
14413
14574
|
var ParameterLink = forwardRef11(
|
|
14414
14575
|
({ buttonText = "Select project map node", disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
14415
14576
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14416
|
-
return /* @__PURE__ */
|
|
14577
|
+
return /* @__PURE__ */ jsx83(
|
|
14417
14578
|
ParameterShell,
|
|
14418
14579
|
{
|
|
14419
14580
|
"data-test-id": "link-parameter-editor",
|
|
14420
14581
|
...shellProps,
|
|
14421
14582
|
label: innerProps.value ? shellProps.label : "",
|
|
14422
14583
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
14423
|
-
children: !innerProps.value ? /* @__PURE__ */
|
|
14584
|
+
children: !innerProps.value ? /* @__PURE__ */ jsx83("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText }) : /* @__PURE__ */ jsx83(
|
|
14424
14585
|
ParameterLinkInner,
|
|
14425
14586
|
{
|
|
14426
14587
|
onConnectLink,
|
|
@@ -14436,8 +14597,8 @@ var ParameterLink = forwardRef11(
|
|
|
14436
14597
|
var ParameterLinkInner = forwardRef11(
|
|
14437
14598
|
({ externalLink, onConnectLink, disabled, ...props }, ref) => {
|
|
14438
14599
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14439
|
-
return /* @__PURE__ */
|
|
14440
|
-
/* @__PURE__ */
|
|
14600
|
+
return /* @__PURE__ */ jsxs55("div", { css: inputWrapper, children: [
|
|
14601
|
+
/* @__PURE__ */ jsx83(
|
|
14441
14602
|
"input",
|
|
14442
14603
|
{
|
|
14443
14604
|
type: "text",
|
|
@@ -14449,7 +14610,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14449
14610
|
...props
|
|
14450
14611
|
}
|
|
14451
14612
|
),
|
|
14452
|
-
/* @__PURE__ */
|
|
14613
|
+
/* @__PURE__ */ jsx83(
|
|
14453
14614
|
"button",
|
|
14454
14615
|
{
|
|
14455
14616
|
type: "button",
|
|
@@ -14460,7 +14621,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14460
14621
|
children: "edit"
|
|
14461
14622
|
}
|
|
14462
14623
|
),
|
|
14463
|
-
externalLink ? /* @__PURE__ */
|
|
14624
|
+
externalLink ? /* @__PURE__ */ jsx83(
|
|
14464
14625
|
"a",
|
|
14465
14626
|
{
|
|
14466
14627
|
href: externalLink,
|
|
@@ -14468,7 +14629,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14468
14629
|
title: "Open link in new tab",
|
|
14469
14630
|
target: "_blank",
|
|
14470
14631
|
rel: "noopener noreferrer",
|
|
14471
|
-
children: /* @__PURE__ */
|
|
14632
|
+
children: /* @__PURE__ */ jsx83(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
14472
14633
|
}
|
|
14473
14634
|
) : null
|
|
14474
14635
|
] });
|
|
@@ -14476,7 +14637,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14476
14637
|
);
|
|
14477
14638
|
|
|
14478
14639
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
14479
|
-
import { Fragment as Fragment11, jsx as
|
|
14640
|
+
import { Fragment as Fragment11, jsx as jsx84, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
14480
14641
|
var ParameterNameAndPublicIdInput = ({
|
|
14481
14642
|
id,
|
|
14482
14643
|
onBlur,
|
|
@@ -14502,8 +14663,8 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14502
14663
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
14503
14664
|
};
|
|
14504
14665
|
autoFocus == null ? void 0 : autoFocus();
|
|
14505
|
-
return /* @__PURE__ */
|
|
14506
|
-
/* @__PURE__ */
|
|
14666
|
+
return /* @__PURE__ */ jsxs56(Fragment11, { children: [
|
|
14667
|
+
/* @__PURE__ */ jsx84(
|
|
14507
14668
|
ParameterInput,
|
|
14508
14669
|
{
|
|
14509
14670
|
id: nameIdField,
|
|
@@ -14522,7 +14683,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14522
14683
|
value: values[nameIdField]
|
|
14523
14684
|
}
|
|
14524
14685
|
),
|
|
14525
|
-
/* @__PURE__ */
|
|
14686
|
+
/* @__PURE__ */ jsx84(
|
|
14526
14687
|
ParameterInput,
|
|
14527
14688
|
{
|
|
14528
14689
|
id: publicIdFieldName,
|
|
@@ -14536,11 +14697,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14536
14697
|
caption: publicIdCaption,
|
|
14537
14698
|
placeholder: publicIdPlaceholderText,
|
|
14538
14699
|
errorMessage: publicIdError,
|
|
14539
|
-
menuItems: /* @__PURE__ */
|
|
14700
|
+
menuItems: /* @__PURE__ */ jsx84(
|
|
14540
14701
|
MenuItem,
|
|
14541
14702
|
{
|
|
14542
14703
|
disabled: !values[publicIdFieldName],
|
|
14543
|
-
icon: /* @__PURE__ */
|
|
14704
|
+
icon: /* @__PURE__ */ jsx84(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
14544
14705
|
onClick: handleCopyPidFieldValue,
|
|
14545
14706
|
children: "Copy"
|
|
14546
14707
|
}
|
|
@@ -14548,13 +14709,13 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14548
14709
|
value: values[publicIdFieldName]
|
|
14549
14710
|
}
|
|
14550
14711
|
),
|
|
14551
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
14712
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx84(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
14552
14713
|
] });
|
|
14553
14714
|
};
|
|
14554
14715
|
|
|
14555
14716
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
14556
14717
|
import { forwardRef as forwardRef12 } from "react";
|
|
14557
|
-
import { Fragment as Fragment12, jsx as
|
|
14718
|
+
import { Fragment as Fragment12, jsx as jsx85, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
|
|
14558
14719
|
var ParameterRichText = forwardRef12(
|
|
14559
14720
|
({
|
|
14560
14721
|
label,
|
|
@@ -14568,7 +14729,7 @@ var ParameterRichText = forwardRef12(
|
|
|
14568
14729
|
menuItems,
|
|
14569
14730
|
...props
|
|
14570
14731
|
}, ref) => {
|
|
14571
|
-
return /* @__PURE__ */
|
|
14732
|
+
return /* @__PURE__ */ jsxs57(
|
|
14572
14733
|
ParameterShell,
|
|
14573
14734
|
{
|
|
14574
14735
|
"data-test-id": "parameter-input",
|
|
@@ -14581,8 +14742,8 @@ var ParameterRichText = forwardRef12(
|
|
|
14581
14742
|
captionTestId,
|
|
14582
14743
|
menuItems,
|
|
14583
14744
|
children: [
|
|
14584
|
-
/* @__PURE__ */
|
|
14585
|
-
menuItems ? /* @__PURE__ */
|
|
14745
|
+
/* @__PURE__ */ jsx85(ParameterRichTextInner, { ref, ...props }),
|
|
14746
|
+
menuItems ? /* @__PURE__ */ jsx85(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx85(Fragment12, { children: menuItems }) }) : null
|
|
14586
14747
|
]
|
|
14587
14748
|
}
|
|
14588
14749
|
);
|
|
@@ -14590,7 +14751,7 @@ var ParameterRichText = forwardRef12(
|
|
|
14590
14751
|
);
|
|
14591
14752
|
var ParameterRichTextInner = forwardRef12(({ ...props }, ref) => {
|
|
14592
14753
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14593
|
-
return /* @__PURE__ */
|
|
14754
|
+
return /* @__PURE__ */ jsx85(
|
|
14594
14755
|
"textarea",
|
|
14595
14756
|
{
|
|
14596
14757
|
css: [input2, textarea2],
|
|
@@ -14604,17 +14765,17 @@ var ParameterRichTextInner = forwardRef12(({ ...props }, ref) => {
|
|
|
14604
14765
|
|
|
14605
14766
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
14606
14767
|
import { forwardRef as forwardRef13 } from "react";
|
|
14607
|
-
import { jsx as
|
|
14768
|
+
import { jsx as jsx86, jsxs as jsxs58 } from "@emotion/react/jsx-runtime";
|
|
14608
14769
|
var ParameterSelect = forwardRef13(
|
|
14609
14770
|
({ defaultOption, options, ...props }, ref) => {
|
|
14610
14771
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14611
|
-
return /* @__PURE__ */
|
|
14772
|
+
return /* @__PURE__ */ jsx86(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx86(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
14612
14773
|
}
|
|
14613
14774
|
);
|
|
14614
14775
|
var ParameterSelectInner = forwardRef13(
|
|
14615
14776
|
({ defaultOption, options, ...props }, ref) => {
|
|
14616
14777
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14617
|
-
return /* @__PURE__ */
|
|
14778
|
+
return /* @__PURE__ */ jsxs58(
|
|
14618
14779
|
"select",
|
|
14619
14780
|
{
|
|
14620
14781
|
css: [input2, selectInput],
|
|
@@ -14623,10 +14784,10 @@ var ParameterSelectInner = forwardRef13(
|
|
|
14623
14784
|
ref,
|
|
14624
14785
|
...props,
|
|
14625
14786
|
children: [
|
|
14626
|
-
defaultOption ? /* @__PURE__ */
|
|
14787
|
+
defaultOption ? /* @__PURE__ */ jsx86("option", { value: "", children: defaultOption }) : null,
|
|
14627
14788
|
options.map((option) => {
|
|
14628
14789
|
var _a;
|
|
14629
|
-
return /* @__PURE__ */
|
|
14790
|
+
return /* @__PURE__ */ jsx86("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
14630
14791
|
})
|
|
14631
14792
|
]
|
|
14632
14793
|
}
|
|
@@ -14636,14 +14797,14 @@ var ParameterSelectInner = forwardRef13(
|
|
|
14636
14797
|
|
|
14637
14798
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
14638
14799
|
import { forwardRef as forwardRef14 } from "react";
|
|
14639
|
-
import { jsx as
|
|
14800
|
+
import { jsx as jsx87 } from "@emotion/react/jsx-runtime";
|
|
14640
14801
|
var ParameterTextarea = forwardRef14((props, ref) => {
|
|
14641
14802
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14642
|
-
return /* @__PURE__ */
|
|
14803
|
+
return /* @__PURE__ */ jsx87(ParameterShell, { "data-test-id": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx87(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
14643
14804
|
});
|
|
14644
14805
|
var ParameterTextareaInner = forwardRef14(({ ...props }, ref) => {
|
|
14645
14806
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14646
|
-
return /* @__PURE__ */
|
|
14807
|
+
return /* @__PURE__ */ jsx87(
|
|
14647
14808
|
"textarea",
|
|
14648
14809
|
{
|
|
14649
14810
|
css: [input2, textarea2],
|
|
@@ -14657,17 +14818,17 @@ var ParameterTextareaInner = forwardRef14(({ ...props }, ref) => {
|
|
|
14657
14818
|
|
|
14658
14819
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
14659
14820
|
import { forwardRef as forwardRef15 } from "react";
|
|
14660
|
-
import { jsx as
|
|
14821
|
+
import { jsx as jsx88, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
|
|
14661
14822
|
var ParameterToggle = forwardRef15((props, ref) => {
|
|
14662
14823
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14663
|
-
return /* @__PURE__ */
|
|
14824
|
+
return /* @__PURE__ */ jsx88(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx88(ParameterToggleInner, { ref, ...innerProps }) });
|
|
14664
14825
|
});
|
|
14665
14826
|
var ParameterToggleInner = forwardRef15(
|
|
14666
14827
|
({ ...props }, ref) => {
|
|
14667
14828
|
const { id, label } = useParameterShell();
|
|
14668
|
-
return /* @__PURE__ */
|
|
14669
|
-
/* @__PURE__ */
|
|
14670
|
-
/* @__PURE__ */
|
|
14829
|
+
return /* @__PURE__ */ jsxs59("label", { css: inputToggleLabel2, children: [
|
|
14830
|
+
/* @__PURE__ */ jsx88("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
14831
|
+
/* @__PURE__ */ jsx88("span", { css: inlineLabel2, children: label })
|
|
14671
14832
|
] });
|
|
14672
14833
|
}
|
|
14673
14834
|
);
|
|
@@ -14681,13 +14842,13 @@ import {
|
|
|
14681
14842
|
import { Portal as Portal2 } from "reakit/Portal";
|
|
14682
14843
|
|
|
14683
14844
|
// src/components/Popover/Popover.styles.ts
|
|
14684
|
-
import { css as
|
|
14685
|
-
var PopoverBtn =
|
|
14845
|
+
import { css as css64 } from "@emotion/react";
|
|
14846
|
+
var PopoverBtn = css64`
|
|
14686
14847
|
border: none;
|
|
14687
14848
|
background: none;
|
|
14688
14849
|
padding: 0;
|
|
14689
14850
|
`;
|
|
14690
|
-
var Popover =
|
|
14851
|
+
var Popover = css64`
|
|
14691
14852
|
border-left: var(--spacing-xs) solid var(--brand-secondary-3);
|
|
14692
14853
|
border-radius: var(--rounded-base);
|
|
14693
14854
|
box-shadow: var(--shadow-base);
|
|
@@ -14700,7 +14861,7 @@ var Popover = css61`
|
|
|
14700
14861
|
`;
|
|
14701
14862
|
|
|
14702
14863
|
// src/components/Popover/Popover.tsx
|
|
14703
|
-
import { Fragment as Fragment13, jsx as
|
|
14864
|
+
import { Fragment as Fragment13, jsx as jsx89, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
|
|
14704
14865
|
var Popover2 = ({
|
|
14705
14866
|
iconColor = "green",
|
|
14706
14867
|
buttonText,
|
|
@@ -14709,36 +14870,36 @@ var Popover2 = ({
|
|
|
14709
14870
|
children
|
|
14710
14871
|
}) => {
|
|
14711
14872
|
const popover = usePopoverState({ placement });
|
|
14712
|
-
return /* @__PURE__ */
|
|
14713
|
-
/* @__PURE__ */
|
|
14714
|
-
/* @__PURE__ */
|
|
14715
|
-
/* @__PURE__ */
|
|
14873
|
+
return /* @__PURE__ */ jsxs60(Fragment13, { children: [
|
|
14874
|
+
/* @__PURE__ */ jsxs60(PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, children: [
|
|
14875
|
+
/* @__PURE__ */ jsx89(Icon, { icon: "info", iconColor, size: "1rem" }),
|
|
14876
|
+
/* @__PURE__ */ jsx89("span", { hidden: true, children: buttonText })
|
|
14716
14877
|
] }),
|
|
14717
|
-
/* @__PURE__ */
|
|
14878
|
+
/* @__PURE__ */ jsx89(Portal2, { children: /* @__PURE__ */ jsx89(ReakitPopover, { css: Popover, ...popover, "aria-label": ariaLabel, children }) })
|
|
14718
14879
|
] });
|
|
14719
14880
|
};
|
|
14720
14881
|
|
|
14721
14882
|
// src/components/ProgressList/ProgressList.tsx
|
|
14722
|
-
import { css as
|
|
14883
|
+
import { css as css66 } from "@emotion/react";
|
|
14723
14884
|
import { useMemo as useMemo2 } from "react";
|
|
14724
14885
|
import { CgCheckO, CgRadioCheck, CgRecord } from "react-icons/cg";
|
|
14725
14886
|
|
|
14726
14887
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
14727
|
-
import { css as
|
|
14728
|
-
var progressListStyles =
|
|
14888
|
+
import { css as css65 } from "@emotion/react";
|
|
14889
|
+
var progressListStyles = css65`
|
|
14729
14890
|
display: flex;
|
|
14730
14891
|
flex-direction: column;
|
|
14731
14892
|
gap: var(--spacing-sm);
|
|
14732
14893
|
list-style-type: none;
|
|
14733
14894
|
`;
|
|
14734
|
-
var progressListItemStyles =
|
|
14895
|
+
var progressListItemStyles = css65`
|
|
14735
14896
|
display: flex;
|
|
14736
14897
|
gap: var(--spacing-base);
|
|
14737
14898
|
align-items: center;
|
|
14738
14899
|
`;
|
|
14739
14900
|
|
|
14740
14901
|
// src/components/ProgressList/ProgressList.tsx
|
|
14741
|
-
import { jsx as
|
|
14902
|
+
import { jsx as jsx90, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
|
|
14742
14903
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
14743
14904
|
const itemsWithStatus = useMemo2(() => {
|
|
14744
14905
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -14752,8 +14913,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
14752
14913
|
return { ...item, status };
|
|
14753
14914
|
});
|
|
14754
14915
|
}, [items, inProgressId]);
|
|
14755
|
-
return /* @__PURE__ */
|
|
14756
|
-
return /* @__PURE__ */
|
|
14916
|
+
return /* @__PURE__ */ jsx90("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
14917
|
+
return /* @__PURE__ */ jsx90(
|
|
14757
14918
|
ProgressListItem,
|
|
14758
14919
|
{
|
|
14759
14920
|
status,
|
|
@@ -14786,12 +14947,12 @@ var ProgressListItem = ({
|
|
|
14786
14947
|
}, [status, error]);
|
|
14787
14948
|
const statusStyles = useMemo2(() => {
|
|
14788
14949
|
if (error) {
|
|
14789
|
-
return errorLevel === "caution" ?
|
|
14950
|
+
return errorLevel === "caution" ? css66`
|
|
14790
14951
|
color: rgb(161, 98, 7);
|
|
14791
14952
|
& svg {
|
|
14792
14953
|
color: rgb(250, 204, 21);
|
|
14793
14954
|
}
|
|
14794
|
-
` :
|
|
14955
|
+
` : css66`
|
|
14795
14956
|
color: rgb(185, 28, 28);
|
|
14796
14957
|
& svg {
|
|
14797
14958
|
color: var(--brand-primary-2);
|
|
@@ -14799,35 +14960,35 @@ var ProgressListItem = ({
|
|
|
14799
14960
|
`;
|
|
14800
14961
|
}
|
|
14801
14962
|
const colorPerStatus = {
|
|
14802
|
-
completed:
|
|
14963
|
+
completed: css66`
|
|
14803
14964
|
opacity: 0.75;
|
|
14804
14965
|
`,
|
|
14805
|
-
inProgress:
|
|
14966
|
+
inProgress: css66`
|
|
14806
14967
|
-webkit-text-stroke-width: thin;
|
|
14807
14968
|
`,
|
|
14808
|
-
queued:
|
|
14969
|
+
queued: css66`
|
|
14809
14970
|
opacity: 0.5;
|
|
14810
14971
|
`
|
|
14811
14972
|
};
|
|
14812
14973
|
return colorPerStatus[status];
|
|
14813
14974
|
}, [status, error, errorLevel]);
|
|
14814
|
-
return /* @__PURE__ */
|
|
14815
|
-
/* @__PURE__ */
|
|
14816
|
-
/* @__PURE__ */
|
|
14975
|
+
return /* @__PURE__ */ jsxs61("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
14976
|
+
/* @__PURE__ */ jsx90(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx90("div", { children: /* @__PURE__ */ jsx90(Icon2, { size: 20 }) }) }),
|
|
14977
|
+
/* @__PURE__ */ jsxs61("div", { children: [
|
|
14817
14978
|
children,
|
|
14818
|
-
/* @__PURE__ */
|
|
14979
|
+
/* @__PURE__ */ jsx90("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
14819
14980
|
] })
|
|
14820
14981
|
] });
|
|
14821
14982
|
};
|
|
14822
14983
|
|
|
14823
14984
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
14824
|
-
import { css as
|
|
14985
|
+
import { css as css68 } from "@emotion/react";
|
|
14825
14986
|
import { useCallback as useCallback4, useMemo as useMemo3 } from "react";
|
|
14826
14987
|
import { CgCheck as CgCheck3 } from "react-icons/cg";
|
|
14827
14988
|
|
|
14828
14989
|
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
14829
|
-
import { css as
|
|
14830
|
-
var segmentedControlStyles =
|
|
14990
|
+
import { css as css67 } from "@emotion/react";
|
|
14991
|
+
var segmentedControlStyles = css67`
|
|
14831
14992
|
--segmented-control-rounded-value: var(--rounded-base);
|
|
14832
14993
|
--segmented-control-border-width: 1px;
|
|
14833
14994
|
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
@@ -14846,14 +15007,14 @@ var segmentedControlStyles = css64`
|
|
|
14846
15007
|
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
14847
15008
|
font-size: var(--fs-xs);
|
|
14848
15009
|
`;
|
|
14849
|
-
var segmentedControlVerticalStyles =
|
|
15010
|
+
var segmentedControlVerticalStyles = css67`
|
|
14850
15011
|
flex-direction: column;
|
|
14851
15012
|
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
14852
15013
|
var(--segmented-control-rounded-value) 0 0;
|
|
14853
15014
|
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
14854
15015
|
var(--segmented-control-rounded-value);
|
|
14855
15016
|
`;
|
|
14856
|
-
var segmentedControlItemStyles =
|
|
15017
|
+
var segmentedControlItemStyles = css67`
|
|
14857
15018
|
&:first-of-type label {
|
|
14858
15019
|
border-radius: var(--segmented-control-first-border-radius);
|
|
14859
15020
|
}
|
|
@@ -14861,14 +15022,14 @@ var segmentedControlItemStyles = css64`
|
|
|
14861
15022
|
border-radius: var(--segmented-control-last-border-radius);
|
|
14862
15023
|
}
|
|
14863
15024
|
`;
|
|
14864
|
-
var segmentedControlInputStyles =
|
|
15025
|
+
var segmentedControlInputStyles = css67`
|
|
14865
15026
|
clip: rect(0, 0, 0, 0);
|
|
14866
15027
|
position: absolute;
|
|
14867
15028
|
width: 1px;
|
|
14868
15029
|
height: 1px;
|
|
14869
15030
|
overflow: hidden;
|
|
14870
15031
|
`;
|
|
14871
|
-
var segmentedControlLabelStyles =
|
|
15032
|
+
var segmentedControlLabelStyles = css67`
|
|
14872
15033
|
position: relative;
|
|
14873
15034
|
display: flex;
|
|
14874
15035
|
align-items: center;
|
|
@@ -14905,23 +15066,23 @@ var segmentedControlLabelStyles = css64`
|
|
|
14905
15066
|
background-color: var(--gray-400);
|
|
14906
15067
|
}
|
|
14907
15068
|
`;
|
|
14908
|
-
var segmentedControlLabelIconOnlyStyles =
|
|
15069
|
+
var segmentedControlLabelIconOnlyStyles = css67`
|
|
14909
15070
|
padding-inline: 0.5em;
|
|
14910
15071
|
`;
|
|
14911
|
-
var segmentedControlLabelCheckStyles =
|
|
15072
|
+
var segmentedControlLabelCheckStyles = css67`
|
|
14912
15073
|
opacity: 0.5;
|
|
14913
15074
|
`;
|
|
14914
|
-
var segmentedControlLabelContentStyles =
|
|
15075
|
+
var segmentedControlLabelContentStyles = css67`
|
|
14915
15076
|
display: flex;
|
|
14916
15077
|
align-items: center;
|
|
14917
15078
|
justify-content: center;
|
|
14918
15079
|
gap: var(--spacing-sm);
|
|
14919
15080
|
height: 100%;
|
|
14920
15081
|
`;
|
|
14921
|
-
var segmentedControlLabelTextStyles =
|
|
15082
|
+
var segmentedControlLabelTextStyles = css67``;
|
|
14922
15083
|
|
|
14923
15084
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
14924
|
-
import { jsx as
|
|
15085
|
+
import { jsx as jsx91, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
|
|
14925
15086
|
var SegmentedControl = ({
|
|
14926
15087
|
name,
|
|
14927
15088
|
options,
|
|
@@ -14943,16 +15104,16 @@ var SegmentedControl = ({
|
|
|
14943
15104
|
);
|
|
14944
15105
|
const sizeStyles = useMemo3(() => {
|
|
14945
15106
|
const map = {
|
|
14946
|
-
sm:
|
|
14947
|
-
md:
|
|
14948
|
-
lg:
|
|
15107
|
+
sm: css68({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
15108
|
+
md: css68({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
15109
|
+
lg: css68({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
|
|
14949
15110
|
};
|
|
14950
15111
|
return map[size];
|
|
14951
15112
|
}, [size]);
|
|
14952
15113
|
const isIconOnly = useMemo3(() => {
|
|
14953
15114
|
return options.every((option) => option.icon && !option.label);
|
|
14954
15115
|
}, [options]);
|
|
14955
|
-
return /* @__PURE__ */
|
|
15116
|
+
return /* @__PURE__ */ jsx91(
|
|
14956
15117
|
"div",
|
|
14957
15118
|
{
|
|
14958
15119
|
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
@@ -14960,11 +15121,11 @@ var SegmentedControl = ({
|
|
|
14960
15121
|
children: options.map((option, index) => {
|
|
14961
15122
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
14962
15123
|
const isDisabled = disabled || option.disabled;
|
|
14963
|
-
return /* @__PURE__ */
|
|
15124
|
+
return /* @__PURE__ */ jsx91(
|
|
14964
15125
|
Tooltip,
|
|
14965
15126
|
{
|
|
14966
15127
|
title: isDisabled || !option.tooltip ? "" : option.tooltip,
|
|
14967
|
-
children: /* @__PURE__ */
|
|
15128
|
+
children: /* @__PURE__ */ jsx91("div", { css: segmentedControlItemStyles, children: /* @__PURE__ */ jsxs62(
|
|
14968
15129
|
"label",
|
|
14969
15130
|
{
|
|
14970
15131
|
css: [
|
|
@@ -14973,7 +15134,7 @@ var SegmentedControl = ({
|
|
|
14973
15134
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
14974
15135
|
],
|
|
14975
15136
|
children: [
|
|
14976
|
-
/* @__PURE__ */
|
|
15137
|
+
/* @__PURE__ */ jsx91(
|
|
14977
15138
|
"input",
|
|
14978
15139
|
{
|
|
14979
15140
|
css: segmentedControlInputStyles,
|
|
@@ -14985,10 +15146,10 @@ var SegmentedControl = ({
|
|
|
14985
15146
|
disabled: isDisabled
|
|
14986
15147
|
}
|
|
14987
15148
|
),
|
|
14988
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */
|
|
14989
|
-
/* @__PURE__ */
|
|
14990
|
-
!option.icon ? null : /* @__PURE__ */
|
|
14991
|
-
!text ? null : /* @__PURE__ */
|
|
15149
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx91(CgCheck3, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
15150
|
+
/* @__PURE__ */ jsxs62("span", { css: segmentedControlLabelContentStyles, children: [
|
|
15151
|
+
!option.icon ? null : /* @__PURE__ */ jsx91(option.icon, { size: "1.5em" }),
|
|
15152
|
+
!text ? null : /* @__PURE__ */ jsx91("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
14992
15153
|
] })
|
|
14993
15154
|
]
|
|
14994
15155
|
}
|
|
@@ -15002,18 +15163,18 @@ var SegmentedControl = ({
|
|
|
15002
15163
|
};
|
|
15003
15164
|
|
|
15004
15165
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
15005
|
-
import { css as
|
|
15166
|
+
import { css as css69, keyframes as keyframes4 } from "@emotion/react";
|
|
15006
15167
|
var lightFadingOut = keyframes4`
|
|
15007
15168
|
from { opacity: 0.1; }
|
|
15008
15169
|
to { opacity: 0.025; }
|
|
15009
15170
|
`;
|
|
15010
|
-
var skeletonStyles =
|
|
15171
|
+
var skeletonStyles = css69`
|
|
15011
15172
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
15012
15173
|
background-color: var(--gray-900);
|
|
15013
15174
|
`;
|
|
15014
15175
|
|
|
15015
15176
|
// src/components/Skeleton/Skeleton.tsx
|
|
15016
|
-
import { jsx as
|
|
15177
|
+
import { jsx as jsx92 } from "@emotion/react/jsx-runtime";
|
|
15017
15178
|
var Skeleton = ({
|
|
15018
15179
|
width = "100%",
|
|
15019
15180
|
height = "1.25rem",
|
|
@@ -15021,7 +15182,7 @@ var Skeleton = ({
|
|
|
15021
15182
|
circle = false,
|
|
15022
15183
|
children,
|
|
15023
15184
|
...otherProps
|
|
15024
|
-
}) => /* @__PURE__ */
|
|
15185
|
+
}) => /* @__PURE__ */ jsx92(
|
|
15025
15186
|
"div",
|
|
15026
15187
|
{
|
|
15027
15188
|
css: [
|
|
@@ -15044,8 +15205,8 @@ var Skeleton = ({
|
|
|
15044
15205
|
import * as React18 from "react";
|
|
15045
15206
|
|
|
15046
15207
|
// src/components/Switch/Switch.styles.ts
|
|
15047
|
-
import { css as
|
|
15048
|
-
var SwitchInputContainer =
|
|
15208
|
+
import { css as css70 } from "@emotion/react";
|
|
15209
|
+
var SwitchInputContainer = css70`
|
|
15049
15210
|
cursor: pointer;
|
|
15050
15211
|
display: inline-block;
|
|
15051
15212
|
position: relative;
|
|
@@ -15054,7 +15215,7 @@ var SwitchInputContainer = css67`
|
|
|
15054
15215
|
vertical-align: middle;
|
|
15055
15216
|
user-select: none;
|
|
15056
15217
|
`;
|
|
15057
|
-
var SwitchInput =
|
|
15218
|
+
var SwitchInput = css70`
|
|
15058
15219
|
appearance: none;
|
|
15059
15220
|
border-radius: var(--rounded-full);
|
|
15060
15221
|
background-color: var(--white);
|
|
@@ -15092,7 +15253,7 @@ var SwitchInput = css67`
|
|
|
15092
15253
|
cursor: not-allowed;
|
|
15093
15254
|
}
|
|
15094
15255
|
`;
|
|
15095
|
-
var SwitchInputDisabled =
|
|
15256
|
+
var SwitchInputDisabled = css70`
|
|
15096
15257
|
opacity: var(--opacity-50);
|
|
15097
15258
|
cursor: not-allowed;
|
|
15098
15259
|
|
|
@@ -15100,7 +15261,7 @@ var SwitchInputDisabled = css67`
|
|
|
15100
15261
|
cursor: not-allowed;
|
|
15101
15262
|
}
|
|
15102
15263
|
`;
|
|
15103
|
-
var SwitchInputLabel =
|
|
15264
|
+
var SwitchInputLabel = css70`
|
|
15104
15265
|
align-items: center;
|
|
15105
15266
|
color: var(--brand-secondary-1);
|
|
15106
15267
|
display: inline-flex;
|
|
@@ -15122,26 +15283,26 @@ var SwitchInputLabel = css67`
|
|
|
15122
15283
|
top: 0;
|
|
15123
15284
|
}
|
|
15124
15285
|
`;
|
|
15125
|
-
var SwitchText =
|
|
15286
|
+
var SwitchText = css70`
|
|
15126
15287
|
color: var(--gray-500);
|
|
15127
15288
|
font-size: var(--fs-sm);
|
|
15128
15289
|
padding-inline: var(--spacing-2xl) 0;
|
|
15129
15290
|
`;
|
|
15130
15291
|
|
|
15131
15292
|
// src/components/Switch/Switch.tsx
|
|
15132
|
-
import { Fragment as Fragment14, jsx as
|
|
15293
|
+
import { Fragment as Fragment14, jsx as jsx93, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
|
|
15133
15294
|
var Switch = React18.forwardRef(
|
|
15134
15295
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
15135
15296
|
let additionalText = infoText;
|
|
15136
15297
|
if (infoText && toggleText) {
|
|
15137
15298
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
15138
15299
|
}
|
|
15139
|
-
return /* @__PURE__ */
|
|
15140
|
-
/* @__PURE__ */
|
|
15141
|
-
/* @__PURE__ */
|
|
15142
|
-
/* @__PURE__ */
|
|
15300
|
+
return /* @__PURE__ */ jsxs63(Fragment14, { children: [
|
|
15301
|
+
/* @__PURE__ */ jsxs63("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
15302
|
+
/* @__PURE__ */ jsx93("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
15303
|
+
/* @__PURE__ */ jsx93("span", { css: SwitchInputLabel, children: label })
|
|
15143
15304
|
] }),
|
|
15144
|
-
additionalText ? /* @__PURE__ */
|
|
15305
|
+
additionalText ? /* @__PURE__ */ jsx93("p", { css: SwitchText, children: additionalText }) : null,
|
|
15145
15306
|
children
|
|
15146
15307
|
] });
|
|
15147
15308
|
}
|
|
@@ -15151,69 +15312,69 @@ var Switch = React18.forwardRef(
|
|
|
15151
15312
|
import * as React19 from "react";
|
|
15152
15313
|
|
|
15153
15314
|
// src/components/Table/Table.styles.ts
|
|
15154
|
-
import { css as
|
|
15155
|
-
var table =
|
|
15315
|
+
import { css as css71 } from "@emotion/react";
|
|
15316
|
+
var table = css71`
|
|
15156
15317
|
border-bottom: 1px solid var(--gray-400);
|
|
15157
15318
|
border-collapse: collapse;
|
|
15158
15319
|
min-width: 100%;
|
|
15159
15320
|
table-layout: auto;
|
|
15160
15321
|
`;
|
|
15161
|
-
var tableHead =
|
|
15322
|
+
var tableHead = css71`
|
|
15162
15323
|
background: var(--gray-100);
|
|
15163
15324
|
color: var(--brand-secondary-1);
|
|
15164
15325
|
text-align: left;
|
|
15165
15326
|
`;
|
|
15166
|
-
var tableRow =
|
|
15327
|
+
var tableRow = css71`
|
|
15167
15328
|
border-bottom: 1px solid var(--gray-200);
|
|
15168
15329
|
`;
|
|
15169
|
-
var tableCellHead =
|
|
15330
|
+
var tableCellHead = css71`
|
|
15170
15331
|
font-size: var(--fs-sm);
|
|
15171
15332
|
padding: var(--spacing-base) var(--spacing-md);
|
|
15172
15333
|
text-transform: uppercase;
|
|
15173
15334
|
font-weight: var(--fw-bold);
|
|
15174
15335
|
`;
|
|
15175
|
-
var tableCellData =
|
|
15336
|
+
var tableCellData = css71`
|
|
15176
15337
|
padding: var(--spacing-base) var(--spacing-md);
|
|
15177
15338
|
`;
|
|
15178
15339
|
|
|
15179
15340
|
// src/components/Table/Table.tsx
|
|
15180
|
-
import { jsx as
|
|
15341
|
+
import { jsx as jsx94 } from "@emotion/react/jsx-runtime";
|
|
15181
15342
|
var Table = React19.forwardRef(({ children, ...otherProps }, ref) => {
|
|
15182
|
-
return /* @__PURE__ */
|
|
15343
|
+
return /* @__PURE__ */ jsx94("table", { ref, css: table, ...otherProps, children });
|
|
15183
15344
|
});
|
|
15184
15345
|
var TableHead = React19.forwardRef(
|
|
15185
15346
|
({ children, ...otherProps }, ref) => {
|
|
15186
|
-
return /* @__PURE__ */
|
|
15347
|
+
return /* @__PURE__ */ jsx94("thead", { ref, css: tableHead, ...otherProps, children });
|
|
15187
15348
|
}
|
|
15188
15349
|
);
|
|
15189
15350
|
var TableBody = React19.forwardRef(
|
|
15190
15351
|
({ children, ...otherProps }, ref) => {
|
|
15191
|
-
return /* @__PURE__ */
|
|
15352
|
+
return /* @__PURE__ */ jsx94("tbody", { ref, ...otherProps, children });
|
|
15192
15353
|
}
|
|
15193
15354
|
);
|
|
15194
15355
|
var TableFoot = React19.forwardRef(
|
|
15195
15356
|
({ children, ...otherProps }, ref) => {
|
|
15196
|
-
return /* @__PURE__ */
|
|
15357
|
+
return /* @__PURE__ */ jsx94("tfoot", { ref, ...otherProps, children });
|
|
15197
15358
|
}
|
|
15198
15359
|
);
|
|
15199
15360
|
var TableRow = React19.forwardRef(
|
|
15200
15361
|
({ children, ...otherProps }, ref) => {
|
|
15201
|
-
return /* @__PURE__ */
|
|
15362
|
+
return /* @__PURE__ */ jsx94("tr", { ref, css: tableRow, ...otherProps, children });
|
|
15202
15363
|
}
|
|
15203
15364
|
);
|
|
15204
15365
|
var TableCellHead = React19.forwardRef(
|
|
15205
15366
|
({ children, ...otherProps }, ref) => {
|
|
15206
|
-
return /* @__PURE__ */
|
|
15367
|
+
return /* @__PURE__ */ jsx94("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
15207
15368
|
}
|
|
15208
15369
|
);
|
|
15209
15370
|
var TableCellData = React19.forwardRef(
|
|
15210
15371
|
({ children, ...otherProps }, ref) => {
|
|
15211
|
-
return /* @__PURE__ */
|
|
15372
|
+
return /* @__PURE__ */ jsx94("td", { ref, css: tableCellData, ...otherProps, children });
|
|
15212
15373
|
}
|
|
15213
15374
|
);
|
|
15214
15375
|
|
|
15215
15376
|
// src/components/Tabs/Tabs.tsx
|
|
15216
|
-
import { createContext as createContext6, useContext as useContext7, useEffect as
|
|
15377
|
+
import { createContext as createContext6, useContext as useContext7, useEffect as useEffect10, useMemo as useMemo4 } from "react";
|
|
15217
15378
|
import {
|
|
15218
15379
|
Tab as ReakitTab,
|
|
15219
15380
|
TabList as ReakitTabList,
|
|
@@ -15222,8 +15383,8 @@ import {
|
|
|
15222
15383
|
} from "reakit/Tab";
|
|
15223
15384
|
|
|
15224
15385
|
// src/components/Tabs/Tabs.styles.ts
|
|
15225
|
-
import { css as
|
|
15226
|
-
var tabButtonStyles =
|
|
15386
|
+
import { css as css72 } from "@emotion/react";
|
|
15387
|
+
var tabButtonStyles = css72`
|
|
15227
15388
|
align-items: center;
|
|
15228
15389
|
border: 0;
|
|
15229
15390
|
height: 2.5rem;
|
|
@@ -15240,14 +15401,14 @@ var tabButtonStyles = css69`
|
|
|
15240
15401
|
-webkit-text-stroke-width: thin;
|
|
15241
15402
|
}
|
|
15242
15403
|
`;
|
|
15243
|
-
var tabButtonGroupStyles =
|
|
15404
|
+
var tabButtonGroupStyles = css72`
|
|
15244
15405
|
display: flex;
|
|
15245
15406
|
gap: var(--spacing-base);
|
|
15246
15407
|
border-bottom: 1px solid var(--gray-300);
|
|
15247
15408
|
`;
|
|
15248
15409
|
|
|
15249
15410
|
// src/components/Tabs/Tabs.tsx
|
|
15250
|
-
import { jsx as
|
|
15411
|
+
import { jsx as jsx95 } from "@emotion/react/jsx-runtime";
|
|
15251
15412
|
var CurrentTabContext = createContext6(null);
|
|
15252
15413
|
var useCurrentTab = () => {
|
|
15253
15414
|
const context = useContext7(CurrentTabContext);
|
|
@@ -15263,7 +15424,7 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
15263
15424
|
return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
|
|
15264
15425
|
}, [selectedId, useHashForState]);
|
|
15265
15426
|
const tab = useTabState({ ...props, selectedId: selected });
|
|
15266
|
-
|
|
15427
|
+
useEffect10(() => {
|
|
15267
15428
|
var _a;
|
|
15268
15429
|
const selectedValueWithoutNull = (_a = tab.selectedId) != null ? _a : void 0;
|
|
15269
15430
|
onSelectedIdChange == null ? void 0 : onSelectedIdChange(selectedValueWithoutNull);
|
|
@@ -15271,29 +15432,29 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
15271
15432
|
window.location.hash = selectedValueWithoutNull != null ? selectedValueWithoutNull : "";
|
|
15272
15433
|
}
|
|
15273
15434
|
}, [tab.selectedId, onSelectedIdChange, useHashForState]);
|
|
15274
|
-
|
|
15435
|
+
useEffect10(() => {
|
|
15275
15436
|
if (selected && selected !== tab.selectedId) {
|
|
15276
15437
|
tab.setSelectedId(selected);
|
|
15277
15438
|
}
|
|
15278
15439
|
}, [selected]);
|
|
15279
|
-
return /* @__PURE__ */
|
|
15440
|
+
return /* @__PURE__ */ jsx95(CurrentTabContext.Provider, { value: tab, children });
|
|
15280
15441
|
};
|
|
15281
15442
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
15282
15443
|
const currentTab = useCurrentTab();
|
|
15283
|
-
return /* @__PURE__ */
|
|
15444
|
+
return /* @__PURE__ */ jsx95(ReakitTabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
15284
15445
|
};
|
|
15285
15446
|
var TabButton = ({ children, id, ...props }) => {
|
|
15286
15447
|
const currentTab = useCurrentTab();
|
|
15287
|
-
return /* @__PURE__ */
|
|
15448
|
+
return /* @__PURE__ */ jsx95(ReakitTab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
15288
15449
|
};
|
|
15289
15450
|
var TabContent = ({ children, ...props }) => {
|
|
15290
15451
|
const currentTab = useCurrentTab();
|
|
15291
|
-
return /* @__PURE__ */
|
|
15452
|
+
return /* @__PURE__ */ jsx95(ReakitTabPanel, { ...props, ...currentTab, children });
|
|
15292
15453
|
};
|
|
15293
15454
|
|
|
15294
15455
|
// src/components/Validation/StatusBullet.styles.ts
|
|
15295
|
-
import { css as
|
|
15296
|
-
var StatusBulletContainer =
|
|
15456
|
+
import { css as css73 } from "@emotion/react";
|
|
15457
|
+
var StatusBulletContainer = css73`
|
|
15297
15458
|
align-items: center;
|
|
15298
15459
|
align-self: center;
|
|
15299
15460
|
color: var(--gray-500);
|
|
@@ -15310,51 +15471,51 @@ var StatusBulletContainer = css70`
|
|
|
15310
15471
|
display: block;
|
|
15311
15472
|
}
|
|
15312
15473
|
`;
|
|
15313
|
-
var StatusBulletBase =
|
|
15474
|
+
var StatusBulletBase = css73`
|
|
15314
15475
|
font-size: var(--fs-sm);
|
|
15315
15476
|
&:before {
|
|
15316
15477
|
width: var(--fs-xs);
|
|
15317
15478
|
height: var(--fs-xs);
|
|
15318
15479
|
}
|
|
15319
15480
|
`;
|
|
15320
|
-
var StatusBulletSmall =
|
|
15481
|
+
var StatusBulletSmall = css73`
|
|
15321
15482
|
font-size: var(--fs-xs);
|
|
15322
15483
|
&:before {
|
|
15323
15484
|
width: var(--fs-xxs);
|
|
15324
15485
|
height: var(--fs-xxs);
|
|
15325
15486
|
}
|
|
15326
15487
|
`;
|
|
15327
|
-
var StatusDraft =
|
|
15488
|
+
var StatusDraft = css73`
|
|
15328
15489
|
&:before {
|
|
15329
15490
|
background: var(--white);
|
|
15330
15491
|
box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
|
|
15331
15492
|
}
|
|
15332
15493
|
`;
|
|
15333
|
-
var StatusModified =
|
|
15494
|
+
var StatusModified = css73`
|
|
15334
15495
|
&:before {
|
|
15335
15496
|
background: linear-gradient(to right, var(--white) 50%, var(--brand-primary-1) 50% 100%);
|
|
15336
15497
|
box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
|
|
15337
15498
|
}
|
|
15338
15499
|
`;
|
|
15339
|
-
var StatusError =
|
|
15500
|
+
var StatusError = css73`
|
|
15340
15501
|
color: var(--error);
|
|
15341
15502
|
&:before {
|
|
15342
15503
|
background: linear-gradient(120deg, var(--error) 40%, var(--white) 50%, var(--error) 60%);
|
|
15343
15504
|
}
|
|
15344
15505
|
`;
|
|
15345
|
-
var StatusPublished =
|
|
15506
|
+
var StatusPublished = css73`
|
|
15346
15507
|
&:before {
|
|
15347
15508
|
background: var(--brand-secondary-3);
|
|
15348
15509
|
}
|
|
15349
15510
|
`;
|
|
15350
|
-
var StatusOrphan =
|
|
15511
|
+
var StatusOrphan = css73`
|
|
15351
15512
|
&:before {
|
|
15352
15513
|
background: var(--brand-secondary-5);
|
|
15353
15514
|
}
|
|
15354
15515
|
`;
|
|
15355
15516
|
|
|
15356
15517
|
// src/components/Validation/StatusBullet.tsx
|
|
15357
|
-
import { jsx as
|
|
15518
|
+
import { jsx as jsx96 } from "@emotion/react/jsx-runtime";
|
|
15358
15519
|
var StatusBullet = ({
|
|
15359
15520
|
status,
|
|
15360
15521
|
hideText = false,
|
|
@@ -15371,7 +15532,7 @@ var StatusBullet = ({
|
|
|
15371
15532
|
Draft: StatusDraft
|
|
15372
15533
|
};
|
|
15373
15534
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
15374
|
-
return /* @__PURE__ */
|
|
15535
|
+
return /* @__PURE__ */ jsx96(
|
|
15375
15536
|
"span",
|
|
15376
15537
|
{
|
|
15377
15538
|
role: "status",
|
|
@@ -15394,6 +15555,7 @@ export {
|
|
|
15394
15555
|
Caption,
|
|
15395
15556
|
Card,
|
|
15396
15557
|
CardContainer2 as CardContainer,
|
|
15558
|
+
CardTitle2 as CardTitle,
|
|
15397
15559
|
CheckboxWithInfo,
|
|
15398
15560
|
ConnectToDataElementButton,
|
|
15399
15561
|
Container2 as Container,
|
|
@@ -15432,11 +15594,13 @@ export {
|
|
|
15432
15594
|
Link,
|
|
15433
15595
|
LinkList,
|
|
15434
15596
|
LinkWithRef,
|
|
15597
|
+
LoadingCardSkeleton2 as LoadingCardSkeleton,
|
|
15435
15598
|
LoadingIcon,
|
|
15436
15599
|
LoadingIndicator,
|
|
15437
15600
|
LoadingOverlay,
|
|
15438
15601
|
Menu,
|
|
15439
15602
|
MenuContext,
|
|
15603
|
+
MenuGroup,
|
|
15440
15604
|
MenuItem,
|
|
15441
15605
|
MenuItemSeparator,
|
|
15442
15606
|
PageHeaderSection,
|
|
@@ -15493,6 +15657,7 @@ export {
|
|
|
15493
15657
|
Theme,
|
|
15494
15658
|
TileContainer,
|
|
15495
15659
|
Tooltip,
|
|
15660
|
+
TwoColumnLayout,
|
|
15496
15661
|
UniformBadge,
|
|
15497
15662
|
UniformLogo,
|
|
15498
15663
|
VerticalRhythm,
|
|
@@ -15511,6 +15676,7 @@ export {
|
|
|
15511
15676
|
buttonUnimportant,
|
|
15512
15677
|
canvasAlertIcon,
|
|
15513
15678
|
cardIcon,
|
|
15679
|
+
cq,
|
|
15514
15680
|
customIcons,
|
|
15515
15681
|
extractParameterProps,
|
|
15516
15682
|
fadeIn,
|
|
@@ -15533,8 +15699,10 @@ export {
|
|
|
15533
15699
|
mq,
|
|
15534
15700
|
numberInput,
|
|
15535
15701
|
rectangleRoundedIcon,
|
|
15702
|
+
replaceUnderscoreInString,
|
|
15536
15703
|
ripple,
|
|
15537
15704
|
scrollbarStyles,
|
|
15705
|
+
settings,
|
|
15538
15706
|
skeletonLoading,
|
|
15539
15707
|
slideInTtb,
|
|
15540
15708
|
spinner_default as spinnerAnimationData,
|