@uniformdev/design-system 18.33.1-alpha.7 → 18.34.1-alpha.57
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 +1176 -727
- package/dist/index.d.ts +131 -10
- package/dist/index.js +1283 -818
- package/package.json +3 -3
package/dist/esm/index.js
CHANGED
|
@@ -306,6 +306,20 @@ var buttonSecondaryInvert = css`
|
|
|
306
306
|
|
|
307
307
|
${buttonRippleEffect({ hoverColor: "var(--gray-50)" })}
|
|
308
308
|
`;
|
|
309
|
+
var buttonPrimaryInvert = css`
|
|
310
|
+
background: var(--white);
|
|
311
|
+
color: var(--brand-secondary-1);
|
|
312
|
+
box-shadow: 0 0 0 1px var(--brand-secondary-1);
|
|
313
|
+
transition: box-shadow var(--duration-fast) var(--timing-ease-out);
|
|
314
|
+
gap: var(--spacing-sm);
|
|
315
|
+
|
|
316
|
+
&:disabled {
|
|
317
|
+
color: var(--gray-300);
|
|
318
|
+
box-shadow: 0 0 0 1px var(--gray-300);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
${buttonRippleEffect({ hoverColor: "var(--gray-50)" })}
|
|
322
|
+
`;
|
|
309
323
|
var buttonUnimportant = css`
|
|
310
324
|
background: var(--brand-secondary-2);
|
|
311
325
|
color: var(--brand-secondary-1);
|
|
@@ -510,9 +524,10 @@ var textarea = css2`
|
|
|
510
524
|
`;
|
|
511
525
|
var inputSelectCompact = css2`
|
|
512
526
|
font-size: var(--fs-xs);
|
|
513
|
-
padding: var(--spacing-
|
|
527
|
+
padding: var(--spacing-2xs) var(--spacing-md) var(--spacing-2xs) var(--spacing-xs);
|
|
514
528
|
border-color: var(--gray-300);
|
|
515
529
|
background-position: right var(--spacing-xs) center;
|
|
530
|
+
border-radius: var(--rounded-base);
|
|
516
531
|
`;
|
|
517
532
|
|
|
518
533
|
// src/styles/Animations.styles.ts
|
|
@@ -598,6 +613,14 @@ to {
|
|
|
598
613
|
transform: translateX(0);
|
|
599
614
|
}
|
|
600
615
|
`;
|
|
616
|
+
var slideInTtb = keyframes`
|
|
617
|
+
from {
|
|
618
|
+
transform: translateY(-100%);
|
|
619
|
+
}
|
|
620
|
+
to {
|
|
621
|
+
transform: translateY(0);
|
|
622
|
+
}
|
|
623
|
+
`;
|
|
601
624
|
|
|
602
625
|
// src/styles/Scrollbar.styles.ts
|
|
603
626
|
import { css as css3 } from "@emotion/react";
|
|
@@ -843,40 +866,6 @@ var AddButton = ({
|
|
|
843
866
|
// src/components/AddListButton/AddListButton.tsx
|
|
844
867
|
import { CgAdd, CgAddR, CgMathPlus } from "react-icons/cg";
|
|
845
868
|
|
|
846
|
-
// src/components/Icons/Icon.tsx
|
|
847
|
-
import React3 from "react";
|
|
848
|
-
|
|
849
|
-
// src/components/Icons/Icon.styles.ts
|
|
850
|
-
import { css as css7 } from "@emotion/react";
|
|
851
|
-
var IconImg = css7`
|
|
852
|
-
display: hidden;
|
|
853
|
-
|
|
854
|
-
${mq("sm")} {
|
|
855
|
-
display: block;
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
& svg {
|
|
859
|
-
display: block;
|
|
860
|
-
vertical-align: middle;
|
|
861
|
-
}
|
|
862
|
-
`;
|
|
863
|
-
var IconColorGreen = css7`
|
|
864
|
-
color: var(--brand-secondary-3);
|
|
865
|
-
`;
|
|
866
|
-
var IconColorRed = css7`
|
|
867
|
-
color: var(--brand-secondary-5);
|
|
868
|
-
`;
|
|
869
|
-
var IconColorGray = css7`
|
|
870
|
-
color: var(--gray-500);
|
|
871
|
-
`;
|
|
872
|
-
var IconColorCurrent = css7`
|
|
873
|
-
color: currentColor;
|
|
874
|
-
`;
|
|
875
|
-
|
|
876
|
-
// src/components/Icons/IconsProvider.tsx
|
|
877
|
-
import { paramCase } from "param-case";
|
|
878
|
-
import { createContext, useContext as useContext2, useEffect as useEffect3, useState as useState2 } from "react";
|
|
879
|
-
|
|
880
869
|
// src/components/Icons/customIcons.tsx
|
|
881
870
|
import { GenIcon } from "react-icons";
|
|
882
871
|
var rectangleRoundedIcon = GenIcon({
|
|
@@ -1189,7 +1178,39 @@ var customIcons = {
|
|
|
1189
1178
|
"info-filled": infoFilledIcon
|
|
1190
1179
|
};
|
|
1191
1180
|
|
|
1181
|
+
// src/components/Icons/Icon.tsx
|
|
1182
|
+
import React3 from "react";
|
|
1183
|
+
|
|
1184
|
+
// src/components/Icons/Icon.styles.ts
|
|
1185
|
+
import { css as css7 } from "@emotion/react";
|
|
1186
|
+
var IconImg = css7`
|
|
1187
|
+
display: hidden;
|
|
1188
|
+
|
|
1189
|
+
${mq("sm")} {
|
|
1190
|
+
display: block;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
& svg {
|
|
1194
|
+
display: block;
|
|
1195
|
+
vertical-align: middle;
|
|
1196
|
+
}
|
|
1197
|
+
`;
|
|
1198
|
+
var IconColorGreen = css7`
|
|
1199
|
+
color: var(--brand-secondary-3);
|
|
1200
|
+
`;
|
|
1201
|
+
var IconColorRed = css7`
|
|
1202
|
+
color: var(--brand-secondary-5);
|
|
1203
|
+
`;
|
|
1204
|
+
var IconColorGray = css7`
|
|
1205
|
+
color: var(--gray-500);
|
|
1206
|
+
`;
|
|
1207
|
+
var IconColorCurrent = css7`
|
|
1208
|
+
color: currentColor;
|
|
1209
|
+
`;
|
|
1210
|
+
|
|
1192
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";
|
|
1193
1214
|
import { jsx as jsx5 } from "@emotion/react/jsx-runtime";
|
|
1194
1215
|
var IconContext = createContext({
|
|
1195
1216
|
/** object mapping of available icons */
|
|
@@ -1401,18 +1422,104 @@ var Heading = ({
|
|
|
1401
1422
|
// src/components/Badges/Badge.styles.ts
|
|
1402
1423
|
import { css as css10 } from "@emotion/react";
|
|
1403
1424
|
var BadgeContainer = css10`
|
|
1404
|
-
|
|
1425
|
+
--caution-desc: rgb(161, 98, 7);
|
|
1426
|
+
--caution-title: rgb(133, 77, 14);
|
|
1427
|
+
--caution-container: rgb(254, 252, 232);
|
|
1428
|
+
|
|
1429
|
+
--danger-desc: rgb(185, 28, 28);
|
|
1430
|
+
--danger-title: rgb(153, 27, 27);
|
|
1431
|
+
--danger-container: rgb(254, 242, 242);
|
|
1432
|
+
|
|
1433
|
+
--info-desc: rgb(29, 78, 216);
|
|
1434
|
+
--info-title: rgb(30, 64, 175);
|
|
1435
|
+
--info-container: rgb(239, 246, 255);
|
|
1436
|
+
|
|
1437
|
+
--note-desc: var(--gray-700);
|
|
1438
|
+
--note-title: var(--gray-800);
|
|
1439
|
+
--note-container: var(--gray-50);
|
|
1440
|
+
|
|
1441
|
+
--success-desc: rgb(21, 128, 61);
|
|
1442
|
+
--success-title: rgb(22, 101, 52);
|
|
1443
|
+
--success-container: rgb(240, 253, 250);
|
|
1444
|
+
|
|
1405
1445
|
border-radius: var(--rounded-base);
|
|
1406
|
-
color: var(--brand-secondary-1);
|
|
1407
1446
|
display: inline-block;
|
|
1447
|
+
`;
|
|
1448
|
+
var ExtraSmall = css10`
|
|
1449
|
+
padding: var(--spacing-xs) var(--spacing-sm);
|
|
1450
|
+
font-size: var(--fs-xxs);
|
|
1451
|
+
`;
|
|
1452
|
+
var Small = css10`
|
|
1453
|
+
padding: var(--spacing-xs) var(--spacing-sm);
|
|
1454
|
+
font-size: var(--fs-xs);
|
|
1455
|
+
`;
|
|
1456
|
+
var Base = css10`
|
|
1408
1457
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
1409
1458
|
font-size: var(--fs-sm);
|
|
1410
1459
|
`;
|
|
1460
|
+
var Caution = css10`
|
|
1461
|
+
background-color: var(--caution-container);
|
|
1462
|
+
color: var(--caution-title);
|
|
1463
|
+
`;
|
|
1464
|
+
var Info = css10`
|
|
1465
|
+
background-color: var(--info-container);
|
|
1466
|
+
color: var(--info-title);
|
|
1467
|
+
`;
|
|
1468
|
+
var Note = css10`
|
|
1469
|
+
background-color: var(--note-container);
|
|
1470
|
+
color: var(--note-title);
|
|
1471
|
+
`;
|
|
1472
|
+
var Success = css10`
|
|
1473
|
+
background-color: var(--success-container);
|
|
1474
|
+
color: var(--success-title);
|
|
1475
|
+
`;
|
|
1476
|
+
var Error2 = css10`
|
|
1477
|
+
background-color: var(--danger-container);
|
|
1478
|
+
color: var(--danger-title);
|
|
1479
|
+
`;
|
|
1480
|
+
var Unimportant = css10`
|
|
1481
|
+
background: var(--brand-secondary-2);
|
|
1482
|
+
color: var(--brand-secondary-1);
|
|
1483
|
+
`;
|
|
1484
|
+
var UppercaseText = css10`
|
|
1485
|
+
text-transform: uppercase;
|
|
1486
|
+
`;
|
|
1411
1487
|
|
|
1412
1488
|
// src/components/Badges/Badge.tsx
|
|
1413
1489
|
import { jsx as jsx9 } from "@emotion/react/jsx-runtime";
|
|
1414
|
-
var Badge = ({
|
|
1415
|
-
|
|
1490
|
+
var Badge = ({
|
|
1491
|
+
text,
|
|
1492
|
+
theme = "unimportant",
|
|
1493
|
+
size = "base",
|
|
1494
|
+
uppercaseText,
|
|
1495
|
+
...props
|
|
1496
|
+
}) => {
|
|
1497
|
+
const themeStyles = {
|
|
1498
|
+
caution: Caution,
|
|
1499
|
+
error: Error2,
|
|
1500
|
+
info: Info,
|
|
1501
|
+
note: Note,
|
|
1502
|
+
success: Success,
|
|
1503
|
+
unimportant: Unimportant
|
|
1504
|
+
};
|
|
1505
|
+
const sizeStyles = {
|
|
1506
|
+
xs: ExtraSmall,
|
|
1507
|
+
sm: Small,
|
|
1508
|
+
base: Base
|
|
1509
|
+
};
|
|
1510
|
+
return /* @__PURE__ */ jsx9(
|
|
1511
|
+
"span",
|
|
1512
|
+
{
|
|
1513
|
+
css: [
|
|
1514
|
+
BadgeContainer,
|
|
1515
|
+
themeStyles[theme],
|
|
1516
|
+
sizeStyles[size],
|
|
1517
|
+
uppercaseText ? UppercaseText : void 0
|
|
1518
|
+
],
|
|
1519
|
+
...props,
|
|
1520
|
+
children: text
|
|
1521
|
+
}
|
|
1522
|
+
);
|
|
1416
1523
|
};
|
|
1417
1524
|
|
|
1418
1525
|
// src/components/Typography/Link.tsx
|
|
@@ -10293,27 +10400,149 @@ var AnimationFile = ({
|
|
|
10293
10400
|
);
|
|
10294
10401
|
};
|
|
10295
10402
|
|
|
10296
|
-
// src/components/
|
|
10403
|
+
// src/components/Banner/Banner.tsx
|
|
10404
|
+
import { CgClose as CgClose2 } from "react-icons/cg";
|
|
10405
|
+
|
|
10406
|
+
// src/components/Banner/Banner.styles.ts
|
|
10407
|
+
import { css as css17 } from "@emotion/react";
|
|
10408
|
+
|
|
10409
|
+
// src/styles/functionalColors.styles.ts
|
|
10297
10410
|
import { css as css16 } from "@emotion/react";
|
|
10298
|
-
var
|
|
10411
|
+
var functionalColors = css16`
|
|
10412
|
+
--caution-desc: rgb(161, 98, 7);
|
|
10413
|
+
--caution-icon: rgb(250, 204, 21);
|
|
10414
|
+
--caution-title: rgb(133, 77, 14);
|
|
10415
|
+
--caution-container: rgb(254, 252, 232);
|
|
10416
|
+
|
|
10417
|
+
--danger-desc: rgb(185, 28, 28);
|
|
10418
|
+
--danger-icon: rgb(248, 113, 113);
|
|
10419
|
+
--danger-title: rgb(153, 27, 27);
|
|
10420
|
+
--danger-container: rgb(254, 242, 242);
|
|
10421
|
+
|
|
10422
|
+
--info-desc: rgb(29, 78, 216);
|
|
10423
|
+
--info-icon: rgb(96, 165, 250);
|
|
10424
|
+
--info-title: rgb(30, 64, 175);
|
|
10425
|
+
--info-container: rgb(239, 246, 255);
|
|
10426
|
+
|
|
10427
|
+
--note-desc: var(--gray-700);
|
|
10428
|
+
--note-icon: var(--gray-400);
|
|
10429
|
+
--note-title: var(--gray-800);
|
|
10430
|
+
--note-container: var(--gray-50);
|
|
10431
|
+
|
|
10432
|
+
--success-desc: rgb(21, 128, 61);
|
|
10433
|
+
--success-icon: rgb(74, 222, 128);
|
|
10434
|
+
--success-title: rgb(22, 101, 52);
|
|
10435
|
+
--success-container: rgb(240, 253, 250);
|
|
10436
|
+
`;
|
|
10437
|
+
|
|
10438
|
+
// src/components/Banner/Banner.styles.ts
|
|
10439
|
+
var bannerStyles = css17`
|
|
10440
|
+
${functionalColors}
|
|
10441
|
+
|
|
10442
|
+
--border-color: var(--info-icon);
|
|
10443
|
+
--background-color: var(--info-container);
|
|
10444
|
+
|
|
10445
|
+
display: flex;
|
|
10446
|
+
gap: var(--spacing-sm);
|
|
10447
|
+
justify-content: space-between;
|
|
10448
|
+
color: var(--brand-secondary-1);
|
|
10449
|
+
border-bottom: 1px solid var(--border-color);
|
|
10450
|
+
background-color: var(--background-color);
|
|
10451
|
+
padding: var(--spacing-sm);
|
|
10452
|
+
|
|
10453
|
+
&[data-type='caution'] {
|
|
10454
|
+
--border-color: var(--caution-icon);
|
|
10455
|
+
--background-color: var(--caution-container);
|
|
10456
|
+
}
|
|
10457
|
+
|
|
10458
|
+
&[data-type='danger'] {
|
|
10459
|
+
--border-color: var(--danger-icon);
|
|
10460
|
+
--background-color: var(--danger-container);
|
|
10461
|
+
}
|
|
10462
|
+
|
|
10463
|
+
&[data-type='note'] {
|
|
10464
|
+
--border-color: var(--note-icon);
|
|
10465
|
+
--background-color: var(--note-container);
|
|
10466
|
+
}
|
|
10467
|
+
|
|
10468
|
+
&[data-type='success'] {
|
|
10469
|
+
--border-color: var(--success-icon);
|
|
10470
|
+
--background-color: var(--success-container);
|
|
10471
|
+
}
|
|
10472
|
+
`;
|
|
10473
|
+
var bannerAnimatedStyles = css17`
|
|
10474
|
+
animation: ${slideInTtb} var(--duration-xfast) ease-out;
|
|
10475
|
+
`;
|
|
10476
|
+
var bannerContentStyles = css17``;
|
|
10477
|
+
var bannerDismissButtonStyles = css17`
|
|
10478
|
+
display: flex;
|
|
10479
|
+
align-items: center;
|
|
10480
|
+
justify-content: center;
|
|
10481
|
+
position: relative;
|
|
10482
|
+
padding: var(--spacing-xs);
|
|
10483
|
+
background: transparent;
|
|
10484
|
+
border: 0;
|
|
10485
|
+
border-radius: var(--rounded-base);
|
|
10486
|
+
z-index: 1;
|
|
10487
|
+
overflow: hidden;
|
|
10488
|
+
|
|
10489
|
+
&::before {
|
|
10490
|
+
content: '';
|
|
10491
|
+
display: block;
|
|
10492
|
+
position: absolute;
|
|
10493
|
+
inset: 0;
|
|
10494
|
+
background-color: var(--gray-200);
|
|
10495
|
+
z-index: -1;
|
|
10496
|
+
opacity: 0;
|
|
10497
|
+
transition: opacity var(--duration-xfast) ease-in-out;
|
|
10498
|
+
}
|
|
10499
|
+
|
|
10500
|
+
&:hover {
|
|
10501
|
+
&::before {
|
|
10502
|
+
opacity: 0.5;
|
|
10503
|
+
}
|
|
10504
|
+
}
|
|
10505
|
+
`;
|
|
10506
|
+
|
|
10507
|
+
// src/components/Banner/Banner.tsx
|
|
10508
|
+
import { jsx as jsx16, jsxs as jsxs8 } from "@emotion/react/jsx-runtime";
|
|
10509
|
+
var Banner = ({ type = "note", onDismiss, children, isAnimated = false, ...props }) => {
|
|
10510
|
+
return /* @__PURE__ */ jsxs8(
|
|
10511
|
+
"div",
|
|
10512
|
+
{
|
|
10513
|
+
role: "banner",
|
|
10514
|
+
css: [bannerStyles, isAnimated ? bannerAnimatedStyles : void 0],
|
|
10515
|
+
"data-type": type,
|
|
10516
|
+
...props,
|
|
10517
|
+
children: [
|
|
10518
|
+
/* @__PURE__ */ jsx16("div", { css: bannerContentStyles, children }),
|
|
10519
|
+
!onDismiss ? null : /* @__PURE__ */ jsx16("button", { type: "button", css: bannerDismissButtonStyles, title: "Dismiss banner", onClick: onDismiss, children: /* @__PURE__ */ jsx16(CgClose2, {}) })
|
|
10520
|
+
]
|
|
10521
|
+
}
|
|
10522
|
+
);
|
|
10523
|
+
};
|
|
10524
|
+
|
|
10525
|
+
// src/components/Brand/UniformLogo.styles.ts
|
|
10526
|
+
import { css as css18 } from "@emotion/react";
|
|
10527
|
+
var SVG = css18`
|
|
10299
10528
|
display: block;
|
|
10300
10529
|
`;
|
|
10301
|
-
var SVGLight =
|
|
10530
|
+
var SVGLight = css18`
|
|
10302
10531
|
background: transparent;
|
|
10303
10532
|
color: var(--brand-secondary-1);
|
|
10304
10533
|
`;
|
|
10305
|
-
var SVGDark =
|
|
10534
|
+
var SVGDark = css18`
|
|
10306
10535
|
background: var(--brand-secondary-1);
|
|
10307
10536
|
color: var(--white);
|
|
10308
10537
|
`;
|
|
10309
10538
|
|
|
10310
10539
|
// src/components/Brand/UniformBadge.tsx
|
|
10311
|
-
import { jsx as
|
|
10540
|
+
import { jsx as jsx17, jsxs as jsxs9 } from "@emotion/react/jsx-runtime";
|
|
10312
10541
|
var UniformBadge = ({
|
|
10313
10542
|
theme = "light",
|
|
10314
10543
|
...props
|
|
10315
10544
|
}) => {
|
|
10316
|
-
return /* @__PURE__ */
|
|
10545
|
+
return /* @__PURE__ */ jsxs9(
|
|
10317
10546
|
"svg",
|
|
10318
10547
|
{
|
|
10319
10548
|
width: "38",
|
|
@@ -10325,15 +10554,15 @@ var UniformBadge = ({
|
|
|
10325
10554
|
css: [SVG, theme === "dark" ? SVGDark : SVGLight],
|
|
10326
10555
|
...props,
|
|
10327
10556
|
children: [
|
|
10328
|
-
/* @__PURE__ */
|
|
10329
|
-
/* @__PURE__ */
|
|
10557
|
+
/* @__PURE__ */ jsx17("path", { d: "M28.998 0 0 16.744V50.23l28.998-16.744 29.004-16.743L28.998 0Z", fill: "#7BB3FF" }),
|
|
10558
|
+
/* @__PURE__ */ jsx17(
|
|
10330
10559
|
"path",
|
|
10331
10560
|
{
|
|
10332
10561
|
d: "M28.998 66.974V33.487L0 50.231v33.487l28.998 16.744 29.004-16.744V50.23L28.998 66.974Z",
|
|
10333
10562
|
fill: "#498DFF"
|
|
10334
10563
|
}
|
|
10335
10564
|
),
|
|
10336
|
-
/* @__PURE__ */
|
|
10565
|
+
/* @__PURE__ */ jsx17(
|
|
10337
10566
|
"path",
|
|
10338
10567
|
{
|
|
10339
10568
|
d: "M58.002 16.744 28.998 33.487l29.004 16.744v33.487L87 66.975V33.487L58.002 16.744Z",
|
|
@@ -10346,12 +10575,12 @@ var UniformBadge = ({
|
|
|
10346
10575
|
};
|
|
10347
10576
|
|
|
10348
10577
|
// src/components/Brand/UniformLogo.tsx
|
|
10349
|
-
import { jsx as
|
|
10578
|
+
import { jsx as jsx18, jsxs as jsxs10 } from "@emotion/react/jsx-runtime";
|
|
10350
10579
|
var UniformLogo = ({
|
|
10351
10580
|
theme = "light",
|
|
10352
10581
|
...props
|
|
10353
10582
|
}) => {
|
|
10354
|
-
return /* @__PURE__ */
|
|
10583
|
+
return /* @__PURE__ */ jsx18("div", { "data-test-id": "uniform-Logo", children: /* @__PURE__ */ jsxs10(
|
|
10355
10584
|
"svg",
|
|
10356
10585
|
{
|
|
10357
10586
|
width: "153",
|
|
@@ -10362,16 +10591,16 @@ var UniformLogo = ({
|
|
|
10362
10591
|
css: [SVG, theme === "dark" ? SVGDark : SVGLight],
|
|
10363
10592
|
...props,
|
|
10364
10593
|
children: [
|
|
10365
|
-
/* @__PURE__ */
|
|
10366
|
-
/* @__PURE__ */
|
|
10594
|
+
/* @__PURE__ */ jsx18("path", { d: "M11.249 0 0 6.495v12.99l11.249-6.495L22.5 6.495 11.25 0Z", fill: "#7BB3FF" }),
|
|
10595
|
+
/* @__PURE__ */ jsx18(
|
|
10367
10596
|
"path",
|
|
10368
10597
|
{
|
|
10369
10598
|
d: "M11.249 25.98V12.99L0 19.486v12.99l11.249 6.495L22.5 32.476v-12.99L11.25 25.98Z",
|
|
10370
10599
|
fill: "#498DFF"
|
|
10371
10600
|
}
|
|
10372
10601
|
),
|
|
10373
|
-
/* @__PURE__ */
|
|
10374
|
-
/* @__PURE__ */
|
|
10602
|
+
/* @__PURE__ */ jsx18("path", { d: "m22.5 6.495-11.25 6.496 11.25 6.495v12.99l11.25-6.495V12.99L22.5 6.495Z", fill: "#E61408" }),
|
|
10603
|
+
/* @__PURE__ */ jsx18(
|
|
10375
10604
|
"path",
|
|
10376
10605
|
{
|
|
10377
10606
|
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",
|
|
@@ -10386,11 +10615,12 @@ var UniformLogo = ({
|
|
|
10386
10615
|
// src/components/Button/Button.tsx
|
|
10387
10616
|
import * as React5 from "react";
|
|
10388
10617
|
import { Button as BaseButton } from "reakit/Button";
|
|
10389
|
-
import { jsx as
|
|
10618
|
+
import { jsx as jsx19 } from "@emotion/react/jsx-runtime";
|
|
10390
10619
|
var Button = React5.forwardRef(
|
|
10391
10620
|
({ buttonType = "primary", size = "md", children, ...props }, ref) => {
|
|
10392
10621
|
const buttonTheme = {
|
|
10393
10622
|
primary: buttonPrimary,
|
|
10623
|
+
primaryInvert: buttonPrimaryInvert,
|
|
10394
10624
|
secondary: buttonSecondary,
|
|
10395
10625
|
secondaryInvert: buttonSecondaryInvert,
|
|
10396
10626
|
ghost: buttonGhost,
|
|
@@ -10406,7 +10636,7 @@ var Button = React5.forwardRef(
|
|
|
10406
10636
|
lg: "padding: var(--spacing-sm) var(--spacing-base)",
|
|
10407
10637
|
xl: "padding: 0.75rem var(--spacing-md)"
|
|
10408
10638
|
};
|
|
10409
|
-
return /* @__PURE__ */
|
|
10639
|
+
return /* @__PURE__ */ jsx19(BaseButton, { ref, css: [button, buttonTheme[buttonType], btnSize[size]], ...props, children });
|
|
10410
10640
|
}
|
|
10411
10641
|
);
|
|
10412
10642
|
|
|
@@ -10423,8 +10653,8 @@ import {
|
|
|
10423
10653
|
import { Portal } from "reakit/Portal";
|
|
10424
10654
|
|
|
10425
10655
|
// src/components/Menu/Menu.styles.ts
|
|
10426
|
-
import { css as
|
|
10427
|
-
var menu =
|
|
10656
|
+
import { css as css19 } from "@emotion/react";
|
|
10657
|
+
var menu = css19`
|
|
10428
10658
|
box-shadow: var(--shadow-base);
|
|
10429
10659
|
border-radius: var(--rounded-base);
|
|
10430
10660
|
background: var(--gray-50);
|
|
@@ -10438,7 +10668,7 @@ var menu = css17`
|
|
|
10438
10668
|
`;
|
|
10439
10669
|
|
|
10440
10670
|
// src/components/Menu/Menu.tsx
|
|
10441
|
-
import { jsx as
|
|
10671
|
+
import { jsx as jsx20, jsxs as jsxs11 } from "@emotion/react/jsx-runtime";
|
|
10442
10672
|
var MenuContext = React6.createContext({});
|
|
10443
10673
|
var useMenuContext = () => {
|
|
10444
10674
|
return React6.useContext(MenuContext);
|
|
@@ -10451,9 +10681,9 @@ var Menu = ({
|
|
|
10451
10681
|
children
|
|
10452
10682
|
}) => {
|
|
10453
10683
|
const menuState = useMenuState({ placement });
|
|
10454
|
-
return /* @__PURE__ */
|
|
10455
|
-
/* @__PURE__ */
|
|
10456
|
-
/* @__PURE__ */
|
|
10684
|
+
return /* @__PURE__ */ jsxs11(MenuContext.Provider, { value: menuState, children: [
|
|
10685
|
+
/* @__PURE__ */ jsx20(MenuButton, { ...menuState, ref: menuTrigger.ref, ...menuTrigger.props, children: (triggerProps) => React6.cloneElement(menuTrigger, triggerProps) }),
|
|
10686
|
+
/* @__PURE__ */ jsx20(Portal, { children: /* @__PURE__ */ jsx20(
|
|
10457
10687
|
BaseMenu,
|
|
10458
10688
|
{
|
|
10459
10689
|
...menuState,
|
|
@@ -10474,8 +10704,8 @@ import * as React7 from "react";
|
|
|
10474
10704
|
import { MenuItem as BaseMenuItem } from "reakit";
|
|
10475
10705
|
|
|
10476
10706
|
// src/components/Menu/MenuItem.styles.ts
|
|
10477
|
-
import { css as
|
|
10478
|
-
var menuItem = (textTheme) =>
|
|
10707
|
+
import { css as css20 } from "@emotion/react";
|
|
10708
|
+
var menuItem = (textTheme) => css20`
|
|
10479
10709
|
align-items: center;
|
|
10480
10710
|
border: none;
|
|
10481
10711
|
border-radius: var(--rounded-base);
|
|
@@ -10501,7 +10731,7 @@ var menuItem = (textTheme) => css18`
|
|
|
10501
10731
|
outline: none;
|
|
10502
10732
|
}
|
|
10503
10733
|
`;
|
|
10504
|
-
var menuItemWithIcon =
|
|
10734
|
+
var menuItemWithIcon = css20`
|
|
10505
10735
|
align-items: center;
|
|
10506
10736
|
display: flex;
|
|
10507
10737
|
justify-content: space-between;
|
|
@@ -10513,14 +10743,14 @@ var menuItemWithIcon = css18`
|
|
|
10513
10743
|
height: var(--spacing-base);
|
|
10514
10744
|
}
|
|
10515
10745
|
`;
|
|
10516
|
-
var menuItemSeparator =
|
|
10746
|
+
var menuItemSeparator = css20`
|
|
10517
10747
|
border-top: 1px solid var(--gray-300);
|
|
10518
10748
|
width: 100%;
|
|
10519
10749
|
margin-block: var(--spacing-sm);
|
|
10520
10750
|
`;
|
|
10521
10751
|
|
|
10522
10752
|
// src/components/Menu/MenuItem.tsx
|
|
10523
|
-
import { jsx as
|
|
10753
|
+
import { jsx as jsx21, jsxs as jsxs12 } from "@emotion/react/jsx-runtime";
|
|
10524
10754
|
var MenuItem = React7.forwardRef(
|
|
10525
10755
|
({ children, className, hideMenuOnClick = true, icon, textColor = "base", ...props }, ref) => {
|
|
10526
10756
|
const menuState = useMenuContext();
|
|
@@ -10537,7 +10767,7 @@ var MenuItem = React7.forwardRef(
|
|
|
10537
10767
|
};
|
|
10538
10768
|
const resolvedProps = hideMenuOnClick ? resolveProps(props) : props;
|
|
10539
10769
|
const resolvedChildren = typeof children === "function" ? children(resolvedProps) : children;
|
|
10540
|
-
return /* @__PURE__ */
|
|
10770
|
+
return /* @__PURE__ */ jsx21(
|
|
10541
10771
|
BaseMenuItem,
|
|
10542
10772
|
{
|
|
10543
10773
|
ref,
|
|
@@ -10553,7 +10783,7 @@ var MenuItem = React7.forwardRef(
|
|
|
10553
10783
|
}
|
|
10554
10784
|
);
|
|
10555
10785
|
function renderWithIcon(children, icon) {
|
|
10556
|
-
return /* @__PURE__ */
|
|
10786
|
+
return /* @__PURE__ */ jsxs12("span", { css: menuItemWithIcon, children: [
|
|
10557
10787
|
icon,
|
|
10558
10788
|
" ",
|
|
10559
10789
|
children
|
|
@@ -10561,12 +10791,12 @@ function renderWithIcon(children, icon) {
|
|
|
10561
10791
|
}
|
|
10562
10792
|
|
|
10563
10793
|
// src/components/Menu/MenuItemSeparator.tsx
|
|
10564
|
-
import { jsx as
|
|
10565
|
-
var MenuItemSeparator = () => /* @__PURE__ */
|
|
10794
|
+
import { jsx as jsx22 } from "@emotion/react/jsx-runtime";
|
|
10795
|
+
var MenuItemSeparator = () => /* @__PURE__ */ jsx22("hr", { css: menuItemSeparator });
|
|
10566
10796
|
|
|
10567
10797
|
// src/components/ButtonWithMenu/ButtonWithMenu.styles.ts
|
|
10568
|
-
import { css as
|
|
10569
|
-
var ButtonWithMenuContainer =
|
|
10798
|
+
import { css as css21 } from "@emotion/react";
|
|
10799
|
+
var ButtonWithMenuContainer = css21`
|
|
10570
10800
|
align-items: center;
|
|
10571
10801
|
border: 1px solid transparent;
|
|
10572
10802
|
border-radius: var(--rounded-sm);
|
|
@@ -10587,7 +10817,7 @@ var ButtonWithMenuContainer = css19`
|
|
|
10587
10817
|
border-color: var(--gray-700);
|
|
10588
10818
|
}
|
|
10589
10819
|
`;
|
|
10590
|
-
var ButtonWithMenuBtn =
|
|
10820
|
+
var ButtonWithMenuBtn = css21`
|
|
10591
10821
|
border: 1px solid transparent;
|
|
10592
10822
|
background: transparent;
|
|
10593
10823
|
border-radius: var(--rounded-base);
|
|
@@ -10610,33 +10840,33 @@ var ButtonWithMenuBtn = css19`
|
|
|
10610
10840
|
pointer-events: none;
|
|
10611
10841
|
}
|
|
10612
10842
|
`;
|
|
10613
|
-
var ButtonWithMenuIcon =
|
|
10843
|
+
var ButtonWithMenuIcon = css21`
|
|
10614
10844
|
padding: var(--spacing-sm);
|
|
10615
10845
|
border-left: 1px solid currentColor;
|
|
10616
10846
|
`;
|
|
10617
|
-
var buttonPrimary2 =
|
|
10847
|
+
var buttonPrimary2 = css21`
|
|
10618
10848
|
background: var(--brand-secondary-1);
|
|
10619
10849
|
color: var(--white);
|
|
10620
10850
|
`;
|
|
10621
|
-
var buttonPrimaryDisabled =
|
|
10851
|
+
var buttonPrimaryDisabled = css21`
|
|
10622
10852
|
background: var(--gray-300);
|
|
10623
10853
|
color: var(--white);
|
|
10624
10854
|
`;
|
|
10625
|
-
var buttonSecondary2 =
|
|
10855
|
+
var buttonSecondary2 = css21`
|
|
10626
10856
|
background: var(--brand-secondary-5);
|
|
10627
10857
|
color: var(--white);
|
|
10628
10858
|
`;
|
|
10629
|
-
var buttonSecondaryDisabled =
|
|
10859
|
+
var buttonSecondaryDisabled = css21`
|
|
10630
10860
|
${buttonPrimaryDisabled}
|
|
10631
10861
|
`;
|
|
10632
|
-
var buttonUnimportant2 =
|
|
10862
|
+
var buttonUnimportant2 = css21`
|
|
10633
10863
|
background: var(--brand-secondary-2);
|
|
10634
10864
|
color: var(--brand-secondary-1);
|
|
10635
10865
|
`;
|
|
10636
|
-
var buttonUnimportantDisabled =
|
|
10866
|
+
var buttonUnimportantDisabled = css21`
|
|
10637
10867
|
${buttonPrimaryDisabled}
|
|
10638
10868
|
`;
|
|
10639
|
-
var buttonGhost2 =
|
|
10869
|
+
var buttonGhost2 = css21`
|
|
10640
10870
|
background: transparent;
|
|
10641
10871
|
color: var(--brand-secondary-3);
|
|
10642
10872
|
|
|
@@ -10644,13 +10874,13 @@ var buttonGhost2 = css19`
|
|
|
10644
10874
|
border-color: var(--brand-secondary-3);
|
|
10645
10875
|
}
|
|
10646
10876
|
`;
|
|
10647
|
-
var buttonGhostDisabled =
|
|
10877
|
+
var buttonGhostDisabled = css21`
|
|
10648
10878
|
border-color: var(--gray-400);
|
|
10649
10879
|
color: var(--gray-400);
|
|
10650
10880
|
`;
|
|
10651
10881
|
|
|
10652
10882
|
// src/components/ButtonWithMenu/ButtonWithMenu.tsx
|
|
10653
|
-
import { jsx as
|
|
10883
|
+
import { jsx as jsx23, jsxs as jsxs13 } from "@emotion/react/jsx-runtime";
|
|
10654
10884
|
var ButtonWithMenu = ({
|
|
10655
10885
|
onButtonClick,
|
|
10656
10886
|
buttonType = "secondary",
|
|
@@ -10672,13 +10902,13 @@ var ButtonWithMenu = ({
|
|
|
10672
10902
|
ghost: buttonGhostDisabled,
|
|
10673
10903
|
unimportant: buttonUnimportantDisabled
|
|
10674
10904
|
};
|
|
10675
|
-
return /* @__PURE__ */
|
|
10905
|
+
return /* @__PURE__ */ jsxs13(
|
|
10676
10906
|
"div",
|
|
10677
10907
|
{
|
|
10678
10908
|
css: [ButtonWithMenuContainer, disabled ? buttonDisabledTheme[buttonType] : buttonTheme[buttonType]],
|
|
10679
10909
|
"data-test-id": "multioptions-button",
|
|
10680
10910
|
children: [
|
|
10681
|
-
/* @__PURE__ */
|
|
10911
|
+
/* @__PURE__ */ jsx23(
|
|
10682
10912
|
"button",
|
|
10683
10913
|
{
|
|
10684
10914
|
type: "button",
|
|
@@ -10690,12 +10920,12 @@ var ButtonWithMenu = ({
|
|
|
10690
10920
|
children: buttonText
|
|
10691
10921
|
}
|
|
10692
10922
|
),
|
|
10693
|
-
/* @__PURE__ */
|
|
10923
|
+
/* @__PURE__ */ jsx23(
|
|
10694
10924
|
Menu,
|
|
10695
10925
|
{
|
|
10696
10926
|
menuLabel: "buttonMenu",
|
|
10697
10927
|
placement,
|
|
10698
|
-
menuTrigger: /* @__PURE__ */
|
|
10928
|
+
menuTrigger: /* @__PURE__ */ jsx23("div", { css: ButtonWithMenuIcon, "data-test-id": "multioptions-button-call-menu", children: /* @__PURE__ */ jsx23(Icon, { icon: CgChevronDown, size: 24, iconColor: "currentColor" }) }),
|
|
10699
10929
|
children
|
|
10700
10930
|
}
|
|
10701
10931
|
)
|
|
@@ -10705,41 +10935,18 @@ var ButtonWithMenu = ({
|
|
|
10705
10935
|
};
|
|
10706
10936
|
|
|
10707
10937
|
// src/components/Callout/Callout.tsx
|
|
10708
|
-
import { css as
|
|
10938
|
+
import { css as css23 } from "@emotion/react";
|
|
10709
10939
|
|
|
10710
10940
|
// src/components/Callout/Callout.styles.ts
|
|
10711
|
-
import { css as
|
|
10712
|
-
var calloutContainer =
|
|
10713
|
-
|
|
10714
|
-
--caution-icon: rgb(250, 204, 21);
|
|
10715
|
-
--caution-title: rgb(133, 77, 14);
|
|
10716
|
-
--caution-container: rgb(254, 252, 232);
|
|
10717
|
-
|
|
10718
|
-
--danger-desc: rgb(185, 28, 28);
|
|
10719
|
-
--danger-icon: rgb(248, 113, 113);
|
|
10720
|
-
--danger-title: rgb(153, 27, 27);
|
|
10721
|
-
--danger-container: rgb(254, 242, 242);
|
|
10722
|
-
|
|
10723
|
-
--info-desc: rgb(29, 78, 216);
|
|
10724
|
-
--info-icon: rgb(96, 165, 250);
|
|
10725
|
-
--info-title: rgb(30, 64, 175);
|
|
10726
|
-
--info-container: rgb(239, 246, 255);
|
|
10727
|
-
|
|
10728
|
-
--note-desc: var(--gray-700);
|
|
10729
|
-
--note-icon: var(--gray-400);
|
|
10730
|
-
--note-title: var(--gray-800);
|
|
10731
|
-
--note-container: var(--gray-50);
|
|
10732
|
-
|
|
10733
|
-
--success-desc: rgb(21, 128, 61);
|
|
10734
|
-
--success-icon: rgb(74, 222, 128);
|
|
10735
|
-
--success-title: rgb(22, 101, 52);
|
|
10736
|
-
--success-container: rgb(240, 253, 250);
|
|
10941
|
+
import { css as css22 } from "@emotion/react";
|
|
10942
|
+
var calloutContainer = css22`
|
|
10943
|
+
${functionalColors}
|
|
10737
10944
|
|
|
10738
10945
|
font-size: var(--fs-sm);
|
|
10739
10946
|
border-radius: var(--rounded-base);
|
|
10740
10947
|
padding: var(--spacing-base);
|
|
10741
10948
|
`;
|
|
10742
|
-
var calloutContainerCompact =
|
|
10949
|
+
var calloutContainerCompact = css22`
|
|
10743
10950
|
font-size: var(--fs-xs);
|
|
10744
10951
|
padding: var(--spacing-sm);
|
|
10745
10952
|
border-radius: 0 var(--rounded-base) var(--rounded-base) 0;
|
|
@@ -10751,32 +10958,32 @@ var calloutContainerCompact = css20`
|
|
|
10751
10958
|
--note-desc: var(--brand-secondary-1);
|
|
10752
10959
|
--success-desc: var(--brand-secondary-1);
|
|
10753
10960
|
`;
|
|
10754
|
-
var calloutInner =
|
|
10961
|
+
var calloutInner = css22`
|
|
10755
10962
|
display: flex;
|
|
10756
10963
|
gap: var(--spacing-sm);
|
|
10757
10964
|
`;
|
|
10758
|
-
var calloutBody =
|
|
10965
|
+
var calloutBody = css22`
|
|
10759
10966
|
display: flex;
|
|
10760
10967
|
flex-direction: column;
|
|
10761
10968
|
gap: var(--spacing-base);
|
|
10762
10969
|
`;
|
|
10763
|
-
var calloutBodyCompact =
|
|
10970
|
+
var calloutBodyCompact = css22`
|
|
10764
10971
|
gap: var(--spacing-xs);
|
|
10765
10972
|
`;
|
|
10766
|
-
var calloutIconWrap =
|
|
10973
|
+
var calloutIconWrap = css22`
|
|
10767
10974
|
flex-shrink: 0;
|
|
10768
10975
|
`;
|
|
10769
|
-
var calloutTitle =
|
|
10976
|
+
var calloutTitle = css22`
|
|
10770
10977
|
font-weight: var(--fw-bold);
|
|
10771
10978
|
`;
|
|
10772
|
-
var calloutIcon =
|
|
10979
|
+
var calloutIcon = css22`
|
|
10773
10980
|
width: 1.25rem;
|
|
10774
10981
|
height: 1.25rem;
|
|
10775
10982
|
`;
|
|
10776
10983
|
|
|
10777
10984
|
// src/components/Callout/CalloutIcons.tsx
|
|
10778
|
-
import { jsx as
|
|
10779
|
-
var InfoIcon = ({ ...props }) => /* @__PURE__ */
|
|
10985
|
+
import { jsx as jsx24 } from "@emotion/react/jsx-runtime";
|
|
10986
|
+
var InfoIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
10780
10987
|
"svg",
|
|
10781
10988
|
{
|
|
10782
10989
|
role: "img",
|
|
@@ -10787,7 +10994,7 @@ var InfoIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10787
10994
|
viewBox: "0 0 14 16",
|
|
10788
10995
|
fill: "currentColor",
|
|
10789
10996
|
...props,
|
|
10790
|
-
children: /* @__PURE__ */
|
|
10997
|
+
children: /* @__PURE__ */ jsx24(
|
|
10791
10998
|
"path",
|
|
10792
10999
|
{
|
|
10793
11000
|
fillRule: "evenodd",
|
|
@@ -10796,7 +11003,7 @@ var InfoIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10796
11003
|
)
|
|
10797
11004
|
}
|
|
10798
11005
|
);
|
|
10799
|
-
var DangerIcon = ({ ...props }) => /* @__PURE__ */
|
|
11006
|
+
var DangerIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
10800
11007
|
"svg",
|
|
10801
11008
|
{
|
|
10802
11009
|
role: "img",
|
|
@@ -10807,7 +11014,7 @@ var DangerIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10807
11014
|
viewBox: "0 0 12 16",
|
|
10808
11015
|
fill: "currentColor",
|
|
10809
11016
|
...props,
|
|
10810
|
-
children: /* @__PURE__ */
|
|
11017
|
+
children: /* @__PURE__ */ jsx24(
|
|
10811
11018
|
"path",
|
|
10812
11019
|
{
|
|
10813
11020
|
fillRule: "evenodd",
|
|
@@ -10816,7 +11023,7 @@ var DangerIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10816
11023
|
)
|
|
10817
11024
|
}
|
|
10818
11025
|
);
|
|
10819
|
-
var NoteIcon = ({ ...props }) => /* @__PURE__ */
|
|
11026
|
+
var NoteIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
10820
11027
|
"svg",
|
|
10821
11028
|
{
|
|
10822
11029
|
role: "img",
|
|
@@ -10827,7 +11034,7 @@ var NoteIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10827
11034
|
viewBox: "0 0 14 16",
|
|
10828
11035
|
fill: "currentColor",
|
|
10829
11036
|
...props,
|
|
10830
|
-
children: /* @__PURE__ */
|
|
11037
|
+
children: /* @__PURE__ */ jsx24(
|
|
10831
11038
|
"path",
|
|
10832
11039
|
{
|
|
10833
11040
|
fillRule: "evenodd",
|
|
@@ -10836,7 +11043,7 @@ var NoteIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10836
11043
|
)
|
|
10837
11044
|
}
|
|
10838
11045
|
);
|
|
10839
|
-
var TipIcon = ({ ...props }) => /* @__PURE__ */
|
|
11046
|
+
var TipIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
10840
11047
|
"svg",
|
|
10841
11048
|
{
|
|
10842
11049
|
role: "img",
|
|
@@ -10847,7 +11054,7 @@ var TipIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10847
11054
|
viewBox: "0 0 12 16",
|
|
10848
11055
|
fill: "currentColor",
|
|
10849
11056
|
...props,
|
|
10850
|
-
children: /* @__PURE__ */
|
|
11057
|
+
children: /* @__PURE__ */ jsx24(
|
|
10851
11058
|
"path",
|
|
10852
11059
|
{
|
|
10853
11060
|
fillRule: "evenodd",
|
|
@@ -10856,7 +11063,7 @@ var TipIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10856
11063
|
)
|
|
10857
11064
|
}
|
|
10858
11065
|
);
|
|
10859
|
-
var CautionIcon = ({ ...props }) => /* @__PURE__ */
|
|
11066
|
+
var CautionIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
10860
11067
|
"svg",
|
|
10861
11068
|
{
|
|
10862
11069
|
role: "img",
|
|
@@ -10867,7 +11074,7 @@ var CautionIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10867
11074
|
viewBox: "0 0 16 16",
|
|
10868
11075
|
fill: "currentColor",
|
|
10869
11076
|
...props,
|
|
10870
|
-
children: /* @__PURE__ */
|
|
11077
|
+
children: /* @__PURE__ */ jsx24(
|
|
10871
11078
|
"path",
|
|
10872
11079
|
{
|
|
10873
11080
|
fillRule: "evenodd",
|
|
@@ -10876,7 +11083,7 @@ var CautionIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10876
11083
|
)
|
|
10877
11084
|
}
|
|
10878
11085
|
);
|
|
10879
|
-
var SuccessIcon = ({ ...props }) => /* @__PURE__ */
|
|
11086
|
+
var SuccessIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
10880
11087
|
"svg",
|
|
10881
11088
|
{
|
|
10882
11089
|
role: "img",
|
|
@@ -10887,7 +11094,7 @@ var SuccessIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10887
11094
|
fill: "currentColor",
|
|
10888
11095
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10889
11096
|
...props,
|
|
10890
|
-
children: /* @__PURE__ */
|
|
11097
|
+
children: /* @__PURE__ */ jsx24(
|
|
10891
11098
|
"path",
|
|
10892
11099
|
{
|
|
10893
11100
|
fillRule: "evenodd",
|
|
@@ -10899,95 +11106,95 @@ var SuccessIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10899
11106
|
);
|
|
10900
11107
|
|
|
10901
11108
|
// src/components/Callout/Callout.tsx
|
|
10902
|
-
import { jsx as
|
|
11109
|
+
import { jsx as jsx25, jsxs as jsxs14 } from "@emotion/react/jsx-runtime";
|
|
10903
11110
|
var calloutTypeDataMap = {
|
|
10904
11111
|
caution: {
|
|
10905
11112
|
icon: CautionIcon,
|
|
10906
|
-
descriptionColor:
|
|
11113
|
+
descriptionColor: css23`
|
|
10907
11114
|
color: var(--caution-desc);
|
|
10908
11115
|
`,
|
|
10909
|
-
iconColor:
|
|
11116
|
+
iconColor: css23`
|
|
10910
11117
|
color: var(--caution-icon);
|
|
10911
11118
|
`,
|
|
10912
|
-
containerStyles:
|
|
11119
|
+
containerStyles: css23`
|
|
10913
11120
|
color: var(--caution-title);
|
|
10914
11121
|
background-color: var(--caution-container);
|
|
10915
11122
|
`
|
|
10916
11123
|
},
|
|
10917
11124
|
danger: {
|
|
10918
11125
|
icon: DangerIcon,
|
|
10919
|
-
descriptionColor:
|
|
11126
|
+
descriptionColor: css23`
|
|
10920
11127
|
color: var(--danger-desc);
|
|
10921
11128
|
`,
|
|
10922
|
-
iconColor:
|
|
11129
|
+
iconColor: css23`
|
|
10923
11130
|
color: var(--danger-icon);
|
|
10924
11131
|
`,
|
|
10925
|
-
containerStyles:
|
|
11132
|
+
containerStyles: css23`
|
|
10926
11133
|
color: var(--danger-title);
|
|
10927
11134
|
background-color: var(--danger-container);
|
|
10928
11135
|
`
|
|
10929
11136
|
},
|
|
10930
11137
|
error: {
|
|
10931
11138
|
icon: CautionIcon,
|
|
10932
|
-
descriptionColor:
|
|
11139
|
+
descriptionColor: css23`
|
|
10933
11140
|
color: var(--danger-desc);
|
|
10934
11141
|
`,
|
|
10935
|
-
iconColor:
|
|
11142
|
+
iconColor: css23`
|
|
10936
11143
|
color: var(--danger-icon);
|
|
10937
11144
|
`,
|
|
10938
|
-
containerStyles:
|
|
11145
|
+
containerStyles: css23`
|
|
10939
11146
|
color: var(--danger-title);
|
|
10940
11147
|
background-color: var(--danger-container);
|
|
10941
11148
|
`
|
|
10942
11149
|
},
|
|
10943
11150
|
info: {
|
|
10944
11151
|
icon: InfoIcon,
|
|
10945
|
-
descriptionColor:
|
|
11152
|
+
descriptionColor: css23`
|
|
10946
11153
|
color: var(--info-desc);
|
|
10947
11154
|
`,
|
|
10948
|
-
iconColor:
|
|
11155
|
+
iconColor: css23`
|
|
10949
11156
|
color: var(--info-icon);
|
|
10950
11157
|
`,
|
|
10951
|
-
containerStyles:
|
|
11158
|
+
containerStyles: css23`
|
|
10952
11159
|
color: var(--info-title);
|
|
10953
11160
|
background-color: var(--info-container);
|
|
10954
11161
|
`
|
|
10955
11162
|
},
|
|
10956
11163
|
note: {
|
|
10957
11164
|
icon: NoteIcon,
|
|
10958
|
-
descriptionColor:
|
|
11165
|
+
descriptionColor: css23`
|
|
10959
11166
|
color: var(--note-desc);
|
|
10960
11167
|
`,
|
|
10961
|
-
iconColor:
|
|
11168
|
+
iconColor: css23`
|
|
10962
11169
|
color: var(--note-icon);
|
|
10963
11170
|
`,
|
|
10964
|
-
containerStyles:
|
|
11171
|
+
containerStyles: css23`
|
|
10965
11172
|
color: var(--note-title);
|
|
10966
11173
|
background-color: var(--note-container);
|
|
10967
11174
|
`
|
|
10968
11175
|
},
|
|
10969
11176
|
success: {
|
|
10970
11177
|
icon: SuccessIcon,
|
|
10971
|
-
descriptionColor:
|
|
11178
|
+
descriptionColor: css23`
|
|
10972
11179
|
color: var(--success-desc);
|
|
10973
11180
|
`,
|
|
10974
|
-
iconColor:
|
|
11181
|
+
iconColor: css23`
|
|
10975
11182
|
color: var(--success-icon);
|
|
10976
11183
|
`,
|
|
10977
|
-
containerStyles:
|
|
11184
|
+
containerStyles: css23`
|
|
10978
11185
|
color: var(--success-title);
|
|
10979
11186
|
background-color: var(--success-container);
|
|
10980
11187
|
`
|
|
10981
11188
|
},
|
|
10982
11189
|
tip: {
|
|
10983
11190
|
icon: TipIcon,
|
|
10984
|
-
descriptionColor:
|
|
11191
|
+
descriptionColor: css23`
|
|
10985
11192
|
color: var(--success-desc);
|
|
10986
11193
|
`,
|
|
10987
|
-
iconColor:
|
|
11194
|
+
iconColor: css23`
|
|
10988
11195
|
color: var(--success-icon);
|
|
10989
11196
|
`,
|
|
10990
|
-
containerStyles:
|
|
11197
|
+
containerStyles: css23`
|
|
10991
11198
|
color: var(--success-title);
|
|
10992
11199
|
background-color: var(--success-container);
|
|
10993
11200
|
`
|
|
@@ -10999,7 +11206,7 @@ var Callout = ({ type = "info", compact = false, title, children, className }) =
|
|
|
10999
11206
|
return null;
|
|
11000
11207
|
}
|
|
11001
11208
|
const Icon2 = calloutTypeData.icon;
|
|
11002
|
-
return /* @__PURE__ */
|
|
11209
|
+
return /* @__PURE__ */ jsx25(
|
|
11003
11210
|
"div",
|
|
11004
11211
|
{
|
|
11005
11212
|
"data-testid": "sdk-ui-callout",
|
|
@@ -11010,11 +11217,11 @@ var Callout = ({ type = "info", compact = false, title, children, className }) =
|
|
|
11010
11217
|
typeof className === "object" ? className : ""
|
|
11011
11218
|
],
|
|
11012
11219
|
className: `${typeof className === "string" ? className : ""}`,
|
|
11013
|
-
children: /* @__PURE__ */
|
|
11014
|
-
compact ? null : /* @__PURE__ */
|
|
11015
|
-
/* @__PURE__ */
|
|
11016
|
-
title ? /* @__PURE__ */
|
|
11017
|
-
children ? /* @__PURE__ */
|
|
11220
|
+
children: /* @__PURE__ */ jsxs14("div", { css: calloutInner, children: [
|
|
11221
|
+
compact ? null : /* @__PURE__ */ jsx25("div", { css: calloutIconWrap, children: /* @__PURE__ */ jsx25(Icon2, { css: [calloutIcon, calloutTypeData.iconColor] }) }),
|
|
11222
|
+
/* @__PURE__ */ jsxs14("div", { css: [calloutBody, compact ? calloutBodyCompact : void 0], children: [
|
|
11223
|
+
title ? /* @__PURE__ */ jsx25("div", { css: [calloutTitle], children: title }) : null,
|
|
11224
|
+
children ? /* @__PURE__ */ jsx25("div", { css: [calloutTypeData.descriptionColor], children }) : null
|
|
11018
11225
|
] })
|
|
11019
11226
|
] })
|
|
11020
11227
|
}
|
|
@@ -11025,19 +11232,19 @@ var Callout = ({ type = "info", compact = false, title, children, className }) =
|
|
|
11025
11232
|
import { CgMoreAlt } from "react-icons/cg";
|
|
11026
11233
|
|
|
11027
11234
|
// src/components/Card/Card.styles.ts
|
|
11028
|
-
import { css as
|
|
11029
|
-
var CardContainer =
|
|
11235
|
+
import { css as css24 } from "@emotion/react";
|
|
11236
|
+
var CardContainer = css24`
|
|
11030
11237
|
background: var(--white);
|
|
11031
11238
|
border: 1px solid var(--gray-300);
|
|
11032
11239
|
border-radius: var(--rounded-base);
|
|
11033
11240
|
padding: var(--spacing-md);
|
|
11034
11241
|
position: relative;
|
|
11035
11242
|
`;
|
|
11036
|
-
var CardTitle =
|
|
11243
|
+
var CardTitle = css24`
|
|
11037
11244
|
margin: 0 0 var(--spacing-base);
|
|
11038
11245
|
padding-right: var(--spacing-lg);
|
|
11039
11246
|
`;
|
|
11040
|
-
var CardMenu =
|
|
11247
|
+
var CardMenu = css24`
|
|
11041
11248
|
background: transparent;
|
|
11042
11249
|
border: none;
|
|
11043
11250
|
padding: 0;
|
|
@@ -11047,16 +11254,16 @@ var CardMenu = css22`
|
|
|
11047
11254
|
`;
|
|
11048
11255
|
|
|
11049
11256
|
// src/components/Card/Card.tsx
|
|
11050
|
-
import { jsx as
|
|
11257
|
+
import { jsx as jsx26, jsxs as jsxs15 } from "@emotion/react/jsx-runtime";
|
|
11051
11258
|
var Card = ({ title, menuItems, children, disabled, menuButtonTestId, ...props }) => {
|
|
11052
11259
|
const normalizeTitle = (title == null ? void 0 : title.includes("_")) ? title.replaceAll("_", " ") : title;
|
|
11053
|
-
return /* @__PURE__ */
|
|
11054
|
-
title ? /* @__PURE__ */
|
|
11055
|
-
menuItems ? /* @__PURE__ */
|
|
11260
|
+
return /* @__PURE__ */ jsxs15("div", { css: CardContainer, ...props, children: [
|
|
11261
|
+
title ? /* @__PURE__ */ jsx26(Heading, { level: 3, css: CardTitle, children: normalizeTitle }) : null,
|
|
11262
|
+
menuItems ? /* @__PURE__ */ jsx26(
|
|
11056
11263
|
Menu,
|
|
11057
11264
|
{
|
|
11058
11265
|
menuLabel: "More options",
|
|
11059
|
-
menuTrigger: /* @__PURE__ */
|
|
11266
|
+
menuTrigger: /* @__PURE__ */ jsx26(
|
|
11060
11267
|
"button",
|
|
11061
11268
|
{
|
|
11062
11269
|
"aria-label": "More options",
|
|
@@ -11064,7 +11271,7 @@ var Card = ({ title, menuItems, children, disabled, menuButtonTestId, ...props }
|
|
|
11064
11271
|
disabled,
|
|
11065
11272
|
css: CardMenu,
|
|
11066
11273
|
"data-test-id": menuButtonTestId != null ? menuButtonTestId : "list-card-menu",
|
|
11067
|
-
children: /* @__PURE__ */
|
|
11274
|
+
children: /* @__PURE__ */ jsx26(Icon, { icon: CgMoreAlt, iconColor: "currentColor", size: 32 })
|
|
11068
11275
|
}
|
|
11069
11276
|
),
|
|
11070
11277
|
children: menuItems
|
|
@@ -11075,11 +11282,11 @@ var Card = ({ title, menuItems, children, disabled, menuButtonTestId, ...props }
|
|
|
11075
11282
|
};
|
|
11076
11283
|
|
|
11077
11284
|
// src/components/Card/CardContainer.styles.ts
|
|
11078
|
-
import { css as
|
|
11079
|
-
var CardContainerWrapper = (bgColor) =>
|
|
11285
|
+
import { css as css25 } from "@emotion/react";
|
|
11286
|
+
var CardContainerWrapper = (bgColor) => css25`
|
|
11080
11287
|
background: ${bgColor === "gray" ? `var(--gray-50)` : `var(--white)`};
|
|
11081
11288
|
`;
|
|
11082
|
-
var CardContainerInner = ({ padding, withLastColumn }) =>
|
|
11289
|
+
var CardContainerInner = ({ padding, withLastColumn }) => css25`
|
|
11083
11290
|
display: grid;
|
|
11084
11291
|
gap: var(--spacing-lg);
|
|
11085
11292
|
max-width: var(--site-width);
|
|
@@ -11093,7 +11300,7 @@ var CardContainerInner = ({ padding, withLastColumn }) => css23`
|
|
|
11093
11300
|
`;
|
|
11094
11301
|
|
|
11095
11302
|
// src/components/Card/CardContainer.tsx
|
|
11096
|
-
import { jsx as
|
|
11303
|
+
import { jsx as jsx27 } from "@emotion/react/jsx-runtime";
|
|
11097
11304
|
var CardContainer2 = ({
|
|
11098
11305
|
bgColor = "white",
|
|
11099
11306
|
padding = true,
|
|
@@ -11101,12 +11308,12 @@ var CardContainer2 = ({
|
|
|
11101
11308
|
children,
|
|
11102
11309
|
...props
|
|
11103
11310
|
}) => {
|
|
11104
|
-
return /* @__PURE__ */
|
|
11311
|
+
return /* @__PURE__ */ jsx27("div", { css: CardContainerWrapper(bgColor), ...props, children: /* @__PURE__ */ jsx27("div", { css: CardContainerInner({ padding, withLastColumn }), children }) });
|
|
11105
11312
|
};
|
|
11106
11313
|
|
|
11107
11314
|
// src/components/Counter/Counter.styles.ts
|
|
11108
|
-
import { css as
|
|
11109
|
-
var counterContainer =
|
|
11315
|
+
import { css as css26 } from "@emotion/react";
|
|
11316
|
+
var counterContainer = css26`
|
|
11110
11317
|
align-items: center;
|
|
11111
11318
|
border-radius: var(--rounded-full);
|
|
11112
11319
|
border: 1px solid var(--gray-300);
|
|
@@ -11118,16 +11325,16 @@ var counterContainer = css24`
|
|
|
11118
11325
|
width: var(--spacing-base);
|
|
11119
11326
|
height: var(--spacing-base);
|
|
11120
11327
|
`;
|
|
11121
|
-
var counterZeroValue =
|
|
11328
|
+
var counterZeroValue = css26`
|
|
11122
11329
|
background: var(--brand-secondary-1);
|
|
11123
11330
|
border-radius: var(--rounded-full);
|
|
11124
11331
|
width: 2px;
|
|
11125
11332
|
height: 2px;
|
|
11126
11333
|
`;
|
|
11127
|
-
var counterTripleValue =
|
|
11334
|
+
var counterTripleValue = css26`
|
|
11128
11335
|
position: relative;
|
|
11129
11336
|
`;
|
|
11130
|
-
var counterIcon =
|
|
11337
|
+
var counterIcon = css26`
|
|
11131
11338
|
border-radius: var(--rounded-full);
|
|
11132
11339
|
background: var(--white);
|
|
11133
11340
|
color: var(--brand-secondary-3);
|
|
@@ -11138,21 +11345,21 @@ var counterIcon = css24`
|
|
|
11138
11345
|
`;
|
|
11139
11346
|
|
|
11140
11347
|
// src/components/Counter/Counter.tsx
|
|
11141
|
-
import { jsx as
|
|
11348
|
+
import { jsx as jsx28, jsxs as jsxs16 } from "@emotion/react/jsx-runtime";
|
|
11142
11349
|
var Counter = ({ count }) => {
|
|
11143
11350
|
if (typeof count === "undefined") {
|
|
11144
11351
|
return null;
|
|
11145
11352
|
}
|
|
11146
|
-
const isTripleDigits = count > 99 ? /* @__PURE__ */
|
|
11353
|
+
const isTripleDigits = count > 99 ? /* @__PURE__ */ jsxs16("span", { css: counterTripleValue, title: `${count}`, children: [
|
|
11147
11354
|
"99",
|
|
11148
|
-
/* @__PURE__ */
|
|
11355
|
+
/* @__PURE__ */ jsx28(Icon, { icon: "math-plus", iconColor: "currentColor", size: "0.5rem", css: counterIcon })
|
|
11149
11356
|
] }) : count;
|
|
11150
|
-
const formatCount = count === 0 ? /* @__PURE__ */
|
|
11151
|
-
return /* @__PURE__ */
|
|
11357
|
+
const formatCount = count === 0 ? /* @__PURE__ */ jsx28("span", { css: counterZeroValue, title: `${count}` }) : isTripleDigits;
|
|
11358
|
+
return /* @__PURE__ */ jsx28("div", { css: counterContainer, children: formatCount });
|
|
11152
11359
|
};
|
|
11153
11360
|
|
|
11154
11361
|
// src/components/DashedBox/DashedBox.styles.ts
|
|
11155
|
-
import { css as
|
|
11362
|
+
import { css as css27 } from "@emotion/react";
|
|
11156
11363
|
var minHeight = (prop) => {
|
|
11157
11364
|
const values = {
|
|
11158
11365
|
auto: "auto",
|
|
@@ -11171,7 +11378,7 @@ var alignItemsConvert = (props) => {
|
|
|
11171
11378
|
};
|
|
11172
11379
|
return alignment[props];
|
|
11173
11380
|
};
|
|
11174
|
-
var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) =>
|
|
11381
|
+
var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) => css27`
|
|
11175
11382
|
align-items: ${alignItemsConvert(textAlign)};
|
|
11176
11383
|
border: 2px dashed var(--gray-300);
|
|
11177
11384
|
border-radius: var(--rounded-base);
|
|
@@ -11186,7 +11393,7 @@ var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) => css25`
|
|
|
11186
11393
|
`;
|
|
11187
11394
|
|
|
11188
11395
|
// src/components/DashedBox/DashedBox.tsx
|
|
11189
|
-
import { jsx as
|
|
11396
|
+
import { jsx as jsx29 } from "@emotion/react/jsx-runtime";
|
|
11190
11397
|
var DashedBox = ({
|
|
11191
11398
|
bgColor = "transparent",
|
|
11192
11399
|
textAlign = "center",
|
|
@@ -11194,15 +11401,15 @@ var DashedBox = ({
|
|
|
11194
11401
|
children,
|
|
11195
11402
|
...props
|
|
11196
11403
|
}) => {
|
|
11197
|
-
return /* @__PURE__ */
|
|
11404
|
+
return /* @__PURE__ */ jsx29("div", { css: DashedBoxContainer({ bgColor, boxHeight, textAlign }), ...props, children });
|
|
11198
11405
|
};
|
|
11199
11406
|
|
|
11200
11407
|
// src/components/Details/Details.tsx
|
|
11201
11408
|
import * as React8 from "react";
|
|
11202
11409
|
|
|
11203
11410
|
// src/components/Details/Details.styles.ts
|
|
11204
|
-
import { css as
|
|
11205
|
-
var details =
|
|
11411
|
+
import { css as css28 } from "@emotion/react";
|
|
11412
|
+
var details = css28`
|
|
11206
11413
|
cursor: pointer;
|
|
11207
11414
|
&[open] {
|
|
11208
11415
|
& > summary svg {
|
|
@@ -11210,11 +11417,11 @@ var details = css26`
|
|
|
11210
11417
|
}
|
|
11211
11418
|
}
|
|
11212
11419
|
`;
|
|
11213
|
-
var detailsContent =
|
|
11420
|
+
var detailsContent = css28`
|
|
11214
11421
|
animation: ${fadeInRtl} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
11215
11422
|
will-change: height;
|
|
11216
11423
|
`;
|
|
11217
|
-
var summary =
|
|
11424
|
+
var summary = css28`
|
|
11218
11425
|
align-items: center;
|
|
11219
11426
|
display: grid;
|
|
11220
11427
|
grid-template-columns: 1.25rem 1fr;
|
|
@@ -11227,16 +11434,16 @@ var summary = css26`
|
|
|
11227
11434
|
display: none;
|
|
11228
11435
|
}
|
|
11229
11436
|
`;
|
|
11230
|
-
var summaryIcon =
|
|
11437
|
+
var summaryIcon = css28`
|
|
11231
11438
|
transition: rotate var(--duration-fast) var(--timing-ease-out);
|
|
11232
11439
|
rotate: -90deg;
|
|
11233
11440
|
`;
|
|
11234
|
-
var summaryIconVisiblyHidden =
|
|
11441
|
+
var summaryIconVisiblyHidden = css28`
|
|
11235
11442
|
visibility: hidden;
|
|
11236
11443
|
`;
|
|
11237
11444
|
|
|
11238
11445
|
// src/components/Details/Details.tsx
|
|
11239
|
-
import { jsx as
|
|
11446
|
+
import { jsx as jsx30, jsxs as jsxs17 } from "@emotion/react/jsx-runtime";
|
|
11240
11447
|
var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props }) => {
|
|
11241
11448
|
const detailsRef = React8.useRef(null);
|
|
11242
11449
|
const [open, setOpen] = React8.useState(isOpenByDefault);
|
|
@@ -11256,9 +11463,9 @@ var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props
|
|
|
11256
11463
|
return (_a2 = detailsRef.current) == null ? void 0 : _a2.removeEventListener("toggle", toggleEvent);
|
|
11257
11464
|
};
|
|
11258
11465
|
}, [detailsRef]);
|
|
11259
|
-
return /* @__PURE__ */
|
|
11260
|
-
/* @__PURE__ */
|
|
11261
|
-
/* @__PURE__ */
|
|
11466
|
+
return /* @__PURE__ */ jsxs17("details", { "data-testid": "details", css: details, open, ref: detailsRef, ...props, children: [
|
|
11467
|
+
/* @__PURE__ */ jsxs17("summary", { "data-testid": "summary", css: summary, children: [
|
|
11468
|
+
/* @__PURE__ */ jsx30(
|
|
11262
11469
|
Icon,
|
|
11263
11470
|
{
|
|
11264
11471
|
css: [!children ? summaryIconVisiblyHidden : void 0, summaryIcon],
|
|
@@ -11269,7 +11476,7 @@ var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props
|
|
|
11269
11476
|
),
|
|
11270
11477
|
summary2
|
|
11271
11478
|
] }),
|
|
11272
|
-
open ? /* @__PURE__ */
|
|
11479
|
+
open ? /* @__PURE__ */ jsx30("div", { "data-testid": "details-content", css: detailsContent, children }) : null
|
|
11273
11480
|
] });
|
|
11274
11481
|
};
|
|
11275
11482
|
|
|
@@ -11278,8 +11485,8 @@ import React11, { useEffect as useEffect5, useMemo, useRef as useRef2 } from "re
|
|
|
11278
11485
|
import { CgChevronRight } from "react-icons/cg";
|
|
11279
11486
|
|
|
11280
11487
|
// src/components/Drawer/Drawer.styles.ts
|
|
11281
|
-
import { css as
|
|
11282
|
-
var drawerStyles = (bgColor = "var(--white)") =>
|
|
11488
|
+
import { css as css29, keyframes as keyframes2 } from "@emotion/react";
|
|
11489
|
+
var drawerStyles = (bgColor = "var(--white)") => css29`
|
|
11283
11490
|
background-color: ${bgColor};
|
|
11284
11491
|
display: flex;
|
|
11285
11492
|
gap: var(--spacing-sm);
|
|
@@ -11289,7 +11496,7 @@ var drawerStyles = (bgColor = "var(--white)") => css27`
|
|
|
11289
11496
|
padding-top: var(--spacing-sm);
|
|
11290
11497
|
height: 100%;
|
|
11291
11498
|
`;
|
|
11292
|
-
var drawerCloseButtonStyles =
|
|
11499
|
+
var drawerCloseButtonStyles = css29`
|
|
11293
11500
|
align-self: flex-end;
|
|
11294
11501
|
background: transparent;
|
|
11295
11502
|
border: none;
|
|
@@ -11297,17 +11504,17 @@ var drawerCloseButtonStyles = css27`
|
|
|
11297
11504
|
padding: var(--spacing-xs);
|
|
11298
11505
|
margin-right: var(--spacing-sm);
|
|
11299
11506
|
`;
|
|
11300
|
-
var drawerHeaderStyles =
|
|
11507
|
+
var drawerHeaderStyles = css29`
|
|
11301
11508
|
font-size: var(--fs-lg);
|
|
11302
11509
|
font-weight: var(--fw-bold);
|
|
11303
11510
|
padding-inline: var(--spacing-base);
|
|
11304
11511
|
`;
|
|
11305
|
-
var drawerRendererStyles =
|
|
11512
|
+
var drawerRendererStyles = css29`
|
|
11306
11513
|
inset: 0;
|
|
11307
11514
|
overflow: hidden;
|
|
11308
11515
|
z-index: 40;
|
|
11309
11516
|
`;
|
|
11310
|
-
var drawerInnerStyles =
|
|
11517
|
+
var drawerInnerStyles = css29`
|
|
11311
11518
|
height: 100%;
|
|
11312
11519
|
padding: 0 var(--spacing-base) var(--spacing-base);
|
|
11313
11520
|
overflow: auto;
|
|
@@ -11328,7 +11535,7 @@ var slideDrawerIn = keyframes2`
|
|
|
11328
11535
|
transform: translate(0);
|
|
11329
11536
|
}
|
|
11330
11537
|
`;
|
|
11331
|
-
var drawerWrapperStyles =
|
|
11538
|
+
var drawerWrapperStyles = css29`
|
|
11332
11539
|
position: absolute;
|
|
11333
11540
|
inset-block: 0;
|
|
11334
11541
|
right: 0;
|
|
@@ -11339,7 +11546,7 @@ var drawerWrapperStyles = css27`
|
|
|
11339
11546
|
transition: width var(--duration-fast) ease-out;
|
|
11340
11547
|
box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
|
|
11341
11548
|
`;
|
|
11342
|
-
var drawerWrapperOverlayStyles =
|
|
11549
|
+
var drawerWrapperOverlayStyles = css29`
|
|
11343
11550
|
position: absolute;
|
|
11344
11551
|
inset: 0;
|
|
11345
11552
|
background: rgba(31, 43, 52, 0.4);
|
|
@@ -11348,7 +11555,7 @@ var drawerWrapperOverlayStyles = css27`
|
|
|
11348
11555
|
|
|
11349
11556
|
// src/components/Drawer/DrawerProvider.tsx
|
|
11350
11557
|
import { createContext as createContext3, useCallback, useContext as useContext4, useState as useState4 } from "react";
|
|
11351
|
-
import { jsx as
|
|
11558
|
+
import { jsx as jsx31 } from "@emotion/react/jsx-runtime";
|
|
11352
11559
|
var DrawerContext = createContext3({
|
|
11353
11560
|
drawersRegistry: [],
|
|
11354
11561
|
registerDrawer: () => {
|
|
@@ -11397,7 +11604,7 @@ var DrawerProvider = ({ children }) => {
|
|
|
11397
11604
|
},
|
|
11398
11605
|
[setDrawersRegistry]
|
|
11399
11606
|
);
|
|
11400
|
-
return /* @__PURE__ */
|
|
11607
|
+
return /* @__PURE__ */ jsx31(DrawerContext.Provider, { value: { drawersRegistry, registerDrawer, unregisterDrawer }, children });
|
|
11401
11608
|
};
|
|
11402
11609
|
var useDrawer = () => {
|
|
11403
11610
|
return useContext4(DrawerContext);
|
|
@@ -11418,7 +11625,7 @@ function isEqualDrawerInstance(a, b) {
|
|
|
11418
11625
|
|
|
11419
11626
|
// src/components/Drawer/DrawerRenderer.tsx
|
|
11420
11627
|
import { createContext as createContext4, useContext as useContext5 } from "react";
|
|
11421
|
-
import { Fragment as Fragment4, jsx as
|
|
11628
|
+
import { Fragment as Fragment4, jsx as jsx32, jsxs as jsxs18 } from "@emotion/react/jsx-runtime";
|
|
11422
11629
|
var maxLayeringInPx = 64;
|
|
11423
11630
|
var idealDistanceBetweenLayersInPx = 16;
|
|
11424
11631
|
var CurrentDrawerRendererContext = createContext4({});
|
|
@@ -11438,7 +11645,7 @@ var DrawerRenderer = ({
|
|
|
11438
11645
|
if (drawersToRender.length === 0) {
|
|
11439
11646
|
return null;
|
|
11440
11647
|
}
|
|
11441
|
-
return /* @__PURE__ */
|
|
11648
|
+
return /* @__PURE__ */ jsx32(CurrentDrawerRendererContext.Provider, { value: { stackId }, children: /* @__PURE__ */ jsx32(
|
|
11442
11649
|
"div",
|
|
11443
11650
|
{
|
|
11444
11651
|
css: [
|
|
@@ -11447,7 +11654,7 @@ var DrawerRenderer = ({
|
|
|
11447
11654
|
position === "sticky" ? { height: "100%", marginTop: "-100%" } : void 0
|
|
11448
11655
|
],
|
|
11449
11656
|
...otherProps,
|
|
11450
|
-
children: drawersToRender.map(({ component, id, stackId: stackId2, onRequestClose }, index) => /* @__PURE__ */
|
|
11657
|
+
children: drawersToRender.map(({ component, id, stackId: stackId2, onRequestClose }, index) => /* @__PURE__ */ jsx32(
|
|
11451
11658
|
DrawerWrapper,
|
|
11452
11659
|
{
|
|
11453
11660
|
index,
|
|
@@ -11478,22 +11685,22 @@ var DrawerWrapper = ({
|
|
|
11478
11685
|
offsetInPx = Math.round(maxLayeringInPx * relativeLevel);
|
|
11479
11686
|
}
|
|
11480
11687
|
const calculatedWidth = `calc(${width} - ${offsetInPx}px)`;
|
|
11481
|
-
return /* @__PURE__ */
|
|
11482
|
-
/* @__PURE__ */
|
|
11483
|
-
/* @__PURE__ */
|
|
11688
|
+
return /* @__PURE__ */ jsxs18(Fragment4, { children: [
|
|
11689
|
+
/* @__PURE__ */ jsx32("div", { css: drawerWrapperOverlayStyles, onClick: onOverlayClick }),
|
|
11690
|
+
/* @__PURE__ */ jsx32("div", { css: [drawerWrapperStyles, { width: calculatedWidth, minWidth, maxWidth }], children })
|
|
11484
11691
|
] });
|
|
11485
11692
|
};
|
|
11486
11693
|
|
|
11487
11694
|
// src/components/Drawer/Drawer.tsx
|
|
11488
|
-
import { jsx as
|
|
11695
|
+
import { jsx as jsx33, jsxs as jsxs19 } from "@emotion/react/jsx-runtime";
|
|
11489
11696
|
var defaultSackId = "_default";
|
|
11490
11697
|
var Drawer = React11.forwardRef(
|
|
11491
11698
|
({ width, minWidth, maxWidth, position, ...drawerProps }, ref) => {
|
|
11492
11699
|
const drawerRendererProps = { width, minWidth, maxWidth, position };
|
|
11493
11700
|
const { stackId: inheritedStackId } = useCurrentDrawerRenderer();
|
|
11494
|
-
return inheritedStackId ? /* @__PURE__ */
|
|
11495
|
-
/* @__PURE__ */
|
|
11496
|
-
/* @__PURE__ */
|
|
11701
|
+
return inheritedStackId ? /* @__PURE__ */ jsx33(DrawerInner, { ref, ...drawerProps, stackId: inheritedStackId }) : drawerProps.stackId ? /* @__PURE__ */ jsx33(DrawerInner, { ref, ...drawerProps }) : /* @__PURE__ */ jsxs19(DrawerProvider, { children: [
|
|
11702
|
+
/* @__PURE__ */ jsx33(DrawerInner, { ref, ...drawerProps }),
|
|
11703
|
+
/* @__PURE__ */ jsx33(DrawerRenderer, { stackId: defaultSackId, ...drawerRendererProps })
|
|
11497
11704
|
] });
|
|
11498
11705
|
}
|
|
11499
11706
|
);
|
|
@@ -11511,7 +11718,7 @@ var DrawerInner = ({
|
|
|
11511
11718
|
const closeButtonRef = useRef2(null);
|
|
11512
11719
|
const component = useMemo(() => {
|
|
11513
11720
|
const headerId = `dialog-header-${stackId}-${id}`;
|
|
11514
|
-
return /* @__PURE__ */
|
|
11721
|
+
return /* @__PURE__ */ jsxs19(
|
|
11515
11722
|
"div",
|
|
11516
11723
|
{
|
|
11517
11724
|
ref,
|
|
@@ -11522,7 +11729,7 @@ var DrawerInner = ({
|
|
|
11522
11729
|
css: drawerStyles(bgColor),
|
|
11523
11730
|
"data-test-id": "side-dialog",
|
|
11524
11731
|
children: [
|
|
11525
|
-
/* @__PURE__ */
|
|
11732
|
+
/* @__PURE__ */ jsx33(
|
|
11526
11733
|
Button,
|
|
11527
11734
|
{
|
|
11528
11735
|
ref: closeButtonRef,
|
|
@@ -11531,11 +11738,11 @@ var DrawerInner = ({
|
|
|
11531
11738
|
css: drawerCloseButtonStyles,
|
|
11532
11739
|
title: "Close dialog",
|
|
11533
11740
|
buttonType: "ghost",
|
|
11534
|
-
children: /* @__PURE__ */
|
|
11741
|
+
children: /* @__PURE__ */ jsx33(Icon, { icon: CgChevronRight, iconColor: "gray", size: "1.5rem" })
|
|
11535
11742
|
}
|
|
11536
11743
|
),
|
|
11537
|
-
header ? /* @__PURE__ */
|
|
11538
|
-
/* @__PURE__ */
|
|
11744
|
+
header ? /* @__PURE__ */ jsx33("div", { id: headerId, css: drawerHeaderStyles, children: header }) : null,
|
|
11745
|
+
/* @__PURE__ */ jsx33("div", { css: drawerInnerStyles, children })
|
|
11539
11746
|
]
|
|
11540
11747
|
}
|
|
11541
11748
|
);
|
|
@@ -11564,8 +11771,8 @@ var DrawerInner = ({
|
|
|
11564
11771
|
};
|
|
11565
11772
|
|
|
11566
11773
|
// src/components/Input/styles/CaptionText.styles.ts
|
|
11567
|
-
import { css as
|
|
11568
|
-
var CaptionText = (dynamicSize) =>
|
|
11774
|
+
import { css as css30 } from "@emotion/react";
|
|
11775
|
+
var CaptionText = (dynamicSize) => css30`
|
|
11569
11776
|
color: var(--gray-500);
|
|
11570
11777
|
display: block;
|
|
11571
11778
|
font-size: ${dynamicSize ? "clamp(var(--fs-xs), 87.5%,var(--fs-sm))" : "var(--fs-sm)"};
|
|
@@ -11574,29 +11781,29 @@ var CaptionText = (dynamicSize) => css28`
|
|
|
11574
11781
|
`;
|
|
11575
11782
|
|
|
11576
11783
|
// src/components/Input/Caption.tsx
|
|
11577
|
-
import { jsx as
|
|
11784
|
+
import { jsx as jsx34 } from "@emotion/react/jsx-runtime";
|
|
11578
11785
|
var Caption = ({ children, testId, dynamicSize = false, ...props }) => {
|
|
11579
|
-
return /* @__PURE__ */
|
|
11786
|
+
return /* @__PURE__ */ jsx34("small", { css: CaptionText(dynamicSize), "data-test-id": testId, ...props, children });
|
|
11580
11787
|
};
|
|
11581
11788
|
|
|
11582
11789
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
11583
11790
|
import { forwardRef as forwardRef4 } from "react";
|
|
11584
11791
|
|
|
11585
11792
|
// src/components/Input/styles/CheckboxWithInfo.styles.ts
|
|
11586
|
-
import { css as
|
|
11587
|
-
var CheckboxWithInfoContainer =
|
|
11793
|
+
import { css as css31 } from "@emotion/react";
|
|
11794
|
+
var CheckboxWithInfoContainer = css31`
|
|
11588
11795
|
align-items: center;
|
|
11589
11796
|
display: flex;
|
|
11590
11797
|
gap: var(--spacing-sm);
|
|
11591
11798
|
`;
|
|
11592
|
-
var CheckboxWithInfoLabel =
|
|
11799
|
+
var CheckboxWithInfoLabel = css31`
|
|
11593
11800
|
align-items: center;
|
|
11594
11801
|
color: var(--gray-500);
|
|
11595
11802
|
display: flex;
|
|
11596
11803
|
font-size: var(--fs-xs);
|
|
11597
11804
|
gap: var(--spacing-sm);
|
|
11598
11805
|
`;
|
|
11599
|
-
var CheckboxWithInfoInput =
|
|
11806
|
+
var CheckboxWithInfoInput = css31`
|
|
11600
11807
|
appearance: none;
|
|
11601
11808
|
border: 1px solid var(--gray-300);
|
|
11602
11809
|
background: var(--white) no-repeat bottom center;
|
|
@@ -11629,7 +11836,7 @@ var CheckboxWithInfoInput = css29`
|
|
|
11629
11836
|
border-color: var(--gray-200);
|
|
11630
11837
|
}
|
|
11631
11838
|
`;
|
|
11632
|
-
var InfoDialogContainer =
|
|
11839
|
+
var InfoDialogContainer = css31`
|
|
11633
11840
|
position: relative;
|
|
11634
11841
|
|
|
11635
11842
|
&:hover {
|
|
@@ -11638,7 +11845,7 @@ var InfoDialogContainer = css29`
|
|
|
11638
11845
|
}
|
|
11639
11846
|
}
|
|
11640
11847
|
`;
|
|
11641
|
-
var InfoDialogMessage =
|
|
11848
|
+
var InfoDialogMessage = css31`
|
|
11642
11849
|
background: var(--white);
|
|
11643
11850
|
box-shadow: var(--shadow-base);
|
|
11644
11851
|
border-radius: var(--rounded-md);
|
|
@@ -11655,21 +11862,21 @@ var InfoDialogMessage = css29`
|
|
|
11655
11862
|
`;
|
|
11656
11863
|
|
|
11657
11864
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
11658
|
-
import { jsx as
|
|
11865
|
+
import { jsx as jsx35, jsxs as jsxs20 } from "@emotion/react/jsx-runtime";
|
|
11659
11866
|
var InfoDialog = ({ message }) => {
|
|
11660
|
-
return /* @__PURE__ */
|
|
11661
|
-
/* @__PURE__ */
|
|
11662
|
-
/* @__PURE__ */
|
|
11867
|
+
return /* @__PURE__ */ jsxs20("div", { "data-testid": "info-dialog", css: InfoDialogContainer, children: [
|
|
11868
|
+
/* @__PURE__ */ jsx35(Icon, { icon: "info", iconColor: "green", size: "0.9rem" }),
|
|
11869
|
+
/* @__PURE__ */ jsx35("div", { role: "paragraph", css: InfoDialogMessage, className: "info-message", children: message })
|
|
11663
11870
|
] });
|
|
11664
11871
|
};
|
|
11665
11872
|
var CheckboxWithInfo = forwardRef4(
|
|
11666
11873
|
({ label, name, info, ...props }, ref) => {
|
|
11667
|
-
return /* @__PURE__ */
|
|
11668
|
-
/* @__PURE__ */
|
|
11669
|
-
/* @__PURE__ */
|
|
11670
|
-
/* @__PURE__ */
|
|
11874
|
+
return /* @__PURE__ */ jsxs20("div", { css: CheckboxWithInfoContainer, children: [
|
|
11875
|
+
/* @__PURE__ */ jsxs20("label", { css: CheckboxWithInfoLabel, children: [
|
|
11876
|
+
/* @__PURE__ */ jsx35("input", { type: "checkbox", name, ref, css: CheckboxWithInfoInput, ...props }),
|
|
11877
|
+
/* @__PURE__ */ jsx35("span", { children: label })
|
|
11671
11878
|
] }),
|
|
11672
|
-
info ? /* @__PURE__ */
|
|
11879
|
+
info ? /* @__PURE__ */ jsx35(InfoDialog, { message: info }) : null
|
|
11673
11880
|
] });
|
|
11674
11881
|
}
|
|
11675
11882
|
);
|
|
@@ -11678,8 +11885,8 @@ var CheckboxWithInfo = forwardRef4(
|
|
|
11678
11885
|
import { MdWarning } from "react-icons/md";
|
|
11679
11886
|
|
|
11680
11887
|
// src/components/Input/styles/ErrorMessage.styles.ts
|
|
11681
|
-
import { css as
|
|
11682
|
-
var ErrorText =
|
|
11888
|
+
import { css as css32 } from "@emotion/react";
|
|
11889
|
+
var ErrorText = css32`
|
|
11683
11890
|
align-items: center;
|
|
11684
11891
|
color: var(--brand-secondary-5);
|
|
11685
11892
|
display: flex;
|
|
@@ -11687,10 +11894,10 @@ var ErrorText = css30`
|
|
|
11687
11894
|
`;
|
|
11688
11895
|
|
|
11689
11896
|
// src/components/Input/ErrorMessage.tsx
|
|
11690
|
-
import { jsx as
|
|
11897
|
+
import { jsx as jsx36, jsxs as jsxs21 } from "@emotion/react/jsx-runtime";
|
|
11691
11898
|
var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
11692
|
-
return message ? /* @__PURE__ */
|
|
11693
|
-
/* @__PURE__ */
|
|
11899
|
+
return message ? /* @__PURE__ */ jsxs21("span", { role: "alert", css: ErrorText, "data-test-id": testId, ...otherProps, children: [
|
|
11900
|
+
/* @__PURE__ */ jsx36(Icon, { icon: MdWarning, size: 16, iconColor: "currentColor" }),
|
|
11694
11901
|
message
|
|
11695
11902
|
] }) : null;
|
|
11696
11903
|
};
|
|
@@ -11699,9 +11906,9 @@ var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
|
11699
11906
|
import * as React12 from "react";
|
|
11700
11907
|
|
|
11701
11908
|
// src/components/Input/styles/Fieldset.styles.ts
|
|
11702
|
-
import { css as
|
|
11909
|
+
import { css as css33 } from "@emotion/react";
|
|
11703
11910
|
function fieldsetContainer(invert) {
|
|
11704
|
-
const base =
|
|
11911
|
+
const base = css33`
|
|
11705
11912
|
border-radius: var(--rounded-base);
|
|
11706
11913
|
border: 1px solid var(--gray-300);
|
|
11707
11914
|
|
|
@@ -11713,18 +11920,18 @@ function fieldsetContainer(invert) {
|
|
|
11713
11920
|
}
|
|
11714
11921
|
`;
|
|
11715
11922
|
return invert ? [
|
|
11716
|
-
|
|
11923
|
+
css33`
|
|
11717
11924
|
background: white;
|
|
11718
11925
|
`,
|
|
11719
11926
|
base
|
|
11720
11927
|
] : [
|
|
11721
|
-
|
|
11928
|
+
css33`
|
|
11722
11929
|
background: var(--gray-50);
|
|
11723
11930
|
`,
|
|
11724
11931
|
base
|
|
11725
11932
|
];
|
|
11726
11933
|
}
|
|
11727
|
-
var fieldsetLegend =
|
|
11934
|
+
var fieldsetLegend = css33`
|
|
11728
11935
|
align-items: center;
|
|
11729
11936
|
color: var(--brand-secondary-1);
|
|
11730
11937
|
display: flex;
|
|
@@ -11734,28 +11941,55 @@ var fieldsetLegend = css31`
|
|
|
11734
11941
|
margin-bottom: var(--spacing-base);
|
|
11735
11942
|
float: left; // allows the legend to be inside the fieldset and not sat on the border line
|
|
11736
11943
|
`;
|
|
11737
|
-
var fieldsetBody =
|
|
11944
|
+
var fieldsetBody = css33`
|
|
11738
11945
|
clear: left;
|
|
11739
11946
|
`;
|
|
11740
11947
|
|
|
11741
11948
|
// src/components/Input/Fieldset.tsx
|
|
11742
|
-
import { jsx as
|
|
11949
|
+
import { jsx as jsx37, jsxs as jsxs22 } from "@emotion/react/jsx-runtime";
|
|
11743
11950
|
var Fieldset = React12.forwardRef(
|
|
11744
11951
|
({ legend, disabled, children, invert, ...props }, ref) => {
|
|
11745
|
-
return /* @__PURE__ */
|
|
11952
|
+
return /* @__PURE__ */ jsxs22("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled, ...props, children: [
|
|
11746
11953
|
legend,
|
|
11747
|
-
/* @__PURE__ */
|
|
11954
|
+
/* @__PURE__ */ jsx37("div", { css: fieldsetBody, children })
|
|
11748
11955
|
] });
|
|
11749
11956
|
}
|
|
11750
11957
|
);
|
|
11751
11958
|
|
|
11959
|
+
// src/components/Input/InfoMessage.tsx
|
|
11960
|
+
import { MdInfoOutline } from "react-icons/md";
|
|
11961
|
+
|
|
11962
|
+
// src/components/Input/styles/InfoMessage.styles.tsx
|
|
11963
|
+
import { css as css34 } from "@emotion/react";
|
|
11964
|
+
var InfoText = css34`
|
|
11965
|
+
--info-desc: rgb(29, 78, 216);
|
|
11966
|
+
--info-icon: rgb(96, 165, 250);
|
|
11967
|
+
|
|
11968
|
+
align-items: center;
|
|
11969
|
+
color: var(--info-desc);
|
|
11970
|
+
display: flex;
|
|
11971
|
+
gap: var(--spacing-sm);
|
|
11972
|
+
`;
|
|
11973
|
+
var InfoIcon2 = css34`
|
|
11974
|
+
color: var(--info-icon);
|
|
11975
|
+
`;
|
|
11976
|
+
|
|
11977
|
+
// src/components/Input/InfoMessage.tsx
|
|
11978
|
+
import { jsx as jsx38, jsxs as jsxs23 } from "@emotion/react/jsx-runtime";
|
|
11979
|
+
var InfoMessage = ({ message, testId, ...props }) => {
|
|
11980
|
+
return message ? /* @__PURE__ */ jsxs23("span", { role: "status", css: InfoText, "data-test-id": testId, ...props, children: [
|
|
11981
|
+
/* @__PURE__ */ jsx38(Icon, { css: InfoIcon2, icon: MdInfoOutline, size: "1rem", iconColor: "currentColor" }),
|
|
11982
|
+
message
|
|
11983
|
+
] }) : null;
|
|
11984
|
+
};
|
|
11985
|
+
|
|
11752
11986
|
// src/components/Input/Input.tsx
|
|
11753
11987
|
import * as React13 from "react";
|
|
11754
11988
|
|
|
11755
11989
|
// src/components/Input/Label.tsx
|
|
11756
|
-
import { jsx as
|
|
11990
|
+
import { jsx as jsx39 } from "@emotion/react/jsx-runtime";
|
|
11757
11991
|
var Label = ({ children, className, testId, ...props }) => {
|
|
11758
|
-
return /* @__PURE__ */
|
|
11992
|
+
return /* @__PURE__ */ jsx39(
|
|
11759
11993
|
"label",
|
|
11760
11994
|
{
|
|
11761
11995
|
css: [labelText, typeof className === "object" ? className : void 0],
|
|
@@ -11771,28 +12005,28 @@ var Label = ({ children, className, testId, ...props }) => {
|
|
|
11771
12005
|
import { MdWarning as MdWarning2 } from "react-icons/md";
|
|
11772
12006
|
|
|
11773
12007
|
// src/components/Input/styles/WarningMessage.styles.tsx
|
|
11774
|
-
import { css as
|
|
11775
|
-
var WarningText =
|
|
12008
|
+
import { css as css35 } from "@emotion/react";
|
|
12009
|
+
var WarningText = css35`
|
|
11776
12010
|
align-items: center;
|
|
11777
12011
|
color: var(--alert-text);
|
|
11778
12012
|
display: flex;
|
|
11779
12013
|
gap: var(--spacing-sm);
|
|
11780
12014
|
`;
|
|
11781
|
-
var WarningIcon =
|
|
12015
|
+
var WarningIcon = css35`
|
|
11782
12016
|
color: var(--alert);
|
|
11783
12017
|
`;
|
|
11784
12018
|
|
|
11785
12019
|
// src/components/Input/WarningMessage.tsx
|
|
11786
|
-
import { jsx as
|
|
12020
|
+
import { jsx as jsx40, jsxs as jsxs24 } from "@emotion/react/jsx-runtime";
|
|
11787
12021
|
var WarningMessage = ({ message, testId, ...props }) => {
|
|
11788
|
-
return message ? /* @__PURE__ */
|
|
11789
|
-
/* @__PURE__ */
|
|
12022
|
+
return message ? /* @__PURE__ */ jsxs24("span", { role: "status", css: WarningText, "data-test-id": testId, ...props, children: [
|
|
12023
|
+
/* @__PURE__ */ jsx40(Icon, { css: WarningIcon, icon: MdWarning2, size: "1rem", iconColor: "currentColor" }),
|
|
11790
12024
|
message
|
|
11791
12025
|
] }) : null;
|
|
11792
12026
|
};
|
|
11793
12027
|
|
|
11794
12028
|
// src/components/Input/Input.tsx
|
|
11795
|
-
import { jsx as
|
|
12029
|
+
import { jsx as jsx41, jsxs as jsxs25 } from "@emotion/react/jsx-runtime";
|
|
11796
12030
|
var Input = React13.forwardRef(
|
|
11797
12031
|
({
|
|
11798
12032
|
label,
|
|
@@ -11811,8 +12045,8 @@ var Input = React13.forwardRef(
|
|
|
11811
12045
|
classNameLabel,
|
|
11812
12046
|
...props
|
|
11813
12047
|
}, ref) => {
|
|
11814
|
-
return /* @__PURE__ */
|
|
11815
|
-
showLabel ? /* @__PURE__ */
|
|
12048
|
+
return /* @__PURE__ */ jsxs25("div", { css: inputContainer, "data-test-id": containerTestId ? containerTestId : "container-input-field", children: [
|
|
12049
|
+
showLabel ? /* @__PURE__ */ jsx41(
|
|
11816
12050
|
Label,
|
|
11817
12051
|
{
|
|
11818
12052
|
htmlFor: id,
|
|
@@ -11822,13 +12056,13 @@ var Input = React13.forwardRef(
|
|
|
11822
12056
|
children: label
|
|
11823
12057
|
}
|
|
11824
12058
|
) : null,
|
|
11825
|
-
/* @__PURE__ */
|
|
12059
|
+
/* @__PURE__ */ jsxs25(
|
|
11826
12060
|
"div",
|
|
11827
12061
|
{
|
|
11828
12062
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
11829
12063
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
11830
12064
|
children: [
|
|
11831
|
-
/* @__PURE__ */
|
|
12065
|
+
/* @__PURE__ */ jsx41(
|
|
11832
12066
|
"input",
|
|
11833
12067
|
{
|
|
11834
12068
|
id,
|
|
@@ -11844,23 +12078,23 @@ var Input = React13.forwardRef(
|
|
|
11844
12078
|
ref
|
|
11845
12079
|
}
|
|
11846
12080
|
),
|
|
11847
|
-
icon ? /* @__PURE__ */
|
|
12081
|
+
icon ? /* @__PURE__ */ jsx41("div", { css: inputIcon, children: icon }) : null
|
|
11848
12082
|
]
|
|
11849
12083
|
}
|
|
11850
12084
|
),
|
|
11851
|
-
caption ? /* @__PURE__ */
|
|
11852
|
-
errorMessage ? /* @__PURE__ */
|
|
11853
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
12085
|
+
caption ? /* @__PURE__ */ jsx41(Caption, { testId: captionTestId, children: caption }) : null,
|
|
12086
|
+
errorMessage ? /* @__PURE__ */ jsx41(ErrorMessage, { message: errorMessage, testId: errorTestId }) : null,
|
|
12087
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx41(WarningMessage, { message: warningMessage }) : null
|
|
11854
12088
|
] });
|
|
11855
12089
|
}
|
|
11856
12090
|
);
|
|
11857
12091
|
|
|
11858
12092
|
// src/components/Input/InputComboBox.tsx
|
|
11859
12093
|
import Select from "react-select";
|
|
11860
|
-
import { jsx as
|
|
12094
|
+
import { jsx as jsx42 } from "@emotion/react/jsx-runtime";
|
|
11861
12095
|
function InputComboBox(props) {
|
|
11862
12096
|
var _a;
|
|
11863
|
-
return /* @__PURE__ */
|
|
12097
|
+
return /* @__PURE__ */ jsx42(
|
|
11864
12098
|
Select,
|
|
11865
12099
|
{
|
|
11866
12100
|
...props,
|
|
@@ -11989,17 +12223,17 @@ function InputComboBox(props) {
|
|
|
11989
12223
|
}
|
|
11990
12224
|
|
|
11991
12225
|
// src/components/Input/InputInlineSelect.tsx
|
|
11992
|
-
import { css as
|
|
12226
|
+
import { css as css37 } from "@emotion/react";
|
|
11993
12227
|
import { useRef as useRef3, useState as useState5 } from "react";
|
|
11994
12228
|
import { CgChevronDown as CgChevronDown2 } from "react-icons/cg";
|
|
11995
12229
|
|
|
11996
12230
|
// src/components/Input/styles/InputInlineSelect.styles.ts
|
|
11997
|
-
import { css as
|
|
11998
|
-
var inlineSelectContainer =
|
|
12231
|
+
import { css as css36 } from "@emotion/react";
|
|
12232
|
+
var inlineSelectContainer = css36`
|
|
11999
12233
|
margin-inline: auto;
|
|
12000
12234
|
max-width: fit-content;
|
|
12001
12235
|
`;
|
|
12002
|
-
var inlineSelectBtn =
|
|
12236
|
+
var inlineSelectBtn = css36`
|
|
12003
12237
|
align-items: center;
|
|
12004
12238
|
background: var(--brand-secondary-3);
|
|
12005
12239
|
border: 2px solid var(--brand-secondary-3);
|
|
@@ -12023,7 +12257,7 @@ var inlineSelectBtn = css33`
|
|
|
12023
12257
|
outline: 2px solid var(--brand-secondary-1);
|
|
12024
12258
|
}
|
|
12025
12259
|
`;
|
|
12026
|
-
var inlineSelectMenu =
|
|
12260
|
+
var inlineSelectMenu = css36`
|
|
12027
12261
|
background: var(--white);
|
|
12028
12262
|
border: 1px solid var(--brand-secondary-3);
|
|
12029
12263
|
border-top: none;
|
|
@@ -12034,7 +12268,7 @@ var inlineSelectMenu = css33`
|
|
|
12034
12268
|
inset: auto 0;
|
|
12035
12269
|
transform: translateY(-0.2rem);
|
|
12036
12270
|
`;
|
|
12037
|
-
var inlineSelectBtnOptions =
|
|
12271
|
+
var inlineSelectBtnOptions = css36`
|
|
12038
12272
|
cursor: pointer;
|
|
12039
12273
|
display: block;
|
|
12040
12274
|
font-size: var(--fs-sm);
|
|
@@ -12050,7 +12284,7 @@ var inlineSelectBtnOptions = css33`
|
|
|
12050
12284
|
background: var(--gray-50);
|
|
12051
12285
|
}
|
|
12052
12286
|
`;
|
|
12053
|
-
var inlineSelectMenuClosed =
|
|
12287
|
+
var inlineSelectMenuClosed = css36`
|
|
12054
12288
|
position: absolute;
|
|
12055
12289
|
overflow: hidden;
|
|
12056
12290
|
height: 1px;
|
|
@@ -12060,7 +12294,7 @@ var inlineSelectMenuClosed = css33`
|
|
|
12060
12294
|
`;
|
|
12061
12295
|
|
|
12062
12296
|
// src/components/Input/InputInlineSelect.tsx
|
|
12063
|
-
import { jsx as
|
|
12297
|
+
import { jsx as jsx43, jsxs as jsxs26 } from "@emotion/react/jsx-runtime";
|
|
12064
12298
|
var InputInlineSelect = ({
|
|
12065
12299
|
classNameContainer,
|
|
12066
12300
|
options,
|
|
@@ -12074,17 +12308,17 @@ var InputInlineSelect = ({
|
|
|
12074
12308
|
const divRef = useRef3(null);
|
|
12075
12309
|
useOutsideClick(divRef, () => setMenuVisible(false));
|
|
12076
12310
|
const selected = options.find((option) => option.value === value);
|
|
12077
|
-
return /* @__PURE__ */
|
|
12311
|
+
return /* @__PURE__ */ jsxs26(
|
|
12078
12312
|
"div",
|
|
12079
12313
|
{
|
|
12080
12314
|
ref: divRef,
|
|
12081
|
-
css: !classNameContainer ? inlineSelectContainer :
|
|
12315
|
+
css: !classNameContainer ? inlineSelectContainer : css37`
|
|
12082
12316
|
max-width: fit-content;
|
|
12083
12317
|
${typeof classNameContainer === "object" ? classNameContainer : void 0}
|
|
12084
12318
|
`,
|
|
12085
12319
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
12086
12320
|
children: [
|
|
12087
|
-
/* @__PURE__ */
|
|
12321
|
+
/* @__PURE__ */ jsxs26(
|
|
12088
12322
|
"button",
|
|
12089
12323
|
{
|
|
12090
12324
|
type: "button",
|
|
@@ -12098,18 +12332,18 @@ var InputInlineSelect = ({
|
|
|
12098
12332
|
disabled,
|
|
12099
12333
|
...props,
|
|
12100
12334
|
children: [
|
|
12101
|
-
/* @__PURE__ */
|
|
12102
|
-
disabled ? null : /* @__PURE__ */
|
|
12335
|
+
/* @__PURE__ */ jsx43("span", { children: (_a = selected == null ? void 0 : selected.label) != null ? _a : value }),
|
|
12336
|
+
disabled ? null : /* @__PURE__ */ jsx43(Icon, { icon: CgChevronDown2, iconColor: "currentColor", size: 24 })
|
|
12103
12337
|
]
|
|
12104
12338
|
}
|
|
12105
12339
|
),
|
|
12106
|
-
/* @__PURE__ */
|
|
12340
|
+
/* @__PURE__ */ jsx43(
|
|
12107
12341
|
"div",
|
|
12108
12342
|
{
|
|
12109
12343
|
id: `and-or-${props.id}`,
|
|
12110
12344
|
css: [inlineSelectMenu, menuVisible ? void 0 : inlineSelectMenuClosed],
|
|
12111
12345
|
"aria-hidden": !menuVisible,
|
|
12112
|
-
children: options.map((opt) => /* @__PURE__ */
|
|
12346
|
+
children: options.map((opt) => /* @__PURE__ */ jsx43(
|
|
12113
12347
|
"button",
|
|
12114
12348
|
{
|
|
12115
12349
|
type: "button",
|
|
@@ -12130,7 +12364,7 @@ var InputInlineSelect = ({
|
|
|
12130
12364
|
};
|
|
12131
12365
|
|
|
12132
12366
|
// src/components/Input/InputKeywordSearch.tsx
|
|
12133
|
-
import { jsx as
|
|
12367
|
+
import { jsx as jsx44 } from "@emotion/react/jsx-runtime";
|
|
12134
12368
|
var InputKeywordSearch = ({
|
|
12135
12369
|
onSearchTextChanged,
|
|
12136
12370
|
disabled = false,
|
|
@@ -12149,7 +12383,7 @@ var InputKeywordSearch = ({
|
|
|
12149
12383
|
e.preventDefault();
|
|
12150
12384
|
}
|
|
12151
12385
|
};
|
|
12152
|
-
return /* @__PURE__ */
|
|
12386
|
+
return /* @__PURE__ */ jsx44(
|
|
12153
12387
|
Input,
|
|
12154
12388
|
{
|
|
12155
12389
|
type: "text",
|
|
@@ -12157,7 +12391,7 @@ var InputKeywordSearch = ({
|
|
|
12157
12391
|
placeholder,
|
|
12158
12392
|
showLabel: false,
|
|
12159
12393
|
value,
|
|
12160
|
-
icon: value ? /* @__PURE__ */
|
|
12394
|
+
icon: value ? /* @__PURE__ */ jsx44("button", { css: inputSearchCloseBtn, onClick: onClear, children: /* @__PURE__ */ jsx44(Icon, { icon: "close", iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ jsx44(Icon, { icon: "search", iconColor: "gray", size: "1rem" }),
|
|
12161
12395
|
onChange: handleSearchTextChanged,
|
|
12162
12396
|
onKeyPress: preventSubmitOnField,
|
|
12163
12397
|
disabled,
|
|
@@ -12168,7 +12402,7 @@ var InputKeywordSearch = ({
|
|
|
12168
12402
|
};
|
|
12169
12403
|
|
|
12170
12404
|
// src/components/Input/InputSelect.tsx
|
|
12171
|
-
import { Fragment as Fragment5, jsx as
|
|
12405
|
+
import { Fragment as Fragment5, jsx as jsx45, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
|
|
12172
12406
|
var InputSelect = ({
|
|
12173
12407
|
label,
|
|
12174
12408
|
defaultOption,
|
|
@@ -12184,13 +12418,13 @@ var InputSelect = ({
|
|
|
12184
12418
|
classNameLabel,
|
|
12185
12419
|
...props
|
|
12186
12420
|
}) => {
|
|
12187
|
-
return /* @__PURE__ */
|
|
12421
|
+
return /* @__PURE__ */ jsxs27(
|
|
12188
12422
|
"div",
|
|
12189
12423
|
{
|
|
12190
12424
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
12191
12425
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
12192
12426
|
children: [
|
|
12193
|
-
showLabel ? /* @__PURE__ */
|
|
12427
|
+
showLabel ? /* @__PURE__ */ jsx45(Fragment5, { children: /* @__PURE__ */ jsxs27(
|
|
12194
12428
|
Label,
|
|
12195
12429
|
{
|
|
12196
12430
|
htmlFor: props.id,
|
|
@@ -12202,7 +12436,7 @@ var InputSelect = ({
|
|
|
12202
12436
|
]
|
|
12203
12437
|
}
|
|
12204
12438
|
) }) : null,
|
|
12205
|
-
/* @__PURE__ */
|
|
12439
|
+
/* @__PURE__ */ jsxs27(
|
|
12206
12440
|
"select",
|
|
12207
12441
|
{
|
|
12208
12442
|
title: label,
|
|
@@ -12217,21 +12451,21 @@ var InputSelect = ({
|
|
|
12217
12451
|
className: typeof classNameControl === "string" ? classNameControl : "",
|
|
12218
12452
|
...props,
|
|
12219
12453
|
children: [
|
|
12220
|
-
defaultOption ? /* @__PURE__ */
|
|
12221
|
-
options.map((opt, index) => /* @__PURE__ */
|
|
12454
|
+
defaultOption ? /* @__PURE__ */ jsx45("option", { value: "", children: defaultOption }) : null,
|
|
12455
|
+
options.map((opt, index) => /* @__PURE__ */ jsx45("option", { value: opt.label, ...opt }, index))
|
|
12222
12456
|
]
|
|
12223
12457
|
}
|
|
12224
12458
|
),
|
|
12225
|
-
caption ? /* @__PURE__ */
|
|
12226
|
-
errorMessage ? /* @__PURE__ */
|
|
12227
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
12459
|
+
caption ? /* @__PURE__ */ jsx45(Caption, { children: caption }) : null,
|
|
12460
|
+
errorMessage ? /* @__PURE__ */ jsx45(ErrorMessage, { message: errorMessage }) : null,
|
|
12461
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx45(WarningMessage, { message: warningMessage }) : null
|
|
12228
12462
|
]
|
|
12229
12463
|
}
|
|
12230
12464
|
);
|
|
12231
12465
|
};
|
|
12232
12466
|
|
|
12233
12467
|
// src/components/Input/InputToggle.tsx
|
|
12234
|
-
import { jsx as
|
|
12468
|
+
import { jsx as jsx46, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
|
|
12235
12469
|
var InputToggle = ({
|
|
12236
12470
|
label,
|
|
12237
12471
|
type,
|
|
@@ -12245,25 +12479,25 @@ var InputToggle = ({
|
|
|
12245
12479
|
fontWeight = "medium",
|
|
12246
12480
|
...props
|
|
12247
12481
|
}) => {
|
|
12248
|
-
return /* @__PURE__ */
|
|
12249
|
-
/* @__PURE__ */
|
|
12250
|
-
/* @__PURE__ */
|
|
12251
|
-
caption || errorMessage ? /* @__PURE__ */
|
|
12252
|
-
caption ? /* @__PURE__ */
|
|
12253
|
-
errorMessage ? /* @__PURE__ */
|
|
12254
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
12482
|
+
return /* @__PURE__ */ jsxs28(Label, { css: [inputToggleLabel, disabled ? inputDisabled : void 0], "data-test-id": testId, children: [
|
|
12483
|
+
/* @__PURE__ */ jsx46("input", { type, css: toggleInput, checked, name, disabled, ...props }),
|
|
12484
|
+
/* @__PURE__ */ jsx46("span", { css: inlineLabel(fontWeight), dangerouslySetInnerHTML: { __html: label } }),
|
|
12485
|
+
caption || errorMessage ? /* @__PURE__ */ jsxs28("span", { css: inputToggleMessageContainer, children: [
|
|
12486
|
+
caption ? /* @__PURE__ */ jsx46(Caption, { children: caption }) : null,
|
|
12487
|
+
errorMessage ? /* @__PURE__ */ jsx46(ErrorMessage, { message: errorMessage }) : null,
|
|
12488
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx46(WarningMessage, { message: warningMessage }) : null
|
|
12255
12489
|
] }) : null
|
|
12256
12490
|
] });
|
|
12257
12491
|
};
|
|
12258
12492
|
|
|
12259
12493
|
// src/components/Input/Legend.tsx
|
|
12260
|
-
import { jsx as
|
|
12494
|
+
import { jsx as jsx47 } from "@emotion/react/jsx-runtime";
|
|
12261
12495
|
var Legend = ({ children }) => {
|
|
12262
|
-
return /* @__PURE__ */
|
|
12496
|
+
return /* @__PURE__ */ jsx47("legend", { css: fieldsetLegend, children });
|
|
12263
12497
|
};
|
|
12264
12498
|
|
|
12265
12499
|
// src/components/Input/Textarea.tsx
|
|
12266
|
-
import { Fragment as Fragment6, jsx as
|
|
12500
|
+
import { Fragment as Fragment6, jsx as jsx48, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
|
|
12267
12501
|
var Textarea = ({
|
|
12268
12502
|
label,
|
|
12269
12503
|
icon,
|
|
@@ -12274,10 +12508,10 @@ var Textarea = ({
|
|
|
12274
12508
|
warningMessage,
|
|
12275
12509
|
...props
|
|
12276
12510
|
}) => {
|
|
12277
|
-
return /* @__PURE__ */
|
|
12278
|
-
showLabel ? /* @__PURE__ */
|
|
12279
|
-
/* @__PURE__ */
|
|
12280
|
-
/* @__PURE__ */
|
|
12511
|
+
return /* @__PURE__ */ jsxs29(Fragment6, { children: [
|
|
12512
|
+
showLabel ? /* @__PURE__ */ jsx48("label", { htmlFor: id, css: [labelText], children: label }) : null,
|
|
12513
|
+
/* @__PURE__ */ jsxs29("div", { css: [inputContainer], children: [
|
|
12514
|
+
/* @__PURE__ */ jsx48(
|
|
12281
12515
|
"textarea",
|
|
12282
12516
|
{
|
|
12283
12517
|
id,
|
|
@@ -12286,17 +12520,17 @@ var Textarea = ({
|
|
|
12286
12520
|
...props
|
|
12287
12521
|
}
|
|
12288
12522
|
),
|
|
12289
|
-
icon ? /* @__PURE__ */
|
|
12523
|
+
icon ? /* @__PURE__ */ jsx48("div", { css: inputIcon, children: icon }) : null
|
|
12290
12524
|
] }),
|
|
12291
|
-
caption ? /* @__PURE__ */
|
|
12292
|
-
errorMessage ? /* @__PURE__ */
|
|
12293
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
12525
|
+
caption ? /* @__PURE__ */ jsx48(Caption, { children: caption }) : null,
|
|
12526
|
+
errorMessage ? /* @__PURE__ */ jsx48(ErrorMessage, { message: errorMessage }) : null,
|
|
12527
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx48(WarningMessage, { message: warningMessage }) : null
|
|
12294
12528
|
] });
|
|
12295
12529
|
};
|
|
12296
12530
|
|
|
12297
12531
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
12298
12532
|
import MonacoEditor from "@monaco-editor/react";
|
|
12299
|
-
import { jsx as
|
|
12533
|
+
import { jsx as jsx49 } from "@emotion/react/jsx-runtime";
|
|
12300
12534
|
var minEditorHeightPx = 150;
|
|
12301
12535
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
12302
12536
|
let effectiveHeight = height;
|
|
@@ -12306,7 +12540,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
12306
12540
|
if (typeof effectiveHeight === "number" && effectiveHeight < minEditorHeightPx) {
|
|
12307
12541
|
effectiveHeight = minEditorHeightPx;
|
|
12308
12542
|
}
|
|
12309
|
-
return /* @__PURE__ */
|
|
12543
|
+
return /* @__PURE__ */ jsx49(
|
|
12310
12544
|
MonacoEditor,
|
|
12311
12545
|
{
|
|
12312
12546
|
height: effectiveHeight,
|
|
@@ -12343,8 +12577,8 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
12343
12577
|
};
|
|
12344
12578
|
|
|
12345
12579
|
// src/components/Layout/styles/Container.styles.ts
|
|
12346
|
-
import { css as
|
|
12347
|
-
var Container = ({ backgroundColor, border, rounded, padding, margin }) =>
|
|
12580
|
+
import { css as css38 } from "@emotion/react";
|
|
12581
|
+
var Container = ({ backgroundColor, border, rounded, padding, margin }) => css38`
|
|
12348
12582
|
background: var(--${backgroundColor});
|
|
12349
12583
|
${border ? "border: 1px solid var(--gray-300)" : void 0};
|
|
12350
12584
|
${rounded ? `border-radius: var(--${rounded})` : void 0};
|
|
@@ -12353,7 +12587,7 @@ var Container = ({ backgroundColor, border, rounded, padding, margin }) => css35
|
|
|
12353
12587
|
`;
|
|
12354
12588
|
|
|
12355
12589
|
// src/components/Layout/Container.tsx
|
|
12356
|
-
import { jsx as
|
|
12590
|
+
import { jsx as jsx50 } from "@emotion/react/jsx-runtime";
|
|
12357
12591
|
var Container2 = ({
|
|
12358
12592
|
tag = "div",
|
|
12359
12593
|
backgroundColor = "white",
|
|
@@ -12365,7 +12599,7 @@ var Container2 = ({
|
|
|
12365
12599
|
...props
|
|
12366
12600
|
}) => {
|
|
12367
12601
|
const Tag = tag;
|
|
12368
|
-
return /* @__PURE__ */
|
|
12602
|
+
return /* @__PURE__ */ jsx50(
|
|
12369
12603
|
Tag,
|
|
12370
12604
|
{
|
|
12371
12605
|
css: Container({
|
|
@@ -12382,54 +12616,54 @@ var Container2 = ({
|
|
|
12382
12616
|
};
|
|
12383
12617
|
|
|
12384
12618
|
// src/components/Layout/styles/VerticalRhythm.styles.ts
|
|
12385
|
-
import { css as
|
|
12386
|
-
var VerticalRhythmContainer = (size) =>
|
|
12619
|
+
import { css as css39 } from "@emotion/react";
|
|
12620
|
+
var VerticalRhythmContainer = (size) => css39`
|
|
12387
12621
|
display: flex;
|
|
12388
12622
|
flex-direction: column;
|
|
12389
12623
|
gap: var(--spacing-${size});
|
|
12390
12624
|
`;
|
|
12391
12625
|
|
|
12392
12626
|
// src/components/Layout/VerticalRhythm.tsx
|
|
12393
|
-
import { jsx as
|
|
12627
|
+
import { jsx as jsx51 } from "@emotion/react/jsx-runtime";
|
|
12394
12628
|
var VerticalRhythm = ({ tag = "div", gap = "base", children, ...props }) => {
|
|
12395
12629
|
const Tag = tag;
|
|
12396
|
-
return /* @__PURE__ */
|
|
12630
|
+
return /* @__PURE__ */ jsx51(Tag, { css: VerticalRhythmContainer(gap), ...props, children });
|
|
12397
12631
|
};
|
|
12398
12632
|
|
|
12399
12633
|
// src/components/LimitsBar/LimitsBar.styles.ts
|
|
12400
|
-
import { css as
|
|
12401
|
-
var LimitsBarContainer =
|
|
12634
|
+
import { css as css40 } from "@emotion/react";
|
|
12635
|
+
var LimitsBarContainer = css40`
|
|
12402
12636
|
margin-block: var(--spacing-sm);
|
|
12403
12637
|
`;
|
|
12404
|
-
var LimitsBarProgressBar =
|
|
12638
|
+
var LimitsBarProgressBar = css40`
|
|
12405
12639
|
background: var(--gray-100);
|
|
12406
12640
|
margin-top: var(--spacing-sm);
|
|
12407
12641
|
position: relative;
|
|
12408
12642
|
overflow: hidden;
|
|
12409
12643
|
height: 0.25rem;
|
|
12410
12644
|
`;
|
|
12411
|
-
var LimitsBarProgressBarLine =
|
|
12645
|
+
var LimitsBarProgressBarLine = css40`
|
|
12412
12646
|
position: absolute;
|
|
12413
12647
|
inset: 0;
|
|
12414
12648
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
12415
12649
|
`;
|
|
12416
|
-
var LimitsBarLabelContainer =
|
|
12650
|
+
var LimitsBarLabelContainer = css40`
|
|
12417
12651
|
display: flex;
|
|
12418
12652
|
justify-content: space-between;
|
|
12419
12653
|
font-weight: var(--fw-bold);
|
|
12420
12654
|
`;
|
|
12421
|
-
var LimitsBarLabel =
|
|
12655
|
+
var LimitsBarLabel = css40`
|
|
12422
12656
|
font-size: var(--fs-baase);
|
|
12423
12657
|
`;
|
|
12424
|
-
var LimitsBarBgColor = (statusColor) =>
|
|
12658
|
+
var LimitsBarBgColor = (statusColor) => css40`
|
|
12425
12659
|
background: ${statusColor};
|
|
12426
12660
|
`;
|
|
12427
|
-
var LimitsBarTextColor = (statusColor) =>
|
|
12661
|
+
var LimitsBarTextColor = (statusColor) => css40`
|
|
12428
12662
|
color: ${statusColor};
|
|
12429
12663
|
`;
|
|
12430
12664
|
|
|
12431
12665
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
12432
|
-
import { jsx as
|
|
12666
|
+
import { jsx as jsx52, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
|
|
12433
12667
|
var LimitsBar = ({ current, max, label }) => {
|
|
12434
12668
|
const maxPercentage = 100;
|
|
12435
12669
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -12440,16 +12674,16 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
12440
12674
|
danger: "var(--brand-secondary-5)"
|
|
12441
12675
|
};
|
|
12442
12676
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
12443
|
-
return /* @__PURE__ */
|
|
12444
|
-
/* @__PURE__ */
|
|
12445
|
-
/* @__PURE__ */
|
|
12446
|
-
/* @__PURE__ */
|
|
12677
|
+
return /* @__PURE__ */ jsxs30("div", { css: LimitsBarContainer, children: [
|
|
12678
|
+
/* @__PURE__ */ jsxs30("div", { css: LimitsBarLabelContainer, children: [
|
|
12679
|
+
/* @__PURE__ */ jsx52("span", { css: LimitsBarLabel, children: label }),
|
|
12680
|
+
/* @__PURE__ */ jsxs30("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
12447
12681
|
current,
|
|
12448
12682
|
" of ",
|
|
12449
12683
|
max
|
|
12450
12684
|
] })
|
|
12451
12685
|
] }),
|
|
12452
|
-
/* @__PURE__ */
|
|
12686
|
+
/* @__PURE__ */ jsx52(
|
|
12453
12687
|
"div",
|
|
12454
12688
|
{
|
|
12455
12689
|
role: "progressbar",
|
|
@@ -12458,7 +12692,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
12458
12692
|
"aria-valuemax": max,
|
|
12459
12693
|
"aria-valuetext": `${current} of ${max}`,
|
|
12460
12694
|
css: LimitsBarProgressBar,
|
|
12461
|
-
children: /* @__PURE__ */
|
|
12695
|
+
children: /* @__PURE__ */ jsx52(
|
|
12462
12696
|
"span",
|
|
12463
12697
|
{
|
|
12464
12698
|
role: "presentation",
|
|
@@ -12474,8 +12708,8 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
12474
12708
|
};
|
|
12475
12709
|
|
|
12476
12710
|
// src/components/LinkList/LinkList.styles.ts
|
|
12477
|
-
import { css as
|
|
12478
|
-
var LinkListContainer =
|
|
12711
|
+
import { css as css41 } from "@emotion/react";
|
|
12712
|
+
var LinkListContainer = css41`
|
|
12479
12713
|
padding: var(--spacing-md) var(--spacing-lg) var(--spacing-2xl);
|
|
12480
12714
|
${mq("sm")} {
|
|
12481
12715
|
grid-column: last-col / span 1;
|
|
@@ -12484,23 +12718,23 @@ var LinkListContainer = css38`
|
|
|
12484
12718
|
`;
|
|
12485
12719
|
|
|
12486
12720
|
// src/components/LinkList/LinkList.tsx
|
|
12487
|
-
import { jsx as
|
|
12721
|
+
import { jsx as jsx53, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
|
|
12488
12722
|
var LinkList = ({ title, children, ...props }) => {
|
|
12489
|
-
return /* @__PURE__ */
|
|
12490
|
-
/* @__PURE__ */
|
|
12723
|
+
return /* @__PURE__ */ jsxs31("div", { css: LinkListContainer, ...props, children: [
|
|
12724
|
+
/* @__PURE__ */ jsx53(Heading, { level: 3, children: title }),
|
|
12491
12725
|
children
|
|
12492
12726
|
] });
|
|
12493
12727
|
};
|
|
12494
12728
|
|
|
12495
12729
|
// src/components/List/ScrollableList.tsx
|
|
12496
|
-
import { css as
|
|
12730
|
+
import { css as css43 } from "@emotion/react";
|
|
12497
12731
|
|
|
12498
12732
|
// src/components/List/styles/ScrollableList.styles.ts
|
|
12499
|
-
import { css as
|
|
12500
|
-
var ScrollableListContainer =
|
|
12733
|
+
import { css as css42 } from "@emotion/react";
|
|
12734
|
+
var ScrollableListContainer = css42`
|
|
12501
12735
|
position: relative;
|
|
12502
12736
|
`;
|
|
12503
|
-
var ScrollableListInner =
|
|
12737
|
+
var ScrollableListInner = css42`
|
|
12504
12738
|
background: var(--gray-50);
|
|
12505
12739
|
border-top: 1px solid var(--gray-200);
|
|
12506
12740
|
border-bottom: 1px solid var(--gray-200);
|
|
@@ -12518,19 +12752,19 @@ var ScrollableListInner = css39`
|
|
|
12518
12752
|
`;
|
|
12519
12753
|
|
|
12520
12754
|
// src/components/List/ScrollableList.tsx
|
|
12521
|
-
import { jsx as
|
|
12755
|
+
import { jsx as jsx54, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
|
|
12522
12756
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
12523
|
-
return /* @__PURE__ */
|
|
12524
|
-
label ? /* @__PURE__ */
|
|
12757
|
+
return /* @__PURE__ */ jsxs32("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
12758
|
+
label ? /* @__PURE__ */ jsx54(
|
|
12525
12759
|
"span",
|
|
12526
12760
|
{
|
|
12527
|
-
css:
|
|
12761
|
+
css: css43`
|
|
12528
12762
|
${labelText}
|
|
12529
12763
|
`,
|
|
12530
12764
|
children: label
|
|
12531
12765
|
}
|
|
12532
12766
|
) : null,
|
|
12533
|
-
/* @__PURE__ */
|
|
12767
|
+
/* @__PURE__ */ jsx54("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
12534
12768
|
] });
|
|
12535
12769
|
};
|
|
12536
12770
|
|
|
@@ -12538,8 +12772,8 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
12538
12772
|
import { CgCheck } from "react-icons/cg";
|
|
12539
12773
|
|
|
12540
12774
|
// src/components/List/styles/ScrollableListItem.styles.ts
|
|
12541
|
-
import { css as
|
|
12542
|
-
var ScrollableListItemContainer =
|
|
12775
|
+
import { css as css44 } from "@emotion/react";
|
|
12776
|
+
var ScrollableListItemContainer = css44`
|
|
12543
12777
|
align-items: center;
|
|
12544
12778
|
background: var(--white);
|
|
12545
12779
|
border-radius: var(--rounded-base);
|
|
@@ -12549,10 +12783,10 @@ var ScrollableListItemContainer = css41`
|
|
|
12549
12783
|
min-height: 52px;
|
|
12550
12784
|
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
12551
12785
|
`;
|
|
12552
|
-
var ScrollableListItemActive =
|
|
12786
|
+
var ScrollableListItemActive = css44`
|
|
12553
12787
|
border-color: var(--brand-secondary-3);
|
|
12554
12788
|
`;
|
|
12555
|
-
var ScrollableListItemBtn =
|
|
12789
|
+
var ScrollableListItemBtn = css44`
|
|
12556
12790
|
align-items: center;
|
|
12557
12791
|
border: none;
|
|
12558
12792
|
background: transparent;
|
|
@@ -12567,26 +12801,26 @@ var ScrollableListItemBtn = css41`
|
|
|
12567
12801
|
outline: none;
|
|
12568
12802
|
}
|
|
12569
12803
|
`;
|
|
12570
|
-
var ScrollableListInputLabel =
|
|
12804
|
+
var ScrollableListInputLabel = css44`
|
|
12571
12805
|
align-items: center;
|
|
12572
12806
|
display: flex;
|
|
12573
12807
|
padding: var(--spacing-xs) var(--spacing-base) var(--spacing-xs);
|
|
12574
12808
|
flex-grow: 1;
|
|
12575
12809
|
`;
|
|
12576
|
-
var ScrollableListInputText =
|
|
12810
|
+
var ScrollableListInputText = css44`
|
|
12577
12811
|
align-items: center;
|
|
12578
12812
|
display: flex;
|
|
12579
12813
|
gap: var(--spacing-sm);
|
|
12580
12814
|
font-weight: var(--fw-bold);
|
|
12581
12815
|
flex-grow: 1;
|
|
12582
12816
|
`;
|
|
12583
|
-
var ScrollableListHiddenInput =
|
|
12817
|
+
var ScrollableListHiddenInput = css44`
|
|
12584
12818
|
position: absolute;
|
|
12585
12819
|
height: 0;
|
|
12586
12820
|
width: 0;
|
|
12587
12821
|
opacity: 0;
|
|
12588
12822
|
`;
|
|
12589
|
-
var ScrollableListIcon =
|
|
12823
|
+
var ScrollableListIcon = css44`
|
|
12590
12824
|
border-radius: var(--rounded-full);
|
|
12591
12825
|
background: var(--brand-secondary-3);
|
|
12592
12826
|
color: var(--white);
|
|
@@ -12595,7 +12829,7 @@ var ScrollableListIcon = css41`
|
|
|
12595
12829
|
`;
|
|
12596
12830
|
|
|
12597
12831
|
// src/components/List/ScrollableListInputItem.tsx
|
|
12598
|
-
import { jsx as
|
|
12832
|
+
import { jsx as jsx55, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
|
|
12599
12833
|
var ScrollableListInputItem = ({
|
|
12600
12834
|
label,
|
|
12601
12835
|
icon,
|
|
@@ -12603,23 +12837,23 @@ var ScrollableListInputItem = ({
|
|
|
12603
12837
|
children,
|
|
12604
12838
|
labelTestId
|
|
12605
12839
|
}) => {
|
|
12606
|
-
return /* @__PURE__ */
|
|
12607
|
-
/* @__PURE__ */
|
|
12840
|
+
return /* @__PURE__ */ jsx55("div", { css: [ScrollableListItemContainer, active ? ScrollableListItemActive : void 0], children: /* @__PURE__ */ jsxs33("label", { "data-test-id": labelTestId, css: ScrollableListInputLabel, children: [
|
|
12841
|
+
/* @__PURE__ */ jsxs33("span", { css: ScrollableListInputText, children: [
|
|
12608
12842
|
icon,
|
|
12609
12843
|
label
|
|
12610
12844
|
] }),
|
|
12611
|
-
/* @__PURE__ */
|
|
12612
|
-
active ? /* @__PURE__ */
|
|
12845
|
+
/* @__PURE__ */ jsx55("div", { css: ScrollableListHiddenInput, children }),
|
|
12846
|
+
active ? /* @__PURE__ */ jsx55(Icon, { icon: CgCheck, iconColor: "currentColor", css: ScrollableListIcon, size: 24 }) : null
|
|
12613
12847
|
] }) });
|
|
12614
12848
|
};
|
|
12615
12849
|
|
|
12616
12850
|
// src/components/List/ScrollableListItem.tsx
|
|
12617
|
-
import { css as
|
|
12618
|
-
import { jsx as
|
|
12851
|
+
import { css as css45 } from "@emotion/react";
|
|
12852
|
+
import { jsx as jsx56, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
|
|
12619
12853
|
var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
12620
|
-
return /* @__PURE__ */
|
|
12621
|
-
/* @__PURE__ */
|
|
12622
|
-
/* @__PURE__ */
|
|
12854
|
+
return /* @__PURE__ */ jsx56("div", { css: [ScrollableListItemContainer, active ? ScrollableListItemActive : void 0], children: /* @__PURE__ */ jsxs34("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
12855
|
+
/* @__PURE__ */ jsx56("span", { children: buttonText }),
|
|
12856
|
+
/* @__PURE__ */ jsx56(
|
|
12623
12857
|
"svg",
|
|
12624
12858
|
{
|
|
12625
12859
|
width: "24",
|
|
@@ -12628,14 +12862,14 @@ var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
|
12628
12862
|
fill: "currentColor",
|
|
12629
12863
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12630
12864
|
"aria-hidden": !active,
|
|
12631
|
-
css:
|
|
12865
|
+
css: css45`
|
|
12632
12866
|
color: var(--brand-secondary-3);
|
|
12633
12867
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
12634
|
-
${active ?
|
|
12868
|
+
${active ? css45`
|
|
12635
12869
|
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
12636
12870
|
` : "opacity: 0;"}
|
|
12637
12871
|
`,
|
|
12638
|
-
children: /* @__PURE__ */
|
|
12872
|
+
children: /* @__PURE__ */ jsx56(
|
|
12639
12873
|
"path",
|
|
12640
12874
|
{
|
|
12641
12875
|
fillRule: "evenodd",
|
|
@@ -12649,7 +12883,7 @@ var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
|
12649
12883
|
};
|
|
12650
12884
|
|
|
12651
12885
|
// src/components/LoadingIndicator/LoadingIndicator.styles.ts
|
|
12652
|
-
import { css as
|
|
12886
|
+
import { css as css46, keyframes as keyframes3 } from "@emotion/react";
|
|
12653
12887
|
var bounceFade = keyframes3`
|
|
12654
12888
|
0%, 100% {
|
|
12655
12889
|
opacity: 1.0;
|
|
@@ -12667,11 +12901,11 @@ var bounceFade = keyframes3`
|
|
|
12667
12901
|
transform: translateY(-5px);
|
|
12668
12902
|
}
|
|
12669
12903
|
`;
|
|
12670
|
-
var loader =
|
|
12904
|
+
var loader = css46`
|
|
12671
12905
|
display: inline-flex;
|
|
12672
12906
|
justify-content: center;
|
|
12673
12907
|
`;
|
|
12674
|
-
var loadingDot =
|
|
12908
|
+
var loadingDot = css46`
|
|
12675
12909
|
background-color: var(--gray-700);
|
|
12676
12910
|
display: block;
|
|
12677
12911
|
border-radius: var(--rounded-full);
|
|
@@ -12695,12 +12929,12 @@ var loadingDot = css43`
|
|
|
12695
12929
|
`;
|
|
12696
12930
|
|
|
12697
12931
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
12698
|
-
import { jsx as
|
|
12699
|
-
var LoadingIndicator = () => {
|
|
12700
|
-
return /* @__PURE__ */
|
|
12701
|
-
/* @__PURE__ */
|
|
12702
|
-
/* @__PURE__ */
|
|
12703
|
-
/* @__PURE__ */
|
|
12932
|
+
import { jsx as jsx57, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
12933
|
+
var LoadingIndicator = ({ ...props }) => {
|
|
12934
|
+
return /* @__PURE__ */ jsxs35("div", { role: "alert", css: loader, "data-test-id": "loading-indicator", ...props, children: [
|
|
12935
|
+
/* @__PURE__ */ jsx57("span", { css: loadingDot }),
|
|
12936
|
+
/* @__PURE__ */ jsx57("span", { css: loadingDot }),
|
|
12937
|
+
/* @__PURE__ */ jsx57("span", { css: loadingDot })
|
|
12704
12938
|
] });
|
|
12705
12939
|
};
|
|
12706
12940
|
|
|
@@ -12708,8 +12942,8 @@ var LoadingIndicator = () => {
|
|
|
12708
12942
|
import { useCallback as useCallback2, useEffect as useEffect6, useRef as useRef4 } from "react";
|
|
12709
12943
|
|
|
12710
12944
|
// src/components/LoadingOverlay/LoadingOverlay.styles.ts
|
|
12711
|
-
import { css as
|
|
12712
|
-
var loadingOverlayContainer =
|
|
12945
|
+
import { css as css47 } from "@emotion/react";
|
|
12946
|
+
var loadingOverlayContainer = css47`
|
|
12713
12947
|
position: absolute;
|
|
12714
12948
|
inset: 0;
|
|
12715
12949
|
overflow: hidden;
|
|
@@ -12717,30 +12951,30 @@ var loadingOverlayContainer = css44`
|
|
|
12717
12951
|
padding: var(--spacing-xl);
|
|
12718
12952
|
overflow-y: auto;
|
|
12719
12953
|
`;
|
|
12720
|
-
var loadingOverlayVisible =
|
|
12954
|
+
var loadingOverlayVisible = css47`
|
|
12721
12955
|
display: flex;
|
|
12722
12956
|
`;
|
|
12723
|
-
var loadingOverlayHidden =
|
|
12957
|
+
var loadingOverlayHidden = css47`
|
|
12724
12958
|
display: none;
|
|
12725
12959
|
`;
|
|
12726
|
-
var loadingOverlayBackground = (bgColor) =>
|
|
12960
|
+
var loadingOverlayBackground = (bgColor) => css47`
|
|
12727
12961
|
background: ${bgColor};
|
|
12728
12962
|
opacity: 0.92;
|
|
12729
12963
|
position: absolute;
|
|
12730
12964
|
inset: 0 0;
|
|
12731
12965
|
`;
|
|
12732
|
-
var loadingOverlayBody =
|
|
12966
|
+
var loadingOverlayBody = css47`
|
|
12733
12967
|
align-items: center;
|
|
12734
12968
|
display: flex;
|
|
12735
12969
|
flex-direction: column;
|
|
12736
12970
|
`;
|
|
12737
|
-
var loadingOverlayMessage =
|
|
12971
|
+
var loadingOverlayMessage = css47`
|
|
12738
12972
|
color: var(--gray-600);
|
|
12739
12973
|
margin: var(--spacing-base) 0 0;
|
|
12740
12974
|
`;
|
|
12741
12975
|
|
|
12742
12976
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
12743
|
-
import { jsx as
|
|
12977
|
+
import { jsx as jsx58, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
12744
12978
|
var LoadingOverlay = ({
|
|
12745
12979
|
isActive,
|
|
12746
12980
|
statusMessage,
|
|
@@ -12766,7 +13000,7 @@ var LoadingOverlay = ({
|
|
|
12766
13000
|
(_f = lottieRef.current) == null ? void 0 : _f.stop();
|
|
12767
13001
|
}
|
|
12768
13002
|
}, [isPaused]);
|
|
12769
|
-
return /* @__PURE__ */
|
|
13003
|
+
return /* @__PURE__ */ jsxs36(
|
|
12770
13004
|
"div",
|
|
12771
13005
|
{
|
|
12772
13006
|
role: "alert",
|
|
@@ -12774,9 +13008,9 @@ var LoadingOverlay = ({
|
|
|
12774
13008
|
"aria-hidden": !isActive,
|
|
12775
13009
|
"aria-busy": isActive && !isPaused,
|
|
12776
13010
|
children: [
|
|
12777
|
-
/* @__PURE__ */
|
|
12778
|
-
/* @__PURE__ */
|
|
12779
|
-
/* @__PURE__ */
|
|
13011
|
+
/* @__PURE__ */ jsx58("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
13012
|
+
/* @__PURE__ */ jsx58("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ jsxs36("div", { css: loadingOverlayBody, children: [
|
|
13013
|
+
/* @__PURE__ */ jsx58(
|
|
12780
13014
|
AnimationFile,
|
|
12781
13015
|
{
|
|
12782
13016
|
lottieRef,
|
|
@@ -12791,15 +13025,15 @@ var LoadingOverlay = ({
|
|
|
12791
13025
|
}
|
|
12792
13026
|
}
|
|
12793
13027
|
),
|
|
12794
|
-
statusMessage ? /* @__PURE__ */
|
|
12795
|
-
/* @__PURE__ */
|
|
13028
|
+
statusMessage ? /* @__PURE__ */ jsx58("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
|
|
13029
|
+
/* @__PURE__ */ jsx58("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
|
|
12796
13030
|
] }) })
|
|
12797
13031
|
]
|
|
12798
13032
|
}
|
|
12799
13033
|
);
|
|
12800
13034
|
};
|
|
12801
13035
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
12802
|
-
return /* @__PURE__ */
|
|
13036
|
+
return /* @__PURE__ */ jsx58(
|
|
12803
13037
|
"svg",
|
|
12804
13038
|
{
|
|
12805
13039
|
"data-testid": "svg",
|
|
@@ -12810,9 +13044,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
12810
13044
|
stroke: "currentColor",
|
|
12811
13045
|
...props,
|
|
12812
13046
|
"data-test-id": "loading-icon",
|
|
12813
|
-
children: /* @__PURE__ */
|
|
12814
|
-
/* @__PURE__ */
|
|
12815
|
-
/* @__PURE__ */
|
|
13047
|
+
children: /* @__PURE__ */ jsx58("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs36("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
13048
|
+
/* @__PURE__ */ jsx58("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
13049
|
+
/* @__PURE__ */ jsx58("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ jsx58(
|
|
12816
13050
|
"animateTransform",
|
|
12817
13051
|
{
|
|
12818
13052
|
attributeName: "transform",
|
|
@@ -12829,12 +13063,12 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
12829
13063
|
};
|
|
12830
13064
|
|
|
12831
13065
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
12832
|
-
import { css as
|
|
13066
|
+
import { css as css49 } from "@emotion/react";
|
|
12833
13067
|
import { CgAdd as CgAdd2, CgChevronRight as CgChevronRight2 } from "react-icons/cg";
|
|
12834
13068
|
|
|
12835
13069
|
// src/components/Tiles/styles/IntegrationTile.styles.ts
|
|
12836
|
-
import { css as
|
|
12837
|
-
var IntegrationTileContainer =
|
|
13070
|
+
import { css as css48 } from "@emotion/react";
|
|
13071
|
+
var IntegrationTileContainer = css48`
|
|
12838
13072
|
align-items: center;
|
|
12839
13073
|
box-sizing: border-box;
|
|
12840
13074
|
border-radius: var(--rounded-base);
|
|
@@ -12865,22 +13099,22 @@ var IntegrationTileContainer = css45`
|
|
|
12865
13099
|
}
|
|
12866
13100
|
}
|
|
12867
13101
|
`;
|
|
12868
|
-
var IntegrationTileBtnDashedBorder =
|
|
13102
|
+
var IntegrationTileBtnDashedBorder = css48`
|
|
12869
13103
|
border: 1px dashed var(--brand-secondary-1);
|
|
12870
13104
|
`;
|
|
12871
|
-
var IntegrationTileTitle =
|
|
13105
|
+
var IntegrationTileTitle = css48`
|
|
12872
13106
|
display: block;
|
|
12873
13107
|
font-weight: var(--fw-bold);
|
|
12874
13108
|
margin: 0 0 var(--spacing-base);
|
|
12875
13109
|
max-width: 13rem;
|
|
12876
13110
|
`;
|
|
12877
|
-
var IntegrationTitleLogo =
|
|
13111
|
+
var IntegrationTitleLogo = css48`
|
|
12878
13112
|
display: block;
|
|
12879
13113
|
max-width: 10rem;
|
|
12880
13114
|
max-height: 4rem;
|
|
12881
13115
|
margin: 0 auto;
|
|
12882
13116
|
`;
|
|
12883
|
-
var IntegrationTileName =
|
|
13117
|
+
var IntegrationTileName = css48`
|
|
12884
13118
|
color: var(--gray-500);
|
|
12885
13119
|
display: -webkit-box;
|
|
12886
13120
|
-webkit-line-clamp: 1;
|
|
@@ -12893,7 +13127,7 @@ var IntegrationTileName = css45`
|
|
|
12893
13127
|
position: absolute;
|
|
12894
13128
|
bottom: calc(var(--spacing-base) * 3.8);
|
|
12895
13129
|
`;
|
|
12896
|
-
var IntegrationAddedText =
|
|
13130
|
+
var IntegrationAddedText = css48`
|
|
12897
13131
|
align-items: center;
|
|
12898
13132
|
background: var(--brand-secondary-3);
|
|
12899
13133
|
border-radius: 0 var(--rounded-md) 0 var(--rounded-md);
|
|
@@ -12908,7 +13142,7 @@ var IntegrationAddedText = css45`
|
|
|
12908
13142
|
top: 0;
|
|
12909
13143
|
right: 0;
|
|
12910
13144
|
`;
|
|
12911
|
-
var IntegrationCustomBadgeText = (theme) =>
|
|
13145
|
+
var IntegrationCustomBadgeText = (theme) => css48`
|
|
12912
13146
|
align-items: center;
|
|
12913
13147
|
border-radius: var(--rounded-sm) 0 var(--rounded-sm) 0;
|
|
12914
13148
|
background: ${theme === "gray" ? "var(--brand-secondary-2)" : "var(--brand-secondary-1)"};
|
|
@@ -12922,26 +13156,26 @@ var IntegrationCustomBadgeText = (theme) => css45`
|
|
|
12922
13156
|
top: 0;
|
|
12923
13157
|
left: 0;
|
|
12924
13158
|
`;
|
|
12925
|
-
var IntegrationAuthorBadgeIcon =
|
|
13159
|
+
var IntegrationAuthorBadgeIcon = css48`
|
|
12926
13160
|
position: absolute;
|
|
12927
13161
|
bottom: var(--spacing-sm);
|
|
12928
13162
|
right: var(--spacing-xs);
|
|
12929
13163
|
max-height: 1rem;
|
|
12930
13164
|
`;
|
|
12931
|
-
var IntegrationTitleFakeButton =
|
|
13165
|
+
var IntegrationTitleFakeButton = css48`
|
|
12932
13166
|
font-size: var(--fs-xs);
|
|
12933
13167
|
gap: var(--spacing-sm);
|
|
12934
13168
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
12935
13169
|
text-transform: uppercase;
|
|
12936
13170
|
`;
|
|
12937
|
-
var IntegrationTileFloatingButton =
|
|
13171
|
+
var IntegrationTileFloatingButton = css48`
|
|
12938
13172
|
position: absolute;
|
|
12939
13173
|
bottom: var(--spacing-base);
|
|
12940
13174
|
gap: var(--spacing-sm);
|
|
12941
13175
|
font-size: var(--fs-xs);
|
|
12942
13176
|
overflow: hidden;
|
|
12943
13177
|
`;
|
|
12944
|
-
var IntegrationTileFloatingButtonMessage = (clicked) =>
|
|
13178
|
+
var IntegrationTileFloatingButtonMessage = (clicked) => css48`
|
|
12945
13179
|
strong,
|
|
12946
13180
|
span:first-of-type {
|
|
12947
13181
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
@@ -12962,7 +13196,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => css45`
|
|
|
12962
13196
|
`;
|
|
12963
13197
|
|
|
12964
13198
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
12965
|
-
import { jsx as
|
|
13199
|
+
import { jsx as jsx59, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
|
|
12966
13200
|
var CreateTeamIntegrationTile = ({
|
|
12967
13201
|
title = "Create a custom integration for your team",
|
|
12968
13202
|
buttonText = "Add Integration",
|
|
@@ -12970,9 +13204,9 @@ var CreateTeamIntegrationTile = ({
|
|
|
12970
13204
|
asDeepLink = false,
|
|
12971
13205
|
...props
|
|
12972
13206
|
}) => {
|
|
12973
|
-
return /* @__PURE__ */
|
|
12974
|
-
/* @__PURE__ */
|
|
12975
|
-
/* @__PURE__ */
|
|
13207
|
+
return /* @__PURE__ */ jsxs37("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
13208
|
+
/* @__PURE__ */ jsx59("span", { css: IntegrationTileTitle, title, children: title }),
|
|
13209
|
+
/* @__PURE__ */ jsxs37(
|
|
12976
13210
|
Button,
|
|
12977
13211
|
{
|
|
12978
13212
|
buttonType: "tertiary",
|
|
@@ -12982,23 +13216,23 @@ var CreateTeamIntegrationTile = ({
|
|
|
12982
13216
|
css: IntegrationTitleFakeButton,
|
|
12983
13217
|
children: [
|
|
12984
13218
|
buttonText,
|
|
12985
|
-
asDeepLink ? /* @__PURE__ */
|
|
13219
|
+
asDeepLink ? /* @__PURE__ */ jsx59(
|
|
12986
13220
|
Icon,
|
|
12987
13221
|
{
|
|
12988
13222
|
icon: CgChevronRight2,
|
|
12989
13223
|
iconColor: "currentColor",
|
|
12990
13224
|
size: 20,
|
|
12991
|
-
css:
|
|
13225
|
+
css: css49`
|
|
12992
13226
|
order: 1;
|
|
12993
13227
|
`
|
|
12994
13228
|
}
|
|
12995
|
-
) : /* @__PURE__ */
|
|
13229
|
+
) : /* @__PURE__ */ jsx59(
|
|
12996
13230
|
Icon,
|
|
12997
13231
|
{
|
|
12998
13232
|
icon: CgAdd2,
|
|
12999
13233
|
iconColor: "currentColor",
|
|
13000
13234
|
size: 16,
|
|
13001
|
-
css:
|
|
13235
|
+
css: css49`
|
|
13002
13236
|
order: -1;
|
|
13003
13237
|
`
|
|
13004
13238
|
}
|
|
@@ -13011,31 +13245,31 @@ var CreateTeamIntegrationTile = ({
|
|
|
13011
13245
|
|
|
13012
13246
|
// src/components/Tiles/IntegrationBadges.tsx
|
|
13013
13247
|
import { CgCheck as CgCheck2, CgLock, CgSandClock } from "react-icons/cg";
|
|
13014
|
-
import { jsx as
|
|
13248
|
+
import { jsx as jsx60, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
|
|
13015
13249
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
13016
|
-
return /* @__PURE__ */
|
|
13017
|
-
/* @__PURE__ */
|
|
13250
|
+
return /* @__PURE__ */ jsxs38("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
13251
|
+
/* @__PURE__ */ jsx60(Icon, { icon: CgCheck2, iconColor: "currentColor" }),
|
|
13018
13252
|
text
|
|
13019
13253
|
] });
|
|
13020
13254
|
};
|
|
13021
13255
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
13022
|
-
return /* @__PURE__ */
|
|
13256
|
+
return /* @__PURE__ */ jsx60("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
13023
13257
|
};
|
|
13024
13258
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
13025
|
-
return /* @__PURE__ */
|
|
13026
|
-
/* @__PURE__ */
|
|
13259
|
+
return /* @__PURE__ */ jsxs38("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
13260
|
+
/* @__PURE__ */ jsx60(Icon, { icon: CgLock, iconColor: "currentColor", size: 12 }),
|
|
13027
13261
|
text
|
|
13028
13262
|
] });
|
|
13029
13263
|
};
|
|
13030
13264
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
13031
|
-
return /* @__PURE__ */
|
|
13032
|
-
/* @__PURE__ */
|
|
13265
|
+
return /* @__PURE__ */ jsxs38("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
13266
|
+
/* @__PURE__ */ jsx60(Icon, { icon: CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
13033
13267
|
text
|
|
13034
13268
|
] });
|
|
13035
13269
|
};
|
|
13036
13270
|
|
|
13037
13271
|
// src/components/Tiles/ResolveIcon.tsx
|
|
13038
|
-
import { jsx as
|
|
13272
|
+
import { jsx as jsx61 } from "@emotion/react/jsx-runtime";
|
|
13039
13273
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
13040
13274
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
13041
13275
|
const mapClassName = {
|
|
@@ -13043,13 +13277,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
13043
13277
|
logo: IntegrationTitleLogo
|
|
13044
13278
|
};
|
|
13045
13279
|
if (icon) {
|
|
13046
|
-
return CompIcon ? /* @__PURE__ */
|
|
13280
|
+
return CompIcon ? /* @__PURE__ */ jsx61(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ jsx61("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
13047
13281
|
}
|
|
13048
13282
|
return null;
|
|
13049
13283
|
};
|
|
13050
13284
|
|
|
13051
13285
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
13052
|
-
import { jsx as
|
|
13286
|
+
import { jsx as jsx62, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
13053
13287
|
var EditTeamIntegrationTile = ({
|
|
13054
13288
|
id,
|
|
13055
13289
|
icon,
|
|
@@ -13058,17 +13292,17 @@ var EditTeamIntegrationTile = ({
|
|
|
13058
13292
|
isPublic,
|
|
13059
13293
|
canEdit = false
|
|
13060
13294
|
}) => {
|
|
13061
|
-
return /* @__PURE__ */
|
|
13295
|
+
return /* @__PURE__ */ jsxs39(
|
|
13062
13296
|
"div",
|
|
13063
13297
|
{
|
|
13064
13298
|
css: IntegrationTileContainer,
|
|
13065
13299
|
"data-testid": "configure-integration-container",
|
|
13066
13300
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
13067
13301
|
children: [
|
|
13068
|
-
/* @__PURE__ */
|
|
13069
|
-
/* @__PURE__ */
|
|
13070
|
-
!isPublic ? /* @__PURE__ */
|
|
13071
|
-
canEdit ? /* @__PURE__ */
|
|
13302
|
+
/* @__PURE__ */ jsx62(ResolveIcon, { icon, name, "data-test-id": "integration-logo" }),
|
|
13303
|
+
/* @__PURE__ */ jsx62("span", { css: IntegrationTileName, "data-test-id": "integration-card-name", children: name }),
|
|
13304
|
+
!isPublic ? /* @__PURE__ */ jsx62(IntegrationCustomBadge, {}) : null,
|
|
13305
|
+
canEdit ? /* @__PURE__ */ jsx62(
|
|
13072
13306
|
Button,
|
|
13073
13307
|
{
|
|
13074
13308
|
buttonType: "unimportant",
|
|
@@ -13086,10 +13320,10 @@ var EditTeamIntegrationTile = ({
|
|
|
13086
13320
|
};
|
|
13087
13321
|
|
|
13088
13322
|
// src/components/Tiles/IntegrationComingSoon.tsx
|
|
13089
|
-
import { css as
|
|
13323
|
+
import { css as css50 } from "@emotion/react";
|
|
13090
13324
|
import { useEffect as useEffect7, useState as useState6 } from "react";
|
|
13091
13325
|
import { CgHeart } from "react-icons/cg";
|
|
13092
|
-
import { jsx as
|
|
13326
|
+
import { jsx as jsx63, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
|
|
13093
13327
|
var IntegrationComingSoon = ({
|
|
13094
13328
|
name,
|
|
13095
13329
|
icon,
|
|
@@ -13111,17 +13345,17 @@ var IntegrationComingSoon = ({
|
|
|
13111
13345
|
};
|
|
13112
13346
|
}
|
|
13113
13347
|
}, [upVote, setUpVote, timing]);
|
|
13114
|
-
return /* @__PURE__ */
|
|
13348
|
+
return /* @__PURE__ */ jsxs40(
|
|
13115
13349
|
"div",
|
|
13116
13350
|
{
|
|
13117
13351
|
css: IntegrationTileContainer,
|
|
13118
13352
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
13119
13353
|
...props,
|
|
13120
13354
|
children: [
|
|
13121
|
-
/* @__PURE__ */
|
|
13122
|
-
/* @__PURE__ */
|
|
13123
|
-
/* @__PURE__ */
|
|
13124
|
-
/* @__PURE__ */
|
|
13355
|
+
/* @__PURE__ */ jsx63(IntegrationComingSoonBadge, {}),
|
|
13356
|
+
/* @__PURE__ */ jsx63(ResolveIcon, { icon, name }),
|
|
13357
|
+
/* @__PURE__ */ jsx63("span", { css: IntegrationTileName, title: name, children: name }),
|
|
13358
|
+
/* @__PURE__ */ jsxs40(
|
|
13125
13359
|
Button,
|
|
13126
13360
|
{
|
|
13127
13361
|
buttonType: "unimportant",
|
|
@@ -13131,19 +13365,19 @@ var IntegrationComingSoon = ({
|
|
|
13131
13365
|
role: "link",
|
|
13132
13366
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
13133
13367
|
children: [
|
|
13134
|
-
/* @__PURE__ */
|
|
13135
|
-
/* @__PURE__ */
|
|
13368
|
+
/* @__PURE__ */ jsx63("strong", { children: "+1" }),
|
|
13369
|
+
/* @__PURE__ */ jsx63(
|
|
13136
13370
|
"span",
|
|
13137
13371
|
{
|
|
13138
|
-
css:
|
|
13372
|
+
css: css50`
|
|
13139
13373
|
text-transform: uppercase;
|
|
13140
13374
|
color: var(--gray-500);
|
|
13141
13375
|
`,
|
|
13142
13376
|
children: "(I want this)"
|
|
13143
13377
|
}
|
|
13144
13378
|
),
|
|
13145
|
-
/* @__PURE__ */
|
|
13146
|
-
/* @__PURE__ */
|
|
13379
|
+
/* @__PURE__ */ jsxs40("span", { "aria-hidden": !upVote, children: [
|
|
13380
|
+
/* @__PURE__ */ jsx63(Icon, { icon: CgHeart, iconColor: "currentColor", size: 18 }),
|
|
13147
13381
|
"Thanks!"
|
|
13148
13382
|
] })
|
|
13149
13383
|
]
|
|
@@ -13155,8 +13389,8 @@ var IntegrationComingSoon = ({
|
|
|
13155
13389
|
};
|
|
13156
13390
|
|
|
13157
13391
|
// src/components/Tiles/styles/IntegrationLoadingTile.styles.ts
|
|
13158
|
-
import { css as
|
|
13159
|
-
var IntegrationLoadingTileContainer =
|
|
13392
|
+
import { css as css51 } from "@emotion/react";
|
|
13393
|
+
var IntegrationLoadingTileContainer = css51`
|
|
13160
13394
|
align-items: center;
|
|
13161
13395
|
box-sizing: border-box;
|
|
13162
13396
|
border-radius: var(--rounded-base);
|
|
@@ -13183,39 +13417,39 @@ var IntegrationLoadingTileContainer = css48`
|
|
|
13183
13417
|
}
|
|
13184
13418
|
}
|
|
13185
13419
|
`;
|
|
13186
|
-
var IntegrationLoadingTileImg =
|
|
13420
|
+
var IntegrationLoadingTileImg = css51`
|
|
13187
13421
|
width: 10rem;
|
|
13188
13422
|
height: 4rem;
|
|
13189
13423
|
margin: 0 auto;
|
|
13190
13424
|
`;
|
|
13191
|
-
var IntegrationLoadingTileText =
|
|
13425
|
+
var IntegrationLoadingTileText = css51`
|
|
13192
13426
|
width: 5rem;
|
|
13193
13427
|
height: var(--spacing-sm);
|
|
13194
13428
|
margin: var(--spacing-sm) 0;
|
|
13195
13429
|
`;
|
|
13196
|
-
var IntegrationLoadingFrame =
|
|
13430
|
+
var IntegrationLoadingFrame = css51`
|
|
13197
13431
|
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
13198
13432
|
border-radius: var(--rounded-base);
|
|
13199
13433
|
`;
|
|
13200
13434
|
|
|
13201
13435
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
13202
|
-
import { Fragment as Fragment7, jsx as
|
|
13436
|
+
import { Fragment as Fragment7, jsx as jsx64, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
13203
13437
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
13204
13438
|
const componentCount = Array.from(Array(count).keys());
|
|
13205
|
-
return /* @__PURE__ */
|
|
13206
|
-
/* @__PURE__ */
|
|
13207
|
-
/* @__PURE__ */
|
|
13439
|
+
return /* @__PURE__ */ jsx64(Fragment7, { children: componentCount.map((i) => /* @__PURE__ */ jsxs41("div", { css: IntegrationLoadingTileContainer, children: [
|
|
13440
|
+
/* @__PURE__ */ jsx64("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
13441
|
+
/* @__PURE__ */ jsx64("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
13208
13442
|
] }, i)) });
|
|
13209
13443
|
};
|
|
13210
13444
|
|
|
13211
13445
|
// src/components/Tiles/styles/IntegrationModalIcon.styles.ts
|
|
13212
|
-
import { css as
|
|
13213
|
-
var IntegrationModalIconContainer =
|
|
13446
|
+
import { css as css52 } from "@emotion/react";
|
|
13447
|
+
var IntegrationModalIconContainer = css52`
|
|
13214
13448
|
position: relative;
|
|
13215
13449
|
width: 50px;
|
|
13216
13450
|
margin-bottom: var(--spacing-base);
|
|
13217
13451
|
`;
|
|
13218
|
-
var IntegrationModalImage =
|
|
13452
|
+
var IntegrationModalImage = css52`
|
|
13219
13453
|
position: absolute;
|
|
13220
13454
|
inset: 0;
|
|
13221
13455
|
margin: auto;
|
|
@@ -13224,12 +13458,22 @@ var IntegrationModalImage = css49`
|
|
|
13224
13458
|
`;
|
|
13225
13459
|
|
|
13226
13460
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
13227
|
-
import { jsx as
|
|
13461
|
+
import { jsx as jsx65, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
13228
13462
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
13229
13463
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
13230
|
-
|
|
13231
|
-
|
|
13232
|
-
|
|
13464
|
+
let iconSrc = void 0;
|
|
13465
|
+
if (icon && typeof icon === "string") {
|
|
13466
|
+
try {
|
|
13467
|
+
const iconUrl = new URL(icon);
|
|
13468
|
+
if (iconUrl.protocol === "data:" || iconUrl.protocol === "https:") {
|
|
13469
|
+
iconSrc = iconUrl.href;
|
|
13470
|
+
}
|
|
13471
|
+
} catch (e) {
|
|
13472
|
+
}
|
|
13473
|
+
}
|
|
13474
|
+
return /* @__PURE__ */ jsxs42("div", { css: IntegrationModalIconContainer, children: [
|
|
13475
|
+
/* @__PURE__ */ jsxs42("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
13476
|
+
/* @__PURE__ */ jsx65(
|
|
13233
13477
|
"path",
|
|
13234
13478
|
{
|
|
13235
13479
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -13238,15 +13482,15 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
13238
13482
|
strokeWidth: "2"
|
|
13239
13483
|
}
|
|
13240
13484
|
),
|
|
13241
|
-
/* @__PURE__ */
|
|
13242
|
-
/* @__PURE__ */
|
|
13243
|
-
/* @__PURE__ */
|
|
13485
|
+
/* @__PURE__ */ jsx65("defs", { children: /* @__PURE__ */ jsxs42("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
13486
|
+
/* @__PURE__ */ jsx65("stop", { stopColor: "#1768B2" }),
|
|
13487
|
+
/* @__PURE__ */ jsx65("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
13244
13488
|
] }) })
|
|
13245
13489
|
] }),
|
|
13246
|
-
CompIcon ? /* @__PURE__ */
|
|
13490
|
+
CompIcon ? /* @__PURE__ */ jsx65(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : /* @__PURE__ */ jsx65(
|
|
13247
13491
|
"img",
|
|
13248
13492
|
{
|
|
13249
|
-
src:
|
|
13493
|
+
src: iconSrc,
|
|
13250
13494
|
alt: name,
|
|
13251
13495
|
"data-test-id": "integration-modal-icon",
|
|
13252
13496
|
css: IntegrationModalImage,
|
|
@@ -13257,7 +13501,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
13257
13501
|
};
|
|
13258
13502
|
|
|
13259
13503
|
// src/components/Tiles/IntegrationTile.tsx
|
|
13260
|
-
import { jsx as
|
|
13504
|
+
import { jsx as jsx66, jsxs as jsxs43 } from "@emotion/react/jsx-runtime";
|
|
13261
13505
|
var IntegrationTile = ({
|
|
13262
13506
|
id,
|
|
13263
13507
|
icon,
|
|
@@ -13269,7 +13513,7 @@ var IntegrationTile = ({
|
|
|
13269
13513
|
authorIcon,
|
|
13270
13514
|
...btnProps
|
|
13271
13515
|
}) => {
|
|
13272
|
-
return /* @__PURE__ */
|
|
13516
|
+
return /* @__PURE__ */ jsxs43(
|
|
13273
13517
|
"button",
|
|
13274
13518
|
{
|
|
13275
13519
|
type: "button",
|
|
@@ -13279,70 +13523,70 @@ var IntegrationTile = ({
|
|
|
13279
13523
|
"aria-label": name,
|
|
13280
13524
|
...btnProps,
|
|
13281
13525
|
children: [
|
|
13282
|
-
/* @__PURE__ */
|
|
13283
|
-
/* @__PURE__ */
|
|
13284
|
-
isInstalled ? /* @__PURE__ */
|
|
13285
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */
|
|
13286
|
-
!isPublic ? /* @__PURE__ */
|
|
13287
|
-
authorIcon ? /* @__PURE__ */
|
|
13526
|
+
/* @__PURE__ */ jsx66(ResolveIcon, { icon, name }),
|
|
13527
|
+
/* @__PURE__ */ jsx66("span", { css: IntegrationTileName, title: name, children: name }),
|
|
13528
|
+
isInstalled ? /* @__PURE__ */ jsx66(IntegrationedAddedBadge, {}) : null,
|
|
13529
|
+
requiedEntitlement && isPublic ? /* @__PURE__ */ jsx66(IntegrationPremiumBadge, {}) : null,
|
|
13530
|
+
!isPublic ? /* @__PURE__ */ jsx66(IntegrationCustomBadge, {}) : null,
|
|
13531
|
+
authorIcon ? /* @__PURE__ */ jsx66(ResolveIcon, { icon: authorIcon, name }) : null
|
|
13288
13532
|
]
|
|
13289
13533
|
}
|
|
13290
13534
|
);
|
|
13291
13535
|
};
|
|
13292
13536
|
|
|
13293
13537
|
// src/components/Tiles/styles/TileContainer.styles.ts
|
|
13294
|
-
import { css as
|
|
13295
|
-
var TileContainerWrapper =
|
|
13538
|
+
import { css as css53 } from "@emotion/react";
|
|
13539
|
+
var TileContainerWrapper = css53`
|
|
13296
13540
|
background: var(--brand-secondary-2);
|
|
13297
13541
|
padding: var(--spacing-base);
|
|
13298
13542
|
margin-bottom: var(--spacing-lg);
|
|
13299
13543
|
`;
|
|
13300
|
-
var TileContainerInner =
|
|
13544
|
+
var TileContainerInner = css53`
|
|
13301
13545
|
display: grid;
|
|
13302
13546
|
grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
|
|
13303
13547
|
gap: var(--spacing-base);
|
|
13304
13548
|
`;
|
|
13305
13549
|
|
|
13306
13550
|
// src/components/Tiles/TileContainer.tsx
|
|
13307
|
-
import { jsx as
|
|
13551
|
+
import { jsx as jsx67 } from "@emotion/react/jsx-runtime";
|
|
13308
13552
|
var TileContainer = ({ children, ...props }) => {
|
|
13309
|
-
return /* @__PURE__ */
|
|
13553
|
+
return /* @__PURE__ */ jsx67("div", { css: TileContainerWrapper, ...props, children: /* @__PURE__ */ jsx67("div", { css: TileContainerInner, children }) });
|
|
13310
13554
|
};
|
|
13311
13555
|
|
|
13312
13556
|
// src/components/Modal/IntegrationModalHeader.styles.ts
|
|
13313
|
-
import { css as
|
|
13314
|
-
var IntegrationModalHeaderSVGBackground =
|
|
13557
|
+
import { css as css54 } from "@emotion/react";
|
|
13558
|
+
var IntegrationModalHeaderSVGBackground = css54`
|
|
13315
13559
|
position: absolute;
|
|
13316
13560
|
top: 0;
|
|
13317
13561
|
left: 0;
|
|
13318
13562
|
`;
|
|
13319
|
-
var IntegrationModalHeaderGroup =
|
|
13563
|
+
var IntegrationModalHeaderGroup = css54`
|
|
13320
13564
|
align-items: center;
|
|
13321
13565
|
display: flex;
|
|
13322
13566
|
gap: var(--spacing-sm);
|
|
13323
13567
|
margin: 0 0 var(--spacing-md);
|
|
13324
13568
|
position: relative;
|
|
13325
13569
|
`;
|
|
13326
|
-
var IntegrationModalHeaderTitleGroup =
|
|
13570
|
+
var IntegrationModalHeaderTitleGroup = css54`
|
|
13327
13571
|
align-items: center;
|
|
13328
13572
|
display: flex;
|
|
13329
13573
|
gap: var(--spacing-base);
|
|
13330
13574
|
`;
|
|
13331
|
-
var IntegrationModalHeaderTitle =
|
|
13575
|
+
var IntegrationModalHeaderTitle = css54`
|
|
13332
13576
|
margin-top: 0;
|
|
13333
13577
|
`;
|
|
13334
|
-
var IntegrationModalHeaderMenuPlacement =
|
|
13578
|
+
var IntegrationModalHeaderMenuPlacement = css54`
|
|
13335
13579
|
margin-bottom: var(--spacing-base);
|
|
13336
13580
|
`;
|
|
13337
|
-
var IntegrationModalHeaderContentWrapper =
|
|
13581
|
+
var IntegrationModalHeaderContentWrapper = css54`
|
|
13338
13582
|
position: relative;
|
|
13339
13583
|
z-index: var(--z-10);
|
|
13340
13584
|
`;
|
|
13341
13585
|
|
|
13342
13586
|
// src/components/Modal/IntegrationModalHeader.tsx
|
|
13343
|
-
import { Fragment as Fragment8, jsx as
|
|
13587
|
+
import { Fragment as Fragment8, jsx as jsx68, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
13344
13588
|
var HexModalBackground = ({ ...props }) => {
|
|
13345
|
-
return /* @__PURE__ */
|
|
13589
|
+
return /* @__PURE__ */ jsxs44(
|
|
13346
13590
|
"svg",
|
|
13347
13591
|
{
|
|
13348
13592
|
width: "236",
|
|
@@ -13352,7 +13596,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13352
13596
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13353
13597
|
...props,
|
|
13354
13598
|
children: [
|
|
13355
|
-
/* @__PURE__ */
|
|
13599
|
+
/* @__PURE__ */ jsx68(
|
|
13356
13600
|
"path",
|
|
13357
13601
|
{
|
|
13358
13602
|
fillRule: "evenodd",
|
|
@@ -13361,7 +13605,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13361
13605
|
fill: "url(#paint0_linear_196_2737)"
|
|
13362
13606
|
}
|
|
13363
13607
|
),
|
|
13364
|
-
/* @__PURE__ */
|
|
13608
|
+
/* @__PURE__ */ jsx68("defs", { children: /* @__PURE__ */ jsxs44(
|
|
13365
13609
|
"linearGradient",
|
|
13366
13610
|
{
|
|
13367
13611
|
id: "paint0_linear_196_2737",
|
|
@@ -13371,8 +13615,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13371
13615
|
y2: "-95.2742",
|
|
13372
13616
|
gradientUnits: "userSpaceOnUse",
|
|
13373
13617
|
children: [
|
|
13374
|
-
/* @__PURE__ */
|
|
13375
|
-
/* @__PURE__ */
|
|
13618
|
+
/* @__PURE__ */ jsx68("stop", { stopColor: "#81DCDE" }),
|
|
13619
|
+
/* @__PURE__ */ jsx68("stop", { offset: "1", stopColor: "#428ED4" })
|
|
13376
13620
|
]
|
|
13377
13621
|
}
|
|
13378
13622
|
) })
|
|
@@ -13381,17 +13625,17 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13381
13625
|
);
|
|
13382
13626
|
};
|
|
13383
13627
|
var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
13384
|
-
return /* @__PURE__ */
|
|
13385
|
-
/* @__PURE__ */
|
|
13386
|
-
/* @__PURE__ */
|
|
13387
|
-
icon ? /* @__PURE__ */
|
|
13388
|
-
/* @__PURE__ */
|
|
13389
|
-
menu2 ? /* @__PURE__ */
|
|
13628
|
+
return /* @__PURE__ */ jsxs44(Fragment8, { children: [
|
|
13629
|
+
/* @__PURE__ */ jsx68(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
13630
|
+
/* @__PURE__ */ jsx68("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs44("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
13631
|
+
icon ? /* @__PURE__ */ jsx68(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
13632
|
+
/* @__PURE__ */ jsx68(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-test-id": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
13633
|
+
menu2 ? /* @__PURE__ */ jsxs44("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
13390
13634
|
menu2,
|
|
13391
13635
|
" "
|
|
13392
13636
|
] }) : null
|
|
13393
13637
|
] }) }),
|
|
13394
|
-
/* @__PURE__ */
|
|
13638
|
+
/* @__PURE__ */ jsx68("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
13395
13639
|
] });
|
|
13396
13640
|
};
|
|
13397
13641
|
|
|
@@ -13405,8 +13649,8 @@ import {
|
|
|
13405
13649
|
} from "reakit/Tooltip";
|
|
13406
13650
|
|
|
13407
13651
|
// src/components/Tooltip/Tooltip.styles.ts
|
|
13408
|
-
import { css as
|
|
13409
|
-
var TooltipContainer =
|
|
13652
|
+
import { css as css55 } from "@emotion/react";
|
|
13653
|
+
var TooltipContainer = css55`
|
|
13410
13654
|
border: 2px solid var(--gray-300);
|
|
13411
13655
|
border-radius: var(--rounded-base);
|
|
13412
13656
|
padding: var(--spacing-xs) var(--spacing-sm);
|
|
@@ -13414,28 +13658,28 @@ var TooltipContainer = css52`
|
|
|
13414
13658
|
font-size: var(--fs-xs);
|
|
13415
13659
|
background: var(--white);
|
|
13416
13660
|
`;
|
|
13417
|
-
var TooltipArrowStyles =
|
|
13661
|
+
var TooltipArrowStyles = css55`
|
|
13418
13662
|
svg {
|
|
13419
13663
|
fill: var(--gray-300);
|
|
13420
13664
|
}
|
|
13421
13665
|
`;
|
|
13422
13666
|
|
|
13423
13667
|
// src/components/Tooltip/Tooltip.tsx
|
|
13424
|
-
import { Fragment as Fragment9, jsx as
|
|
13668
|
+
import { Fragment as Fragment9, jsx as jsx69, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
|
|
13425
13669
|
function Tooltip({ children, title, placement = "bottom", visible, ...props }) {
|
|
13426
13670
|
const tooltip = useTooltipState({ placement });
|
|
13427
|
-
return /* @__PURE__ */
|
|
13428
|
-
/* @__PURE__ */
|
|
13429
|
-
|
|
13430
|
-
/* @__PURE__ */
|
|
13671
|
+
return !title ? children : /* @__PURE__ */ jsxs45(Fragment9, { children: [
|
|
13672
|
+
/* @__PURE__ */ jsx69(TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => React15.cloneElement(children, referenceProps) }),
|
|
13673
|
+
/* @__PURE__ */ jsxs45(ReakitTooltip, { ...tooltip, ...props, css: TooltipContainer, visible: visible != null ? visible : tooltip.visible, children: [
|
|
13674
|
+
/* @__PURE__ */ jsx69(TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
|
|
13431
13675
|
title
|
|
13432
13676
|
] })
|
|
13433
13677
|
] });
|
|
13434
13678
|
}
|
|
13435
13679
|
|
|
13436
13680
|
// src/components/ParameterInputs/styles/ParameterBindingButton.styles.ts
|
|
13437
|
-
import { css as
|
|
13438
|
-
var inputIconBtn =
|
|
13681
|
+
import { css as css56 } from "@emotion/react";
|
|
13682
|
+
var inputIconBtn = css56`
|
|
13439
13683
|
align-items: center;
|
|
13440
13684
|
border: none;
|
|
13441
13685
|
border-radius: var(--rounded-base);
|
|
@@ -13458,7 +13702,7 @@ var inputIconBtn = css53`
|
|
|
13458
13702
|
`;
|
|
13459
13703
|
|
|
13460
13704
|
// src/components/ParameterInputs/ConnectToDataElementButton.tsx
|
|
13461
|
-
import { jsx as
|
|
13705
|
+
import { jsx as jsx70, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
13462
13706
|
var ConnectToDataElementButton = ({
|
|
13463
13707
|
icon,
|
|
13464
13708
|
iconColor,
|
|
@@ -13468,7 +13712,7 @@ var ConnectToDataElementButton = ({
|
|
|
13468
13712
|
...props
|
|
13469
13713
|
}) => {
|
|
13470
13714
|
const title = isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
13471
|
-
return /* @__PURE__ */
|
|
13715
|
+
return /* @__PURE__ */ jsx70(Tooltip, { title, children: /* @__PURE__ */ jsxs46(
|
|
13472
13716
|
"button",
|
|
13473
13717
|
{
|
|
13474
13718
|
css: inputIconBtn,
|
|
@@ -13477,7 +13721,7 @@ var ConnectToDataElementButton = ({
|
|
|
13477
13721
|
"aria-disabled": isLocked,
|
|
13478
13722
|
...props,
|
|
13479
13723
|
children: [
|
|
13480
|
-
/* @__PURE__ */
|
|
13724
|
+
/* @__PURE__ */ jsx70(
|
|
13481
13725
|
Icon,
|
|
13482
13726
|
{
|
|
13483
13727
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -13513,8 +13757,8 @@ var useParameterShell = () => {
|
|
|
13513
13757
|
};
|
|
13514
13758
|
|
|
13515
13759
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
13516
|
-
import { css as
|
|
13517
|
-
var inputContainer2 =
|
|
13760
|
+
import { css as css57 } from "@emotion/react";
|
|
13761
|
+
var inputContainer2 = css57`
|
|
13518
13762
|
position: relative;
|
|
13519
13763
|
|
|
13520
13764
|
&:hover,
|
|
@@ -13526,14 +13770,14 @@ var inputContainer2 = css54`
|
|
|
13526
13770
|
}
|
|
13527
13771
|
}
|
|
13528
13772
|
`;
|
|
13529
|
-
var labelText2 =
|
|
13773
|
+
var labelText2 = css57`
|
|
13530
13774
|
align-items: center;
|
|
13531
13775
|
display: flex;
|
|
13532
13776
|
gap: var(--spacing-xs);
|
|
13533
13777
|
font-weight: var(--fw-regular);
|
|
13534
13778
|
margin: 0 0 var(--spacing-xs);
|
|
13535
13779
|
`;
|
|
13536
|
-
var input2 =
|
|
13780
|
+
var input2 = css57`
|
|
13537
13781
|
display: block;
|
|
13538
13782
|
appearance: none;
|
|
13539
13783
|
box-sizing: border-box;
|
|
@@ -13577,18 +13821,18 @@ var input2 = css54`
|
|
|
13577
13821
|
color: var(--gray-400);
|
|
13578
13822
|
}
|
|
13579
13823
|
`;
|
|
13580
|
-
var selectInput =
|
|
13824
|
+
var selectInput = css57`
|
|
13581
13825
|
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");
|
|
13582
13826
|
background-position: right var(--spacing-sm) center;
|
|
13583
13827
|
background-repeat: no-repeat;
|
|
13584
13828
|
background-size: 1rem;
|
|
13585
13829
|
padding-right: var(--spacing-xl);
|
|
13586
13830
|
`;
|
|
13587
|
-
var inputWrapper =
|
|
13831
|
+
var inputWrapper = css57`
|
|
13588
13832
|
display: flex; // used to correct overflow with chrome textarea
|
|
13589
13833
|
position: relative;
|
|
13590
13834
|
`;
|
|
13591
|
-
var inputIcon2 =
|
|
13835
|
+
var inputIcon2 = css57`
|
|
13592
13836
|
align-items: center;
|
|
13593
13837
|
background: var(--white);
|
|
13594
13838
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -13604,7 +13848,7 @@ var inputIcon2 = css54`
|
|
|
13604
13848
|
width: var(--spacing-lg);
|
|
13605
13849
|
z-index: var(--z-10);
|
|
13606
13850
|
`;
|
|
13607
|
-
var inputToggleLabel2 =
|
|
13851
|
+
var inputToggleLabel2 = css57`
|
|
13608
13852
|
align-items: center;
|
|
13609
13853
|
background: var(--white);
|
|
13610
13854
|
cursor: pointer;
|
|
@@ -13615,7 +13859,7 @@ var inputToggleLabel2 = css54`
|
|
|
13615
13859
|
min-height: var(--spacing-md);
|
|
13616
13860
|
position: relative;
|
|
13617
13861
|
`;
|
|
13618
|
-
var toggleInput2 =
|
|
13862
|
+
var toggleInput2 = css57`
|
|
13619
13863
|
appearance: none;
|
|
13620
13864
|
border: 1px solid var(--gray-300);
|
|
13621
13865
|
background: var(--white);
|
|
@@ -13654,7 +13898,7 @@ var toggleInput2 = css54`
|
|
|
13654
13898
|
border-color: var(--gray-300);
|
|
13655
13899
|
}
|
|
13656
13900
|
`;
|
|
13657
|
-
var inlineLabel2 =
|
|
13901
|
+
var inlineLabel2 = css57`
|
|
13658
13902
|
padding-left: var(--spacing-lg);
|
|
13659
13903
|
font-size: var(--fs-sm);
|
|
13660
13904
|
font-weight: var(--fw-regular);
|
|
@@ -13670,7 +13914,7 @@ var inlineLabel2 = css54`
|
|
|
13670
13914
|
}
|
|
13671
13915
|
}
|
|
13672
13916
|
`;
|
|
13673
|
-
var inputMenu =
|
|
13917
|
+
var inputMenu = css57`
|
|
13674
13918
|
background: none;
|
|
13675
13919
|
border: none;
|
|
13676
13920
|
padding: var(--spacing-2xs);
|
|
@@ -13686,14 +13930,14 @@ var inputMenu = css54`
|
|
|
13686
13930
|
background-color: var(--gray-200);
|
|
13687
13931
|
}
|
|
13688
13932
|
`;
|
|
13689
|
-
var textarea2 =
|
|
13933
|
+
var textarea2 = css57`
|
|
13690
13934
|
resize: vertical;
|
|
13691
13935
|
min-height: 2rem;
|
|
13692
13936
|
`;
|
|
13693
|
-
var imageWrapper =
|
|
13937
|
+
var imageWrapper = css57`
|
|
13694
13938
|
background: var(--white);
|
|
13695
13939
|
`;
|
|
13696
|
-
var img =
|
|
13940
|
+
var img = css57`
|
|
13697
13941
|
animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
13698
13942
|
object-fit: contain;
|
|
13699
13943
|
max-width: 100%;
|
|
@@ -13701,7 +13945,7 @@ var img = css54`
|
|
|
13701
13945
|
opacity: var(--opacity-0);
|
|
13702
13946
|
margin: var(--spacing-sm) auto 0;
|
|
13703
13947
|
`;
|
|
13704
|
-
var dataConnectButton =
|
|
13948
|
+
var dataConnectButton = css57`
|
|
13705
13949
|
align-items: center;
|
|
13706
13950
|
appearance: none;
|
|
13707
13951
|
box-sizing: border-box;
|
|
@@ -13736,7 +13980,7 @@ var dataConnectButton = css54`
|
|
|
13736
13980
|
pointer-events: none;
|
|
13737
13981
|
}
|
|
13738
13982
|
`;
|
|
13739
|
-
var linkParameterBtn =
|
|
13983
|
+
var linkParameterBtn = css57`
|
|
13740
13984
|
border-radius: var(--rounded-base);
|
|
13741
13985
|
background: var(--white);
|
|
13742
13986
|
border: none;
|
|
@@ -13748,10 +13992,10 @@ var linkParameterBtn = css54`
|
|
|
13748
13992
|
inset: 0 var(--spacing-base) 0 auto;
|
|
13749
13993
|
padding: 0 var(--spacing-base);
|
|
13750
13994
|
`;
|
|
13751
|
-
var linkParameterInput =
|
|
13995
|
+
var linkParameterInput = css57`
|
|
13752
13996
|
padding-right: calc(var(--spacing-2xl) + var(--spacing-base));
|
|
13753
13997
|
`;
|
|
13754
|
-
var linkParameterIcon =
|
|
13998
|
+
var linkParameterIcon = css57`
|
|
13755
13999
|
align-items: center;
|
|
13756
14000
|
color: var(--brand-secondary-3);
|
|
13757
14001
|
display: flex;
|
|
@@ -13766,7 +14010,7 @@ var linkParameterIcon = css54`
|
|
|
13766
14010
|
`;
|
|
13767
14011
|
|
|
13768
14012
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
13769
|
-
import { jsx as
|
|
14013
|
+
import { jsx as jsx71, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
13770
14014
|
function ParameterDataResource({
|
|
13771
14015
|
label,
|
|
13772
14016
|
labelLeadingIcon,
|
|
@@ -13776,12 +14020,12 @@ function ParameterDataResource({
|
|
|
13776
14020
|
disabled,
|
|
13777
14021
|
children
|
|
13778
14022
|
}) {
|
|
13779
|
-
return /* @__PURE__ */
|
|
13780
|
-
/* @__PURE__ */
|
|
14023
|
+
return /* @__PURE__ */ jsxs47("div", { "data-testid": "parameter-data-connect-button", children: [
|
|
14024
|
+
/* @__PURE__ */ jsxs47("span", { css: labelText2, children: [
|
|
13781
14025
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
13782
14026
|
label
|
|
13783
14027
|
] }),
|
|
13784
|
-
/* @__PURE__ */
|
|
14028
|
+
/* @__PURE__ */ jsxs47(
|
|
13785
14029
|
"button",
|
|
13786
14030
|
{
|
|
13787
14031
|
type: "button",
|
|
@@ -13790,30 +14034,30 @@ function ParameterDataResource({
|
|
|
13790
14034
|
disabled,
|
|
13791
14035
|
onClick: onConnectDatasource,
|
|
13792
14036
|
children: [
|
|
13793
|
-
/* @__PURE__ */
|
|
14037
|
+
/* @__PURE__ */ jsx71("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx71(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
13794
14038
|
children
|
|
13795
14039
|
]
|
|
13796
14040
|
}
|
|
13797
14041
|
),
|
|
13798
|
-
caption ? /* @__PURE__ */
|
|
14042
|
+
caption ? /* @__PURE__ */ jsx71(Caption, { children: caption }) : null
|
|
13799
14043
|
] });
|
|
13800
14044
|
}
|
|
13801
14045
|
|
|
13802
14046
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
13803
|
-
import { css as
|
|
13804
|
-
var ParameterDrawerHeaderContainer =
|
|
14047
|
+
import { css as css58 } from "@emotion/react";
|
|
14048
|
+
var ParameterDrawerHeaderContainer = css58`
|
|
13805
14049
|
align-items: center;
|
|
13806
14050
|
display: flex;
|
|
13807
14051
|
gap: var(--spacing-base);
|
|
13808
14052
|
justify-content: space-between;
|
|
13809
14053
|
margin-bottom: var(--spacing-sm);
|
|
13810
14054
|
`;
|
|
13811
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
14055
|
+
var ParameterDrawerHeaderTitleGroup = css58`
|
|
13812
14056
|
align-items: center;
|
|
13813
14057
|
display: flex;
|
|
13814
14058
|
gap: var(--spacing-sm);
|
|
13815
14059
|
`;
|
|
13816
|
-
var ParameterDrawerHeaderTitle =
|
|
14060
|
+
var ParameterDrawerHeaderTitle = css58`
|
|
13817
14061
|
text-overflow: ellipsis;
|
|
13818
14062
|
white-space: nowrap;
|
|
13819
14063
|
overflow: hidden;
|
|
@@ -13821,12 +14065,12 @@ var ParameterDrawerHeaderTitle = css55`
|
|
|
13821
14065
|
`;
|
|
13822
14066
|
|
|
13823
14067
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
13824
|
-
import { jsx as
|
|
14068
|
+
import { jsx as jsx72, jsxs as jsxs48 } from "@emotion/react/jsx-runtime";
|
|
13825
14069
|
var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
13826
|
-
return /* @__PURE__ */
|
|
13827
|
-
/* @__PURE__ */
|
|
14070
|
+
return /* @__PURE__ */ jsxs48("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
14071
|
+
/* @__PURE__ */ jsxs48("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
13828
14072
|
iconBeforeTitle,
|
|
13829
|
-
/* @__PURE__ */
|
|
14073
|
+
/* @__PURE__ */ jsx72(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
|
|
13830
14074
|
] }),
|
|
13831
14075
|
children
|
|
13832
14076
|
] });
|
|
@@ -13836,8 +14080,8 @@ var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
|
13836
14080
|
import { forwardRef as forwardRef7 } from "react";
|
|
13837
14081
|
|
|
13838
14082
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
13839
|
-
import { css as
|
|
13840
|
-
var fieldsetStyles =
|
|
14083
|
+
import { css as css59 } from "@emotion/react";
|
|
14084
|
+
var fieldsetStyles = css59`
|
|
13841
14085
|
&:disabled,
|
|
13842
14086
|
[readonly] {
|
|
13843
14087
|
pointer-events: none;
|
|
@@ -13848,7 +14092,7 @@ var fieldsetStyles = css56`
|
|
|
13848
14092
|
}
|
|
13849
14093
|
}
|
|
13850
14094
|
`;
|
|
13851
|
-
var fieldsetLegend2 =
|
|
14095
|
+
var fieldsetLegend2 = css59`
|
|
13852
14096
|
display: block;
|
|
13853
14097
|
font-weight: var(--fw-medium);
|
|
13854
14098
|
margin-bottom: var(--spacing-sm);
|
|
@@ -13856,11 +14100,11 @@ var fieldsetLegend2 = css56`
|
|
|
13856
14100
|
`;
|
|
13857
14101
|
|
|
13858
14102
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
13859
|
-
import { jsx as
|
|
14103
|
+
import { jsx as jsx73, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
13860
14104
|
var ParameterGroup = forwardRef7(
|
|
13861
14105
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
13862
|
-
return /* @__PURE__ */
|
|
13863
|
-
/* @__PURE__ */
|
|
14106
|
+
return /* @__PURE__ */ jsxs49("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
14107
|
+
/* @__PURE__ */ jsx73("legend", { css: fieldsetLegend2, children: legend }),
|
|
13864
14108
|
children
|
|
13865
14109
|
] });
|
|
13866
14110
|
}
|
|
@@ -13873,21 +14117,21 @@ import { forwardRef as forwardRef9, useCallback as useCallback3, useDeferredValu
|
|
|
13873
14117
|
import { useState as useState7 } from "react";
|
|
13874
14118
|
|
|
13875
14119
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
13876
|
-
import { jsx as
|
|
14120
|
+
import { jsx as jsx74 } from "@emotion/react/jsx-runtime";
|
|
13877
14121
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
13878
|
-
return !asSpan ? /* @__PURE__ */
|
|
14122
|
+
return !asSpan ? /* @__PURE__ */ jsx74("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx74("span", { "aria-labelledby": id, css: labelText2, children });
|
|
13879
14123
|
};
|
|
13880
14124
|
|
|
13881
14125
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
13882
14126
|
import { forwardRef as forwardRef8 } from "react";
|
|
13883
|
-
import { jsx as
|
|
14127
|
+
import { jsx as jsx75 } from "@emotion/react/jsx-runtime";
|
|
13884
14128
|
var ParameterMenuButton = forwardRef8(
|
|
13885
14129
|
({ label, children }, ref) => {
|
|
13886
|
-
return /* @__PURE__ */
|
|
14130
|
+
return /* @__PURE__ */ jsx75(
|
|
13887
14131
|
Menu,
|
|
13888
14132
|
{
|
|
13889
14133
|
menuLabel: `${label} menu`,
|
|
13890
|
-
menuTrigger: /* @__PURE__ */
|
|
14134
|
+
menuTrigger: /* @__PURE__ */ jsx75(
|
|
13891
14135
|
"button",
|
|
13892
14136
|
{
|
|
13893
14137
|
className: "parameter-menu",
|
|
@@ -13895,7 +14139,7 @@ var ParameterMenuButton = forwardRef8(
|
|
|
13895
14139
|
type: "button",
|
|
13896
14140
|
"aria-label": `${label} options`,
|
|
13897
14141
|
ref,
|
|
13898
|
-
children: /* @__PURE__ */
|
|
14142
|
+
children: /* @__PURE__ */ jsx75(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
13899
14143
|
}
|
|
13900
14144
|
),
|
|
13901
14145
|
children
|
|
@@ -13905,15 +14149,15 @@ var ParameterMenuButton = forwardRef8(
|
|
|
13905
14149
|
);
|
|
13906
14150
|
|
|
13907
14151
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
13908
|
-
import { css as
|
|
13909
|
-
var emptyParameterShell =
|
|
14152
|
+
import { css as css60 } from "@emotion/react";
|
|
14153
|
+
var emptyParameterShell = css60`
|
|
13910
14154
|
border-radius: var(--rounded-sm);
|
|
13911
14155
|
background: var(--white);
|
|
13912
14156
|
flex-grow: 1;
|
|
13913
14157
|
padding: var(--spacing-xs);
|
|
13914
14158
|
position: relative;
|
|
13915
14159
|
`;
|
|
13916
|
-
var emptyParameterShellText =
|
|
14160
|
+
var emptyParameterShellText = css60`
|
|
13917
14161
|
background: var(--brand-secondary-6);
|
|
13918
14162
|
border-radius: var(--rounded-sm);
|
|
13919
14163
|
padding: var(--spacing-sm);
|
|
@@ -13921,7 +14165,7 @@ var emptyParameterShellText = css57`
|
|
|
13921
14165
|
font-size: var(--fs-sm);
|
|
13922
14166
|
margin: 0;
|
|
13923
14167
|
`;
|
|
13924
|
-
var overrideMarker =
|
|
14168
|
+
var overrideMarker = css60`
|
|
13925
14169
|
border-radius: var(--rounded-sm);
|
|
13926
14170
|
border: 10px solid var(--gray-300);
|
|
13927
14171
|
border-left-color: transparent;
|
|
@@ -13932,7 +14176,7 @@ var overrideMarker = css57`
|
|
|
13932
14176
|
`;
|
|
13933
14177
|
|
|
13934
14178
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
13935
|
-
import { jsx as
|
|
14179
|
+
import { jsx as jsx76, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
13936
14180
|
var extractParameterProps = (props) => {
|
|
13937
14181
|
const {
|
|
13938
14182
|
id,
|
|
@@ -13941,6 +14185,8 @@ var extractParameterProps = (props) => {
|
|
|
13941
14185
|
captionTestId,
|
|
13942
14186
|
errorMessage,
|
|
13943
14187
|
errorTestId,
|
|
14188
|
+
infoMessage,
|
|
14189
|
+
warningMessage,
|
|
13944
14190
|
hiddenLabel,
|
|
13945
14191
|
labelLeadingIcon,
|
|
13946
14192
|
menuItems,
|
|
@@ -13957,6 +14203,8 @@ var extractParameterProps = (props) => {
|
|
|
13957
14203
|
caption,
|
|
13958
14204
|
captionTestId,
|
|
13959
14205
|
errorMessage,
|
|
14206
|
+
infoMessage,
|
|
14207
|
+
warningMessage,
|
|
13960
14208
|
errorTestId,
|
|
13961
14209
|
hiddenLabel,
|
|
13962
14210
|
labelLeadingIcon,
|
|
@@ -13975,6 +14223,8 @@ var ParameterShell = ({
|
|
|
13975
14223
|
hiddenLabel,
|
|
13976
14224
|
id,
|
|
13977
14225
|
errorMessage,
|
|
14226
|
+
warningMessage,
|
|
14227
|
+
infoMessage,
|
|
13978
14228
|
caption,
|
|
13979
14229
|
errorTestId,
|
|
13980
14230
|
captionTestId,
|
|
@@ -13988,18 +14238,18 @@ var ParameterShell = ({
|
|
|
13988
14238
|
const [manualErrorMessage, setManualErrorMessage] = useState7(void 0);
|
|
13989
14239
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
13990
14240
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
13991
|
-
return /* @__PURE__ */
|
|
13992
|
-
hiddenLabel || title ? null : /* @__PURE__ */
|
|
14241
|
+
return /* @__PURE__ */ jsxs50("div", { css: inputContainer2, ...props, children: [
|
|
14242
|
+
hiddenLabel || title ? null : /* @__PURE__ */ jsxs50(ParameterLabel, { id, css: labelText2, children: [
|
|
13993
14243
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
13994
14244
|
label
|
|
13995
14245
|
] }),
|
|
13996
|
-
!title ? null : /* @__PURE__ */
|
|
14246
|
+
!title ? null : /* @__PURE__ */ jsxs50(ParameterLabel, { id, asSpan: true, children: [
|
|
13997
14247
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
13998
14248
|
title
|
|
13999
14249
|
] }),
|
|
14000
|
-
/* @__PURE__ */
|
|
14001
|
-
menuItems ? /* @__PURE__ */
|
|
14002
|
-
/* @__PURE__ */
|
|
14250
|
+
/* @__PURE__ */ jsxs50("div", { css: inputWrapper, children: [
|
|
14251
|
+
menuItems ? /* @__PURE__ */ jsx76(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
14252
|
+
/* @__PURE__ */ jsx76(
|
|
14003
14253
|
ParameterShellContext.Provider,
|
|
14004
14254
|
{
|
|
14005
14255
|
value: {
|
|
@@ -14009,30 +14259,32 @@ var ParameterShell = ({
|
|
|
14009
14259
|
errorMessage: errorMessaging,
|
|
14010
14260
|
onManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
14011
14261
|
},
|
|
14012
|
-
children: /* @__PURE__ */
|
|
14262
|
+
children: /* @__PURE__ */ jsxs50(ParameterShellPlaceholder, { children: [
|
|
14013
14263
|
children,
|
|
14014
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
14264
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx76(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
14015
14265
|
] })
|
|
14016
14266
|
}
|
|
14017
14267
|
)
|
|
14018
14268
|
] }),
|
|
14019
|
-
caption ? /* @__PURE__ */
|
|
14020
|
-
errorMessaging ? /* @__PURE__ */
|
|
14269
|
+
caption ? /* @__PURE__ */ jsx76(Caption, { testId: captionTestId, children: caption }) : null,
|
|
14270
|
+
errorMessaging ? /* @__PURE__ */ jsx76(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null,
|
|
14271
|
+
warningMessage ? /* @__PURE__ */ jsx76(WarningMessage, { message: warningMessage }) : null,
|
|
14272
|
+
infoMessage ? /* @__PURE__ */ jsx76(InfoMessage, { message: infoMessage }) : null
|
|
14021
14273
|
] });
|
|
14022
14274
|
};
|
|
14023
14275
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
14024
|
-
return /* @__PURE__ */
|
|
14276
|
+
return /* @__PURE__ */ jsx76("div", { css: emptyParameterShell, children });
|
|
14025
14277
|
};
|
|
14026
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
14278
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx76(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx76("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx76("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
14027
14279
|
|
|
14028
14280
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
14029
|
-
import { Fragment as Fragment10, jsx as
|
|
14281
|
+
import { Fragment as Fragment10, jsx as jsx77, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
14030
14282
|
var ParameterImage = forwardRef9((props, ref) => {
|
|
14031
14283
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14032
|
-
return /* @__PURE__ */
|
|
14284
|
+
return /* @__PURE__ */ jsx77(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: /* @__PURE__ */ jsx77(ParameterImageInner, { ref, ...innerProps }) });
|
|
14033
14285
|
});
|
|
14034
14286
|
var BrokenImage = ({ ...props }) => {
|
|
14035
|
-
return /* @__PURE__ */
|
|
14287
|
+
return /* @__PURE__ */ jsxs51(
|
|
14036
14288
|
"svg",
|
|
14037
14289
|
{
|
|
14038
14290
|
width: "214",
|
|
@@ -14043,11 +14295,11 @@ var BrokenImage = ({ ...props }) => {
|
|
|
14043
14295
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
14044
14296
|
...props,
|
|
14045
14297
|
children: [
|
|
14046
|
-
/* @__PURE__ */
|
|
14047
|
-
/* @__PURE__ */
|
|
14048
|
-
/* @__PURE__ */
|
|
14049
|
-
/* @__PURE__ */
|
|
14050
|
-
/* @__PURE__ */
|
|
14298
|
+
/* @__PURE__ */ jsx77("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
14299
|
+
/* @__PURE__ */ jsx77("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
14300
|
+
/* @__PURE__ */ jsxs51("defs", { children: [
|
|
14301
|
+
/* @__PURE__ */ jsx77("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx77("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
14302
|
+
/* @__PURE__ */ jsx77(
|
|
14051
14303
|
"image",
|
|
14052
14304
|
{
|
|
14053
14305
|
id: "image0_761_4353",
|
|
@@ -14099,8 +14351,8 @@ var ParameterImageInner = forwardRef9(
|
|
|
14099
14351
|
useEffect8(() => {
|
|
14100
14352
|
updateImageSrc();
|
|
14101
14353
|
}, [value]);
|
|
14102
|
-
return /* @__PURE__ */
|
|
14103
|
-
/* @__PURE__ */
|
|
14354
|
+
return /* @__PURE__ */ jsxs51(Fragment10, { children: [
|
|
14355
|
+
/* @__PURE__ */ jsx77(
|
|
14104
14356
|
"input",
|
|
14105
14357
|
{
|
|
14106
14358
|
css: input2,
|
|
@@ -14112,8 +14364,8 @@ var ParameterImageInner = forwardRef9(
|
|
|
14112
14364
|
...props
|
|
14113
14365
|
}
|
|
14114
14366
|
),
|
|
14115
|
-
/* @__PURE__ */
|
|
14116
|
-
deferredValue && !errorMessage ? /* @__PURE__ */
|
|
14367
|
+
/* @__PURE__ */ jsxs51("div", { css: imageWrapper, children: [
|
|
14368
|
+
deferredValue && !errorMessage ? /* @__PURE__ */ jsx77(
|
|
14117
14369
|
"img",
|
|
14118
14370
|
{
|
|
14119
14371
|
src: deferredValue,
|
|
@@ -14123,24 +14375,24 @@ var ParameterImageInner = forwardRef9(
|
|
|
14123
14375
|
loading: "lazy"
|
|
14124
14376
|
}
|
|
14125
14377
|
) : null,
|
|
14126
|
-
deferredValue && errorMessage ? /* @__PURE__ */
|
|
14378
|
+
deferredValue && errorMessage ? /* @__PURE__ */ jsx77(BrokenImage, { css: img }) : null
|
|
14127
14379
|
] }),
|
|
14128
|
-
loading ? /* @__PURE__ */
|
|
14380
|
+
loading ? /* @__PURE__ */ jsx77(LoadingIcon, {}) : null
|
|
14129
14381
|
] });
|
|
14130
14382
|
}
|
|
14131
14383
|
);
|
|
14132
14384
|
|
|
14133
14385
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
14134
14386
|
import { forwardRef as forwardRef10 } from "react";
|
|
14135
|
-
import { jsx as
|
|
14387
|
+
import { jsx as jsx78 } from "@emotion/react/jsx-runtime";
|
|
14136
14388
|
var ParameterInput = forwardRef10((props, ref) => {
|
|
14137
14389
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14138
|
-
return /* @__PURE__ */
|
|
14390
|
+
return /* @__PURE__ */ jsx78(ParameterShell, { "data-test-id": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx78(ParameterInputInner, { ref, ...innerProps }) });
|
|
14139
14391
|
});
|
|
14140
14392
|
var ParameterInputInner = forwardRef10(
|
|
14141
14393
|
({ ...props }, ref) => {
|
|
14142
14394
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14143
|
-
return /* @__PURE__ */
|
|
14395
|
+
return /* @__PURE__ */ jsx78(
|
|
14144
14396
|
"input",
|
|
14145
14397
|
{
|
|
14146
14398
|
css: input2,
|
|
@@ -14157,18 +14409,18 @@ var ParameterInputInner = forwardRef10(
|
|
|
14157
14409
|
|
|
14158
14410
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
14159
14411
|
import { forwardRef as forwardRef11 } from "react";
|
|
14160
|
-
import { jsx as
|
|
14412
|
+
import { jsx as jsx79, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
14161
14413
|
var ParameterLink = forwardRef11(
|
|
14162
14414
|
({ buttonText = "Select project map node", disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
14163
14415
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14164
|
-
return /* @__PURE__ */
|
|
14416
|
+
return /* @__PURE__ */ jsx79(
|
|
14165
14417
|
ParameterShell,
|
|
14166
14418
|
{
|
|
14167
14419
|
"data-test-id": "link-parameter-editor",
|
|
14168
14420
|
...shellProps,
|
|
14169
14421
|
label: innerProps.value ? shellProps.label : "",
|
|
14170
14422
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
14171
|
-
children: !innerProps.value ? /* @__PURE__ */
|
|
14423
|
+
children: !innerProps.value ? /* @__PURE__ */ jsx79("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText }) : /* @__PURE__ */ jsx79(
|
|
14172
14424
|
ParameterLinkInner,
|
|
14173
14425
|
{
|
|
14174
14426
|
onConnectLink,
|
|
@@ -14184,8 +14436,8 @@ var ParameterLink = forwardRef11(
|
|
|
14184
14436
|
var ParameterLinkInner = forwardRef11(
|
|
14185
14437
|
({ externalLink, onConnectLink, disabled, ...props }, ref) => {
|
|
14186
14438
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14187
|
-
return /* @__PURE__ */
|
|
14188
|
-
/* @__PURE__ */
|
|
14439
|
+
return /* @__PURE__ */ jsxs52("div", { css: inputWrapper, children: [
|
|
14440
|
+
/* @__PURE__ */ jsx79(
|
|
14189
14441
|
"input",
|
|
14190
14442
|
{
|
|
14191
14443
|
type: "text",
|
|
@@ -14197,7 +14449,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14197
14449
|
...props
|
|
14198
14450
|
}
|
|
14199
14451
|
),
|
|
14200
|
-
/* @__PURE__ */
|
|
14452
|
+
/* @__PURE__ */ jsx79(
|
|
14201
14453
|
"button",
|
|
14202
14454
|
{
|
|
14203
14455
|
type: "button",
|
|
@@ -14208,7 +14460,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14208
14460
|
children: "edit"
|
|
14209
14461
|
}
|
|
14210
14462
|
),
|
|
14211
|
-
externalLink ? /* @__PURE__ */
|
|
14463
|
+
externalLink ? /* @__PURE__ */ jsx79(
|
|
14212
14464
|
"a",
|
|
14213
14465
|
{
|
|
14214
14466
|
href: externalLink,
|
|
@@ -14216,7 +14468,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14216
14468
|
title: "Open link in new tab",
|
|
14217
14469
|
target: "_blank",
|
|
14218
14470
|
rel: "noopener noreferrer",
|
|
14219
|
-
children: /* @__PURE__ */
|
|
14471
|
+
children: /* @__PURE__ */ jsx79(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
14220
14472
|
}
|
|
14221
14473
|
) : null
|
|
14222
14474
|
] });
|
|
@@ -14224,7 +14476,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14224
14476
|
);
|
|
14225
14477
|
|
|
14226
14478
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
14227
|
-
import { Fragment as Fragment11, jsx as
|
|
14479
|
+
import { Fragment as Fragment11, jsx as jsx80, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
14228
14480
|
var ParameterNameAndPublicIdInput = ({
|
|
14229
14481
|
id,
|
|
14230
14482
|
onBlur,
|
|
@@ -14250,8 +14502,8 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14250
14502
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
14251
14503
|
};
|
|
14252
14504
|
autoFocus == null ? void 0 : autoFocus();
|
|
14253
|
-
return /* @__PURE__ */
|
|
14254
|
-
/* @__PURE__ */
|
|
14505
|
+
return /* @__PURE__ */ jsxs53(Fragment11, { children: [
|
|
14506
|
+
/* @__PURE__ */ jsx80(
|
|
14255
14507
|
ParameterInput,
|
|
14256
14508
|
{
|
|
14257
14509
|
id: nameIdField,
|
|
@@ -14270,7 +14522,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14270
14522
|
value: values[nameIdField]
|
|
14271
14523
|
}
|
|
14272
14524
|
),
|
|
14273
|
-
/* @__PURE__ */
|
|
14525
|
+
/* @__PURE__ */ jsx80(
|
|
14274
14526
|
ParameterInput,
|
|
14275
14527
|
{
|
|
14276
14528
|
id: publicIdFieldName,
|
|
@@ -14284,11 +14536,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14284
14536
|
caption: publicIdCaption,
|
|
14285
14537
|
placeholder: publicIdPlaceholderText,
|
|
14286
14538
|
errorMessage: publicIdError,
|
|
14287
|
-
menuItems: /* @__PURE__ */
|
|
14539
|
+
menuItems: /* @__PURE__ */ jsx80(
|
|
14288
14540
|
MenuItem,
|
|
14289
14541
|
{
|
|
14290
14542
|
disabled: !values[publicIdFieldName],
|
|
14291
|
-
icon: /* @__PURE__ */
|
|
14543
|
+
icon: /* @__PURE__ */ jsx80(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
14292
14544
|
onClick: handleCopyPidFieldValue,
|
|
14293
14545
|
children: "Copy"
|
|
14294
14546
|
}
|
|
@@ -14296,13 +14548,13 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14296
14548
|
value: values[publicIdFieldName]
|
|
14297
14549
|
}
|
|
14298
14550
|
),
|
|
14299
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
14551
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx80(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
14300
14552
|
] });
|
|
14301
14553
|
};
|
|
14302
14554
|
|
|
14303
14555
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
14304
14556
|
import { forwardRef as forwardRef12 } from "react";
|
|
14305
|
-
import { Fragment as Fragment12, jsx as
|
|
14557
|
+
import { Fragment as Fragment12, jsx as jsx81, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
14306
14558
|
var ParameterRichText = forwardRef12(
|
|
14307
14559
|
({
|
|
14308
14560
|
label,
|
|
@@ -14316,7 +14568,7 @@ var ParameterRichText = forwardRef12(
|
|
|
14316
14568
|
menuItems,
|
|
14317
14569
|
...props
|
|
14318
14570
|
}, ref) => {
|
|
14319
|
-
return /* @__PURE__ */
|
|
14571
|
+
return /* @__PURE__ */ jsxs54(
|
|
14320
14572
|
ParameterShell,
|
|
14321
14573
|
{
|
|
14322
14574
|
"data-test-id": "parameter-input",
|
|
@@ -14329,8 +14581,8 @@ var ParameterRichText = forwardRef12(
|
|
|
14329
14581
|
captionTestId,
|
|
14330
14582
|
menuItems,
|
|
14331
14583
|
children: [
|
|
14332
|
-
/* @__PURE__ */
|
|
14333
|
-
menuItems ? /* @__PURE__ */
|
|
14584
|
+
/* @__PURE__ */ jsx81(ParameterRichTextInner, { ref, ...props }),
|
|
14585
|
+
menuItems ? /* @__PURE__ */ jsx81(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx81(Fragment12, { children: menuItems }) }) : null
|
|
14334
14586
|
]
|
|
14335
14587
|
}
|
|
14336
14588
|
);
|
|
@@ -14338,7 +14590,7 @@ var ParameterRichText = forwardRef12(
|
|
|
14338
14590
|
);
|
|
14339
14591
|
var ParameterRichTextInner = forwardRef12(({ ...props }, ref) => {
|
|
14340
14592
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14341
|
-
return /* @__PURE__ */
|
|
14593
|
+
return /* @__PURE__ */ jsx81(
|
|
14342
14594
|
"textarea",
|
|
14343
14595
|
{
|
|
14344
14596
|
css: [input2, textarea2],
|
|
@@ -14352,17 +14604,17 @@ var ParameterRichTextInner = forwardRef12(({ ...props }, ref) => {
|
|
|
14352
14604
|
|
|
14353
14605
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
14354
14606
|
import { forwardRef as forwardRef13 } from "react";
|
|
14355
|
-
import { jsx as
|
|
14607
|
+
import { jsx as jsx82, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
14356
14608
|
var ParameterSelect = forwardRef13(
|
|
14357
14609
|
({ defaultOption, options, ...props }, ref) => {
|
|
14358
14610
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14359
|
-
return /* @__PURE__ */
|
|
14611
|
+
return /* @__PURE__ */ jsx82(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx82(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
14360
14612
|
}
|
|
14361
14613
|
);
|
|
14362
14614
|
var ParameterSelectInner = forwardRef13(
|
|
14363
14615
|
({ defaultOption, options, ...props }, ref) => {
|
|
14364
14616
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14365
|
-
return /* @__PURE__ */
|
|
14617
|
+
return /* @__PURE__ */ jsxs55(
|
|
14366
14618
|
"select",
|
|
14367
14619
|
{
|
|
14368
14620
|
css: [input2, selectInput],
|
|
@@ -14371,10 +14623,10 @@ var ParameterSelectInner = forwardRef13(
|
|
|
14371
14623
|
ref,
|
|
14372
14624
|
...props,
|
|
14373
14625
|
children: [
|
|
14374
|
-
defaultOption ? /* @__PURE__ */
|
|
14626
|
+
defaultOption ? /* @__PURE__ */ jsx82("option", { value: "", children: defaultOption }) : null,
|
|
14375
14627
|
options.map((option) => {
|
|
14376
14628
|
var _a;
|
|
14377
|
-
return /* @__PURE__ */
|
|
14629
|
+
return /* @__PURE__ */ jsx82("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
14378
14630
|
})
|
|
14379
14631
|
]
|
|
14380
14632
|
}
|
|
@@ -14384,14 +14636,14 @@ var ParameterSelectInner = forwardRef13(
|
|
|
14384
14636
|
|
|
14385
14637
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
14386
14638
|
import { forwardRef as forwardRef14 } from "react";
|
|
14387
|
-
import { jsx as
|
|
14639
|
+
import { jsx as jsx83 } from "@emotion/react/jsx-runtime";
|
|
14388
14640
|
var ParameterTextarea = forwardRef14((props, ref) => {
|
|
14389
14641
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14390
|
-
return /* @__PURE__ */
|
|
14642
|
+
return /* @__PURE__ */ jsx83(ParameterShell, { "data-test-id": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx83(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
14391
14643
|
});
|
|
14392
14644
|
var ParameterTextareaInner = forwardRef14(({ ...props }, ref) => {
|
|
14393
14645
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14394
|
-
return /* @__PURE__ */
|
|
14646
|
+
return /* @__PURE__ */ jsx83(
|
|
14395
14647
|
"textarea",
|
|
14396
14648
|
{
|
|
14397
14649
|
css: [input2, textarea2],
|
|
@@ -14405,17 +14657,17 @@ var ParameterTextareaInner = forwardRef14(({ ...props }, ref) => {
|
|
|
14405
14657
|
|
|
14406
14658
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
14407
14659
|
import { forwardRef as forwardRef15 } from "react";
|
|
14408
|
-
import { jsx as
|
|
14660
|
+
import { jsx as jsx84, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
14409
14661
|
var ParameterToggle = forwardRef15((props, ref) => {
|
|
14410
14662
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14411
|
-
return /* @__PURE__ */
|
|
14663
|
+
return /* @__PURE__ */ jsx84(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx84(ParameterToggleInner, { ref, ...innerProps }) });
|
|
14412
14664
|
});
|
|
14413
14665
|
var ParameterToggleInner = forwardRef15(
|
|
14414
14666
|
({ ...props }, ref) => {
|
|
14415
14667
|
const { id, label } = useParameterShell();
|
|
14416
|
-
return /* @__PURE__ */
|
|
14417
|
-
/* @__PURE__ */
|
|
14418
|
-
/* @__PURE__ */
|
|
14668
|
+
return /* @__PURE__ */ jsxs56("label", { css: inputToggleLabel2, children: [
|
|
14669
|
+
/* @__PURE__ */ jsx84("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
14670
|
+
/* @__PURE__ */ jsx84("span", { css: inlineLabel2, children: label })
|
|
14419
14671
|
] });
|
|
14420
14672
|
}
|
|
14421
14673
|
);
|
|
@@ -14429,13 +14681,13 @@ import {
|
|
|
14429
14681
|
import { Portal as Portal2 } from "reakit/Portal";
|
|
14430
14682
|
|
|
14431
14683
|
// src/components/Popover/Popover.styles.ts
|
|
14432
|
-
import { css as
|
|
14433
|
-
var PopoverBtn =
|
|
14684
|
+
import { css as css61 } from "@emotion/react";
|
|
14685
|
+
var PopoverBtn = css61`
|
|
14434
14686
|
border: none;
|
|
14435
14687
|
background: none;
|
|
14436
14688
|
padding: 0;
|
|
14437
14689
|
`;
|
|
14438
|
-
var Popover =
|
|
14690
|
+
var Popover = css61`
|
|
14439
14691
|
border-left: var(--spacing-xs) solid var(--brand-secondary-3);
|
|
14440
14692
|
border-radius: var(--rounded-base);
|
|
14441
14693
|
box-shadow: var(--shadow-base);
|
|
@@ -14448,7 +14700,7 @@ var Popover = css58`
|
|
|
14448
14700
|
`;
|
|
14449
14701
|
|
|
14450
14702
|
// src/components/Popover/Popover.tsx
|
|
14451
|
-
import { Fragment as Fragment13, jsx as
|
|
14703
|
+
import { Fragment as Fragment13, jsx as jsx85, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
|
|
14452
14704
|
var Popover2 = ({
|
|
14453
14705
|
iconColor = "green",
|
|
14454
14706
|
buttonText,
|
|
@@ -14457,36 +14709,36 @@ var Popover2 = ({
|
|
|
14457
14709
|
children
|
|
14458
14710
|
}) => {
|
|
14459
14711
|
const popover = usePopoverState({ placement });
|
|
14460
|
-
return /* @__PURE__ */
|
|
14461
|
-
/* @__PURE__ */
|
|
14462
|
-
/* @__PURE__ */
|
|
14463
|
-
/* @__PURE__ */
|
|
14712
|
+
return /* @__PURE__ */ jsxs57(Fragment13, { children: [
|
|
14713
|
+
/* @__PURE__ */ jsxs57(PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, children: [
|
|
14714
|
+
/* @__PURE__ */ jsx85(Icon, { icon: "info", iconColor, size: "1rem" }),
|
|
14715
|
+
/* @__PURE__ */ jsx85("span", { hidden: true, children: buttonText })
|
|
14464
14716
|
] }),
|
|
14465
|
-
/* @__PURE__ */
|
|
14717
|
+
/* @__PURE__ */ jsx85(Portal2, { children: /* @__PURE__ */ jsx85(ReakitPopover, { css: Popover, ...popover, "aria-label": ariaLabel, children }) })
|
|
14466
14718
|
] });
|
|
14467
14719
|
};
|
|
14468
14720
|
|
|
14469
14721
|
// src/components/ProgressList/ProgressList.tsx
|
|
14470
|
-
import { css as
|
|
14722
|
+
import { css as css63 } from "@emotion/react";
|
|
14471
14723
|
import { useMemo as useMemo2 } from "react";
|
|
14472
14724
|
import { CgCheckO, CgRadioCheck, CgRecord } from "react-icons/cg";
|
|
14473
14725
|
|
|
14474
14726
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
14475
|
-
import { css as
|
|
14476
|
-
var progressListStyles =
|
|
14727
|
+
import { css as css62 } from "@emotion/react";
|
|
14728
|
+
var progressListStyles = css62`
|
|
14477
14729
|
display: flex;
|
|
14478
14730
|
flex-direction: column;
|
|
14479
14731
|
gap: var(--spacing-sm);
|
|
14480
14732
|
list-style-type: none;
|
|
14481
14733
|
`;
|
|
14482
|
-
var progressListItemStyles =
|
|
14734
|
+
var progressListItemStyles = css62`
|
|
14483
14735
|
display: flex;
|
|
14484
14736
|
gap: var(--spacing-base);
|
|
14485
14737
|
align-items: center;
|
|
14486
14738
|
`;
|
|
14487
14739
|
|
|
14488
14740
|
// src/components/ProgressList/ProgressList.tsx
|
|
14489
|
-
import { jsx as
|
|
14741
|
+
import { jsx as jsx86, jsxs as jsxs58 } from "@emotion/react/jsx-runtime";
|
|
14490
14742
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
14491
14743
|
const itemsWithStatus = useMemo2(() => {
|
|
14492
14744
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -14500,8 +14752,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
14500
14752
|
return { ...item, status };
|
|
14501
14753
|
});
|
|
14502
14754
|
}, [items, inProgressId]);
|
|
14503
|
-
return /* @__PURE__ */
|
|
14504
|
-
return /* @__PURE__ */
|
|
14755
|
+
return /* @__PURE__ */ jsx86("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
14756
|
+
return /* @__PURE__ */ jsx86(
|
|
14505
14757
|
ProgressListItem,
|
|
14506
14758
|
{
|
|
14507
14759
|
status,
|
|
@@ -14534,12 +14786,12 @@ var ProgressListItem = ({
|
|
|
14534
14786
|
}, [status, error]);
|
|
14535
14787
|
const statusStyles = useMemo2(() => {
|
|
14536
14788
|
if (error) {
|
|
14537
|
-
return errorLevel === "caution" ?
|
|
14789
|
+
return errorLevel === "caution" ? css63`
|
|
14538
14790
|
color: rgb(161, 98, 7);
|
|
14539
14791
|
& svg {
|
|
14540
14792
|
color: rgb(250, 204, 21);
|
|
14541
14793
|
}
|
|
14542
|
-
` :
|
|
14794
|
+
` : css63`
|
|
14543
14795
|
color: rgb(185, 28, 28);
|
|
14544
14796
|
& svg {
|
|
14545
14797
|
color: var(--brand-primary-2);
|
|
@@ -14547,40 +14799,221 @@ var ProgressListItem = ({
|
|
|
14547
14799
|
`;
|
|
14548
14800
|
}
|
|
14549
14801
|
const colorPerStatus = {
|
|
14550
|
-
completed:
|
|
14802
|
+
completed: css63`
|
|
14551
14803
|
opacity: 0.75;
|
|
14552
14804
|
`,
|
|
14553
|
-
inProgress:
|
|
14805
|
+
inProgress: css63`
|
|
14554
14806
|
-webkit-text-stroke-width: thin;
|
|
14555
14807
|
`,
|
|
14556
|
-
queued:
|
|
14808
|
+
queued: css63`
|
|
14557
14809
|
opacity: 0.5;
|
|
14558
14810
|
`
|
|
14559
14811
|
};
|
|
14560
14812
|
return colorPerStatus[status];
|
|
14561
14813
|
}, [status, error, errorLevel]);
|
|
14562
|
-
return /* @__PURE__ */
|
|
14563
|
-
/* @__PURE__ */
|
|
14564
|
-
/* @__PURE__ */
|
|
14814
|
+
return /* @__PURE__ */ jsxs58("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
14815
|
+
/* @__PURE__ */ jsx86(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx86("div", { children: /* @__PURE__ */ jsx86(Icon2, { size: 20 }) }) }),
|
|
14816
|
+
/* @__PURE__ */ jsxs58("div", { children: [
|
|
14565
14817
|
children,
|
|
14566
|
-
/* @__PURE__ */
|
|
14818
|
+
/* @__PURE__ */ jsx86("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
14567
14819
|
] })
|
|
14568
14820
|
] });
|
|
14569
14821
|
};
|
|
14570
14822
|
|
|
14823
|
+
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
14824
|
+
import { css as css65 } from "@emotion/react";
|
|
14825
|
+
import { useCallback as useCallback4, useMemo as useMemo3 } from "react";
|
|
14826
|
+
import { CgCheck as CgCheck3 } from "react-icons/cg";
|
|
14827
|
+
|
|
14828
|
+
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
14829
|
+
import { css as css64 } from "@emotion/react";
|
|
14830
|
+
var segmentedControlStyles = css64`
|
|
14831
|
+
--segmented-control-rounded-value: var(--rounded-base);
|
|
14832
|
+
--segmented-control-border-width: 1px;
|
|
14833
|
+
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
14834
|
+
--segmented-control-first-border-radius: var(--segmented-control-rounded-value) 0 0
|
|
14835
|
+
var(--segmented-control-rounded-value);
|
|
14836
|
+
--segmented-control-last-border-radius: 0 var(--segmented-control-rounded-value)
|
|
14837
|
+
var(--segmented-control-rounded-value) 0;
|
|
14838
|
+
|
|
14839
|
+
position: relative;
|
|
14840
|
+
display: flex;
|
|
14841
|
+
justify-content: flex-start;
|
|
14842
|
+
width: fit-content;
|
|
14843
|
+
background-color: var(--gray-300);
|
|
14844
|
+
padding: var(--segmented-control-border-width);
|
|
14845
|
+
gap: var(--segmented-control-border-width);
|
|
14846
|
+
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
14847
|
+
font-size: var(--fs-xs);
|
|
14848
|
+
`;
|
|
14849
|
+
var segmentedControlVerticalStyles = css64`
|
|
14850
|
+
flex-direction: column;
|
|
14851
|
+
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
14852
|
+
var(--segmented-control-rounded-value) 0 0;
|
|
14853
|
+
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
14854
|
+
var(--segmented-control-rounded-value);
|
|
14855
|
+
`;
|
|
14856
|
+
var segmentedControlItemStyles = css64`
|
|
14857
|
+
&:first-of-type label {
|
|
14858
|
+
border-radius: var(--segmented-control-first-border-radius);
|
|
14859
|
+
}
|
|
14860
|
+
&:last-of-type label {
|
|
14861
|
+
border-radius: var(--segmented-control-last-border-radius);
|
|
14862
|
+
}
|
|
14863
|
+
`;
|
|
14864
|
+
var segmentedControlInputStyles = css64`
|
|
14865
|
+
clip: rect(0, 0, 0, 0);
|
|
14866
|
+
position: absolute;
|
|
14867
|
+
width: 1px;
|
|
14868
|
+
height: 1px;
|
|
14869
|
+
overflow: hidden;
|
|
14870
|
+
`;
|
|
14871
|
+
var segmentedControlLabelStyles = css64`
|
|
14872
|
+
position: relative;
|
|
14873
|
+
display: flex;
|
|
14874
|
+
align-items: center;
|
|
14875
|
+
justify-content: center;
|
|
14876
|
+
height: 2rem;
|
|
14877
|
+
padding-inline: var(--spacing-base);
|
|
14878
|
+
background-color: white;
|
|
14879
|
+
transition-property: background-color, color, box-shadow;
|
|
14880
|
+
transition-duration: var(--duration-xfast);
|
|
14881
|
+
transition-timing-function: ease-in-out;
|
|
14882
|
+
z-index: 1;
|
|
14883
|
+
cursor: pointer;
|
|
14884
|
+
|
|
14885
|
+
&:has(:checked:not(:disabled)) {
|
|
14886
|
+
background-color: var(--segmented-control-selected-color);
|
|
14887
|
+
outline: var(--segmented-control-border-width) solid var(--segmented-control-selected-color);
|
|
14888
|
+
box-shadow: 0 0.43em 1.7em 0 rgba(0, 0, 0, 0.15);
|
|
14889
|
+
color: white;
|
|
14890
|
+
-webkit-text-stroke-width: thin;
|
|
14891
|
+
z-index: 0;
|
|
14892
|
+
}
|
|
14893
|
+
|
|
14894
|
+
&:hover:not(:has(:disabled, :checked)) {
|
|
14895
|
+
background-color: var(--gray-100);
|
|
14896
|
+
}
|
|
14897
|
+
|
|
14898
|
+
&:has(:disabled) {
|
|
14899
|
+
color: var(--gray-400);
|
|
14900
|
+
cursor: default;
|
|
14901
|
+
}
|
|
14902
|
+
|
|
14903
|
+
&:has(:checked:disabled) {
|
|
14904
|
+
color: var(--gray-50);
|
|
14905
|
+
background-color: var(--gray-400);
|
|
14906
|
+
}
|
|
14907
|
+
`;
|
|
14908
|
+
var segmentedControlLabelIconOnlyStyles = css64`
|
|
14909
|
+
padding-inline: 0.5em;
|
|
14910
|
+
`;
|
|
14911
|
+
var segmentedControlLabelCheckStyles = css64`
|
|
14912
|
+
opacity: 0.5;
|
|
14913
|
+
`;
|
|
14914
|
+
var segmentedControlLabelContentStyles = css64`
|
|
14915
|
+
display: flex;
|
|
14916
|
+
align-items: center;
|
|
14917
|
+
justify-content: center;
|
|
14918
|
+
gap: var(--spacing-sm);
|
|
14919
|
+
height: 100%;
|
|
14920
|
+
`;
|
|
14921
|
+
var segmentedControlLabelTextStyles = css64``;
|
|
14922
|
+
|
|
14923
|
+
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
14924
|
+
import { jsx as jsx87, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
|
|
14925
|
+
var SegmentedControl = ({
|
|
14926
|
+
name,
|
|
14927
|
+
options,
|
|
14928
|
+
value,
|
|
14929
|
+
onChange,
|
|
14930
|
+
noCheckmark = false,
|
|
14931
|
+
disabled = false,
|
|
14932
|
+
orientation = "horizontal",
|
|
14933
|
+
size = "md",
|
|
14934
|
+
...props
|
|
14935
|
+
}) => {
|
|
14936
|
+
const onOptionChange = useCallback4(
|
|
14937
|
+
(event) => {
|
|
14938
|
+
if (event.target.checked) {
|
|
14939
|
+
onChange == null ? void 0 : onChange(options[parseInt(event.target.value)].value);
|
|
14940
|
+
}
|
|
14941
|
+
},
|
|
14942
|
+
[options, onChange]
|
|
14943
|
+
);
|
|
14944
|
+
const sizeStyles = useMemo3(() => {
|
|
14945
|
+
const map = {
|
|
14946
|
+
sm: css65({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
14947
|
+
md: css65({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
14948
|
+
lg: css65({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
|
|
14949
|
+
};
|
|
14950
|
+
return map[size];
|
|
14951
|
+
}, [size]);
|
|
14952
|
+
const isIconOnly = useMemo3(() => {
|
|
14953
|
+
return options.every((option) => option.icon && !option.label);
|
|
14954
|
+
}, [options]);
|
|
14955
|
+
return /* @__PURE__ */ jsx87(
|
|
14956
|
+
"div",
|
|
14957
|
+
{
|
|
14958
|
+
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
14959
|
+
...props,
|
|
14960
|
+
children: options.map((option, index) => {
|
|
14961
|
+
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
14962
|
+
const isDisabled = disabled || option.disabled;
|
|
14963
|
+
return /* @__PURE__ */ jsx87(
|
|
14964
|
+
Tooltip,
|
|
14965
|
+
{
|
|
14966
|
+
title: isDisabled || !option.tooltip ? "" : option.tooltip,
|
|
14967
|
+
children: /* @__PURE__ */ jsx87("div", { css: segmentedControlItemStyles, children: /* @__PURE__ */ jsxs59(
|
|
14968
|
+
"label",
|
|
14969
|
+
{
|
|
14970
|
+
css: [
|
|
14971
|
+
segmentedControlLabelStyles,
|
|
14972
|
+
sizeStyles,
|
|
14973
|
+
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
14974
|
+
],
|
|
14975
|
+
children: [
|
|
14976
|
+
/* @__PURE__ */ jsx87(
|
|
14977
|
+
"input",
|
|
14978
|
+
{
|
|
14979
|
+
css: segmentedControlInputStyles,
|
|
14980
|
+
type: "radio",
|
|
14981
|
+
name,
|
|
14982
|
+
value: index,
|
|
14983
|
+
checked: option.value === value,
|
|
14984
|
+
onChange: onOptionChange,
|
|
14985
|
+
disabled: isDisabled
|
|
14986
|
+
}
|
|
14987
|
+
),
|
|
14988
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx87(CgCheck3, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
14989
|
+
/* @__PURE__ */ jsxs59("span", { css: segmentedControlLabelContentStyles, children: [
|
|
14990
|
+
!option.icon ? null : /* @__PURE__ */ jsx87(option.icon, { size: "1.5em" }),
|
|
14991
|
+
!text ? null : /* @__PURE__ */ jsx87("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
14992
|
+
] })
|
|
14993
|
+
]
|
|
14994
|
+
}
|
|
14995
|
+
) })
|
|
14996
|
+
},
|
|
14997
|
+
JSON.stringify(option.value)
|
|
14998
|
+
);
|
|
14999
|
+
})
|
|
15000
|
+
}
|
|
15001
|
+
);
|
|
15002
|
+
};
|
|
15003
|
+
|
|
14571
15004
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
14572
|
-
import { css as
|
|
15005
|
+
import { css as css66, keyframes as keyframes4 } from "@emotion/react";
|
|
14573
15006
|
var lightFadingOut = keyframes4`
|
|
14574
15007
|
from { opacity: 0.1; }
|
|
14575
15008
|
to { opacity: 0.025; }
|
|
14576
15009
|
`;
|
|
14577
|
-
var skeletonStyles =
|
|
15010
|
+
var skeletonStyles = css66`
|
|
14578
15011
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
14579
15012
|
background-color: var(--gray-900);
|
|
14580
15013
|
`;
|
|
14581
15014
|
|
|
14582
15015
|
// src/components/Skeleton/Skeleton.tsx
|
|
14583
|
-
import { jsx as
|
|
15016
|
+
import { jsx as jsx88 } from "@emotion/react/jsx-runtime";
|
|
14584
15017
|
var Skeleton = ({
|
|
14585
15018
|
width = "100%",
|
|
14586
15019
|
height = "1.25rem",
|
|
@@ -14588,7 +15021,7 @@ var Skeleton = ({
|
|
|
14588
15021
|
circle = false,
|
|
14589
15022
|
children,
|
|
14590
15023
|
...otherProps
|
|
14591
|
-
}) => /* @__PURE__ */
|
|
15024
|
+
}) => /* @__PURE__ */ jsx88(
|
|
14592
15025
|
"div",
|
|
14593
15026
|
{
|
|
14594
15027
|
css: [
|
|
@@ -14608,11 +15041,11 @@ var Skeleton = ({
|
|
|
14608
15041
|
);
|
|
14609
15042
|
|
|
14610
15043
|
// src/components/Switch/Switch.tsx
|
|
14611
|
-
import * as
|
|
15044
|
+
import * as React18 from "react";
|
|
14612
15045
|
|
|
14613
15046
|
// src/components/Switch/Switch.styles.ts
|
|
14614
|
-
import { css as
|
|
14615
|
-
var SwitchInputContainer =
|
|
15047
|
+
import { css as css67 } from "@emotion/react";
|
|
15048
|
+
var SwitchInputContainer = css67`
|
|
14616
15049
|
cursor: pointer;
|
|
14617
15050
|
display: inline-block;
|
|
14618
15051
|
position: relative;
|
|
@@ -14621,7 +15054,7 @@ var SwitchInputContainer = css62`
|
|
|
14621
15054
|
vertical-align: middle;
|
|
14622
15055
|
user-select: none;
|
|
14623
15056
|
`;
|
|
14624
|
-
var SwitchInput =
|
|
15057
|
+
var SwitchInput = css67`
|
|
14625
15058
|
appearance: none;
|
|
14626
15059
|
border-radius: var(--rounded-full);
|
|
14627
15060
|
background-color: var(--white);
|
|
@@ -14659,7 +15092,7 @@ var SwitchInput = css62`
|
|
|
14659
15092
|
cursor: not-allowed;
|
|
14660
15093
|
}
|
|
14661
15094
|
`;
|
|
14662
|
-
var SwitchInputDisabled =
|
|
15095
|
+
var SwitchInputDisabled = css67`
|
|
14663
15096
|
opacity: var(--opacity-50);
|
|
14664
15097
|
cursor: not-allowed;
|
|
14665
15098
|
|
|
@@ -14667,7 +15100,7 @@ var SwitchInputDisabled = css62`
|
|
|
14667
15100
|
cursor: not-allowed;
|
|
14668
15101
|
}
|
|
14669
15102
|
`;
|
|
14670
|
-
var SwitchInputLabel =
|
|
15103
|
+
var SwitchInputLabel = css67`
|
|
14671
15104
|
align-items: center;
|
|
14672
15105
|
color: var(--brand-secondary-1);
|
|
14673
15106
|
display: inline-flex;
|
|
@@ -14689,98 +15122,98 @@ var SwitchInputLabel = css62`
|
|
|
14689
15122
|
top: 0;
|
|
14690
15123
|
}
|
|
14691
15124
|
`;
|
|
14692
|
-
var SwitchText =
|
|
15125
|
+
var SwitchText = css67`
|
|
14693
15126
|
color: var(--gray-500);
|
|
14694
15127
|
font-size: var(--fs-sm);
|
|
14695
15128
|
padding-inline: var(--spacing-2xl) 0;
|
|
14696
15129
|
`;
|
|
14697
15130
|
|
|
14698
15131
|
// src/components/Switch/Switch.tsx
|
|
14699
|
-
import { Fragment as Fragment14, jsx as
|
|
14700
|
-
var Switch =
|
|
15132
|
+
import { Fragment as Fragment14, jsx as jsx89, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
|
|
15133
|
+
var Switch = React18.forwardRef(
|
|
14701
15134
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
14702
15135
|
let additionalText = infoText;
|
|
14703
15136
|
if (infoText && toggleText) {
|
|
14704
15137
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
14705
15138
|
}
|
|
14706
|
-
return /* @__PURE__ */
|
|
14707
|
-
/* @__PURE__ */
|
|
14708
|
-
/* @__PURE__ */
|
|
14709
|
-
/* @__PURE__ */
|
|
15139
|
+
return /* @__PURE__ */ jsxs60(Fragment14, { children: [
|
|
15140
|
+
/* @__PURE__ */ jsxs60("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
15141
|
+
/* @__PURE__ */ jsx89("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
15142
|
+
/* @__PURE__ */ jsx89("span", { css: SwitchInputLabel, children: label })
|
|
14710
15143
|
] }),
|
|
14711
|
-
additionalText ? /* @__PURE__ */
|
|
15144
|
+
additionalText ? /* @__PURE__ */ jsx89("p", { css: SwitchText, children: additionalText }) : null,
|
|
14712
15145
|
children
|
|
14713
15146
|
] });
|
|
14714
15147
|
}
|
|
14715
15148
|
);
|
|
14716
15149
|
|
|
14717
15150
|
// src/components/Table/Table.tsx
|
|
14718
|
-
import * as
|
|
15151
|
+
import * as React19 from "react";
|
|
14719
15152
|
|
|
14720
15153
|
// src/components/Table/Table.styles.ts
|
|
14721
|
-
import { css as
|
|
14722
|
-
var table =
|
|
15154
|
+
import { css as css68 } from "@emotion/react";
|
|
15155
|
+
var table = css68`
|
|
14723
15156
|
border-bottom: 1px solid var(--gray-400);
|
|
14724
15157
|
border-collapse: collapse;
|
|
14725
15158
|
min-width: 100%;
|
|
14726
15159
|
table-layout: auto;
|
|
14727
15160
|
`;
|
|
14728
|
-
var tableHead =
|
|
15161
|
+
var tableHead = css68`
|
|
14729
15162
|
background: var(--gray-100);
|
|
14730
15163
|
color: var(--brand-secondary-1);
|
|
14731
15164
|
text-align: left;
|
|
14732
15165
|
`;
|
|
14733
|
-
var tableRow =
|
|
15166
|
+
var tableRow = css68`
|
|
14734
15167
|
border-bottom: 1px solid var(--gray-200);
|
|
14735
15168
|
`;
|
|
14736
|
-
var tableCellHead =
|
|
15169
|
+
var tableCellHead = css68`
|
|
14737
15170
|
font-size: var(--fs-sm);
|
|
14738
15171
|
padding: var(--spacing-base) var(--spacing-md);
|
|
14739
15172
|
text-transform: uppercase;
|
|
14740
15173
|
font-weight: var(--fw-bold);
|
|
14741
15174
|
`;
|
|
14742
|
-
var tableCellData =
|
|
15175
|
+
var tableCellData = css68`
|
|
14743
15176
|
padding: var(--spacing-base) var(--spacing-md);
|
|
14744
15177
|
`;
|
|
14745
15178
|
|
|
14746
15179
|
// src/components/Table/Table.tsx
|
|
14747
|
-
import { jsx as
|
|
14748
|
-
var Table =
|
|
14749
|
-
return /* @__PURE__ */
|
|
15180
|
+
import { jsx as jsx90 } from "@emotion/react/jsx-runtime";
|
|
15181
|
+
var Table = React19.forwardRef(({ children, ...otherProps }, ref) => {
|
|
15182
|
+
return /* @__PURE__ */ jsx90("table", { ref, css: table, ...otherProps, children });
|
|
14750
15183
|
});
|
|
14751
|
-
var TableHead =
|
|
15184
|
+
var TableHead = React19.forwardRef(
|
|
14752
15185
|
({ children, ...otherProps }, ref) => {
|
|
14753
|
-
return /* @__PURE__ */
|
|
15186
|
+
return /* @__PURE__ */ jsx90("thead", { ref, css: tableHead, ...otherProps, children });
|
|
14754
15187
|
}
|
|
14755
15188
|
);
|
|
14756
|
-
var TableBody =
|
|
15189
|
+
var TableBody = React19.forwardRef(
|
|
14757
15190
|
({ children, ...otherProps }, ref) => {
|
|
14758
|
-
return /* @__PURE__ */
|
|
15191
|
+
return /* @__PURE__ */ jsx90("tbody", { ref, ...otherProps, children });
|
|
14759
15192
|
}
|
|
14760
15193
|
);
|
|
14761
|
-
var TableFoot =
|
|
15194
|
+
var TableFoot = React19.forwardRef(
|
|
14762
15195
|
({ children, ...otherProps }, ref) => {
|
|
14763
|
-
return /* @__PURE__ */
|
|
15196
|
+
return /* @__PURE__ */ jsx90("tfoot", { ref, ...otherProps, children });
|
|
14764
15197
|
}
|
|
14765
15198
|
);
|
|
14766
|
-
var TableRow =
|
|
15199
|
+
var TableRow = React19.forwardRef(
|
|
14767
15200
|
({ children, ...otherProps }, ref) => {
|
|
14768
|
-
return /* @__PURE__ */
|
|
15201
|
+
return /* @__PURE__ */ jsx90("tr", { ref, css: tableRow, ...otherProps, children });
|
|
14769
15202
|
}
|
|
14770
15203
|
);
|
|
14771
|
-
var TableCellHead =
|
|
15204
|
+
var TableCellHead = React19.forwardRef(
|
|
14772
15205
|
({ children, ...otherProps }, ref) => {
|
|
14773
|
-
return /* @__PURE__ */
|
|
15206
|
+
return /* @__PURE__ */ jsx90("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
14774
15207
|
}
|
|
14775
15208
|
);
|
|
14776
|
-
var TableCellData =
|
|
15209
|
+
var TableCellData = React19.forwardRef(
|
|
14777
15210
|
({ children, ...otherProps }, ref) => {
|
|
14778
|
-
return /* @__PURE__ */
|
|
15211
|
+
return /* @__PURE__ */ jsx90("td", { ref, css: tableCellData, ...otherProps, children });
|
|
14779
15212
|
}
|
|
14780
15213
|
);
|
|
14781
15214
|
|
|
14782
15215
|
// src/components/Tabs/Tabs.tsx
|
|
14783
|
-
import { createContext as createContext6, useContext as useContext7, useEffect as useEffect9, useMemo as
|
|
15216
|
+
import { createContext as createContext6, useContext as useContext7, useEffect as useEffect9, useMemo as useMemo4 } from "react";
|
|
14784
15217
|
import {
|
|
14785
15218
|
Tab as ReakitTab,
|
|
14786
15219
|
TabList as ReakitTabList,
|
|
@@ -14789,8 +15222,8 @@ import {
|
|
|
14789
15222
|
} from "reakit/Tab";
|
|
14790
15223
|
|
|
14791
15224
|
// src/components/Tabs/Tabs.styles.ts
|
|
14792
|
-
import { css as
|
|
14793
|
-
var tabButtonStyles =
|
|
15225
|
+
import { css as css69 } from "@emotion/react";
|
|
15226
|
+
var tabButtonStyles = css69`
|
|
14794
15227
|
align-items: center;
|
|
14795
15228
|
border: 0;
|
|
14796
15229
|
height: 2.5rem;
|
|
@@ -14807,14 +15240,14 @@ var tabButtonStyles = css64`
|
|
|
14807
15240
|
-webkit-text-stroke-width: thin;
|
|
14808
15241
|
}
|
|
14809
15242
|
`;
|
|
14810
|
-
var tabButtonGroupStyles =
|
|
15243
|
+
var tabButtonGroupStyles = css69`
|
|
14811
15244
|
display: flex;
|
|
14812
15245
|
gap: var(--spacing-base);
|
|
14813
15246
|
border-bottom: 1px solid var(--gray-300);
|
|
14814
15247
|
`;
|
|
14815
15248
|
|
|
14816
15249
|
// src/components/Tabs/Tabs.tsx
|
|
14817
|
-
import { jsx as
|
|
15250
|
+
import { jsx as jsx91 } from "@emotion/react/jsx-runtime";
|
|
14818
15251
|
var CurrentTabContext = createContext6(null);
|
|
14819
15252
|
var useCurrentTab = () => {
|
|
14820
15253
|
const context = useContext7(CurrentTabContext);
|
|
@@ -14824,7 +15257,7 @@ var useCurrentTab = () => {
|
|
|
14824
15257
|
return context;
|
|
14825
15258
|
};
|
|
14826
15259
|
var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...props }) => {
|
|
14827
|
-
const selected =
|
|
15260
|
+
const selected = useMemo4(() => {
|
|
14828
15261
|
if (selectedId)
|
|
14829
15262
|
return selectedId;
|
|
14830
15263
|
return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
|
|
@@ -14843,24 +15276,24 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
14843
15276
|
tab.setSelectedId(selected);
|
|
14844
15277
|
}
|
|
14845
15278
|
}, [selected]);
|
|
14846
|
-
return /* @__PURE__ */
|
|
15279
|
+
return /* @__PURE__ */ jsx91(CurrentTabContext.Provider, { value: tab, children });
|
|
14847
15280
|
};
|
|
14848
15281
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
14849
15282
|
const currentTab = useCurrentTab();
|
|
14850
|
-
return /* @__PURE__ */
|
|
15283
|
+
return /* @__PURE__ */ jsx91(ReakitTabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
14851
15284
|
};
|
|
14852
15285
|
var TabButton = ({ children, id, ...props }) => {
|
|
14853
15286
|
const currentTab = useCurrentTab();
|
|
14854
|
-
return /* @__PURE__ */
|
|
15287
|
+
return /* @__PURE__ */ jsx91(ReakitTab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
14855
15288
|
};
|
|
14856
15289
|
var TabContent = ({ children, ...props }) => {
|
|
14857
15290
|
const currentTab = useCurrentTab();
|
|
14858
|
-
return /* @__PURE__ */
|
|
15291
|
+
return /* @__PURE__ */ jsx91(ReakitTabPanel, { ...props, ...currentTab, children });
|
|
14859
15292
|
};
|
|
14860
15293
|
|
|
14861
15294
|
// src/components/Validation/StatusBullet.styles.ts
|
|
14862
|
-
import { css as
|
|
14863
|
-
var StatusBulletContainer =
|
|
15295
|
+
import { css as css70 } from "@emotion/react";
|
|
15296
|
+
var StatusBulletContainer = css70`
|
|
14864
15297
|
align-items: center;
|
|
14865
15298
|
align-self: center;
|
|
14866
15299
|
color: var(--gray-500);
|
|
@@ -14877,51 +15310,51 @@ var StatusBulletContainer = css65`
|
|
|
14877
15310
|
display: block;
|
|
14878
15311
|
}
|
|
14879
15312
|
`;
|
|
14880
|
-
var StatusBulletBase =
|
|
15313
|
+
var StatusBulletBase = css70`
|
|
14881
15314
|
font-size: var(--fs-sm);
|
|
14882
15315
|
&:before {
|
|
14883
15316
|
width: var(--fs-xs);
|
|
14884
15317
|
height: var(--fs-xs);
|
|
14885
15318
|
}
|
|
14886
15319
|
`;
|
|
14887
|
-
var StatusBulletSmall =
|
|
15320
|
+
var StatusBulletSmall = css70`
|
|
14888
15321
|
font-size: var(--fs-xs);
|
|
14889
15322
|
&:before {
|
|
14890
15323
|
width: var(--fs-xxs);
|
|
14891
15324
|
height: var(--fs-xxs);
|
|
14892
15325
|
}
|
|
14893
15326
|
`;
|
|
14894
|
-
var StatusDraft =
|
|
15327
|
+
var StatusDraft = css70`
|
|
14895
15328
|
&:before {
|
|
14896
15329
|
background: var(--white);
|
|
14897
15330
|
box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
|
|
14898
15331
|
}
|
|
14899
15332
|
`;
|
|
14900
|
-
var StatusModified =
|
|
15333
|
+
var StatusModified = css70`
|
|
14901
15334
|
&:before {
|
|
14902
15335
|
background: linear-gradient(to right, var(--white) 50%, var(--brand-primary-1) 50% 100%);
|
|
14903
15336
|
box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
|
|
14904
15337
|
}
|
|
14905
15338
|
`;
|
|
14906
|
-
var StatusError =
|
|
15339
|
+
var StatusError = css70`
|
|
14907
15340
|
color: var(--error);
|
|
14908
15341
|
&:before {
|
|
14909
15342
|
background: linear-gradient(120deg, var(--error) 40%, var(--white) 50%, var(--error) 60%);
|
|
14910
15343
|
}
|
|
14911
15344
|
`;
|
|
14912
|
-
var StatusPublished =
|
|
15345
|
+
var StatusPublished = css70`
|
|
14913
15346
|
&:before {
|
|
14914
15347
|
background: var(--brand-secondary-3);
|
|
14915
15348
|
}
|
|
14916
15349
|
`;
|
|
14917
|
-
var StatusOrphan =
|
|
15350
|
+
var StatusOrphan = css70`
|
|
14918
15351
|
&:before {
|
|
14919
15352
|
background: var(--brand-secondary-5);
|
|
14920
15353
|
}
|
|
14921
15354
|
`;
|
|
14922
15355
|
|
|
14923
15356
|
// src/components/Validation/StatusBullet.tsx
|
|
14924
|
-
import { jsx as
|
|
15357
|
+
import { jsx as jsx92 } from "@emotion/react/jsx-runtime";
|
|
14925
15358
|
var StatusBullet = ({
|
|
14926
15359
|
status,
|
|
14927
15360
|
hideText = false,
|
|
@@ -14938,7 +15371,7 @@ var StatusBullet = ({
|
|
|
14938
15371
|
Draft: StatusDraft
|
|
14939
15372
|
};
|
|
14940
15373
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
14941
|
-
return /* @__PURE__ */
|
|
15374
|
+
return /* @__PURE__ */ jsx92(
|
|
14942
15375
|
"span",
|
|
14943
15376
|
{
|
|
14944
15377
|
role: "status",
|
|
@@ -14954,6 +15387,7 @@ export {
|
|
|
14954
15387
|
AddListButton,
|
|
14955
15388
|
AnimationFile,
|
|
14956
15389
|
Badge,
|
|
15390
|
+
Banner,
|
|
14957
15391
|
Button,
|
|
14958
15392
|
ButtonWithMenu,
|
|
14959
15393
|
Callout,
|
|
@@ -14977,6 +15411,7 @@ export {
|
|
|
14977
15411
|
HexModalBackground,
|
|
14978
15412
|
Icon,
|
|
14979
15413
|
IconsProvider,
|
|
15414
|
+
InfoMessage,
|
|
14980
15415
|
InlineAlert,
|
|
14981
15416
|
Input,
|
|
14982
15417
|
InputComboBox,
|
|
@@ -15037,6 +15472,7 @@ export {
|
|
|
15037
15472
|
ScrollableList,
|
|
15038
15473
|
ScrollableListInputItem,
|
|
15039
15474
|
ScrollableListItem,
|
|
15475
|
+
SegmentedControl,
|
|
15040
15476
|
ShortcutContext,
|
|
15041
15477
|
ShortcutRevealer,
|
|
15042
15478
|
Skeleton,
|
|
@@ -15061,16 +15497,21 @@ export {
|
|
|
15061
15497
|
UniformLogo,
|
|
15062
15498
|
VerticalRhythm,
|
|
15063
15499
|
WarningMessage,
|
|
15500
|
+
borderTopIcon,
|
|
15064
15501
|
breakpoints,
|
|
15065
15502
|
button,
|
|
15066
15503
|
buttonGhost,
|
|
15067
15504
|
buttonGhostDestructive,
|
|
15068
15505
|
buttonPrimary,
|
|
15506
|
+
buttonPrimaryInvert,
|
|
15069
15507
|
buttonRippleEffect,
|
|
15070
15508
|
buttonSecondary,
|
|
15071
15509
|
buttonSecondaryInvert,
|
|
15072
15510
|
buttonTertiary,
|
|
15073
15511
|
buttonUnimportant,
|
|
15512
|
+
canvasAlertIcon,
|
|
15513
|
+
cardIcon,
|
|
15514
|
+
customIcons,
|
|
15074
15515
|
extractParameterProps,
|
|
15075
15516
|
fadeIn,
|
|
15076
15517
|
fadeInBottom,
|
|
@@ -15078,7 +15519,10 @@ export {
|
|
|
15078
15519
|
fadeInRtl,
|
|
15079
15520
|
fadeInTop,
|
|
15080
15521
|
fadeOutBottom,
|
|
15522
|
+
fullWidthScreenIcon,
|
|
15081
15523
|
growSubtle,
|
|
15524
|
+
imageTextIcon,
|
|
15525
|
+
infoFilledIcon,
|
|
15082
15526
|
input,
|
|
15083
15527
|
inputError,
|
|
15084
15528
|
inputSelect,
|
|
@@ -15087,11 +15531,15 @@ export {
|
|
|
15087
15531
|
loader_default as loaderAnimationData,
|
|
15088
15532
|
macifyShortcut,
|
|
15089
15533
|
mq,
|
|
15534
|
+
numberInput,
|
|
15535
|
+
rectangleRoundedIcon,
|
|
15090
15536
|
ripple,
|
|
15091
15537
|
scrollbarStyles,
|
|
15092
15538
|
skeletonLoading,
|
|
15539
|
+
slideInTtb,
|
|
15093
15540
|
spinner_default as spinnerAnimationData,
|
|
15094
15541
|
supports,
|
|
15542
|
+
textInput,
|
|
15095
15543
|
useBreakpoint,
|
|
15096
15544
|
useCloseCurrentDrawer,
|
|
15097
15545
|
useCurrentDrawerRenderer,
|
|
@@ -15101,5 +15549,6 @@ export {
|
|
|
15101
15549
|
useMenuContext,
|
|
15102
15550
|
useOutsideClick,
|
|
15103
15551
|
useParameterShell,
|
|
15104
|
-
useShortcut
|
|
15552
|
+
useShortcut,
|
|
15553
|
+
warningIcon
|
|
15105
15554
|
};
|