@uniformdev/design-system 18.35.1-alpha.12 → 18.35.1-alpha.16
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 +1018 -857
- package/dist/index.d.ts +71 -24
- package/dist/index.js +1137 -969
- package/package.json +3 -3
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,102 +1277,10 @@ var customIcons = {
|
|
|
1175
1277
|
"number-input": numberInput,
|
|
1176
1278
|
"canvas-alert": canvasAlertIcon,
|
|
1177
1279
|
warning: warningIcon,
|
|
1178
|
-
"info-filled": infoFilledIcon
|
|
1280
|
+
"info-filled": infoFilledIcon,
|
|
1281
|
+
settings
|
|
1179
1282
|
};
|
|
1180
1283
|
|
|
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]] });
|
|
1271
|
-
};
|
|
1272
|
-
var Icon = React3.memo(IconInner);
|
|
1273
|
-
|
|
1274
1284
|
// src/components/AddListButton/AddListButton.styles.ts
|
|
1275
1285
|
import { css as css8 } from "@emotion/react";
|
|
1276
1286
|
var AddListButtonBtn = css8`
|
|
@@ -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);
|
|
@@ -10682,8 +10692,8 @@ var Menu = ({
|
|
|
10682
10692
|
}) => {
|
|
10683
10693
|
const menuState = useMenuState({ placement });
|
|
10684
10694
|
return /* @__PURE__ */ jsxs11(MenuContext.Provider, { value: menuState, children: [
|
|
10685
|
-
/* @__PURE__ */
|
|
10686
|
-
/* @__PURE__ */
|
|
10695
|
+
/* @__PURE__ */ jsx21(MenuButton, { ...menuState, ref: menuTrigger.ref, ...menuTrigger.props, children: (triggerProps) => React6.cloneElement(menuTrigger, triggerProps) }),
|
|
10696
|
+
/* @__PURE__ */ jsx21(Portal, { children: /* @__PURE__ */ jsx21(
|
|
10687
10697
|
BaseMenu,
|
|
10688
10698
|
{
|
|
10689
10699
|
...menuState,
|
|
@@ -10699,13 +10709,35 @@ var Menu = ({
|
|
|
10699
10709
|
] });
|
|
10700
10710
|
};
|
|
10701
10711
|
|
|
10712
|
+
// src/components/Menu/MenuGroup.styles.ts
|
|
10713
|
+
import { css as css20 } from "@emotion/react";
|
|
10714
|
+
var MenuGroupContainer = css20`
|
|
10715
|
+
display: flex;
|
|
10716
|
+
flex-direction: column;
|
|
10717
|
+
`;
|
|
10718
|
+
var MenuTitle = css20`
|
|
10719
|
+
color: var(--gray-400);
|
|
10720
|
+
font-size: var(--fs-xs);
|
|
10721
|
+
font-weight: var(--fw-bold);
|
|
10722
|
+
text-transform: uppercase;
|
|
10723
|
+
`;
|
|
10724
|
+
|
|
10725
|
+
// src/components/Menu/MenuGroup.tsx
|
|
10726
|
+
import { jsx as jsx22, jsxs as jsxs12 } from "@emotion/react/jsx-runtime";
|
|
10727
|
+
var MenuGroup = ({ title, children }) => {
|
|
10728
|
+
return /* @__PURE__ */ jsxs12("div", { css: MenuGroupContainer, "data-test-id": "menu-group", children: [
|
|
10729
|
+
/* @__PURE__ */ jsx22("span", { css: MenuTitle, children: title }),
|
|
10730
|
+
children
|
|
10731
|
+
] });
|
|
10732
|
+
};
|
|
10733
|
+
|
|
10702
10734
|
// src/components/Menu/MenuItem.tsx
|
|
10703
10735
|
import * as React7 from "react";
|
|
10704
10736
|
import { MenuItem as BaseMenuItem } from "reakit";
|
|
10705
10737
|
|
|
10706
10738
|
// src/components/Menu/MenuItem.styles.ts
|
|
10707
|
-
import { css as
|
|
10708
|
-
var menuItem = (textTheme) =>
|
|
10739
|
+
import { css as css21 } from "@emotion/react";
|
|
10740
|
+
var menuItem = (textTheme) => css21`
|
|
10709
10741
|
align-items: center;
|
|
10710
10742
|
border: none;
|
|
10711
10743
|
border-radius: var(--rounded-base);
|
|
@@ -10731,7 +10763,7 @@ var menuItem = (textTheme) => css20`
|
|
|
10731
10763
|
outline: none;
|
|
10732
10764
|
}
|
|
10733
10765
|
`;
|
|
10734
|
-
var menuItemWithIcon =
|
|
10766
|
+
var menuItemWithIcon = css21`
|
|
10735
10767
|
align-items: center;
|
|
10736
10768
|
display: flex;
|
|
10737
10769
|
justify-content: space-between;
|
|
@@ -10743,14 +10775,14 @@ var menuItemWithIcon = css20`
|
|
|
10743
10775
|
height: var(--spacing-base);
|
|
10744
10776
|
}
|
|
10745
10777
|
`;
|
|
10746
|
-
var menuItemSeparator =
|
|
10778
|
+
var menuItemSeparator = css21`
|
|
10747
10779
|
border-top: 1px solid var(--gray-300);
|
|
10748
10780
|
width: 100%;
|
|
10749
10781
|
margin-block: var(--spacing-sm);
|
|
10750
10782
|
`;
|
|
10751
10783
|
|
|
10752
10784
|
// src/components/Menu/MenuItem.tsx
|
|
10753
|
-
import { jsx as
|
|
10785
|
+
import { jsx as jsx23, jsxs as jsxs13 } from "@emotion/react/jsx-runtime";
|
|
10754
10786
|
var MenuItem = React7.forwardRef(
|
|
10755
10787
|
({ children, className, hideMenuOnClick = true, icon, textColor = "base", ...props }, ref) => {
|
|
10756
10788
|
const menuState = useMenuContext();
|
|
@@ -10767,7 +10799,7 @@ var MenuItem = React7.forwardRef(
|
|
|
10767
10799
|
};
|
|
10768
10800
|
const resolvedProps = hideMenuOnClick ? resolveProps(props) : props;
|
|
10769
10801
|
const resolvedChildren = typeof children === "function" ? children(resolvedProps) : children;
|
|
10770
|
-
return /* @__PURE__ */
|
|
10802
|
+
return /* @__PURE__ */ jsx23(
|
|
10771
10803
|
BaseMenuItem,
|
|
10772
10804
|
{
|
|
10773
10805
|
ref,
|
|
@@ -10783,7 +10815,7 @@ var MenuItem = React7.forwardRef(
|
|
|
10783
10815
|
}
|
|
10784
10816
|
);
|
|
10785
10817
|
function renderWithIcon(children, icon) {
|
|
10786
|
-
return /* @__PURE__ */
|
|
10818
|
+
return /* @__PURE__ */ jsxs13("span", { css: menuItemWithIcon, children: [
|
|
10787
10819
|
icon,
|
|
10788
10820
|
" ",
|
|
10789
10821
|
children
|
|
@@ -10791,12 +10823,12 @@ function renderWithIcon(children, icon) {
|
|
|
10791
10823
|
}
|
|
10792
10824
|
|
|
10793
10825
|
// src/components/Menu/MenuItemSeparator.tsx
|
|
10794
|
-
import { jsx as
|
|
10795
|
-
var MenuItemSeparator = () => /* @__PURE__ */
|
|
10826
|
+
import { jsx as jsx24 } from "@emotion/react/jsx-runtime";
|
|
10827
|
+
var MenuItemSeparator = () => /* @__PURE__ */ jsx24("hr", { css: menuItemSeparator });
|
|
10796
10828
|
|
|
10797
10829
|
// src/components/ButtonWithMenu/ButtonWithMenu.styles.ts
|
|
10798
|
-
import { css as
|
|
10799
|
-
var ButtonWithMenuContainer =
|
|
10830
|
+
import { css as css22 } from "@emotion/react";
|
|
10831
|
+
var ButtonWithMenuContainer = css22`
|
|
10800
10832
|
align-items: center;
|
|
10801
10833
|
border: 1px solid transparent;
|
|
10802
10834
|
border-radius: var(--rounded-sm);
|
|
@@ -10817,7 +10849,7 @@ var ButtonWithMenuContainer = css21`
|
|
|
10817
10849
|
border-color: var(--gray-700);
|
|
10818
10850
|
}
|
|
10819
10851
|
`;
|
|
10820
|
-
var ButtonWithMenuBtn =
|
|
10852
|
+
var ButtonWithMenuBtn = css22`
|
|
10821
10853
|
border: 1px solid transparent;
|
|
10822
10854
|
background: transparent;
|
|
10823
10855
|
border-radius: var(--rounded-base);
|
|
@@ -10840,33 +10872,33 @@ var ButtonWithMenuBtn = css21`
|
|
|
10840
10872
|
pointer-events: none;
|
|
10841
10873
|
}
|
|
10842
10874
|
`;
|
|
10843
|
-
var ButtonWithMenuIcon =
|
|
10875
|
+
var ButtonWithMenuIcon = css22`
|
|
10844
10876
|
padding: var(--spacing-sm);
|
|
10845
10877
|
border-left: 1px solid currentColor;
|
|
10846
10878
|
`;
|
|
10847
|
-
var buttonPrimary2 =
|
|
10879
|
+
var buttonPrimary2 = css22`
|
|
10848
10880
|
background: var(--brand-secondary-1);
|
|
10849
10881
|
color: var(--white);
|
|
10850
10882
|
`;
|
|
10851
|
-
var buttonPrimaryDisabled =
|
|
10883
|
+
var buttonPrimaryDisabled = css22`
|
|
10852
10884
|
background: var(--gray-300);
|
|
10853
10885
|
color: var(--white);
|
|
10854
10886
|
`;
|
|
10855
|
-
var buttonSecondary2 =
|
|
10887
|
+
var buttonSecondary2 = css22`
|
|
10856
10888
|
background: var(--brand-secondary-5);
|
|
10857
10889
|
color: var(--white);
|
|
10858
10890
|
`;
|
|
10859
|
-
var buttonSecondaryDisabled =
|
|
10891
|
+
var buttonSecondaryDisabled = css22`
|
|
10860
10892
|
${buttonPrimaryDisabled}
|
|
10861
10893
|
`;
|
|
10862
|
-
var buttonUnimportant2 =
|
|
10894
|
+
var buttonUnimportant2 = css22`
|
|
10863
10895
|
background: var(--brand-secondary-2);
|
|
10864
10896
|
color: var(--brand-secondary-1);
|
|
10865
10897
|
`;
|
|
10866
|
-
var buttonUnimportantDisabled =
|
|
10898
|
+
var buttonUnimportantDisabled = css22`
|
|
10867
10899
|
${buttonPrimaryDisabled}
|
|
10868
10900
|
`;
|
|
10869
|
-
var buttonGhost2 =
|
|
10901
|
+
var buttonGhost2 = css22`
|
|
10870
10902
|
background: transparent;
|
|
10871
10903
|
color: var(--brand-secondary-3);
|
|
10872
10904
|
|
|
@@ -10874,13 +10906,13 @@ var buttonGhost2 = css21`
|
|
|
10874
10906
|
border-color: var(--brand-secondary-3);
|
|
10875
10907
|
}
|
|
10876
10908
|
`;
|
|
10877
|
-
var buttonGhostDisabled =
|
|
10909
|
+
var buttonGhostDisabled = css22`
|
|
10878
10910
|
border-color: var(--gray-400);
|
|
10879
10911
|
color: var(--gray-400);
|
|
10880
10912
|
`;
|
|
10881
10913
|
|
|
10882
10914
|
// src/components/ButtonWithMenu/ButtonWithMenu.tsx
|
|
10883
|
-
import { jsx as
|
|
10915
|
+
import { jsx as jsx25, jsxs as jsxs14 } from "@emotion/react/jsx-runtime";
|
|
10884
10916
|
var ButtonWithMenu = ({
|
|
10885
10917
|
onButtonClick,
|
|
10886
10918
|
buttonType = "secondary",
|
|
@@ -10902,13 +10934,13 @@ var ButtonWithMenu = ({
|
|
|
10902
10934
|
ghost: buttonGhostDisabled,
|
|
10903
10935
|
unimportant: buttonUnimportantDisabled
|
|
10904
10936
|
};
|
|
10905
|
-
return /* @__PURE__ */
|
|
10937
|
+
return /* @__PURE__ */ jsxs14(
|
|
10906
10938
|
"div",
|
|
10907
10939
|
{
|
|
10908
10940
|
css: [ButtonWithMenuContainer, disabled ? buttonDisabledTheme[buttonType] : buttonTheme[buttonType]],
|
|
10909
10941
|
"data-test-id": "multioptions-button",
|
|
10910
10942
|
children: [
|
|
10911
|
-
/* @__PURE__ */
|
|
10943
|
+
/* @__PURE__ */ jsx25(
|
|
10912
10944
|
"button",
|
|
10913
10945
|
{
|
|
10914
10946
|
type: "button",
|
|
@@ -10920,12 +10952,12 @@ var ButtonWithMenu = ({
|
|
|
10920
10952
|
children: buttonText
|
|
10921
10953
|
}
|
|
10922
10954
|
),
|
|
10923
|
-
/* @__PURE__ */
|
|
10955
|
+
/* @__PURE__ */ jsx25(
|
|
10924
10956
|
Menu,
|
|
10925
10957
|
{
|
|
10926
10958
|
menuLabel: "buttonMenu",
|
|
10927
10959
|
placement,
|
|
10928
|
-
menuTrigger: /* @__PURE__ */
|
|
10960
|
+
menuTrigger: /* @__PURE__ */ jsx25("div", { css: ButtonWithMenuIcon, "data-test-id": "multioptions-button-call-menu", children: /* @__PURE__ */ jsx25(Icon, { icon: CgChevronDown, size: 24, iconColor: "currentColor" }) }),
|
|
10929
10961
|
children
|
|
10930
10962
|
}
|
|
10931
10963
|
)
|
|
@@ -10935,18 +10967,18 @@ var ButtonWithMenu = ({
|
|
|
10935
10967
|
};
|
|
10936
10968
|
|
|
10937
10969
|
// src/components/Callout/Callout.tsx
|
|
10938
|
-
import { css as
|
|
10970
|
+
import { css as css24 } from "@emotion/react";
|
|
10939
10971
|
|
|
10940
10972
|
// src/components/Callout/Callout.styles.ts
|
|
10941
|
-
import { css as
|
|
10942
|
-
var calloutContainer =
|
|
10973
|
+
import { css as css23 } from "@emotion/react";
|
|
10974
|
+
var calloutContainer = css23`
|
|
10943
10975
|
${functionalColors}
|
|
10944
10976
|
|
|
10945
10977
|
font-size: var(--fs-sm);
|
|
10946
10978
|
border-radius: var(--rounded-base);
|
|
10947
10979
|
padding: var(--spacing-base);
|
|
10948
10980
|
`;
|
|
10949
|
-
var calloutContainerCompact =
|
|
10981
|
+
var calloutContainerCompact = css23`
|
|
10950
10982
|
font-size: var(--fs-xs);
|
|
10951
10983
|
padding: var(--spacing-sm);
|
|
10952
10984
|
border-radius: 0 var(--rounded-base) var(--rounded-base) 0;
|
|
@@ -10958,32 +10990,32 @@ var calloutContainerCompact = css22`
|
|
|
10958
10990
|
--note-desc: var(--brand-secondary-1);
|
|
10959
10991
|
--success-desc: var(--brand-secondary-1);
|
|
10960
10992
|
`;
|
|
10961
|
-
var calloutInner =
|
|
10993
|
+
var calloutInner = css23`
|
|
10962
10994
|
display: flex;
|
|
10963
10995
|
gap: var(--spacing-sm);
|
|
10964
10996
|
`;
|
|
10965
|
-
var calloutBody =
|
|
10997
|
+
var calloutBody = css23`
|
|
10966
10998
|
display: flex;
|
|
10967
10999
|
flex-direction: column;
|
|
10968
11000
|
gap: var(--spacing-base);
|
|
10969
11001
|
`;
|
|
10970
|
-
var calloutBodyCompact =
|
|
11002
|
+
var calloutBodyCompact = css23`
|
|
10971
11003
|
gap: var(--spacing-xs);
|
|
10972
11004
|
`;
|
|
10973
|
-
var calloutIconWrap =
|
|
11005
|
+
var calloutIconWrap = css23`
|
|
10974
11006
|
flex-shrink: 0;
|
|
10975
11007
|
`;
|
|
10976
|
-
var calloutTitle =
|
|
11008
|
+
var calloutTitle = css23`
|
|
10977
11009
|
font-weight: var(--fw-bold);
|
|
10978
11010
|
`;
|
|
10979
|
-
var calloutIcon =
|
|
11011
|
+
var calloutIcon = css23`
|
|
10980
11012
|
width: 1.25rem;
|
|
10981
11013
|
height: 1.25rem;
|
|
10982
11014
|
`;
|
|
10983
11015
|
|
|
10984
11016
|
// src/components/Callout/CalloutIcons.tsx
|
|
10985
|
-
import { jsx as
|
|
10986
|
-
var InfoIcon = ({ ...props }) => /* @__PURE__ */
|
|
11017
|
+
import { jsx as jsx26 } from "@emotion/react/jsx-runtime";
|
|
11018
|
+
var InfoIcon = ({ ...props }) => /* @__PURE__ */ jsx26(
|
|
10987
11019
|
"svg",
|
|
10988
11020
|
{
|
|
10989
11021
|
role: "img",
|
|
@@ -10994,7 +11026,7 @@ var InfoIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
10994
11026
|
viewBox: "0 0 14 16",
|
|
10995
11027
|
fill: "currentColor",
|
|
10996
11028
|
...props,
|
|
10997
|
-
children: /* @__PURE__ */
|
|
11029
|
+
children: /* @__PURE__ */ jsx26(
|
|
10998
11030
|
"path",
|
|
10999
11031
|
{
|
|
11000
11032
|
fillRule: "evenodd",
|
|
@@ -11003,7 +11035,7 @@ var InfoIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
11003
11035
|
)
|
|
11004
11036
|
}
|
|
11005
11037
|
);
|
|
11006
|
-
var DangerIcon = ({ ...props }) => /* @__PURE__ */
|
|
11038
|
+
var DangerIcon = ({ ...props }) => /* @__PURE__ */ jsx26(
|
|
11007
11039
|
"svg",
|
|
11008
11040
|
{
|
|
11009
11041
|
role: "img",
|
|
@@ -11014,7 +11046,7 @@ var DangerIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
11014
11046
|
viewBox: "0 0 12 16",
|
|
11015
11047
|
fill: "currentColor",
|
|
11016
11048
|
...props,
|
|
11017
|
-
children: /* @__PURE__ */
|
|
11049
|
+
children: /* @__PURE__ */ jsx26(
|
|
11018
11050
|
"path",
|
|
11019
11051
|
{
|
|
11020
11052
|
fillRule: "evenodd",
|
|
@@ -11023,7 +11055,7 @@ var DangerIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
11023
11055
|
)
|
|
11024
11056
|
}
|
|
11025
11057
|
);
|
|
11026
|
-
var NoteIcon = ({ ...props }) => /* @__PURE__ */
|
|
11058
|
+
var NoteIcon = ({ ...props }) => /* @__PURE__ */ jsx26(
|
|
11027
11059
|
"svg",
|
|
11028
11060
|
{
|
|
11029
11061
|
role: "img",
|
|
@@ -11034,7 +11066,7 @@ var NoteIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
11034
11066
|
viewBox: "0 0 14 16",
|
|
11035
11067
|
fill: "currentColor",
|
|
11036
11068
|
...props,
|
|
11037
|
-
children: /* @__PURE__ */
|
|
11069
|
+
children: /* @__PURE__ */ jsx26(
|
|
11038
11070
|
"path",
|
|
11039
11071
|
{
|
|
11040
11072
|
fillRule: "evenodd",
|
|
@@ -11043,7 +11075,7 @@ var NoteIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
11043
11075
|
)
|
|
11044
11076
|
}
|
|
11045
11077
|
);
|
|
11046
|
-
var TipIcon = ({ ...props }) => /* @__PURE__ */
|
|
11078
|
+
var TipIcon = ({ ...props }) => /* @__PURE__ */ jsx26(
|
|
11047
11079
|
"svg",
|
|
11048
11080
|
{
|
|
11049
11081
|
role: "img",
|
|
@@ -11054,7 +11086,7 @@ var TipIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
11054
11086
|
viewBox: "0 0 12 16",
|
|
11055
11087
|
fill: "currentColor",
|
|
11056
11088
|
...props,
|
|
11057
|
-
children: /* @__PURE__ */
|
|
11089
|
+
children: /* @__PURE__ */ jsx26(
|
|
11058
11090
|
"path",
|
|
11059
11091
|
{
|
|
11060
11092
|
fillRule: "evenodd",
|
|
@@ -11063,7 +11095,7 @@ var TipIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
11063
11095
|
)
|
|
11064
11096
|
}
|
|
11065
11097
|
);
|
|
11066
|
-
var CautionIcon = ({ ...props }) => /* @__PURE__ */
|
|
11098
|
+
var CautionIcon = ({ ...props }) => /* @__PURE__ */ jsx26(
|
|
11067
11099
|
"svg",
|
|
11068
11100
|
{
|
|
11069
11101
|
role: "img",
|
|
@@ -11074,7 +11106,7 @@ var CautionIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
11074
11106
|
viewBox: "0 0 16 16",
|
|
11075
11107
|
fill: "currentColor",
|
|
11076
11108
|
...props,
|
|
11077
|
-
children: /* @__PURE__ */
|
|
11109
|
+
children: /* @__PURE__ */ jsx26(
|
|
11078
11110
|
"path",
|
|
11079
11111
|
{
|
|
11080
11112
|
fillRule: "evenodd",
|
|
@@ -11083,7 +11115,7 @@ var CautionIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
11083
11115
|
)
|
|
11084
11116
|
}
|
|
11085
11117
|
);
|
|
11086
|
-
var SuccessIcon = ({ ...props }) => /* @__PURE__ */
|
|
11118
|
+
var SuccessIcon = ({ ...props }) => /* @__PURE__ */ jsx26(
|
|
11087
11119
|
"svg",
|
|
11088
11120
|
{
|
|
11089
11121
|
role: "img",
|
|
@@ -11094,7 +11126,7 @@ var SuccessIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
11094
11126
|
fill: "currentColor",
|
|
11095
11127
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11096
11128
|
...props,
|
|
11097
|
-
children: /* @__PURE__ */
|
|
11129
|
+
children: /* @__PURE__ */ jsx26(
|
|
11098
11130
|
"path",
|
|
11099
11131
|
{
|
|
11100
11132
|
fillRule: "evenodd",
|
|
@@ -11106,95 +11138,95 @@ var SuccessIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
|
11106
11138
|
);
|
|
11107
11139
|
|
|
11108
11140
|
// src/components/Callout/Callout.tsx
|
|
11109
|
-
import { jsx as
|
|
11141
|
+
import { jsx as jsx27, jsxs as jsxs15 } from "@emotion/react/jsx-runtime";
|
|
11110
11142
|
var calloutTypeDataMap = {
|
|
11111
11143
|
caution: {
|
|
11112
11144
|
icon: CautionIcon,
|
|
11113
|
-
descriptionColor:
|
|
11145
|
+
descriptionColor: css24`
|
|
11114
11146
|
color: var(--caution-desc);
|
|
11115
11147
|
`,
|
|
11116
|
-
iconColor:
|
|
11148
|
+
iconColor: css24`
|
|
11117
11149
|
color: var(--caution-icon);
|
|
11118
11150
|
`,
|
|
11119
|
-
containerStyles:
|
|
11151
|
+
containerStyles: css24`
|
|
11120
11152
|
color: var(--caution-title);
|
|
11121
11153
|
background-color: var(--caution-container);
|
|
11122
11154
|
`
|
|
11123
11155
|
},
|
|
11124
11156
|
danger: {
|
|
11125
11157
|
icon: DangerIcon,
|
|
11126
|
-
descriptionColor:
|
|
11158
|
+
descriptionColor: css24`
|
|
11127
11159
|
color: var(--danger-desc);
|
|
11128
11160
|
`,
|
|
11129
|
-
iconColor:
|
|
11161
|
+
iconColor: css24`
|
|
11130
11162
|
color: var(--danger-icon);
|
|
11131
11163
|
`,
|
|
11132
|
-
containerStyles:
|
|
11164
|
+
containerStyles: css24`
|
|
11133
11165
|
color: var(--danger-title);
|
|
11134
11166
|
background-color: var(--danger-container);
|
|
11135
11167
|
`
|
|
11136
11168
|
},
|
|
11137
11169
|
error: {
|
|
11138
11170
|
icon: CautionIcon,
|
|
11139
|
-
descriptionColor:
|
|
11171
|
+
descriptionColor: css24`
|
|
11140
11172
|
color: var(--danger-desc);
|
|
11141
11173
|
`,
|
|
11142
|
-
iconColor:
|
|
11174
|
+
iconColor: css24`
|
|
11143
11175
|
color: var(--danger-icon);
|
|
11144
11176
|
`,
|
|
11145
|
-
containerStyles:
|
|
11177
|
+
containerStyles: css24`
|
|
11146
11178
|
color: var(--danger-title);
|
|
11147
11179
|
background-color: var(--danger-container);
|
|
11148
11180
|
`
|
|
11149
11181
|
},
|
|
11150
11182
|
info: {
|
|
11151
11183
|
icon: InfoIcon,
|
|
11152
|
-
descriptionColor:
|
|
11184
|
+
descriptionColor: css24`
|
|
11153
11185
|
color: var(--info-desc);
|
|
11154
11186
|
`,
|
|
11155
|
-
iconColor:
|
|
11187
|
+
iconColor: css24`
|
|
11156
11188
|
color: var(--info-icon);
|
|
11157
11189
|
`,
|
|
11158
|
-
containerStyles:
|
|
11190
|
+
containerStyles: css24`
|
|
11159
11191
|
color: var(--info-title);
|
|
11160
11192
|
background-color: var(--info-container);
|
|
11161
11193
|
`
|
|
11162
11194
|
},
|
|
11163
11195
|
note: {
|
|
11164
11196
|
icon: NoteIcon,
|
|
11165
|
-
descriptionColor:
|
|
11197
|
+
descriptionColor: css24`
|
|
11166
11198
|
color: var(--note-desc);
|
|
11167
11199
|
`,
|
|
11168
|
-
iconColor:
|
|
11200
|
+
iconColor: css24`
|
|
11169
11201
|
color: var(--note-icon);
|
|
11170
11202
|
`,
|
|
11171
|
-
containerStyles:
|
|
11203
|
+
containerStyles: css24`
|
|
11172
11204
|
color: var(--note-title);
|
|
11173
11205
|
background-color: var(--note-container);
|
|
11174
11206
|
`
|
|
11175
11207
|
},
|
|
11176
11208
|
success: {
|
|
11177
11209
|
icon: SuccessIcon,
|
|
11178
|
-
descriptionColor:
|
|
11210
|
+
descriptionColor: css24`
|
|
11179
11211
|
color: var(--success-desc);
|
|
11180
11212
|
`,
|
|
11181
|
-
iconColor:
|
|
11213
|
+
iconColor: css24`
|
|
11182
11214
|
color: var(--success-icon);
|
|
11183
11215
|
`,
|
|
11184
|
-
containerStyles:
|
|
11216
|
+
containerStyles: css24`
|
|
11185
11217
|
color: var(--success-title);
|
|
11186
11218
|
background-color: var(--success-container);
|
|
11187
11219
|
`
|
|
11188
11220
|
},
|
|
11189
11221
|
tip: {
|
|
11190
11222
|
icon: TipIcon,
|
|
11191
|
-
descriptionColor:
|
|
11223
|
+
descriptionColor: css24`
|
|
11192
11224
|
color: var(--success-desc);
|
|
11193
11225
|
`,
|
|
11194
|
-
iconColor:
|
|
11226
|
+
iconColor: css24`
|
|
11195
11227
|
color: var(--success-icon);
|
|
11196
11228
|
`,
|
|
11197
|
-
containerStyles:
|
|
11229
|
+
containerStyles: css24`
|
|
11198
11230
|
color: var(--success-title);
|
|
11199
11231
|
background-color: var(--success-container);
|
|
11200
11232
|
`
|
|
@@ -11206,7 +11238,7 @@ var Callout = ({ type = "info", compact = false, title, children, className }) =
|
|
|
11206
11238
|
return null;
|
|
11207
11239
|
}
|
|
11208
11240
|
const Icon2 = calloutTypeData.icon;
|
|
11209
|
-
return /* @__PURE__ */
|
|
11241
|
+
return /* @__PURE__ */ jsx27(
|
|
11210
11242
|
"div",
|
|
11211
11243
|
{
|
|
11212
11244
|
"data-testid": "sdk-ui-callout",
|
|
@@ -11217,11 +11249,11 @@ var Callout = ({ type = "info", compact = false, title, children, className }) =
|
|
|
11217
11249
|
typeof className === "object" ? className : ""
|
|
11218
11250
|
],
|
|
11219
11251
|
className: `${typeof className === "string" ? className : ""}`,
|
|
11220
|
-
children: /* @__PURE__ */
|
|
11221
|
-
compact ? null : /* @__PURE__ */
|
|
11222
|
-
/* @__PURE__ */
|
|
11223
|
-
title ? /* @__PURE__ */
|
|
11224
|
-
children ? /* @__PURE__ */
|
|
11252
|
+
children: /* @__PURE__ */ jsxs15("div", { css: calloutInner, children: [
|
|
11253
|
+
compact ? null : /* @__PURE__ */ jsx27("div", { css: calloutIconWrap, children: /* @__PURE__ */ jsx27(Icon2, { css: [calloutIcon, calloutTypeData.iconColor] }) }),
|
|
11254
|
+
/* @__PURE__ */ jsxs15("div", { css: [calloutBody, compact ? calloutBodyCompact : void 0], children: [
|
|
11255
|
+
title ? /* @__PURE__ */ jsx27("div", { css: [calloutTitle], children: title }) : null,
|
|
11256
|
+
children ? /* @__PURE__ */ jsx27("div", { css: [calloutTypeData.descriptionColor], children }) : null
|
|
11225
11257
|
] })
|
|
11226
11258
|
] })
|
|
11227
11259
|
}
|
|
@@ -11232,38 +11264,66 @@ var Callout = ({ type = "info", compact = false, title, children, className }) =
|
|
|
11232
11264
|
import { CgMoreAlt } from "react-icons/cg";
|
|
11233
11265
|
|
|
11234
11266
|
// src/components/Card/Card.styles.ts
|
|
11235
|
-
import { css as
|
|
11236
|
-
var CardContainer =
|
|
11267
|
+
import { css as css25 } from "@emotion/react";
|
|
11268
|
+
var CardContainer = css25`
|
|
11237
11269
|
background: var(--white);
|
|
11238
11270
|
border: 1px solid var(--gray-300);
|
|
11239
11271
|
border-radius: var(--rounded-base);
|
|
11240
11272
|
padding: var(--spacing-md);
|
|
11241
11273
|
position: relative;
|
|
11274
|
+
transition: background-color var(--duration-fast) var(--timing-ease-out);
|
|
11275
|
+
min-height: 160px;
|
|
11276
|
+
|
|
11277
|
+
&:hover {
|
|
11278
|
+
background: var(--gray-50);
|
|
11279
|
+
}
|
|
11242
11280
|
`;
|
|
11243
|
-
var CardTitle =
|
|
11244
|
-
|
|
11281
|
+
var CardTitle = (marginBottom) => css25`
|
|
11282
|
+
display: flex;
|
|
11283
|
+
margin: ${marginBottom ? "0 0 var(--spacing-base)" : "0"};
|
|
11245
11284
|
padding-right: var(--spacing-lg);
|
|
11285
|
+
word-break: break-word;
|
|
11286
|
+
gap: var(--spacing-xs);
|
|
11287
|
+
font-weight: var(--fw-regular);
|
|
11246
11288
|
`;
|
|
11247
|
-
var CardMenu =
|
|
11289
|
+
var CardMenu = css25`
|
|
11290
|
+
align-items: center;
|
|
11248
11291
|
background: transparent;
|
|
11292
|
+
color: var(--gray-300);
|
|
11249
11293
|
border: none;
|
|
11250
11294
|
padding: 0;
|
|
11251
11295
|
position: absolute;
|
|
11252
11296
|
top: var(--spacing-md);
|
|
11253
11297
|
right: var(--spacing-md);
|
|
11298
|
+
z-index: var(--z-10);
|
|
11299
|
+
transition: color var(--duration-fast) var(--timing-ease-out);
|
|
11300
|
+
|
|
11301
|
+
&:hover,
|
|
11302
|
+
&:focus,
|
|
11303
|
+
&:active,
|
|
11304
|
+
&[aria-expanded='true'] {
|
|
11305
|
+
color: var(--gray-500);
|
|
11306
|
+
}
|
|
11254
11307
|
`;
|
|
11255
11308
|
|
|
11256
11309
|
// src/components/Card/Card.tsx
|
|
11257
|
-
import { jsx as
|
|
11258
|
-
var Card = ({
|
|
11259
|
-
|
|
11260
|
-
|
|
11261
|
-
|
|
11262
|
-
|
|
11310
|
+
import { jsx as jsx28, jsxs as jsxs16 } from "@emotion/react/jsx-runtime";
|
|
11311
|
+
var Card = ({
|
|
11312
|
+
title,
|
|
11313
|
+
menuItems,
|
|
11314
|
+
children,
|
|
11315
|
+
titleWithMarginBottom = true,
|
|
11316
|
+
disabled,
|
|
11317
|
+
menuButtonTestId,
|
|
11318
|
+
...props
|
|
11319
|
+
}) => {
|
|
11320
|
+
return /* @__PURE__ */ jsxs16("div", { css: CardContainer, ...props, children: [
|
|
11321
|
+
title ? /* @__PURE__ */ jsx28(CardTitle2, { title, titleWithMarginBottom }) : null,
|
|
11322
|
+
menuItems ? /* @__PURE__ */ jsx28(
|
|
11263
11323
|
Menu,
|
|
11264
11324
|
{
|
|
11265
11325
|
menuLabel: "More options",
|
|
11266
|
-
menuTrigger: /* @__PURE__ */
|
|
11326
|
+
menuTrigger: /* @__PURE__ */ jsx28(
|
|
11267
11327
|
"button",
|
|
11268
11328
|
{
|
|
11269
11329
|
"aria-label": "More options",
|
|
@@ -11271,7 +11331,7 @@ var Card = ({ title, menuItems, children, disabled, menuButtonTestId, ...props }
|
|
|
11271
11331
|
disabled,
|
|
11272
11332
|
css: CardMenu,
|
|
11273
11333
|
"data-test-id": menuButtonTestId != null ? menuButtonTestId : "list-card-menu",
|
|
11274
|
-
children: /* @__PURE__ */
|
|
11334
|
+
children: /* @__PURE__ */ jsx28(Icon, { icon: CgMoreAlt, iconColor: "currentColor", size: 32 })
|
|
11275
11335
|
}
|
|
11276
11336
|
),
|
|
11277
11337
|
children: menuItems
|
|
@@ -11280,27 +11340,35 @@ var Card = ({ title, menuItems, children, disabled, menuButtonTestId, ...props }
|
|
|
11280
11340
|
children
|
|
11281
11341
|
] });
|
|
11282
11342
|
};
|
|
11343
|
+
var CardTitle2 = ({ title, titleWithMarginBottom, children }) => {
|
|
11344
|
+
const normalizeTitle = replaceUnderscoreInString(title);
|
|
11345
|
+
return /* @__PURE__ */ jsxs16(Heading, { level: 3, css: CardTitle(titleWithMarginBottom), children: [
|
|
11346
|
+
normalizeTitle,
|
|
11347
|
+
children
|
|
11348
|
+
] });
|
|
11349
|
+
};
|
|
11283
11350
|
|
|
11284
11351
|
// src/components/Card/CardContainer.styles.ts
|
|
11285
|
-
import { css as
|
|
11286
|
-
var CardContainerWrapper = (bgColor) =>
|
|
11352
|
+
import { css as css26 } from "@emotion/react";
|
|
11353
|
+
var CardContainerWrapper = (bgColor) => css26`
|
|
11287
11354
|
background: ${bgColor === "gray" ? `var(--gray-50)` : `var(--white)`};
|
|
11355
|
+
container-type: inline-size;
|
|
11288
11356
|
`;
|
|
11289
|
-
var CardContainerInner = ({ padding, withLastColumn }) =>
|
|
11357
|
+
var CardContainerInner = ({ padding, withLastColumn }) => css26`
|
|
11290
11358
|
display: grid;
|
|
11291
11359
|
gap: var(--spacing-lg);
|
|
11292
11360
|
max-width: var(--site-width);
|
|
11293
11361
|
margin: 0 auto;
|
|
11294
11362
|
padding: ${padding ? "var(--spacing-2xl) var(--spacing-lg)" : "0"};
|
|
11295
11363
|
|
|
11296
|
-
${
|
|
11364
|
+
${cq("640px")} {
|
|
11297
11365
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) ${withLastColumn && "[last-col] minmax(300px, 1fr)"};
|
|
11298
11366
|
${withLastColumn && `grid-template-rows: auto [last-line]`};
|
|
11299
11367
|
}
|
|
11300
11368
|
`;
|
|
11301
11369
|
|
|
11302
11370
|
// src/components/Card/CardContainer.tsx
|
|
11303
|
-
import { jsx as
|
|
11371
|
+
import { jsx as jsx29 } from "@emotion/react/jsx-runtime";
|
|
11304
11372
|
var CardContainer2 = ({
|
|
11305
11373
|
bgColor = "white",
|
|
11306
11374
|
padding = true,
|
|
@@ -11308,12 +11376,151 @@ var CardContainer2 = ({
|
|
|
11308
11376
|
children,
|
|
11309
11377
|
...props
|
|
11310
11378
|
}) => {
|
|
11311
|
-
return /* @__PURE__ */
|
|
11379
|
+
return /* @__PURE__ */ jsx29("div", { css: CardContainerWrapper(bgColor), ...props, children: /* @__PURE__ */ jsx29("div", { css: CardContainerInner({ padding, withLastColumn }), children }) });
|
|
11380
|
+
};
|
|
11381
|
+
|
|
11382
|
+
// src/components/Card/LoadingCardSkeleton.tsx
|
|
11383
|
+
import { CgMoreAlt as CgMoreAlt2 } from "react-icons/cg";
|
|
11384
|
+
|
|
11385
|
+
// src/components/Card/LoadingCardSkeleton.styles.ts
|
|
11386
|
+
import { css as css27 } from "@emotion/react";
|
|
11387
|
+
var LoadingCardSkeleton = css27`
|
|
11388
|
+
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
11389
|
+
color: var(--gray-400);
|
|
11390
|
+
border-radius: var(--rounded-base);
|
|
11391
|
+
padding: var(--spacing-md);
|
|
11392
|
+
min-height: 160px;
|
|
11393
|
+
position: relative;
|
|
11394
|
+
`;
|
|
11395
|
+
var LoadingText = css27`
|
|
11396
|
+
animation: ${fadeIn} 1s linear infinite alternate;
|
|
11397
|
+
border-radius: var(--rounded-base);
|
|
11398
|
+
background: var(--gray-300);
|
|
11399
|
+
display: block;
|
|
11400
|
+
`;
|
|
11401
|
+
var LoadingTitle = css27`
|
|
11402
|
+
width: clamp(200px, 100vw, 60%);
|
|
11403
|
+
height: var(--spacing-md);
|
|
11404
|
+
`;
|
|
11405
|
+
var LoadingTimeStamp = css27`
|
|
11406
|
+
width: clamp(200px, 100vw, 30%);
|
|
11407
|
+
height: var(--spacing-sm);
|
|
11408
|
+
`;
|
|
11409
|
+
var LoadingMenuIcon = css27`
|
|
11410
|
+
animation: ${fadeIn} 1s linear infinite alternate;
|
|
11411
|
+
position: absolute;
|
|
11412
|
+
top: var(--spacing-md);
|
|
11413
|
+
right: var(--spacing-md);
|
|
11414
|
+
`;
|
|
11415
|
+
|
|
11416
|
+
// src/components/Layout/styles/Container.styles.ts
|
|
11417
|
+
import { css as css28 } from "@emotion/react";
|
|
11418
|
+
var Container = ({ backgroundColor, border, rounded, padding, margin }) => css28`
|
|
11419
|
+
background: var(--${backgroundColor});
|
|
11420
|
+
${border ? "border: 1px solid var(--gray-300)" : void 0};
|
|
11421
|
+
${rounded ? `border-radius: var(--${rounded})` : void 0};
|
|
11422
|
+
${padding ? `padding: ${padding}` : void 0};
|
|
11423
|
+
${margin ? `margin: ${margin}` : void 0};
|
|
11424
|
+
`;
|
|
11425
|
+
|
|
11426
|
+
// src/components/Layout/Container.tsx
|
|
11427
|
+
import { jsx as jsx30 } from "@emotion/react/jsx-runtime";
|
|
11428
|
+
var Container2 = ({
|
|
11429
|
+
tag = "div",
|
|
11430
|
+
backgroundColor = "white",
|
|
11431
|
+
border,
|
|
11432
|
+
rounded,
|
|
11433
|
+
padding,
|
|
11434
|
+
margin,
|
|
11435
|
+
children,
|
|
11436
|
+
...props
|
|
11437
|
+
}) => {
|
|
11438
|
+
const Tag = tag;
|
|
11439
|
+
return /* @__PURE__ */ jsx30(
|
|
11440
|
+
Tag,
|
|
11441
|
+
{
|
|
11442
|
+
css: Container({
|
|
11443
|
+
backgroundColor,
|
|
11444
|
+
border,
|
|
11445
|
+
rounded,
|
|
11446
|
+
padding,
|
|
11447
|
+
margin
|
|
11448
|
+
}),
|
|
11449
|
+
...props,
|
|
11450
|
+
children
|
|
11451
|
+
}
|
|
11452
|
+
);
|
|
11453
|
+
};
|
|
11454
|
+
|
|
11455
|
+
// src/components/Layout/styles/TwoColumnLayout.styles.ts
|
|
11456
|
+
import { css as css29 } from "@emotion/react";
|
|
11457
|
+
var TwoColumnLayoutContainer = (bgColor) => css29`
|
|
11458
|
+
background: ${bgColor};
|
|
11459
|
+
`;
|
|
11460
|
+
var TwoColumnLayoutInner = (invertLayout) => css29`
|
|
11461
|
+
display: grid;
|
|
11462
|
+
max-width: var(--site-width);
|
|
11463
|
+
margin-inline: auto;
|
|
11464
|
+
gap: var(--spacing-base);
|
|
11465
|
+
padding: var(--spacing-md) var(--spacing-lg);
|
|
11466
|
+
|
|
11467
|
+
${mq("md")} {
|
|
11468
|
+
grid-template-columns: ${!invertLayout ? "minmax(0, 1fr) minmax(300px, 0.25fr)" : "minmax(300px, 0.25fr) minmax(0, 1fr)"};
|
|
11469
|
+
gap: var(--spacing-lg);
|
|
11470
|
+
|
|
11471
|
+
${invertLayout && `> section {
|
|
11472
|
+
order: 1;
|
|
11473
|
+
}`}
|
|
11474
|
+
}
|
|
11475
|
+
`;
|
|
11476
|
+
var TwoColumnLayoutMain = css29``;
|
|
11477
|
+
var TwoColumnLayoutSupporting = css29`
|
|
11478
|
+
display: flex;
|
|
11479
|
+
flex-direction: column;
|
|
11480
|
+
`;
|
|
11481
|
+
|
|
11482
|
+
// src/components/Layout/TwoColumnLayout.tsx
|
|
11483
|
+
import { jsx as jsx31, jsxs as jsxs17 } from "@emotion/react/jsx-runtime";
|
|
11484
|
+
var TwoColumnLayout = ({
|
|
11485
|
+
bgColor = "var(--white)",
|
|
11486
|
+
invertLayout = false,
|
|
11487
|
+
supportingContent,
|
|
11488
|
+
children
|
|
11489
|
+
}) => {
|
|
11490
|
+
return /* @__PURE__ */ jsx31("div", { css: TwoColumnLayoutContainer(bgColor), children: /* @__PURE__ */ jsxs17("div", { css: TwoColumnLayoutInner(invertLayout), children: [
|
|
11491
|
+
/* @__PURE__ */ jsx31("section", { css: TwoColumnLayoutMain, children }),
|
|
11492
|
+
/* @__PURE__ */ jsx31("aside", { css: TwoColumnLayoutSupporting, children: supportingContent })
|
|
11493
|
+
] }) });
|
|
11494
|
+
};
|
|
11495
|
+
|
|
11496
|
+
// src/components/Layout/styles/VerticalRhythm.styles.ts
|
|
11497
|
+
import { css as css30 } from "@emotion/react";
|
|
11498
|
+
var VerticalRhythmContainer = (size) => css30`
|
|
11499
|
+
display: flex;
|
|
11500
|
+
flex-direction: column;
|
|
11501
|
+
gap: var(--spacing-${size});
|
|
11502
|
+
`;
|
|
11503
|
+
|
|
11504
|
+
// src/components/Layout/VerticalRhythm.tsx
|
|
11505
|
+
import { jsx as jsx32 } from "@emotion/react/jsx-runtime";
|
|
11506
|
+
var VerticalRhythm = ({ tag = "div", gap = "base", children, ...props }) => {
|
|
11507
|
+
const Tag = tag;
|
|
11508
|
+
return /* @__PURE__ */ jsx32(Tag, { css: VerticalRhythmContainer(gap), ...props, children });
|
|
11509
|
+
};
|
|
11510
|
+
|
|
11511
|
+
// src/components/Card/LoadingCardSkeleton.tsx
|
|
11512
|
+
import { jsx as jsx33, jsxs as jsxs18 } from "@emotion/react/jsx-runtime";
|
|
11513
|
+
var LoadingCardSkeleton2 = () => {
|
|
11514
|
+
return /* @__PURE__ */ jsxs18(VerticalRhythm, { css: LoadingCardSkeleton, children: [
|
|
11515
|
+
/* @__PURE__ */ jsx33("span", { css: [LoadingText, LoadingTitle] }),
|
|
11516
|
+
/* @__PURE__ */ jsx33("span", { css: [LoadingText, LoadingTimeStamp] }),
|
|
11517
|
+
/* @__PURE__ */ jsx33(Icon, { css: LoadingMenuIcon, icon: CgMoreAlt2, iconColor: "currentColor", size: 32 })
|
|
11518
|
+
] });
|
|
11312
11519
|
};
|
|
11313
11520
|
|
|
11314
11521
|
// src/components/Counter/Counter.styles.ts
|
|
11315
|
-
import { css as
|
|
11316
|
-
var counterContainer =
|
|
11522
|
+
import { css as css31 } from "@emotion/react";
|
|
11523
|
+
var counterContainer = css31`
|
|
11317
11524
|
align-items: center;
|
|
11318
11525
|
border-radius: var(--rounded-full);
|
|
11319
11526
|
border: 1px solid var(--gray-300);
|
|
@@ -11325,16 +11532,16 @@ var counterContainer = css26`
|
|
|
11325
11532
|
width: var(--spacing-base);
|
|
11326
11533
|
height: var(--spacing-base);
|
|
11327
11534
|
`;
|
|
11328
|
-
var counterZeroValue =
|
|
11535
|
+
var counterZeroValue = css31`
|
|
11329
11536
|
background: var(--brand-secondary-1);
|
|
11330
11537
|
border-radius: var(--rounded-full);
|
|
11331
11538
|
width: 2px;
|
|
11332
11539
|
height: 2px;
|
|
11333
11540
|
`;
|
|
11334
|
-
var counterTripleValue =
|
|
11541
|
+
var counterTripleValue = css31`
|
|
11335
11542
|
position: relative;
|
|
11336
11543
|
`;
|
|
11337
|
-
var counterIcon =
|
|
11544
|
+
var counterIcon = css31`
|
|
11338
11545
|
border-radius: var(--rounded-full);
|
|
11339
11546
|
background: var(--white);
|
|
11340
11547
|
color: var(--brand-secondary-3);
|
|
@@ -11345,21 +11552,21 @@ var counterIcon = css26`
|
|
|
11345
11552
|
`;
|
|
11346
11553
|
|
|
11347
11554
|
// src/components/Counter/Counter.tsx
|
|
11348
|
-
import { jsx as
|
|
11555
|
+
import { jsx as jsx34, jsxs as jsxs19 } from "@emotion/react/jsx-runtime";
|
|
11349
11556
|
var Counter = ({ count }) => {
|
|
11350
11557
|
if (typeof count === "undefined") {
|
|
11351
11558
|
return null;
|
|
11352
11559
|
}
|
|
11353
|
-
const isTripleDigits = count > 99 ? /* @__PURE__ */
|
|
11560
|
+
const isTripleDigits = count > 99 ? /* @__PURE__ */ jsxs19("span", { css: counterTripleValue, title: `${count}`, children: [
|
|
11354
11561
|
"99",
|
|
11355
|
-
/* @__PURE__ */
|
|
11562
|
+
/* @__PURE__ */ jsx34(Icon, { icon: "math-plus", iconColor: "currentColor", size: "0.5rem", css: counterIcon })
|
|
11356
11563
|
] }) : count;
|
|
11357
|
-
const formatCount = count === 0 ? /* @__PURE__ */
|
|
11358
|
-
return /* @__PURE__ */
|
|
11564
|
+
const formatCount = count === 0 ? /* @__PURE__ */ jsx34("span", { css: counterZeroValue, title: `${count}` }) : isTripleDigits;
|
|
11565
|
+
return /* @__PURE__ */ jsx34("div", { css: counterContainer, children: formatCount });
|
|
11359
11566
|
};
|
|
11360
11567
|
|
|
11361
11568
|
// src/components/DashedBox/DashedBox.styles.ts
|
|
11362
|
-
import { css as
|
|
11569
|
+
import { css as css32 } from "@emotion/react";
|
|
11363
11570
|
var minHeight = (prop) => {
|
|
11364
11571
|
const values = {
|
|
11365
11572
|
auto: "auto",
|
|
@@ -11378,7 +11585,7 @@ var alignItemsConvert = (props) => {
|
|
|
11378
11585
|
};
|
|
11379
11586
|
return alignment[props];
|
|
11380
11587
|
};
|
|
11381
|
-
var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) =>
|
|
11588
|
+
var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) => css32`
|
|
11382
11589
|
align-items: ${alignItemsConvert(textAlign)};
|
|
11383
11590
|
border: 2px dashed var(--gray-300);
|
|
11384
11591
|
border-radius: var(--rounded-base);
|
|
@@ -11393,7 +11600,7 @@ var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) => css27`
|
|
|
11393
11600
|
`;
|
|
11394
11601
|
|
|
11395
11602
|
// src/components/DashedBox/DashedBox.tsx
|
|
11396
|
-
import { jsx as
|
|
11603
|
+
import { jsx as jsx35 } from "@emotion/react/jsx-runtime";
|
|
11397
11604
|
var DashedBox = ({
|
|
11398
11605
|
bgColor = "transparent",
|
|
11399
11606
|
textAlign = "center",
|
|
@@ -11401,15 +11608,15 @@ var DashedBox = ({
|
|
|
11401
11608
|
children,
|
|
11402
11609
|
...props
|
|
11403
11610
|
}) => {
|
|
11404
|
-
return /* @__PURE__ */
|
|
11611
|
+
return /* @__PURE__ */ jsx35("div", { css: DashedBoxContainer({ bgColor, boxHeight, textAlign }), ...props, children });
|
|
11405
11612
|
};
|
|
11406
11613
|
|
|
11407
11614
|
// src/components/Details/Details.tsx
|
|
11408
11615
|
import * as React8 from "react";
|
|
11409
11616
|
|
|
11410
11617
|
// src/components/Details/Details.styles.ts
|
|
11411
|
-
import { css as
|
|
11412
|
-
var details =
|
|
11618
|
+
import { css as css33 } from "@emotion/react";
|
|
11619
|
+
var details = css33`
|
|
11413
11620
|
cursor: pointer;
|
|
11414
11621
|
&[open] {
|
|
11415
11622
|
& > summary svg {
|
|
@@ -11417,11 +11624,11 @@ var details = css28`
|
|
|
11417
11624
|
}
|
|
11418
11625
|
}
|
|
11419
11626
|
`;
|
|
11420
|
-
var detailsContent =
|
|
11627
|
+
var detailsContent = css33`
|
|
11421
11628
|
animation: ${fadeInRtl} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
11422
11629
|
will-change: height;
|
|
11423
11630
|
`;
|
|
11424
|
-
var summary =
|
|
11631
|
+
var summary = css33`
|
|
11425
11632
|
align-items: center;
|
|
11426
11633
|
display: grid;
|
|
11427
11634
|
grid-template-columns: 1.25rem 1fr;
|
|
@@ -11434,16 +11641,16 @@ var summary = css28`
|
|
|
11434
11641
|
display: none;
|
|
11435
11642
|
}
|
|
11436
11643
|
`;
|
|
11437
|
-
var summaryIcon =
|
|
11644
|
+
var summaryIcon = css33`
|
|
11438
11645
|
transition: rotate var(--duration-fast) var(--timing-ease-out);
|
|
11439
11646
|
rotate: -90deg;
|
|
11440
11647
|
`;
|
|
11441
|
-
var summaryIconVisiblyHidden =
|
|
11648
|
+
var summaryIconVisiblyHidden = css33`
|
|
11442
11649
|
visibility: hidden;
|
|
11443
11650
|
`;
|
|
11444
11651
|
|
|
11445
11652
|
// src/components/Details/Details.tsx
|
|
11446
|
-
import { jsx as
|
|
11653
|
+
import { jsx as jsx36, jsxs as jsxs20 } from "@emotion/react/jsx-runtime";
|
|
11447
11654
|
var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props }) => {
|
|
11448
11655
|
const detailsRef = React8.useRef(null);
|
|
11449
11656
|
const [open, setOpen] = React8.useState(isOpenByDefault);
|
|
@@ -11463,9 +11670,9 @@ var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props
|
|
|
11463
11670
|
return (_a2 = detailsRef.current) == null ? void 0 : _a2.removeEventListener("toggle", toggleEvent);
|
|
11464
11671
|
};
|
|
11465
11672
|
}, [detailsRef]);
|
|
11466
|
-
return /* @__PURE__ */
|
|
11467
|
-
/* @__PURE__ */
|
|
11468
|
-
/* @__PURE__ */
|
|
11673
|
+
return /* @__PURE__ */ jsxs20("details", { "data-testid": "details", css: details, open, ref: detailsRef, ...props, children: [
|
|
11674
|
+
/* @__PURE__ */ jsxs20("summary", { "data-testid": "summary", css: summary, children: [
|
|
11675
|
+
/* @__PURE__ */ jsx36(
|
|
11469
11676
|
Icon,
|
|
11470
11677
|
{
|
|
11471
11678
|
css: [!children ? summaryIconVisiblyHidden : void 0, summaryIcon],
|
|
@@ -11476,7 +11683,7 @@ var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props
|
|
|
11476
11683
|
),
|
|
11477
11684
|
summary2
|
|
11478
11685
|
] }),
|
|
11479
|
-
open ? /* @__PURE__ */
|
|
11686
|
+
open ? /* @__PURE__ */ jsx36("div", { "data-testid": "details-content", css: detailsContent, children }) : null
|
|
11480
11687
|
] });
|
|
11481
11688
|
};
|
|
11482
11689
|
|
|
@@ -11485,8 +11692,8 @@ import React11, { useEffect as useEffect5, useMemo, useRef as useRef2 } from "re
|
|
|
11485
11692
|
import { CgChevronRight } from "react-icons/cg";
|
|
11486
11693
|
|
|
11487
11694
|
// src/components/Drawer/Drawer.styles.ts
|
|
11488
|
-
import { css as
|
|
11489
|
-
var drawerStyles = (bgColor = "var(--white)") =>
|
|
11695
|
+
import { css as css34, keyframes as keyframes2 } from "@emotion/react";
|
|
11696
|
+
var drawerStyles = (bgColor = "var(--white)") => css34`
|
|
11490
11697
|
background-color: ${bgColor};
|
|
11491
11698
|
display: flex;
|
|
11492
11699
|
gap: var(--spacing-sm);
|
|
@@ -11496,7 +11703,7 @@ var drawerStyles = (bgColor = "var(--white)") => css29`
|
|
|
11496
11703
|
padding-top: var(--spacing-sm);
|
|
11497
11704
|
height: 100%;
|
|
11498
11705
|
`;
|
|
11499
|
-
var drawerCloseButtonStyles =
|
|
11706
|
+
var drawerCloseButtonStyles = css34`
|
|
11500
11707
|
align-self: flex-end;
|
|
11501
11708
|
background: transparent;
|
|
11502
11709
|
border: none;
|
|
@@ -11504,17 +11711,17 @@ var drawerCloseButtonStyles = css29`
|
|
|
11504
11711
|
padding: var(--spacing-xs);
|
|
11505
11712
|
margin-right: var(--spacing-sm);
|
|
11506
11713
|
`;
|
|
11507
|
-
var drawerHeaderStyles =
|
|
11714
|
+
var drawerHeaderStyles = css34`
|
|
11508
11715
|
font-size: var(--fs-lg);
|
|
11509
11716
|
font-weight: var(--fw-bold);
|
|
11510
11717
|
padding-inline: var(--spacing-base);
|
|
11511
11718
|
`;
|
|
11512
|
-
var drawerRendererStyles =
|
|
11719
|
+
var drawerRendererStyles = css34`
|
|
11513
11720
|
inset: 0;
|
|
11514
11721
|
overflow: hidden;
|
|
11515
11722
|
z-index: 40;
|
|
11516
11723
|
`;
|
|
11517
|
-
var drawerInnerStyles =
|
|
11724
|
+
var drawerInnerStyles = css34`
|
|
11518
11725
|
height: 100%;
|
|
11519
11726
|
padding: 0 var(--spacing-base) var(--spacing-base);
|
|
11520
11727
|
overflow: auto;
|
|
@@ -11535,7 +11742,7 @@ var slideDrawerIn = keyframes2`
|
|
|
11535
11742
|
transform: translate(0);
|
|
11536
11743
|
}
|
|
11537
11744
|
`;
|
|
11538
|
-
var drawerWrapperStyles =
|
|
11745
|
+
var drawerWrapperStyles = css34`
|
|
11539
11746
|
position: absolute;
|
|
11540
11747
|
inset-block: 0;
|
|
11541
11748
|
right: 0;
|
|
@@ -11546,7 +11753,7 @@ var drawerWrapperStyles = css29`
|
|
|
11546
11753
|
transition: width var(--duration-fast) ease-out;
|
|
11547
11754
|
box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
|
|
11548
11755
|
`;
|
|
11549
|
-
var drawerWrapperOverlayStyles =
|
|
11756
|
+
var drawerWrapperOverlayStyles = css34`
|
|
11550
11757
|
position: absolute;
|
|
11551
11758
|
inset: 0;
|
|
11552
11759
|
background: rgba(31, 43, 52, 0.4);
|
|
@@ -11555,7 +11762,7 @@ var drawerWrapperOverlayStyles = css29`
|
|
|
11555
11762
|
|
|
11556
11763
|
// src/components/Drawer/DrawerProvider.tsx
|
|
11557
11764
|
import { createContext as createContext3, useCallback, useContext as useContext4, useState as useState4 } from "react";
|
|
11558
|
-
import { jsx as
|
|
11765
|
+
import { jsx as jsx37 } from "@emotion/react/jsx-runtime";
|
|
11559
11766
|
var DrawerContext = createContext3({
|
|
11560
11767
|
drawersRegistry: [],
|
|
11561
11768
|
registerDrawer: () => {
|
|
@@ -11604,7 +11811,7 @@ var DrawerProvider = ({ children }) => {
|
|
|
11604
11811
|
},
|
|
11605
11812
|
[setDrawersRegistry]
|
|
11606
11813
|
);
|
|
11607
|
-
return /* @__PURE__ */
|
|
11814
|
+
return /* @__PURE__ */ jsx37(DrawerContext.Provider, { value: { drawersRegistry, registerDrawer, unregisterDrawer }, children });
|
|
11608
11815
|
};
|
|
11609
11816
|
var useDrawer = () => {
|
|
11610
11817
|
return useContext4(DrawerContext);
|
|
@@ -11625,7 +11832,7 @@ function isEqualDrawerInstance(a, b) {
|
|
|
11625
11832
|
|
|
11626
11833
|
// src/components/Drawer/DrawerRenderer.tsx
|
|
11627
11834
|
import { createContext as createContext4, useContext as useContext5 } from "react";
|
|
11628
|
-
import { Fragment as Fragment4, jsx as
|
|
11835
|
+
import { Fragment as Fragment4, jsx as jsx38, jsxs as jsxs21 } from "@emotion/react/jsx-runtime";
|
|
11629
11836
|
var maxLayeringInPx = 64;
|
|
11630
11837
|
var idealDistanceBetweenLayersInPx = 16;
|
|
11631
11838
|
var CurrentDrawerRendererContext = createContext4({});
|
|
@@ -11645,7 +11852,7 @@ var DrawerRenderer = ({
|
|
|
11645
11852
|
if (drawersToRender.length === 0) {
|
|
11646
11853
|
return null;
|
|
11647
11854
|
}
|
|
11648
|
-
return /* @__PURE__ */
|
|
11855
|
+
return /* @__PURE__ */ jsx38(CurrentDrawerRendererContext.Provider, { value: { stackId }, children: /* @__PURE__ */ jsx38(
|
|
11649
11856
|
"div",
|
|
11650
11857
|
{
|
|
11651
11858
|
css: [
|
|
@@ -11654,7 +11861,7 @@ var DrawerRenderer = ({
|
|
|
11654
11861
|
position === "sticky" ? { height: "100%", marginTop: "-100%" } : void 0
|
|
11655
11862
|
],
|
|
11656
11863
|
...otherProps,
|
|
11657
|
-
children: drawersToRender.map(({ component, id, stackId: stackId2, onRequestClose }, index) => /* @__PURE__ */
|
|
11864
|
+
children: drawersToRender.map(({ component, id, stackId: stackId2, onRequestClose }, index) => /* @__PURE__ */ jsx38(
|
|
11658
11865
|
DrawerWrapper,
|
|
11659
11866
|
{
|
|
11660
11867
|
index,
|
|
@@ -11685,22 +11892,22 @@ var DrawerWrapper = ({
|
|
|
11685
11892
|
offsetInPx = Math.round(maxLayeringInPx * relativeLevel);
|
|
11686
11893
|
}
|
|
11687
11894
|
const calculatedWidth = `calc(${width} - ${offsetInPx}px)`;
|
|
11688
|
-
return /* @__PURE__ */
|
|
11689
|
-
/* @__PURE__ */
|
|
11690
|
-
/* @__PURE__ */
|
|
11895
|
+
return /* @__PURE__ */ jsxs21(Fragment4, { children: [
|
|
11896
|
+
/* @__PURE__ */ jsx38("div", { css: drawerWrapperOverlayStyles, onClick: onOverlayClick }),
|
|
11897
|
+
/* @__PURE__ */ jsx38("div", { css: [drawerWrapperStyles, { width: calculatedWidth, minWidth, maxWidth }], children })
|
|
11691
11898
|
] });
|
|
11692
11899
|
};
|
|
11693
11900
|
|
|
11694
11901
|
// src/components/Drawer/Drawer.tsx
|
|
11695
|
-
import { jsx as
|
|
11902
|
+
import { jsx as jsx39, jsxs as jsxs22 } from "@emotion/react/jsx-runtime";
|
|
11696
11903
|
var defaultSackId = "_default";
|
|
11697
11904
|
var Drawer = React11.forwardRef(
|
|
11698
11905
|
({ width, minWidth, maxWidth, position, ...drawerProps }, ref) => {
|
|
11699
11906
|
const drawerRendererProps = { width, minWidth, maxWidth, position };
|
|
11700
11907
|
const { stackId: inheritedStackId } = useCurrentDrawerRenderer();
|
|
11701
|
-
return inheritedStackId ? /* @__PURE__ */
|
|
11702
|
-
/* @__PURE__ */
|
|
11703
|
-
/* @__PURE__ */
|
|
11908
|
+
return inheritedStackId ? /* @__PURE__ */ jsx39(DrawerInner, { ref, ...drawerProps, stackId: inheritedStackId }) : drawerProps.stackId ? /* @__PURE__ */ jsx39(DrawerInner, { ref, ...drawerProps }) : /* @__PURE__ */ jsxs22(DrawerProvider, { children: [
|
|
11909
|
+
/* @__PURE__ */ jsx39(DrawerInner, { ref, ...drawerProps }),
|
|
11910
|
+
/* @__PURE__ */ jsx39(DrawerRenderer, { stackId: defaultSackId, ...drawerRendererProps })
|
|
11704
11911
|
] });
|
|
11705
11912
|
}
|
|
11706
11913
|
);
|
|
@@ -11718,7 +11925,7 @@ var DrawerInner = ({
|
|
|
11718
11925
|
const closeButtonRef = useRef2(null);
|
|
11719
11926
|
const component = useMemo(() => {
|
|
11720
11927
|
const headerId = `dialog-header-${stackId}-${id}`;
|
|
11721
|
-
return /* @__PURE__ */
|
|
11928
|
+
return /* @__PURE__ */ jsxs22(
|
|
11722
11929
|
"div",
|
|
11723
11930
|
{
|
|
11724
11931
|
ref,
|
|
@@ -11729,7 +11936,7 @@ var DrawerInner = ({
|
|
|
11729
11936
|
css: drawerStyles(bgColor),
|
|
11730
11937
|
"data-test-id": "side-dialog",
|
|
11731
11938
|
children: [
|
|
11732
|
-
/* @__PURE__ */
|
|
11939
|
+
/* @__PURE__ */ jsx39(
|
|
11733
11940
|
Button,
|
|
11734
11941
|
{
|
|
11735
11942
|
ref: closeButtonRef,
|
|
@@ -11738,11 +11945,11 @@ var DrawerInner = ({
|
|
|
11738
11945
|
css: drawerCloseButtonStyles,
|
|
11739
11946
|
title: "Close dialog",
|
|
11740
11947
|
buttonType: "ghost",
|
|
11741
|
-
children: /* @__PURE__ */
|
|
11948
|
+
children: /* @__PURE__ */ jsx39(Icon, { icon: CgChevronRight, iconColor: "gray", size: "1.5rem" })
|
|
11742
11949
|
}
|
|
11743
11950
|
),
|
|
11744
|
-
header ? /* @__PURE__ */
|
|
11745
|
-
/* @__PURE__ */
|
|
11951
|
+
header ? /* @__PURE__ */ jsx39("div", { id: headerId, css: drawerHeaderStyles, children: header }) : null,
|
|
11952
|
+
/* @__PURE__ */ jsx39("div", { css: drawerInnerStyles, children })
|
|
11746
11953
|
]
|
|
11747
11954
|
}
|
|
11748
11955
|
);
|
|
@@ -11771,8 +11978,8 @@ var DrawerInner = ({
|
|
|
11771
11978
|
};
|
|
11772
11979
|
|
|
11773
11980
|
// src/components/Input/styles/CaptionText.styles.ts
|
|
11774
|
-
import { css as
|
|
11775
|
-
var CaptionText = (dynamicSize) =>
|
|
11981
|
+
import { css as css35 } from "@emotion/react";
|
|
11982
|
+
var CaptionText = (dynamicSize) => css35`
|
|
11776
11983
|
color: var(--gray-500);
|
|
11777
11984
|
display: block;
|
|
11778
11985
|
font-size: ${dynamicSize ? "clamp(var(--fs-xs), 87.5%,var(--fs-sm))" : "var(--fs-sm)"};
|
|
@@ -11781,29 +11988,29 @@ var CaptionText = (dynamicSize) => css30`
|
|
|
11781
11988
|
`;
|
|
11782
11989
|
|
|
11783
11990
|
// src/components/Input/Caption.tsx
|
|
11784
|
-
import { jsx as
|
|
11991
|
+
import { jsx as jsx40 } from "@emotion/react/jsx-runtime";
|
|
11785
11992
|
var Caption = ({ children, testId, dynamicSize = false, ...props }) => {
|
|
11786
|
-
return /* @__PURE__ */
|
|
11993
|
+
return /* @__PURE__ */ jsx40("small", { css: CaptionText(dynamicSize), "data-test-id": testId, ...props, children });
|
|
11787
11994
|
};
|
|
11788
11995
|
|
|
11789
11996
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
11790
11997
|
import { forwardRef as forwardRef4 } from "react";
|
|
11791
11998
|
|
|
11792
11999
|
// src/components/Input/styles/CheckboxWithInfo.styles.ts
|
|
11793
|
-
import { css as
|
|
11794
|
-
var CheckboxWithInfoContainer =
|
|
12000
|
+
import { css as css36 } from "@emotion/react";
|
|
12001
|
+
var CheckboxWithInfoContainer = css36`
|
|
11795
12002
|
align-items: center;
|
|
11796
12003
|
display: flex;
|
|
11797
12004
|
gap: var(--spacing-sm);
|
|
11798
12005
|
`;
|
|
11799
|
-
var CheckboxWithInfoLabel =
|
|
12006
|
+
var CheckboxWithInfoLabel = css36`
|
|
11800
12007
|
align-items: center;
|
|
11801
12008
|
color: var(--gray-500);
|
|
11802
12009
|
display: flex;
|
|
11803
12010
|
font-size: var(--fs-xs);
|
|
11804
12011
|
gap: var(--spacing-sm);
|
|
11805
12012
|
`;
|
|
11806
|
-
var CheckboxWithInfoInput =
|
|
12013
|
+
var CheckboxWithInfoInput = css36`
|
|
11807
12014
|
appearance: none;
|
|
11808
12015
|
border: 1px solid var(--gray-300);
|
|
11809
12016
|
background: var(--white) no-repeat bottom center;
|
|
@@ -11836,7 +12043,7 @@ var CheckboxWithInfoInput = css31`
|
|
|
11836
12043
|
border-color: var(--gray-200);
|
|
11837
12044
|
}
|
|
11838
12045
|
`;
|
|
11839
|
-
var InfoDialogContainer =
|
|
12046
|
+
var InfoDialogContainer = css36`
|
|
11840
12047
|
position: relative;
|
|
11841
12048
|
|
|
11842
12049
|
&:hover {
|
|
@@ -11845,7 +12052,7 @@ var InfoDialogContainer = css31`
|
|
|
11845
12052
|
}
|
|
11846
12053
|
}
|
|
11847
12054
|
`;
|
|
11848
|
-
var InfoDialogMessage =
|
|
12055
|
+
var InfoDialogMessage = css36`
|
|
11849
12056
|
background: var(--white);
|
|
11850
12057
|
box-shadow: var(--shadow-base);
|
|
11851
12058
|
border-radius: var(--rounded-md);
|
|
@@ -11862,21 +12069,21 @@ var InfoDialogMessage = css31`
|
|
|
11862
12069
|
`;
|
|
11863
12070
|
|
|
11864
12071
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
11865
|
-
import { jsx as
|
|
12072
|
+
import { jsx as jsx41, jsxs as jsxs23 } from "@emotion/react/jsx-runtime";
|
|
11866
12073
|
var InfoDialog = ({ message }) => {
|
|
11867
|
-
return /* @__PURE__ */
|
|
11868
|
-
/* @__PURE__ */
|
|
11869
|
-
/* @__PURE__ */
|
|
12074
|
+
return /* @__PURE__ */ jsxs23("div", { "data-testid": "info-dialog", css: InfoDialogContainer, children: [
|
|
12075
|
+
/* @__PURE__ */ jsx41(Icon, { icon: "info", iconColor: "green", size: "0.9rem" }),
|
|
12076
|
+
/* @__PURE__ */ jsx41("div", { role: "paragraph", css: InfoDialogMessage, className: "info-message", children: message })
|
|
11870
12077
|
] });
|
|
11871
12078
|
};
|
|
11872
12079
|
var CheckboxWithInfo = forwardRef4(
|
|
11873
12080
|
({ label, name, info, ...props }, ref) => {
|
|
11874
|
-
return /* @__PURE__ */
|
|
11875
|
-
/* @__PURE__ */
|
|
11876
|
-
/* @__PURE__ */
|
|
11877
|
-
/* @__PURE__ */
|
|
12081
|
+
return /* @__PURE__ */ jsxs23("div", { css: CheckboxWithInfoContainer, children: [
|
|
12082
|
+
/* @__PURE__ */ jsxs23("label", { css: CheckboxWithInfoLabel, children: [
|
|
12083
|
+
/* @__PURE__ */ jsx41("input", { type: "checkbox", name, ref, css: CheckboxWithInfoInput, ...props }),
|
|
12084
|
+
/* @__PURE__ */ jsx41("span", { children: label })
|
|
11878
12085
|
] }),
|
|
11879
|
-
info ? /* @__PURE__ */
|
|
12086
|
+
info ? /* @__PURE__ */ jsx41(InfoDialog, { message: info }) : null
|
|
11880
12087
|
] });
|
|
11881
12088
|
}
|
|
11882
12089
|
);
|
|
@@ -11885,8 +12092,8 @@ var CheckboxWithInfo = forwardRef4(
|
|
|
11885
12092
|
import { MdWarning } from "react-icons/md";
|
|
11886
12093
|
|
|
11887
12094
|
// src/components/Input/styles/ErrorMessage.styles.ts
|
|
11888
|
-
import { css as
|
|
11889
|
-
var ErrorText =
|
|
12095
|
+
import { css as css37 } from "@emotion/react";
|
|
12096
|
+
var ErrorText = css37`
|
|
11890
12097
|
align-items: center;
|
|
11891
12098
|
color: var(--brand-secondary-5);
|
|
11892
12099
|
display: flex;
|
|
@@ -11894,10 +12101,10 @@ var ErrorText = css32`
|
|
|
11894
12101
|
`;
|
|
11895
12102
|
|
|
11896
12103
|
// src/components/Input/ErrorMessage.tsx
|
|
11897
|
-
import { jsx as
|
|
12104
|
+
import { jsx as jsx42, jsxs as jsxs24 } from "@emotion/react/jsx-runtime";
|
|
11898
12105
|
var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
11899
|
-
return message ? /* @__PURE__ */
|
|
11900
|
-
/* @__PURE__ */
|
|
12106
|
+
return message ? /* @__PURE__ */ jsxs24("span", { role: "alert", css: ErrorText, "data-test-id": testId, ...otherProps, children: [
|
|
12107
|
+
/* @__PURE__ */ jsx42(Icon, { icon: MdWarning, size: 16, iconColor: "currentColor" }),
|
|
11901
12108
|
message
|
|
11902
12109
|
] }) : null;
|
|
11903
12110
|
};
|
|
@@ -11906,9 +12113,9 @@ var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
|
11906
12113
|
import * as React12 from "react";
|
|
11907
12114
|
|
|
11908
12115
|
// src/components/Input/styles/Fieldset.styles.ts
|
|
11909
|
-
import { css as
|
|
12116
|
+
import { css as css38 } from "@emotion/react";
|
|
11910
12117
|
function fieldsetContainer(invert) {
|
|
11911
|
-
const base =
|
|
12118
|
+
const base = css38`
|
|
11912
12119
|
border-radius: var(--rounded-base);
|
|
11913
12120
|
border: 1px solid var(--gray-300);
|
|
11914
12121
|
|
|
@@ -11920,18 +12127,18 @@ function fieldsetContainer(invert) {
|
|
|
11920
12127
|
}
|
|
11921
12128
|
`;
|
|
11922
12129
|
return invert ? [
|
|
11923
|
-
|
|
12130
|
+
css38`
|
|
11924
12131
|
background: white;
|
|
11925
12132
|
`,
|
|
11926
12133
|
base
|
|
11927
12134
|
] : [
|
|
11928
|
-
|
|
12135
|
+
css38`
|
|
11929
12136
|
background: var(--gray-50);
|
|
11930
12137
|
`,
|
|
11931
12138
|
base
|
|
11932
12139
|
];
|
|
11933
12140
|
}
|
|
11934
|
-
var fieldsetLegend =
|
|
12141
|
+
var fieldsetLegend = css38`
|
|
11935
12142
|
align-items: center;
|
|
11936
12143
|
color: var(--brand-secondary-1);
|
|
11937
12144
|
display: flex;
|
|
@@ -11941,17 +12148,17 @@ var fieldsetLegend = css33`
|
|
|
11941
12148
|
margin-bottom: var(--spacing-base);
|
|
11942
12149
|
float: left; // allows the legend to be inside the fieldset and not sat on the border line
|
|
11943
12150
|
`;
|
|
11944
|
-
var fieldsetBody =
|
|
12151
|
+
var fieldsetBody = css38`
|
|
11945
12152
|
clear: left;
|
|
11946
12153
|
`;
|
|
11947
12154
|
|
|
11948
12155
|
// src/components/Input/Fieldset.tsx
|
|
11949
|
-
import { jsx as
|
|
12156
|
+
import { jsx as jsx43, jsxs as jsxs25 } from "@emotion/react/jsx-runtime";
|
|
11950
12157
|
var Fieldset = React12.forwardRef(
|
|
11951
12158
|
({ legend, disabled, children, invert, ...props }, ref) => {
|
|
11952
|
-
return /* @__PURE__ */
|
|
12159
|
+
return /* @__PURE__ */ jsxs25("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled, ...props, children: [
|
|
11953
12160
|
legend,
|
|
11954
|
-
/* @__PURE__ */
|
|
12161
|
+
/* @__PURE__ */ jsx43("div", { css: fieldsetBody, children })
|
|
11955
12162
|
] });
|
|
11956
12163
|
}
|
|
11957
12164
|
);
|
|
@@ -11960,8 +12167,8 @@ var Fieldset = React12.forwardRef(
|
|
|
11960
12167
|
import { MdInfoOutline } from "react-icons/md";
|
|
11961
12168
|
|
|
11962
12169
|
// src/components/Input/styles/InfoMessage.styles.tsx
|
|
11963
|
-
import { css as
|
|
11964
|
-
var InfoText =
|
|
12170
|
+
import { css as css39 } from "@emotion/react";
|
|
12171
|
+
var InfoText = css39`
|
|
11965
12172
|
--info-desc: rgb(29, 78, 216);
|
|
11966
12173
|
--info-icon: rgb(96, 165, 250);
|
|
11967
12174
|
|
|
@@ -11970,15 +12177,15 @@ var InfoText = css34`
|
|
|
11970
12177
|
display: flex;
|
|
11971
12178
|
gap: var(--spacing-sm);
|
|
11972
12179
|
`;
|
|
11973
|
-
var InfoIcon2 =
|
|
12180
|
+
var InfoIcon2 = css39`
|
|
11974
12181
|
color: var(--info-icon);
|
|
11975
12182
|
`;
|
|
11976
12183
|
|
|
11977
12184
|
// src/components/Input/InfoMessage.tsx
|
|
11978
|
-
import { jsx as
|
|
12185
|
+
import { jsx as jsx44, jsxs as jsxs26 } from "@emotion/react/jsx-runtime";
|
|
11979
12186
|
var InfoMessage = ({ message, testId, ...props }) => {
|
|
11980
|
-
return message ? /* @__PURE__ */
|
|
11981
|
-
/* @__PURE__ */
|
|
12187
|
+
return message ? /* @__PURE__ */ jsxs26("span", { role: "status", css: InfoText, "data-test-id": testId, ...props, children: [
|
|
12188
|
+
/* @__PURE__ */ jsx44(Icon, { css: InfoIcon2, icon: MdInfoOutline, size: "1rem", iconColor: "currentColor" }),
|
|
11982
12189
|
message
|
|
11983
12190
|
] }) : null;
|
|
11984
12191
|
};
|
|
@@ -11987,9 +12194,9 @@ var InfoMessage = ({ message, testId, ...props }) => {
|
|
|
11987
12194
|
import * as React13 from "react";
|
|
11988
12195
|
|
|
11989
12196
|
// src/components/Input/Label.tsx
|
|
11990
|
-
import { jsx as
|
|
12197
|
+
import { jsx as jsx45 } from "@emotion/react/jsx-runtime";
|
|
11991
12198
|
var Label = ({ children, className, testId, ...props }) => {
|
|
11992
|
-
return /* @__PURE__ */
|
|
12199
|
+
return /* @__PURE__ */ jsx45(
|
|
11993
12200
|
"label",
|
|
11994
12201
|
{
|
|
11995
12202
|
css: [labelText, typeof className === "object" ? className : void 0],
|
|
@@ -12005,28 +12212,28 @@ var Label = ({ children, className, testId, ...props }) => {
|
|
|
12005
12212
|
import { MdWarning as MdWarning2 } from "react-icons/md";
|
|
12006
12213
|
|
|
12007
12214
|
// src/components/Input/styles/WarningMessage.styles.tsx
|
|
12008
|
-
import { css as
|
|
12009
|
-
var WarningText =
|
|
12215
|
+
import { css as css40 } from "@emotion/react";
|
|
12216
|
+
var WarningText = css40`
|
|
12010
12217
|
align-items: center;
|
|
12011
12218
|
color: var(--alert-text);
|
|
12012
12219
|
display: flex;
|
|
12013
12220
|
gap: var(--spacing-sm);
|
|
12014
12221
|
`;
|
|
12015
|
-
var WarningIcon =
|
|
12222
|
+
var WarningIcon = css40`
|
|
12016
12223
|
color: var(--alert);
|
|
12017
12224
|
`;
|
|
12018
12225
|
|
|
12019
12226
|
// src/components/Input/WarningMessage.tsx
|
|
12020
|
-
import { jsx as
|
|
12227
|
+
import { jsx as jsx46, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
|
|
12021
12228
|
var WarningMessage = ({ message, testId, ...props }) => {
|
|
12022
|
-
return message ? /* @__PURE__ */
|
|
12023
|
-
/* @__PURE__ */
|
|
12229
|
+
return message ? /* @__PURE__ */ jsxs27("span", { role: "status", css: WarningText, "data-test-id": testId, ...props, children: [
|
|
12230
|
+
/* @__PURE__ */ jsx46(Icon, { css: WarningIcon, icon: MdWarning2, size: "1rem", iconColor: "currentColor" }),
|
|
12024
12231
|
message
|
|
12025
12232
|
] }) : null;
|
|
12026
12233
|
};
|
|
12027
12234
|
|
|
12028
12235
|
// src/components/Input/Input.tsx
|
|
12029
|
-
import { jsx as
|
|
12236
|
+
import { jsx as jsx47, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
|
|
12030
12237
|
var Input = React13.forwardRef(
|
|
12031
12238
|
({
|
|
12032
12239
|
label,
|
|
@@ -12045,8 +12252,8 @@ var Input = React13.forwardRef(
|
|
|
12045
12252
|
classNameLabel,
|
|
12046
12253
|
...props
|
|
12047
12254
|
}, ref) => {
|
|
12048
|
-
return /* @__PURE__ */
|
|
12049
|
-
showLabel ? /* @__PURE__ */
|
|
12255
|
+
return /* @__PURE__ */ jsxs28("div", { css: inputContainer, "data-test-id": containerTestId ? containerTestId : "container-input-field", children: [
|
|
12256
|
+
showLabel ? /* @__PURE__ */ jsx47(
|
|
12050
12257
|
Label,
|
|
12051
12258
|
{
|
|
12052
12259
|
htmlFor: id,
|
|
@@ -12056,13 +12263,13 @@ var Input = React13.forwardRef(
|
|
|
12056
12263
|
children: label
|
|
12057
12264
|
}
|
|
12058
12265
|
) : null,
|
|
12059
|
-
/* @__PURE__ */
|
|
12266
|
+
/* @__PURE__ */ jsxs28(
|
|
12060
12267
|
"div",
|
|
12061
12268
|
{
|
|
12062
12269
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
12063
12270
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
12064
12271
|
children: [
|
|
12065
|
-
/* @__PURE__ */
|
|
12272
|
+
/* @__PURE__ */ jsx47(
|
|
12066
12273
|
"input",
|
|
12067
12274
|
{
|
|
12068
12275
|
id,
|
|
@@ -12078,23 +12285,23 @@ var Input = React13.forwardRef(
|
|
|
12078
12285
|
ref
|
|
12079
12286
|
}
|
|
12080
12287
|
),
|
|
12081
|
-
icon ? /* @__PURE__ */
|
|
12288
|
+
icon ? /* @__PURE__ */ jsx47("div", { css: inputIcon, children: icon }) : null
|
|
12082
12289
|
]
|
|
12083
12290
|
}
|
|
12084
12291
|
),
|
|
12085
|
-
caption ? /* @__PURE__ */
|
|
12086
|
-
errorMessage ? /* @__PURE__ */
|
|
12087
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
12292
|
+
caption ? /* @__PURE__ */ jsx47(Caption, { testId: captionTestId, children: caption }) : null,
|
|
12293
|
+
errorMessage ? /* @__PURE__ */ jsx47(ErrorMessage, { message: errorMessage, testId: errorTestId }) : null,
|
|
12294
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx47(WarningMessage, { message: warningMessage }) : null
|
|
12088
12295
|
] });
|
|
12089
12296
|
}
|
|
12090
12297
|
);
|
|
12091
12298
|
|
|
12092
12299
|
// src/components/Input/InputComboBox.tsx
|
|
12093
12300
|
import Select from "react-select";
|
|
12094
|
-
import { jsx as
|
|
12301
|
+
import { jsx as jsx48 } from "@emotion/react/jsx-runtime";
|
|
12095
12302
|
function InputComboBox(props) {
|
|
12096
12303
|
var _a;
|
|
12097
|
-
return /* @__PURE__ */
|
|
12304
|
+
return /* @__PURE__ */ jsx48(
|
|
12098
12305
|
Select,
|
|
12099
12306
|
{
|
|
12100
12307
|
...props,
|
|
@@ -12223,17 +12430,17 @@ function InputComboBox(props) {
|
|
|
12223
12430
|
}
|
|
12224
12431
|
|
|
12225
12432
|
// src/components/Input/InputInlineSelect.tsx
|
|
12226
|
-
import { css as
|
|
12433
|
+
import { css as css42 } from "@emotion/react";
|
|
12227
12434
|
import { useRef as useRef3, useState as useState5 } from "react";
|
|
12228
12435
|
import { CgChevronDown as CgChevronDown2 } from "react-icons/cg";
|
|
12229
12436
|
|
|
12230
12437
|
// src/components/Input/styles/InputInlineSelect.styles.ts
|
|
12231
|
-
import { css as
|
|
12232
|
-
var inlineSelectContainer =
|
|
12438
|
+
import { css as css41 } from "@emotion/react";
|
|
12439
|
+
var inlineSelectContainer = css41`
|
|
12233
12440
|
margin-inline: auto;
|
|
12234
12441
|
max-width: fit-content;
|
|
12235
12442
|
`;
|
|
12236
|
-
var inlineSelectBtn =
|
|
12443
|
+
var inlineSelectBtn = css41`
|
|
12237
12444
|
align-items: center;
|
|
12238
12445
|
background: var(--brand-secondary-3);
|
|
12239
12446
|
border: 2px solid var(--brand-secondary-3);
|
|
@@ -12257,7 +12464,7 @@ var inlineSelectBtn = css36`
|
|
|
12257
12464
|
outline: 2px solid var(--brand-secondary-1);
|
|
12258
12465
|
}
|
|
12259
12466
|
`;
|
|
12260
|
-
var inlineSelectMenu =
|
|
12467
|
+
var inlineSelectMenu = css41`
|
|
12261
12468
|
background: var(--white);
|
|
12262
12469
|
border: 1px solid var(--brand-secondary-3);
|
|
12263
12470
|
border-top: none;
|
|
@@ -12268,7 +12475,7 @@ var inlineSelectMenu = css36`
|
|
|
12268
12475
|
inset: auto 0;
|
|
12269
12476
|
transform: translateY(-0.2rem);
|
|
12270
12477
|
`;
|
|
12271
|
-
var inlineSelectBtnOptions =
|
|
12478
|
+
var inlineSelectBtnOptions = css41`
|
|
12272
12479
|
cursor: pointer;
|
|
12273
12480
|
display: block;
|
|
12274
12481
|
font-size: var(--fs-sm);
|
|
@@ -12284,7 +12491,7 @@ var inlineSelectBtnOptions = css36`
|
|
|
12284
12491
|
background: var(--gray-50);
|
|
12285
12492
|
}
|
|
12286
12493
|
`;
|
|
12287
|
-
var inlineSelectMenuClosed =
|
|
12494
|
+
var inlineSelectMenuClosed = css41`
|
|
12288
12495
|
position: absolute;
|
|
12289
12496
|
overflow: hidden;
|
|
12290
12497
|
height: 1px;
|
|
@@ -12294,7 +12501,7 @@ var inlineSelectMenuClosed = css36`
|
|
|
12294
12501
|
`;
|
|
12295
12502
|
|
|
12296
12503
|
// src/components/Input/InputInlineSelect.tsx
|
|
12297
|
-
import { jsx as
|
|
12504
|
+
import { jsx as jsx49, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
|
|
12298
12505
|
var InputInlineSelect = ({
|
|
12299
12506
|
classNameContainer,
|
|
12300
12507
|
options,
|
|
@@ -12308,17 +12515,17 @@ var InputInlineSelect = ({
|
|
|
12308
12515
|
const divRef = useRef3(null);
|
|
12309
12516
|
useOutsideClick(divRef, () => setMenuVisible(false));
|
|
12310
12517
|
const selected = options.find((option) => option.value === value);
|
|
12311
|
-
return /* @__PURE__ */
|
|
12518
|
+
return /* @__PURE__ */ jsxs29(
|
|
12312
12519
|
"div",
|
|
12313
12520
|
{
|
|
12314
12521
|
ref: divRef,
|
|
12315
|
-
css: !classNameContainer ? inlineSelectContainer :
|
|
12522
|
+
css: !classNameContainer ? inlineSelectContainer : css42`
|
|
12316
12523
|
max-width: fit-content;
|
|
12317
12524
|
${typeof classNameContainer === "object" ? classNameContainer : void 0}
|
|
12318
12525
|
`,
|
|
12319
12526
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
12320
12527
|
children: [
|
|
12321
|
-
/* @__PURE__ */
|
|
12528
|
+
/* @__PURE__ */ jsxs29(
|
|
12322
12529
|
"button",
|
|
12323
12530
|
{
|
|
12324
12531
|
type: "button",
|
|
@@ -12332,18 +12539,18 @@ var InputInlineSelect = ({
|
|
|
12332
12539
|
disabled,
|
|
12333
12540
|
...props,
|
|
12334
12541
|
children: [
|
|
12335
|
-
/* @__PURE__ */
|
|
12336
|
-
disabled ? null : /* @__PURE__ */
|
|
12542
|
+
/* @__PURE__ */ jsx49("span", { children: (_a = selected == null ? void 0 : selected.label) != null ? _a : value }),
|
|
12543
|
+
disabled ? null : /* @__PURE__ */ jsx49(Icon, { icon: CgChevronDown2, iconColor: "currentColor", size: 24 })
|
|
12337
12544
|
]
|
|
12338
12545
|
}
|
|
12339
12546
|
),
|
|
12340
|
-
/* @__PURE__ */
|
|
12547
|
+
/* @__PURE__ */ jsx49(
|
|
12341
12548
|
"div",
|
|
12342
12549
|
{
|
|
12343
12550
|
id: `and-or-${props.id}`,
|
|
12344
12551
|
css: [inlineSelectMenu, menuVisible ? void 0 : inlineSelectMenuClosed],
|
|
12345
12552
|
"aria-hidden": !menuVisible,
|
|
12346
|
-
children: options.map((opt) => /* @__PURE__ */
|
|
12553
|
+
children: options.map((opt) => /* @__PURE__ */ jsx49(
|
|
12347
12554
|
"button",
|
|
12348
12555
|
{
|
|
12349
12556
|
type: "button",
|
|
@@ -12364,7 +12571,7 @@ var InputInlineSelect = ({
|
|
|
12364
12571
|
};
|
|
12365
12572
|
|
|
12366
12573
|
// src/components/Input/InputKeywordSearch.tsx
|
|
12367
|
-
import { jsx as
|
|
12574
|
+
import { jsx as jsx50 } from "@emotion/react/jsx-runtime";
|
|
12368
12575
|
var InputKeywordSearch = ({
|
|
12369
12576
|
onSearchTextChanged,
|
|
12370
12577
|
disabled = false,
|
|
@@ -12383,7 +12590,7 @@ var InputKeywordSearch = ({
|
|
|
12383
12590
|
e.preventDefault();
|
|
12384
12591
|
}
|
|
12385
12592
|
};
|
|
12386
|
-
return /* @__PURE__ */
|
|
12593
|
+
return /* @__PURE__ */ jsx50(
|
|
12387
12594
|
Input,
|
|
12388
12595
|
{
|
|
12389
12596
|
type: "text",
|
|
@@ -12391,7 +12598,7 @@ var InputKeywordSearch = ({
|
|
|
12391
12598
|
placeholder,
|
|
12392
12599
|
showLabel: false,
|
|
12393
12600
|
value,
|
|
12394
|
-
icon: value ? /* @__PURE__ */
|
|
12601
|
+
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
12602
|
onChange: handleSearchTextChanged,
|
|
12396
12603
|
onKeyPress: preventSubmitOnField,
|
|
12397
12604
|
disabled,
|
|
@@ -12402,7 +12609,7 @@ var InputKeywordSearch = ({
|
|
|
12402
12609
|
};
|
|
12403
12610
|
|
|
12404
12611
|
// src/components/Input/InputSelect.tsx
|
|
12405
|
-
import { Fragment as Fragment5, jsx as
|
|
12612
|
+
import { Fragment as Fragment5, jsx as jsx51, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
|
|
12406
12613
|
var InputSelect = ({
|
|
12407
12614
|
label,
|
|
12408
12615
|
defaultOption,
|
|
@@ -12418,13 +12625,13 @@ var InputSelect = ({
|
|
|
12418
12625
|
classNameLabel,
|
|
12419
12626
|
...props
|
|
12420
12627
|
}) => {
|
|
12421
|
-
return /* @__PURE__ */
|
|
12628
|
+
return /* @__PURE__ */ jsxs30(
|
|
12422
12629
|
"div",
|
|
12423
12630
|
{
|
|
12424
12631
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
12425
12632
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
12426
12633
|
children: [
|
|
12427
|
-
showLabel ? /* @__PURE__ */
|
|
12634
|
+
showLabel ? /* @__PURE__ */ jsx51(Fragment5, { children: /* @__PURE__ */ jsxs30(
|
|
12428
12635
|
Label,
|
|
12429
12636
|
{
|
|
12430
12637
|
htmlFor: props.id,
|
|
@@ -12436,7 +12643,7 @@ var InputSelect = ({
|
|
|
12436
12643
|
]
|
|
12437
12644
|
}
|
|
12438
12645
|
) }) : null,
|
|
12439
|
-
/* @__PURE__ */
|
|
12646
|
+
/* @__PURE__ */ jsxs30(
|
|
12440
12647
|
"select",
|
|
12441
12648
|
{
|
|
12442
12649
|
title: label,
|
|
@@ -12451,21 +12658,21 @@ var InputSelect = ({
|
|
|
12451
12658
|
className: typeof classNameControl === "string" ? classNameControl : "",
|
|
12452
12659
|
...props,
|
|
12453
12660
|
children: [
|
|
12454
|
-
defaultOption ? /* @__PURE__ */
|
|
12455
|
-
options.map((opt, index) => /* @__PURE__ */
|
|
12661
|
+
defaultOption ? /* @__PURE__ */ jsx51("option", { value: "", children: defaultOption }) : null,
|
|
12662
|
+
options.map((opt, index) => /* @__PURE__ */ jsx51("option", { value: opt.label, ...opt }, index))
|
|
12456
12663
|
]
|
|
12457
12664
|
}
|
|
12458
12665
|
),
|
|
12459
|
-
caption ? /* @__PURE__ */
|
|
12460
|
-
errorMessage ? /* @__PURE__ */
|
|
12461
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
12666
|
+
caption ? /* @__PURE__ */ jsx51(Caption, { children: caption }) : null,
|
|
12667
|
+
errorMessage ? /* @__PURE__ */ jsx51(ErrorMessage, { message: errorMessage }) : null,
|
|
12668
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx51(WarningMessage, { message: warningMessage }) : null
|
|
12462
12669
|
]
|
|
12463
12670
|
}
|
|
12464
12671
|
);
|
|
12465
12672
|
};
|
|
12466
12673
|
|
|
12467
12674
|
// src/components/Input/InputToggle.tsx
|
|
12468
|
-
import { jsx as
|
|
12675
|
+
import { jsx as jsx52, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
|
|
12469
12676
|
var InputToggle = ({
|
|
12470
12677
|
label,
|
|
12471
12678
|
type,
|
|
@@ -12479,25 +12686,25 @@ var InputToggle = ({
|
|
|
12479
12686
|
fontWeight = "medium",
|
|
12480
12687
|
...props
|
|
12481
12688
|
}) => {
|
|
12482
|
-
return /* @__PURE__ */
|
|
12483
|
-
/* @__PURE__ */
|
|
12484
|
-
/* @__PURE__ */
|
|
12485
|
-
caption || errorMessage ? /* @__PURE__ */
|
|
12486
|
-
caption ? /* @__PURE__ */
|
|
12487
|
-
errorMessage ? /* @__PURE__ */
|
|
12488
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
12689
|
+
return /* @__PURE__ */ jsxs31(Label, { css: [inputToggleLabel, disabled ? inputDisabled : void 0], "data-test-id": testId, children: [
|
|
12690
|
+
/* @__PURE__ */ jsx52("input", { type, css: toggleInput, checked, name, disabled, ...props }),
|
|
12691
|
+
/* @__PURE__ */ jsx52("span", { css: inlineLabel(fontWeight), dangerouslySetInnerHTML: { __html: label } }),
|
|
12692
|
+
caption || errorMessage ? /* @__PURE__ */ jsxs31("span", { css: inputToggleMessageContainer, children: [
|
|
12693
|
+
caption ? /* @__PURE__ */ jsx52(Caption, { children: caption }) : null,
|
|
12694
|
+
errorMessage ? /* @__PURE__ */ jsx52(ErrorMessage, { message: errorMessage }) : null,
|
|
12695
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx52(WarningMessage, { message: warningMessage }) : null
|
|
12489
12696
|
] }) : null
|
|
12490
12697
|
] });
|
|
12491
12698
|
};
|
|
12492
12699
|
|
|
12493
12700
|
// src/components/Input/Legend.tsx
|
|
12494
|
-
import { jsx as
|
|
12701
|
+
import { jsx as jsx53 } from "@emotion/react/jsx-runtime";
|
|
12495
12702
|
var Legend = ({ children }) => {
|
|
12496
|
-
return /* @__PURE__ */
|
|
12703
|
+
return /* @__PURE__ */ jsx53("legend", { css: fieldsetLegend, children });
|
|
12497
12704
|
};
|
|
12498
12705
|
|
|
12499
12706
|
// src/components/Input/Textarea.tsx
|
|
12500
|
-
import { Fragment as Fragment6, jsx as
|
|
12707
|
+
import { Fragment as Fragment6, jsx as jsx54, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
|
|
12501
12708
|
var Textarea = ({
|
|
12502
12709
|
label,
|
|
12503
12710
|
icon,
|
|
@@ -12508,10 +12715,10 @@ var Textarea = ({
|
|
|
12508
12715
|
warningMessage,
|
|
12509
12716
|
...props
|
|
12510
12717
|
}) => {
|
|
12511
|
-
return /* @__PURE__ */
|
|
12512
|
-
showLabel ? /* @__PURE__ */
|
|
12513
|
-
/* @__PURE__ */
|
|
12514
|
-
/* @__PURE__ */
|
|
12718
|
+
return /* @__PURE__ */ jsxs32(Fragment6, { children: [
|
|
12719
|
+
showLabel ? /* @__PURE__ */ jsx54("label", { htmlFor: id, css: [labelText], children: label }) : null,
|
|
12720
|
+
/* @__PURE__ */ jsxs32("div", { css: [inputContainer], children: [
|
|
12721
|
+
/* @__PURE__ */ jsx54(
|
|
12515
12722
|
"textarea",
|
|
12516
12723
|
{
|
|
12517
12724
|
id,
|
|
@@ -12520,17 +12727,17 @@ var Textarea = ({
|
|
|
12520
12727
|
...props
|
|
12521
12728
|
}
|
|
12522
12729
|
),
|
|
12523
|
-
icon ? /* @__PURE__ */
|
|
12730
|
+
icon ? /* @__PURE__ */ jsx54("div", { css: inputIcon, children: icon }) : null
|
|
12524
12731
|
] }),
|
|
12525
|
-
caption ? /* @__PURE__ */
|
|
12526
|
-
errorMessage ? /* @__PURE__ */
|
|
12527
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
12732
|
+
caption ? /* @__PURE__ */ jsx54(Caption, { children: caption }) : null,
|
|
12733
|
+
errorMessage ? /* @__PURE__ */ jsx54(ErrorMessage, { message: errorMessage }) : null,
|
|
12734
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx54(WarningMessage, { message: warningMessage }) : null
|
|
12528
12735
|
] });
|
|
12529
12736
|
};
|
|
12530
12737
|
|
|
12531
12738
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
12532
12739
|
import MonacoEditor from "@monaco-editor/react";
|
|
12533
|
-
import { jsx as
|
|
12740
|
+
import { jsx as jsx55 } from "@emotion/react/jsx-runtime";
|
|
12534
12741
|
var minEditorHeightPx = 150;
|
|
12535
12742
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
12536
12743
|
let effectiveHeight = height;
|
|
@@ -12540,7 +12747,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
12540
12747
|
if (typeof effectiveHeight === "number" && effectiveHeight < minEditorHeightPx) {
|
|
12541
12748
|
effectiveHeight = minEditorHeightPx;
|
|
12542
12749
|
}
|
|
12543
|
-
return /* @__PURE__ */
|
|
12750
|
+
return /* @__PURE__ */ jsx55(
|
|
12544
12751
|
MonacoEditor,
|
|
12545
12752
|
{
|
|
12546
12753
|
height: effectiveHeight,
|
|
@@ -12576,94 +12783,40 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
12576
12783
|
);
|
|
12577
12784
|
};
|
|
12578
12785
|
|
|
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
12786
|
// src/components/LimitsBar/LimitsBar.styles.ts
|
|
12634
|
-
import { css as
|
|
12635
|
-
var LimitsBarContainer =
|
|
12787
|
+
import { css as css43 } from "@emotion/react";
|
|
12788
|
+
var LimitsBarContainer = css43`
|
|
12636
12789
|
margin-block: var(--spacing-sm);
|
|
12637
12790
|
`;
|
|
12638
|
-
var LimitsBarProgressBar =
|
|
12791
|
+
var LimitsBarProgressBar = css43`
|
|
12639
12792
|
background: var(--gray-100);
|
|
12640
12793
|
margin-top: var(--spacing-sm);
|
|
12641
12794
|
position: relative;
|
|
12642
12795
|
overflow: hidden;
|
|
12643
12796
|
height: 0.25rem;
|
|
12644
12797
|
`;
|
|
12645
|
-
var LimitsBarProgressBarLine =
|
|
12798
|
+
var LimitsBarProgressBarLine = css43`
|
|
12646
12799
|
position: absolute;
|
|
12647
12800
|
inset: 0;
|
|
12648
12801
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
12649
12802
|
`;
|
|
12650
|
-
var LimitsBarLabelContainer =
|
|
12803
|
+
var LimitsBarLabelContainer = css43`
|
|
12651
12804
|
display: flex;
|
|
12652
12805
|
justify-content: space-between;
|
|
12653
12806
|
font-weight: var(--fw-bold);
|
|
12654
12807
|
`;
|
|
12655
|
-
var LimitsBarLabel =
|
|
12808
|
+
var LimitsBarLabel = css43`
|
|
12656
12809
|
font-size: var(--fs-baase);
|
|
12657
12810
|
`;
|
|
12658
|
-
var LimitsBarBgColor = (statusColor) =>
|
|
12811
|
+
var LimitsBarBgColor = (statusColor) => css43`
|
|
12659
12812
|
background: ${statusColor};
|
|
12660
12813
|
`;
|
|
12661
|
-
var LimitsBarTextColor = (statusColor) =>
|
|
12814
|
+
var LimitsBarTextColor = (statusColor) => css43`
|
|
12662
12815
|
color: ${statusColor};
|
|
12663
12816
|
`;
|
|
12664
12817
|
|
|
12665
12818
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
12666
|
-
import { jsx as
|
|
12819
|
+
import { jsx as jsx56, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
|
|
12667
12820
|
var LimitsBar = ({ current, max, label }) => {
|
|
12668
12821
|
const maxPercentage = 100;
|
|
12669
12822
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -12674,16 +12827,16 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
12674
12827
|
danger: "var(--brand-secondary-5)"
|
|
12675
12828
|
};
|
|
12676
12829
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
12677
|
-
return /* @__PURE__ */
|
|
12678
|
-
/* @__PURE__ */
|
|
12679
|
-
/* @__PURE__ */
|
|
12680
|
-
/* @__PURE__ */
|
|
12830
|
+
return /* @__PURE__ */ jsxs33("div", { css: LimitsBarContainer, children: [
|
|
12831
|
+
/* @__PURE__ */ jsxs33("div", { css: LimitsBarLabelContainer, children: [
|
|
12832
|
+
/* @__PURE__ */ jsx56("span", { css: LimitsBarLabel, children: label }),
|
|
12833
|
+
/* @__PURE__ */ jsxs33("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
12681
12834
|
current,
|
|
12682
12835
|
" of ",
|
|
12683
12836
|
max
|
|
12684
12837
|
] })
|
|
12685
12838
|
] }),
|
|
12686
|
-
/* @__PURE__ */
|
|
12839
|
+
/* @__PURE__ */ jsx56(
|
|
12687
12840
|
"div",
|
|
12688
12841
|
{
|
|
12689
12842
|
role: "progressbar",
|
|
@@ -12692,7 +12845,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
12692
12845
|
"aria-valuemax": max,
|
|
12693
12846
|
"aria-valuetext": `${current} of ${max}`,
|
|
12694
12847
|
css: LimitsBarProgressBar,
|
|
12695
|
-
children: /* @__PURE__ */
|
|
12848
|
+
children: /* @__PURE__ */ jsx56(
|
|
12696
12849
|
"span",
|
|
12697
12850
|
{
|
|
12698
12851
|
role: "presentation",
|
|
@@ -12708,9 +12861,10 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
12708
12861
|
};
|
|
12709
12862
|
|
|
12710
12863
|
// src/components/LinkList/LinkList.styles.ts
|
|
12711
|
-
import { css as
|
|
12712
|
-
var LinkListContainer =
|
|
12713
|
-
padding: var(--spacing-md)
|
|
12864
|
+
import { css as css44 } from "@emotion/react";
|
|
12865
|
+
var LinkListContainer = css44`
|
|
12866
|
+
padding: var(--spacing-md);
|
|
12867
|
+
|
|
12714
12868
|
${mq("sm")} {
|
|
12715
12869
|
grid-column: last-col / span 1;
|
|
12716
12870
|
grid-row: 1 / last-line;
|
|
@@ -12718,23 +12872,23 @@ var LinkListContainer = css41`
|
|
|
12718
12872
|
`;
|
|
12719
12873
|
|
|
12720
12874
|
// src/components/LinkList/LinkList.tsx
|
|
12721
|
-
import { jsx as
|
|
12875
|
+
import { jsx as jsx57, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
|
|
12722
12876
|
var LinkList = ({ title, children, ...props }) => {
|
|
12723
|
-
return /* @__PURE__ */
|
|
12724
|
-
/* @__PURE__ */
|
|
12877
|
+
return /* @__PURE__ */ jsxs34("div", { css: LinkListContainer, ...props, children: [
|
|
12878
|
+
/* @__PURE__ */ jsx57(Heading, { level: 3, children: title }),
|
|
12725
12879
|
children
|
|
12726
12880
|
] });
|
|
12727
12881
|
};
|
|
12728
12882
|
|
|
12729
12883
|
// src/components/List/ScrollableList.tsx
|
|
12730
|
-
import { css as
|
|
12884
|
+
import { css as css46 } from "@emotion/react";
|
|
12731
12885
|
|
|
12732
12886
|
// src/components/List/styles/ScrollableList.styles.ts
|
|
12733
|
-
import { css as
|
|
12734
|
-
var ScrollableListContainer =
|
|
12887
|
+
import { css as css45 } from "@emotion/react";
|
|
12888
|
+
var ScrollableListContainer = css45`
|
|
12735
12889
|
position: relative;
|
|
12736
12890
|
`;
|
|
12737
|
-
var ScrollableListInner =
|
|
12891
|
+
var ScrollableListInner = css45`
|
|
12738
12892
|
background: var(--gray-50);
|
|
12739
12893
|
border-top: 1px solid var(--gray-200);
|
|
12740
12894
|
border-bottom: 1px solid var(--gray-200);
|
|
@@ -12752,19 +12906,19 @@ var ScrollableListInner = css42`
|
|
|
12752
12906
|
`;
|
|
12753
12907
|
|
|
12754
12908
|
// src/components/List/ScrollableList.tsx
|
|
12755
|
-
import { jsx as
|
|
12909
|
+
import { jsx as jsx58, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
12756
12910
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
12757
|
-
return /* @__PURE__ */
|
|
12758
|
-
label ? /* @__PURE__ */
|
|
12911
|
+
return /* @__PURE__ */ jsxs35("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
12912
|
+
label ? /* @__PURE__ */ jsx58(
|
|
12759
12913
|
"span",
|
|
12760
12914
|
{
|
|
12761
|
-
css:
|
|
12915
|
+
css: css46`
|
|
12762
12916
|
${labelText}
|
|
12763
12917
|
`,
|
|
12764
12918
|
children: label
|
|
12765
12919
|
}
|
|
12766
12920
|
) : null,
|
|
12767
|
-
/* @__PURE__ */
|
|
12921
|
+
/* @__PURE__ */ jsx58("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
12768
12922
|
] });
|
|
12769
12923
|
};
|
|
12770
12924
|
|
|
@@ -12772,8 +12926,8 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
12772
12926
|
import { CgCheck } from "react-icons/cg";
|
|
12773
12927
|
|
|
12774
12928
|
// src/components/List/styles/ScrollableListItem.styles.ts
|
|
12775
|
-
import { css as
|
|
12776
|
-
var ScrollableListItemContainer =
|
|
12929
|
+
import { css as css47 } from "@emotion/react";
|
|
12930
|
+
var ScrollableListItemContainer = css47`
|
|
12777
12931
|
align-items: center;
|
|
12778
12932
|
background: var(--white);
|
|
12779
12933
|
border-radius: var(--rounded-base);
|
|
@@ -12783,10 +12937,10 @@ var ScrollableListItemContainer = css44`
|
|
|
12783
12937
|
min-height: 52px;
|
|
12784
12938
|
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
12785
12939
|
`;
|
|
12786
|
-
var ScrollableListItemActive =
|
|
12940
|
+
var ScrollableListItemActive = css47`
|
|
12787
12941
|
border-color: var(--brand-secondary-3);
|
|
12788
12942
|
`;
|
|
12789
|
-
var ScrollableListItemBtn =
|
|
12943
|
+
var ScrollableListItemBtn = css47`
|
|
12790
12944
|
align-items: center;
|
|
12791
12945
|
border: none;
|
|
12792
12946
|
background: transparent;
|
|
@@ -12801,26 +12955,26 @@ var ScrollableListItemBtn = css44`
|
|
|
12801
12955
|
outline: none;
|
|
12802
12956
|
}
|
|
12803
12957
|
`;
|
|
12804
|
-
var ScrollableListInputLabel =
|
|
12958
|
+
var ScrollableListInputLabel = css47`
|
|
12805
12959
|
align-items: center;
|
|
12806
12960
|
display: flex;
|
|
12807
12961
|
padding: var(--spacing-xs) var(--spacing-base) var(--spacing-xs);
|
|
12808
12962
|
flex-grow: 1;
|
|
12809
12963
|
`;
|
|
12810
|
-
var ScrollableListInputText =
|
|
12964
|
+
var ScrollableListInputText = css47`
|
|
12811
12965
|
align-items: center;
|
|
12812
12966
|
display: flex;
|
|
12813
12967
|
gap: var(--spacing-sm);
|
|
12814
12968
|
font-weight: var(--fw-bold);
|
|
12815
12969
|
flex-grow: 1;
|
|
12816
12970
|
`;
|
|
12817
|
-
var ScrollableListHiddenInput =
|
|
12971
|
+
var ScrollableListHiddenInput = css47`
|
|
12818
12972
|
position: absolute;
|
|
12819
12973
|
height: 0;
|
|
12820
12974
|
width: 0;
|
|
12821
12975
|
opacity: 0;
|
|
12822
12976
|
`;
|
|
12823
|
-
var ScrollableListIcon =
|
|
12977
|
+
var ScrollableListIcon = css47`
|
|
12824
12978
|
border-radius: var(--rounded-full);
|
|
12825
12979
|
background: var(--brand-secondary-3);
|
|
12826
12980
|
color: var(--white);
|
|
@@ -12829,7 +12983,7 @@ var ScrollableListIcon = css44`
|
|
|
12829
12983
|
`;
|
|
12830
12984
|
|
|
12831
12985
|
// src/components/List/ScrollableListInputItem.tsx
|
|
12832
|
-
import { jsx as
|
|
12986
|
+
import { jsx as jsx59, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
12833
12987
|
var ScrollableListInputItem = ({
|
|
12834
12988
|
label,
|
|
12835
12989
|
icon,
|
|
@@ -12837,23 +12991,23 @@ var ScrollableListInputItem = ({
|
|
|
12837
12991
|
children,
|
|
12838
12992
|
labelTestId
|
|
12839
12993
|
}) => {
|
|
12840
|
-
return /* @__PURE__ */
|
|
12841
|
-
/* @__PURE__ */
|
|
12994
|
+
return /* @__PURE__ */ jsx59("div", { css: [ScrollableListItemContainer, active ? ScrollableListItemActive : void 0], children: /* @__PURE__ */ jsxs36("label", { "data-test-id": labelTestId, css: ScrollableListInputLabel, children: [
|
|
12995
|
+
/* @__PURE__ */ jsxs36("span", { css: ScrollableListInputText, children: [
|
|
12842
12996
|
icon,
|
|
12843
12997
|
label
|
|
12844
12998
|
] }),
|
|
12845
|
-
/* @__PURE__ */
|
|
12846
|
-
active ? /* @__PURE__ */
|
|
12999
|
+
/* @__PURE__ */ jsx59("div", { css: ScrollableListHiddenInput, children }),
|
|
13000
|
+
active ? /* @__PURE__ */ jsx59(Icon, { icon: CgCheck, iconColor: "currentColor", css: ScrollableListIcon, size: 24 }) : null
|
|
12847
13001
|
] }) });
|
|
12848
13002
|
};
|
|
12849
13003
|
|
|
12850
13004
|
// src/components/List/ScrollableListItem.tsx
|
|
12851
|
-
import { css as
|
|
12852
|
-
import { jsx as
|
|
13005
|
+
import { css as css48 } from "@emotion/react";
|
|
13006
|
+
import { jsx as jsx60, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
|
|
12853
13007
|
var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
12854
|
-
return /* @__PURE__ */
|
|
12855
|
-
/* @__PURE__ */
|
|
12856
|
-
/* @__PURE__ */
|
|
13008
|
+
return /* @__PURE__ */ jsx60("div", { css: [ScrollableListItemContainer, active ? ScrollableListItemActive : void 0], children: /* @__PURE__ */ jsxs37("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
13009
|
+
/* @__PURE__ */ jsx60("span", { children: buttonText }),
|
|
13010
|
+
/* @__PURE__ */ jsx60(
|
|
12857
13011
|
"svg",
|
|
12858
13012
|
{
|
|
12859
13013
|
width: "24",
|
|
@@ -12862,14 +13016,14 @@ var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
|
12862
13016
|
fill: "currentColor",
|
|
12863
13017
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12864
13018
|
"aria-hidden": !active,
|
|
12865
|
-
css:
|
|
13019
|
+
css: css48`
|
|
12866
13020
|
color: var(--brand-secondary-3);
|
|
12867
13021
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
12868
|
-
${active ?
|
|
13022
|
+
${active ? css48`
|
|
12869
13023
|
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
12870
13024
|
` : "opacity: 0;"}
|
|
12871
13025
|
`,
|
|
12872
|
-
children: /* @__PURE__ */
|
|
13026
|
+
children: /* @__PURE__ */ jsx60(
|
|
12873
13027
|
"path",
|
|
12874
13028
|
{
|
|
12875
13029
|
fillRule: "evenodd",
|
|
@@ -12883,7 +13037,7 @@ var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
|
12883
13037
|
};
|
|
12884
13038
|
|
|
12885
13039
|
// src/components/LoadingIndicator/LoadingIndicator.styles.ts
|
|
12886
|
-
import { css as
|
|
13040
|
+
import { css as css49, keyframes as keyframes3 } from "@emotion/react";
|
|
12887
13041
|
var bounceFade = keyframes3`
|
|
12888
13042
|
0%, 100% {
|
|
12889
13043
|
opacity: 1.0;
|
|
@@ -12901,11 +13055,11 @@ var bounceFade = keyframes3`
|
|
|
12901
13055
|
transform: translateY(-5px);
|
|
12902
13056
|
}
|
|
12903
13057
|
`;
|
|
12904
|
-
var loader =
|
|
13058
|
+
var loader = css49`
|
|
12905
13059
|
display: inline-flex;
|
|
12906
13060
|
justify-content: center;
|
|
12907
13061
|
`;
|
|
12908
|
-
var loadingDot =
|
|
13062
|
+
var loadingDot = css49`
|
|
12909
13063
|
background-color: var(--gray-700);
|
|
12910
13064
|
display: block;
|
|
12911
13065
|
border-radius: var(--rounded-full);
|
|
@@ -12929,12 +13083,12 @@ var loadingDot = css46`
|
|
|
12929
13083
|
`;
|
|
12930
13084
|
|
|
12931
13085
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
12932
|
-
import { jsx as
|
|
13086
|
+
import { jsx as jsx61, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
|
|
12933
13087
|
var LoadingIndicator = ({ ...props }) => {
|
|
12934
|
-
return /* @__PURE__ */
|
|
12935
|
-
/* @__PURE__ */
|
|
12936
|
-
/* @__PURE__ */
|
|
12937
|
-
/* @__PURE__ */
|
|
13088
|
+
return /* @__PURE__ */ jsxs38("div", { role: "alert", css: loader, "data-test-id": "loading-indicator", ...props, children: [
|
|
13089
|
+
/* @__PURE__ */ jsx61("span", { css: loadingDot }),
|
|
13090
|
+
/* @__PURE__ */ jsx61("span", { css: loadingDot }),
|
|
13091
|
+
/* @__PURE__ */ jsx61("span", { css: loadingDot })
|
|
12938
13092
|
] });
|
|
12939
13093
|
};
|
|
12940
13094
|
|
|
@@ -12942,8 +13096,8 @@ var LoadingIndicator = ({ ...props }) => {
|
|
|
12942
13096
|
import { useCallback as useCallback2, useEffect as useEffect6, useRef as useRef4 } from "react";
|
|
12943
13097
|
|
|
12944
13098
|
// src/components/LoadingOverlay/LoadingOverlay.styles.ts
|
|
12945
|
-
import { css as
|
|
12946
|
-
var loadingOverlayContainer =
|
|
13099
|
+
import { css as css50 } from "@emotion/react";
|
|
13100
|
+
var loadingOverlayContainer = css50`
|
|
12947
13101
|
position: absolute;
|
|
12948
13102
|
inset: 0;
|
|
12949
13103
|
overflow: hidden;
|
|
@@ -12951,30 +13105,30 @@ var loadingOverlayContainer = css47`
|
|
|
12951
13105
|
padding: var(--spacing-xl);
|
|
12952
13106
|
overflow-y: auto;
|
|
12953
13107
|
`;
|
|
12954
|
-
var loadingOverlayVisible =
|
|
13108
|
+
var loadingOverlayVisible = css50`
|
|
12955
13109
|
display: flex;
|
|
12956
13110
|
`;
|
|
12957
|
-
var loadingOverlayHidden =
|
|
13111
|
+
var loadingOverlayHidden = css50`
|
|
12958
13112
|
display: none;
|
|
12959
13113
|
`;
|
|
12960
|
-
var loadingOverlayBackground = (bgColor) =>
|
|
13114
|
+
var loadingOverlayBackground = (bgColor) => css50`
|
|
12961
13115
|
background: ${bgColor};
|
|
12962
13116
|
opacity: 0.92;
|
|
12963
13117
|
position: absolute;
|
|
12964
13118
|
inset: 0 0;
|
|
12965
13119
|
`;
|
|
12966
|
-
var loadingOverlayBody =
|
|
13120
|
+
var loadingOverlayBody = css50`
|
|
12967
13121
|
align-items: center;
|
|
12968
13122
|
display: flex;
|
|
12969
13123
|
flex-direction: column;
|
|
12970
13124
|
`;
|
|
12971
|
-
var loadingOverlayMessage =
|
|
13125
|
+
var loadingOverlayMessage = css50`
|
|
12972
13126
|
color: var(--gray-600);
|
|
12973
13127
|
margin: var(--spacing-base) 0 0;
|
|
12974
13128
|
`;
|
|
12975
13129
|
|
|
12976
13130
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
12977
|
-
import { jsx as
|
|
13131
|
+
import { jsx as jsx62, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
12978
13132
|
var LoadingOverlay = ({
|
|
12979
13133
|
isActive,
|
|
12980
13134
|
statusMessage,
|
|
@@ -13000,7 +13154,7 @@ var LoadingOverlay = ({
|
|
|
13000
13154
|
(_f = lottieRef.current) == null ? void 0 : _f.stop();
|
|
13001
13155
|
}
|
|
13002
13156
|
}, [isPaused]);
|
|
13003
|
-
return /* @__PURE__ */
|
|
13157
|
+
return /* @__PURE__ */ jsxs39(
|
|
13004
13158
|
"div",
|
|
13005
13159
|
{
|
|
13006
13160
|
role: "alert",
|
|
@@ -13008,9 +13162,9 @@ var LoadingOverlay = ({
|
|
|
13008
13162
|
"aria-hidden": !isActive,
|
|
13009
13163
|
"aria-busy": isActive && !isPaused,
|
|
13010
13164
|
children: [
|
|
13011
|
-
/* @__PURE__ */
|
|
13012
|
-
/* @__PURE__ */
|
|
13013
|
-
/* @__PURE__ */
|
|
13165
|
+
/* @__PURE__ */ jsx62("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
13166
|
+
/* @__PURE__ */ jsx62("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ jsxs39("div", { css: loadingOverlayBody, children: [
|
|
13167
|
+
/* @__PURE__ */ jsx62(
|
|
13014
13168
|
AnimationFile,
|
|
13015
13169
|
{
|
|
13016
13170
|
lottieRef,
|
|
@@ -13025,15 +13179,15 @@ var LoadingOverlay = ({
|
|
|
13025
13179
|
}
|
|
13026
13180
|
}
|
|
13027
13181
|
),
|
|
13028
|
-
statusMessage ? /* @__PURE__ */
|
|
13029
|
-
/* @__PURE__ */
|
|
13182
|
+
statusMessage ? /* @__PURE__ */ jsx62("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
|
|
13183
|
+
/* @__PURE__ */ jsx62("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
|
|
13030
13184
|
] }) })
|
|
13031
13185
|
]
|
|
13032
13186
|
}
|
|
13033
13187
|
);
|
|
13034
13188
|
};
|
|
13035
13189
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
13036
|
-
return /* @__PURE__ */
|
|
13190
|
+
return /* @__PURE__ */ jsx62(
|
|
13037
13191
|
"svg",
|
|
13038
13192
|
{
|
|
13039
13193
|
"data-testid": "svg",
|
|
@@ -13044,9 +13198,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
13044
13198
|
stroke: "currentColor",
|
|
13045
13199
|
...props,
|
|
13046
13200
|
"data-test-id": "loading-icon",
|
|
13047
|
-
children: /* @__PURE__ */
|
|
13048
|
-
/* @__PURE__ */
|
|
13049
|
-
/* @__PURE__ */
|
|
13201
|
+
children: /* @__PURE__ */ jsx62("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs39("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
13202
|
+
/* @__PURE__ */ jsx62("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
13203
|
+
/* @__PURE__ */ jsx62("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ jsx62(
|
|
13050
13204
|
"animateTransform",
|
|
13051
13205
|
{
|
|
13052
13206
|
attributeName: "transform",
|
|
@@ -13063,12 +13217,12 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
13063
13217
|
};
|
|
13064
13218
|
|
|
13065
13219
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
13066
|
-
import { css as
|
|
13220
|
+
import { css as css52 } from "@emotion/react";
|
|
13067
13221
|
import { CgAdd as CgAdd2, CgChevronRight as CgChevronRight2 } from "react-icons/cg";
|
|
13068
13222
|
|
|
13069
13223
|
// src/components/Tiles/styles/IntegrationTile.styles.ts
|
|
13070
|
-
import { css as
|
|
13071
|
-
var IntegrationTileContainer =
|
|
13224
|
+
import { css as css51 } from "@emotion/react";
|
|
13225
|
+
var IntegrationTileContainer = css51`
|
|
13072
13226
|
align-items: center;
|
|
13073
13227
|
box-sizing: border-box;
|
|
13074
13228
|
border-radius: var(--rounded-base);
|
|
@@ -13099,22 +13253,22 @@ var IntegrationTileContainer = css48`
|
|
|
13099
13253
|
}
|
|
13100
13254
|
}
|
|
13101
13255
|
`;
|
|
13102
|
-
var IntegrationTileBtnDashedBorder =
|
|
13256
|
+
var IntegrationTileBtnDashedBorder = css51`
|
|
13103
13257
|
border: 1px dashed var(--brand-secondary-1);
|
|
13104
13258
|
`;
|
|
13105
|
-
var IntegrationTileTitle =
|
|
13259
|
+
var IntegrationTileTitle = css51`
|
|
13106
13260
|
display: block;
|
|
13107
13261
|
font-weight: var(--fw-bold);
|
|
13108
13262
|
margin: 0 0 var(--spacing-base);
|
|
13109
13263
|
max-width: 13rem;
|
|
13110
13264
|
`;
|
|
13111
|
-
var IntegrationTitleLogo =
|
|
13265
|
+
var IntegrationTitleLogo = css51`
|
|
13112
13266
|
display: block;
|
|
13113
13267
|
max-width: 10rem;
|
|
13114
13268
|
max-height: 4rem;
|
|
13115
13269
|
margin: 0 auto;
|
|
13116
13270
|
`;
|
|
13117
|
-
var IntegrationTileName =
|
|
13271
|
+
var IntegrationTileName = css51`
|
|
13118
13272
|
color: var(--gray-500);
|
|
13119
13273
|
display: -webkit-box;
|
|
13120
13274
|
-webkit-line-clamp: 1;
|
|
@@ -13127,7 +13281,7 @@ var IntegrationTileName = css48`
|
|
|
13127
13281
|
position: absolute;
|
|
13128
13282
|
bottom: calc(var(--spacing-base) * 3.8);
|
|
13129
13283
|
`;
|
|
13130
|
-
var IntegrationAddedText =
|
|
13284
|
+
var IntegrationAddedText = css51`
|
|
13131
13285
|
align-items: center;
|
|
13132
13286
|
background: var(--brand-secondary-3);
|
|
13133
13287
|
border-radius: 0 var(--rounded-md) 0 var(--rounded-md);
|
|
@@ -13142,7 +13296,7 @@ var IntegrationAddedText = css48`
|
|
|
13142
13296
|
top: 0;
|
|
13143
13297
|
right: 0;
|
|
13144
13298
|
`;
|
|
13145
|
-
var IntegrationCustomBadgeText = (theme) =>
|
|
13299
|
+
var IntegrationCustomBadgeText = (theme) => css51`
|
|
13146
13300
|
align-items: center;
|
|
13147
13301
|
border-radius: var(--rounded-sm) 0 var(--rounded-sm) 0;
|
|
13148
13302
|
background: ${theme === "gray" ? "var(--brand-secondary-2)" : "var(--brand-secondary-1)"};
|
|
@@ -13156,26 +13310,26 @@ var IntegrationCustomBadgeText = (theme) => css48`
|
|
|
13156
13310
|
top: 0;
|
|
13157
13311
|
left: 0;
|
|
13158
13312
|
`;
|
|
13159
|
-
var IntegrationAuthorBadgeIcon =
|
|
13313
|
+
var IntegrationAuthorBadgeIcon = css51`
|
|
13160
13314
|
position: absolute;
|
|
13161
13315
|
bottom: var(--spacing-sm);
|
|
13162
13316
|
right: var(--spacing-xs);
|
|
13163
13317
|
max-height: 1rem;
|
|
13164
13318
|
`;
|
|
13165
|
-
var IntegrationTitleFakeButton =
|
|
13319
|
+
var IntegrationTitleFakeButton = css51`
|
|
13166
13320
|
font-size: var(--fs-xs);
|
|
13167
13321
|
gap: var(--spacing-sm);
|
|
13168
13322
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
13169
13323
|
text-transform: uppercase;
|
|
13170
13324
|
`;
|
|
13171
|
-
var IntegrationTileFloatingButton =
|
|
13325
|
+
var IntegrationTileFloatingButton = css51`
|
|
13172
13326
|
position: absolute;
|
|
13173
13327
|
bottom: var(--spacing-base);
|
|
13174
13328
|
gap: var(--spacing-sm);
|
|
13175
13329
|
font-size: var(--fs-xs);
|
|
13176
13330
|
overflow: hidden;
|
|
13177
13331
|
`;
|
|
13178
|
-
var IntegrationTileFloatingButtonMessage = (clicked) =>
|
|
13332
|
+
var IntegrationTileFloatingButtonMessage = (clicked) => css51`
|
|
13179
13333
|
strong,
|
|
13180
13334
|
span:first-of-type {
|
|
13181
13335
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
@@ -13196,7 +13350,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => css48`
|
|
|
13196
13350
|
`;
|
|
13197
13351
|
|
|
13198
13352
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
13199
|
-
import { jsx as
|
|
13353
|
+
import { jsx as jsx63, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
|
|
13200
13354
|
var CreateTeamIntegrationTile = ({
|
|
13201
13355
|
title = "Create a custom integration for your team",
|
|
13202
13356
|
buttonText = "Add Integration",
|
|
@@ -13204,9 +13358,9 @@ var CreateTeamIntegrationTile = ({
|
|
|
13204
13358
|
asDeepLink = false,
|
|
13205
13359
|
...props
|
|
13206
13360
|
}) => {
|
|
13207
|
-
return /* @__PURE__ */
|
|
13208
|
-
/* @__PURE__ */
|
|
13209
|
-
/* @__PURE__ */
|
|
13361
|
+
return /* @__PURE__ */ jsxs40("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
13362
|
+
/* @__PURE__ */ jsx63("span", { css: IntegrationTileTitle, title, children: title }),
|
|
13363
|
+
/* @__PURE__ */ jsxs40(
|
|
13210
13364
|
Button,
|
|
13211
13365
|
{
|
|
13212
13366
|
buttonType: "tertiary",
|
|
@@ -13216,23 +13370,23 @@ var CreateTeamIntegrationTile = ({
|
|
|
13216
13370
|
css: IntegrationTitleFakeButton,
|
|
13217
13371
|
children: [
|
|
13218
13372
|
buttonText,
|
|
13219
|
-
asDeepLink ? /* @__PURE__ */
|
|
13373
|
+
asDeepLink ? /* @__PURE__ */ jsx63(
|
|
13220
13374
|
Icon,
|
|
13221
13375
|
{
|
|
13222
13376
|
icon: CgChevronRight2,
|
|
13223
13377
|
iconColor: "currentColor",
|
|
13224
13378
|
size: 20,
|
|
13225
|
-
css:
|
|
13379
|
+
css: css52`
|
|
13226
13380
|
order: 1;
|
|
13227
13381
|
`
|
|
13228
13382
|
}
|
|
13229
|
-
) : /* @__PURE__ */
|
|
13383
|
+
) : /* @__PURE__ */ jsx63(
|
|
13230
13384
|
Icon,
|
|
13231
13385
|
{
|
|
13232
13386
|
icon: CgAdd2,
|
|
13233
13387
|
iconColor: "currentColor",
|
|
13234
13388
|
size: 16,
|
|
13235
|
-
css:
|
|
13389
|
+
css: css52`
|
|
13236
13390
|
order: -1;
|
|
13237
13391
|
`
|
|
13238
13392
|
}
|
|
@@ -13245,31 +13399,31 @@ var CreateTeamIntegrationTile = ({
|
|
|
13245
13399
|
|
|
13246
13400
|
// src/components/Tiles/IntegrationBadges.tsx
|
|
13247
13401
|
import { CgCheck as CgCheck2, CgLock, CgSandClock } from "react-icons/cg";
|
|
13248
|
-
import { jsx as
|
|
13402
|
+
import { jsx as jsx64, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
13249
13403
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
13250
|
-
return /* @__PURE__ */
|
|
13251
|
-
/* @__PURE__ */
|
|
13404
|
+
return /* @__PURE__ */ jsxs41("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
13405
|
+
/* @__PURE__ */ jsx64(Icon, { icon: CgCheck2, iconColor: "currentColor" }),
|
|
13252
13406
|
text
|
|
13253
13407
|
] });
|
|
13254
13408
|
};
|
|
13255
13409
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
13256
|
-
return /* @__PURE__ */
|
|
13410
|
+
return /* @__PURE__ */ jsx64("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
13257
13411
|
};
|
|
13258
13412
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
13259
|
-
return /* @__PURE__ */
|
|
13260
|
-
/* @__PURE__ */
|
|
13413
|
+
return /* @__PURE__ */ jsxs41("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
13414
|
+
/* @__PURE__ */ jsx64(Icon, { icon: CgLock, iconColor: "currentColor", size: 12 }),
|
|
13261
13415
|
text
|
|
13262
13416
|
] });
|
|
13263
13417
|
};
|
|
13264
13418
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
13265
|
-
return /* @__PURE__ */
|
|
13266
|
-
/* @__PURE__ */
|
|
13419
|
+
return /* @__PURE__ */ jsxs41("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
13420
|
+
/* @__PURE__ */ jsx64(Icon, { icon: CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
13267
13421
|
text
|
|
13268
13422
|
] });
|
|
13269
13423
|
};
|
|
13270
13424
|
|
|
13271
13425
|
// src/components/Tiles/ResolveIcon.tsx
|
|
13272
|
-
import { jsx as
|
|
13426
|
+
import { jsx as jsx65 } from "@emotion/react/jsx-runtime";
|
|
13273
13427
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
13274
13428
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
13275
13429
|
const mapClassName = {
|
|
@@ -13277,13 +13431,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
13277
13431
|
logo: IntegrationTitleLogo
|
|
13278
13432
|
};
|
|
13279
13433
|
if (icon) {
|
|
13280
|
-
return CompIcon ? /* @__PURE__ */
|
|
13434
|
+
return CompIcon ? /* @__PURE__ */ jsx65(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ jsx65("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
13281
13435
|
}
|
|
13282
13436
|
return null;
|
|
13283
13437
|
};
|
|
13284
13438
|
|
|
13285
13439
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
13286
|
-
import { jsx as
|
|
13440
|
+
import { jsx as jsx66, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
13287
13441
|
var EditTeamIntegrationTile = ({
|
|
13288
13442
|
id,
|
|
13289
13443
|
icon,
|
|
@@ -13292,17 +13446,17 @@ var EditTeamIntegrationTile = ({
|
|
|
13292
13446
|
isPublic,
|
|
13293
13447
|
canEdit = false
|
|
13294
13448
|
}) => {
|
|
13295
|
-
return /* @__PURE__ */
|
|
13449
|
+
return /* @__PURE__ */ jsxs42(
|
|
13296
13450
|
"div",
|
|
13297
13451
|
{
|
|
13298
13452
|
css: IntegrationTileContainer,
|
|
13299
13453
|
"data-testid": "configure-integration-container",
|
|
13300
13454
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
13301
13455
|
children: [
|
|
13302
|
-
/* @__PURE__ */
|
|
13303
|
-
/* @__PURE__ */
|
|
13304
|
-
!isPublic ? /* @__PURE__ */
|
|
13305
|
-
canEdit ? /* @__PURE__ */
|
|
13456
|
+
/* @__PURE__ */ jsx66(ResolveIcon, { icon, name, "data-test-id": "integration-logo" }),
|
|
13457
|
+
/* @__PURE__ */ jsx66("span", { css: IntegrationTileName, "data-test-id": "integration-card-name", children: name }),
|
|
13458
|
+
!isPublic ? /* @__PURE__ */ jsx66(IntegrationCustomBadge, {}) : null,
|
|
13459
|
+
canEdit ? /* @__PURE__ */ jsx66(
|
|
13306
13460
|
Button,
|
|
13307
13461
|
{
|
|
13308
13462
|
buttonType: "unimportant",
|
|
@@ -13320,10 +13474,10 @@ var EditTeamIntegrationTile = ({
|
|
|
13320
13474
|
};
|
|
13321
13475
|
|
|
13322
13476
|
// src/components/Tiles/IntegrationComingSoon.tsx
|
|
13323
|
-
import { css as
|
|
13477
|
+
import { css as css53 } from "@emotion/react";
|
|
13324
13478
|
import { useEffect as useEffect7, useState as useState6 } from "react";
|
|
13325
13479
|
import { CgHeart } from "react-icons/cg";
|
|
13326
|
-
import { jsx as
|
|
13480
|
+
import { jsx as jsx67, jsxs as jsxs43 } from "@emotion/react/jsx-runtime";
|
|
13327
13481
|
var IntegrationComingSoon = ({
|
|
13328
13482
|
name,
|
|
13329
13483
|
icon,
|
|
@@ -13345,17 +13499,17 @@ var IntegrationComingSoon = ({
|
|
|
13345
13499
|
};
|
|
13346
13500
|
}
|
|
13347
13501
|
}, [upVote, setUpVote, timing]);
|
|
13348
|
-
return /* @__PURE__ */
|
|
13502
|
+
return /* @__PURE__ */ jsxs43(
|
|
13349
13503
|
"div",
|
|
13350
13504
|
{
|
|
13351
13505
|
css: IntegrationTileContainer,
|
|
13352
13506
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
13353
13507
|
...props,
|
|
13354
13508
|
children: [
|
|
13355
|
-
/* @__PURE__ */
|
|
13356
|
-
/* @__PURE__ */
|
|
13357
|
-
/* @__PURE__ */
|
|
13358
|
-
/* @__PURE__ */
|
|
13509
|
+
/* @__PURE__ */ jsx67(IntegrationComingSoonBadge, {}),
|
|
13510
|
+
/* @__PURE__ */ jsx67(ResolveIcon, { icon, name }),
|
|
13511
|
+
/* @__PURE__ */ jsx67("span", { css: IntegrationTileName, title: name, children: name }),
|
|
13512
|
+
/* @__PURE__ */ jsxs43(
|
|
13359
13513
|
Button,
|
|
13360
13514
|
{
|
|
13361
13515
|
buttonType: "unimportant",
|
|
@@ -13365,19 +13519,19 @@ var IntegrationComingSoon = ({
|
|
|
13365
13519
|
role: "link",
|
|
13366
13520
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
13367
13521
|
children: [
|
|
13368
|
-
/* @__PURE__ */
|
|
13369
|
-
/* @__PURE__ */
|
|
13522
|
+
/* @__PURE__ */ jsx67("strong", { children: "+1" }),
|
|
13523
|
+
/* @__PURE__ */ jsx67(
|
|
13370
13524
|
"span",
|
|
13371
13525
|
{
|
|
13372
|
-
css:
|
|
13526
|
+
css: css53`
|
|
13373
13527
|
text-transform: uppercase;
|
|
13374
13528
|
color: var(--gray-500);
|
|
13375
13529
|
`,
|
|
13376
13530
|
children: "(I want this)"
|
|
13377
13531
|
}
|
|
13378
13532
|
),
|
|
13379
|
-
/* @__PURE__ */
|
|
13380
|
-
/* @__PURE__ */
|
|
13533
|
+
/* @__PURE__ */ jsxs43("span", { "aria-hidden": !upVote, children: [
|
|
13534
|
+
/* @__PURE__ */ jsx67(Icon, { icon: CgHeart, iconColor: "currentColor", size: 18 }),
|
|
13381
13535
|
"Thanks!"
|
|
13382
13536
|
] })
|
|
13383
13537
|
]
|
|
@@ -13389,8 +13543,8 @@ var IntegrationComingSoon = ({
|
|
|
13389
13543
|
};
|
|
13390
13544
|
|
|
13391
13545
|
// src/components/Tiles/styles/IntegrationLoadingTile.styles.ts
|
|
13392
|
-
import { css as
|
|
13393
|
-
var IntegrationLoadingTileContainer =
|
|
13546
|
+
import { css as css54 } from "@emotion/react";
|
|
13547
|
+
var IntegrationLoadingTileContainer = css54`
|
|
13394
13548
|
align-items: center;
|
|
13395
13549
|
box-sizing: border-box;
|
|
13396
13550
|
border-radius: var(--rounded-base);
|
|
@@ -13417,39 +13571,39 @@ var IntegrationLoadingTileContainer = css51`
|
|
|
13417
13571
|
}
|
|
13418
13572
|
}
|
|
13419
13573
|
`;
|
|
13420
|
-
var IntegrationLoadingTileImg =
|
|
13574
|
+
var IntegrationLoadingTileImg = css54`
|
|
13421
13575
|
width: 10rem;
|
|
13422
13576
|
height: 4rem;
|
|
13423
13577
|
margin: 0 auto;
|
|
13424
13578
|
`;
|
|
13425
|
-
var IntegrationLoadingTileText =
|
|
13579
|
+
var IntegrationLoadingTileText = css54`
|
|
13426
13580
|
width: 5rem;
|
|
13427
13581
|
height: var(--spacing-sm);
|
|
13428
13582
|
margin: var(--spacing-sm) 0;
|
|
13429
13583
|
`;
|
|
13430
|
-
var IntegrationLoadingFrame =
|
|
13584
|
+
var IntegrationLoadingFrame = css54`
|
|
13431
13585
|
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
13432
13586
|
border-radius: var(--rounded-base);
|
|
13433
13587
|
`;
|
|
13434
13588
|
|
|
13435
13589
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
13436
|
-
import { Fragment as Fragment7, jsx as
|
|
13590
|
+
import { Fragment as Fragment7, jsx as jsx68, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
13437
13591
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
13438
13592
|
const componentCount = Array.from(Array(count).keys());
|
|
13439
|
-
return /* @__PURE__ */
|
|
13440
|
-
/* @__PURE__ */
|
|
13441
|
-
/* @__PURE__ */
|
|
13593
|
+
return /* @__PURE__ */ jsx68(Fragment7, { children: componentCount.map((i) => /* @__PURE__ */ jsxs44("div", { css: IntegrationLoadingTileContainer, children: [
|
|
13594
|
+
/* @__PURE__ */ jsx68("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
13595
|
+
/* @__PURE__ */ jsx68("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
13442
13596
|
] }, i)) });
|
|
13443
13597
|
};
|
|
13444
13598
|
|
|
13445
13599
|
// src/components/Tiles/styles/IntegrationModalIcon.styles.ts
|
|
13446
|
-
import { css as
|
|
13447
|
-
var IntegrationModalIconContainer =
|
|
13600
|
+
import { css as css55 } from "@emotion/react";
|
|
13601
|
+
var IntegrationModalIconContainer = css55`
|
|
13448
13602
|
position: relative;
|
|
13449
13603
|
width: 50px;
|
|
13450
13604
|
margin-bottom: var(--spacing-base);
|
|
13451
13605
|
`;
|
|
13452
|
-
var IntegrationModalImage =
|
|
13606
|
+
var IntegrationModalImage = css55`
|
|
13453
13607
|
position: absolute;
|
|
13454
13608
|
inset: 0;
|
|
13455
13609
|
margin: auto;
|
|
@@ -13458,7 +13612,7 @@ var IntegrationModalImage = css52`
|
|
|
13458
13612
|
`;
|
|
13459
13613
|
|
|
13460
13614
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
13461
|
-
import { jsx as
|
|
13615
|
+
import { jsx as jsx69, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
|
|
13462
13616
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
13463
13617
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
13464
13618
|
let iconSrc = void 0;
|
|
@@ -13471,9 +13625,9 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
13471
13625
|
} catch (e) {
|
|
13472
13626
|
}
|
|
13473
13627
|
}
|
|
13474
|
-
return /* @__PURE__ */
|
|
13475
|
-
/* @__PURE__ */
|
|
13476
|
-
/* @__PURE__ */
|
|
13628
|
+
return /* @__PURE__ */ jsxs45("div", { css: IntegrationModalIconContainer, children: [
|
|
13629
|
+
/* @__PURE__ */ jsxs45("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
13630
|
+
/* @__PURE__ */ jsx69(
|
|
13477
13631
|
"path",
|
|
13478
13632
|
{
|
|
13479
13633
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -13482,12 +13636,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
13482
13636
|
strokeWidth: "2"
|
|
13483
13637
|
}
|
|
13484
13638
|
),
|
|
13485
|
-
/* @__PURE__ */
|
|
13486
|
-
/* @__PURE__ */
|
|
13487
|
-
/* @__PURE__ */
|
|
13639
|
+
/* @__PURE__ */ jsx69("defs", { children: /* @__PURE__ */ jsxs45("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
13640
|
+
/* @__PURE__ */ jsx69("stop", { stopColor: "#1768B2" }),
|
|
13641
|
+
/* @__PURE__ */ jsx69("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
13488
13642
|
] }) })
|
|
13489
13643
|
] }),
|
|
13490
|
-
CompIcon ? /* @__PURE__ */
|
|
13644
|
+
CompIcon ? /* @__PURE__ */ jsx69(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : /* @__PURE__ */ jsx69(
|
|
13491
13645
|
"img",
|
|
13492
13646
|
{
|
|
13493
13647
|
src: iconSrc,
|
|
@@ -13501,7 +13655,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
13501
13655
|
};
|
|
13502
13656
|
|
|
13503
13657
|
// src/components/Tiles/IntegrationTile.tsx
|
|
13504
|
-
import { jsx as
|
|
13658
|
+
import { jsx as jsx70, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
13505
13659
|
var IntegrationTile = ({
|
|
13506
13660
|
id,
|
|
13507
13661
|
icon,
|
|
@@ -13513,7 +13667,7 @@ var IntegrationTile = ({
|
|
|
13513
13667
|
authorIcon,
|
|
13514
13668
|
...btnProps
|
|
13515
13669
|
}) => {
|
|
13516
|
-
return /* @__PURE__ */
|
|
13670
|
+
return /* @__PURE__ */ jsxs46(
|
|
13517
13671
|
"button",
|
|
13518
13672
|
{
|
|
13519
13673
|
type: "button",
|
|
@@ -13523,70 +13677,70 @@ var IntegrationTile = ({
|
|
|
13523
13677
|
"aria-label": name,
|
|
13524
13678
|
...btnProps,
|
|
13525
13679
|
children: [
|
|
13526
|
-
/* @__PURE__ */
|
|
13527
|
-
/* @__PURE__ */
|
|
13528
|
-
isInstalled ? /* @__PURE__ */
|
|
13529
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */
|
|
13530
|
-
!isPublic ? /* @__PURE__ */
|
|
13531
|
-
authorIcon ? /* @__PURE__ */
|
|
13680
|
+
/* @__PURE__ */ jsx70(ResolveIcon, { icon, name }),
|
|
13681
|
+
/* @__PURE__ */ jsx70("span", { css: IntegrationTileName, title: name, children: name }),
|
|
13682
|
+
isInstalled ? /* @__PURE__ */ jsx70(IntegrationedAddedBadge, {}) : null,
|
|
13683
|
+
requiedEntitlement && isPublic ? /* @__PURE__ */ jsx70(IntegrationPremiumBadge, {}) : null,
|
|
13684
|
+
!isPublic ? /* @__PURE__ */ jsx70(IntegrationCustomBadge, {}) : null,
|
|
13685
|
+
authorIcon ? /* @__PURE__ */ jsx70(ResolveIcon, { icon: authorIcon, name }) : null
|
|
13532
13686
|
]
|
|
13533
13687
|
}
|
|
13534
13688
|
);
|
|
13535
13689
|
};
|
|
13536
13690
|
|
|
13537
13691
|
// src/components/Tiles/styles/TileContainer.styles.ts
|
|
13538
|
-
import { css as
|
|
13539
|
-
var TileContainerWrapper =
|
|
13692
|
+
import { css as css56 } from "@emotion/react";
|
|
13693
|
+
var TileContainerWrapper = css56`
|
|
13540
13694
|
background: var(--brand-secondary-2);
|
|
13541
13695
|
padding: var(--spacing-base);
|
|
13542
13696
|
margin-bottom: var(--spacing-lg);
|
|
13543
13697
|
`;
|
|
13544
|
-
var TileContainerInner =
|
|
13698
|
+
var TileContainerInner = css56`
|
|
13545
13699
|
display: grid;
|
|
13546
13700
|
grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
|
|
13547
13701
|
gap: var(--spacing-base);
|
|
13548
13702
|
`;
|
|
13549
13703
|
|
|
13550
13704
|
// src/components/Tiles/TileContainer.tsx
|
|
13551
|
-
import { jsx as
|
|
13705
|
+
import { jsx as jsx71 } from "@emotion/react/jsx-runtime";
|
|
13552
13706
|
var TileContainer = ({ children, ...props }) => {
|
|
13553
|
-
return /* @__PURE__ */
|
|
13707
|
+
return /* @__PURE__ */ jsx71("div", { css: TileContainerWrapper, ...props, children: /* @__PURE__ */ jsx71("div", { css: TileContainerInner, children }) });
|
|
13554
13708
|
};
|
|
13555
13709
|
|
|
13556
13710
|
// src/components/Modal/IntegrationModalHeader.styles.ts
|
|
13557
|
-
import { css as
|
|
13558
|
-
var IntegrationModalHeaderSVGBackground =
|
|
13711
|
+
import { css as css57 } from "@emotion/react";
|
|
13712
|
+
var IntegrationModalHeaderSVGBackground = css57`
|
|
13559
13713
|
position: absolute;
|
|
13560
13714
|
top: 0;
|
|
13561
13715
|
left: 0;
|
|
13562
13716
|
`;
|
|
13563
|
-
var IntegrationModalHeaderGroup =
|
|
13717
|
+
var IntegrationModalHeaderGroup = css57`
|
|
13564
13718
|
align-items: center;
|
|
13565
13719
|
display: flex;
|
|
13566
13720
|
gap: var(--spacing-sm);
|
|
13567
13721
|
margin: 0 0 var(--spacing-md);
|
|
13568
13722
|
position: relative;
|
|
13569
13723
|
`;
|
|
13570
|
-
var IntegrationModalHeaderTitleGroup =
|
|
13724
|
+
var IntegrationModalHeaderTitleGroup = css57`
|
|
13571
13725
|
align-items: center;
|
|
13572
13726
|
display: flex;
|
|
13573
13727
|
gap: var(--spacing-base);
|
|
13574
13728
|
`;
|
|
13575
|
-
var IntegrationModalHeaderTitle =
|
|
13729
|
+
var IntegrationModalHeaderTitle = css57`
|
|
13576
13730
|
margin-top: 0;
|
|
13577
13731
|
`;
|
|
13578
|
-
var IntegrationModalHeaderMenuPlacement =
|
|
13732
|
+
var IntegrationModalHeaderMenuPlacement = css57`
|
|
13579
13733
|
margin-bottom: var(--spacing-base);
|
|
13580
13734
|
`;
|
|
13581
|
-
var IntegrationModalHeaderContentWrapper =
|
|
13735
|
+
var IntegrationModalHeaderContentWrapper = css57`
|
|
13582
13736
|
position: relative;
|
|
13583
13737
|
z-index: var(--z-10);
|
|
13584
13738
|
`;
|
|
13585
13739
|
|
|
13586
13740
|
// src/components/Modal/IntegrationModalHeader.tsx
|
|
13587
|
-
import { Fragment as Fragment8, jsx as
|
|
13741
|
+
import { Fragment as Fragment8, jsx as jsx72, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
13588
13742
|
var HexModalBackground = ({ ...props }) => {
|
|
13589
|
-
return /* @__PURE__ */
|
|
13743
|
+
return /* @__PURE__ */ jsxs47(
|
|
13590
13744
|
"svg",
|
|
13591
13745
|
{
|
|
13592
13746
|
width: "236",
|
|
@@ -13596,7 +13750,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13596
13750
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13597
13751
|
...props,
|
|
13598
13752
|
children: [
|
|
13599
|
-
/* @__PURE__ */
|
|
13753
|
+
/* @__PURE__ */ jsx72(
|
|
13600
13754
|
"path",
|
|
13601
13755
|
{
|
|
13602
13756
|
fillRule: "evenodd",
|
|
@@ -13605,7 +13759,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13605
13759
|
fill: "url(#paint0_linear_196_2737)"
|
|
13606
13760
|
}
|
|
13607
13761
|
),
|
|
13608
|
-
/* @__PURE__ */
|
|
13762
|
+
/* @__PURE__ */ jsx72("defs", { children: /* @__PURE__ */ jsxs47(
|
|
13609
13763
|
"linearGradient",
|
|
13610
13764
|
{
|
|
13611
13765
|
id: "paint0_linear_196_2737",
|
|
@@ -13615,8 +13769,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13615
13769
|
y2: "-95.2742",
|
|
13616
13770
|
gradientUnits: "userSpaceOnUse",
|
|
13617
13771
|
children: [
|
|
13618
|
-
/* @__PURE__ */
|
|
13619
|
-
/* @__PURE__ */
|
|
13772
|
+
/* @__PURE__ */ jsx72("stop", { stopColor: "#81DCDE" }),
|
|
13773
|
+
/* @__PURE__ */ jsx72("stop", { offset: "1", stopColor: "#428ED4" })
|
|
13620
13774
|
]
|
|
13621
13775
|
}
|
|
13622
13776
|
) })
|
|
@@ -13625,17 +13779,17 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13625
13779
|
);
|
|
13626
13780
|
};
|
|
13627
13781
|
var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
13628
|
-
return /* @__PURE__ */
|
|
13629
|
-
/* @__PURE__ */
|
|
13630
|
-
/* @__PURE__ */
|
|
13631
|
-
icon ? /* @__PURE__ */
|
|
13632
|
-
/* @__PURE__ */
|
|
13633
|
-
menu2 ? /* @__PURE__ */
|
|
13782
|
+
return /* @__PURE__ */ jsxs47(Fragment8, { children: [
|
|
13783
|
+
/* @__PURE__ */ jsx72(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
13784
|
+
/* @__PURE__ */ jsx72("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs47("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
13785
|
+
icon ? /* @__PURE__ */ jsx72(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
13786
|
+
/* @__PURE__ */ jsx72(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-test-id": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
13787
|
+
menu2 ? /* @__PURE__ */ jsxs47("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
13634
13788
|
menu2,
|
|
13635
13789
|
" "
|
|
13636
13790
|
] }) : null
|
|
13637
13791
|
] }) }),
|
|
13638
|
-
/* @__PURE__ */
|
|
13792
|
+
/* @__PURE__ */ jsx72("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
13639
13793
|
] });
|
|
13640
13794
|
};
|
|
13641
13795
|
|
|
@@ -13649,8 +13803,8 @@ import {
|
|
|
13649
13803
|
} from "reakit/Tooltip";
|
|
13650
13804
|
|
|
13651
13805
|
// src/components/Tooltip/Tooltip.styles.ts
|
|
13652
|
-
import { css as
|
|
13653
|
-
var TooltipContainer =
|
|
13806
|
+
import { css as css58 } from "@emotion/react";
|
|
13807
|
+
var TooltipContainer = css58`
|
|
13654
13808
|
border: 2px solid var(--gray-300);
|
|
13655
13809
|
border-radius: var(--rounded-base);
|
|
13656
13810
|
padding: var(--spacing-xs) var(--spacing-sm);
|
|
@@ -13658,28 +13812,28 @@ var TooltipContainer = css55`
|
|
|
13658
13812
|
font-size: var(--fs-xs);
|
|
13659
13813
|
background: var(--white);
|
|
13660
13814
|
`;
|
|
13661
|
-
var TooltipArrowStyles =
|
|
13815
|
+
var TooltipArrowStyles = css58`
|
|
13662
13816
|
svg {
|
|
13663
13817
|
fill: var(--gray-300);
|
|
13664
13818
|
}
|
|
13665
13819
|
`;
|
|
13666
13820
|
|
|
13667
13821
|
// src/components/Tooltip/Tooltip.tsx
|
|
13668
|
-
import { Fragment as Fragment9, jsx as
|
|
13822
|
+
import { Fragment as Fragment9, jsx as jsx73, jsxs as jsxs48 } from "@emotion/react/jsx-runtime";
|
|
13669
13823
|
function Tooltip({ children, title, placement = "bottom", visible, ...props }) {
|
|
13670
13824
|
const tooltip = useTooltipState({ placement });
|
|
13671
|
-
return !title ? children : /* @__PURE__ */
|
|
13672
|
-
/* @__PURE__ */
|
|
13673
|
-
/* @__PURE__ */
|
|
13674
|
-
/* @__PURE__ */
|
|
13825
|
+
return !title ? children : /* @__PURE__ */ jsxs48(Fragment9, { children: [
|
|
13826
|
+
/* @__PURE__ */ jsx73(TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => React15.cloneElement(children, referenceProps) }),
|
|
13827
|
+
/* @__PURE__ */ jsxs48(ReakitTooltip, { ...tooltip, ...props, css: TooltipContainer, visible: visible != null ? visible : tooltip.visible, children: [
|
|
13828
|
+
/* @__PURE__ */ jsx73(TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
|
|
13675
13829
|
title
|
|
13676
13830
|
] })
|
|
13677
13831
|
] });
|
|
13678
13832
|
}
|
|
13679
13833
|
|
|
13680
13834
|
// src/components/ParameterInputs/styles/ParameterBindingButton.styles.ts
|
|
13681
|
-
import { css as
|
|
13682
|
-
var inputIconBtn =
|
|
13835
|
+
import { css as css59 } from "@emotion/react";
|
|
13836
|
+
var inputIconBtn = css59`
|
|
13683
13837
|
align-items: center;
|
|
13684
13838
|
border: none;
|
|
13685
13839
|
border-radius: var(--rounded-base);
|
|
@@ -13702,7 +13856,7 @@ var inputIconBtn = css56`
|
|
|
13702
13856
|
`;
|
|
13703
13857
|
|
|
13704
13858
|
// src/components/ParameterInputs/ConnectToDataElementButton.tsx
|
|
13705
|
-
import { jsx as
|
|
13859
|
+
import { jsx as jsx74, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
13706
13860
|
var ConnectToDataElementButton = ({
|
|
13707
13861
|
icon,
|
|
13708
13862
|
iconColor,
|
|
@@ -13712,7 +13866,7 @@ var ConnectToDataElementButton = ({
|
|
|
13712
13866
|
...props
|
|
13713
13867
|
}) => {
|
|
13714
13868
|
const title = isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
13715
|
-
return /* @__PURE__ */
|
|
13869
|
+
return /* @__PURE__ */ jsx74(Tooltip, { title, children: /* @__PURE__ */ jsxs49(
|
|
13716
13870
|
"button",
|
|
13717
13871
|
{
|
|
13718
13872
|
css: inputIconBtn,
|
|
@@ -13721,7 +13875,7 @@ var ConnectToDataElementButton = ({
|
|
|
13721
13875
|
"aria-disabled": isLocked,
|
|
13722
13876
|
...props,
|
|
13723
13877
|
children: [
|
|
13724
|
-
/* @__PURE__ */
|
|
13878
|
+
/* @__PURE__ */ jsx74(
|
|
13725
13879
|
Icon,
|
|
13726
13880
|
{
|
|
13727
13881
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -13757,8 +13911,8 @@ var useParameterShell = () => {
|
|
|
13757
13911
|
};
|
|
13758
13912
|
|
|
13759
13913
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
13760
|
-
import { css as
|
|
13761
|
-
var inputContainer2 =
|
|
13914
|
+
import { css as css60 } from "@emotion/react";
|
|
13915
|
+
var inputContainer2 = css60`
|
|
13762
13916
|
position: relative;
|
|
13763
13917
|
|
|
13764
13918
|
&:hover,
|
|
@@ -13770,14 +13924,14 @@ var inputContainer2 = css57`
|
|
|
13770
13924
|
}
|
|
13771
13925
|
}
|
|
13772
13926
|
`;
|
|
13773
|
-
var labelText2 =
|
|
13927
|
+
var labelText2 = css60`
|
|
13774
13928
|
align-items: center;
|
|
13775
13929
|
display: flex;
|
|
13776
13930
|
gap: var(--spacing-xs);
|
|
13777
13931
|
font-weight: var(--fw-regular);
|
|
13778
13932
|
margin: 0 0 var(--spacing-xs);
|
|
13779
13933
|
`;
|
|
13780
|
-
var input2 =
|
|
13934
|
+
var input2 = css60`
|
|
13781
13935
|
display: block;
|
|
13782
13936
|
appearance: none;
|
|
13783
13937
|
box-sizing: border-box;
|
|
@@ -13821,18 +13975,18 @@ var input2 = css57`
|
|
|
13821
13975
|
color: var(--gray-400);
|
|
13822
13976
|
}
|
|
13823
13977
|
`;
|
|
13824
|
-
var selectInput =
|
|
13978
|
+
var selectInput = css60`
|
|
13825
13979
|
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
13980
|
background-position: right var(--spacing-sm) center;
|
|
13827
13981
|
background-repeat: no-repeat;
|
|
13828
13982
|
background-size: 1rem;
|
|
13829
13983
|
padding-right: var(--spacing-xl);
|
|
13830
13984
|
`;
|
|
13831
|
-
var inputWrapper =
|
|
13985
|
+
var inputWrapper = css60`
|
|
13832
13986
|
display: flex; // used to correct overflow with chrome textarea
|
|
13833
13987
|
position: relative;
|
|
13834
13988
|
`;
|
|
13835
|
-
var inputIcon2 =
|
|
13989
|
+
var inputIcon2 = css60`
|
|
13836
13990
|
align-items: center;
|
|
13837
13991
|
background: var(--white);
|
|
13838
13992
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -13848,7 +14002,7 @@ var inputIcon2 = css57`
|
|
|
13848
14002
|
width: var(--spacing-lg);
|
|
13849
14003
|
z-index: var(--z-10);
|
|
13850
14004
|
`;
|
|
13851
|
-
var inputToggleLabel2 =
|
|
14005
|
+
var inputToggleLabel2 = css60`
|
|
13852
14006
|
align-items: center;
|
|
13853
14007
|
background: var(--white);
|
|
13854
14008
|
cursor: pointer;
|
|
@@ -13859,7 +14013,7 @@ var inputToggleLabel2 = css57`
|
|
|
13859
14013
|
min-height: var(--spacing-md);
|
|
13860
14014
|
position: relative;
|
|
13861
14015
|
`;
|
|
13862
|
-
var toggleInput2 =
|
|
14016
|
+
var toggleInput2 = css60`
|
|
13863
14017
|
appearance: none;
|
|
13864
14018
|
border: 1px solid var(--gray-300);
|
|
13865
14019
|
background: var(--white);
|
|
@@ -13898,7 +14052,7 @@ var toggleInput2 = css57`
|
|
|
13898
14052
|
border-color: var(--gray-300);
|
|
13899
14053
|
}
|
|
13900
14054
|
`;
|
|
13901
|
-
var inlineLabel2 =
|
|
14055
|
+
var inlineLabel2 = css60`
|
|
13902
14056
|
padding-left: var(--spacing-lg);
|
|
13903
14057
|
font-size: var(--fs-sm);
|
|
13904
14058
|
font-weight: var(--fw-regular);
|
|
@@ -13914,7 +14068,7 @@ var inlineLabel2 = css57`
|
|
|
13914
14068
|
}
|
|
13915
14069
|
}
|
|
13916
14070
|
`;
|
|
13917
|
-
var inputMenu =
|
|
14071
|
+
var inputMenu = css60`
|
|
13918
14072
|
background: none;
|
|
13919
14073
|
border: none;
|
|
13920
14074
|
padding: var(--spacing-2xs);
|
|
@@ -13930,14 +14084,14 @@ var inputMenu = css57`
|
|
|
13930
14084
|
background-color: var(--gray-200);
|
|
13931
14085
|
}
|
|
13932
14086
|
`;
|
|
13933
|
-
var textarea2 =
|
|
14087
|
+
var textarea2 = css60`
|
|
13934
14088
|
resize: vertical;
|
|
13935
14089
|
min-height: 2rem;
|
|
13936
14090
|
`;
|
|
13937
|
-
var imageWrapper =
|
|
14091
|
+
var imageWrapper = css60`
|
|
13938
14092
|
background: var(--white);
|
|
13939
14093
|
`;
|
|
13940
|
-
var img =
|
|
14094
|
+
var img = css60`
|
|
13941
14095
|
animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
13942
14096
|
object-fit: contain;
|
|
13943
14097
|
max-width: 100%;
|
|
@@ -13945,7 +14099,7 @@ var img = css57`
|
|
|
13945
14099
|
opacity: var(--opacity-0);
|
|
13946
14100
|
margin: var(--spacing-sm) auto 0;
|
|
13947
14101
|
`;
|
|
13948
|
-
var dataConnectButton =
|
|
14102
|
+
var dataConnectButton = css60`
|
|
13949
14103
|
align-items: center;
|
|
13950
14104
|
appearance: none;
|
|
13951
14105
|
box-sizing: border-box;
|
|
@@ -13980,7 +14134,7 @@ var dataConnectButton = css57`
|
|
|
13980
14134
|
pointer-events: none;
|
|
13981
14135
|
}
|
|
13982
14136
|
`;
|
|
13983
|
-
var linkParameterBtn =
|
|
14137
|
+
var linkParameterBtn = css60`
|
|
13984
14138
|
border-radius: var(--rounded-base);
|
|
13985
14139
|
background: var(--white);
|
|
13986
14140
|
border: none;
|
|
@@ -13992,10 +14146,10 @@ var linkParameterBtn = css57`
|
|
|
13992
14146
|
inset: 0 var(--spacing-base) 0 auto;
|
|
13993
14147
|
padding: 0 var(--spacing-base);
|
|
13994
14148
|
`;
|
|
13995
|
-
var linkParameterInput =
|
|
14149
|
+
var linkParameterInput = css60`
|
|
13996
14150
|
padding-right: calc(var(--spacing-2xl) + var(--spacing-base));
|
|
13997
14151
|
`;
|
|
13998
|
-
var linkParameterIcon =
|
|
14152
|
+
var linkParameterIcon = css60`
|
|
13999
14153
|
align-items: center;
|
|
14000
14154
|
color: var(--brand-secondary-3);
|
|
14001
14155
|
display: flex;
|
|
@@ -14010,7 +14164,7 @@ var linkParameterIcon = css57`
|
|
|
14010
14164
|
`;
|
|
14011
14165
|
|
|
14012
14166
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
14013
|
-
import { jsx as
|
|
14167
|
+
import { jsx as jsx75, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
14014
14168
|
function ParameterDataResource({
|
|
14015
14169
|
label,
|
|
14016
14170
|
labelLeadingIcon,
|
|
@@ -14020,12 +14174,12 @@ function ParameterDataResource({
|
|
|
14020
14174
|
disabled,
|
|
14021
14175
|
children
|
|
14022
14176
|
}) {
|
|
14023
|
-
return /* @__PURE__ */
|
|
14024
|
-
/* @__PURE__ */
|
|
14177
|
+
return /* @__PURE__ */ jsxs50("div", { "data-testid": "parameter-data-connect-button", children: [
|
|
14178
|
+
/* @__PURE__ */ jsxs50("span", { css: labelText2, children: [
|
|
14025
14179
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
14026
14180
|
label
|
|
14027
14181
|
] }),
|
|
14028
|
-
/* @__PURE__ */
|
|
14182
|
+
/* @__PURE__ */ jsxs50(
|
|
14029
14183
|
"button",
|
|
14030
14184
|
{
|
|
14031
14185
|
type: "button",
|
|
@@ -14034,30 +14188,30 @@ function ParameterDataResource({
|
|
|
14034
14188
|
disabled,
|
|
14035
14189
|
onClick: onConnectDatasource,
|
|
14036
14190
|
children: [
|
|
14037
|
-
/* @__PURE__ */
|
|
14191
|
+
/* @__PURE__ */ jsx75("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx75(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
14038
14192
|
children
|
|
14039
14193
|
]
|
|
14040
14194
|
}
|
|
14041
14195
|
),
|
|
14042
|
-
caption ? /* @__PURE__ */
|
|
14196
|
+
caption ? /* @__PURE__ */ jsx75(Caption, { children: caption }) : null
|
|
14043
14197
|
] });
|
|
14044
14198
|
}
|
|
14045
14199
|
|
|
14046
14200
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
14047
|
-
import { css as
|
|
14048
|
-
var ParameterDrawerHeaderContainer =
|
|
14201
|
+
import { css as css61 } from "@emotion/react";
|
|
14202
|
+
var ParameterDrawerHeaderContainer = css61`
|
|
14049
14203
|
align-items: center;
|
|
14050
14204
|
display: flex;
|
|
14051
14205
|
gap: var(--spacing-base);
|
|
14052
14206
|
justify-content: space-between;
|
|
14053
14207
|
margin-bottom: var(--spacing-sm);
|
|
14054
14208
|
`;
|
|
14055
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
14209
|
+
var ParameterDrawerHeaderTitleGroup = css61`
|
|
14056
14210
|
align-items: center;
|
|
14057
14211
|
display: flex;
|
|
14058
14212
|
gap: var(--spacing-sm);
|
|
14059
14213
|
`;
|
|
14060
|
-
var ParameterDrawerHeaderTitle =
|
|
14214
|
+
var ParameterDrawerHeaderTitle = css61`
|
|
14061
14215
|
text-overflow: ellipsis;
|
|
14062
14216
|
white-space: nowrap;
|
|
14063
14217
|
overflow: hidden;
|
|
@@ -14065,12 +14219,12 @@ var ParameterDrawerHeaderTitle = css58`
|
|
|
14065
14219
|
`;
|
|
14066
14220
|
|
|
14067
14221
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
14068
|
-
import { jsx as
|
|
14222
|
+
import { jsx as jsx76, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
14069
14223
|
var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
14070
|
-
return /* @__PURE__ */
|
|
14071
|
-
/* @__PURE__ */
|
|
14224
|
+
return /* @__PURE__ */ jsxs51("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
14225
|
+
/* @__PURE__ */ jsxs51("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
14072
14226
|
iconBeforeTitle,
|
|
14073
|
-
/* @__PURE__ */
|
|
14227
|
+
/* @__PURE__ */ jsx76(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
|
|
14074
14228
|
] }),
|
|
14075
14229
|
children
|
|
14076
14230
|
] });
|
|
@@ -14080,8 +14234,8 @@ var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
|
14080
14234
|
import { forwardRef as forwardRef7 } from "react";
|
|
14081
14235
|
|
|
14082
14236
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
14083
|
-
import { css as
|
|
14084
|
-
var fieldsetStyles =
|
|
14237
|
+
import { css as css62 } from "@emotion/react";
|
|
14238
|
+
var fieldsetStyles = css62`
|
|
14085
14239
|
&:disabled,
|
|
14086
14240
|
[readonly] {
|
|
14087
14241
|
pointer-events: none;
|
|
@@ -14092,7 +14246,7 @@ var fieldsetStyles = css59`
|
|
|
14092
14246
|
}
|
|
14093
14247
|
}
|
|
14094
14248
|
`;
|
|
14095
|
-
var fieldsetLegend2 =
|
|
14249
|
+
var fieldsetLegend2 = css62`
|
|
14096
14250
|
display: block;
|
|
14097
14251
|
font-weight: var(--fw-medium);
|
|
14098
14252
|
margin-bottom: var(--spacing-sm);
|
|
@@ -14100,11 +14254,11 @@ var fieldsetLegend2 = css59`
|
|
|
14100
14254
|
`;
|
|
14101
14255
|
|
|
14102
14256
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
14103
|
-
import { jsx as
|
|
14257
|
+
import { jsx as jsx77, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
14104
14258
|
var ParameterGroup = forwardRef7(
|
|
14105
14259
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
14106
|
-
return /* @__PURE__ */
|
|
14107
|
-
/* @__PURE__ */
|
|
14260
|
+
return /* @__PURE__ */ jsxs52("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
14261
|
+
/* @__PURE__ */ jsx77("legend", { css: fieldsetLegend2, children: legend }),
|
|
14108
14262
|
children
|
|
14109
14263
|
] });
|
|
14110
14264
|
}
|
|
@@ -14117,21 +14271,21 @@ import { forwardRef as forwardRef9, useCallback as useCallback3, useDeferredValu
|
|
|
14117
14271
|
import { useState as useState7 } from "react";
|
|
14118
14272
|
|
|
14119
14273
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
14120
|
-
import { jsx as
|
|
14274
|
+
import { jsx as jsx78 } from "@emotion/react/jsx-runtime";
|
|
14121
14275
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
14122
|
-
return !asSpan ? /* @__PURE__ */
|
|
14276
|
+
return !asSpan ? /* @__PURE__ */ jsx78("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx78("span", { "aria-labelledby": id, css: labelText2, children });
|
|
14123
14277
|
};
|
|
14124
14278
|
|
|
14125
14279
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
14126
14280
|
import { forwardRef as forwardRef8 } from "react";
|
|
14127
|
-
import { jsx as
|
|
14281
|
+
import { jsx as jsx79 } from "@emotion/react/jsx-runtime";
|
|
14128
14282
|
var ParameterMenuButton = forwardRef8(
|
|
14129
14283
|
({ label, children }, ref) => {
|
|
14130
|
-
return /* @__PURE__ */
|
|
14284
|
+
return /* @__PURE__ */ jsx79(
|
|
14131
14285
|
Menu,
|
|
14132
14286
|
{
|
|
14133
14287
|
menuLabel: `${label} menu`,
|
|
14134
|
-
menuTrigger: /* @__PURE__ */
|
|
14288
|
+
menuTrigger: /* @__PURE__ */ jsx79(
|
|
14135
14289
|
"button",
|
|
14136
14290
|
{
|
|
14137
14291
|
className: "parameter-menu",
|
|
@@ -14139,7 +14293,7 @@ var ParameterMenuButton = forwardRef8(
|
|
|
14139
14293
|
type: "button",
|
|
14140
14294
|
"aria-label": `${label} options`,
|
|
14141
14295
|
ref,
|
|
14142
|
-
children: /* @__PURE__ */
|
|
14296
|
+
children: /* @__PURE__ */ jsx79(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
14143
14297
|
}
|
|
14144
14298
|
),
|
|
14145
14299
|
children
|
|
@@ -14149,15 +14303,15 @@ var ParameterMenuButton = forwardRef8(
|
|
|
14149
14303
|
);
|
|
14150
14304
|
|
|
14151
14305
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
14152
|
-
import { css as
|
|
14153
|
-
var emptyParameterShell =
|
|
14306
|
+
import { css as css63 } from "@emotion/react";
|
|
14307
|
+
var emptyParameterShell = css63`
|
|
14154
14308
|
border-radius: var(--rounded-sm);
|
|
14155
14309
|
background: var(--white);
|
|
14156
14310
|
flex-grow: 1;
|
|
14157
14311
|
padding: var(--spacing-xs);
|
|
14158
14312
|
position: relative;
|
|
14159
14313
|
`;
|
|
14160
|
-
var emptyParameterShellText =
|
|
14314
|
+
var emptyParameterShellText = css63`
|
|
14161
14315
|
background: var(--brand-secondary-6);
|
|
14162
14316
|
border-radius: var(--rounded-sm);
|
|
14163
14317
|
padding: var(--spacing-sm);
|
|
@@ -14165,7 +14319,7 @@ var emptyParameterShellText = css60`
|
|
|
14165
14319
|
font-size: var(--fs-sm);
|
|
14166
14320
|
margin: 0;
|
|
14167
14321
|
`;
|
|
14168
|
-
var overrideMarker =
|
|
14322
|
+
var overrideMarker = css63`
|
|
14169
14323
|
border-radius: var(--rounded-sm);
|
|
14170
14324
|
border: 10px solid var(--gray-300);
|
|
14171
14325
|
border-left-color: transparent;
|
|
@@ -14176,7 +14330,7 @@ var overrideMarker = css60`
|
|
|
14176
14330
|
`;
|
|
14177
14331
|
|
|
14178
14332
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
14179
|
-
import { jsx as
|
|
14333
|
+
import { jsx as jsx80, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
14180
14334
|
var extractParameterProps = (props) => {
|
|
14181
14335
|
const {
|
|
14182
14336
|
id,
|
|
@@ -14238,18 +14392,18 @@ var ParameterShell = ({
|
|
|
14238
14392
|
const [manualErrorMessage, setManualErrorMessage] = useState7(void 0);
|
|
14239
14393
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
14240
14394
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
14241
|
-
return /* @__PURE__ */
|
|
14242
|
-
hiddenLabel || title ? null : /* @__PURE__ */
|
|
14395
|
+
return /* @__PURE__ */ jsxs53("div", { css: inputContainer2, ...props, children: [
|
|
14396
|
+
hiddenLabel || title ? null : /* @__PURE__ */ jsxs53(ParameterLabel, { id, css: labelText2, children: [
|
|
14243
14397
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
14244
14398
|
label
|
|
14245
14399
|
] }),
|
|
14246
|
-
!title ? null : /* @__PURE__ */
|
|
14400
|
+
!title ? null : /* @__PURE__ */ jsxs53(ParameterLabel, { id, asSpan: true, children: [
|
|
14247
14401
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
14248
14402
|
title
|
|
14249
14403
|
] }),
|
|
14250
|
-
/* @__PURE__ */
|
|
14251
|
-
menuItems ? /* @__PURE__ */
|
|
14252
|
-
/* @__PURE__ */
|
|
14404
|
+
/* @__PURE__ */ jsxs53("div", { css: inputWrapper, children: [
|
|
14405
|
+
menuItems ? /* @__PURE__ */ jsx80(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
14406
|
+
/* @__PURE__ */ jsx80(
|
|
14253
14407
|
ParameterShellContext.Provider,
|
|
14254
14408
|
{
|
|
14255
14409
|
value: {
|
|
@@ -14259,32 +14413,32 @@ var ParameterShell = ({
|
|
|
14259
14413
|
errorMessage: errorMessaging,
|
|
14260
14414
|
onManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
14261
14415
|
},
|
|
14262
|
-
children: /* @__PURE__ */
|
|
14416
|
+
children: /* @__PURE__ */ jsxs53(ParameterShellPlaceholder, { children: [
|
|
14263
14417
|
children,
|
|
14264
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
14418
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx80(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
14265
14419
|
] })
|
|
14266
14420
|
}
|
|
14267
14421
|
)
|
|
14268
14422
|
] }),
|
|
14269
|
-
caption ? /* @__PURE__ */
|
|
14270
|
-
errorMessaging ? /* @__PURE__ */
|
|
14271
|
-
warningMessage ? /* @__PURE__ */
|
|
14272
|
-
infoMessage ? /* @__PURE__ */
|
|
14423
|
+
caption ? /* @__PURE__ */ jsx80(Caption, { testId: captionTestId, children: caption }) : null,
|
|
14424
|
+
errorMessaging ? /* @__PURE__ */ jsx80(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null,
|
|
14425
|
+
warningMessage ? /* @__PURE__ */ jsx80(WarningMessage, { message: warningMessage }) : null,
|
|
14426
|
+
infoMessage ? /* @__PURE__ */ jsx80(InfoMessage, { message: infoMessage }) : null
|
|
14273
14427
|
] });
|
|
14274
14428
|
};
|
|
14275
14429
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
14276
|
-
return /* @__PURE__ */
|
|
14430
|
+
return /* @__PURE__ */ jsx80("div", { css: emptyParameterShell, children });
|
|
14277
14431
|
};
|
|
14278
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
14432
|
+
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
14433
|
|
|
14280
14434
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
14281
|
-
import { Fragment as Fragment10, jsx as
|
|
14435
|
+
import { Fragment as Fragment10, jsx as jsx81, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
14282
14436
|
var ParameterImage = forwardRef9((props, ref) => {
|
|
14283
14437
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14284
|
-
return /* @__PURE__ */
|
|
14438
|
+
return /* @__PURE__ */ jsx81(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: /* @__PURE__ */ jsx81(ParameterImageInner, { ref, ...innerProps }) });
|
|
14285
14439
|
});
|
|
14286
14440
|
var BrokenImage = ({ ...props }) => {
|
|
14287
|
-
return /* @__PURE__ */
|
|
14441
|
+
return /* @__PURE__ */ jsxs54(
|
|
14288
14442
|
"svg",
|
|
14289
14443
|
{
|
|
14290
14444
|
width: "214",
|
|
@@ -14295,11 +14449,11 @@ var BrokenImage = ({ ...props }) => {
|
|
|
14295
14449
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
14296
14450
|
...props,
|
|
14297
14451
|
children: [
|
|
14298
|
-
/* @__PURE__ */
|
|
14299
|
-
/* @__PURE__ */
|
|
14300
|
-
/* @__PURE__ */
|
|
14301
|
-
/* @__PURE__ */
|
|
14302
|
-
/* @__PURE__ */
|
|
14452
|
+
/* @__PURE__ */ jsx81("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
14453
|
+
/* @__PURE__ */ jsx81("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
14454
|
+
/* @__PURE__ */ jsxs54("defs", { children: [
|
|
14455
|
+
/* @__PURE__ */ jsx81("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx81("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
14456
|
+
/* @__PURE__ */ jsx81(
|
|
14303
14457
|
"image",
|
|
14304
14458
|
{
|
|
14305
14459
|
id: "image0_761_4353",
|
|
@@ -14351,8 +14505,8 @@ var ParameterImageInner = forwardRef9(
|
|
|
14351
14505
|
useEffect8(() => {
|
|
14352
14506
|
updateImageSrc();
|
|
14353
14507
|
}, [value]);
|
|
14354
|
-
return /* @__PURE__ */
|
|
14355
|
-
/* @__PURE__ */
|
|
14508
|
+
return /* @__PURE__ */ jsxs54(Fragment10, { children: [
|
|
14509
|
+
/* @__PURE__ */ jsx81(
|
|
14356
14510
|
"input",
|
|
14357
14511
|
{
|
|
14358
14512
|
css: input2,
|
|
@@ -14364,8 +14518,8 @@ var ParameterImageInner = forwardRef9(
|
|
|
14364
14518
|
...props
|
|
14365
14519
|
}
|
|
14366
14520
|
),
|
|
14367
|
-
/* @__PURE__ */
|
|
14368
|
-
deferredValue && !errorMessage ? /* @__PURE__ */
|
|
14521
|
+
/* @__PURE__ */ jsxs54("div", { css: imageWrapper, children: [
|
|
14522
|
+
deferredValue && !errorMessage ? /* @__PURE__ */ jsx81(
|
|
14369
14523
|
"img",
|
|
14370
14524
|
{
|
|
14371
14525
|
src: deferredValue,
|
|
@@ -14375,24 +14529,24 @@ var ParameterImageInner = forwardRef9(
|
|
|
14375
14529
|
loading: "lazy"
|
|
14376
14530
|
}
|
|
14377
14531
|
) : null,
|
|
14378
|
-
deferredValue && errorMessage ? /* @__PURE__ */
|
|
14532
|
+
deferredValue && errorMessage ? /* @__PURE__ */ jsx81(BrokenImage, { css: img }) : null
|
|
14379
14533
|
] }),
|
|
14380
|
-
loading ? /* @__PURE__ */
|
|
14534
|
+
loading ? /* @__PURE__ */ jsx81(LoadingIcon, {}) : null
|
|
14381
14535
|
] });
|
|
14382
14536
|
}
|
|
14383
14537
|
);
|
|
14384
14538
|
|
|
14385
14539
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
14386
14540
|
import { forwardRef as forwardRef10 } from "react";
|
|
14387
|
-
import { jsx as
|
|
14541
|
+
import { jsx as jsx82 } from "@emotion/react/jsx-runtime";
|
|
14388
14542
|
var ParameterInput = forwardRef10((props, ref) => {
|
|
14389
14543
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14390
|
-
return /* @__PURE__ */
|
|
14544
|
+
return /* @__PURE__ */ jsx82(ParameterShell, { "data-test-id": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx82(ParameterInputInner, { ref, ...innerProps }) });
|
|
14391
14545
|
});
|
|
14392
14546
|
var ParameterInputInner = forwardRef10(
|
|
14393
14547
|
({ ...props }, ref) => {
|
|
14394
14548
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14395
|
-
return /* @__PURE__ */
|
|
14549
|
+
return /* @__PURE__ */ jsx82(
|
|
14396
14550
|
"input",
|
|
14397
14551
|
{
|
|
14398
14552
|
css: input2,
|
|
@@ -14409,18 +14563,18 @@ var ParameterInputInner = forwardRef10(
|
|
|
14409
14563
|
|
|
14410
14564
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
14411
14565
|
import { forwardRef as forwardRef11 } from "react";
|
|
14412
|
-
import { jsx as
|
|
14566
|
+
import { jsx as jsx83, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
14413
14567
|
var ParameterLink = forwardRef11(
|
|
14414
14568
|
({ buttonText = "Select project map node", disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
14415
14569
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14416
|
-
return /* @__PURE__ */
|
|
14570
|
+
return /* @__PURE__ */ jsx83(
|
|
14417
14571
|
ParameterShell,
|
|
14418
14572
|
{
|
|
14419
14573
|
"data-test-id": "link-parameter-editor",
|
|
14420
14574
|
...shellProps,
|
|
14421
14575
|
label: innerProps.value ? shellProps.label : "",
|
|
14422
14576
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
14423
|
-
children: !innerProps.value ? /* @__PURE__ */
|
|
14577
|
+
children: !innerProps.value ? /* @__PURE__ */ jsx83("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText }) : /* @__PURE__ */ jsx83(
|
|
14424
14578
|
ParameterLinkInner,
|
|
14425
14579
|
{
|
|
14426
14580
|
onConnectLink,
|
|
@@ -14436,8 +14590,8 @@ var ParameterLink = forwardRef11(
|
|
|
14436
14590
|
var ParameterLinkInner = forwardRef11(
|
|
14437
14591
|
({ externalLink, onConnectLink, disabled, ...props }, ref) => {
|
|
14438
14592
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14439
|
-
return /* @__PURE__ */
|
|
14440
|
-
/* @__PURE__ */
|
|
14593
|
+
return /* @__PURE__ */ jsxs55("div", { css: inputWrapper, children: [
|
|
14594
|
+
/* @__PURE__ */ jsx83(
|
|
14441
14595
|
"input",
|
|
14442
14596
|
{
|
|
14443
14597
|
type: "text",
|
|
@@ -14449,7 +14603,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14449
14603
|
...props
|
|
14450
14604
|
}
|
|
14451
14605
|
),
|
|
14452
|
-
/* @__PURE__ */
|
|
14606
|
+
/* @__PURE__ */ jsx83(
|
|
14453
14607
|
"button",
|
|
14454
14608
|
{
|
|
14455
14609
|
type: "button",
|
|
@@ -14460,7 +14614,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14460
14614
|
children: "edit"
|
|
14461
14615
|
}
|
|
14462
14616
|
),
|
|
14463
|
-
externalLink ? /* @__PURE__ */
|
|
14617
|
+
externalLink ? /* @__PURE__ */ jsx83(
|
|
14464
14618
|
"a",
|
|
14465
14619
|
{
|
|
14466
14620
|
href: externalLink,
|
|
@@ -14468,7 +14622,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14468
14622
|
title: "Open link in new tab",
|
|
14469
14623
|
target: "_blank",
|
|
14470
14624
|
rel: "noopener noreferrer",
|
|
14471
|
-
children: /* @__PURE__ */
|
|
14625
|
+
children: /* @__PURE__ */ jsx83(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
14472
14626
|
}
|
|
14473
14627
|
) : null
|
|
14474
14628
|
] });
|
|
@@ -14476,7 +14630,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14476
14630
|
);
|
|
14477
14631
|
|
|
14478
14632
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
14479
|
-
import { Fragment as Fragment11, jsx as
|
|
14633
|
+
import { Fragment as Fragment11, jsx as jsx84, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
14480
14634
|
var ParameterNameAndPublicIdInput = ({
|
|
14481
14635
|
id,
|
|
14482
14636
|
onBlur,
|
|
@@ -14502,8 +14656,8 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14502
14656
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
14503
14657
|
};
|
|
14504
14658
|
autoFocus == null ? void 0 : autoFocus();
|
|
14505
|
-
return /* @__PURE__ */
|
|
14506
|
-
/* @__PURE__ */
|
|
14659
|
+
return /* @__PURE__ */ jsxs56(Fragment11, { children: [
|
|
14660
|
+
/* @__PURE__ */ jsx84(
|
|
14507
14661
|
ParameterInput,
|
|
14508
14662
|
{
|
|
14509
14663
|
id: nameIdField,
|
|
@@ -14522,7 +14676,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14522
14676
|
value: values[nameIdField]
|
|
14523
14677
|
}
|
|
14524
14678
|
),
|
|
14525
|
-
/* @__PURE__ */
|
|
14679
|
+
/* @__PURE__ */ jsx84(
|
|
14526
14680
|
ParameterInput,
|
|
14527
14681
|
{
|
|
14528
14682
|
id: publicIdFieldName,
|
|
@@ -14536,11 +14690,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14536
14690
|
caption: publicIdCaption,
|
|
14537
14691
|
placeholder: publicIdPlaceholderText,
|
|
14538
14692
|
errorMessage: publicIdError,
|
|
14539
|
-
menuItems: /* @__PURE__ */
|
|
14693
|
+
menuItems: /* @__PURE__ */ jsx84(
|
|
14540
14694
|
MenuItem,
|
|
14541
14695
|
{
|
|
14542
14696
|
disabled: !values[publicIdFieldName],
|
|
14543
|
-
icon: /* @__PURE__ */
|
|
14697
|
+
icon: /* @__PURE__ */ jsx84(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
14544
14698
|
onClick: handleCopyPidFieldValue,
|
|
14545
14699
|
children: "Copy"
|
|
14546
14700
|
}
|
|
@@ -14548,13 +14702,13 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14548
14702
|
value: values[publicIdFieldName]
|
|
14549
14703
|
}
|
|
14550
14704
|
),
|
|
14551
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
14705
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx84(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
14552
14706
|
] });
|
|
14553
14707
|
};
|
|
14554
14708
|
|
|
14555
14709
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
14556
14710
|
import { forwardRef as forwardRef12 } from "react";
|
|
14557
|
-
import { Fragment as Fragment12, jsx as
|
|
14711
|
+
import { Fragment as Fragment12, jsx as jsx85, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
|
|
14558
14712
|
var ParameterRichText = forwardRef12(
|
|
14559
14713
|
({
|
|
14560
14714
|
label,
|
|
@@ -14568,7 +14722,7 @@ var ParameterRichText = forwardRef12(
|
|
|
14568
14722
|
menuItems,
|
|
14569
14723
|
...props
|
|
14570
14724
|
}, ref) => {
|
|
14571
|
-
return /* @__PURE__ */
|
|
14725
|
+
return /* @__PURE__ */ jsxs57(
|
|
14572
14726
|
ParameterShell,
|
|
14573
14727
|
{
|
|
14574
14728
|
"data-test-id": "parameter-input",
|
|
@@ -14581,8 +14735,8 @@ var ParameterRichText = forwardRef12(
|
|
|
14581
14735
|
captionTestId,
|
|
14582
14736
|
menuItems,
|
|
14583
14737
|
children: [
|
|
14584
|
-
/* @__PURE__ */
|
|
14585
|
-
menuItems ? /* @__PURE__ */
|
|
14738
|
+
/* @__PURE__ */ jsx85(ParameterRichTextInner, { ref, ...props }),
|
|
14739
|
+
menuItems ? /* @__PURE__ */ jsx85(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx85(Fragment12, { children: menuItems }) }) : null
|
|
14586
14740
|
]
|
|
14587
14741
|
}
|
|
14588
14742
|
);
|
|
@@ -14590,7 +14744,7 @@ var ParameterRichText = forwardRef12(
|
|
|
14590
14744
|
);
|
|
14591
14745
|
var ParameterRichTextInner = forwardRef12(({ ...props }, ref) => {
|
|
14592
14746
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14593
|
-
return /* @__PURE__ */
|
|
14747
|
+
return /* @__PURE__ */ jsx85(
|
|
14594
14748
|
"textarea",
|
|
14595
14749
|
{
|
|
14596
14750
|
css: [input2, textarea2],
|
|
@@ -14604,17 +14758,17 @@ var ParameterRichTextInner = forwardRef12(({ ...props }, ref) => {
|
|
|
14604
14758
|
|
|
14605
14759
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
14606
14760
|
import { forwardRef as forwardRef13 } from "react";
|
|
14607
|
-
import { jsx as
|
|
14761
|
+
import { jsx as jsx86, jsxs as jsxs58 } from "@emotion/react/jsx-runtime";
|
|
14608
14762
|
var ParameterSelect = forwardRef13(
|
|
14609
14763
|
({ defaultOption, options, ...props }, ref) => {
|
|
14610
14764
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14611
|
-
return /* @__PURE__ */
|
|
14765
|
+
return /* @__PURE__ */ jsx86(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx86(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
14612
14766
|
}
|
|
14613
14767
|
);
|
|
14614
14768
|
var ParameterSelectInner = forwardRef13(
|
|
14615
14769
|
({ defaultOption, options, ...props }, ref) => {
|
|
14616
14770
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14617
|
-
return /* @__PURE__ */
|
|
14771
|
+
return /* @__PURE__ */ jsxs58(
|
|
14618
14772
|
"select",
|
|
14619
14773
|
{
|
|
14620
14774
|
css: [input2, selectInput],
|
|
@@ -14623,10 +14777,10 @@ var ParameterSelectInner = forwardRef13(
|
|
|
14623
14777
|
ref,
|
|
14624
14778
|
...props,
|
|
14625
14779
|
children: [
|
|
14626
|
-
defaultOption ? /* @__PURE__ */
|
|
14780
|
+
defaultOption ? /* @__PURE__ */ jsx86("option", { value: "", children: defaultOption }) : null,
|
|
14627
14781
|
options.map((option) => {
|
|
14628
14782
|
var _a;
|
|
14629
|
-
return /* @__PURE__ */
|
|
14783
|
+
return /* @__PURE__ */ jsx86("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
14630
14784
|
})
|
|
14631
14785
|
]
|
|
14632
14786
|
}
|
|
@@ -14636,14 +14790,14 @@ var ParameterSelectInner = forwardRef13(
|
|
|
14636
14790
|
|
|
14637
14791
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
14638
14792
|
import { forwardRef as forwardRef14 } from "react";
|
|
14639
|
-
import { jsx as
|
|
14793
|
+
import { jsx as jsx87 } from "@emotion/react/jsx-runtime";
|
|
14640
14794
|
var ParameterTextarea = forwardRef14((props, ref) => {
|
|
14641
14795
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14642
|
-
return /* @__PURE__ */
|
|
14796
|
+
return /* @__PURE__ */ jsx87(ParameterShell, { "data-test-id": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx87(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
14643
14797
|
});
|
|
14644
14798
|
var ParameterTextareaInner = forwardRef14(({ ...props }, ref) => {
|
|
14645
14799
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14646
|
-
return /* @__PURE__ */
|
|
14800
|
+
return /* @__PURE__ */ jsx87(
|
|
14647
14801
|
"textarea",
|
|
14648
14802
|
{
|
|
14649
14803
|
css: [input2, textarea2],
|
|
@@ -14657,17 +14811,17 @@ var ParameterTextareaInner = forwardRef14(({ ...props }, ref) => {
|
|
|
14657
14811
|
|
|
14658
14812
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
14659
14813
|
import { forwardRef as forwardRef15 } from "react";
|
|
14660
|
-
import { jsx as
|
|
14814
|
+
import { jsx as jsx88, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
|
|
14661
14815
|
var ParameterToggle = forwardRef15((props, ref) => {
|
|
14662
14816
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14663
|
-
return /* @__PURE__ */
|
|
14817
|
+
return /* @__PURE__ */ jsx88(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx88(ParameterToggleInner, { ref, ...innerProps }) });
|
|
14664
14818
|
});
|
|
14665
14819
|
var ParameterToggleInner = forwardRef15(
|
|
14666
14820
|
({ ...props }, ref) => {
|
|
14667
14821
|
const { id, label } = useParameterShell();
|
|
14668
|
-
return /* @__PURE__ */
|
|
14669
|
-
/* @__PURE__ */
|
|
14670
|
-
/* @__PURE__ */
|
|
14822
|
+
return /* @__PURE__ */ jsxs59("label", { css: inputToggleLabel2, children: [
|
|
14823
|
+
/* @__PURE__ */ jsx88("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
14824
|
+
/* @__PURE__ */ jsx88("span", { css: inlineLabel2, children: label })
|
|
14671
14825
|
] });
|
|
14672
14826
|
}
|
|
14673
14827
|
);
|
|
@@ -14681,13 +14835,13 @@ import {
|
|
|
14681
14835
|
import { Portal as Portal2 } from "reakit/Portal";
|
|
14682
14836
|
|
|
14683
14837
|
// src/components/Popover/Popover.styles.ts
|
|
14684
|
-
import { css as
|
|
14685
|
-
var PopoverBtn =
|
|
14838
|
+
import { css as css64 } from "@emotion/react";
|
|
14839
|
+
var PopoverBtn = css64`
|
|
14686
14840
|
border: none;
|
|
14687
14841
|
background: none;
|
|
14688
14842
|
padding: 0;
|
|
14689
14843
|
`;
|
|
14690
|
-
var Popover =
|
|
14844
|
+
var Popover = css64`
|
|
14691
14845
|
border-left: var(--spacing-xs) solid var(--brand-secondary-3);
|
|
14692
14846
|
border-radius: var(--rounded-base);
|
|
14693
14847
|
box-shadow: var(--shadow-base);
|
|
@@ -14700,7 +14854,7 @@ var Popover = css61`
|
|
|
14700
14854
|
`;
|
|
14701
14855
|
|
|
14702
14856
|
// src/components/Popover/Popover.tsx
|
|
14703
|
-
import { Fragment as Fragment13, jsx as
|
|
14857
|
+
import { Fragment as Fragment13, jsx as jsx89, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
|
|
14704
14858
|
var Popover2 = ({
|
|
14705
14859
|
iconColor = "green",
|
|
14706
14860
|
buttonText,
|
|
@@ -14709,36 +14863,36 @@ var Popover2 = ({
|
|
|
14709
14863
|
children
|
|
14710
14864
|
}) => {
|
|
14711
14865
|
const popover = usePopoverState({ placement });
|
|
14712
|
-
return /* @__PURE__ */
|
|
14713
|
-
/* @__PURE__ */
|
|
14714
|
-
/* @__PURE__ */
|
|
14715
|
-
/* @__PURE__ */
|
|
14866
|
+
return /* @__PURE__ */ jsxs60(Fragment13, { children: [
|
|
14867
|
+
/* @__PURE__ */ jsxs60(PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, children: [
|
|
14868
|
+
/* @__PURE__ */ jsx89(Icon, { icon: "info", iconColor, size: "1rem" }),
|
|
14869
|
+
/* @__PURE__ */ jsx89("span", { hidden: true, children: buttonText })
|
|
14716
14870
|
] }),
|
|
14717
|
-
/* @__PURE__ */
|
|
14871
|
+
/* @__PURE__ */ jsx89(Portal2, { children: /* @__PURE__ */ jsx89(ReakitPopover, { css: Popover, ...popover, "aria-label": ariaLabel, children }) })
|
|
14718
14872
|
] });
|
|
14719
14873
|
};
|
|
14720
14874
|
|
|
14721
14875
|
// src/components/ProgressList/ProgressList.tsx
|
|
14722
|
-
import { css as
|
|
14876
|
+
import { css as css66 } from "@emotion/react";
|
|
14723
14877
|
import { useMemo as useMemo2 } from "react";
|
|
14724
14878
|
import { CgCheckO, CgRadioCheck, CgRecord } from "react-icons/cg";
|
|
14725
14879
|
|
|
14726
14880
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
14727
|
-
import { css as
|
|
14728
|
-
var progressListStyles =
|
|
14881
|
+
import { css as css65 } from "@emotion/react";
|
|
14882
|
+
var progressListStyles = css65`
|
|
14729
14883
|
display: flex;
|
|
14730
14884
|
flex-direction: column;
|
|
14731
14885
|
gap: var(--spacing-sm);
|
|
14732
14886
|
list-style-type: none;
|
|
14733
14887
|
`;
|
|
14734
|
-
var progressListItemStyles =
|
|
14888
|
+
var progressListItemStyles = css65`
|
|
14735
14889
|
display: flex;
|
|
14736
14890
|
gap: var(--spacing-base);
|
|
14737
14891
|
align-items: center;
|
|
14738
14892
|
`;
|
|
14739
14893
|
|
|
14740
14894
|
// src/components/ProgressList/ProgressList.tsx
|
|
14741
|
-
import { jsx as
|
|
14895
|
+
import { jsx as jsx90, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
|
|
14742
14896
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
14743
14897
|
const itemsWithStatus = useMemo2(() => {
|
|
14744
14898
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -14752,8 +14906,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
14752
14906
|
return { ...item, status };
|
|
14753
14907
|
});
|
|
14754
14908
|
}, [items, inProgressId]);
|
|
14755
|
-
return /* @__PURE__ */
|
|
14756
|
-
return /* @__PURE__ */
|
|
14909
|
+
return /* @__PURE__ */ jsx90("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
14910
|
+
return /* @__PURE__ */ jsx90(
|
|
14757
14911
|
ProgressListItem,
|
|
14758
14912
|
{
|
|
14759
14913
|
status,
|
|
@@ -14786,12 +14940,12 @@ var ProgressListItem = ({
|
|
|
14786
14940
|
}, [status, error]);
|
|
14787
14941
|
const statusStyles = useMemo2(() => {
|
|
14788
14942
|
if (error) {
|
|
14789
|
-
return errorLevel === "caution" ?
|
|
14943
|
+
return errorLevel === "caution" ? css66`
|
|
14790
14944
|
color: rgb(161, 98, 7);
|
|
14791
14945
|
& svg {
|
|
14792
14946
|
color: rgb(250, 204, 21);
|
|
14793
14947
|
}
|
|
14794
|
-
` :
|
|
14948
|
+
` : css66`
|
|
14795
14949
|
color: rgb(185, 28, 28);
|
|
14796
14950
|
& svg {
|
|
14797
14951
|
color: var(--brand-primary-2);
|
|
@@ -14799,35 +14953,35 @@ var ProgressListItem = ({
|
|
|
14799
14953
|
`;
|
|
14800
14954
|
}
|
|
14801
14955
|
const colorPerStatus = {
|
|
14802
|
-
completed:
|
|
14956
|
+
completed: css66`
|
|
14803
14957
|
opacity: 0.75;
|
|
14804
14958
|
`,
|
|
14805
|
-
inProgress:
|
|
14959
|
+
inProgress: css66`
|
|
14806
14960
|
-webkit-text-stroke-width: thin;
|
|
14807
14961
|
`,
|
|
14808
|
-
queued:
|
|
14962
|
+
queued: css66`
|
|
14809
14963
|
opacity: 0.5;
|
|
14810
14964
|
`
|
|
14811
14965
|
};
|
|
14812
14966
|
return colorPerStatus[status];
|
|
14813
14967
|
}, [status, error, errorLevel]);
|
|
14814
|
-
return /* @__PURE__ */
|
|
14815
|
-
/* @__PURE__ */
|
|
14816
|
-
/* @__PURE__ */
|
|
14968
|
+
return /* @__PURE__ */ jsxs61("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
14969
|
+
/* @__PURE__ */ jsx90(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx90("div", { children: /* @__PURE__ */ jsx90(Icon2, { size: 20 }) }) }),
|
|
14970
|
+
/* @__PURE__ */ jsxs61("div", { children: [
|
|
14817
14971
|
children,
|
|
14818
|
-
/* @__PURE__ */
|
|
14972
|
+
/* @__PURE__ */ jsx90("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
14819
14973
|
] })
|
|
14820
14974
|
] });
|
|
14821
14975
|
};
|
|
14822
14976
|
|
|
14823
14977
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
14824
|
-
import { css as
|
|
14978
|
+
import { css as css68 } from "@emotion/react";
|
|
14825
14979
|
import { useCallback as useCallback4, useMemo as useMemo3 } from "react";
|
|
14826
14980
|
import { CgCheck as CgCheck3 } from "react-icons/cg";
|
|
14827
14981
|
|
|
14828
14982
|
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
14829
|
-
import { css as
|
|
14830
|
-
var segmentedControlStyles =
|
|
14983
|
+
import { css as css67 } from "@emotion/react";
|
|
14984
|
+
var segmentedControlStyles = css67`
|
|
14831
14985
|
--segmented-control-rounded-value: var(--rounded-base);
|
|
14832
14986
|
--segmented-control-border-width: 1px;
|
|
14833
14987
|
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
@@ -14846,14 +15000,14 @@ var segmentedControlStyles = css64`
|
|
|
14846
15000
|
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
14847
15001
|
font-size: var(--fs-xs);
|
|
14848
15002
|
`;
|
|
14849
|
-
var segmentedControlVerticalStyles =
|
|
15003
|
+
var segmentedControlVerticalStyles = css67`
|
|
14850
15004
|
flex-direction: column;
|
|
14851
15005
|
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
14852
15006
|
var(--segmented-control-rounded-value) 0 0;
|
|
14853
15007
|
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
14854
15008
|
var(--segmented-control-rounded-value);
|
|
14855
15009
|
`;
|
|
14856
|
-
var segmentedControlItemStyles =
|
|
15010
|
+
var segmentedControlItemStyles = css67`
|
|
14857
15011
|
&:first-of-type label {
|
|
14858
15012
|
border-radius: var(--segmented-control-first-border-radius);
|
|
14859
15013
|
}
|
|
@@ -14861,14 +15015,14 @@ var segmentedControlItemStyles = css64`
|
|
|
14861
15015
|
border-radius: var(--segmented-control-last-border-radius);
|
|
14862
15016
|
}
|
|
14863
15017
|
`;
|
|
14864
|
-
var segmentedControlInputStyles =
|
|
15018
|
+
var segmentedControlInputStyles = css67`
|
|
14865
15019
|
clip: rect(0, 0, 0, 0);
|
|
14866
15020
|
position: absolute;
|
|
14867
15021
|
width: 1px;
|
|
14868
15022
|
height: 1px;
|
|
14869
15023
|
overflow: hidden;
|
|
14870
15024
|
`;
|
|
14871
|
-
var segmentedControlLabelStyles =
|
|
15025
|
+
var segmentedControlLabelStyles = css67`
|
|
14872
15026
|
position: relative;
|
|
14873
15027
|
display: flex;
|
|
14874
15028
|
align-items: center;
|
|
@@ -14905,23 +15059,23 @@ var segmentedControlLabelStyles = css64`
|
|
|
14905
15059
|
background-color: var(--gray-400);
|
|
14906
15060
|
}
|
|
14907
15061
|
`;
|
|
14908
|
-
var segmentedControlLabelIconOnlyStyles =
|
|
15062
|
+
var segmentedControlLabelIconOnlyStyles = css67`
|
|
14909
15063
|
padding-inline: 0.5em;
|
|
14910
15064
|
`;
|
|
14911
|
-
var segmentedControlLabelCheckStyles =
|
|
15065
|
+
var segmentedControlLabelCheckStyles = css67`
|
|
14912
15066
|
opacity: 0.5;
|
|
14913
15067
|
`;
|
|
14914
|
-
var segmentedControlLabelContentStyles =
|
|
15068
|
+
var segmentedControlLabelContentStyles = css67`
|
|
14915
15069
|
display: flex;
|
|
14916
15070
|
align-items: center;
|
|
14917
15071
|
justify-content: center;
|
|
14918
15072
|
gap: var(--spacing-sm);
|
|
14919
15073
|
height: 100%;
|
|
14920
15074
|
`;
|
|
14921
|
-
var segmentedControlLabelTextStyles =
|
|
15075
|
+
var segmentedControlLabelTextStyles = css67``;
|
|
14922
15076
|
|
|
14923
15077
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
14924
|
-
import { jsx as
|
|
15078
|
+
import { jsx as jsx91, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
|
|
14925
15079
|
var SegmentedControl = ({
|
|
14926
15080
|
name,
|
|
14927
15081
|
options,
|
|
@@ -14943,16 +15097,16 @@ var SegmentedControl = ({
|
|
|
14943
15097
|
);
|
|
14944
15098
|
const sizeStyles = useMemo3(() => {
|
|
14945
15099
|
const map = {
|
|
14946
|
-
sm:
|
|
14947
|
-
md:
|
|
14948
|
-
lg:
|
|
15100
|
+
sm: css68({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
15101
|
+
md: css68({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
15102
|
+
lg: css68({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
|
|
14949
15103
|
};
|
|
14950
15104
|
return map[size];
|
|
14951
15105
|
}, [size]);
|
|
14952
15106
|
const isIconOnly = useMemo3(() => {
|
|
14953
15107
|
return options.every((option) => option.icon && !option.label);
|
|
14954
15108
|
}, [options]);
|
|
14955
|
-
return /* @__PURE__ */
|
|
15109
|
+
return /* @__PURE__ */ jsx91(
|
|
14956
15110
|
"div",
|
|
14957
15111
|
{
|
|
14958
15112
|
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
@@ -14960,11 +15114,11 @@ var SegmentedControl = ({
|
|
|
14960
15114
|
children: options.map((option, index) => {
|
|
14961
15115
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
14962
15116
|
const isDisabled = disabled || option.disabled;
|
|
14963
|
-
return /* @__PURE__ */
|
|
15117
|
+
return /* @__PURE__ */ jsx91(
|
|
14964
15118
|
Tooltip,
|
|
14965
15119
|
{
|
|
14966
15120
|
title: isDisabled || !option.tooltip ? "" : option.tooltip,
|
|
14967
|
-
children: /* @__PURE__ */
|
|
15121
|
+
children: /* @__PURE__ */ jsx91("div", { css: segmentedControlItemStyles, children: /* @__PURE__ */ jsxs62(
|
|
14968
15122
|
"label",
|
|
14969
15123
|
{
|
|
14970
15124
|
css: [
|
|
@@ -14973,7 +15127,7 @@ var SegmentedControl = ({
|
|
|
14973
15127
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
14974
15128
|
],
|
|
14975
15129
|
children: [
|
|
14976
|
-
/* @__PURE__ */
|
|
15130
|
+
/* @__PURE__ */ jsx91(
|
|
14977
15131
|
"input",
|
|
14978
15132
|
{
|
|
14979
15133
|
css: segmentedControlInputStyles,
|
|
@@ -14985,10 +15139,10 @@ var SegmentedControl = ({
|
|
|
14985
15139
|
disabled: isDisabled
|
|
14986
15140
|
}
|
|
14987
15141
|
),
|
|
14988
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */
|
|
14989
|
-
/* @__PURE__ */
|
|
14990
|
-
!option.icon ? null : /* @__PURE__ */
|
|
14991
|
-
!text ? null : /* @__PURE__ */
|
|
15142
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx91(CgCheck3, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
15143
|
+
/* @__PURE__ */ jsxs62("span", { css: segmentedControlLabelContentStyles, children: [
|
|
15144
|
+
!option.icon ? null : /* @__PURE__ */ jsx91(option.icon, { size: "1.5em" }),
|
|
15145
|
+
!text ? null : /* @__PURE__ */ jsx91("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
14992
15146
|
] })
|
|
14993
15147
|
]
|
|
14994
15148
|
}
|
|
@@ -15002,18 +15156,18 @@ var SegmentedControl = ({
|
|
|
15002
15156
|
};
|
|
15003
15157
|
|
|
15004
15158
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
15005
|
-
import { css as
|
|
15159
|
+
import { css as css69, keyframes as keyframes4 } from "@emotion/react";
|
|
15006
15160
|
var lightFadingOut = keyframes4`
|
|
15007
15161
|
from { opacity: 0.1; }
|
|
15008
15162
|
to { opacity: 0.025; }
|
|
15009
15163
|
`;
|
|
15010
|
-
var skeletonStyles =
|
|
15164
|
+
var skeletonStyles = css69`
|
|
15011
15165
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
15012
15166
|
background-color: var(--gray-900);
|
|
15013
15167
|
`;
|
|
15014
15168
|
|
|
15015
15169
|
// src/components/Skeleton/Skeleton.tsx
|
|
15016
|
-
import { jsx as
|
|
15170
|
+
import { jsx as jsx92 } from "@emotion/react/jsx-runtime";
|
|
15017
15171
|
var Skeleton = ({
|
|
15018
15172
|
width = "100%",
|
|
15019
15173
|
height = "1.25rem",
|
|
@@ -15021,7 +15175,7 @@ var Skeleton = ({
|
|
|
15021
15175
|
circle = false,
|
|
15022
15176
|
children,
|
|
15023
15177
|
...otherProps
|
|
15024
|
-
}) => /* @__PURE__ */
|
|
15178
|
+
}) => /* @__PURE__ */ jsx92(
|
|
15025
15179
|
"div",
|
|
15026
15180
|
{
|
|
15027
15181
|
css: [
|
|
@@ -15044,8 +15198,8 @@ var Skeleton = ({
|
|
|
15044
15198
|
import * as React18 from "react";
|
|
15045
15199
|
|
|
15046
15200
|
// src/components/Switch/Switch.styles.ts
|
|
15047
|
-
import { css as
|
|
15048
|
-
var SwitchInputContainer =
|
|
15201
|
+
import { css as css70 } from "@emotion/react";
|
|
15202
|
+
var SwitchInputContainer = css70`
|
|
15049
15203
|
cursor: pointer;
|
|
15050
15204
|
display: inline-block;
|
|
15051
15205
|
position: relative;
|
|
@@ -15054,7 +15208,7 @@ var SwitchInputContainer = css67`
|
|
|
15054
15208
|
vertical-align: middle;
|
|
15055
15209
|
user-select: none;
|
|
15056
15210
|
`;
|
|
15057
|
-
var SwitchInput =
|
|
15211
|
+
var SwitchInput = css70`
|
|
15058
15212
|
appearance: none;
|
|
15059
15213
|
border-radius: var(--rounded-full);
|
|
15060
15214
|
background-color: var(--white);
|
|
@@ -15092,7 +15246,7 @@ var SwitchInput = css67`
|
|
|
15092
15246
|
cursor: not-allowed;
|
|
15093
15247
|
}
|
|
15094
15248
|
`;
|
|
15095
|
-
var SwitchInputDisabled =
|
|
15249
|
+
var SwitchInputDisabled = css70`
|
|
15096
15250
|
opacity: var(--opacity-50);
|
|
15097
15251
|
cursor: not-allowed;
|
|
15098
15252
|
|
|
@@ -15100,7 +15254,7 @@ var SwitchInputDisabled = css67`
|
|
|
15100
15254
|
cursor: not-allowed;
|
|
15101
15255
|
}
|
|
15102
15256
|
`;
|
|
15103
|
-
var SwitchInputLabel =
|
|
15257
|
+
var SwitchInputLabel = css70`
|
|
15104
15258
|
align-items: center;
|
|
15105
15259
|
color: var(--brand-secondary-1);
|
|
15106
15260
|
display: inline-flex;
|
|
@@ -15122,26 +15276,26 @@ var SwitchInputLabel = css67`
|
|
|
15122
15276
|
top: 0;
|
|
15123
15277
|
}
|
|
15124
15278
|
`;
|
|
15125
|
-
var SwitchText =
|
|
15279
|
+
var SwitchText = css70`
|
|
15126
15280
|
color: var(--gray-500);
|
|
15127
15281
|
font-size: var(--fs-sm);
|
|
15128
15282
|
padding-inline: var(--spacing-2xl) 0;
|
|
15129
15283
|
`;
|
|
15130
15284
|
|
|
15131
15285
|
// src/components/Switch/Switch.tsx
|
|
15132
|
-
import { Fragment as Fragment14, jsx as
|
|
15286
|
+
import { Fragment as Fragment14, jsx as jsx93, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
|
|
15133
15287
|
var Switch = React18.forwardRef(
|
|
15134
15288
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
15135
15289
|
let additionalText = infoText;
|
|
15136
15290
|
if (infoText && toggleText) {
|
|
15137
15291
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
15138
15292
|
}
|
|
15139
|
-
return /* @__PURE__ */
|
|
15140
|
-
/* @__PURE__ */
|
|
15141
|
-
/* @__PURE__ */
|
|
15142
|
-
/* @__PURE__ */
|
|
15293
|
+
return /* @__PURE__ */ jsxs63(Fragment14, { children: [
|
|
15294
|
+
/* @__PURE__ */ jsxs63("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
15295
|
+
/* @__PURE__ */ jsx93("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
15296
|
+
/* @__PURE__ */ jsx93("span", { css: SwitchInputLabel, children: label })
|
|
15143
15297
|
] }),
|
|
15144
|
-
additionalText ? /* @__PURE__ */
|
|
15298
|
+
additionalText ? /* @__PURE__ */ jsx93("p", { css: SwitchText, children: additionalText }) : null,
|
|
15145
15299
|
children
|
|
15146
15300
|
] });
|
|
15147
15301
|
}
|
|
@@ -15151,64 +15305,64 @@ var Switch = React18.forwardRef(
|
|
|
15151
15305
|
import * as React19 from "react";
|
|
15152
15306
|
|
|
15153
15307
|
// src/components/Table/Table.styles.ts
|
|
15154
|
-
import { css as
|
|
15155
|
-
var table =
|
|
15308
|
+
import { css as css71 } from "@emotion/react";
|
|
15309
|
+
var table = css71`
|
|
15156
15310
|
border-bottom: 1px solid var(--gray-400);
|
|
15157
15311
|
border-collapse: collapse;
|
|
15158
15312
|
min-width: 100%;
|
|
15159
15313
|
table-layout: auto;
|
|
15160
15314
|
`;
|
|
15161
|
-
var tableHead =
|
|
15315
|
+
var tableHead = css71`
|
|
15162
15316
|
background: var(--gray-100);
|
|
15163
15317
|
color: var(--brand-secondary-1);
|
|
15164
15318
|
text-align: left;
|
|
15165
15319
|
`;
|
|
15166
|
-
var tableRow =
|
|
15320
|
+
var tableRow = css71`
|
|
15167
15321
|
border-bottom: 1px solid var(--gray-200);
|
|
15168
15322
|
`;
|
|
15169
|
-
var tableCellHead =
|
|
15323
|
+
var tableCellHead = css71`
|
|
15170
15324
|
font-size: var(--fs-sm);
|
|
15171
15325
|
padding: var(--spacing-base) var(--spacing-md);
|
|
15172
15326
|
text-transform: uppercase;
|
|
15173
15327
|
font-weight: var(--fw-bold);
|
|
15174
15328
|
`;
|
|
15175
|
-
var tableCellData =
|
|
15329
|
+
var tableCellData = css71`
|
|
15176
15330
|
padding: var(--spacing-base) var(--spacing-md);
|
|
15177
15331
|
`;
|
|
15178
15332
|
|
|
15179
15333
|
// src/components/Table/Table.tsx
|
|
15180
|
-
import { jsx as
|
|
15334
|
+
import { jsx as jsx94 } from "@emotion/react/jsx-runtime";
|
|
15181
15335
|
var Table = React19.forwardRef(({ children, ...otherProps }, ref) => {
|
|
15182
|
-
return /* @__PURE__ */
|
|
15336
|
+
return /* @__PURE__ */ jsx94("table", { ref, css: table, ...otherProps, children });
|
|
15183
15337
|
});
|
|
15184
15338
|
var TableHead = React19.forwardRef(
|
|
15185
15339
|
({ children, ...otherProps }, ref) => {
|
|
15186
|
-
return /* @__PURE__ */
|
|
15340
|
+
return /* @__PURE__ */ jsx94("thead", { ref, css: tableHead, ...otherProps, children });
|
|
15187
15341
|
}
|
|
15188
15342
|
);
|
|
15189
15343
|
var TableBody = React19.forwardRef(
|
|
15190
15344
|
({ children, ...otherProps }, ref) => {
|
|
15191
|
-
return /* @__PURE__ */
|
|
15345
|
+
return /* @__PURE__ */ jsx94("tbody", { ref, ...otherProps, children });
|
|
15192
15346
|
}
|
|
15193
15347
|
);
|
|
15194
15348
|
var TableFoot = React19.forwardRef(
|
|
15195
15349
|
({ children, ...otherProps }, ref) => {
|
|
15196
|
-
return /* @__PURE__ */
|
|
15350
|
+
return /* @__PURE__ */ jsx94("tfoot", { ref, ...otherProps, children });
|
|
15197
15351
|
}
|
|
15198
15352
|
);
|
|
15199
15353
|
var TableRow = React19.forwardRef(
|
|
15200
15354
|
({ children, ...otherProps }, ref) => {
|
|
15201
|
-
return /* @__PURE__ */
|
|
15355
|
+
return /* @__PURE__ */ jsx94("tr", { ref, css: tableRow, ...otherProps, children });
|
|
15202
15356
|
}
|
|
15203
15357
|
);
|
|
15204
15358
|
var TableCellHead = React19.forwardRef(
|
|
15205
15359
|
({ children, ...otherProps }, ref) => {
|
|
15206
|
-
return /* @__PURE__ */
|
|
15360
|
+
return /* @__PURE__ */ jsx94("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
15207
15361
|
}
|
|
15208
15362
|
);
|
|
15209
15363
|
var TableCellData = React19.forwardRef(
|
|
15210
15364
|
({ children, ...otherProps }, ref) => {
|
|
15211
|
-
return /* @__PURE__ */
|
|
15365
|
+
return /* @__PURE__ */ jsx94("td", { ref, css: tableCellData, ...otherProps, children });
|
|
15212
15366
|
}
|
|
15213
15367
|
);
|
|
15214
15368
|
|
|
@@ -15222,8 +15376,8 @@ import {
|
|
|
15222
15376
|
} from "reakit/Tab";
|
|
15223
15377
|
|
|
15224
15378
|
// src/components/Tabs/Tabs.styles.ts
|
|
15225
|
-
import { css as
|
|
15226
|
-
var tabButtonStyles =
|
|
15379
|
+
import { css as css72 } from "@emotion/react";
|
|
15380
|
+
var tabButtonStyles = css72`
|
|
15227
15381
|
align-items: center;
|
|
15228
15382
|
border: 0;
|
|
15229
15383
|
height: 2.5rem;
|
|
@@ -15240,14 +15394,14 @@ var tabButtonStyles = css69`
|
|
|
15240
15394
|
-webkit-text-stroke-width: thin;
|
|
15241
15395
|
}
|
|
15242
15396
|
`;
|
|
15243
|
-
var tabButtonGroupStyles =
|
|
15397
|
+
var tabButtonGroupStyles = css72`
|
|
15244
15398
|
display: flex;
|
|
15245
15399
|
gap: var(--spacing-base);
|
|
15246
15400
|
border-bottom: 1px solid var(--gray-300);
|
|
15247
15401
|
`;
|
|
15248
15402
|
|
|
15249
15403
|
// src/components/Tabs/Tabs.tsx
|
|
15250
|
-
import { jsx as
|
|
15404
|
+
import { jsx as jsx95 } from "@emotion/react/jsx-runtime";
|
|
15251
15405
|
var CurrentTabContext = createContext6(null);
|
|
15252
15406
|
var useCurrentTab = () => {
|
|
15253
15407
|
const context = useContext7(CurrentTabContext);
|
|
@@ -15276,24 +15430,24 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
15276
15430
|
tab.setSelectedId(selected);
|
|
15277
15431
|
}
|
|
15278
15432
|
}, [selected]);
|
|
15279
|
-
return /* @__PURE__ */
|
|
15433
|
+
return /* @__PURE__ */ jsx95(CurrentTabContext.Provider, { value: tab, children });
|
|
15280
15434
|
};
|
|
15281
15435
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
15282
15436
|
const currentTab = useCurrentTab();
|
|
15283
|
-
return /* @__PURE__ */
|
|
15437
|
+
return /* @__PURE__ */ jsx95(ReakitTabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
15284
15438
|
};
|
|
15285
15439
|
var TabButton = ({ children, id, ...props }) => {
|
|
15286
15440
|
const currentTab = useCurrentTab();
|
|
15287
|
-
return /* @__PURE__ */
|
|
15441
|
+
return /* @__PURE__ */ jsx95(ReakitTab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
15288
15442
|
};
|
|
15289
15443
|
var TabContent = ({ children, ...props }) => {
|
|
15290
15444
|
const currentTab = useCurrentTab();
|
|
15291
|
-
return /* @__PURE__ */
|
|
15445
|
+
return /* @__PURE__ */ jsx95(ReakitTabPanel, { ...props, ...currentTab, children });
|
|
15292
15446
|
};
|
|
15293
15447
|
|
|
15294
15448
|
// src/components/Validation/StatusBullet.styles.ts
|
|
15295
|
-
import { css as
|
|
15296
|
-
var StatusBulletContainer =
|
|
15449
|
+
import { css as css73 } from "@emotion/react";
|
|
15450
|
+
var StatusBulletContainer = css73`
|
|
15297
15451
|
align-items: center;
|
|
15298
15452
|
align-self: center;
|
|
15299
15453
|
color: var(--gray-500);
|
|
@@ -15310,51 +15464,51 @@ var StatusBulletContainer = css70`
|
|
|
15310
15464
|
display: block;
|
|
15311
15465
|
}
|
|
15312
15466
|
`;
|
|
15313
|
-
var StatusBulletBase =
|
|
15467
|
+
var StatusBulletBase = css73`
|
|
15314
15468
|
font-size: var(--fs-sm);
|
|
15315
15469
|
&:before {
|
|
15316
15470
|
width: var(--fs-xs);
|
|
15317
15471
|
height: var(--fs-xs);
|
|
15318
15472
|
}
|
|
15319
15473
|
`;
|
|
15320
|
-
var StatusBulletSmall =
|
|
15474
|
+
var StatusBulletSmall = css73`
|
|
15321
15475
|
font-size: var(--fs-xs);
|
|
15322
15476
|
&:before {
|
|
15323
15477
|
width: var(--fs-xxs);
|
|
15324
15478
|
height: var(--fs-xxs);
|
|
15325
15479
|
}
|
|
15326
15480
|
`;
|
|
15327
|
-
var StatusDraft =
|
|
15481
|
+
var StatusDraft = css73`
|
|
15328
15482
|
&:before {
|
|
15329
15483
|
background: var(--white);
|
|
15330
15484
|
box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
|
|
15331
15485
|
}
|
|
15332
15486
|
`;
|
|
15333
|
-
var StatusModified =
|
|
15487
|
+
var StatusModified = css73`
|
|
15334
15488
|
&:before {
|
|
15335
15489
|
background: linear-gradient(to right, var(--white) 50%, var(--brand-primary-1) 50% 100%);
|
|
15336
15490
|
box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
|
|
15337
15491
|
}
|
|
15338
15492
|
`;
|
|
15339
|
-
var StatusError =
|
|
15493
|
+
var StatusError = css73`
|
|
15340
15494
|
color: var(--error);
|
|
15341
15495
|
&:before {
|
|
15342
15496
|
background: linear-gradient(120deg, var(--error) 40%, var(--white) 50%, var(--error) 60%);
|
|
15343
15497
|
}
|
|
15344
15498
|
`;
|
|
15345
|
-
var StatusPublished =
|
|
15499
|
+
var StatusPublished = css73`
|
|
15346
15500
|
&:before {
|
|
15347
15501
|
background: var(--brand-secondary-3);
|
|
15348
15502
|
}
|
|
15349
15503
|
`;
|
|
15350
|
-
var StatusOrphan =
|
|
15504
|
+
var StatusOrphan = css73`
|
|
15351
15505
|
&:before {
|
|
15352
15506
|
background: var(--brand-secondary-5);
|
|
15353
15507
|
}
|
|
15354
15508
|
`;
|
|
15355
15509
|
|
|
15356
15510
|
// src/components/Validation/StatusBullet.tsx
|
|
15357
|
-
import { jsx as
|
|
15511
|
+
import { jsx as jsx96 } from "@emotion/react/jsx-runtime";
|
|
15358
15512
|
var StatusBullet = ({
|
|
15359
15513
|
status,
|
|
15360
15514
|
hideText = false,
|
|
@@ -15371,7 +15525,7 @@ var StatusBullet = ({
|
|
|
15371
15525
|
Draft: StatusDraft
|
|
15372
15526
|
};
|
|
15373
15527
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
15374
|
-
return /* @__PURE__ */
|
|
15528
|
+
return /* @__PURE__ */ jsx96(
|
|
15375
15529
|
"span",
|
|
15376
15530
|
{
|
|
15377
15531
|
role: "status",
|
|
@@ -15394,6 +15548,7 @@ export {
|
|
|
15394
15548
|
Caption,
|
|
15395
15549
|
Card,
|
|
15396
15550
|
CardContainer2 as CardContainer,
|
|
15551
|
+
CardTitle2 as CardTitle,
|
|
15397
15552
|
CheckboxWithInfo,
|
|
15398
15553
|
ConnectToDataElementButton,
|
|
15399
15554
|
Container2 as Container,
|
|
@@ -15432,11 +15587,13 @@ export {
|
|
|
15432
15587
|
Link,
|
|
15433
15588
|
LinkList,
|
|
15434
15589
|
LinkWithRef,
|
|
15590
|
+
LoadingCardSkeleton2 as LoadingCardSkeleton,
|
|
15435
15591
|
LoadingIcon,
|
|
15436
15592
|
LoadingIndicator,
|
|
15437
15593
|
LoadingOverlay,
|
|
15438
15594
|
Menu,
|
|
15439
15595
|
MenuContext,
|
|
15596
|
+
MenuGroup,
|
|
15440
15597
|
MenuItem,
|
|
15441
15598
|
MenuItemSeparator,
|
|
15442
15599
|
PageHeaderSection,
|
|
@@ -15493,6 +15650,7 @@ export {
|
|
|
15493
15650
|
Theme,
|
|
15494
15651
|
TileContainer,
|
|
15495
15652
|
Tooltip,
|
|
15653
|
+
TwoColumnLayout,
|
|
15496
15654
|
UniformBadge,
|
|
15497
15655
|
UniformLogo,
|
|
15498
15656
|
VerticalRhythm,
|
|
@@ -15511,6 +15669,7 @@ export {
|
|
|
15511
15669
|
buttonUnimportant,
|
|
15512
15670
|
canvasAlertIcon,
|
|
15513
15671
|
cardIcon,
|
|
15672
|
+
cq,
|
|
15514
15673
|
customIcons,
|
|
15515
15674
|
extractParameterProps,
|
|
15516
15675
|
fadeIn,
|
|
@@ -15533,8 +15692,10 @@ export {
|
|
|
15533
15692
|
mq,
|
|
15534
15693
|
numberInput,
|
|
15535
15694
|
rectangleRoundedIcon,
|
|
15695
|
+
replaceUnderscoreInString,
|
|
15536
15696
|
ripple,
|
|
15537
15697
|
scrollbarStyles,
|
|
15698
|
+
settings,
|
|
15538
15699
|
skeletonLoading,
|
|
15539
15700
|
slideInTtb,
|
|
15540
15701
|
spinner_default as spinnerAnimationData,
|