@uniformdev/design-system 18.29.0 → 18.29.2-alpha.11
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 +1010 -732
- package/dist/index.d.ts +84 -1
- package/dist/index.js +944 -652
- package/package.json +3 -3
package/dist/esm/index.js
CHANGED
|
@@ -510,9 +510,10 @@ var textarea = css2`
|
|
|
510
510
|
`;
|
|
511
511
|
var inputSelectCompact = css2`
|
|
512
512
|
font-size: var(--fs-xs);
|
|
513
|
-
padding: var(--spacing-
|
|
513
|
+
padding: var(--spacing-2xs) var(--spacing-md) var(--spacing-2xs) var(--spacing-xs);
|
|
514
514
|
border-color: var(--gray-300);
|
|
515
515
|
background-position: right var(--spacing-xs) center;
|
|
516
|
+
border-radius: var(--rounded-base);
|
|
516
517
|
`;
|
|
517
518
|
|
|
518
519
|
// src/styles/Animations.styles.ts
|
|
@@ -598,6 +599,14 @@ to {
|
|
|
598
599
|
transform: translateX(0);
|
|
599
600
|
}
|
|
600
601
|
`;
|
|
602
|
+
var slideInTtb = keyframes`
|
|
603
|
+
from {
|
|
604
|
+
transform: translateY(-100%);
|
|
605
|
+
}
|
|
606
|
+
to {
|
|
607
|
+
transform: translateY(0);
|
|
608
|
+
}
|
|
609
|
+
`;
|
|
601
610
|
|
|
602
611
|
// src/styles/Scrollbar.styles.ts
|
|
603
612
|
import { css as css3 } from "@emotion/react";
|
|
@@ -843,40 +852,6 @@ var AddButton = ({
|
|
|
843
852
|
// src/components/AddListButton/AddListButton.tsx
|
|
844
853
|
import { CgAdd, CgAddR, CgMathPlus } from "react-icons/cg";
|
|
845
854
|
|
|
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
855
|
// src/components/Icons/customIcons.tsx
|
|
881
856
|
import { GenIcon } from "react-icons";
|
|
882
857
|
var rectangleRoundedIcon = GenIcon({
|
|
@@ -1189,7 +1164,39 @@ var customIcons = {
|
|
|
1189
1164
|
"info-filled": infoFilledIcon
|
|
1190
1165
|
};
|
|
1191
1166
|
|
|
1167
|
+
// src/components/Icons/Icon.tsx
|
|
1168
|
+
import React3 from "react";
|
|
1169
|
+
|
|
1170
|
+
// src/components/Icons/Icon.styles.ts
|
|
1171
|
+
import { css as css7 } from "@emotion/react";
|
|
1172
|
+
var IconImg = css7`
|
|
1173
|
+
display: hidden;
|
|
1174
|
+
|
|
1175
|
+
${mq("sm")} {
|
|
1176
|
+
display: block;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
& svg {
|
|
1180
|
+
display: block;
|
|
1181
|
+
vertical-align: middle;
|
|
1182
|
+
}
|
|
1183
|
+
`;
|
|
1184
|
+
var IconColorGreen = css7`
|
|
1185
|
+
color: var(--brand-secondary-3);
|
|
1186
|
+
`;
|
|
1187
|
+
var IconColorRed = css7`
|
|
1188
|
+
color: var(--brand-secondary-5);
|
|
1189
|
+
`;
|
|
1190
|
+
var IconColorGray = css7`
|
|
1191
|
+
color: var(--gray-500);
|
|
1192
|
+
`;
|
|
1193
|
+
var IconColorCurrent = css7`
|
|
1194
|
+
color: currentColor;
|
|
1195
|
+
`;
|
|
1196
|
+
|
|
1192
1197
|
// src/components/Icons/IconsProvider.tsx
|
|
1198
|
+
import { paramCase } from "param-case";
|
|
1199
|
+
import { createContext, useContext as useContext2, useEffect as useEffect3, useState as useState2 } from "react";
|
|
1193
1200
|
import { jsx as jsx5 } from "@emotion/react/jsx-runtime";
|
|
1194
1201
|
var IconContext = createContext({
|
|
1195
1202
|
/** object mapping of available icons */
|
|
@@ -10293,27 +10300,149 @@ var AnimationFile = ({
|
|
|
10293
10300
|
);
|
|
10294
10301
|
};
|
|
10295
10302
|
|
|
10296
|
-
// src/components/
|
|
10303
|
+
// src/components/Banner/Banner.tsx
|
|
10304
|
+
import { CgClose as CgClose2 } from "react-icons/cg";
|
|
10305
|
+
|
|
10306
|
+
// src/components/Banner/Banner.styles.ts
|
|
10307
|
+
import { css as css17 } from "@emotion/react";
|
|
10308
|
+
|
|
10309
|
+
// src/styles/functionalColors.styles.ts
|
|
10297
10310
|
import { css as css16 } from "@emotion/react";
|
|
10298
|
-
var
|
|
10311
|
+
var functionalColors = css16`
|
|
10312
|
+
--caution-desc: rgb(161, 98, 7);
|
|
10313
|
+
--caution-icon: rgb(250, 204, 21);
|
|
10314
|
+
--caution-title: rgb(133, 77, 14);
|
|
10315
|
+
--caution-container: rgb(254, 252, 232);
|
|
10316
|
+
|
|
10317
|
+
--danger-desc: rgb(185, 28, 28);
|
|
10318
|
+
--danger-icon: rgb(248, 113, 113);
|
|
10319
|
+
--danger-title: rgb(153, 27, 27);
|
|
10320
|
+
--danger-container: rgb(254, 242, 242);
|
|
10321
|
+
|
|
10322
|
+
--info-desc: rgb(29, 78, 216);
|
|
10323
|
+
--info-icon: rgb(96, 165, 250);
|
|
10324
|
+
--info-title: rgb(30, 64, 175);
|
|
10325
|
+
--info-container: rgb(239, 246, 255);
|
|
10326
|
+
|
|
10327
|
+
--note-desc: var(--gray-700);
|
|
10328
|
+
--note-icon: var(--gray-400);
|
|
10329
|
+
--note-title: var(--gray-800);
|
|
10330
|
+
--note-container: var(--gray-50);
|
|
10331
|
+
|
|
10332
|
+
--success-desc: rgb(21, 128, 61);
|
|
10333
|
+
--success-icon: rgb(74, 222, 128);
|
|
10334
|
+
--success-title: rgb(22, 101, 52);
|
|
10335
|
+
--success-container: rgb(240, 253, 250);
|
|
10336
|
+
`;
|
|
10337
|
+
|
|
10338
|
+
// src/components/Banner/Banner.styles.ts
|
|
10339
|
+
var bannerStyles = css17`
|
|
10340
|
+
${functionalColors}
|
|
10341
|
+
|
|
10342
|
+
--border-color: var(--info-icon);
|
|
10343
|
+
--background-color: var(--info-container);
|
|
10344
|
+
|
|
10345
|
+
display: flex;
|
|
10346
|
+
gap: var(--spacing-sm);
|
|
10347
|
+
justify-content: space-between;
|
|
10348
|
+
color: var(--brand-secondary-1);
|
|
10349
|
+
border-bottom: 1px solid var(--border-color);
|
|
10350
|
+
background-color: var(--background-color);
|
|
10351
|
+
padding: var(--spacing-sm);
|
|
10352
|
+
|
|
10353
|
+
&[data-type='caution'] {
|
|
10354
|
+
--border-color: var(--caution-icon);
|
|
10355
|
+
--background-color: var(--caution-container);
|
|
10356
|
+
}
|
|
10357
|
+
|
|
10358
|
+
&[data-type='danger'] {
|
|
10359
|
+
--border-color: var(--danger-icon);
|
|
10360
|
+
--background-color: var(--danger-container);
|
|
10361
|
+
}
|
|
10362
|
+
|
|
10363
|
+
&[data-type='note'] {
|
|
10364
|
+
--border-color: var(--note-icon);
|
|
10365
|
+
--background-color: var(--note-container);
|
|
10366
|
+
}
|
|
10367
|
+
|
|
10368
|
+
&[data-type='success'] {
|
|
10369
|
+
--border-color: var(--success-icon);
|
|
10370
|
+
--background-color: var(--success-container);
|
|
10371
|
+
}
|
|
10372
|
+
`;
|
|
10373
|
+
var bannerAnimatedStyles = css17`
|
|
10374
|
+
animation: ${slideInTtb} var(--duration-xfast) ease-out;
|
|
10375
|
+
`;
|
|
10376
|
+
var bannerContentStyles = css17``;
|
|
10377
|
+
var bannerDismissButtonStyles = css17`
|
|
10378
|
+
display: flex;
|
|
10379
|
+
align-items: center;
|
|
10380
|
+
justify-content: center;
|
|
10381
|
+
position: relative;
|
|
10382
|
+
padding: var(--spacing-xs);
|
|
10383
|
+
background: transparent;
|
|
10384
|
+
border: 0;
|
|
10385
|
+
border-radius: var(--rounded-base);
|
|
10386
|
+
z-index: 1;
|
|
10387
|
+
overflow: hidden;
|
|
10388
|
+
|
|
10389
|
+
&::before {
|
|
10390
|
+
content: '';
|
|
10391
|
+
display: block;
|
|
10392
|
+
position: absolute;
|
|
10393
|
+
inset: 0;
|
|
10394
|
+
background-color: var(--gray-200);
|
|
10395
|
+
z-index: -1;
|
|
10396
|
+
opacity: 0;
|
|
10397
|
+
transition: opacity var(--duration-xfast) ease-in-out;
|
|
10398
|
+
}
|
|
10399
|
+
|
|
10400
|
+
&:hover {
|
|
10401
|
+
&::before {
|
|
10402
|
+
opacity: 0.5;
|
|
10403
|
+
}
|
|
10404
|
+
}
|
|
10405
|
+
`;
|
|
10406
|
+
|
|
10407
|
+
// src/components/Banner/Banner.tsx
|
|
10408
|
+
import { jsx as jsx16, jsxs as jsxs8 } from "@emotion/react/jsx-runtime";
|
|
10409
|
+
var Banner = ({ type = "note", onDismiss, children, isAnimated = false, ...props }) => {
|
|
10410
|
+
return /* @__PURE__ */ jsxs8(
|
|
10411
|
+
"div",
|
|
10412
|
+
{
|
|
10413
|
+
role: "banner",
|
|
10414
|
+
css: [bannerStyles, isAnimated ? bannerAnimatedStyles : void 0],
|
|
10415
|
+
"data-type": type,
|
|
10416
|
+
...props,
|
|
10417
|
+
children: [
|
|
10418
|
+
/* @__PURE__ */ jsx16("div", { css: bannerContentStyles, children }),
|
|
10419
|
+
!onDismiss ? null : /* @__PURE__ */ jsx16("button", { type: "button", css: bannerDismissButtonStyles, title: "Dismiss banner", onClick: onDismiss, children: /* @__PURE__ */ jsx16(CgClose2, {}) })
|
|
10420
|
+
]
|
|
10421
|
+
}
|
|
10422
|
+
);
|
|
10423
|
+
};
|
|
10424
|
+
|
|
10425
|
+
// src/components/Brand/UniformLogo.styles.ts
|
|
10426
|
+
import { css as css18 } from "@emotion/react";
|
|
10427
|
+
var SVG = css18`
|
|
10299
10428
|
display: block;
|
|
10300
10429
|
`;
|
|
10301
|
-
var SVGLight =
|
|
10430
|
+
var SVGLight = css18`
|
|
10302
10431
|
background: transparent;
|
|
10303
10432
|
color: var(--brand-secondary-1);
|
|
10304
10433
|
`;
|
|
10305
|
-
var SVGDark =
|
|
10434
|
+
var SVGDark = css18`
|
|
10306
10435
|
background: var(--brand-secondary-1);
|
|
10307
10436
|
color: var(--white);
|
|
10308
10437
|
`;
|
|
10309
10438
|
|
|
10310
10439
|
// src/components/Brand/UniformBadge.tsx
|
|
10311
|
-
import { jsx as
|
|
10440
|
+
import { jsx as jsx17, jsxs as jsxs9 } from "@emotion/react/jsx-runtime";
|
|
10312
10441
|
var UniformBadge = ({
|
|
10313
10442
|
theme = "light",
|
|
10314
10443
|
...props
|
|
10315
10444
|
}) => {
|
|
10316
|
-
return /* @__PURE__ */
|
|
10445
|
+
return /* @__PURE__ */ jsxs9(
|
|
10317
10446
|
"svg",
|
|
10318
10447
|
{
|
|
10319
10448
|
width: "38",
|
|
@@ -10325,15 +10454,15 @@ var UniformBadge = ({
|
|
|
10325
10454
|
css: [SVG, theme === "dark" ? SVGDark : SVGLight],
|
|
10326
10455
|
...props,
|
|
10327
10456
|
children: [
|
|
10328
|
-
/* @__PURE__ */
|
|
10329
|
-
/* @__PURE__ */
|
|
10457
|
+
/* @__PURE__ */ jsx17("path", { d: "M28.998 0 0 16.744V50.23l28.998-16.744 29.004-16.743L28.998 0Z", fill: "#7BB3FF" }),
|
|
10458
|
+
/* @__PURE__ */ jsx17(
|
|
10330
10459
|
"path",
|
|
10331
10460
|
{
|
|
10332
10461
|
d: "M28.998 66.974V33.487L0 50.231v33.487l28.998 16.744 29.004-16.744V50.23L28.998 66.974Z",
|
|
10333
10462
|
fill: "#498DFF"
|
|
10334
10463
|
}
|
|
10335
10464
|
),
|
|
10336
|
-
/* @__PURE__ */
|
|
10465
|
+
/* @__PURE__ */ jsx17(
|
|
10337
10466
|
"path",
|
|
10338
10467
|
{
|
|
10339
10468
|
d: "M58.002 16.744 28.998 33.487l29.004 16.744v33.487L87 66.975V33.487L58.002 16.744Z",
|
|
@@ -10346,12 +10475,12 @@ var UniformBadge = ({
|
|
|
10346
10475
|
};
|
|
10347
10476
|
|
|
10348
10477
|
// src/components/Brand/UniformLogo.tsx
|
|
10349
|
-
import { jsx as
|
|
10478
|
+
import { jsx as jsx18, jsxs as jsxs10 } from "@emotion/react/jsx-runtime";
|
|
10350
10479
|
var UniformLogo = ({
|
|
10351
10480
|
theme = "light",
|
|
10352
10481
|
...props
|
|
10353
10482
|
}) => {
|
|
10354
|
-
return /* @__PURE__ */
|
|
10483
|
+
return /* @__PURE__ */ jsx18("div", { "data-test-id": "uniform-Logo", children: /* @__PURE__ */ jsxs10(
|
|
10355
10484
|
"svg",
|
|
10356
10485
|
{
|
|
10357
10486
|
width: "153",
|
|
@@ -10362,16 +10491,16 @@ var UniformLogo = ({
|
|
|
10362
10491
|
css: [SVG, theme === "dark" ? SVGDark : SVGLight],
|
|
10363
10492
|
...props,
|
|
10364
10493
|
children: [
|
|
10365
|
-
/* @__PURE__ */
|
|
10366
|
-
/* @__PURE__ */
|
|
10494
|
+
/* @__PURE__ */ jsx18("path", { d: "M11.249 0 0 6.495v12.99l11.249-6.495L22.5 6.495 11.25 0Z", fill: "#7BB3FF" }),
|
|
10495
|
+
/* @__PURE__ */ jsx18(
|
|
10367
10496
|
"path",
|
|
10368
10497
|
{
|
|
10369
10498
|
d: "M11.249 25.98V12.99L0 19.486v12.99l11.249 6.495L22.5 32.476v-12.99L11.25 25.98Z",
|
|
10370
10499
|
fill: "#498DFF"
|
|
10371
10500
|
}
|
|
10372
10501
|
),
|
|
10373
|
-
/* @__PURE__ */
|
|
10374
|
-
/* @__PURE__ */
|
|
10502
|
+
/* @__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" }),
|
|
10503
|
+
/* @__PURE__ */ jsx18(
|
|
10375
10504
|
"path",
|
|
10376
10505
|
{
|
|
10377
10506
|
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,7 +10515,7 @@ var UniformLogo = ({
|
|
|
10386
10515
|
// src/components/Button/Button.tsx
|
|
10387
10516
|
import * as React5 from "react";
|
|
10388
10517
|
import { Button as BaseButton } from "reakit/Button";
|
|
10389
|
-
import { jsx as
|
|
10518
|
+
import { jsx as jsx19 } from "@emotion/react/jsx-runtime";
|
|
10390
10519
|
var Button = React5.forwardRef(
|
|
10391
10520
|
({ buttonType = "primary", size = "md", children, ...props }, ref) => {
|
|
10392
10521
|
const buttonTheme = {
|
|
@@ -10406,7 +10535,7 @@ var Button = React5.forwardRef(
|
|
|
10406
10535
|
lg: "padding: var(--spacing-sm) var(--spacing-base)",
|
|
10407
10536
|
xl: "padding: 0.75rem var(--spacing-md)"
|
|
10408
10537
|
};
|
|
10409
|
-
return /* @__PURE__ */
|
|
10538
|
+
return /* @__PURE__ */ jsx19(BaseButton, { ref, css: [button, buttonTheme[buttonType], btnSize[size]], ...props, children });
|
|
10410
10539
|
}
|
|
10411
10540
|
);
|
|
10412
10541
|
|
|
@@ -10423,8 +10552,8 @@ import {
|
|
|
10423
10552
|
import { Portal } from "reakit/Portal";
|
|
10424
10553
|
|
|
10425
10554
|
// src/components/Menu/Menu.styles.ts
|
|
10426
|
-
import { css as
|
|
10427
|
-
var menu =
|
|
10555
|
+
import { css as css19 } from "@emotion/react";
|
|
10556
|
+
var menu = css19`
|
|
10428
10557
|
box-shadow: var(--shadow-base);
|
|
10429
10558
|
border-radius: var(--rounded-base);
|
|
10430
10559
|
background: var(--gray-50);
|
|
@@ -10438,7 +10567,7 @@ var menu = css17`
|
|
|
10438
10567
|
`;
|
|
10439
10568
|
|
|
10440
10569
|
// src/components/Menu/Menu.tsx
|
|
10441
|
-
import { jsx as
|
|
10570
|
+
import { jsx as jsx20, jsxs as jsxs11 } from "@emotion/react/jsx-runtime";
|
|
10442
10571
|
var MenuContext = React6.createContext({});
|
|
10443
10572
|
var useMenuContext = () => {
|
|
10444
10573
|
return React6.useContext(MenuContext);
|
|
@@ -10451,9 +10580,9 @@ var Menu = ({
|
|
|
10451
10580
|
children
|
|
10452
10581
|
}) => {
|
|
10453
10582
|
const menuState = useMenuState({ placement });
|
|
10454
|
-
return /* @__PURE__ */
|
|
10455
|
-
/* @__PURE__ */
|
|
10456
|
-
/* @__PURE__ */
|
|
10583
|
+
return /* @__PURE__ */ jsxs11(MenuContext.Provider, { value: menuState, children: [
|
|
10584
|
+
/* @__PURE__ */ jsx20(MenuButton, { ...menuState, ref: menuTrigger.ref, ...menuTrigger.props, children: (triggerProps) => React6.cloneElement(menuTrigger, triggerProps) }),
|
|
10585
|
+
/* @__PURE__ */ jsx20(Portal, { children: /* @__PURE__ */ jsx20(
|
|
10457
10586
|
BaseMenu,
|
|
10458
10587
|
{
|
|
10459
10588
|
...menuState,
|
|
@@ -10474,8 +10603,8 @@ import * as React7 from "react";
|
|
|
10474
10603
|
import { MenuItem as BaseMenuItem } from "reakit";
|
|
10475
10604
|
|
|
10476
10605
|
// src/components/Menu/MenuItem.styles.ts
|
|
10477
|
-
import { css as
|
|
10478
|
-
var menuItem = (textTheme) =>
|
|
10606
|
+
import { css as css20 } from "@emotion/react";
|
|
10607
|
+
var menuItem = (textTheme) => css20`
|
|
10479
10608
|
align-items: center;
|
|
10480
10609
|
border: none;
|
|
10481
10610
|
border-radius: var(--rounded-base);
|
|
@@ -10501,7 +10630,7 @@ var menuItem = (textTheme) => css18`
|
|
|
10501
10630
|
outline: none;
|
|
10502
10631
|
}
|
|
10503
10632
|
`;
|
|
10504
|
-
var menuItemWithIcon =
|
|
10633
|
+
var menuItemWithIcon = css20`
|
|
10505
10634
|
align-items: center;
|
|
10506
10635
|
display: flex;
|
|
10507
10636
|
justify-content: space-between;
|
|
@@ -10513,14 +10642,14 @@ var menuItemWithIcon = css18`
|
|
|
10513
10642
|
height: var(--spacing-base);
|
|
10514
10643
|
}
|
|
10515
10644
|
`;
|
|
10516
|
-
var menuItemSeparator =
|
|
10645
|
+
var menuItemSeparator = css20`
|
|
10517
10646
|
border-top: 1px solid var(--gray-300);
|
|
10518
10647
|
width: 100%;
|
|
10519
10648
|
margin-block: var(--spacing-sm);
|
|
10520
10649
|
`;
|
|
10521
10650
|
|
|
10522
10651
|
// src/components/Menu/MenuItem.tsx
|
|
10523
|
-
import { jsx as
|
|
10652
|
+
import { jsx as jsx21, jsxs as jsxs12 } from "@emotion/react/jsx-runtime";
|
|
10524
10653
|
var MenuItem = React7.forwardRef(
|
|
10525
10654
|
({ children, className, hideMenuOnClick = true, icon, textColor = "base", ...props }, ref) => {
|
|
10526
10655
|
const menuState = useMenuContext();
|
|
@@ -10537,7 +10666,7 @@ var MenuItem = React7.forwardRef(
|
|
|
10537
10666
|
};
|
|
10538
10667
|
const resolvedProps = hideMenuOnClick ? resolveProps(props) : props;
|
|
10539
10668
|
const resolvedChildren = typeof children === "function" ? children(resolvedProps) : children;
|
|
10540
|
-
return /* @__PURE__ */
|
|
10669
|
+
return /* @__PURE__ */ jsx21(
|
|
10541
10670
|
BaseMenuItem,
|
|
10542
10671
|
{
|
|
10543
10672
|
ref,
|
|
@@ -10553,7 +10682,7 @@ var MenuItem = React7.forwardRef(
|
|
|
10553
10682
|
}
|
|
10554
10683
|
);
|
|
10555
10684
|
function renderWithIcon(children, icon) {
|
|
10556
|
-
return /* @__PURE__ */
|
|
10685
|
+
return /* @__PURE__ */ jsxs12("span", { css: menuItemWithIcon, children: [
|
|
10557
10686
|
icon,
|
|
10558
10687
|
" ",
|
|
10559
10688
|
children
|
|
@@ -10561,12 +10690,12 @@ function renderWithIcon(children, icon) {
|
|
|
10561
10690
|
}
|
|
10562
10691
|
|
|
10563
10692
|
// src/components/Menu/MenuItemSeparator.tsx
|
|
10564
|
-
import { jsx as
|
|
10565
|
-
var MenuItemSeparator = () => /* @__PURE__ */
|
|
10693
|
+
import { jsx as jsx22 } from "@emotion/react/jsx-runtime";
|
|
10694
|
+
var MenuItemSeparator = () => /* @__PURE__ */ jsx22("hr", { css: menuItemSeparator });
|
|
10566
10695
|
|
|
10567
10696
|
// src/components/ButtonWithMenu/ButtonWithMenu.styles.ts
|
|
10568
|
-
import { css as
|
|
10569
|
-
var ButtonWithMenuContainer =
|
|
10697
|
+
import { css as css21 } from "@emotion/react";
|
|
10698
|
+
var ButtonWithMenuContainer = css21`
|
|
10570
10699
|
align-items: center;
|
|
10571
10700
|
border: 1px solid transparent;
|
|
10572
10701
|
border-radius: var(--rounded-sm);
|
|
@@ -10587,7 +10716,7 @@ var ButtonWithMenuContainer = css19`
|
|
|
10587
10716
|
border-color: var(--gray-700);
|
|
10588
10717
|
}
|
|
10589
10718
|
`;
|
|
10590
|
-
var ButtonWithMenuBtn =
|
|
10719
|
+
var ButtonWithMenuBtn = css21`
|
|
10591
10720
|
border: 1px solid transparent;
|
|
10592
10721
|
background: transparent;
|
|
10593
10722
|
border-radius: var(--rounded-base);
|
|
@@ -10610,33 +10739,33 @@ var ButtonWithMenuBtn = css19`
|
|
|
10610
10739
|
pointer-events: none;
|
|
10611
10740
|
}
|
|
10612
10741
|
`;
|
|
10613
|
-
var ButtonWithMenuIcon =
|
|
10742
|
+
var ButtonWithMenuIcon = css21`
|
|
10614
10743
|
padding: var(--spacing-sm);
|
|
10615
10744
|
border-left: 1px solid currentColor;
|
|
10616
10745
|
`;
|
|
10617
|
-
var buttonPrimary2 =
|
|
10746
|
+
var buttonPrimary2 = css21`
|
|
10618
10747
|
background: var(--brand-secondary-1);
|
|
10619
10748
|
color: var(--white);
|
|
10620
10749
|
`;
|
|
10621
|
-
var buttonPrimaryDisabled =
|
|
10750
|
+
var buttonPrimaryDisabled = css21`
|
|
10622
10751
|
background: var(--gray-300);
|
|
10623
10752
|
color: var(--white);
|
|
10624
10753
|
`;
|
|
10625
|
-
var buttonSecondary2 =
|
|
10754
|
+
var buttonSecondary2 = css21`
|
|
10626
10755
|
background: var(--brand-secondary-5);
|
|
10627
10756
|
color: var(--white);
|
|
10628
10757
|
`;
|
|
10629
|
-
var buttonSecondaryDisabled =
|
|
10758
|
+
var buttonSecondaryDisabled = css21`
|
|
10630
10759
|
${buttonPrimaryDisabled}
|
|
10631
10760
|
`;
|
|
10632
|
-
var buttonUnimportant2 =
|
|
10761
|
+
var buttonUnimportant2 = css21`
|
|
10633
10762
|
background: var(--brand-secondary-2);
|
|
10634
10763
|
color: var(--brand-secondary-1);
|
|
10635
10764
|
`;
|
|
10636
|
-
var buttonUnimportantDisabled =
|
|
10765
|
+
var buttonUnimportantDisabled = css21`
|
|
10637
10766
|
${buttonPrimaryDisabled}
|
|
10638
10767
|
`;
|
|
10639
|
-
var buttonGhost2 =
|
|
10768
|
+
var buttonGhost2 = css21`
|
|
10640
10769
|
background: transparent;
|
|
10641
10770
|
color: var(--brand-secondary-3);
|
|
10642
10771
|
|
|
@@ -10644,13 +10773,13 @@ var buttonGhost2 = css19`
|
|
|
10644
10773
|
border-color: var(--brand-secondary-3);
|
|
10645
10774
|
}
|
|
10646
10775
|
`;
|
|
10647
|
-
var buttonGhostDisabled =
|
|
10776
|
+
var buttonGhostDisabled = css21`
|
|
10648
10777
|
border-color: var(--gray-400);
|
|
10649
10778
|
color: var(--gray-400);
|
|
10650
10779
|
`;
|
|
10651
10780
|
|
|
10652
10781
|
// src/components/ButtonWithMenu/ButtonWithMenu.tsx
|
|
10653
|
-
import { jsx as
|
|
10782
|
+
import { jsx as jsx23, jsxs as jsxs13 } from "@emotion/react/jsx-runtime";
|
|
10654
10783
|
var ButtonWithMenu = ({
|
|
10655
10784
|
onButtonClick,
|
|
10656
10785
|
buttonType = "secondary",
|
|
@@ -10672,13 +10801,13 @@ var ButtonWithMenu = ({
|
|
|
10672
10801
|
ghost: buttonGhostDisabled,
|
|
10673
10802
|
unimportant: buttonUnimportantDisabled
|
|
10674
10803
|
};
|
|
10675
|
-
return /* @__PURE__ */
|
|
10804
|
+
return /* @__PURE__ */ jsxs13(
|
|
10676
10805
|
"div",
|
|
10677
10806
|
{
|
|
10678
10807
|
css: [ButtonWithMenuContainer, disabled ? buttonDisabledTheme[buttonType] : buttonTheme[buttonType]],
|
|
10679
10808
|
"data-test-id": "multioptions-button",
|
|
10680
10809
|
children: [
|
|
10681
|
-
/* @__PURE__ */
|
|
10810
|
+
/* @__PURE__ */ jsx23(
|
|
10682
10811
|
"button",
|
|
10683
10812
|
{
|
|
10684
10813
|
type: "button",
|
|
@@ -10690,12 +10819,12 @@ var ButtonWithMenu = ({
|
|
|
10690
10819
|
children: buttonText
|
|
10691
10820
|
}
|
|
10692
10821
|
),
|
|
10693
|
-
/* @__PURE__ */
|
|
10822
|
+
/* @__PURE__ */ jsx23(
|
|
10694
10823
|
Menu,
|
|
10695
10824
|
{
|
|
10696
10825
|
menuLabel: "buttonMenu",
|
|
10697
10826
|
placement,
|
|
10698
|
-
menuTrigger: /* @__PURE__ */
|
|
10827
|
+
menuTrigger: /* @__PURE__ */ jsx23("div", { css: ButtonWithMenuIcon, "data-test-id": "multioptions-button-call-menu", children: /* @__PURE__ */ jsx23(Icon, { icon: CgChevronDown, size: 24, iconColor: "currentColor" }) }),
|
|
10699
10828
|
children
|
|
10700
10829
|
}
|
|
10701
10830
|
)
|
|
@@ -10705,41 +10834,18 @@ var ButtonWithMenu = ({
|
|
|
10705
10834
|
};
|
|
10706
10835
|
|
|
10707
10836
|
// src/components/Callout/Callout.tsx
|
|
10708
|
-
import { css as
|
|
10837
|
+
import { css as css23 } from "@emotion/react";
|
|
10709
10838
|
|
|
10710
10839
|
// 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);
|
|
10840
|
+
import { css as css22 } from "@emotion/react";
|
|
10841
|
+
var calloutContainer = css22`
|
|
10842
|
+
${functionalColors}
|
|
10737
10843
|
|
|
10738
10844
|
font-size: var(--fs-sm);
|
|
10739
10845
|
border-radius: var(--rounded-base);
|
|
10740
10846
|
padding: var(--spacing-base);
|
|
10741
10847
|
`;
|
|
10742
|
-
var calloutContainerCompact =
|
|
10848
|
+
var calloutContainerCompact = css22`
|
|
10743
10849
|
font-size: var(--fs-xs);
|
|
10744
10850
|
padding: var(--spacing-sm);
|
|
10745
10851
|
border-radius: 0 var(--rounded-base) var(--rounded-base) 0;
|
|
@@ -10751,32 +10857,32 @@ var calloutContainerCompact = css20`
|
|
|
10751
10857
|
--note-desc: var(--brand-secondary-1);
|
|
10752
10858
|
--success-desc: var(--brand-secondary-1);
|
|
10753
10859
|
`;
|
|
10754
|
-
var calloutInner =
|
|
10860
|
+
var calloutInner = css22`
|
|
10755
10861
|
display: flex;
|
|
10756
10862
|
gap: var(--spacing-sm);
|
|
10757
10863
|
`;
|
|
10758
|
-
var calloutBody =
|
|
10864
|
+
var calloutBody = css22`
|
|
10759
10865
|
display: flex;
|
|
10760
10866
|
flex-direction: column;
|
|
10761
10867
|
gap: var(--spacing-base);
|
|
10762
10868
|
`;
|
|
10763
|
-
var calloutBodyCompact =
|
|
10869
|
+
var calloutBodyCompact = css22`
|
|
10764
10870
|
gap: var(--spacing-xs);
|
|
10765
10871
|
`;
|
|
10766
|
-
var calloutIconWrap =
|
|
10872
|
+
var calloutIconWrap = css22`
|
|
10767
10873
|
flex-shrink: 0;
|
|
10768
10874
|
`;
|
|
10769
|
-
var calloutTitle =
|
|
10875
|
+
var calloutTitle = css22`
|
|
10770
10876
|
font-weight: var(--fw-bold);
|
|
10771
10877
|
`;
|
|
10772
|
-
var calloutIcon =
|
|
10878
|
+
var calloutIcon = css22`
|
|
10773
10879
|
width: 1.25rem;
|
|
10774
10880
|
height: 1.25rem;
|
|
10775
10881
|
`;
|
|
10776
10882
|
|
|
10777
10883
|
// src/components/Callout/CalloutIcons.tsx
|
|
10778
|
-
import { jsx as
|
|
10779
|
-
var InfoIcon = ({ ...props }) => /* @__PURE__ */
|
|
10884
|
+
import { jsx as jsx24 } from "@emotion/react/jsx-runtime";
|
|
10885
|
+
var InfoIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
10780
10886
|
"svg",
|
|
10781
10887
|
{
|
|
10782
10888
|
role: "img",
|
|
@@ -10787,7 +10893,7 @@ var InfoIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10787
10893
|
viewBox: "0 0 14 16",
|
|
10788
10894
|
fill: "currentColor",
|
|
10789
10895
|
...props,
|
|
10790
|
-
children: /* @__PURE__ */
|
|
10896
|
+
children: /* @__PURE__ */ jsx24(
|
|
10791
10897
|
"path",
|
|
10792
10898
|
{
|
|
10793
10899
|
fillRule: "evenodd",
|
|
@@ -10796,7 +10902,7 @@ var InfoIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10796
10902
|
)
|
|
10797
10903
|
}
|
|
10798
10904
|
);
|
|
10799
|
-
var DangerIcon = ({ ...props }) => /* @__PURE__ */
|
|
10905
|
+
var DangerIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
10800
10906
|
"svg",
|
|
10801
10907
|
{
|
|
10802
10908
|
role: "img",
|
|
@@ -10807,7 +10913,7 @@ var DangerIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10807
10913
|
viewBox: "0 0 12 16",
|
|
10808
10914
|
fill: "currentColor",
|
|
10809
10915
|
...props,
|
|
10810
|
-
children: /* @__PURE__ */
|
|
10916
|
+
children: /* @__PURE__ */ jsx24(
|
|
10811
10917
|
"path",
|
|
10812
10918
|
{
|
|
10813
10919
|
fillRule: "evenodd",
|
|
@@ -10816,7 +10922,7 @@ var DangerIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10816
10922
|
)
|
|
10817
10923
|
}
|
|
10818
10924
|
);
|
|
10819
|
-
var NoteIcon = ({ ...props }) => /* @__PURE__ */
|
|
10925
|
+
var NoteIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
10820
10926
|
"svg",
|
|
10821
10927
|
{
|
|
10822
10928
|
role: "img",
|
|
@@ -10827,7 +10933,7 @@ var NoteIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10827
10933
|
viewBox: "0 0 14 16",
|
|
10828
10934
|
fill: "currentColor",
|
|
10829
10935
|
...props,
|
|
10830
|
-
children: /* @__PURE__ */
|
|
10936
|
+
children: /* @__PURE__ */ jsx24(
|
|
10831
10937
|
"path",
|
|
10832
10938
|
{
|
|
10833
10939
|
fillRule: "evenodd",
|
|
@@ -10836,7 +10942,7 @@ var NoteIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10836
10942
|
)
|
|
10837
10943
|
}
|
|
10838
10944
|
);
|
|
10839
|
-
var TipIcon = ({ ...props }) => /* @__PURE__ */
|
|
10945
|
+
var TipIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
10840
10946
|
"svg",
|
|
10841
10947
|
{
|
|
10842
10948
|
role: "img",
|
|
@@ -10847,7 +10953,7 @@ var TipIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10847
10953
|
viewBox: "0 0 12 16",
|
|
10848
10954
|
fill: "currentColor",
|
|
10849
10955
|
...props,
|
|
10850
|
-
children: /* @__PURE__ */
|
|
10956
|
+
children: /* @__PURE__ */ jsx24(
|
|
10851
10957
|
"path",
|
|
10852
10958
|
{
|
|
10853
10959
|
fillRule: "evenodd",
|
|
@@ -10856,7 +10962,7 @@ var TipIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10856
10962
|
)
|
|
10857
10963
|
}
|
|
10858
10964
|
);
|
|
10859
|
-
var CautionIcon = ({ ...props }) => /* @__PURE__ */
|
|
10965
|
+
var CautionIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
10860
10966
|
"svg",
|
|
10861
10967
|
{
|
|
10862
10968
|
role: "img",
|
|
@@ -10867,7 +10973,7 @@ var CautionIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10867
10973
|
viewBox: "0 0 16 16",
|
|
10868
10974
|
fill: "currentColor",
|
|
10869
10975
|
...props,
|
|
10870
|
-
children: /* @__PURE__ */
|
|
10976
|
+
children: /* @__PURE__ */ jsx24(
|
|
10871
10977
|
"path",
|
|
10872
10978
|
{
|
|
10873
10979
|
fillRule: "evenodd",
|
|
@@ -10876,7 +10982,7 @@ var CautionIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10876
10982
|
)
|
|
10877
10983
|
}
|
|
10878
10984
|
);
|
|
10879
|
-
var SuccessIcon = ({ ...props }) => /* @__PURE__ */
|
|
10985
|
+
var SuccessIcon = ({ ...props }) => /* @__PURE__ */ jsx24(
|
|
10880
10986
|
"svg",
|
|
10881
10987
|
{
|
|
10882
10988
|
role: "img",
|
|
@@ -10887,7 +10993,7 @@ var SuccessIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10887
10993
|
fill: "currentColor",
|
|
10888
10994
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10889
10995
|
...props,
|
|
10890
|
-
children: /* @__PURE__ */
|
|
10996
|
+
children: /* @__PURE__ */ jsx24(
|
|
10891
10997
|
"path",
|
|
10892
10998
|
{
|
|
10893
10999
|
fillRule: "evenodd",
|
|
@@ -10899,95 +11005,95 @@ var SuccessIcon = ({ ...props }) => /* @__PURE__ */ jsx23(
|
|
|
10899
11005
|
);
|
|
10900
11006
|
|
|
10901
11007
|
// src/components/Callout/Callout.tsx
|
|
10902
|
-
import { jsx as
|
|
11008
|
+
import { jsx as jsx25, jsxs as jsxs14 } from "@emotion/react/jsx-runtime";
|
|
10903
11009
|
var calloutTypeDataMap = {
|
|
10904
11010
|
caution: {
|
|
10905
11011
|
icon: CautionIcon,
|
|
10906
|
-
descriptionColor:
|
|
11012
|
+
descriptionColor: css23`
|
|
10907
11013
|
color: var(--caution-desc);
|
|
10908
11014
|
`,
|
|
10909
|
-
iconColor:
|
|
11015
|
+
iconColor: css23`
|
|
10910
11016
|
color: var(--caution-icon);
|
|
10911
11017
|
`,
|
|
10912
|
-
containerStyles:
|
|
11018
|
+
containerStyles: css23`
|
|
10913
11019
|
color: var(--caution-title);
|
|
10914
11020
|
background-color: var(--caution-container);
|
|
10915
11021
|
`
|
|
10916
11022
|
},
|
|
10917
11023
|
danger: {
|
|
10918
11024
|
icon: DangerIcon,
|
|
10919
|
-
descriptionColor:
|
|
11025
|
+
descriptionColor: css23`
|
|
10920
11026
|
color: var(--danger-desc);
|
|
10921
11027
|
`,
|
|
10922
|
-
iconColor:
|
|
11028
|
+
iconColor: css23`
|
|
10923
11029
|
color: var(--danger-icon);
|
|
10924
11030
|
`,
|
|
10925
|
-
containerStyles:
|
|
11031
|
+
containerStyles: css23`
|
|
10926
11032
|
color: var(--danger-title);
|
|
10927
11033
|
background-color: var(--danger-container);
|
|
10928
11034
|
`
|
|
10929
11035
|
},
|
|
10930
11036
|
error: {
|
|
10931
11037
|
icon: CautionIcon,
|
|
10932
|
-
descriptionColor:
|
|
11038
|
+
descriptionColor: css23`
|
|
10933
11039
|
color: var(--danger-desc);
|
|
10934
11040
|
`,
|
|
10935
|
-
iconColor:
|
|
11041
|
+
iconColor: css23`
|
|
10936
11042
|
color: var(--danger-icon);
|
|
10937
11043
|
`,
|
|
10938
|
-
containerStyles:
|
|
11044
|
+
containerStyles: css23`
|
|
10939
11045
|
color: var(--danger-title);
|
|
10940
11046
|
background-color: var(--danger-container);
|
|
10941
11047
|
`
|
|
10942
11048
|
},
|
|
10943
11049
|
info: {
|
|
10944
11050
|
icon: InfoIcon,
|
|
10945
|
-
descriptionColor:
|
|
11051
|
+
descriptionColor: css23`
|
|
10946
11052
|
color: var(--info-desc);
|
|
10947
11053
|
`,
|
|
10948
|
-
iconColor:
|
|
11054
|
+
iconColor: css23`
|
|
10949
11055
|
color: var(--info-icon);
|
|
10950
11056
|
`,
|
|
10951
|
-
containerStyles:
|
|
11057
|
+
containerStyles: css23`
|
|
10952
11058
|
color: var(--info-title);
|
|
10953
11059
|
background-color: var(--info-container);
|
|
10954
11060
|
`
|
|
10955
11061
|
},
|
|
10956
11062
|
note: {
|
|
10957
11063
|
icon: NoteIcon,
|
|
10958
|
-
descriptionColor:
|
|
11064
|
+
descriptionColor: css23`
|
|
10959
11065
|
color: var(--note-desc);
|
|
10960
11066
|
`,
|
|
10961
|
-
iconColor:
|
|
11067
|
+
iconColor: css23`
|
|
10962
11068
|
color: var(--note-icon);
|
|
10963
11069
|
`,
|
|
10964
|
-
containerStyles:
|
|
11070
|
+
containerStyles: css23`
|
|
10965
11071
|
color: var(--note-title);
|
|
10966
11072
|
background-color: var(--note-container);
|
|
10967
11073
|
`
|
|
10968
11074
|
},
|
|
10969
11075
|
success: {
|
|
10970
11076
|
icon: SuccessIcon,
|
|
10971
|
-
descriptionColor:
|
|
11077
|
+
descriptionColor: css23`
|
|
10972
11078
|
color: var(--success-desc);
|
|
10973
11079
|
`,
|
|
10974
|
-
iconColor:
|
|
11080
|
+
iconColor: css23`
|
|
10975
11081
|
color: var(--success-icon);
|
|
10976
11082
|
`,
|
|
10977
|
-
containerStyles:
|
|
11083
|
+
containerStyles: css23`
|
|
10978
11084
|
color: var(--success-title);
|
|
10979
11085
|
background-color: var(--success-container);
|
|
10980
11086
|
`
|
|
10981
11087
|
},
|
|
10982
11088
|
tip: {
|
|
10983
11089
|
icon: TipIcon,
|
|
10984
|
-
descriptionColor:
|
|
11090
|
+
descriptionColor: css23`
|
|
10985
11091
|
color: var(--success-desc);
|
|
10986
11092
|
`,
|
|
10987
|
-
iconColor:
|
|
11093
|
+
iconColor: css23`
|
|
10988
11094
|
color: var(--success-icon);
|
|
10989
11095
|
`,
|
|
10990
|
-
containerStyles:
|
|
11096
|
+
containerStyles: css23`
|
|
10991
11097
|
color: var(--success-title);
|
|
10992
11098
|
background-color: var(--success-container);
|
|
10993
11099
|
`
|
|
@@ -10999,7 +11105,7 @@ var Callout = ({ type = "info", compact = false, title, children, className }) =
|
|
|
10999
11105
|
return null;
|
|
11000
11106
|
}
|
|
11001
11107
|
const Icon2 = calloutTypeData.icon;
|
|
11002
|
-
return /* @__PURE__ */
|
|
11108
|
+
return /* @__PURE__ */ jsx25(
|
|
11003
11109
|
"div",
|
|
11004
11110
|
{
|
|
11005
11111
|
"data-testid": "sdk-ui-callout",
|
|
@@ -11010,11 +11116,11 @@ var Callout = ({ type = "info", compact = false, title, children, className }) =
|
|
|
11010
11116
|
typeof className === "object" ? className : ""
|
|
11011
11117
|
],
|
|
11012
11118
|
className: `${typeof className === "string" ? className : ""}`,
|
|
11013
|
-
children: /* @__PURE__ */
|
|
11014
|
-
compact ? null : /* @__PURE__ */
|
|
11015
|
-
/* @__PURE__ */
|
|
11016
|
-
title ? /* @__PURE__ */
|
|
11017
|
-
children ? /* @__PURE__ */
|
|
11119
|
+
children: /* @__PURE__ */ jsxs14("div", { css: calloutInner, children: [
|
|
11120
|
+
compact ? null : /* @__PURE__ */ jsx25("div", { css: calloutIconWrap, children: /* @__PURE__ */ jsx25(Icon2, { css: [calloutIcon, calloutTypeData.iconColor] }) }),
|
|
11121
|
+
/* @__PURE__ */ jsxs14("div", { css: [calloutBody, compact ? calloutBodyCompact : void 0], children: [
|
|
11122
|
+
title ? /* @__PURE__ */ jsx25("div", { css: [calloutTitle], children: title }) : null,
|
|
11123
|
+
children ? /* @__PURE__ */ jsx25("div", { css: [calloutTypeData.descriptionColor], children }) : null
|
|
11018
11124
|
] })
|
|
11019
11125
|
] })
|
|
11020
11126
|
}
|
|
@@ -11025,19 +11131,19 @@ var Callout = ({ type = "info", compact = false, title, children, className }) =
|
|
|
11025
11131
|
import { CgMoreAlt } from "react-icons/cg";
|
|
11026
11132
|
|
|
11027
11133
|
// src/components/Card/Card.styles.ts
|
|
11028
|
-
import { css as
|
|
11029
|
-
var CardContainer =
|
|
11134
|
+
import { css as css24 } from "@emotion/react";
|
|
11135
|
+
var CardContainer = css24`
|
|
11030
11136
|
background: var(--white);
|
|
11031
11137
|
border: 1px solid var(--gray-300);
|
|
11032
11138
|
border-radius: var(--rounded-base);
|
|
11033
11139
|
padding: var(--spacing-md);
|
|
11034
11140
|
position: relative;
|
|
11035
11141
|
`;
|
|
11036
|
-
var CardTitle =
|
|
11142
|
+
var CardTitle = css24`
|
|
11037
11143
|
margin: 0 0 var(--spacing-base);
|
|
11038
11144
|
padding-right: var(--spacing-lg);
|
|
11039
11145
|
`;
|
|
11040
|
-
var CardMenu =
|
|
11146
|
+
var CardMenu = css24`
|
|
11041
11147
|
background: transparent;
|
|
11042
11148
|
border: none;
|
|
11043
11149
|
padding: 0;
|
|
@@ -11047,16 +11153,16 @@ var CardMenu = css22`
|
|
|
11047
11153
|
`;
|
|
11048
11154
|
|
|
11049
11155
|
// src/components/Card/Card.tsx
|
|
11050
|
-
import { jsx as
|
|
11156
|
+
import { jsx as jsx26, jsxs as jsxs15 } from "@emotion/react/jsx-runtime";
|
|
11051
11157
|
var Card = ({ title, menuItems, children, disabled, menuButtonTestId, ...props }) => {
|
|
11052
11158
|
const normalizeTitle = (title == null ? void 0 : title.includes("_")) ? title.replaceAll("_", " ") : title;
|
|
11053
|
-
return /* @__PURE__ */
|
|
11054
|
-
title ? /* @__PURE__ */
|
|
11055
|
-
menuItems ? /* @__PURE__ */
|
|
11159
|
+
return /* @__PURE__ */ jsxs15("div", { css: CardContainer, ...props, children: [
|
|
11160
|
+
title ? /* @__PURE__ */ jsx26(Heading, { level: 3, css: CardTitle, children: normalizeTitle }) : null,
|
|
11161
|
+
menuItems ? /* @__PURE__ */ jsx26(
|
|
11056
11162
|
Menu,
|
|
11057
11163
|
{
|
|
11058
11164
|
menuLabel: "More options",
|
|
11059
|
-
menuTrigger: /* @__PURE__ */
|
|
11165
|
+
menuTrigger: /* @__PURE__ */ jsx26(
|
|
11060
11166
|
"button",
|
|
11061
11167
|
{
|
|
11062
11168
|
"aria-label": "More options",
|
|
@@ -11064,7 +11170,7 @@ var Card = ({ title, menuItems, children, disabled, menuButtonTestId, ...props }
|
|
|
11064
11170
|
disabled,
|
|
11065
11171
|
css: CardMenu,
|
|
11066
11172
|
"data-test-id": menuButtonTestId != null ? menuButtonTestId : "list-card-menu",
|
|
11067
|
-
children: /* @__PURE__ */
|
|
11173
|
+
children: /* @__PURE__ */ jsx26(Icon, { icon: CgMoreAlt, iconColor: "currentColor", size: 32 })
|
|
11068
11174
|
}
|
|
11069
11175
|
),
|
|
11070
11176
|
children: menuItems
|
|
@@ -11075,11 +11181,11 @@ var Card = ({ title, menuItems, children, disabled, menuButtonTestId, ...props }
|
|
|
11075
11181
|
};
|
|
11076
11182
|
|
|
11077
11183
|
// src/components/Card/CardContainer.styles.ts
|
|
11078
|
-
import { css as
|
|
11079
|
-
var CardContainerWrapper = (bgColor) =>
|
|
11184
|
+
import { css as css25 } from "@emotion/react";
|
|
11185
|
+
var CardContainerWrapper = (bgColor) => css25`
|
|
11080
11186
|
background: ${bgColor === "gray" ? `var(--gray-50)` : `var(--white)`};
|
|
11081
11187
|
`;
|
|
11082
|
-
var CardContainerInner = ({ padding, withLastColumn }) =>
|
|
11188
|
+
var CardContainerInner = ({ padding, withLastColumn }) => css25`
|
|
11083
11189
|
display: grid;
|
|
11084
11190
|
gap: var(--spacing-lg);
|
|
11085
11191
|
max-width: var(--site-width);
|
|
@@ -11093,7 +11199,7 @@ var CardContainerInner = ({ padding, withLastColumn }) => css23`
|
|
|
11093
11199
|
`;
|
|
11094
11200
|
|
|
11095
11201
|
// src/components/Card/CardContainer.tsx
|
|
11096
|
-
import { jsx as
|
|
11202
|
+
import { jsx as jsx27 } from "@emotion/react/jsx-runtime";
|
|
11097
11203
|
var CardContainer2 = ({
|
|
11098
11204
|
bgColor = "white",
|
|
11099
11205
|
padding = true,
|
|
@@ -11101,12 +11207,12 @@ var CardContainer2 = ({
|
|
|
11101
11207
|
children,
|
|
11102
11208
|
...props
|
|
11103
11209
|
}) => {
|
|
11104
|
-
return /* @__PURE__ */
|
|
11210
|
+
return /* @__PURE__ */ jsx27("div", { css: CardContainerWrapper(bgColor), ...props, children: /* @__PURE__ */ jsx27("div", { css: CardContainerInner({ padding, withLastColumn }), children }) });
|
|
11105
11211
|
};
|
|
11106
11212
|
|
|
11107
11213
|
// src/components/Counter/Counter.styles.ts
|
|
11108
|
-
import { css as
|
|
11109
|
-
var counterContainer =
|
|
11214
|
+
import { css as css26 } from "@emotion/react";
|
|
11215
|
+
var counterContainer = css26`
|
|
11110
11216
|
align-items: center;
|
|
11111
11217
|
border-radius: var(--rounded-full);
|
|
11112
11218
|
border: 1px solid var(--gray-300);
|
|
@@ -11118,16 +11224,16 @@ var counterContainer = css24`
|
|
|
11118
11224
|
width: var(--spacing-base);
|
|
11119
11225
|
height: var(--spacing-base);
|
|
11120
11226
|
`;
|
|
11121
|
-
var counterZeroValue =
|
|
11227
|
+
var counterZeroValue = css26`
|
|
11122
11228
|
background: var(--brand-secondary-1);
|
|
11123
11229
|
border-radius: var(--rounded-full);
|
|
11124
11230
|
width: 2px;
|
|
11125
11231
|
height: 2px;
|
|
11126
11232
|
`;
|
|
11127
|
-
var counterTripleValue =
|
|
11233
|
+
var counterTripleValue = css26`
|
|
11128
11234
|
position: relative;
|
|
11129
11235
|
`;
|
|
11130
|
-
var counterIcon =
|
|
11236
|
+
var counterIcon = css26`
|
|
11131
11237
|
border-radius: var(--rounded-full);
|
|
11132
11238
|
background: var(--white);
|
|
11133
11239
|
color: var(--brand-secondary-3);
|
|
@@ -11138,21 +11244,21 @@ var counterIcon = css24`
|
|
|
11138
11244
|
`;
|
|
11139
11245
|
|
|
11140
11246
|
// src/components/Counter/Counter.tsx
|
|
11141
|
-
import { jsx as
|
|
11247
|
+
import { jsx as jsx28, jsxs as jsxs16 } from "@emotion/react/jsx-runtime";
|
|
11142
11248
|
var Counter = ({ count }) => {
|
|
11143
11249
|
if (typeof count === "undefined") {
|
|
11144
11250
|
return null;
|
|
11145
11251
|
}
|
|
11146
|
-
const isTripleDigits = count > 99 ? /* @__PURE__ */
|
|
11252
|
+
const isTripleDigits = count > 99 ? /* @__PURE__ */ jsxs16("span", { css: counterTripleValue, title: `${count}`, children: [
|
|
11147
11253
|
"99",
|
|
11148
|
-
/* @__PURE__ */
|
|
11254
|
+
/* @__PURE__ */ jsx28(Icon, { icon: "math-plus", iconColor: "currentColor", size: "0.5rem", css: counterIcon })
|
|
11149
11255
|
] }) : count;
|
|
11150
|
-
const formatCount = count === 0 ? /* @__PURE__ */
|
|
11151
|
-
return /* @__PURE__ */
|
|
11256
|
+
const formatCount = count === 0 ? /* @__PURE__ */ jsx28("span", { css: counterZeroValue, title: `${count}` }) : isTripleDigits;
|
|
11257
|
+
return /* @__PURE__ */ jsx28("div", { css: counterContainer, children: formatCount });
|
|
11152
11258
|
};
|
|
11153
11259
|
|
|
11154
11260
|
// src/components/DashedBox/DashedBox.styles.ts
|
|
11155
|
-
import { css as
|
|
11261
|
+
import { css as css27 } from "@emotion/react";
|
|
11156
11262
|
var minHeight = (prop) => {
|
|
11157
11263
|
const values = {
|
|
11158
11264
|
auto: "auto",
|
|
@@ -11171,7 +11277,7 @@ var alignItemsConvert = (props) => {
|
|
|
11171
11277
|
};
|
|
11172
11278
|
return alignment[props];
|
|
11173
11279
|
};
|
|
11174
|
-
var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) =>
|
|
11280
|
+
var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) => css27`
|
|
11175
11281
|
align-items: ${alignItemsConvert(textAlign)};
|
|
11176
11282
|
border: 2px dashed var(--gray-300);
|
|
11177
11283
|
border-radius: var(--rounded-base);
|
|
@@ -11186,7 +11292,7 @@ var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) => css25`
|
|
|
11186
11292
|
`;
|
|
11187
11293
|
|
|
11188
11294
|
// src/components/DashedBox/DashedBox.tsx
|
|
11189
|
-
import { jsx as
|
|
11295
|
+
import { jsx as jsx29 } from "@emotion/react/jsx-runtime";
|
|
11190
11296
|
var DashedBox = ({
|
|
11191
11297
|
bgColor = "transparent",
|
|
11192
11298
|
textAlign = "center",
|
|
@@ -11194,15 +11300,15 @@ var DashedBox = ({
|
|
|
11194
11300
|
children,
|
|
11195
11301
|
...props
|
|
11196
11302
|
}) => {
|
|
11197
|
-
return /* @__PURE__ */
|
|
11303
|
+
return /* @__PURE__ */ jsx29("div", { css: DashedBoxContainer({ bgColor, boxHeight, textAlign }), ...props, children });
|
|
11198
11304
|
};
|
|
11199
11305
|
|
|
11200
11306
|
// src/components/Details/Details.tsx
|
|
11201
11307
|
import * as React8 from "react";
|
|
11202
11308
|
|
|
11203
11309
|
// src/components/Details/Details.styles.ts
|
|
11204
|
-
import { css as
|
|
11205
|
-
var details =
|
|
11310
|
+
import { css as css28 } from "@emotion/react";
|
|
11311
|
+
var details = css28`
|
|
11206
11312
|
cursor: pointer;
|
|
11207
11313
|
&[open] {
|
|
11208
11314
|
& > summary svg {
|
|
@@ -11210,11 +11316,11 @@ var details = css26`
|
|
|
11210
11316
|
}
|
|
11211
11317
|
}
|
|
11212
11318
|
`;
|
|
11213
|
-
var detailsContent =
|
|
11319
|
+
var detailsContent = css28`
|
|
11214
11320
|
animation: ${fadeInRtl} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
11215
11321
|
will-change: height;
|
|
11216
11322
|
`;
|
|
11217
|
-
var summary =
|
|
11323
|
+
var summary = css28`
|
|
11218
11324
|
align-items: center;
|
|
11219
11325
|
display: grid;
|
|
11220
11326
|
grid-template-columns: 1.25rem 1fr;
|
|
@@ -11227,16 +11333,16 @@ var summary = css26`
|
|
|
11227
11333
|
display: none;
|
|
11228
11334
|
}
|
|
11229
11335
|
`;
|
|
11230
|
-
var summaryIcon =
|
|
11336
|
+
var summaryIcon = css28`
|
|
11231
11337
|
transition: rotate var(--duration-fast) var(--timing-ease-out);
|
|
11232
11338
|
rotate: -90deg;
|
|
11233
11339
|
`;
|
|
11234
|
-
var summaryIconVisiblyHidden =
|
|
11340
|
+
var summaryIconVisiblyHidden = css28`
|
|
11235
11341
|
visibility: hidden;
|
|
11236
11342
|
`;
|
|
11237
11343
|
|
|
11238
11344
|
// src/components/Details/Details.tsx
|
|
11239
|
-
import { jsx as
|
|
11345
|
+
import { jsx as jsx30, jsxs as jsxs17 } from "@emotion/react/jsx-runtime";
|
|
11240
11346
|
var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props }) => {
|
|
11241
11347
|
const detailsRef = React8.useRef(null);
|
|
11242
11348
|
const [open, setOpen] = React8.useState(isOpenByDefault);
|
|
@@ -11256,9 +11362,9 @@ var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props
|
|
|
11256
11362
|
return (_a2 = detailsRef.current) == null ? void 0 : _a2.removeEventListener("toggle", toggleEvent);
|
|
11257
11363
|
};
|
|
11258
11364
|
}, [detailsRef]);
|
|
11259
|
-
return /* @__PURE__ */
|
|
11260
|
-
/* @__PURE__ */
|
|
11261
|
-
/* @__PURE__ */
|
|
11365
|
+
return /* @__PURE__ */ jsxs17("details", { "data-testid": "details", css: details, open, ref: detailsRef, ...props, children: [
|
|
11366
|
+
/* @__PURE__ */ jsxs17("summary", { "data-testid": "summary", css: summary, children: [
|
|
11367
|
+
/* @__PURE__ */ jsx30(
|
|
11262
11368
|
Icon,
|
|
11263
11369
|
{
|
|
11264
11370
|
css: [!children ? summaryIconVisiblyHidden : void 0, summaryIcon],
|
|
@@ -11269,7 +11375,7 @@ var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props
|
|
|
11269
11375
|
),
|
|
11270
11376
|
summary2
|
|
11271
11377
|
] }),
|
|
11272
|
-
open ? /* @__PURE__ */
|
|
11378
|
+
open ? /* @__PURE__ */ jsx30("div", { "data-testid": "details-content", css: detailsContent, children }) : null
|
|
11273
11379
|
] });
|
|
11274
11380
|
};
|
|
11275
11381
|
|
|
@@ -11278,8 +11384,8 @@ import React11, { useEffect as useEffect5, useMemo, useRef as useRef2 } from "re
|
|
|
11278
11384
|
import { CgChevronRight } from "react-icons/cg";
|
|
11279
11385
|
|
|
11280
11386
|
// src/components/Drawer/Drawer.styles.ts
|
|
11281
|
-
import { css as
|
|
11282
|
-
var drawerStyles = (bgColor = "var(--white)") =>
|
|
11387
|
+
import { css as css29, keyframes as keyframes2 } from "@emotion/react";
|
|
11388
|
+
var drawerStyles = (bgColor = "var(--white)") => css29`
|
|
11283
11389
|
background-color: ${bgColor};
|
|
11284
11390
|
display: flex;
|
|
11285
11391
|
gap: var(--spacing-sm);
|
|
@@ -11289,7 +11395,7 @@ var drawerStyles = (bgColor = "var(--white)") => css27`
|
|
|
11289
11395
|
padding-top: var(--spacing-sm);
|
|
11290
11396
|
height: 100%;
|
|
11291
11397
|
`;
|
|
11292
|
-
var drawerCloseButtonStyles =
|
|
11398
|
+
var drawerCloseButtonStyles = css29`
|
|
11293
11399
|
align-self: flex-end;
|
|
11294
11400
|
background: transparent;
|
|
11295
11401
|
border: none;
|
|
@@ -11297,17 +11403,17 @@ var drawerCloseButtonStyles = css27`
|
|
|
11297
11403
|
padding: var(--spacing-xs);
|
|
11298
11404
|
margin-right: var(--spacing-sm);
|
|
11299
11405
|
`;
|
|
11300
|
-
var drawerHeaderStyles =
|
|
11406
|
+
var drawerHeaderStyles = css29`
|
|
11301
11407
|
font-size: var(--fs-lg);
|
|
11302
11408
|
font-weight: var(--fw-bold);
|
|
11303
11409
|
padding-inline: var(--spacing-base);
|
|
11304
11410
|
`;
|
|
11305
|
-
var drawerRendererStyles =
|
|
11411
|
+
var drawerRendererStyles = css29`
|
|
11306
11412
|
inset: 0;
|
|
11307
11413
|
overflow: hidden;
|
|
11308
11414
|
z-index: 40;
|
|
11309
11415
|
`;
|
|
11310
|
-
var drawerInnerStyles =
|
|
11416
|
+
var drawerInnerStyles = css29`
|
|
11311
11417
|
height: 100%;
|
|
11312
11418
|
padding: 0 var(--spacing-base) var(--spacing-base);
|
|
11313
11419
|
overflow: auto;
|
|
@@ -11328,7 +11434,7 @@ var slideDrawerIn = keyframes2`
|
|
|
11328
11434
|
transform: translate(0);
|
|
11329
11435
|
}
|
|
11330
11436
|
`;
|
|
11331
|
-
var drawerWrapperStyles =
|
|
11437
|
+
var drawerWrapperStyles = css29`
|
|
11332
11438
|
position: absolute;
|
|
11333
11439
|
inset-block: 0;
|
|
11334
11440
|
right: 0;
|
|
@@ -11339,7 +11445,7 @@ var drawerWrapperStyles = css27`
|
|
|
11339
11445
|
transition: width var(--duration-fast) ease-out;
|
|
11340
11446
|
box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
|
|
11341
11447
|
`;
|
|
11342
|
-
var drawerWrapperOverlayStyles =
|
|
11448
|
+
var drawerWrapperOverlayStyles = css29`
|
|
11343
11449
|
position: absolute;
|
|
11344
11450
|
inset: 0;
|
|
11345
11451
|
background: rgba(31, 43, 52, 0.4);
|
|
@@ -11348,7 +11454,7 @@ var drawerWrapperOverlayStyles = css27`
|
|
|
11348
11454
|
|
|
11349
11455
|
// src/components/Drawer/DrawerProvider.tsx
|
|
11350
11456
|
import { createContext as createContext3, useCallback, useContext as useContext4, useState as useState4 } from "react";
|
|
11351
|
-
import { jsx as
|
|
11457
|
+
import { jsx as jsx31 } from "@emotion/react/jsx-runtime";
|
|
11352
11458
|
var DrawerContext = createContext3({
|
|
11353
11459
|
drawersRegistry: [],
|
|
11354
11460
|
registerDrawer: () => {
|
|
@@ -11397,7 +11503,7 @@ var DrawerProvider = ({ children }) => {
|
|
|
11397
11503
|
},
|
|
11398
11504
|
[setDrawersRegistry]
|
|
11399
11505
|
);
|
|
11400
|
-
return /* @__PURE__ */
|
|
11506
|
+
return /* @__PURE__ */ jsx31(DrawerContext.Provider, { value: { drawersRegistry, registerDrawer, unregisterDrawer }, children });
|
|
11401
11507
|
};
|
|
11402
11508
|
var useDrawer = () => {
|
|
11403
11509
|
return useContext4(DrawerContext);
|
|
@@ -11418,7 +11524,7 @@ function isEqualDrawerInstance(a, b) {
|
|
|
11418
11524
|
|
|
11419
11525
|
// src/components/Drawer/DrawerRenderer.tsx
|
|
11420
11526
|
import { createContext as createContext4, useContext as useContext5 } from "react";
|
|
11421
|
-
import { Fragment as Fragment4, jsx as
|
|
11527
|
+
import { Fragment as Fragment4, jsx as jsx32, jsxs as jsxs18 } from "@emotion/react/jsx-runtime";
|
|
11422
11528
|
var maxLayeringInPx = 64;
|
|
11423
11529
|
var idealDistanceBetweenLayersInPx = 16;
|
|
11424
11530
|
var CurrentDrawerRendererContext = createContext4({});
|
|
@@ -11438,7 +11544,7 @@ var DrawerRenderer = ({
|
|
|
11438
11544
|
if (drawersToRender.length === 0) {
|
|
11439
11545
|
return null;
|
|
11440
11546
|
}
|
|
11441
|
-
return /* @__PURE__ */
|
|
11547
|
+
return /* @__PURE__ */ jsx32(CurrentDrawerRendererContext.Provider, { value: { stackId }, children: /* @__PURE__ */ jsx32(
|
|
11442
11548
|
"div",
|
|
11443
11549
|
{
|
|
11444
11550
|
css: [
|
|
@@ -11447,7 +11553,7 @@ var DrawerRenderer = ({
|
|
|
11447
11553
|
position === "sticky" ? { height: "100%", marginTop: "-100%" } : void 0
|
|
11448
11554
|
],
|
|
11449
11555
|
...otherProps,
|
|
11450
|
-
children: drawersToRender.map(({ component, id, stackId: stackId2, onRequestClose }, index) => /* @__PURE__ */
|
|
11556
|
+
children: drawersToRender.map(({ component, id, stackId: stackId2, onRequestClose }, index) => /* @__PURE__ */ jsx32(
|
|
11451
11557
|
DrawerWrapper,
|
|
11452
11558
|
{
|
|
11453
11559
|
index,
|
|
@@ -11478,22 +11584,22 @@ var DrawerWrapper = ({
|
|
|
11478
11584
|
offsetInPx = Math.round(maxLayeringInPx * relativeLevel);
|
|
11479
11585
|
}
|
|
11480
11586
|
const calculatedWidth = `calc(${width} - ${offsetInPx}px)`;
|
|
11481
|
-
return /* @__PURE__ */
|
|
11482
|
-
/* @__PURE__ */
|
|
11483
|
-
/* @__PURE__ */
|
|
11587
|
+
return /* @__PURE__ */ jsxs18(Fragment4, { children: [
|
|
11588
|
+
/* @__PURE__ */ jsx32("div", { css: drawerWrapperOverlayStyles, onClick: onOverlayClick }),
|
|
11589
|
+
/* @__PURE__ */ jsx32("div", { css: [drawerWrapperStyles, { width: calculatedWidth, minWidth, maxWidth }], children })
|
|
11484
11590
|
] });
|
|
11485
11591
|
};
|
|
11486
11592
|
|
|
11487
11593
|
// src/components/Drawer/Drawer.tsx
|
|
11488
|
-
import { jsx as
|
|
11594
|
+
import { jsx as jsx33, jsxs as jsxs19 } from "@emotion/react/jsx-runtime";
|
|
11489
11595
|
var defaultSackId = "_default";
|
|
11490
11596
|
var Drawer = React11.forwardRef(
|
|
11491
11597
|
({ width, minWidth, maxWidth, position, ...drawerProps }, ref) => {
|
|
11492
11598
|
const drawerRendererProps = { width, minWidth, maxWidth, position };
|
|
11493
11599
|
const { stackId: inheritedStackId } = useCurrentDrawerRenderer();
|
|
11494
|
-
return inheritedStackId ? /* @__PURE__ */
|
|
11495
|
-
/* @__PURE__ */
|
|
11496
|
-
/* @__PURE__ */
|
|
11600
|
+
return inheritedStackId ? /* @__PURE__ */ jsx33(DrawerInner, { ref, ...drawerProps, stackId: inheritedStackId }) : drawerProps.stackId ? /* @__PURE__ */ jsx33(DrawerInner, { ref, ...drawerProps }) : /* @__PURE__ */ jsxs19(DrawerProvider, { children: [
|
|
11601
|
+
/* @__PURE__ */ jsx33(DrawerInner, { ref, ...drawerProps }),
|
|
11602
|
+
/* @__PURE__ */ jsx33(DrawerRenderer, { stackId: defaultSackId, ...drawerRendererProps })
|
|
11497
11603
|
] });
|
|
11498
11604
|
}
|
|
11499
11605
|
);
|
|
@@ -11511,7 +11617,7 @@ var DrawerInner = ({
|
|
|
11511
11617
|
const closeButtonRef = useRef2(null);
|
|
11512
11618
|
const component = useMemo(() => {
|
|
11513
11619
|
const headerId = `dialog-header-${stackId}-${id}`;
|
|
11514
|
-
return /* @__PURE__ */
|
|
11620
|
+
return /* @__PURE__ */ jsxs19(
|
|
11515
11621
|
"div",
|
|
11516
11622
|
{
|
|
11517
11623
|
ref,
|
|
@@ -11522,7 +11628,7 @@ var DrawerInner = ({
|
|
|
11522
11628
|
css: drawerStyles(bgColor),
|
|
11523
11629
|
"data-test-id": "side-dialog",
|
|
11524
11630
|
children: [
|
|
11525
|
-
/* @__PURE__ */
|
|
11631
|
+
/* @__PURE__ */ jsx33(
|
|
11526
11632
|
Button,
|
|
11527
11633
|
{
|
|
11528
11634
|
ref: closeButtonRef,
|
|
@@ -11531,11 +11637,11 @@ var DrawerInner = ({
|
|
|
11531
11637
|
css: drawerCloseButtonStyles,
|
|
11532
11638
|
title: "Close dialog",
|
|
11533
11639
|
buttonType: "ghost",
|
|
11534
|
-
children: /* @__PURE__ */
|
|
11640
|
+
children: /* @__PURE__ */ jsx33(Icon, { icon: CgChevronRight, iconColor: "gray", size: "1.5rem" })
|
|
11535
11641
|
}
|
|
11536
11642
|
),
|
|
11537
|
-
header ? /* @__PURE__ */
|
|
11538
|
-
/* @__PURE__ */
|
|
11643
|
+
header ? /* @__PURE__ */ jsx33("div", { id: headerId, css: drawerHeaderStyles, children: header }) : null,
|
|
11644
|
+
/* @__PURE__ */ jsx33("div", { css: drawerInnerStyles, children })
|
|
11539
11645
|
]
|
|
11540
11646
|
}
|
|
11541
11647
|
);
|
|
@@ -11564,8 +11670,8 @@ var DrawerInner = ({
|
|
|
11564
11670
|
};
|
|
11565
11671
|
|
|
11566
11672
|
// src/components/Input/styles/CaptionText.styles.ts
|
|
11567
|
-
import { css as
|
|
11568
|
-
var CaptionText = (dynamicSize) =>
|
|
11673
|
+
import { css as css30 } from "@emotion/react";
|
|
11674
|
+
var CaptionText = (dynamicSize) => css30`
|
|
11569
11675
|
color: var(--gray-500);
|
|
11570
11676
|
display: block;
|
|
11571
11677
|
font-size: ${dynamicSize ? "clamp(var(--fs-xs), 87.5%,var(--fs-sm))" : "var(--fs-sm)"};
|
|
@@ -11574,29 +11680,29 @@ var CaptionText = (dynamicSize) => css28`
|
|
|
11574
11680
|
`;
|
|
11575
11681
|
|
|
11576
11682
|
// src/components/Input/Caption.tsx
|
|
11577
|
-
import { jsx as
|
|
11683
|
+
import { jsx as jsx34 } from "@emotion/react/jsx-runtime";
|
|
11578
11684
|
var Caption = ({ children, testId, dynamicSize = false, ...props }) => {
|
|
11579
|
-
return /* @__PURE__ */
|
|
11685
|
+
return /* @__PURE__ */ jsx34("small", { css: CaptionText(dynamicSize), "data-test-id": testId, ...props, children });
|
|
11580
11686
|
};
|
|
11581
11687
|
|
|
11582
11688
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
11583
11689
|
import { forwardRef as forwardRef4 } from "react";
|
|
11584
11690
|
|
|
11585
11691
|
// src/components/Input/styles/CheckboxWithInfo.styles.ts
|
|
11586
|
-
import { css as
|
|
11587
|
-
var CheckboxWithInfoContainer =
|
|
11692
|
+
import { css as css31 } from "@emotion/react";
|
|
11693
|
+
var CheckboxWithInfoContainer = css31`
|
|
11588
11694
|
align-items: center;
|
|
11589
11695
|
display: flex;
|
|
11590
11696
|
gap: var(--spacing-sm);
|
|
11591
11697
|
`;
|
|
11592
|
-
var CheckboxWithInfoLabel =
|
|
11698
|
+
var CheckboxWithInfoLabel = css31`
|
|
11593
11699
|
align-items: center;
|
|
11594
11700
|
color: var(--gray-500);
|
|
11595
11701
|
display: flex;
|
|
11596
11702
|
font-size: var(--fs-xs);
|
|
11597
11703
|
gap: var(--spacing-sm);
|
|
11598
11704
|
`;
|
|
11599
|
-
var CheckboxWithInfoInput =
|
|
11705
|
+
var CheckboxWithInfoInput = css31`
|
|
11600
11706
|
appearance: none;
|
|
11601
11707
|
border: 1px solid var(--gray-300);
|
|
11602
11708
|
background: var(--white) no-repeat bottom center;
|
|
@@ -11629,7 +11735,7 @@ var CheckboxWithInfoInput = css29`
|
|
|
11629
11735
|
border-color: var(--gray-200);
|
|
11630
11736
|
}
|
|
11631
11737
|
`;
|
|
11632
|
-
var InfoDialogContainer =
|
|
11738
|
+
var InfoDialogContainer = css31`
|
|
11633
11739
|
position: relative;
|
|
11634
11740
|
|
|
11635
11741
|
&:hover {
|
|
@@ -11638,7 +11744,7 @@ var InfoDialogContainer = css29`
|
|
|
11638
11744
|
}
|
|
11639
11745
|
}
|
|
11640
11746
|
`;
|
|
11641
|
-
var InfoDialogMessage =
|
|
11747
|
+
var InfoDialogMessage = css31`
|
|
11642
11748
|
background: var(--white);
|
|
11643
11749
|
box-shadow: var(--shadow-base);
|
|
11644
11750
|
border-radius: var(--rounded-md);
|
|
@@ -11655,21 +11761,21 @@ var InfoDialogMessage = css29`
|
|
|
11655
11761
|
`;
|
|
11656
11762
|
|
|
11657
11763
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
11658
|
-
import { jsx as
|
|
11764
|
+
import { jsx as jsx35, jsxs as jsxs20 } from "@emotion/react/jsx-runtime";
|
|
11659
11765
|
var InfoDialog = ({ message }) => {
|
|
11660
|
-
return /* @__PURE__ */
|
|
11661
|
-
/* @__PURE__ */
|
|
11662
|
-
/* @__PURE__ */
|
|
11766
|
+
return /* @__PURE__ */ jsxs20("div", { "data-testid": "info-dialog", css: InfoDialogContainer, children: [
|
|
11767
|
+
/* @__PURE__ */ jsx35(Icon, { icon: "info", iconColor: "green", size: "0.9rem" }),
|
|
11768
|
+
/* @__PURE__ */ jsx35("div", { role: "paragraph", css: InfoDialogMessage, className: "info-message", children: message })
|
|
11663
11769
|
] });
|
|
11664
11770
|
};
|
|
11665
11771
|
var CheckboxWithInfo = forwardRef4(
|
|
11666
11772
|
({ label, name, info, ...props }, ref) => {
|
|
11667
|
-
return /* @__PURE__ */
|
|
11668
|
-
/* @__PURE__ */
|
|
11669
|
-
/* @__PURE__ */
|
|
11670
|
-
/* @__PURE__ */
|
|
11773
|
+
return /* @__PURE__ */ jsxs20("div", { css: CheckboxWithInfoContainer, children: [
|
|
11774
|
+
/* @__PURE__ */ jsxs20("label", { css: CheckboxWithInfoLabel, children: [
|
|
11775
|
+
/* @__PURE__ */ jsx35("input", { type: "checkbox", name, ref, css: CheckboxWithInfoInput, ...props }),
|
|
11776
|
+
/* @__PURE__ */ jsx35("span", { children: label })
|
|
11671
11777
|
] }),
|
|
11672
|
-
info ? /* @__PURE__ */
|
|
11778
|
+
info ? /* @__PURE__ */ jsx35(InfoDialog, { message: info }) : null
|
|
11673
11779
|
] });
|
|
11674
11780
|
}
|
|
11675
11781
|
);
|
|
@@ -11678,8 +11784,8 @@ var CheckboxWithInfo = forwardRef4(
|
|
|
11678
11784
|
import { MdWarning } from "react-icons/md";
|
|
11679
11785
|
|
|
11680
11786
|
// src/components/Input/styles/ErrorMessage.styles.ts
|
|
11681
|
-
import { css as
|
|
11682
|
-
var ErrorText =
|
|
11787
|
+
import { css as css32 } from "@emotion/react";
|
|
11788
|
+
var ErrorText = css32`
|
|
11683
11789
|
align-items: center;
|
|
11684
11790
|
color: var(--brand-secondary-5);
|
|
11685
11791
|
display: flex;
|
|
@@ -11687,10 +11793,10 @@ var ErrorText = css30`
|
|
|
11687
11793
|
`;
|
|
11688
11794
|
|
|
11689
11795
|
// src/components/Input/ErrorMessage.tsx
|
|
11690
|
-
import { jsx as
|
|
11796
|
+
import { jsx as jsx36, jsxs as jsxs21 } from "@emotion/react/jsx-runtime";
|
|
11691
11797
|
var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
11692
|
-
return message ? /* @__PURE__ */
|
|
11693
|
-
/* @__PURE__ */
|
|
11798
|
+
return message ? /* @__PURE__ */ jsxs21("span", { role: "alert", css: ErrorText, "data-test-id": testId, ...otherProps, children: [
|
|
11799
|
+
/* @__PURE__ */ jsx36(Icon, { icon: MdWarning, size: 16, iconColor: "currentColor" }),
|
|
11694
11800
|
message
|
|
11695
11801
|
] }) : null;
|
|
11696
11802
|
};
|
|
@@ -11699,9 +11805,9 @@ var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
|
11699
11805
|
import * as React12 from "react";
|
|
11700
11806
|
|
|
11701
11807
|
// src/components/Input/styles/Fieldset.styles.ts
|
|
11702
|
-
import { css as
|
|
11808
|
+
import { css as css33 } from "@emotion/react";
|
|
11703
11809
|
function fieldsetContainer(invert) {
|
|
11704
|
-
const base =
|
|
11810
|
+
const base = css33`
|
|
11705
11811
|
border-radius: var(--rounded-base);
|
|
11706
11812
|
border: 1px solid var(--gray-300);
|
|
11707
11813
|
|
|
@@ -11713,18 +11819,18 @@ function fieldsetContainer(invert) {
|
|
|
11713
11819
|
}
|
|
11714
11820
|
`;
|
|
11715
11821
|
return invert ? [
|
|
11716
|
-
|
|
11822
|
+
css33`
|
|
11717
11823
|
background: white;
|
|
11718
11824
|
`,
|
|
11719
11825
|
base
|
|
11720
11826
|
] : [
|
|
11721
|
-
|
|
11827
|
+
css33`
|
|
11722
11828
|
background: var(--gray-50);
|
|
11723
11829
|
`,
|
|
11724
11830
|
base
|
|
11725
11831
|
];
|
|
11726
11832
|
}
|
|
11727
|
-
var fieldsetLegend =
|
|
11833
|
+
var fieldsetLegend = css33`
|
|
11728
11834
|
align-items: center;
|
|
11729
11835
|
color: var(--brand-secondary-1);
|
|
11730
11836
|
display: flex;
|
|
@@ -11734,17 +11840,17 @@ var fieldsetLegend = css31`
|
|
|
11734
11840
|
margin-bottom: var(--spacing-base);
|
|
11735
11841
|
float: left; // allows the legend to be inside the fieldset and not sat on the border line
|
|
11736
11842
|
`;
|
|
11737
|
-
var fieldsetBody =
|
|
11843
|
+
var fieldsetBody = css33`
|
|
11738
11844
|
clear: left;
|
|
11739
11845
|
`;
|
|
11740
11846
|
|
|
11741
11847
|
// src/components/Input/Fieldset.tsx
|
|
11742
|
-
import { jsx as
|
|
11848
|
+
import { jsx as jsx37, jsxs as jsxs22 } from "@emotion/react/jsx-runtime";
|
|
11743
11849
|
var Fieldset = React12.forwardRef(
|
|
11744
11850
|
({ legend, disabled, children, invert, ...props }, ref) => {
|
|
11745
|
-
return /* @__PURE__ */
|
|
11851
|
+
return /* @__PURE__ */ jsxs22("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled, ...props, children: [
|
|
11746
11852
|
legend,
|
|
11747
|
-
/* @__PURE__ */
|
|
11853
|
+
/* @__PURE__ */ jsx37("div", { css: fieldsetBody, children })
|
|
11748
11854
|
] });
|
|
11749
11855
|
}
|
|
11750
11856
|
);
|
|
@@ -11753,9 +11859,9 @@ var Fieldset = React12.forwardRef(
|
|
|
11753
11859
|
import * as React13 from "react";
|
|
11754
11860
|
|
|
11755
11861
|
// src/components/Input/Label.tsx
|
|
11756
|
-
import { jsx as
|
|
11862
|
+
import { jsx as jsx38 } from "@emotion/react/jsx-runtime";
|
|
11757
11863
|
var Label = ({ children, className, testId, ...props }) => {
|
|
11758
|
-
return /* @__PURE__ */
|
|
11864
|
+
return /* @__PURE__ */ jsx38(
|
|
11759
11865
|
"label",
|
|
11760
11866
|
{
|
|
11761
11867
|
css: [labelText, typeof className === "object" ? className : void 0],
|
|
@@ -11771,28 +11877,28 @@ var Label = ({ children, className, testId, ...props }) => {
|
|
|
11771
11877
|
import { MdWarning as MdWarning2 } from "react-icons/md";
|
|
11772
11878
|
|
|
11773
11879
|
// src/components/Input/styles/WarningMessage.styles.tsx
|
|
11774
|
-
import { css as
|
|
11775
|
-
var WarningText =
|
|
11880
|
+
import { css as css34 } from "@emotion/react";
|
|
11881
|
+
var WarningText = css34`
|
|
11776
11882
|
align-items: center;
|
|
11777
11883
|
color: var(--alert-text);
|
|
11778
11884
|
display: flex;
|
|
11779
11885
|
gap: var(--spacing-sm);
|
|
11780
11886
|
`;
|
|
11781
|
-
var WarningIcon =
|
|
11887
|
+
var WarningIcon = css34`
|
|
11782
11888
|
color: var(--alert);
|
|
11783
11889
|
`;
|
|
11784
11890
|
|
|
11785
11891
|
// src/components/Input/WarningMessage.tsx
|
|
11786
|
-
import { jsx as
|
|
11892
|
+
import { jsx as jsx39, jsxs as jsxs23 } from "@emotion/react/jsx-runtime";
|
|
11787
11893
|
var WarningMessage = ({ message, testId, ...props }) => {
|
|
11788
|
-
return message ? /* @__PURE__ */
|
|
11789
|
-
/* @__PURE__ */
|
|
11894
|
+
return message ? /* @__PURE__ */ jsxs23("span", { role: "status", css: WarningText, "data-test-id": testId, ...props, children: [
|
|
11895
|
+
/* @__PURE__ */ jsx39(Icon, { css: WarningIcon, icon: MdWarning2, size: "1rem", iconColor: "currentColor" }),
|
|
11790
11896
|
message
|
|
11791
11897
|
] }) : null;
|
|
11792
11898
|
};
|
|
11793
11899
|
|
|
11794
11900
|
// src/components/Input/Input.tsx
|
|
11795
|
-
import { jsx as
|
|
11901
|
+
import { jsx as jsx40, jsxs as jsxs24 } from "@emotion/react/jsx-runtime";
|
|
11796
11902
|
var Input = React13.forwardRef(
|
|
11797
11903
|
({
|
|
11798
11904
|
label,
|
|
@@ -11811,8 +11917,8 @@ var Input = React13.forwardRef(
|
|
|
11811
11917
|
classNameLabel,
|
|
11812
11918
|
...props
|
|
11813
11919
|
}, ref) => {
|
|
11814
|
-
return /* @__PURE__ */
|
|
11815
|
-
showLabel ? /* @__PURE__ */
|
|
11920
|
+
return /* @__PURE__ */ jsxs24("div", { css: inputContainer, "data-test-id": containerTestId ? containerTestId : "container-input-field", children: [
|
|
11921
|
+
showLabel ? /* @__PURE__ */ jsx40(
|
|
11816
11922
|
Label,
|
|
11817
11923
|
{
|
|
11818
11924
|
htmlFor: id,
|
|
@@ -11822,13 +11928,13 @@ var Input = React13.forwardRef(
|
|
|
11822
11928
|
children: label
|
|
11823
11929
|
}
|
|
11824
11930
|
) : null,
|
|
11825
|
-
/* @__PURE__ */
|
|
11931
|
+
/* @__PURE__ */ jsxs24(
|
|
11826
11932
|
"div",
|
|
11827
11933
|
{
|
|
11828
11934
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
11829
11935
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
11830
11936
|
children: [
|
|
11831
|
-
/* @__PURE__ */
|
|
11937
|
+
/* @__PURE__ */ jsx40(
|
|
11832
11938
|
"input",
|
|
11833
11939
|
{
|
|
11834
11940
|
id,
|
|
@@ -11844,23 +11950,23 @@ var Input = React13.forwardRef(
|
|
|
11844
11950
|
ref
|
|
11845
11951
|
}
|
|
11846
11952
|
),
|
|
11847
|
-
icon ? /* @__PURE__ */
|
|
11953
|
+
icon ? /* @__PURE__ */ jsx40("div", { css: inputIcon, children: icon }) : null
|
|
11848
11954
|
]
|
|
11849
11955
|
}
|
|
11850
11956
|
),
|
|
11851
|
-
caption ? /* @__PURE__ */
|
|
11852
|
-
errorMessage ? /* @__PURE__ */
|
|
11853
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
11957
|
+
caption ? /* @__PURE__ */ jsx40(Caption, { testId: captionTestId, children: caption }) : null,
|
|
11958
|
+
errorMessage ? /* @__PURE__ */ jsx40(ErrorMessage, { message: errorMessage, testId: errorTestId }) : null,
|
|
11959
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx40(WarningMessage, { message: warningMessage }) : null
|
|
11854
11960
|
] });
|
|
11855
11961
|
}
|
|
11856
11962
|
);
|
|
11857
11963
|
|
|
11858
11964
|
// src/components/Input/InputComboBox.tsx
|
|
11859
11965
|
import Select from "react-select";
|
|
11860
|
-
import { jsx as
|
|
11966
|
+
import { jsx as jsx41 } from "@emotion/react/jsx-runtime";
|
|
11861
11967
|
function InputComboBox(props) {
|
|
11862
11968
|
var _a;
|
|
11863
|
-
return /* @__PURE__ */
|
|
11969
|
+
return /* @__PURE__ */ jsx41(
|
|
11864
11970
|
Select,
|
|
11865
11971
|
{
|
|
11866
11972
|
...props,
|
|
@@ -11989,17 +12095,17 @@ function InputComboBox(props) {
|
|
|
11989
12095
|
}
|
|
11990
12096
|
|
|
11991
12097
|
// src/components/Input/InputInlineSelect.tsx
|
|
11992
|
-
import { css as
|
|
12098
|
+
import { css as css36 } from "@emotion/react";
|
|
11993
12099
|
import { useRef as useRef3, useState as useState5 } from "react";
|
|
11994
12100
|
import { CgChevronDown as CgChevronDown2 } from "react-icons/cg";
|
|
11995
12101
|
|
|
11996
12102
|
// src/components/Input/styles/InputInlineSelect.styles.ts
|
|
11997
|
-
import { css as
|
|
11998
|
-
var inlineSelectContainer =
|
|
12103
|
+
import { css as css35 } from "@emotion/react";
|
|
12104
|
+
var inlineSelectContainer = css35`
|
|
11999
12105
|
margin-inline: auto;
|
|
12000
12106
|
max-width: fit-content;
|
|
12001
12107
|
`;
|
|
12002
|
-
var inlineSelectBtn =
|
|
12108
|
+
var inlineSelectBtn = css35`
|
|
12003
12109
|
align-items: center;
|
|
12004
12110
|
background: var(--brand-secondary-3);
|
|
12005
12111
|
border: 2px solid var(--brand-secondary-3);
|
|
@@ -12023,7 +12129,7 @@ var inlineSelectBtn = css33`
|
|
|
12023
12129
|
outline: 2px solid var(--brand-secondary-1);
|
|
12024
12130
|
}
|
|
12025
12131
|
`;
|
|
12026
|
-
var inlineSelectMenu =
|
|
12132
|
+
var inlineSelectMenu = css35`
|
|
12027
12133
|
background: var(--white);
|
|
12028
12134
|
border: 1px solid var(--brand-secondary-3);
|
|
12029
12135
|
border-top: none;
|
|
@@ -12034,7 +12140,7 @@ var inlineSelectMenu = css33`
|
|
|
12034
12140
|
inset: auto 0;
|
|
12035
12141
|
transform: translateY(-0.2rem);
|
|
12036
12142
|
`;
|
|
12037
|
-
var inlineSelectBtnOptions =
|
|
12143
|
+
var inlineSelectBtnOptions = css35`
|
|
12038
12144
|
cursor: pointer;
|
|
12039
12145
|
display: block;
|
|
12040
12146
|
font-size: var(--fs-sm);
|
|
@@ -12050,7 +12156,7 @@ var inlineSelectBtnOptions = css33`
|
|
|
12050
12156
|
background: var(--gray-50);
|
|
12051
12157
|
}
|
|
12052
12158
|
`;
|
|
12053
|
-
var inlineSelectMenuClosed =
|
|
12159
|
+
var inlineSelectMenuClosed = css35`
|
|
12054
12160
|
position: absolute;
|
|
12055
12161
|
overflow: hidden;
|
|
12056
12162
|
height: 1px;
|
|
@@ -12060,7 +12166,7 @@ var inlineSelectMenuClosed = css33`
|
|
|
12060
12166
|
`;
|
|
12061
12167
|
|
|
12062
12168
|
// src/components/Input/InputInlineSelect.tsx
|
|
12063
|
-
import { jsx as
|
|
12169
|
+
import { jsx as jsx42, jsxs as jsxs25 } from "@emotion/react/jsx-runtime";
|
|
12064
12170
|
var InputInlineSelect = ({
|
|
12065
12171
|
classNameContainer,
|
|
12066
12172
|
options,
|
|
@@ -12074,17 +12180,17 @@ var InputInlineSelect = ({
|
|
|
12074
12180
|
const divRef = useRef3(null);
|
|
12075
12181
|
useOutsideClick(divRef, () => setMenuVisible(false));
|
|
12076
12182
|
const selected = options.find((option) => option.value === value);
|
|
12077
|
-
return /* @__PURE__ */
|
|
12183
|
+
return /* @__PURE__ */ jsxs25(
|
|
12078
12184
|
"div",
|
|
12079
12185
|
{
|
|
12080
12186
|
ref: divRef,
|
|
12081
|
-
css: !classNameContainer ? inlineSelectContainer :
|
|
12187
|
+
css: !classNameContainer ? inlineSelectContainer : css36`
|
|
12082
12188
|
max-width: fit-content;
|
|
12083
12189
|
${typeof classNameContainer === "object" ? classNameContainer : void 0}
|
|
12084
12190
|
`,
|
|
12085
12191
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
12086
12192
|
children: [
|
|
12087
|
-
/* @__PURE__ */
|
|
12193
|
+
/* @__PURE__ */ jsxs25(
|
|
12088
12194
|
"button",
|
|
12089
12195
|
{
|
|
12090
12196
|
type: "button",
|
|
@@ -12098,18 +12204,18 @@ var InputInlineSelect = ({
|
|
|
12098
12204
|
disabled,
|
|
12099
12205
|
...props,
|
|
12100
12206
|
children: [
|
|
12101
|
-
/* @__PURE__ */
|
|
12102
|
-
disabled ? null : /* @__PURE__ */
|
|
12207
|
+
/* @__PURE__ */ jsx42("span", { children: (_a = selected == null ? void 0 : selected.label) != null ? _a : value }),
|
|
12208
|
+
disabled ? null : /* @__PURE__ */ jsx42(Icon, { icon: CgChevronDown2, iconColor: "currentColor", size: 24 })
|
|
12103
12209
|
]
|
|
12104
12210
|
}
|
|
12105
12211
|
),
|
|
12106
|
-
/* @__PURE__ */
|
|
12212
|
+
/* @__PURE__ */ jsx42(
|
|
12107
12213
|
"div",
|
|
12108
12214
|
{
|
|
12109
12215
|
id: `and-or-${props.id}`,
|
|
12110
12216
|
css: [inlineSelectMenu, menuVisible ? void 0 : inlineSelectMenuClosed],
|
|
12111
12217
|
"aria-hidden": !menuVisible,
|
|
12112
|
-
children: options.map((opt) => /* @__PURE__ */
|
|
12218
|
+
children: options.map((opt) => /* @__PURE__ */ jsx42(
|
|
12113
12219
|
"button",
|
|
12114
12220
|
{
|
|
12115
12221
|
type: "button",
|
|
@@ -12130,7 +12236,7 @@ var InputInlineSelect = ({
|
|
|
12130
12236
|
};
|
|
12131
12237
|
|
|
12132
12238
|
// src/components/Input/InputKeywordSearch.tsx
|
|
12133
|
-
import { jsx as
|
|
12239
|
+
import { jsx as jsx43 } from "@emotion/react/jsx-runtime";
|
|
12134
12240
|
var InputKeywordSearch = ({
|
|
12135
12241
|
onSearchTextChanged,
|
|
12136
12242
|
disabled = false,
|
|
@@ -12149,7 +12255,7 @@ var InputKeywordSearch = ({
|
|
|
12149
12255
|
e.preventDefault();
|
|
12150
12256
|
}
|
|
12151
12257
|
};
|
|
12152
|
-
return /* @__PURE__ */
|
|
12258
|
+
return /* @__PURE__ */ jsx43(
|
|
12153
12259
|
Input,
|
|
12154
12260
|
{
|
|
12155
12261
|
type: "text",
|
|
@@ -12157,7 +12263,7 @@ var InputKeywordSearch = ({
|
|
|
12157
12263
|
placeholder,
|
|
12158
12264
|
showLabel: false,
|
|
12159
12265
|
value,
|
|
12160
|
-
icon: value ? /* @__PURE__ */
|
|
12266
|
+
icon: value ? /* @__PURE__ */ jsx43("button", { css: inputSearchCloseBtn, onClick: onClear, children: /* @__PURE__ */ jsx43(Icon, { icon: "close", iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ jsx43(Icon, { icon: "search", iconColor: "gray", size: "1rem" }),
|
|
12161
12267
|
onChange: handleSearchTextChanged,
|
|
12162
12268
|
onKeyPress: preventSubmitOnField,
|
|
12163
12269
|
disabled,
|
|
@@ -12168,7 +12274,7 @@ var InputKeywordSearch = ({
|
|
|
12168
12274
|
};
|
|
12169
12275
|
|
|
12170
12276
|
// src/components/Input/InputSelect.tsx
|
|
12171
|
-
import { Fragment as Fragment5, jsx as
|
|
12277
|
+
import { Fragment as Fragment5, jsx as jsx44, jsxs as jsxs26 } from "@emotion/react/jsx-runtime";
|
|
12172
12278
|
var InputSelect = ({
|
|
12173
12279
|
label,
|
|
12174
12280
|
defaultOption,
|
|
@@ -12184,13 +12290,13 @@ var InputSelect = ({
|
|
|
12184
12290
|
classNameLabel,
|
|
12185
12291
|
...props
|
|
12186
12292
|
}) => {
|
|
12187
|
-
return /* @__PURE__ */
|
|
12293
|
+
return /* @__PURE__ */ jsxs26(
|
|
12188
12294
|
"div",
|
|
12189
12295
|
{
|
|
12190
12296
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
12191
12297
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
12192
12298
|
children: [
|
|
12193
|
-
showLabel ? /* @__PURE__ */
|
|
12299
|
+
showLabel ? /* @__PURE__ */ jsx44(Fragment5, { children: /* @__PURE__ */ jsxs26(
|
|
12194
12300
|
Label,
|
|
12195
12301
|
{
|
|
12196
12302
|
htmlFor: props.id,
|
|
@@ -12202,7 +12308,7 @@ var InputSelect = ({
|
|
|
12202
12308
|
]
|
|
12203
12309
|
}
|
|
12204
12310
|
) }) : null,
|
|
12205
|
-
/* @__PURE__ */
|
|
12311
|
+
/* @__PURE__ */ jsxs26(
|
|
12206
12312
|
"select",
|
|
12207
12313
|
{
|
|
12208
12314
|
title: label,
|
|
@@ -12217,21 +12323,21 @@ var InputSelect = ({
|
|
|
12217
12323
|
className: typeof classNameControl === "string" ? classNameControl : "",
|
|
12218
12324
|
...props,
|
|
12219
12325
|
children: [
|
|
12220
|
-
defaultOption ? /* @__PURE__ */
|
|
12221
|
-
options.map((opt, index) => /* @__PURE__ */
|
|
12326
|
+
defaultOption ? /* @__PURE__ */ jsx44("option", { value: "", children: defaultOption }) : null,
|
|
12327
|
+
options.map((opt, index) => /* @__PURE__ */ jsx44("option", { value: opt.label, ...opt }, index))
|
|
12222
12328
|
]
|
|
12223
12329
|
}
|
|
12224
12330
|
),
|
|
12225
|
-
caption ? /* @__PURE__ */
|
|
12226
|
-
errorMessage ? /* @__PURE__ */
|
|
12227
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
12331
|
+
caption ? /* @__PURE__ */ jsx44(Caption, { children: caption }) : null,
|
|
12332
|
+
errorMessage ? /* @__PURE__ */ jsx44(ErrorMessage, { message: errorMessage }) : null,
|
|
12333
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx44(WarningMessage, { message: warningMessage }) : null
|
|
12228
12334
|
]
|
|
12229
12335
|
}
|
|
12230
12336
|
);
|
|
12231
12337
|
};
|
|
12232
12338
|
|
|
12233
12339
|
// src/components/Input/InputToggle.tsx
|
|
12234
|
-
import { jsx as
|
|
12340
|
+
import { jsx as jsx45, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
|
|
12235
12341
|
var InputToggle = ({
|
|
12236
12342
|
label,
|
|
12237
12343
|
type,
|
|
@@ -12245,25 +12351,25 @@ var InputToggle = ({
|
|
|
12245
12351
|
fontWeight = "medium",
|
|
12246
12352
|
...props
|
|
12247
12353
|
}) => {
|
|
12248
|
-
return /* @__PURE__ */
|
|
12249
|
-
/* @__PURE__ */
|
|
12250
|
-
/* @__PURE__ */
|
|
12251
|
-
caption || errorMessage ? /* @__PURE__ */
|
|
12252
|
-
caption ? /* @__PURE__ */
|
|
12253
|
-
errorMessage ? /* @__PURE__ */
|
|
12254
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
12354
|
+
return /* @__PURE__ */ jsxs27(Label, { css: [inputToggleLabel, disabled ? inputDisabled : void 0], "data-test-id": testId, children: [
|
|
12355
|
+
/* @__PURE__ */ jsx45("input", { type, css: toggleInput, checked, name, disabled, ...props }),
|
|
12356
|
+
/* @__PURE__ */ jsx45("span", { css: inlineLabel(fontWeight), dangerouslySetInnerHTML: { __html: label } }),
|
|
12357
|
+
caption || errorMessage ? /* @__PURE__ */ jsxs27("span", { css: inputToggleMessageContainer, children: [
|
|
12358
|
+
caption ? /* @__PURE__ */ jsx45(Caption, { children: caption }) : null,
|
|
12359
|
+
errorMessage ? /* @__PURE__ */ jsx45(ErrorMessage, { message: errorMessage }) : null,
|
|
12360
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx45(WarningMessage, { message: warningMessage }) : null
|
|
12255
12361
|
] }) : null
|
|
12256
12362
|
] });
|
|
12257
12363
|
};
|
|
12258
12364
|
|
|
12259
12365
|
// src/components/Input/Legend.tsx
|
|
12260
|
-
import { jsx as
|
|
12366
|
+
import { jsx as jsx46 } from "@emotion/react/jsx-runtime";
|
|
12261
12367
|
var Legend = ({ children }) => {
|
|
12262
|
-
return /* @__PURE__ */
|
|
12368
|
+
return /* @__PURE__ */ jsx46("legend", { css: fieldsetLegend, children });
|
|
12263
12369
|
};
|
|
12264
12370
|
|
|
12265
12371
|
// src/components/Input/Textarea.tsx
|
|
12266
|
-
import { Fragment as Fragment6, jsx as
|
|
12372
|
+
import { Fragment as Fragment6, jsx as jsx47, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
|
|
12267
12373
|
var Textarea = ({
|
|
12268
12374
|
label,
|
|
12269
12375
|
icon,
|
|
@@ -12274,10 +12380,10 @@ var Textarea = ({
|
|
|
12274
12380
|
warningMessage,
|
|
12275
12381
|
...props
|
|
12276
12382
|
}) => {
|
|
12277
|
-
return /* @__PURE__ */
|
|
12278
|
-
showLabel ? /* @__PURE__ */
|
|
12279
|
-
/* @__PURE__ */
|
|
12280
|
-
/* @__PURE__ */
|
|
12383
|
+
return /* @__PURE__ */ jsxs28(Fragment6, { children: [
|
|
12384
|
+
showLabel ? /* @__PURE__ */ jsx47("label", { htmlFor: id, css: [labelText], children: label }) : null,
|
|
12385
|
+
/* @__PURE__ */ jsxs28("div", { css: [inputContainer], children: [
|
|
12386
|
+
/* @__PURE__ */ jsx47(
|
|
12281
12387
|
"textarea",
|
|
12282
12388
|
{
|
|
12283
12389
|
id,
|
|
@@ -12286,36 +12392,31 @@ var Textarea = ({
|
|
|
12286
12392
|
...props
|
|
12287
12393
|
}
|
|
12288
12394
|
),
|
|
12289
|
-
icon ? /* @__PURE__ */
|
|
12395
|
+
icon ? /* @__PURE__ */ jsx47("div", { css: inputIcon, children: icon }) : null
|
|
12290
12396
|
] }),
|
|
12291
|
-
caption ? /* @__PURE__ */
|
|
12292
|
-
errorMessage ? /* @__PURE__ */
|
|
12293
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
12397
|
+
caption ? /* @__PURE__ */ jsx47(Caption, { children: caption }) : null,
|
|
12398
|
+
errorMessage ? /* @__PURE__ */ jsx47(ErrorMessage, { message: errorMessage }) : null,
|
|
12399
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx47(WarningMessage, { message: warningMessage }) : null
|
|
12294
12400
|
] });
|
|
12295
12401
|
};
|
|
12296
12402
|
|
|
12297
12403
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
12298
|
-
import { ClassNames } from "@emotion/react";
|
|
12299
12404
|
import MonacoEditor from "@monaco-editor/react";
|
|
12300
|
-
|
|
12301
|
-
|
|
12302
|
-
import { css as css35 } from "@emotion/react";
|
|
12303
|
-
var JsonEditorContainer = css35`
|
|
12304
|
-
min-height: 150px;
|
|
12305
|
-
`;
|
|
12306
|
-
|
|
12307
|
-
// src/components/JsonEditor/JsonEditor.tsx
|
|
12308
|
-
import { jsx as jsx47 } from "@emotion/react/jsx-runtime";
|
|
12405
|
+
import { jsx as jsx48 } from "@emotion/react/jsx-runtime";
|
|
12406
|
+
var minEditorHeightPx = 150;
|
|
12309
12407
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
12310
12408
|
let effectiveHeight = height;
|
|
12311
12409
|
if (typeof height === "number" && height < 0) {
|
|
12312
12410
|
effectiveHeight = typeof window === "undefined" ? "100%" : window.innerHeight + height;
|
|
12313
12411
|
}
|
|
12314
|
-
|
|
12412
|
+
if (typeof effectiveHeight === "number" && effectiveHeight < minEditorHeightPx) {
|
|
12413
|
+
effectiveHeight = minEditorHeightPx;
|
|
12414
|
+
}
|
|
12415
|
+
return /* @__PURE__ */ jsx48(
|
|
12315
12416
|
MonacoEditor,
|
|
12316
12417
|
{
|
|
12317
12418
|
height: effectiveHeight,
|
|
12318
|
-
className:
|
|
12419
|
+
className: "uniform-json-editor",
|
|
12319
12420
|
defaultLanguage: "json",
|
|
12320
12421
|
defaultValue,
|
|
12321
12422
|
options: {
|
|
@@ -12344,12 +12445,12 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
12344
12445
|
},
|
|
12345
12446
|
onChange
|
|
12346
12447
|
}
|
|
12347
|
-
)
|
|
12448
|
+
);
|
|
12348
12449
|
};
|
|
12349
12450
|
|
|
12350
12451
|
// src/components/Layout/styles/Container.styles.ts
|
|
12351
|
-
import { css as
|
|
12352
|
-
var Container = ({ backgroundColor, border, rounded, padding, margin }) =>
|
|
12452
|
+
import { css as css37 } from "@emotion/react";
|
|
12453
|
+
var Container = ({ backgroundColor, border, rounded, padding, margin }) => css37`
|
|
12353
12454
|
background: var(--${backgroundColor});
|
|
12354
12455
|
${border ? "border: 1px solid var(--gray-300)" : void 0};
|
|
12355
12456
|
${rounded ? `border-radius: var(--${rounded})` : void 0};
|
|
@@ -12358,7 +12459,7 @@ var Container = ({ backgroundColor, border, rounded, padding, margin }) => css36
|
|
|
12358
12459
|
`;
|
|
12359
12460
|
|
|
12360
12461
|
// src/components/Layout/Container.tsx
|
|
12361
|
-
import { jsx as
|
|
12462
|
+
import { jsx as jsx49 } from "@emotion/react/jsx-runtime";
|
|
12362
12463
|
var Container2 = ({
|
|
12363
12464
|
tag = "div",
|
|
12364
12465
|
backgroundColor = "white",
|
|
@@ -12370,7 +12471,7 @@ var Container2 = ({
|
|
|
12370
12471
|
...props
|
|
12371
12472
|
}) => {
|
|
12372
12473
|
const Tag = tag;
|
|
12373
|
-
return /* @__PURE__ */
|
|
12474
|
+
return /* @__PURE__ */ jsx49(
|
|
12374
12475
|
Tag,
|
|
12375
12476
|
{
|
|
12376
12477
|
css: Container({
|
|
@@ -12387,54 +12488,54 @@ var Container2 = ({
|
|
|
12387
12488
|
};
|
|
12388
12489
|
|
|
12389
12490
|
// src/components/Layout/styles/VerticalRhythm.styles.ts
|
|
12390
|
-
import { css as
|
|
12391
|
-
var VerticalRhythmContainer = (size) =>
|
|
12491
|
+
import { css as css38 } from "@emotion/react";
|
|
12492
|
+
var VerticalRhythmContainer = (size) => css38`
|
|
12392
12493
|
display: flex;
|
|
12393
12494
|
flex-direction: column;
|
|
12394
12495
|
gap: var(--spacing-${size});
|
|
12395
12496
|
`;
|
|
12396
12497
|
|
|
12397
12498
|
// src/components/Layout/VerticalRhythm.tsx
|
|
12398
|
-
import { jsx as
|
|
12499
|
+
import { jsx as jsx50 } from "@emotion/react/jsx-runtime";
|
|
12399
12500
|
var VerticalRhythm = ({ tag = "div", gap = "base", children, ...props }) => {
|
|
12400
12501
|
const Tag = tag;
|
|
12401
|
-
return /* @__PURE__ */
|
|
12502
|
+
return /* @__PURE__ */ jsx50(Tag, { css: VerticalRhythmContainer(gap), ...props, children });
|
|
12402
12503
|
};
|
|
12403
12504
|
|
|
12404
12505
|
// src/components/LimitsBar/LimitsBar.styles.ts
|
|
12405
|
-
import { css as
|
|
12406
|
-
var LimitsBarContainer =
|
|
12506
|
+
import { css as css39 } from "@emotion/react";
|
|
12507
|
+
var LimitsBarContainer = css39`
|
|
12407
12508
|
margin-block: var(--spacing-sm);
|
|
12408
12509
|
`;
|
|
12409
|
-
var LimitsBarProgressBar =
|
|
12510
|
+
var LimitsBarProgressBar = css39`
|
|
12410
12511
|
background: var(--gray-100);
|
|
12411
12512
|
margin-top: var(--spacing-sm);
|
|
12412
12513
|
position: relative;
|
|
12413
12514
|
overflow: hidden;
|
|
12414
12515
|
height: 0.25rem;
|
|
12415
12516
|
`;
|
|
12416
|
-
var LimitsBarProgressBarLine =
|
|
12517
|
+
var LimitsBarProgressBarLine = css39`
|
|
12417
12518
|
position: absolute;
|
|
12418
12519
|
inset: 0;
|
|
12419
12520
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
12420
12521
|
`;
|
|
12421
|
-
var LimitsBarLabelContainer =
|
|
12522
|
+
var LimitsBarLabelContainer = css39`
|
|
12422
12523
|
display: flex;
|
|
12423
12524
|
justify-content: space-between;
|
|
12424
12525
|
font-weight: var(--fw-bold);
|
|
12425
12526
|
`;
|
|
12426
|
-
var LimitsBarLabel =
|
|
12527
|
+
var LimitsBarLabel = css39`
|
|
12427
12528
|
font-size: var(--fs-baase);
|
|
12428
12529
|
`;
|
|
12429
|
-
var LimitsBarBgColor = (statusColor) =>
|
|
12530
|
+
var LimitsBarBgColor = (statusColor) => css39`
|
|
12430
12531
|
background: ${statusColor};
|
|
12431
12532
|
`;
|
|
12432
|
-
var LimitsBarTextColor = (statusColor) =>
|
|
12533
|
+
var LimitsBarTextColor = (statusColor) => css39`
|
|
12433
12534
|
color: ${statusColor};
|
|
12434
12535
|
`;
|
|
12435
12536
|
|
|
12436
12537
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
12437
|
-
import { jsx as
|
|
12538
|
+
import { jsx as jsx51, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
|
|
12438
12539
|
var LimitsBar = ({ current, max, label }) => {
|
|
12439
12540
|
const maxPercentage = 100;
|
|
12440
12541
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -12445,16 +12546,16 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
12445
12546
|
danger: "var(--brand-secondary-5)"
|
|
12446
12547
|
};
|
|
12447
12548
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
12448
|
-
return /* @__PURE__ */
|
|
12449
|
-
/* @__PURE__ */
|
|
12450
|
-
/* @__PURE__ */
|
|
12451
|
-
/* @__PURE__ */
|
|
12549
|
+
return /* @__PURE__ */ jsxs29("div", { css: LimitsBarContainer, children: [
|
|
12550
|
+
/* @__PURE__ */ jsxs29("div", { css: LimitsBarLabelContainer, children: [
|
|
12551
|
+
/* @__PURE__ */ jsx51("span", { css: LimitsBarLabel, children: label }),
|
|
12552
|
+
/* @__PURE__ */ jsxs29("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
12452
12553
|
current,
|
|
12453
12554
|
" of ",
|
|
12454
12555
|
max
|
|
12455
12556
|
] })
|
|
12456
12557
|
] }),
|
|
12457
|
-
/* @__PURE__ */
|
|
12558
|
+
/* @__PURE__ */ jsx51(
|
|
12458
12559
|
"div",
|
|
12459
12560
|
{
|
|
12460
12561
|
role: "progressbar",
|
|
@@ -12463,7 +12564,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
12463
12564
|
"aria-valuemax": max,
|
|
12464
12565
|
"aria-valuetext": `${current} of ${max}`,
|
|
12465
12566
|
css: LimitsBarProgressBar,
|
|
12466
|
-
children: /* @__PURE__ */
|
|
12567
|
+
children: /* @__PURE__ */ jsx51(
|
|
12467
12568
|
"span",
|
|
12468
12569
|
{
|
|
12469
12570
|
role: "presentation",
|
|
@@ -12479,8 +12580,8 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
12479
12580
|
};
|
|
12480
12581
|
|
|
12481
12582
|
// src/components/LinkList/LinkList.styles.ts
|
|
12482
|
-
import { css as
|
|
12483
|
-
var LinkListContainer =
|
|
12583
|
+
import { css as css40 } from "@emotion/react";
|
|
12584
|
+
var LinkListContainer = css40`
|
|
12484
12585
|
padding: var(--spacing-md) var(--spacing-lg) var(--spacing-2xl);
|
|
12485
12586
|
${mq("sm")} {
|
|
12486
12587
|
grid-column: last-col / span 1;
|
|
@@ -12489,23 +12590,23 @@ var LinkListContainer = css39`
|
|
|
12489
12590
|
`;
|
|
12490
12591
|
|
|
12491
12592
|
// src/components/LinkList/LinkList.tsx
|
|
12492
|
-
import { jsx as
|
|
12593
|
+
import { jsx as jsx52, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
|
|
12493
12594
|
var LinkList = ({ title, children, ...props }) => {
|
|
12494
|
-
return /* @__PURE__ */
|
|
12495
|
-
/* @__PURE__ */
|
|
12595
|
+
return /* @__PURE__ */ jsxs30("div", { css: LinkListContainer, ...props, children: [
|
|
12596
|
+
/* @__PURE__ */ jsx52(Heading, { level: 3, children: title }),
|
|
12496
12597
|
children
|
|
12497
12598
|
] });
|
|
12498
12599
|
};
|
|
12499
12600
|
|
|
12500
12601
|
// src/components/List/ScrollableList.tsx
|
|
12501
|
-
import { css as
|
|
12602
|
+
import { css as css42 } from "@emotion/react";
|
|
12502
12603
|
|
|
12503
12604
|
// src/components/List/styles/ScrollableList.styles.ts
|
|
12504
|
-
import { css as
|
|
12505
|
-
var ScrollableListContainer =
|
|
12605
|
+
import { css as css41 } from "@emotion/react";
|
|
12606
|
+
var ScrollableListContainer = css41`
|
|
12506
12607
|
position: relative;
|
|
12507
12608
|
`;
|
|
12508
|
-
var ScrollableListInner =
|
|
12609
|
+
var ScrollableListInner = css41`
|
|
12509
12610
|
background: var(--gray-50);
|
|
12510
12611
|
border-top: 1px solid var(--gray-200);
|
|
12511
12612
|
border-bottom: 1px solid var(--gray-200);
|
|
@@ -12523,19 +12624,19 @@ var ScrollableListInner = css40`
|
|
|
12523
12624
|
`;
|
|
12524
12625
|
|
|
12525
12626
|
// src/components/List/ScrollableList.tsx
|
|
12526
|
-
import { jsx as
|
|
12627
|
+
import { jsx as jsx53, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
|
|
12527
12628
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
12528
|
-
return /* @__PURE__ */
|
|
12529
|
-
label ? /* @__PURE__ */
|
|
12629
|
+
return /* @__PURE__ */ jsxs31("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
12630
|
+
label ? /* @__PURE__ */ jsx53(
|
|
12530
12631
|
"span",
|
|
12531
12632
|
{
|
|
12532
|
-
css:
|
|
12633
|
+
css: css42`
|
|
12533
12634
|
${labelText}
|
|
12534
12635
|
`,
|
|
12535
12636
|
children: label
|
|
12536
12637
|
}
|
|
12537
12638
|
) : null,
|
|
12538
|
-
/* @__PURE__ */
|
|
12639
|
+
/* @__PURE__ */ jsx53("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
12539
12640
|
] });
|
|
12540
12641
|
};
|
|
12541
12642
|
|
|
@@ -12543,8 +12644,8 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
12543
12644
|
import { CgCheck } from "react-icons/cg";
|
|
12544
12645
|
|
|
12545
12646
|
// src/components/List/styles/ScrollableListItem.styles.ts
|
|
12546
|
-
import { css as
|
|
12547
|
-
var ScrollableListItemContainer =
|
|
12647
|
+
import { css as css43 } from "@emotion/react";
|
|
12648
|
+
var ScrollableListItemContainer = css43`
|
|
12548
12649
|
align-items: center;
|
|
12549
12650
|
background: var(--white);
|
|
12550
12651
|
border-radius: var(--rounded-base);
|
|
@@ -12554,10 +12655,10 @@ var ScrollableListItemContainer = css42`
|
|
|
12554
12655
|
min-height: 52px;
|
|
12555
12656
|
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
12556
12657
|
`;
|
|
12557
|
-
var ScrollableListItemActive =
|
|
12658
|
+
var ScrollableListItemActive = css43`
|
|
12558
12659
|
border-color: var(--brand-secondary-3);
|
|
12559
12660
|
`;
|
|
12560
|
-
var ScrollableListItemBtn =
|
|
12661
|
+
var ScrollableListItemBtn = css43`
|
|
12561
12662
|
align-items: center;
|
|
12562
12663
|
border: none;
|
|
12563
12664
|
background: transparent;
|
|
@@ -12572,26 +12673,26 @@ var ScrollableListItemBtn = css42`
|
|
|
12572
12673
|
outline: none;
|
|
12573
12674
|
}
|
|
12574
12675
|
`;
|
|
12575
|
-
var ScrollableListInputLabel =
|
|
12676
|
+
var ScrollableListInputLabel = css43`
|
|
12576
12677
|
align-items: center;
|
|
12577
12678
|
display: flex;
|
|
12578
12679
|
padding: var(--spacing-xs) var(--spacing-base) var(--spacing-xs);
|
|
12579
12680
|
flex-grow: 1;
|
|
12580
12681
|
`;
|
|
12581
|
-
var ScrollableListInputText =
|
|
12682
|
+
var ScrollableListInputText = css43`
|
|
12582
12683
|
align-items: center;
|
|
12583
12684
|
display: flex;
|
|
12584
12685
|
gap: var(--spacing-sm);
|
|
12585
12686
|
font-weight: var(--fw-bold);
|
|
12586
12687
|
flex-grow: 1;
|
|
12587
12688
|
`;
|
|
12588
|
-
var ScrollableListHiddenInput =
|
|
12689
|
+
var ScrollableListHiddenInput = css43`
|
|
12589
12690
|
position: absolute;
|
|
12590
12691
|
height: 0;
|
|
12591
12692
|
width: 0;
|
|
12592
12693
|
opacity: 0;
|
|
12593
12694
|
`;
|
|
12594
|
-
var ScrollableListIcon =
|
|
12695
|
+
var ScrollableListIcon = css43`
|
|
12595
12696
|
border-radius: var(--rounded-full);
|
|
12596
12697
|
background: var(--brand-secondary-3);
|
|
12597
12698
|
color: var(--white);
|
|
@@ -12600,7 +12701,7 @@ var ScrollableListIcon = css42`
|
|
|
12600
12701
|
`;
|
|
12601
12702
|
|
|
12602
12703
|
// src/components/List/ScrollableListInputItem.tsx
|
|
12603
|
-
import { jsx as
|
|
12704
|
+
import { jsx as jsx54, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
|
|
12604
12705
|
var ScrollableListInputItem = ({
|
|
12605
12706
|
label,
|
|
12606
12707
|
icon,
|
|
@@ -12608,23 +12709,23 @@ var ScrollableListInputItem = ({
|
|
|
12608
12709
|
children,
|
|
12609
12710
|
labelTestId
|
|
12610
12711
|
}) => {
|
|
12611
|
-
return /* @__PURE__ */
|
|
12612
|
-
/* @__PURE__ */
|
|
12712
|
+
return /* @__PURE__ */ jsx54("div", { css: [ScrollableListItemContainer, active ? ScrollableListItemActive : void 0], children: /* @__PURE__ */ jsxs32("label", { "data-test-id": labelTestId, css: ScrollableListInputLabel, children: [
|
|
12713
|
+
/* @__PURE__ */ jsxs32("span", { css: ScrollableListInputText, children: [
|
|
12613
12714
|
icon,
|
|
12614
12715
|
label
|
|
12615
12716
|
] }),
|
|
12616
|
-
/* @__PURE__ */
|
|
12617
|
-
active ? /* @__PURE__ */
|
|
12717
|
+
/* @__PURE__ */ jsx54("div", { css: ScrollableListHiddenInput, children }),
|
|
12718
|
+
active ? /* @__PURE__ */ jsx54(Icon, { icon: CgCheck, iconColor: "currentColor", css: ScrollableListIcon, size: 24 }) : null
|
|
12618
12719
|
] }) });
|
|
12619
12720
|
};
|
|
12620
12721
|
|
|
12621
12722
|
// src/components/List/ScrollableListItem.tsx
|
|
12622
|
-
import { css as
|
|
12623
|
-
import { jsx as
|
|
12723
|
+
import { css as css44 } from "@emotion/react";
|
|
12724
|
+
import { jsx as jsx55, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
|
|
12624
12725
|
var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
12625
|
-
return /* @__PURE__ */
|
|
12626
|
-
/* @__PURE__ */
|
|
12627
|
-
/* @__PURE__ */
|
|
12726
|
+
return /* @__PURE__ */ jsx55("div", { css: [ScrollableListItemContainer, active ? ScrollableListItemActive : void 0], children: /* @__PURE__ */ jsxs33("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
12727
|
+
/* @__PURE__ */ jsx55("span", { children: buttonText }),
|
|
12728
|
+
/* @__PURE__ */ jsx55(
|
|
12628
12729
|
"svg",
|
|
12629
12730
|
{
|
|
12630
12731
|
width: "24",
|
|
@@ -12633,14 +12734,14 @@ var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
|
12633
12734
|
fill: "currentColor",
|
|
12634
12735
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12635
12736
|
"aria-hidden": !active,
|
|
12636
|
-
css:
|
|
12737
|
+
css: css44`
|
|
12637
12738
|
color: var(--brand-secondary-3);
|
|
12638
12739
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
12639
|
-
${active ?
|
|
12740
|
+
${active ? css44`
|
|
12640
12741
|
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
12641
12742
|
` : "opacity: 0;"}
|
|
12642
12743
|
`,
|
|
12643
|
-
children: /* @__PURE__ */
|
|
12744
|
+
children: /* @__PURE__ */ jsx55(
|
|
12644
12745
|
"path",
|
|
12645
12746
|
{
|
|
12646
12747
|
fillRule: "evenodd",
|
|
@@ -12654,7 +12755,7 @@ var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
|
12654
12755
|
};
|
|
12655
12756
|
|
|
12656
12757
|
// src/components/LoadingIndicator/LoadingIndicator.styles.ts
|
|
12657
|
-
import { css as
|
|
12758
|
+
import { css as css45, keyframes as keyframes3 } from "@emotion/react";
|
|
12658
12759
|
var bounceFade = keyframes3`
|
|
12659
12760
|
0%, 100% {
|
|
12660
12761
|
opacity: 1.0;
|
|
@@ -12672,11 +12773,11 @@ var bounceFade = keyframes3`
|
|
|
12672
12773
|
transform: translateY(-5px);
|
|
12673
12774
|
}
|
|
12674
12775
|
`;
|
|
12675
|
-
var loader =
|
|
12776
|
+
var loader = css45`
|
|
12676
12777
|
display: inline-flex;
|
|
12677
12778
|
justify-content: center;
|
|
12678
12779
|
`;
|
|
12679
|
-
var loadingDot =
|
|
12780
|
+
var loadingDot = css45`
|
|
12680
12781
|
background-color: var(--gray-700);
|
|
12681
12782
|
display: block;
|
|
12682
12783
|
border-radius: var(--rounded-full);
|
|
@@ -12700,12 +12801,12 @@ var loadingDot = css44`
|
|
|
12700
12801
|
`;
|
|
12701
12802
|
|
|
12702
12803
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
12703
|
-
import { jsx as
|
|
12804
|
+
import { jsx as jsx56, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
|
|
12704
12805
|
var LoadingIndicator = () => {
|
|
12705
|
-
return /* @__PURE__ */
|
|
12706
|
-
/* @__PURE__ */
|
|
12707
|
-
/* @__PURE__ */
|
|
12708
|
-
/* @__PURE__ */
|
|
12806
|
+
return /* @__PURE__ */ jsxs34("div", { css: loader, role: "alert", "data-test-id": "loading-indicator", children: [
|
|
12807
|
+
/* @__PURE__ */ jsx56("span", { css: loadingDot }),
|
|
12808
|
+
/* @__PURE__ */ jsx56("span", { css: loadingDot }),
|
|
12809
|
+
/* @__PURE__ */ jsx56("span", { css: loadingDot })
|
|
12709
12810
|
] });
|
|
12710
12811
|
};
|
|
12711
12812
|
|
|
@@ -12713,8 +12814,8 @@ var LoadingIndicator = () => {
|
|
|
12713
12814
|
import { useCallback as useCallback2, useEffect as useEffect6, useRef as useRef4 } from "react";
|
|
12714
12815
|
|
|
12715
12816
|
// src/components/LoadingOverlay/LoadingOverlay.styles.ts
|
|
12716
|
-
import { css as
|
|
12717
|
-
var loadingOverlayContainer =
|
|
12817
|
+
import { css as css46 } from "@emotion/react";
|
|
12818
|
+
var loadingOverlayContainer = css46`
|
|
12718
12819
|
position: absolute;
|
|
12719
12820
|
inset: 0;
|
|
12720
12821
|
overflow: hidden;
|
|
@@ -12722,30 +12823,30 @@ var loadingOverlayContainer = css45`
|
|
|
12722
12823
|
padding: var(--spacing-xl);
|
|
12723
12824
|
overflow-y: auto;
|
|
12724
12825
|
`;
|
|
12725
|
-
var loadingOverlayVisible =
|
|
12826
|
+
var loadingOverlayVisible = css46`
|
|
12726
12827
|
display: flex;
|
|
12727
12828
|
`;
|
|
12728
|
-
var loadingOverlayHidden =
|
|
12829
|
+
var loadingOverlayHidden = css46`
|
|
12729
12830
|
display: none;
|
|
12730
12831
|
`;
|
|
12731
|
-
var loadingOverlayBackground = (bgColor) =>
|
|
12832
|
+
var loadingOverlayBackground = (bgColor) => css46`
|
|
12732
12833
|
background: ${bgColor};
|
|
12733
12834
|
opacity: 0.92;
|
|
12734
12835
|
position: absolute;
|
|
12735
12836
|
inset: 0 0;
|
|
12736
12837
|
`;
|
|
12737
|
-
var loadingOverlayBody =
|
|
12838
|
+
var loadingOverlayBody = css46`
|
|
12738
12839
|
align-items: center;
|
|
12739
12840
|
display: flex;
|
|
12740
12841
|
flex-direction: column;
|
|
12741
12842
|
`;
|
|
12742
|
-
var loadingOverlayMessage =
|
|
12843
|
+
var loadingOverlayMessage = css46`
|
|
12743
12844
|
color: var(--gray-600);
|
|
12744
12845
|
margin: var(--spacing-base) 0 0;
|
|
12745
12846
|
`;
|
|
12746
12847
|
|
|
12747
12848
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
12748
|
-
import { jsx as
|
|
12849
|
+
import { jsx as jsx57, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
12749
12850
|
var LoadingOverlay = ({
|
|
12750
12851
|
isActive,
|
|
12751
12852
|
statusMessage,
|
|
@@ -12771,16 +12872,17 @@ var LoadingOverlay = ({
|
|
|
12771
12872
|
(_f = lottieRef.current) == null ? void 0 : _f.stop();
|
|
12772
12873
|
}
|
|
12773
12874
|
}, [isPaused]);
|
|
12774
|
-
return /* @__PURE__ */
|
|
12875
|
+
return /* @__PURE__ */ jsxs35(
|
|
12775
12876
|
"div",
|
|
12776
12877
|
{
|
|
12777
12878
|
role: "alert",
|
|
12778
12879
|
css: [loadingOverlayContainer, { zIndex }, isActive ? loadingOverlayVisible : loadingOverlayHidden],
|
|
12779
12880
|
"aria-hidden": !isActive,
|
|
12881
|
+
"aria-busy": isActive && !isPaused,
|
|
12780
12882
|
children: [
|
|
12781
|
-
/* @__PURE__ */
|
|
12782
|
-
/* @__PURE__ */
|
|
12783
|
-
/* @__PURE__ */
|
|
12883
|
+
/* @__PURE__ */ jsx57("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
12884
|
+
/* @__PURE__ */ jsx57("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ jsxs35("div", { css: loadingOverlayBody, children: [
|
|
12885
|
+
/* @__PURE__ */ jsx57(
|
|
12784
12886
|
AnimationFile,
|
|
12785
12887
|
{
|
|
12786
12888
|
lottieRef,
|
|
@@ -12795,15 +12897,15 @@ var LoadingOverlay = ({
|
|
|
12795
12897
|
}
|
|
12796
12898
|
}
|
|
12797
12899
|
),
|
|
12798
|
-
statusMessage ? /* @__PURE__ */
|
|
12799
|
-
/* @__PURE__ */
|
|
12900
|
+
statusMessage ? /* @__PURE__ */ jsx57("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
|
|
12901
|
+
/* @__PURE__ */ jsx57("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
|
|
12800
12902
|
] }) })
|
|
12801
12903
|
]
|
|
12802
12904
|
}
|
|
12803
12905
|
);
|
|
12804
12906
|
};
|
|
12805
12907
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
12806
|
-
return /* @__PURE__ */
|
|
12908
|
+
return /* @__PURE__ */ jsx57(
|
|
12807
12909
|
"svg",
|
|
12808
12910
|
{
|
|
12809
12911
|
"data-testid": "svg",
|
|
@@ -12814,9 +12916,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
12814
12916
|
stroke: "currentColor",
|
|
12815
12917
|
...props,
|
|
12816
12918
|
"data-test-id": "loading-icon",
|
|
12817
|
-
children: /* @__PURE__ */
|
|
12818
|
-
/* @__PURE__ */
|
|
12819
|
-
/* @__PURE__ */
|
|
12919
|
+
children: /* @__PURE__ */ jsx57("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs35("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
12920
|
+
/* @__PURE__ */ jsx57("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
12921
|
+
/* @__PURE__ */ jsx57("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ jsx57(
|
|
12820
12922
|
"animateTransform",
|
|
12821
12923
|
{
|
|
12822
12924
|
attributeName: "transform",
|
|
@@ -12833,12 +12935,12 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
12833
12935
|
};
|
|
12834
12936
|
|
|
12835
12937
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
12836
|
-
import { css as
|
|
12938
|
+
import { css as css48 } from "@emotion/react";
|
|
12837
12939
|
import { CgAdd as CgAdd2, CgChevronRight as CgChevronRight2 } from "react-icons/cg";
|
|
12838
12940
|
|
|
12839
12941
|
// src/components/Tiles/styles/IntegrationTile.styles.ts
|
|
12840
|
-
import { css as
|
|
12841
|
-
var IntegrationTileContainer =
|
|
12942
|
+
import { css as css47 } from "@emotion/react";
|
|
12943
|
+
var IntegrationTileContainer = css47`
|
|
12842
12944
|
align-items: center;
|
|
12843
12945
|
box-sizing: border-box;
|
|
12844
12946
|
border-radius: var(--rounded-base);
|
|
@@ -12869,22 +12971,22 @@ var IntegrationTileContainer = css46`
|
|
|
12869
12971
|
}
|
|
12870
12972
|
}
|
|
12871
12973
|
`;
|
|
12872
|
-
var IntegrationTileBtnDashedBorder =
|
|
12974
|
+
var IntegrationTileBtnDashedBorder = css47`
|
|
12873
12975
|
border: 1px dashed var(--brand-secondary-1);
|
|
12874
12976
|
`;
|
|
12875
|
-
var IntegrationTileTitle =
|
|
12977
|
+
var IntegrationTileTitle = css47`
|
|
12876
12978
|
display: block;
|
|
12877
12979
|
font-weight: var(--fw-bold);
|
|
12878
12980
|
margin: 0 0 var(--spacing-base);
|
|
12879
12981
|
max-width: 13rem;
|
|
12880
12982
|
`;
|
|
12881
|
-
var IntegrationTitleLogo =
|
|
12983
|
+
var IntegrationTitleLogo = css47`
|
|
12882
12984
|
display: block;
|
|
12883
12985
|
max-width: 10rem;
|
|
12884
12986
|
max-height: 4rem;
|
|
12885
12987
|
margin: 0 auto;
|
|
12886
12988
|
`;
|
|
12887
|
-
var IntegrationTileName =
|
|
12989
|
+
var IntegrationTileName = css47`
|
|
12888
12990
|
color: var(--gray-500);
|
|
12889
12991
|
display: -webkit-box;
|
|
12890
12992
|
-webkit-line-clamp: 1;
|
|
@@ -12897,7 +12999,7 @@ var IntegrationTileName = css46`
|
|
|
12897
12999
|
position: absolute;
|
|
12898
13000
|
bottom: calc(var(--spacing-base) * 3.8);
|
|
12899
13001
|
`;
|
|
12900
|
-
var IntegrationAddedText =
|
|
13002
|
+
var IntegrationAddedText = css47`
|
|
12901
13003
|
align-items: center;
|
|
12902
13004
|
background: var(--brand-secondary-3);
|
|
12903
13005
|
border-radius: 0 var(--rounded-md) 0 var(--rounded-md);
|
|
@@ -12912,7 +13014,7 @@ var IntegrationAddedText = css46`
|
|
|
12912
13014
|
top: 0;
|
|
12913
13015
|
right: 0;
|
|
12914
13016
|
`;
|
|
12915
|
-
var IntegrationCustomBadgeText = (theme) =>
|
|
13017
|
+
var IntegrationCustomBadgeText = (theme) => css47`
|
|
12916
13018
|
align-items: center;
|
|
12917
13019
|
border-radius: var(--rounded-sm) 0 var(--rounded-sm) 0;
|
|
12918
13020
|
background: ${theme === "gray" ? "var(--brand-secondary-2)" : "var(--brand-secondary-1)"};
|
|
@@ -12926,26 +13028,26 @@ var IntegrationCustomBadgeText = (theme) => css46`
|
|
|
12926
13028
|
top: 0;
|
|
12927
13029
|
left: 0;
|
|
12928
13030
|
`;
|
|
12929
|
-
var IntegrationAuthorBadgeIcon =
|
|
13031
|
+
var IntegrationAuthorBadgeIcon = css47`
|
|
12930
13032
|
position: absolute;
|
|
12931
13033
|
bottom: var(--spacing-sm);
|
|
12932
13034
|
right: var(--spacing-xs);
|
|
12933
13035
|
max-height: 1rem;
|
|
12934
13036
|
`;
|
|
12935
|
-
var IntegrationTitleFakeButton =
|
|
13037
|
+
var IntegrationTitleFakeButton = css47`
|
|
12936
13038
|
font-size: var(--fs-xs);
|
|
12937
13039
|
gap: var(--spacing-sm);
|
|
12938
13040
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
12939
13041
|
text-transform: uppercase;
|
|
12940
13042
|
`;
|
|
12941
|
-
var IntegrationTileFloatingButton =
|
|
13043
|
+
var IntegrationTileFloatingButton = css47`
|
|
12942
13044
|
position: absolute;
|
|
12943
13045
|
bottom: var(--spacing-base);
|
|
12944
13046
|
gap: var(--spacing-sm);
|
|
12945
13047
|
font-size: var(--fs-xs);
|
|
12946
13048
|
overflow: hidden;
|
|
12947
13049
|
`;
|
|
12948
|
-
var IntegrationTileFloatingButtonMessage = (clicked) =>
|
|
13050
|
+
var IntegrationTileFloatingButtonMessage = (clicked) => css47`
|
|
12949
13051
|
strong,
|
|
12950
13052
|
span:first-of-type {
|
|
12951
13053
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
@@ -12966,7 +13068,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => css46`
|
|
|
12966
13068
|
`;
|
|
12967
13069
|
|
|
12968
13070
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
12969
|
-
import { jsx as
|
|
13071
|
+
import { jsx as jsx58, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
12970
13072
|
var CreateTeamIntegrationTile = ({
|
|
12971
13073
|
title = "Create a custom integration for your team",
|
|
12972
13074
|
buttonText = "Add Integration",
|
|
@@ -12974,9 +13076,9 @@ var CreateTeamIntegrationTile = ({
|
|
|
12974
13076
|
asDeepLink = false,
|
|
12975
13077
|
...props
|
|
12976
13078
|
}) => {
|
|
12977
|
-
return /* @__PURE__ */
|
|
12978
|
-
/* @__PURE__ */
|
|
12979
|
-
/* @__PURE__ */
|
|
13079
|
+
return /* @__PURE__ */ jsxs36("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
13080
|
+
/* @__PURE__ */ jsx58("span", { css: IntegrationTileTitle, title, children: title }),
|
|
13081
|
+
/* @__PURE__ */ jsxs36(
|
|
12980
13082
|
Button,
|
|
12981
13083
|
{
|
|
12982
13084
|
buttonType: "tertiary",
|
|
@@ -12986,23 +13088,23 @@ var CreateTeamIntegrationTile = ({
|
|
|
12986
13088
|
css: IntegrationTitleFakeButton,
|
|
12987
13089
|
children: [
|
|
12988
13090
|
buttonText,
|
|
12989
|
-
asDeepLink ? /* @__PURE__ */
|
|
13091
|
+
asDeepLink ? /* @__PURE__ */ jsx58(
|
|
12990
13092
|
Icon,
|
|
12991
13093
|
{
|
|
12992
13094
|
icon: CgChevronRight2,
|
|
12993
13095
|
iconColor: "currentColor",
|
|
12994
13096
|
size: 20,
|
|
12995
|
-
css:
|
|
13097
|
+
css: css48`
|
|
12996
13098
|
order: 1;
|
|
12997
13099
|
`
|
|
12998
13100
|
}
|
|
12999
|
-
) : /* @__PURE__ */
|
|
13101
|
+
) : /* @__PURE__ */ jsx58(
|
|
13000
13102
|
Icon,
|
|
13001
13103
|
{
|
|
13002
13104
|
icon: CgAdd2,
|
|
13003
13105
|
iconColor: "currentColor",
|
|
13004
13106
|
size: 16,
|
|
13005
|
-
css:
|
|
13107
|
+
css: css48`
|
|
13006
13108
|
order: -1;
|
|
13007
13109
|
`
|
|
13008
13110
|
}
|
|
@@ -13015,31 +13117,31 @@ var CreateTeamIntegrationTile = ({
|
|
|
13015
13117
|
|
|
13016
13118
|
// src/components/Tiles/IntegrationBadges.tsx
|
|
13017
13119
|
import { CgCheck as CgCheck2, CgLock, CgSandClock } from "react-icons/cg";
|
|
13018
|
-
import { jsx as
|
|
13120
|
+
import { jsx as jsx59, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
|
|
13019
13121
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
13020
|
-
return /* @__PURE__ */
|
|
13021
|
-
/* @__PURE__ */
|
|
13122
|
+
return /* @__PURE__ */ jsxs37("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
13123
|
+
/* @__PURE__ */ jsx59(Icon, { icon: CgCheck2, iconColor: "currentColor" }),
|
|
13022
13124
|
text
|
|
13023
13125
|
] });
|
|
13024
13126
|
};
|
|
13025
13127
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
13026
|
-
return /* @__PURE__ */
|
|
13128
|
+
return /* @__PURE__ */ jsx59("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
13027
13129
|
};
|
|
13028
13130
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
13029
|
-
return /* @__PURE__ */
|
|
13030
|
-
/* @__PURE__ */
|
|
13131
|
+
return /* @__PURE__ */ jsxs37("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
13132
|
+
/* @__PURE__ */ jsx59(Icon, { icon: CgLock, iconColor: "currentColor", size: 12 }),
|
|
13031
13133
|
text
|
|
13032
13134
|
] });
|
|
13033
13135
|
};
|
|
13034
13136
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
13035
|
-
return /* @__PURE__ */
|
|
13036
|
-
/* @__PURE__ */
|
|
13137
|
+
return /* @__PURE__ */ jsxs37("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
13138
|
+
/* @__PURE__ */ jsx59(Icon, { icon: CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
13037
13139
|
text
|
|
13038
13140
|
] });
|
|
13039
13141
|
};
|
|
13040
13142
|
|
|
13041
13143
|
// src/components/Tiles/ResolveIcon.tsx
|
|
13042
|
-
import { jsx as
|
|
13144
|
+
import { jsx as jsx60 } from "@emotion/react/jsx-runtime";
|
|
13043
13145
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
13044
13146
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
13045
13147
|
const mapClassName = {
|
|
@@ -13047,13 +13149,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
13047
13149
|
logo: IntegrationTitleLogo
|
|
13048
13150
|
};
|
|
13049
13151
|
if (icon) {
|
|
13050
|
-
return CompIcon ? /* @__PURE__ */
|
|
13152
|
+
return CompIcon ? /* @__PURE__ */ jsx60(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ jsx60("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
13051
13153
|
}
|
|
13052
13154
|
return null;
|
|
13053
13155
|
};
|
|
13054
13156
|
|
|
13055
13157
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
13056
|
-
import { jsx as
|
|
13158
|
+
import { jsx as jsx61, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
|
|
13057
13159
|
var EditTeamIntegrationTile = ({
|
|
13058
13160
|
id,
|
|
13059
13161
|
icon,
|
|
@@ -13062,17 +13164,17 @@ var EditTeamIntegrationTile = ({
|
|
|
13062
13164
|
isPublic,
|
|
13063
13165
|
canEdit = false
|
|
13064
13166
|
}) => {
|
|
13065
|
-
return /* @__PURE__ */
|
|
13167
|
+
return /* @__PURE__ */ jsxs38(
|
|
13066
13168
|
"div",
|
|
13067
13169
|
{
|
|
13068
13170
|
css: IntegrationTileContainer,
|
|
13069
13171
|
"data-testid": "configure-integration-container",
|
|
13070
13172
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
13071
13173
|
children: [
|
|
13072
|
-
/* @__PURE__ */
|
|
13073
|
-
/* @__PURE__ */
|
|
13074
|
-
!isPublic ? /* @__PURE__ */
|
|
13075
|
-
canEdit ? /* @__PURE__ */
|
|
13174
|
+
/* @__PURE__ */ jsx61(ResolveIcon, { icon, name, "data-test-id": "integration-logo" }),
|
|
13175
|
+
/* @__PURE__ */ jsx61("span", { css: IntegrationTileName, "data-test-id": "integration-card-name", children: name }),
|
|
13176
|
+
!isPublic ? /* @__PURE__ */ jsx61(IntegrationCustomBadge, {}) : null,
|
|
13177
|
+
canEdit ? /* @__PURE__ */ jsx61(
|
|
13076
13178
|
Button,
|
|
13077
13179
|
{
|
|
13078
13180
|
buttonType: "unimportant",
|
|
@@ -13090,10 +13192,10 @@ var EditTeamIntegrationTile = ({
|
|
|
13090
13192
|
};
|
|
13091
13193
|
|
|
13092
13194
|
// src/components/Tiles/IntegrationComingSoon.tsx
|
|
13093
|
-
import { css as
|
|
13195
|
+
import { css as css49 } from "@emotion/react";
|
|
13094
13196
|
import { useEffect as useEffect7, useState as useState6 } from "react";
|
|
13095
13197
|
import { CgHeart } from "react-icons/cg";
|
|
13096
|
-
import { jsx as
|
|
13198
|
+
import { jsx as jsx62, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
13097
13199
|
var IntegrationComingSoon = ({
|
|
13098
13200
|
name,
|
|
13099
13201
|
icon,
|
|
@@ -13115,17 +13217,17 @@ var IntegrationComingSoon = ({
|
|
|
13115
13217
|
};
|
|
13116
13218
|
}
|
|
13117
13219
|
}, [upVote, setUpVote, timing]);
|
|
13118
|
-
return /* @__PURE__ */
|
|
13220
|
+
return /* @__PURE__ */ jsxs39(
|
|
13119
13221
|
"div",
|
|
13120
13222
|
{
|
|
13121
13223
|
css: IntegrationTileContainer,
|
|
13122
13224
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
13123
13225
|
...props,
|
|
13124
13226
|
children: [
|
|
13125
|
-
/* @__PURE__ */
|
|
13126
|
-
/* @__PURE__ */
|
|
13127
|
-
/* @__PURE__ */
|
|
13128
|
-
/* @__PURE__ */
|
|
13227
|
+
/* @__PURE__ */ jsx62(IntegrationComingSoonBadge, {}),
|
|
13228
|
+
/* @__PURE__ */ jsx62(ResolveIcon, { icon, name }),
|
|
13229
|
+
/* @__PURE__ */ jsx62("span", { css: IntegrationTileName, title: name, children: name }),
|
|
13230
|
+
/* @__PURE__ */ jsxs39(
|
|
13129
13231
|
Button,
|
|
13130
13232
|
{
|
|
13131
13233
|
buttonType: "unimportant",
|
|
@@ -13135,19 +13237,19 @@ var IntegrationComingSoon = ({
|
|
|
13135
13237
|
role: "link",
|
|
13136
13238
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
13137
13239
|
children: [
|
|
13138
|
-
/* @__PURE__ */
|
|
13139
|
-
/* @__PURE__ */
|
|
13240
|
+
/* @__PURE__ */ jsx62("strong", { children: "+1" }),
|
|
13241
|
+
/* @__PURE__ */ jsx62(
|
|
13140
13242
|
"span",
|
|
13141
13243
|
{
|
|
13142
|
-
css:
|
|
13244
|
+
css: css49`
|
|
13143
13245
|
text-transform: uppercase;
|
|
13144
13246
|
color: var(--gray-500);
|
|
13145
13247
|
`,
|
|
13146
13248
|
children: "(I want this)"
|
|
13147
13249
|
}
|
|
13148
13250
|
),
|
|
13149
|
-
/* @__PURE__ */
|
|
13150
|
-
/* @__PURE__ */
|
|
13251
|
+
/* @__PURE__ */ jsxs39("span", { "aria-hidden": !upVote, children: [
|
|
13252
|
+
/* @__PURE__ */ jsx62(Icon, { icon: CgHeart, iconColor: "currentColor", size: 18 }),
|
|
13151
13253
|
"Thanks!"
|
|
13152
13254
|
] })
|
|
13153
13255
|
]
|
|
@@ -13159,8 +13261,8 @@ var IntegrationComingSoon = ({
|
|
|
13159
13261
|
};
|
|
13160
13262
|
|
|
13161
13263
|
// src/components/Tiles/styles/IntegrationLoadingTile.styles.ts
|
|
13162
|
-
import { css as
|
|
13163
|
-
var IntegrationLoadingTileContainer =
|
|
13264
|
+
import { css as css50 } from "@emotion/react";
|
|
13265
|
+
var IntegrationLoadingTileContainer = css50`
|
|
13164
13266
|
align-items: center;
|
|
13165
13267
|
box-sizing: border-box;
|
|
13166
13268
|
border-radius: var(--rounded-base);
|
|
@@ -13187,39 +13289,39 @@ var IntegrationLoadingTileContainer = css49`
|
|
|
13187
13289
|
}
|
|
13188
13290
|
}
|
|
13189
13291
|
`;
|
|
13190
|
-
var IntegrationLoadingTileImg =
|
|
13292
|
+
var IntegrationLoadingTileImg = css50`
|
|
13191
13293
|
width: 10rem;
|
|
13192
13294
|
height: 4rem;
|
|
13193
13295
|
margin: 0 auto;
|
|
13194
13296
|
`;
|
|
13195
|
-
var IntegrationLoadingTileText =
|
|
13297
|
+
var IntegrationLoadingTileText = css50`
|
|
13196
13298
|
width: 5rem;
|
|
13197
13299
|
height: var(--spacing-sm);
|
|
13198
13300
|
margin: var(--spacing-sm) 0;
|
|
13199
13301
|
`;
|
|
13200
|
-
var IntegrationLoadingFrame =
|
|
13302
|
+
var IntegrationLoadingFrame = css50`
|
|
13201
13303
|
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
13202
13304
|
border-radius: var(--rounded-base);
|
|
13203
13305
|
`;
|
|
13204
13306
|
|
|
13205
13307
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
13206
|
-
import { Fragment as Fragment7, jsx as
|
|
13308
|
+
import { Fragment as Fragment7, jsx as jsx63, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
|
|
13207
13309
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
13208
13310
|
const componentCount = Array.from(Array(count).keys());
|
|
13209
|
-
return /* @__PURE__ */
|
|
13210
|
-
/* @__PURE__ */
|
|
13211
|
-
/* @__PURE__ */
|
|
13311
|
+
return /* @__PURE__ */ jsx63(Fragment7, { children: componentCount.map((i) => /* @__PURE__ */ jsxs40("div", { css: IntegrationLoadingTileContainer, children: [
|
|
13312
|
+
/* @__PURE__ */ jsx63("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
13313
|
+
/* @__PURE__ */ jsx63("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
13212
13314
|
] }, i)) });
|
|
13213
13315
|
};
|
|
13214
13316
|
|
|
13215
13317
|
// src/components/Tiles/styles/IntegrationModalIcon.styles.ts
|
|
13216
|
-
import { css as
|
|
13217
|
-
var IntegrationModalIconContainer =
|
|
13318
|
+
import { css as css51 } from "@emotion/react";
|
|
13319
|
+
var IntegrationModalIconContainer = css51`
|
|
13218
13320
|
position: relative;
|
|
13219
13321
|
width: 50px;
|
|
13220
13322
|
margin-bottom: var(--spacing-base);
|
|
13221
13323
|
`;
|
|
13222
|
-
var IntegrationModalImage =
|
|
13324
|
+
var IntegrationModalImage = css51`
|
|
13223
13325
|
position: absolute;
|
|
13224
13326
|
inset: 0;
|
|
13225
13327
|
margin: auto;
|
|
@@ -13228,12 +13330,12 @@ var IntegrationModalImage = css50`
|
|
|
13228
13330
|
`;
|
|
13229
13331
|
|
|
13230
13332
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
13231
|
-
import { jsx as
|
|
13333
|
+
import { jsx as jsx64, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
13232
13334
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
13233
13335
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
13234
|
-
return /* @__PURE__ */
|
|
13235
|
-
/* @__PURE__ */
|
|
13236
|
-
/* @__PURE__ */
|
|
13336
|
+
return /* @__PURE__ */ jsxs41("div", { css: IntegrationModalIconContainer, children: [
|
|
13337
|
+
/* @__PURE__ */ jsxs41("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
13338
|
+
/* @__PURE__ */ jsx64(
|
|
13237
13339
|
"path",
|
|
13238
13340
|
{
|
|
13239
13341
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -13242,12 +13344,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
13242
13344
|
strokeWidth: "2"
|
|
13243
13345
|
}
|
|
13244
13346
|
),
|
|
13245
|
-
/* @__PURE__ */
|
|
13246
|
-
/* @__PURE__ */
|
|
13247
|
-
/* @__PURE__ */
|
|
13347
|
+
/* @__PURE__ */ jsx64("defs", { children: /* @__PURE__ */ jsxs41("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
13348
|
+
/* @__PURE__ */ jsx64("stop", { stopColor: "#1768B2" }),
|
|
13349
|
+
/* @__PURE__ */ jsx64("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
13248
13350
|
] }) })
|
|
13249
13351
|
] }),
|
|
13250
|
-
CompIcon ? /* @__PURE__ */
|
|
13352
|
+
CompIcon ? /* @__PURE__ */ jsx64(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : /* @__PURE__ */ jsx64(
|
|
13251
13353
|
"img",
|
|
13252
13354
|
{
|
|
13253
13355
|
src: icon,
|
|
@@ -13261,7 +13363,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
13261
13363
|
};
|
|
13262
13364
|
|
|
13263
13365
|
// src/components/Tiles/IntegrationTile.tsx
|
|
13264
|
-
import { jsx as
|
|
13366
|
+
import { jsx as jsx65, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
13265
13367
|
var IntegrationTile = ({
|
|
13266
13368
|
id,
|
|
13267
13369
|
icon,
|
|
@@ -13273,7 +13375,7 @@ var IntegrationTile = ({
|
|
|
13273
13375
|
authorIcon,
|
|
13274
13376
|
...btnProps
|
|
13275
13377
|
}) => {
|
|
13276
|
-
return /* @__PURE__ */
|
|
13378
|
+
return /* @__PURE__ */ jsxs42(
|
|
13277
13379
|
"button",
|
|
13278
13380
|
{
|
|
13279
13381
|
type: "button",
|
|
@@ -13283,70 +13385,70 @@ var IntegrationTile = ({
|
|
|
13283
13385
|
"aria-label": name,
|
|
13284
13386
|
...btnProps,
|
|
13285
13387
|
children: [
|
|
13286
|
-
/* @__PURE__ */
|
|
13287
|
-
/* @__PURE__ */
|
|
13288
|
-
isInstalled ? /* @__PURE__ */
|
|
13289
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */
|
|
13290
|
-
!isPublic ? /* @__PURE__ */
|
|
13291
|
-
authorIcon ? /* @__PURE__ */
|
|
13388
|
+
/* @__PURE__ */ jsx65(ResolveIcon, { icon, name }),
|
|
13389
|
+
/* @__PURE__ */ jsx65("span", { css: IntegrationTileName, title: name, children: name }),
|
|
13390
|
+
isInstalled ? /* @__PURE__ */ jsx65(IntegrationedAddedBadge, {}) : null,
|
|
13391
|
+
requiedEntitlement && isPublic ? /* @__PURE__ */ jsx65(IntegrationPremiumBadge, {}) : null,
|
|
13392
|
+
!isPublic ? /* @__PURE__ */ jsx65(IntegrationCustomBadge, {}) : null,
|
|
13393
|
+
authorIcon ? /* @__PURE__ */ jsx65(ResolveIcon, { icon: authorIcon, name }) : null
|
|
13292
13394
|
]
|
|
13293
13395
|
}
|
|
13294
13396
|
);
|
|
13295
13397
|
};
|
|
13296
13398
|
|
|
13297
13399
|
// src/components/Tiles/styles/TileContainer.styles.ts
|
|
13298
|
-
import { css as
|
|
13299
|
-
var TileContainerWrapper =
|
|
13400
|
+
import { css as css52 } from "@emotion/react";
|
|
13401
|
+
var TileContainerWrapper = css52`
|
|
13300
13402
|
background: var(--brand-secondary-2);
|
|
13301
13403
|
padding: var(--spacing-base);
|
|
13302
13404
|
margin-bottom: var(--spacing-lg);
|
|
13303
13405
|
`;
|
|
13304
|
-
var TileContainerInner =
|
|
13406
|
+
var TileContainerInner = css52`
|
|
13305
13407
|
display: grid;
|
|
13306
13408
|
grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
|
|
13307
13409
|
gap: var(--spacing-base);
|
|
13308
13410
|
`;
|
|
13309
13411
|
|
|
13310
13412
|
// src/components/Tiles/TileContainer.tsx
|
|
13311
|
-
import { jsx as
|
|
13413
|
+
import { jsx as jsx66 } from "@emotion/react/jsx-runtime";
|
|
13312
13414
|
var TileContainer = ({ children, ...props }) => {
|
|
13313
|
-
return /* @__PURE__ */
|
|
13415
|
+
return /* @__PURE__ */ jsx66("div", { css: TileContainerWrapper, ...props, children: /* @__PURE__ */ jsx66("div", { css: TileContainerInner, children }) });
|
|
13314
13416
|
};
|
|
13315
13417
|
|
|
13316
13418
|
// src/components/Modal/IntegrationModalHeader.styles.ts
|
|
13317
|
-
import { css as
|
|
13318
|
-
var IntegrationModalHeaderSVGBackground =
|
|
13419
|
+
import { css as css53 } from "@emotion/react";
|
|
13420
|
+
var IntegrationModalHeaderSVGBackground = css53`
|
|
13319
13421
|
position: absolute;
|
|
13320
13422
|
top: 0;
|
|
13321
13423
|
left: 0;
|
|
13322
13424
|
`;
|
|
13323
|
-
var IntegrationModalHeaderGroup =
|
|
13425
|
+
var IntegrationModalHeaderGroup = css53`
|
|
13324
13426
|
align-items: center;
|
|
13325
13427
|
display: flex;
|
|
13326
13428
|
gap: var(--spacing-sm);
|
|
13327
13429
|
margin: 0 0 var(--spacing-md);
|
|
13328
13430
|
position: relative;
|
|
13329
13431
|
`;
|
|
13330
|
-
var IntegrationModalHeaderTitleGroup =
|
|
13432
|
+
var IntegrationModalHeaderTitleGroup = css53`
|
|
13331
13433
|
align-items: center;
|
|
13332
13434
|
display: flex;
|
|
13333
13435
|
gap: var(--spacing-base);
|
|
13334
13436
|
`;
|
|
13335
|
-
var IntegrationModalHeaderTitle =
|
|
13437
|
+
var IntegrationModalHeaderTitle = css53`
|
|
13336
13438
|
margin-top: 0;
|
|
13337
13439
|
`;
|
|
13338
|
-
var IntegrationModalHeaderMenuPlacement =
|
|
13440
|
+
var IntegrationModalHeaderMenuPlacement = css53`
|
|
13339
13441
|
margin-bottom: var(--spacing-base);
|
|
13340
13442
|
`;
|
|
13341
|
-
var IntegrationModalHeaderContentWrapper =
|
|
13443
|
+
var IntegrationModalHeaderContentWrapper = css53`
|
|
13342
13444
|
position: relative;
|
|
13343
13445
|
z-index: var(--z-10);
|
|
13344
13446
|
`;
|
|
13345
13447
|
|
|
13346
13448
|
// src/components/Modal/IntegrationModalHeader.tsx
|
|
13347
|
-
import { Fragment as Fragment8, jsx as
|
|
13449
|
+
import { Fragment as Fragment8, jsx as jsx67, jsxs as jsxs43 } from "@emotion/react/jsx-runtime";
|
|
13348
13450
|
var HexModalBackground = ({ ...props }) => {
|
|
13349
|
-
return /* @__PURE__ */
|
|
13451
|
+
return /* @__PURE__ */ jsxs43(
|
|
13350
13452
|
"svg",
|
|
13351
13453
|
{
|
|
13352
13454
|
width: "236",
|
|
@@ -13356,7 +13458,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13356
13458
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13357
13459
|
...props,
|
|
13358
13460
|
children: [
|
|
13359
|
-
/* @__PURE__ */
|
|
13461
|
+
/* @__PURE__ */ jsx67(
|
|
13360
13462
|
"path",
|
|
13361
13463
|
{
|
|
13362
13464
|
fillRule: "evenodd",
|
|
@@ -13365,7 +13467,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13365
13467
|
fill: "url(#paint0_linear_196_2737)"
|
|
13366
13468
|
}
|
|
13367
13469
|
),
|
|
13368
|
-
/* @__PURE__ */
|
|
13470
|
+
/* @__PURE__ */ jsx67("defs", { children: /* @__PURE__ */ jsxs43(
|
|
13369
13471
|
"linearGradient",
|
|
13370
13472
|
{
|
|
13371
13473
|
id: "paint0_linear_196_2737",
|
|
@@ -13375,8 +13477,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13375
13477
|
y2: "-95.2742",
|
|
13376
13478
|
gradientUnits: "userSpaceOnUse",
|
|
13377
13479
|
children: [
|
|
13378
|
-
/* @__PURE__ */
|
|
13379
|
-
/* @__PURE__ */
|
|
13480
|
+
/* @__PURE__ */ jsx67("stop", { stopColor: "#81DCDE" }),
|
|
13481
|
+
/* @__PURE__ */ jsx67("stop", { offset: "1", stopColor: "#428ED4" })
|
|
13380
13482
|
]
|
|
13381
13483
|
}
|
|
13382
13484
|
) })
|
|
@@ -13385,17 +13487,17 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13385
13487
|
);
|
|
13386
13488
|
};
|
|
13387
13489
|
var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
13388
|
-
return /* @__PURE__ */
|
|
13389
|
-
/* @__PURE__ */
|
|
13390
|
-
/* @__PURE__ */
|
|
13391
|
-
icon ? /* @__PURE__ */
|
|
13392
|
-
/* @__PURE__ */
|
|
13393
|
-
menu2 ? /* @__PURE__ */
|
|
13490
|
+
return /* @__PURE__ */ jsxs43(Fragment8, { children: [
|
|
13491
|
+
/* @__PURE__ */ jsx67(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
13492
|
+
/* @__PURE__ */ jsx67("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs43("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
13493
|
+
icon ? /* @__PURE__ */ jsx67(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
13494
|
+
/* @__PURE__ */ jsx67(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-test-id": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
13495
|
+
menu2 ? /* @__PURE__ */ jsxs43("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
13394
13496
|
menu2,
|
|
13395
13497
|
" "
|
|
13396
13498
|
] }) : null
|
|
13397
13499
|
] }) }),
|
|
13398
|
-
/* @__PURE__ */
|
|
13500
|
+
/* @__PURE__ */ jsx67("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
13399
13501
|
] });
|
|
13400
13502
|
};
|
|
13401
13503
|
|
|
@@ -13409,8 +13511,8 @@ import {
|
|
|
13409
13511
|
} from "reakit/Tooltip";
|
|
13410
13512
|
|
|
13411
13513
|
// src/components/Tooltip/Tooltip.styles.ts
|
|
13412
|
-
import { css as
|
|
13413
|
-
var TooltipContainer =
|
|
13514
|
+
import { css as css54 } from "@emotion/react";
|
|
13515
|
+
var TooltipContainer = css54`
|
|
13414
13516
|
border: 2px solid var(--gray-300);
|
|
13415
13517
|
border-radius: var(--rounded-base);
|
|
13416
13518
|
padding: var(--spacing-xs) var(--spacing-sm);
|
|
@@ -13418,28 +13520,28 @@ var TooltipContainer = css53`
|
|
|
13418
13520
|
font-size: var(--fs-xs);
|
|
13419
13521
|
background: var(--white);
|
|
13420
13522
|
`;
|
|
13421
|
-
var TooltipArrowStyles =
|
|
13523
|
+
var TooltipArrowStyles = css54`
|
|
13422
13524
|
svg {
|
|
13423
13525
|
fill: var(--gray-300);
|
|
13424
13526
|
}
|
|
13425
13527
|
`;
|
|
13426
13528
|
|
|
13427
13529
|
// src/components/Tooltip/Tooltip.tsx
|
|
13428
|
-
import { Fragment as Fragment9, jsx as
|
|
13530
|
+
import { Fragment as Fragment9, jsx as jsx68, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
13429
13531
|
function Tooltip({ children, title, placement = "bottom", visible, ...props }) {
|
|
13430
13532
|
const tooltip = useTooltipState({ placement });
|
|
13431
|
-
return /* @__PURE__ */
|
|
13432
|
-
/* @__PURE__ */
|
|
13433
|
-
!title ? null : /* @__PURE__ */
|
|
13434
|
-
/* @__PURE__ */
|
|
13533
|
+
return /* @__PURE__ */ jsxs44(Fragment9, { children: [
|
|
13534
|
+
/* @__PURE__ */ jsx68(TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => React15.cloneElement(children, referenceProps) }),
|
|
13535
|
+
!title ? null : /* @__PURE__ */ jsxs44(ReakitTooltip, { ...tooltip, ...props, css: TooltipContainer, visible: visible != null ? visible : tooltip.visible, children: [
|
|
13536
|
+
/* @__PURE__ */ jsx68(TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
|
|
13435
13537
|
title
|
|
13436
13538
|
] })
|
|
13437
13539
|
] });
|
|
13438
13540
|
}
|
|
13439
13541
|
|
|
13440
13542
|
// src/components/ParameterInputs/styles/ParameterBindingButton.styles.ts
|
|
13441
|
-
import { css as
|
|
13442
|
-
var inputIconBtn =
|
|
13543
|
+
import { css as css55 } from "@emotion/react";
|
|
13544
|
+
var inputIconBtn = css55`
|
|
13443
13545
|
align-items: center;
|
|
13444
13546
|
border: none;
|
|
13445
13547
|
border-radius: var(--rounded-base);
|
|
@@ -13462,7 +13564,7 @@ var inputIconBtn = css54`
|
|
|
13462
13564
|
`;
|
|
13463
13565
|
|
|
13464
13566
|
// src/components/ParameterInputs/ConnectToDataElementButton.tsx
|
|
13465
|
-
import { jsx as
|
|
13567
|
+
import { jsx as jsx69, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
|
|
13466
13568
|
var ConnectToDataElementButton = ({
|
|
13467
13569
|
icon,
|
|
13468
13570
|
iconColor,
|
|
@@ -13472,7 +13574,7 @@ var ConnectToDataElementButton = ({
|
|
|
13472
13574
|
...props
|
|
13473
13575
|
}) => {
|
|
13474
13576
|
const title = isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
13475
|
-
return /* @__PURE__ */
|
|
13577
|
+
return /* @__PURE__ */ jsx69(Tooltip, { title, children: /* @__PURE__ */ jsxs45(
|
|
13476
13578
|
"button",
|
|
13477
13579
|
{
|
|
13478
13580
|
css: inputIconBtn,
|
|
@@ -13481,7 +13583,7 @@ var ConnectToDataElementButton = ({
|
|
|
13481
13583
|
"aria-disabled": isLocked,
|
|
13482
13584
|
...props,
|
|
13483
13585
|
children: [
|
|
13484
|
-
/* @__PURE__ */
|
|
13586
|
+
/* @__PURE__ */ jsx69(
|
|
13485
13587
|
Icon,
|
|
13486
13588
|
{
|
|
13487
13589
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -13517,8 +13619,8 @@ var useParameterShell = () => {
|
|
|
13517
13619
|
};
|
|
13518
13620
|
|
|
13519
13621
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
13520
|
-
import { css as
|
|
13521
|
-
var inputContainer2 =
|
|
13622
|
+
import { css as css56 } from "@emotion/react";
|
|
13623
|
+
var inputContainer2 = css56`
|
|
13522
13624
|
position: relative;
|
|
13523
13625
|
|
|
13524
13626
|
&:hover,
|
|
@@ -13530,14 +13632,14 @@ var inputContainer2 = css55`
|
|
|
13530
13632
|
}
|
|
13531
13633
|
}
|
|
13532
13634
|
`;
|
|
13533
|
-
var labelText2 =
|
|
13635
|
+
var labelText2 = css56`
|
|
13534
13636
|
align-items: center;
|
|
13535
13637
|
display: flex;
|
|
13536
13638
|
gap: var(--spacing-xs);
|
|
13537
13639
|
font-weight: var(--fw-regular);
|
|
13538
13640
|
margin: 0 0 var(--spacing-xs);
|
|
13539
13641
|
`;
|
|
13540
|
-
var input2 =
|
|
13642
|
+
var input2 = css56`
|
|
13541
13643
|
display: block;
|
|
13542
13644
|
appearance: none;
|
|
13543
13645
|
box-sizing: border-box;
|
|
@@ -13581,18 +13683,18 @@ var input2 = css55`
|
|
|
13581
13683
|
color: var(--gray-400);
|
|
13582
13684
|
}
|
|
13583
13685
|
`;
|
|
13584
|
-
var selectInput =
|
|
13686
|
+
var selectInput = css56`
|
|
13585
13687
|
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");
|
|
13586
13688
|
background-position: right var(--spacing-sm) center;
|
|
13587
13689
|
background-repeat: no-repeat;
|
|
13588
13690
|
background-size: 1rem;
|
|
13589
13691
|
padding-right: var(--spacing-xl);
|
|
13590
13692
|
`;
|
|
13591
|
-
var inputWrapper =
|
|
13693
|
+
var inputWrapper = css56`
|
|
13592
13694
|
display: flex; // used to correct overflow with chrome textarea
|
|
13593
13695
|
position: relative;
|
|
13594
13696
|
`;
|
|
13595
|
-
var inputIcon2 =
|
|
13697
|
+
var inputIcon2 = css56`
|
|
13596
13698
|
align-items: center;
|
|
13597
13699
|
background: var(--white);
|
|
13598
13700
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -13608,7 +13710,7 @@ var inputIcon2 = css55`
|
|
|
13608
13710
|
width: var(--spacing-lg);
|
|
13609
13711
|
z-index: var(--z-10);
|
|
13610
13712
|
`;
|
|
13611
|
-
var inputToggleLabel2 =
|
|
13713
|
+
var inputToggleLabel2 = css56`
|
|
13612
13714
|
align-items: center;
|
|
13613
13715
|
background: var(--white);
|
|
13614
13716
|
cursor: pointer;
|
|
@@ -13619,7 +13721,7 @@ var inputToggleLabel2 = css55`
|
|
|
13619
13721
|
min-height: var(--spacing-md);
|
|
13620
13722
|
position: relative;
|
|
13621
13723
|
`;
|
|
13622
|
-
var toggleInput2 =
|
|
13724
|
+
var toggleInput2 = css56`
|
|
13623
13725
|
appearance: none;
|
|
13624
13726
|
border: 1px solid var(--gray-300);
|
|
13625
13727
|
background: var(--white);
|
|
@@ -13658,7 +13760,7 @@ var toggleInput2 = css55`
|
|
|
13658
13760
|
border-color: var(--gray-300);
|
|
13659
13761
|
}
|
|
13660
13762
|
`;
|
|
13661
|
-
var inlineLabel2 =
|
|
13763
|
+
var inlineLabel2 = css56`
|
|
13662
13764
|
padding-left: var(--spacing-lg);
|
|
13663
13765
|
font-size: var(--fs-sm);
|
|
13664
13766
|
font-weight: var(--fw-regular);
|
|
@@ -13674,7 +13776,7 @@ var inlineLabel2 = css55`
|
|
|
13674
13776
|
}
|
|
13675
13777
|
}
|
|
13676
13778
|
`;
|
|
13677
|
-
var inputMenu =
|
|
13779
|
+
var inputMenu = css56`
|
|
13678
13780
|
background: none;
|
|
13679
13781
|
border: none;
|
|
13680
13782
|
padding: var(--spacing-2xs);
|
|
@@ -13690,14 +13792,14 @@ var inputMenu = css55`
|
|
|
13690
13792
|
background-color: var(--gray-200);
|
|
13691
13793
|
}
|
|
13692
13794
|
`;
|
|
13693
|
-
var textarea2 =
|
|
13795
|
+
var textarea2 = css56`
|
|
13694
13796
|
resize: vertical;
|
|
13695
13797
|
min-height: 2rem;
|
|
13696
13798
|
`;
|
|
13697
|
-
var imageWrapper =
|
|
13799
|
+
var imageWrapper = css56`
|
|
13698
13800
|
background: var(--white);
|
|
13699
13801
|
`;
|
|
13700
|
-
var img =
|
|
13802
|
+
var img = css56`
|
|
13701
13803
|
animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
13702
13804
|
object-fit: contain;
|
|
13703
13805
|
max-width: 100%;
|
|
@@ -13705,7 +13807,7 @@ var img = css55`
|
|
|
13705
13807
|
opacity: var(--opacity-0);
|
|
13706
13808
|
margin: var(--spacing-sm) auto 0;
|
|
13707
13809
|
`;
|
|
13708
|
-
var dataConnectButton =
|
|
13810
|
+
var dataConnectButton = css56`
|
|
13709
13811
|
align-items: center;
|
|
13710
13812
|
appearance: none;
|
|
13711
13813
|
box-sizing: border-box;
|
|
@@ -13740,7 +13842,7 @@ var dataConnectButton = css55`
|
|
|
13740
13842
|
pointer-events: none;
|
|
13741
13843
|
}
|
|
13742
13844
|
`;
|
|
13743
|
-
var linkParameterBtn =
|
|
13845
|
+
var linkParameterBtn = css56`
|
|
13744
13846
|
border-radius: var(--rounded-base);
|
|
13745
13847
|
background: var(--white);
|
|
13746
13848
|
border: none;
|
|
@@ -13752,10 +13854,10 @@ var linkParameterBtn = css55`
|
|
|
13752
13854
|
inset: 0 var(--spacing-base) 0 auto;
|
|
13753
13855
|
padding: 0 var(--spacing-base);
|
|
13754
13856
|
`;
|
|
13755
|
-
var linkParameterInput =
|
|
13857
|
+
var linkParameterInput = css56`
|
|
13756
13858
|
padding-right: calc(var(--spacing-2xl) + var(--spacing-base));
|
|
13757
13859
|
`;
|
|
13758
|
-
var linkParameterIcon =
|
|
13860
|
+
var linkParameterIcon = css56`
|
|
13759
13861
|
align-items: center;
|
|
13760
13862
|
color: var(--brand-secondary-3);
|
|
13761
13863
|
display: flex;
|
|
@@ -13770,7 +13872,7 @@ var linkParameterIcon = css55`
|
|
|
13770
13872
|
`;
|
|
13771
13873
|
|
|
13772
13874
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
13773
|
-
import { jsx as
|
|
13875
|
+
import { jsx as jsx70, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
13774
13876
|
function ParameterDataResource({
|
|
13775
13877
|
label,
|
|
13776
13878
|
labelLeadingIcon,
|
|
@@ -13780,12 +13882,12 @@ function ParameterDataResource({
|
|
|
13780
13882
|
disabled,
|
|
13781
13883
|
children
|
|
13782
13884
|
}) {
|
|
13783
|
-
return /* @__PURE__ */
|
|
13784
|
-
/* @__PURE__ */
|
|
13885
|
+
return /* @__PURE__ */ jsxs46("div", { "data-testid": "parameter-data-connect-button", children: [
|
|
13886
|
+
/* @__PURE__ */ jsxs46("span", { css: labelText2, children: [
|
|
13785
13887
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
13786
13888
|
label
|
|
13787
13889
|
] }),
|
|
13788
|
-
/* @__PURE__ */
|
|
13890
|
+
/* @__PURE__ */ jsxs46(
|
|
13789
13891
|
"button",
|
|
13790
13892
|
{
|
|
13791
13893
|
type: "button",
|
|
@@ -13794,30 +13896,30 @@ function ParameterDataResource({
|
|
|
13794
13896
|
disabled,
|
|
13795
13897
|
onClick: onConnectDatasource,
|
|
13796
13898
|
children: [
|
|
13797
|
-
/* @__PURE__ */
|
|
13899
|
+
/* @__PURE__ */ jsx70("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx70(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
13798
13900
|
children
|
|
13799
13901
|
]
|
|
13800
13902
|
}
|
|
13801
13903
|
),
|
|
13802
|
-
caption ? /* @__PURE__ */
|
|
13904
|
+
caption ? /* @__PURE__ */ jsx70(Caption, { children: caption }) : null
|
|
13803
13905
|
] });
|
|
13804
13906
|
}
|
|
13805
13907
|
|
|
13806
13908
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
13807
|
-
import { css as
|
|
13808
|
-
var ParameterDrawerHeaderContainer =
|
|
13909
|
+
import { css as css57 } from "@emotion/react";
|
|
13910
|
+
var ParameterDrawerHeaderContainer = css57`
|
|
13809
13911
|
align-items: center;
|
|
13810
13912
|
display: flex;
|
|
13811
13913
|
gap: var(--spacing-base);
|
|
13812
13914
|
justify-content: space-between;
|
|
13813
13915
|
margin-bottom: var(--spacing-sm);
|
|
13814
13916
|
`;
|
|
13815
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
13917
|
+
var ParameterDrawerHeaderTitleGroup = css57`
|
|
13816
13918
|
align-items: center;
|
|
13817
13919
|
display: flex;
|
|
13818
13920
|
gap: var(--spacing-sm);
|
|
13819
13921
|
`;
|
|
13820
|
-
var ParameterDrawerHeaderTitle =
|
|
13922
|
+
var ParameterDrawerHeaderTitle = css57`
|
|
13821
13923
|
text-overflow: ellipsis;
|
|
13822
13924
|
white-space: nowrap;
|
|
13823
13925
|
overflow: hidden;
|
|
@@ -13825,12 +13927,12 @@ var ParameterDrawerHeaderTitle = css56`
|
|
|
13825
13927
|
`;
|
|
13826
13928
|
|
|
13827
13929
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
13828
|
-
import { jsx as
|
|
13930
|
+
import { jsx as jsx71, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
13829
13931
|
var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
13830
|
-
return /* @__PURE__ */
|
|
13831
|
-
/* @__PURE__ */
|
|
13932
|
+
return /* @__PURE__ */ jsxs47("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
13933
|
+
/* @__PURE__ */ jsxs47("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
13832
13934
|
iconBeforeTitle,
|
|
13833
|
-
/* @__PURE__ */
|
|
13935
|
+
/* @__PURE__ */ jsx71(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
|
|
13834
13936
|
] }),
|
|
13835
13937
|
children
|
|
13836
13938
|
] });
|
|
@@ -13840,8 +13942,8 @@ var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
|
13840
13942
|
import { forwardRef as forwardRef7 } from "react";
|
|
13841
13943
|
|
|
13842
13944
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
13843
|
-
import { css as
|
|
13844
|
-
var fieldsetStyles =
|
|
13945
|
+
import { css as css58 } from "@emotion/react";
|
|
13946
|
+
var fieldsetStyles = css58`
|
|
13845
13947
|
&:disabled,
|
|
13846
13948
|
[readonly] {
|
|
13847
13949
|
pointer-events: none;
|
|
@@ -13852,7 +13954,7 @@ var fieldsetStyles = css57`
|
|
|
13852
13954
|
}
|
|
13853
13955
|
}
|
|
13854
13956
|
`;
|
|
13855
|
-
var fieldsetLegend2 =
|
|
13957
|
+
var fieldsetLegend2 = css58`
|
|
13856
13958
|
display: block;
|
|
13857
13959
|
font-weight: var(--fw-medium);
|
|
13858
13960
|
margin-bottom: var(--spacing-sm);
|
|
@@ -13860,11 +13962,11 @@ var fieldsetLegend2 = css57`
|
|
|
13860
13962
|
`;
|
|
13861
13963
|
|
|
13862
13964
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
13863
|
-
import { jsx as
|
|
13965
|
+
import { jsx as jsx72, jsxs as jsxs48 } from "@emotion/react/jsx-runtime";
|
|
13864
13966
|
var ParameterGroup = forwardRef7(
|
|
13865
13967
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
13866
|
-
return /* @__PURE__ */
|
|
13867
|
-
/* @__PURE__ */
|
|
13968
|
+
return /* @__PURE__ */ jsxs48("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
13969
|
+
/* @__PURE__ */ jsx72("legend", { css: fieldsetLegend2, children: legend }),
|
|
13868
13970
|
children
|
|
13869
13971
|
] });
|
|
13870
13972
|
}
|
|
@@ -13877,21 +13979,21 @@ import { forwardRef as forwardRef9, useCallback as useCallback3, useDeferredValu
|
|
|
13877
13979
|
import { useState as useState7 } from "react";
|
|
13878
13980
|
|
|
13879
13981
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
13880
|
-
import { jsx as
|
|
13982
|
+
import { jsx as jsx73 } from "@emotion/react/jsx-runtime";
|
|
13881
13983
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
13882
|
-
return !asSpan ? /* @__PURE__ */
|
|
13984
|
+
return !asSpan ? /* @__PURE__ */ jsx73("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx73("span", { "aria-labelledby": id, css: labelText2, children });
|
|
13883
13985
|
};
|
|
13884
13986
|
|
|
13885
13987
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
13886
13988
|
import { forwardRef as forwardRef8 } from "react";
|
|
13887
|
-
import { jsx as
|
|
13989
|
+
import { jsx as jsx74 } from "@emotion/react/jsx-runtime";
|
|
13888
13990
|
var ParameterMenuButton = forwardRef8(
|
|
13889
13991
|
({ label, children }, ref) => {
|
|
13890
|
-
return /* @__PURE__ */
|
|
13992
|
+
return /* @__PURE__ */ jsx74(
|
|
13891
13993
|
Menu,
|
|
13892
13994
|
{
|
|
13893
13995
|
menuLabel: `${label} menu`,
|
|
13894
|
-
menuTrigger: /* @__PURE__ */
|
|
13996
|
+
menuTrigger: /* @__PURE__ */ jsx74(
|
|
13895
13997
|
"button",
|
|
13896
13998
|
{
|
|
13897
13999
|
className: "parameter-menu",
|
|
@@ -13899,7 +14001,7 @@ var ParameterMenuButton = forwardRef8(
|
|
|
13899
14001
|
type: "button",
|
|
13900
14002
|
"aria-label": `${label} options`,
|
|
13901
14003
|
ref,
|
|
13902
|
-
children: /* @__PURE__ */
|
|
14004
|
+
children: /* @__PURE__ */ jsx74(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
13903
14005
|
}
|
|
13904
14006
|
),
|
|
13905
14007
|
children
|
|
@@ -13909,15 +14011,15 @@ var ParameterMenuButton = forwardRef8(
|
|
|
13909
14011
|
);
|
|
13910
14012
|
|
|
13911
14013
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
13912
|
-
import { css as
|
|
13913
|
-
var emptyParameterShell =
|
|
14014
|
+
import { css as css59 } from "@emotion/react";
|
|
14015
|
+
var emptyParameterShell = css59`
|
|
13914
14016
|
border-radius: var(--rounded-sm);
|
|
13915
14017
|
background: var(--white);
|
|
13916
14018
|
flex-grow: 1;
|
|
13917
14019
|
padding: var(--spacing-xs);
|
|
13918
14020
|
position: relative;
|
|
13919
14021
|
`;
|
|
13920
|
-
var emptyParameterShellText =
|
|
14022
|
+
var emptyParameterShellText = css59`
|
|
13921
14023
|
background: var(--brand-secondary-6);
|
|
13922
14024
|
border-radius: var(--rounded-sm);
|
|
13923
14025
|
padding: var(--spacing-sm);
|
|
@@ -13925,7 +14027,7 @@ var emptyParameterShellText = css58`
|
|
|
13925
14027
|
font-size: var(--fs-sm);
|
|
13926
14028
|
margin: 0;
|
|
13927
14029
|
`;
|
|
13928
|
-
var overrideMarker =
|
|
14030
|
+
var overrideMarker = css59`
|
|
13929
14031
|
border-radius: var(--rounded-sm);
|
|
13930
14032
|
border: 10px solid var(--gray-300);
|
|
13931
14033
|
border-left-color: transparent;
|
|
@@ -13936,7 +14038,7 @@ var overrideMarker = css58`
|
|
|
13936
14038
|
`;
|
|
13937
14039
|
|
|
13938
14040
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
13939
|
-
import { jsx as
|
|
14041
|
+
import { jsx as jsx75, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
13940
14042
|
var extractParameterProps = (props) => {
|
|
13941
14043
|
const {
|
|
13942
14044
|
id,
|
|
@@ -13992,18 +14094,18 @@ var ParameterShell = ({
|
|
|
13992
14094
|
const [manualErrorMessage, setManualErrorMessage] = useState7(void 0);
|
|
13993
14095
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
13994
14096
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
13995
|
-
return /* @__PURE__ */
|
|
13996
|
-
hiddenLabel || title ? null : /* @__PURE__ */
|
|
14097
|
+
return /* @__PURE__ */ jsxs49("div", { css: inputContainer2, ...props, children: [
|
|
14098
|
+
hiddenLabel || title ? null : /* @__PURE__ */ jsxs49(ParameterLabel, { id, css: labelText2, children: [
|
|
13997
14099
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
13998
14100
|
label
|
|
13999
14101
|
] }),
|
|
14000
|
-
!title ? null : /* @__PURE__ */
|
|
14102
|
+
!title ? null : /* @__PURE__ */ jsxs49(ParameterLabel, { id, asSpan: true, children: [
|
|
14001
14103
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
14002
14104
|
title
|
|
14003
14105
|
] }),
|
|
14004
|
-
/* @__PURE__ */
|
|
14005
|
-
menuItems ? /* @__PURE__ */
|
|
14006
|
-
/* @__PURE__ */
|
|
14106
|
+
/* @__PURE__ */ jsxs49("div", { css: inputWrapper, children: [
|
|
14107
|
+
menuItems ? /* @__PURE__ */ jsx75(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
14108
|
+
/* @__PURE__ */ jsx75(
|
|
14007
14109
|
ParameterShellContext.Provider,
|
|
14008
14110
|
{
|
|
14009
14111
|
value: {
|
|
@@ -14013,30 +14115,30 @@ var ParameterShell = ({
|
|
|
14013
14115
|
errorMessage: errorMessaging,
|
|
14014
14116
|
onManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
14015
14117
|
},
|
|
14016
|
-
children: /* @__PURE__ */
|
|
14118
|
+
children: /* @__PURE__ */ jsxs49(ParameterShellPlaceholder, { children: [
|
|
14017
14119
|
children,
|
|
14018
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
14120
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx75(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
14019
14121
|
] })
|
|
14020
14122
|
}
|
|
14021
14123
|
)
|
|
14022
14124
|
] }),
|
|
14023
|
-
caption ? /* @__PURE__ */
|
|
14024
|
-
errorMessaging ? /* @__PURE__ */
|
|
14125
|
+
caption ? /* @__PURE__ */ jsx75(Caption, { testId: captionTestId, children: caption }) : null,
|
|
14126
|
+
errorMessaging ? /* @__PURE__ */ jsx75(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null
|
|
14025
14127
|
] });
|
|
14026
14128
|
};
|
|
14027
14129
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
14028
|
-
return /* @__PURE__ */
|
|
14130
|
+
return /* @__PURE__ */ jsx75("div", { css: emptyParameterShell, children });
|
|
14029
14131
|
};
|
|
14030
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
14132
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx75(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx75("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx75("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
14031
14133
|
|
|
14032
14134
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
14033
|
-
import { Fragment as Fragment10, jsx as
|
|
14135
|
+
import { Fragment as Fragment10, jsx as jsx76, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
14034
14136
|
var ParameterImage = forwardRef9((props, ref) => {
|
|
14035
14137
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14036
|
-
return /* @__PURE__ */
|
|
14138
|
+
return /* @__PURE__ */ jsx76(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: /* @__PURE__ */ jsx76(ParameterImageInner, { ref, ...innerProps }) });
|
|
14037
14139
|
});
|
|
14038
14140
|
var BrokenImage = ({ ...props }) => {
|
|
14039
|
-
return /* @__PURE__ */
|
|
14141
|
+
return /* @__PURE__ */ jsxs50(
|
|
14040
14142
|
"svg",
|
|
14041
14143
|
{
|
|
14042
14144
|
width: "214",
|
|
@@ -14047,11 +14149,11 @@ var BrokenImage = ({ ...props }) => {
|
|
|
14047
14149
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
14048
14150
|
...props,
|
|
14049
14151
|
children: [
|
|
14050
|
-
/* @__PURE__ */
|
|
14051
|
-
/* @__PURE__ */
|
|
14052
|
-
/* @__PURE__ */
|
|
14053
|
-
/* @__PURE__ */
|
|
14054
|
-
/* @__PURE__ */
|
|
14152
|
+
/* @__PURE__ */ jsx76("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
14153
|
+
/* @__PURE__ */ jsx76("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
14154
|
+
/* @__PURE__ */ jsxs50("defs", { children: [
|
|
14155
|
+
/* @__PURE__ */ jsx76("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx76("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
14156
|
+
/* @__PURE__ */ jsx76(
|
|
14055
14157
|
"image",
|
|
14056
14158
|
{
|
|
14057
14159
|
id: "image0_761_4353",
|
|
@@ -14103,8 +14205,8 @@ var ParameterImageInner = forwardRef9(
|
|
|
14103
14205
|
useEffect8(() => {
|
|
14104
14206
|
updateImageSrc();
|
|
14105
14207
|
}, [value]);
|
|
14106
|
-
return /* @__PURE__ */
|
|
14107
|
-
/* @__PURE__ */
|
|
14208
|
+
return /* @__PURE__ */ jsxs50(Fragment10, { children: [
|
|
14209
|
+
/* @__PURE__ */ jsx76(
|
|
14108
14210
|
"input",
|
|
14109
14211
|
{
|
|
14110
14212
|
css: input2,
|
|
@@ -14116,8 +14218,8 @@ var ParameterImageInner = forwardRef9(
|
|
|
14116
14218
|
...props
|
|
14117
14219
|
}
|
|
14118
14220
|
),
|
|
14119
|
-
/* @__PURE__ */
|
|
14120
|
-
deferredValue && !errorMessage ? /* @__PURE__ */
|
|
14221
|
+
/* @__PURE__ */ jsxs50("div", { css: imageWrapper, children: [
|
|
14222
|
+
deferredValue && !errorMessage ? /* @__PURE__ */ jsx76(
|
|
14121
14223
|
"img",
|
|
14122
14224
|
{
|
|
14123
14225
|
src: deferredValue,
|
|
@@ -14127,24 +14229,24 @@ var ParameterImageInner = forwardRef9(
|
|
|
14127
14229
|
loading: "lazy"
|
|
14128
14230
|
}
|
|
14129
14231
|
) : null,
|
|
14130
|
-
deferredValue && errorMessage ? /* @__PURE__ */
|
|
14232
|
+
deferredValue && errorMessage ? /* @__PURE__ */ jsx76(BrokenImage, { css: img }) : null
|
|
14131
14233
|
] }),
|
|
14132
|
-
loading ? /* @__PURE__ */
|
|
14234
|
+
loading ? /* @__PURE__ */ jsx76(LoadingIcon, {}) : null
|
|
14133
14235
|
] });
|
|
14134
14236
|
}
|
|
14135
14237
|
);
|
|
14136
14238
|
|
|
14137
14239
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
14138
14240
|
import { forwardRef as forwardRef10 } from "react";
|
|
14139
|
-
import { jsx as
|
|
14241
|
+
import { jsx as jsx77 } from "@emotion/react/jsx-runtime";
|
|
14140
14242
|
var ParameterInput = forwardRef10((props, ref) => {
|
|
14141
14243
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14142
|
-
return /* @__PURE__ */
|
|
14244
|
+
return /* @__PURE__ */ jsx77(ParameterShell, { "data-test-id": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx77(ParameterInputInner, { ref, ...innerProps }) });
|
|
14143
14245
|
});
|
|
14144
14246
|
var ParameterInputInner = forwardRef10(
|
|
14145
14247
|
({ ...props }, ref) => {
|
|
14146
14248
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14147
|
-
return /* @__PURE__ */
|
|
14249
|
+
return /* @__PURE__ */ jsx77(
|
|
14148
14250
|
"input",
|
|
14149
14251
|
{
|
|
14150
14252
|
css: input2,
|
|
@@ -14161,18 +14263,18 @@ var ParameterInputInner = forwardRef10(
|
|
|
14161
14263
|
|
|
14162
14264
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
14163
14265
|
import { forwardRef as forwardRef11 } from "react";
|
|
14164
|
-
import { jsx as
|
|
14266
|
+
import { jsx as jsx78, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
14165
14267
|
var ParameterLink = forwardRef11(
|
|
14166
14268
|
({ buttonText = "Select project map node", disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
14167
14269
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14168
|
-
return /* @__PURE__ */
|
|
14270
|
+
return /* @__PURE__ */ jsx78(
|
|
14169
14271
|
ParameterShell,
|
|
14170
14272
|
{
|
|
14171
14273
|
"data-test-id": "link-parameter-editor",
|
|
14172
14274
|
...shellProps,
|
|
14173
14275
|
label: innerProps.value ? shellProps.label : "",
|
|
14174
14276
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
14175
|
-
children: !innerProps.value ? /* @__PURE__ */
|
|
14277
|
+
children: !innerProps.value ? /* @__PURE__ */ jsx78("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText }) : /* @__PURE__ */ jsx78(
|
|
14176
14278
|
ParameterLinkInner,
|
|
14177
14279
|
{
|
|
14178
14280
|
onConnectLink,
|
|
@@ -14188,8 +14290,8 @@ var ParameterLink = forwardRef11(
|
|
|
14188
14290
|
var ParameterLinkInner = forwardRef11(
|
|
14189
14291
|
({ externalLink, onConnectLink, disabled, ...props }, ref) => {
|
|
14190
14292
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14191
|
-
return /* @__PURE__ */
|
|
14192
|
-
/* @__PURE__ */
|
|
14293
|
+
return /* @__PURE__ */ jsxs51("div", { css: inputWrapper, children: [
|
|
14294
|
+
/* @__PURE__ */ jsx78(
|
|
14193
14295
|
"input",
|
|
14194
14296
|
{
|
|
14195
14297
|
type: "text",
|
|
@@ -14201,7 +14303,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14201
14303
|
...props
|
|
14202
14304
|
}
|
|
14203
14305
|
),
|
|
14204
|
-
/* @__PURE__ */
|
|
14306
|
+
/* @__PURE__ */ jsx78(
|
|
14205
14307
|
"button",
|
|
14206
14308
|
{
|
|
14207
14309
|
type: "button",
|
|
@@ -14212,7 +14314,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14212
14314
|
children: "edit"
|
|
14213
14315
|
}
|
|
14214
14316
|
),
|
|
14215
|
-
externalLink ? /* @__PURE__ */
|
|
14317
|
+
externalLink ? /* @__PURE__ */ jsx78(
|
|
14216
14318
|
"a",
|
|
14217
14319
|
{
|
|
14218
14320
|
href: externalLink,
|
|
@@ -14220,7 +14322,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14220
14322
|
title: "Open link in new tab",
|
|
14221
14323
|
target: "_blank",
|
|
14222
14324
|
rel: "noopener noreferrer",
|
|
14223
|
-
children: /* @__PURE__ */
|
|
14325
|
+
children: /* @__PURE__ */ jsx78(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
14224
14326
|
}
|
|
14225
14327
|
) : null
|
|
14226
14328
|
] });
|
|
@@ -14228,7 +14330,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14228
14330
|
);
|
|
14229
14331
|
|
|
14230
14332
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
14231
|
-
import { Fragment as Fragment11, jsx as
|
|
14333
|
+
import { Fragment as Fragment11, jsx as jsx79, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
14232
14334
|
var ParameterNameAndPublicIdInput = ({
|
|
14233
14335
|
id,
|
|
14234
14336
|
onBlur,
|
|
@@ -14254,8 +14356,8 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14254
14356
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
14255
14357
|
};
|
|
14256
14358
|
autoFocus == null ? void 0 : autoFocus();
|
|
14257
|
-
return /* @__PURE__ */
|
|
14258
|
-
/* @__PURE__ */
|
|
14359
|
+
return /* @__PURE__ */ jsxs52(Fragment11, { children: [
|
|
14360
|
+
/* @__PURE__ */ jsx79(
|
|
14259
14361
|
ParameterInput,
|
|
14260
14362
|
{
|
|
14261
14363
|
id: nameIdField,
|
|
@@ -14274,7 +14376,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14274
14376
|
value: values[nameIdField]
|
|
14275
14377
|
}
|
|
14276
14378
|
),
|
|
14277
|
-
/* @__PURE__ */
|
|
14379
|
+
/* @__PURE__ */ jsx79(
|
|
14278
14380
|
ParameterInput,
|
|
14279
14381
|
{
|
|
14280
14382
|
id: publicIdFieldName,
|
|
@@ -14288,11 +14390,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14288
14390
|
caption: publicIdCaption,
|
|
14289
14391
|
placeholder: publicIdPlaceholderText,
|
|
14290
14392
|
errorMessage: publicIdError,
|
|
14291
|
-
menuItems: /* @__PURE__ */
|
|
14393
|
+
menuItems: /* @__PURE__ */ jsx79(
|
|
14292
14394
|
MenuItem,
|
|
14293
14395
|
{
|
|
14294
14396
|
disabled: !values[publicIdFieldName],
|
|
14295
|
-
icon: /* @__PURE__ */
|
|
14397
|
+
icon: /* @__PURE__ */ jsx79(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
14296
14398
|
onClick: handleCopyPidFieldValue,
|
|
14297
14399
|
children: "Copy"
|
|
14298
14400
|
}
|
|
@@ -14300,13 +14402,13 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14300
14402
|
value: values[publicIdFieldName]
|
|
14301
14403
|
}
|
|
14302
14404
|
),
|
|
14303
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
14405
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx79(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
14304
14406
|
] });
|
|
14305
14407
|
};
|
|
14306
14408
|
|
|
14307
14409
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
14308
14410
|
import { forwardRef as forwardRef12 } from "react";
|
|
14309
|
-
import { Fragment as Fragment12, jsx as
|
|
14411
|
+
import { Fragment as Fragment12, jsx as jsx80, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
14310
14412
|
var ParameterRichText = forwardRef12(
|
|
14311
14413
|
({
|
|
14312
14414
|
label,
|
|
@@ -14320,7 +14422,7 @@ var ParameterRichText = forwardRef12(
|
|
|
14320
14422
|
menuItems,
|
|
14321
14423
|
...props
|
|
14322
14424
|
}, ref) => {
|
|
14323
|
-
return /* @__PURE__ */
|
|
14425
|
+
return /* @__PURE__ */ jsxs53(
|
|
14324
14426
|
ParameterShell,
|
|
14325
14427
|
{
|
|
14326
14428
|
"data-test-id": "parameter-input",
|
|
@@ -14333,8 +14435,8 @@ var ParameterRichText = forwardRef12(
|
|
|
14333
14435
|
captionTestId,
|
|
14334
14436
|
menuItems,
|
|
14335
14437
|
children: [
|
|
14336
|
-
/* @__PURE__ */
|
|
14337
|
-
menuItems ? /* @__PURE__ */
|
|
14438
|
+
/* @__PURE__ */ jsx80(ParameterRichTextInner, { ref, ...props }),
|
|
14439
|
+
menuItems ? /* @__PURE__ */ jsx80(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx80(Fragment12, { children: menuItems }) }) : null
|
|
14338
14440
|
]
|
|
14339
14441
|
}
|
|
14340
14442
|
);
|
|
@@ -14342,7 +14444,7 @@ var ParameterRichText = forwardRef12(
|
|
|
14342
14444
|
);
|
|
14343
14445
|
var ParameterRichTextInner = forwardRef12(({ ...props }, ref) => {
|
|
14344
14446
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14345
|
-
return /* @__PURE__ */
|
|
14447
|
+
return /* @__PURE__ */ jsx80(
|
|
14346
14448
|
"textarea",
|
|
14347
14449
|
{
|
|
14348
14450
|
css: [input2, textarea2],
|
|
@@ -14356,17 +14458,17 @@ var ParameterRichTextInner = forwardRef12(({ ...props }, ref) => {
|
|
|
14356
14458
|
|
|
14357
14459
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
14358
14460
|
import { forwardRef as forwardRef13 } from "react";
|
|
14359
|
-
import { jsx as
|
|
14461
|
+
import { jsx as jsx81, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
14360
14462
|
var ParameterSelect = forwardRef13(
|
|
14361
14463
|
({ defaultOption, options, ...props }, ref) => {
|
|
14362
14464
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14363
|
-
return /* @__PURE__ */
|
|
14465
|
+
return /* @__PURE__ */ jsx81(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx81(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
14364
14466
|
}
|
|
14365
14467
|
);
|
|
14366
14468
|
var ParameterSelectInner = forwardRef13(
|
|
14367
14469
|
({ defaultOption, options, ...props }, ref) => {
|
|
14368
14470
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14369
|
-
return /* @__PURE__ */
|
|
14471
|
+
return /* @__PURE__ */ jsxs54(
|
|
14370
14472
|
"select",
|
|
14371
14473
|
{
|
|
14372
14474
|
css: [input2, selectInput],
|
|
@@ -14375,10 +14477,10 @@ var ParameterSelectInner = forwardRef13(
|
|
|
14375
14477
|
ref,
|
|
14376
14478
|
...props,
|
|
14377
14479
|
children: [
|
|
14378
|
-
defaultOption ? /* @__PURE__ */
|
|
14480
|
+
defaultOption ? /* @__PURE__ */ jsx81("option", { value: "", children: defaultOption }) : null,
|
|
14379
14481
|
options.map((option) => {
|
|
14380
14482
|
var _a;
|
|
14381
|
-
return /* @__PURE__ */
|
|
14483
|
+
return /* @__PURE__ */ jsx81("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
14382
14484
|
})
|
|
14383
14485
|
]
|
|
14384
14486
|
}
|
|
@@ -14388,14 +14490,14 @@ var ParameterSelectInner = forwardRef13(
|
|
|
14388
14490
|
|
|
14389
14491
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
14390
14492
|
import { forwardRef as forwardRef14 } from "react";
|
|
14391
|
-
import { jsx as
|
|
14493
|
+
import { jsx as jsx82 } from "@emotion/react/jsx-runtime";
|
|
14392
14494
|
var ParameterTextarea = forwardRef14((props, ref) => {
|
|
14393
14495
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14394
|
-
return /* @__PURE__ */
|
|
14496
|
+
return /* @__PURE__ */ jsx82(ParameterShell, { "data-test-id": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx82(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
14395
14497
|
});
|
|
14396
14498
|
var ParameterTextareaInner = forwardRef14(({ ...props }, ref) => {
|
|
14397
14499
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14398
|
-
return /* @__PURE__ */
|
|
14500
|
+
return /* @__PURE__ */ jsx82(
|
|
14399
14501
|
"textarea",
|
|
14400
14502
|
{
|
|
14401
14503
|
css: [input2, textarea2],
|
|
@@ -14409,17 +14511,17 @@ var ParameterTextareaInner = forwardRef14(({ ...props }, ref) => {
|
|
|
14409
14511
|
|
|
14410
14512
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
14411
14513
|
import { forwardRef as forwardRef15 } from "react";
|
|
14412
|
-
import { jsx as
|
|
14514
|
+
import { jsx as jsx83, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
14413
14515
|
var ParameterToggle = forwardRef15((props, ref) => {
|
|
14414
14516
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14415
|
-
return /* @__PURE__ */
|
|
14517
|
+
return /* @__PURE__ */ jsx83(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx83(ParameterToggleInner, { ref, ...innerProps }) });
|
|
14416
14518
|
});
|
|
14417
14519
|
var ParameterToggleInner = forwardRef15(
|
|
14418
14520
|
({ ...props }, ref) => {
|
|
14419
14521
|
const { id, label } = useParameterShell();
|
|
14420
|
-
return /* @__PURE__ */
|
|
14421
|
-
/* @__PURE__ */
|
|
14422
|
-
/* @__PURE__ */
|
|
14522
|
+
return /* @__PURE__ */ jsxs55("label", { css: inputToggleLabel2, children: [
|
|
14523
|
+
/* @__PURE__ */ jsx83("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
14524
|
+
/* @__PURE__ */ jsx83("span", { css: inlineLabel2, children: label })
|
|
14423
14525
|
] });
|
|
14424
14526
|
}
|
|
14425
14527
|
);
|
|
@@ -14433,13 +14535,13 @@ import {
|
|
|
14433
14535
|
import { Portal as Portal2 } from "reakit/Portal";
|
|
14434
14536
|
|
|
14435
14537
|
// src/components/Popover/Popover.styles.ts
|
|
14436
|
-
import { css as
|
|
14437
|
-
var PopoverBtn =
|
|
14538
|
+
import { css as css60 } from "@emotion/react";
|
|
14539
|
+
var PopoverBtn = css60`
|
|
14438
14540
|
border: none;
|
|
14439
14541
|
background: none;
|
|
14440
14542
|
padding: 0;
|
|
14441
14543
|
`;
|
|
14442
|
-
var Popover =
|
|
14544
|
+
var Popover = css60`
|
|
14443
14545
|
border-left: var(--spacing-xs) solid var(--brand-secondary-3);
|
|
14444
14546
|
border-radius: var(--rounded-base);
|
|
14445
14547
|
box-shadow: var(--shadow-base);
|
|
@@ -14452,7 +14554,7 @@ var Popover = css59`
|
|
|
14452
14554
|
`;
|
|
14453
14555
|
|
|
14454
14556
|
// src/components/Popover/Popover.tsx
|
|
14455
|
-
import { Fragment as Fragment13, jsx as
|
|
14557
|
+
import { Fragment as Fragment13, jsx as jsx84, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
14456
14558
|
var Popover2 = ({
|
|
14457
14559
|
iconColor = "green",
|
|
14458
14560
|
buttonText,
|
|
@@ -14461,36 +14563,36 @@ var Popover2 = ({
|
|
|
14461
14563
|
children
|
|
14462
14564
|
}) => {
|
|
14463
14565
|
const popover = usePopoverState({ placement });
|
|
14464
|
-
return /* @__PURE__ */
|
|
14465
|
-
/* @__PURE__ */
|
|
14466
|
-
/* @__PURE__ */
|
|
14467
|
-
/* @__PURE__ */
|
|
14566
|
+
return /* @__PURE__ */ jsxs56(Fragment13, { children: [
|
|
14567
|
+
/* @__PURE__ */ jsxs56(PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, children: [
|
|
14568
|
+
/* @__PURE__ */ jsx84(Icon, { icon: "info", iconColor, size: "1rem" }),
|
|
14569
|
+
/* @__PURE__ */ jsx84("span", { hidden: true, children: buttonText })
|
|
14468
14570
|
] }),
|
|
14469
|
-
/* @__PURE__ */
|
|
14571
|
+
/* @__PURE__ */ jsx84(Portal2, { children: /* @__PURE__ */ jsx84(ReakitPopover, { css: Popover, ...popover, "aria-label": ariaLabel, children }) })
|
|
14470
14572
|
] });
|
|
14471
14573
|
};
|
|
14472
14574
|
|
|
14473
14575
|
// src/components/ProgressList/ProgressList.tsx
|
|
14474
|
-
import { css as
|
|
14576
|
+
import { css as css62 } from "@emotion/react";
|
|
14475
14577
|
import { useMemo as useMemo2 } from "react";
|
|
14476
14578
|
import { CgCheckO, CgRadioCheck, CgRecord } from "react-icons/cg";
|
|
14477
14579
|
|
|
14478
14580
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
14479
|
-
import { css as
|
|
14480
|
-
var progressListStyles =
|
|
14581
|
+
import { css as css61 } from "@emotion/react";
|
|
14582
|
+
var progressListStyles = css61`
|
|
14481
14583
|
display: flex;
|
|
14482
14584
|
flex-direction: column;
|
|
14483
14585
|
gap: var(--spacing-sm);
|
|
14484
14586
|
list-style-type: none;
|
|
14485
14587
|
`;
|
|
14486
|
-
var progressListItemStyles =
|
|
14588
|
+
var progressListItemStyles = css61`
|
|
14487
14589
|
display: flex;
|
|
14488
14590
|
gap: var(--spacing-base);
|
|
14489
14591
|
align-items: center;
|
|
14490
14592
|
`;
|
|
14491
14593
|
|
|
14492
14594
|
// src/components/ProgressList/ProgressList.tsx
|
|
14493
|
-
import { jsx as
|
|
14595
|
+
import { jsx as jsx85, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
|
|
14494
14596
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
14495
14597
|
const itemsWithStatus = useMemo2(() => {
|
|
14496
14598
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -14504,8 +14606,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
14504
14606
|
return { ...item, status };
|
|
14505
14607
|
});
|
|
14506
14608
|
}, [items, inProgressId]);
|
|
14507
|
-
return /* @__PURE__ */
|
|
14508
|
-
return /* @__PURE__ */
|
|
14609
|
+
return /* @__PURE__ */ jsx85("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
14610
|
+
return /* @__PURE__ */ jsx85(
|
|
14509
14611
|
ProgressListItem,
|
|
14510
14612
|
{
|
|
14511
14613
|
status,
|
|
@@ -14538,12 +14640,12 @@ var ProgressListItem = ({
|
|
|
14538
14640
|
}, [status, error]);
|
|
14539
14641
|
const statusStyles = useMemo2(() => {
|
|
14540
14642
|
if (error) {
|
|
14541
|
-
return errorLevel === "caution" ?
|
|
14643
|
+
return errorLevel === "caution" ? css62`
|
|
14542
14644
|
color: rgb(161, 98, 7);
|
|
14543
14645
|
& svg {
|
|
14544
14646
|
color: rgb(250, 204, 21);
|
|
14545
14647
|
}
|
|
14546
|
-
` :
|
|
14648
|
+
` : css62`
|
|
14547
14649
|
color: rgb(185, 28, 28);
|
|
14548
14650
|
& svg {
|
|
14549
14651
|
color: var(--brand-primary-2);
|
|
@@ -14551,40 +14653,202 @@ var ProgressListItem = ({
|
|
|
14551
14653
|
`;
|
|
14552
14654
|
}
|
|
14553
14655
|
const colorPerStatus = {
|
|
14554
|
-
completed:
|
|
14656
|
+
completed: css62`
|
|
14555
14657
|
opacity: 0.75;
|
|
14556
14658
|
`,
|
|
14557
|
-
inProgress:
|
|
14659
|
+
inProgress: css62`
|
|
14558
14660
|
-webkit-text-stroke-width: thin;
|
|
14559
14661
|
`,
|
|
14560
|
-
queued:
|
|
14662
|
+
queued: css62`
|
|
14561
14663
|
opacity: 0.5;
|
|
14562
14664
|
`
|
|
14563
14665
|
};
|
|
14564
14666
|
return colorPerStatus[status];
|
|
14565
14667
|
}, [status, error, errorLevel]);
|
|
14566
|
-
return /* @__PURE__ */
|
|
14567
|
-
/* @__PURE__ */
|
|
14568
|
-
/* @__PURE__ */
|
|
14668
|
+
return /* @__PURE__ */ jsxs57("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
14669
|
+
/* @__PURE__ */ jsx85(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx85("div", { children: /* @__PURE__ */ jsx85(Icon2, { size: 20 }) }) }),
|
|
14670
|
+
/* @__PURE__ */ jsxs57("div", { children: [
|
|
14569
14671
|
children,
|
|
14570
|
-
/* @__PURE__ */
|
|
14672
|
+
/* @__PURE__ */ jsx85("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
14571
14673
|
] })
|
|
14572
14674
|
] });
|
|
14573
14675
|
};
|
|
14574
14676
|
|
|
14677
|
+
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
14678
|
+
import { css as css64 } from "@emotion/react";
|
|
14679
|
+
import { useCallback as useCallback4, useMemo as useMemo3 } from "react";
|
|
14680
|
+
import { CgCheck as CgCheck3 } from "react-icons/cg";
|
|
14681
|
+
|
|
14682
|
+
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
14683
|
+
import { css as css63 } from "@emotion/react";
|
|
14684
|
+
var segmentedControlStyles = css63`
|
|
14685
|
+
--segmented-control-rounded-value: var(--rounded-base);
|
|
14686
|
+
--segmented-control-border-width: 1px;
|
|
14687
|
+
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
14688
|
+
--segmented-control-first-border-radius: var(--segmented-control-rounded-value) 0 0
|
|
14689
|
+
var(--segmented-control-rounded-value);
|
|
14690
|
+
--segmented-control-last-border-radius: 0 var(--segmented-control-rounded-value)
|
|
14691
|
+
var(--segmented-control-rounded-value) 0;
|
|
14692
|
+
|
|
14693
|
+
position: relative;
|
|
14694
|
+
display: flex;
|
|
14695
|
+
justify-content: flex-start;
|
|
14696
|
+
width: fit-content;
|
|
14697
|
+
background-color: var(--gray-300);
|
|
14698
|
+
padding: var(--segmented-control-border-width);
|
|
14699
|
+
gap: var(--segmented-control-border-width);
|
|
14700
|
+
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
14701
|
+
font-size: var(--fs-xs);
|
|
14702
|
+
`;
|
|
14703
|
+
var segmentedControlVerticalStyles = css63`
|
|
14704
|
+
flex-direction: column;
|
|
14705
|
+
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
14706
|
+
var(--segmented-control-rounded-value) 0 0;
|
|
14707
|
+
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
14708
|
+
var(--segmented-control-rounded-value);
|
|
14709
|
+
`;
|
|
14710
|
+
var segmentedControlItemStyles = css63`
|
|
14711
|
+
&:first-of-type label {
|
|
14712
|
+
border-radius: var(--segmented-control-first-border-radius);
|
|
14713
|
+
}
|
|
14714
|
+
&:last-of-type label {
|
|
14715
|
+
border-radius: var(--segmented-control-last-border-radius);
|
|
14716
|
+
}
|
|
14717
|
+
`;
|
|
14718
|
+
var segmentedControlInputStyles = css63`
|
|
14719
|
+
clip: rect(0, 0, 0, 0);
|
|
14720
|
+
position: absolute;
|
|
14721
|
+
width: 1px;
|
|
14722
|
+
height: 1px;
|
|
14723
|
+
overflow: hidden;
|
|
14724
|
+
`;
|
|
14725
|
+
var segmentedControlLabelStyles = css63`
|
|
14726
|
+
position: relative;
|
|
14727
|
+
display: flex;
|
|
14728
|
+
align-items: center;
|
|
14729
|
+
justify-content: center;
|
|
14730
|
+
height: 2rem;
|
|
14731
|
+
padding-inline: var(--spacing-base);
|
|
14732
|
+
background-color: white;
|
|
14733
|
+
transition-property: background-color, color, box-shadow;
|
|
14734
|
+
transition-duration: var(--duration-xfast);
|
|
14735
|
+
transition-timing-function: ease-in-out;
|
|
14736
|
+
z-index: 1;
|
|
14737
|
+
cursor: pointer;
|
|
14738
|
+
|
|
14739
|
+
&:has(:checked) {
|
|
14740
|
+
background-color: var(--segmented-control-selected-color);
|
|
14741
|
+
outline: var(--segmented-control-border-width) solid var(--segmented-control-selected-color);
|
|
14742
|
+
box-shadow: 0 0.43em 1.7em 0 rgba(0, 0, 0, 0.15);
|
|
14743
|
+
color: white;
|
|
14744
|
+
z-index: 0;
|
|
14745
|
+
}
|
|
14746
|
+
|
|
14747
|
+
&:has(:disabled) {
|
|
14748
|
+
background-color: var(--gray-200);
|
|
14749
|
+
cursor: default;
|
|
14750
|
+
}
|
|
14751
|
+
`;
|
|
14752
|
+
var segmentedControlLabelIconOnlyStyles = css63`
|
|
14753
|
+
padding-inline: 0.5em;
|
|
14754
|
+
`;
|
|
14755
|
+
var segmentedControlLabelCheckStyles = css63`
|
|
14756
|
+
opacity: 0.5;
|
|
14757
|
+
`;
|
|
14758
|
+
var segmentedControlLabelContentStyles = css63`
|
|
14759
|
+
display: flex;
|
|
14760
|
+
align-items: center;
|
|
14761
|
+
justify-content: center;
|
|
14762
|
+
gap: var(--spacing-sm);
|
|
14763
|
+
height: 100%;
|
|
14764
|
+
`;
|
|
14765
|
+
var segmentedControlLabelTextStyles = css63``;
|
|
14766
|
+
|
|
14767
|
+
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
14768
|
+
import { jsx as jsx86, jsxs as jsxs58 } from "@emotion/react/jsx-runtime";
|
|
14769
|
+
var SegmentedControl = ({
|
|
14770
|
+
name,
|
|
14771
|
+
options,
|
|
14772
|
+
value,
|
|
14773
|
+
onChange,
|
|
14774
|
+
noCheckmark = false,
|
|
14775
|
+
orientation = "horizontal",
|
|
14776
|
+
size = "md",
|
|
14777
|
+
...props
|
|
14778
|
+
}) => {
|
|
14779
|
+
const onOptionChange = useCallback4(
|
|
14780
|
+
(event) => {
|
|
14781
|
+
if (event.target.checked) {
|
|
14782
|
+
onChange == null ? void 0 : onChange(options[parseInt(event.target.value)].value);
|
|
14783
|
+
}
|
|
14784
|
+
},
|
|
14785
|
+
[options, onChange]
|
|
14786
|
+
);
|
|
14787
|
+
const sizeStyles = useMemo3(() => {
|
|
14788
|
+
const map = {
|
|
14789
|
+
sm: css64({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
14790
|
+
md: css64({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
14791
|
+
lg: css64({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
|
|
14792
|
+
};
|
|
14793
|
+
return map[size];
|
|
14794
|
+
}, [size]);
|
|
14795
|
+
const isIconOnly = useMemo3(() => {
|
|
14796
|
+
return options.every((option) => option.icon && !option.label);
|
|
14797
|
+
}, [options]);
|
|
14798
|
+
return /* @__PURE__ */ jsx86(
|
|
14799
|
+
"div",
|
|
14800
|
+
{
|
|
14801
|
+
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
14802
|
+
...props,
|
|
14803
|
+
children: options.map((option, index) => {
|
|
14804
|
+
var _a;
|
|
14805
|
+
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
14806
|
+
return /* @__PURE__ */ jsx86(Tooltip, { title: (_a = option.tooltip) != null ? _a : "", children: /* @__PURE__ */ jsx86("div", { css: segmentedControlItemStyles, children: /* @__PURE__ */ jsxs58(
|
|
14807
|
+
"label",
|
|
14808
|
+
{
|
|
14809
|
+
css: [
|
|
14810
|
+
segmentedControlLabelStyles,
|
|
14811
|
+
sizeStyles,
|
|
14812
|
+
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
14813
|
+
],
|
|
14814
|
+
children: [
|
|
14815
|
+
/* @__PURE__ */ jsx86(
|
|
14816
|
+
"input",
|
|
14817
|
+
{
|
|
14818
|
+
css: segmentedControlInputStyles,
|
|
14819
|
+
type: "radio",
|
|
14820
|
+
name,
|
|
14821
|
+
value: index,
|
|
14822
|
+
checked: option.value === value,
|
|
14823
|
+
onChange: onOptionChange
|
|
14824
|
+
}
|
|
14825
|
+
),
|
|
14826
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx86(CgCheck3, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
14827
|
+
/* @__PURE__ */ jsxs58("span", { css: segmentedControlLabelContentStyles, children: [
|
|
14828
|
+
!option.icon ? null : /* @__PURE__ */ jsx86(option.icon, { size: "1.5em" }),
|
|
14829
|
+
!text ? null : /* @__PURE__ */ jsx86("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
14830
|
+
] })
|
|
14831
|
+
]
|
|
14832
|
+
}
|
|
14833
|
+
) }) }, JSON.stringify(option.value));
|
|
14834
|
+
})
|
|
14835
|
+
}
|
|
14836
|
+
);
|
|
14837
|
+
};
|
|
14838
|
+
|
|
14575
14839
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
14576
|
-
import { css as
|
|
14840
|
+
import { css as css65, keyframes as keyframes4 } from "@emotion/react";
|
|
14577
14841
|
var lightFadingOut = keyframes4`
|
|
14578
14842
|
from { opacity: 0.1; }
|
|
14579
14843
|
to { opacity: 0.025; }
|
|
14580
14844
|
`;
|
|
14581
|
-
var skeletonStyles =
|
|
14845
|
+
var skeletonStyles = css65`
|
|
14582
14846
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
14583
14847
|
background-color: var(--gray-900);
|
|
14584
14848
|
`;
|
|
14585
14849
|
|
|
14586
14850
|
// src/components/Skeleton/Skeleton.tsx
|
|
14587
|
-
import { jsx as
|
|
14851
|
+
import { jsx as jsx87 } from "@emotion/react/jsx-runtime";
|
|
14588
14852
|
var Skeleton = ({
|
|
14589
14853
|
width = "100%",
|
|
14590
14854
|
height = "1.25rem",
|
|
@@ -14592,7 +14856,7 @@ var Skeleton = ({
|
|
|
14592
14856
|
circle = false,
|
|
14593
14857
|
children,
|
|
14594
14858
|
...otherProps
|
|
14595
|
-
}) => /* @__PURE__ */
|
|
14859
|
+
}) => /* @__PURE__ */ jsx87(
|
|
14596
14860
|
"div",
|
|
14597
14861
|
{
|
|
14598
14862
|
css: [
|
|
@@ -14612,11 +14876,11 @@ var Skeleton = ({
|
|
|
14612
14876
|
);
|
|
14613
14877
|
|
|
14614
14878
|
// src/components/Switch/Switch.tsx
|
|
14615
|
-
import * as
|
|
14879
|
+
import * as React18 from "react";
|
|
14616
14880
|
|
|
14617
14881
|
// src/components/Switch/Switch.styles.ts
|
|
14618
|
-
import { css as
|
|
14619
|
-
var SwitchInputContainer =
|
|
14882
|
+
import { css as css66 } from "@emotion/react";
|
|
14883
|
+
var SwitchInputContainer = css66`
|
|
14620
14884
|
cursor: pointer;
|
|
14621
14885
|
display: inline-block;
|
|
14622
14886
|
position: relative;
|
|
@@ -14625,7 +14889,7 @@ var SwitchInputContainer = css63`
|
|
|
14625
14889
|
vertical-align: middle;
|
|
14626
14890
|
user-select: none;
|
|
14627
14891
|
`;
|
|
14628
|
-
var SwitchInput =
|
|
14892
|
+
var SwitchInput = css66`
|
|
14629
14893
|
appearance: none;
|
|
14630
14894
|
border-radius: var(--rounded-full);
|
|
14631
14895
|
background-color: var(--white);
|
|
@@ -14663,7 +14927,7 @@ var SwitchInput = css63`
|
|
|
14663
14927
|
cursor: not-allowed;
|
|
14664
14928
|
}
|
|
14665
14929
|
`;
|
|
14666
|
-
var SwitchInputDisabled =
|
|
14930
|
+
var SwitchInputDisabled = css66`
|
|
14667
14931
|
opacity: var(--opacity-50);
|
|
14668
14932
|
cursor: not-allowed;
|
|
14669
14933
|
|
|
@@ -14671,7 +14935,7 @@ var SwitchInputDisabled = css63`
|
|
|
14671
14935
|
cursor: not-allowed;
|
|
14672
14936
|
}
|
|
14673
14937
|
`;
|
|
14674
|
-
var SwitchInputLabel =
|
|
14938
|
+
var SwitchInputLabel = css66`
|
|
14675
14939
|
align-items: center;
|
|
14676
14940
|
color: var(--brand-secondary-1);
|
|
14677
14941
|
display: inline-flex;
|
|
@@ -14693,98 +14957,98 @@ var SwitchInputLabel = css63`
|
|
|
14693
14957
|
top: 0;
|
|
14694
14958
|
}
|
|
14695
14959
|
`;
|
|
14696
|
-
var SwitchText =
|
|
14960
|
+
var SwitchText = css66`
|
|
14697
14961
|
color: var(--gray-500);
|
|
14698
14962
|
font-size: var(--fs-sm);
|
|
14699
14963
|
padding-inline: var(--spacing-2xl) 0;
|
|
14700
14964
|
`;
|
|
14701
14965
|
|
|
14702
14966
|
// src/components/Switch/Switch.tsx
|
|
14703
|
-
import { Fragment as Fragment14, jsx as
|
|
14704
|
-
var Switch =
|
|
14967
|
+
import { Fragment as Fragment14, jsx as jsx88, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
|
|
14968
|
+
var Switch = React18.forwardRef(
|
|
14705
14969
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
14706
14970
|
let additionalText = infoText;
|
|
14707
14971
|
if (infoText && toggleText) {
|
|
14708
14972
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
14709
14973
|
}
|
|
14710
|
-
return /* @__PURE__ */
|
|
14711
|
-
/* @__PURE__ */
|
|
14712
|
-
/* @__PURE__ */
|
|
14713
|
-
/* @__PURE__ */
|
|
14974
|
+
return /* @__PURE__ */ jsxs59(Fragment14, { children: [
|
|
14975
|
+
/* @__PURE__ */ jsxs59("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
14976
|
+
/* @__PURE__ */ jsx88("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
14977
|
+
/* @__PURE__ */ jsx88("span", { css: SwitchInputLabel, children: label })
|
|
14714
14978
|
] }),
|
|
14715
|
-
additionalText ? /* @__PURE__ */
|
|
14979
|
+
additionalText ? /* @__PURE__ */ jsx88("p", { css: SwitchText, children: additionalText }) : null,
|
|
14716
14980
|
children
|
|
14717
14981
|
] });
|
|
14718
14982
|
}
|
|
14719
14983
|
);
|
|
14720
14984
|
|
|
14721
14985
|
// src/components/Table/Table.tsx
|
|
14722
|
-
import * as
|
|
14986
|
+
import * as React19 from "react";
|
|
14723
14987
|
|
|
14724
14988
|
// src/components/Table/Table.styles.ts
|
|
14725
|
-
import { css as
|
|
14726
|
-
var table =
|
|
14989
|
+
import { css as css67 } from "@emotion/react";
|
|
14990
|
+
var table = css67`
|
|
14727
14991
|
border-bottom: 1px solid var(--gray-400);
|
|
14728
14992
|
border-collapse: collapse;
|
|
14729
14993
|
min-width: 100%;
|
|
14730
14994
|
table-layout: auto;
|
|
14731
14995
|
`;
|
|
14732
|
-
var tableHead =
|
|
14996
|
+
var tableHead = css67`
|
|
14733
14997
|
background: var(--gray-100);
|
|
14734
14998
|
color: var(--brand-secondary-1);
|
|
14735
14999
|
text-align: left;
|
|
14736
15000
|
`;
|
|
14737
|
-
var tableRow =
|
|
15001
|
+
var tableRow = css67`
|
|
14738
15002
|
border-bottom: 1px solid var(--gray-200);
|
|
14739
15003
|
`;
|
|
14740
|
-
var tableCellHead =
|
|
15004
|
+
var tableCellHead = css67`
|
|
14741
15005
|
font-size: var(--fs-sm);
|
|
14742
15006
|
padding: var(--spacing-base) var(--spacing-md);
|
|
14743
15007
|
text-transform: uppercase;
|
|
14744
15008
|
font-weight: var(--fw-bold);
|
|
14745
15009
|
`;
|
|
14746
|
-
var tableCellData =
|
|
15010
|
+
var tableCellData = css67`
|
|
14747
15011
|
padding: var(--spacing-base) var(--spacing-md);
|
|
14748
15012
|
`;
|
|
14749
15013
|
|
|
14750
15014
|
// src/components/Table/Table.tsx
|
|
14751
|
-
import { jsx as
|
|
14752
|
-
var Table =
|
|
14753
|
-
return /* @__PURE__ */
|
|
15015
|
+
import { jsx as jsx89 } from "@emotion/react/jsx-runtime";
|
|
15016
|
+
var Table = React19.forwardRef(({ children, ...otherProps }, ref) => {
|
|
15017
|
+
return /* @__PURE__ */ jsx89("table", { ref, css: table, ...otherProps, children });
|
|
14754
15018
|
});
|
|
14755
|
-
var TableHead =
|
|
15019
|
+
var TableHead = React19.forwardRef(
|
|
14756
15020
|
({ children, ...otherProps }, ref) => {
|
|
14757
|
-
return /* @__PURE__ */
|
|
15021
|
+
return /* @__PURE__ */ jsx89("thead", { ref, css: tableHead, ...otherProps, children });
|
|
14758
15022
|
}
|
|
14759
15023
|
);
|
|
14760
|
-
var TableBody =
|
|
15024
|
+
var TableBody = React19.forwardRef(
|
|
14761
15025
|
({ children, ...otherProps }, ref) => {
|
|
14762
|
-
return /* @__PURE__ */
|
|
15026
|
+
return /* @__PURE__ */ jsx89("tbody", { ref, ...otherProps, children });
|
|
14763
15027
|
}
|
|
14764
15028
|
);
|
|
14765
|
-
var TableFoot =
|
|
15029
|
+
var TableFoot = React19.forwardRef(
|
|
14766
15030
|
({ children, ...otherProps }, ref) => {
|
|
14767
|
-
return /* @__PURE__ */
|
|
15031
|
+
return /* @__PURE__ */ jsx89("tfoot", { ref, ...otherProps, children });
|
|
14768
15032
|
}
|
|
14769
15033
|
);
|
|
14770
|
-
var TableRow =
|
|
15034
|
+
var TableRow = React19.forwardRef(
|
|
14771
15035
|
({ children, ...otherProps }, ref) => {
|
|
14772
|
-
return /* @__PURE__ */
|
|
15036
|
+
return /* @__PURE__ */ jsx89("tr", { ref, css: tableRow, ...otherProps, children });
|
|
14773
15037
|
}
|
|
14774
15038
|
);
|
|
14775
|
-
var TableCellHead =
|
|
15039
|
+
var TableCellHead = React19.forwardRef(
|
|
14776
15040
|
({ children, ...otherProps }, ref) => {
|
|
14777
|
-
return /* @__PURE__ */
|
|
15041
|
+
return /* @__PURE__ */ jsx89("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
14778
15042
|
}
|
|
14779
15043
|
);
|
|
14780
|
-
var TableCellData =
|
|
15044
|
+
var TableCellData = React19.forwardRef(
|
|
14781
15045
|
({ children, ...otherProps }, ref) => {
|
|
14782
|
-
return /* @__PURE__ */
|
|
15046
|
+
return /* @__PURE__ */ jsx89("td", { ref, css: tableCellData, ...otherProps, children });
|
|
14783
15047
|
}
|
|
14784
15048
|
);
|
|
14785
15049
|
|
|
14786
15050
|
// src/components/Tabs/Tabs.tsx
|
|
14787
|
-
import { createContext as createContext6, useContext as useContext7, useEffect as useEffect9, useMemo as
|
|
15051
|
+
import { createContext as createContext6, useContext as useContext7, useEffect as useEffect9, useMemo as useMemo4 } from "react";
|
|
14788
15052
|
import {
|
|
14789
15053
|
Tab as ReakitTab,
|
|
14790
15054
|
TabList as ReakitTabList,
|
|
@@ -14793,8 +15057,8 @@ import {
|
|
|
14793
15057
|
} from "reakit/Tab";
|
|
14794
15058
|
|
|
14795
15059
|
// src/components/Tabs/Tabs.styles.ts
|
|
14796
|
-
import { css as
|
|
14797
|
-
var tabButtonStyles =
|
|
15060
|
+
import { css as css68 } from "@emotion/react";
|
|
15061
|
+
var tabButtonStyles = css68`
|
|
14798
15062
|
align-items: center;
|
|
14799
15063
|
border: 0;
|
|
14800
15064
|
height: 2.5rem;
|
|
@@ -14811,14 +15075,14 @@ var tabButtonStyles = css65`
|
|
|
14811
15075
|
-webkit-text-stroke-width: thin;
|
|
14812
15076
|
}
|
|
14813
15077
|
`;
|
|
14814
|
-
var tabButtonGroupStyles =
|
|
15078
|
+
var tabButtonGroupStyles = css68`
|
|
14815
15079
|
display: flex;
|
|
14816
15080
|
gap: var(--spacing-base);
|
|
14817
15081
|
border-bottom: 1px solid var(--gray-300);
|
|
14818
15082
|
`;
|
|
14819
15083
|
|
|
14820
15084
|
// src/components/Tabs/Tabs.tsx
|
|
14821
|
-
import { jsx as
|
|
15085
|
+
import { jsx as jsx90 } from "@emotion/react/jsx-runtime";
|
|
14822
15086
|
var CurrentTabContext = createContext6(null);
|
|
14823
15087
|
var useCurrentTab = () => {
|
|
14824
15088
|
const context = useContext7(CurrentTabContext);
|
|
@@ -14828,7 +15092,7 @@ var useCurrentTab = () => {
|
|
|
14828
15092
|
return context;
|
|
14829
15093
|
};
|
|
14830
15094
|
var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...props }) => {
|
|
14831
|
-
const selected =
|
|
15095
|
+
const selected = useMemo4(() => {
|
|
14832
15096
|
if (selectedId)
|
|
14833
15097
|
return selectedId;
|
|
14834
15098
|
return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
|
|
@@ -14847,24 +15111,24 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
14847
15111
|
tab.setSelectedId(selected);
|
|
14848
15112
|
}
|
|
14849
15113
|
}, [selected]);
|
|
14850
|
-
return /* @__PURE__ */
|
|
15114
|
+
return /* @__PURE__ */ jsx90(CurrentTabContext.Provider, { value: tab, children });
|
|
14851
15115
|
};
|
|
14852
15116
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
14853
15117
|
const currentTab = useCurrentTab();
|
|
14854
|
-
return /* @__PURE__ */
|
|
15118
|
+
return /* @__PURE__ */ jsx90(ReakitTabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
14855
15119
|
};
|
|
14856
15120
|
var TabButton = ({ children, id, ...props }) => {
|
|
14857
15121
|
const currentTab = useCurrentTab();
|
|
14858
|
-
return /* @__PURE__ */
|
|
15122
|
+
return /* @__PURE__ */ jsx90(ReakitTab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
14859
15123
|
};
|
|
14860
15124
|
var TabContent = ({ children, ...props }) => {
|
|
14861
15125
|
const currentTab = useCurrentTab();
|
|
14862
|
-
return /* @__PURE__ */
|
|
15126
|
+
return /* @__PURE__ */ jsx90(ReakitTabPanel, { ...props, ...currentTab, children });
|
|
14863
15127
|
};
|
|
14864
15128
|
|
|
14865
15129
|
// src/components/Validation/StatusBullet.styles.ts
|
|
14866
|
-
import { css as
|
|
14867
|
-
var StatusBulletContainer =
|
|
15130
|
+
import { css as css69 } from "@emotion/react";
|
|
15131
|
+
var StatusBulletContainer = css69`
|
|
14868
15132
|
align-items: center;
|
|
14869
15133
|
align-self: center;
|
|
14870
15134
|
color: var(--gray-500);
|
|
@@ -14881,51 +15145,51 @@ var StatusBulletContainer = css66`
|
|
|
14881
15145
|
display: block;
|
|
14882
15146
|
}
|
|
14883
15147
|
`;
|
|
14884
|
-
var StatusBulletBase =
|
|
15148
|
+
var StatusBulletBase = css69`
|
|
14885
15149
|
font-size: var(--fs-sm);
|
|
14886
15150
|
&:before {
|
|
14887
15151
|
width: var(--fs-xs);
|
|
14888
15152
|
height: var(--fs-xs);
|
|
14889
15153
|
}
|
|
14890
15154
|
`;
|
|
14891
|
-
var StatusBulletSmall =
|
|
15155
|
+
var StatusBulletSmall = css69`
|
|
14892
15156
|
font-size: var(--fs-xs);
|
|
14893
15157
|
&:before {
|
|
14894
15158
|
width: var(--fs-xxs);
|
|
14895
15159
|
height: var(--fs-xxs);
|
|
14896
15160
|
}
|
|
14897
15161
|
`;
|
|
14898
|
-
var StatusDraft =
|
|
15162
|
+
var StatusDraft = css69`
|
|
14899
15163
|
&:before {
|
|
14900
15164
|
background: var(--white);
|
|
14901
15165
|
box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
|
|
14902
15166
|
}
|
|
14903
15167
|
`;
|
|
14904
|
-
var StatusModified =
|
|
15168
|
+
var StatusModified = css69`
|
|
14905
15169
|
&:before {
|
|
14906
15170
|
background: linear-gradient(to right, var(--white) 50%, var(--brand-primary-1) 50% 100%);
|
|
14907
15171
|
box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
|
|
14908
15172
|
}
|
|
14909
15173
|
`;
|
|
14910
|
-
var StatusError =
|
|
15174
|
+
var StatusError = css69`
|
|
14911
15175
|
color: var(--error);
|
|
14912
15176
|
&:before {
|
|
14913
15177
|
background: linear-gradient(120deg, var(--error) 40%, var(--white) 50%, var(--error) 60%);
|
|
14914
15178
|
}
|
|
14915
15179
|
`;
|
|
14916
|
-
var StatusPublished =
|
|
15180
|
+
var StatusPublished = css69`
|
|
14917
15181
|
&:before {
|
|
14918
15182
|
background: var(--brand-secondary-3);
|
|
14919
15183
|
}
|
|
14920
15184
|
`;
|
|
14921
|
-
var StatusOrphan =
|
|
15185
|
+
var StatusOrphan = css69`
|
|
14922
15186
|
&:before {
|
|
14923
15187
|
background: var(--brand-secondary-5);
|
|
14924
15188
|
}
|
|
14925
15189
|
`;
|
|
14926
15190
|
|
|
14927
15191
|
// src/components/Validation/StatusBullet.tsx
|
|
14928
|
-
import { jsx as
|
|
15192
|
+
import { jsx as jsx91 } from "@emotion/react/jsx-runtime";
|
|
14929
15193
|
var StatusBullet = ({
|
|
14930
15194
|
status,
|
|
14931
15195
|
hideText = false,
|
|
@@ -14942,7 +15206,7 @@ var StatusBullet = ({
|
|
|
14942
15206
|
Draft: StatusDraft
|
|
14943
15207
|
};
|
|
14944
15208
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
14945
|
-
return /* @__PURE__ */
|
|
15209
|
+
return /* @__PURE__ */ jsx91(
|
|
14946
15210
|
"span",
|
|
14947
15211
|
{
|
|
14948
15212
|
role: "status",
|
|
@@ -14958,6 +15222,7 @@ export {
|
|
|
14958
15222
|
AddListButton,
|
|
14959
15223
|
AnimationFile,
|
|
14960
15224
|
Badge,
|
|
15225
|
+
Banner,
|
|
14961
15226
|
Button,
|
|
14962
15227
|
ButtonWithMenu,
|
|
14963
15228
|
Callout,
|
|
@@ -15041,6 +15306,7 @@ export {
|
|
|
15041
15306
|
ScrollableList,
|
|
15042
15307
|
ScrollableListInputItem,
|
|
15043
15308
|
ScrollableListItem,
|
|
15309
|
+
SegmentedControl,
|
|
15044
15310
|
ShortcutContext,
|
|
15045
15311
|
ShortcutRevealer,
|
|
15046
15312
|
Skeleton,
|
|
@@ -15065,6 +15331,7 @@ export {
|
|
|
15065
15331
|
UniformLogo,
|
|
15066
15332
|
VerticalRhythm,
|
|
15067
15333
|
WarningMessage,
|
|
15334
|
+
borderTopIcon,
|
|
15068
15335
|
breakpoints,
|
|
15069
15336
|
button,
|
|
15070
15337
|
buttonGhost,
|
|
@@ -15075,6 +15342,9 @@ export {
|
|
|
15075
15342
|
buttonSecondaryInvert,
|
|
15076
15343
|
buttonTertiary,
|
|
15077
15344
|
buttonUnimportant,
|
|
15345
|
+
canvasAlertIcon,
|
|
15346
|
+
cardIcon,
|
|
15347
|
+
customIcons,
|
|
15078
15348
|
extractParameterProps,
|
|
15079
15349
|
fadeIn,
|
|
15080
15350
|
fadeInBottom,
|
|
@@ -15082,7 +15352,10 @@ export {
|
|
|
15082
15352
|
fadeInRtl,
|
|
15083
15353
|
fadeInTop,
|
|
15084
15354
|
fadeOutBottom,
|
|
15355
|
+
fullWidthScreenIcon,
|
|
15085
15356
|
growSubtle,
|
|
15357
|
+
imageTextIcon,
|
|
15358
|
+
infoFilledIcon,
|
|
15086
15359
|
input,
|
|
15087
15360
|
inputError,
|
|
15088
15361
|
inputSelect,
|
|
@@ -15091,11 +15364,15 @@ export {
|
|
|
15091
15364
|
loader_default as loaderAnimationData,
|
|
15092
15365
|
macifyShortcut,
|
|
15093
15366
|
mq,
|
|
15367
|
+
numberInput,
|
|
15368
|
+
rectangleRoundedIcon,
|
|
15094
15369
|
ripple,
|
|
15095
15370
|
scrollbarStyles,
|
|
15096
15371
|
skeletonLoading,
|
|
15372
|
+
slideInTtb,
|
|
15097
15373
|
spinner_default as spinnerAnimationData,
|
|
15098
15374
|
supports,
|
|
15375
|
+
textInput,
|
|
15099
15376
|
useBreakpoint,
|
|
15100
15377
|
useCloseCurrentDrawer,
|
|
15101
15378
|
useCurrentDrawerRenderer,
|
|
@@ -15105,5 +15382,6 @@ export {
|
|
|
15105
15382
|
useMenuContext,
|
|
15106
15383
|
useOutsideClick,
|
|
15107
15384
|
useParameterShell,
|
|
15108
|
-
useShortcut
|
|
15385
|
+
useShortcut,
|
|
15386
|
+
warningIcon
|
|
15109
15387
|
};
|