@uniformdev/design-system 18.28.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 +1031 -743
- package/dist/index.d.ts +85 -2
- package/dist/index.js +965 -663
- package/package.json +4 -4
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,18 +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 =
|
|
11306
|
-
position: ${position};
|
|
11411
|
+
var drawerRendererStyles = css29`
|
|
11307
11412
|
inset: 0;
|
|
11308
11413
|
overflow: hidden;
|
|
11309
11414
|
z-index: 40;
|
|
11310
11415
|
`;
|
|
11311
|
-
var drawerInnerStyles =
|
|
11416
|
+
var drawerInnerStyles = css29`
|
|
11312
11417
|
height: 100%;
|
|
11313
11418
|
padding: 0 var(--spacing-base) var(--spacing-base);
|
|
11314
11419
|
overflow: auto;
|
|
@@ -11329,7 +11434,7 @@ var slideDrawerIn = keyframes2`
|
|
|
11329
11434
|
transform: translate(0);
|
|
11330
11435
|
}
|
|
11331
11436
|
`;
|
|
11332
|
-
var drawerWrapperStyles =
|
|
11437
|
+
var drawerWrapperStyles = css29`
|
|
11333
11438
|
position: absolute;
|
|
11334
11439
|
inset-block: 0;
|
|
11335
11440
|
right: 0;
|
|
@@ -11340,7 +11445,7 @@ var drawerWrapperStyles = css27`
|
|
|
11340
11445
|
transition: width var(--duration-fast) ease-out;
|
|
11341
11446
|
box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
|
|
11342
11447
|
`;
|
|
11343
|
-
var drawerWrapperOverlayStyles =
|
|
11448
|
+
var drawerWrapperOverlayStyles = css29`
|
|
11344
11449
|
position: absolute;
|
|
11345
11450
|
inset: 0;
|
|
11346
11451
|
background: rgba(31, 43, 52, 0.4);
|
|
@@ -11349,7 +11454,7 @@ var drawerWrapperOverlayStyles = css27`
|
|
|
11349
11454
|
|
|
11350
11455
|
// src/components/Drawer/DrawerProvider.tsx
|
|
11351
11456
|
import { createContext as createContext3, useCallback, useContext as useContext4, useState as useState4 } from "react";
|
|
11352
|
-
import { jsx as
|
|
11457
|
+
import { jsx as jsx31 } from "@emotion/react/jsx-runtime";
|
|
11353
11458
|
var DrawerContext = createContext3({
|
|
11354
11459
|
drawersRegistry: [],
|
|
11355
11460
|
registerDrawer: () => {
|
|
@@ -11398,7 +11503,7 @@ var DrawerProvider = ({ children }) => {
|
|
|
11398
11503
|
},
|
|
11399
11504
|
[setDrawersRegistry]
|
|
11400
11505
|
);
|
|
11401
|
-
return /* @__PURE__ */
|
|
11506
|
+
return /* @__PURE__ */ jsx31(DrawerContext.Provider, { value: { drawersRegistry, registerDrawer, unregisterDrawer }, children });
|
|
11402
11507
|
};
|
|
11403
11508
|
var useDrawer = () => {
|
|
11404
11509
|
return useContext4(DrawerContext);
|
|
@@ -11419,7 +11524,7 @@ function isEqualDrawerInstance(a, b) {
|
|
|
11419
11524
|
|
|
11420
11525
|
// src/components/Drawer/DrawerRenderer.tsx
|
|
11421
11526
|
import { createContext as createContext4, useContext as useContext5 } from "react";
|
|
11422
|
-
import { Fragment as Fragment4, jsx as
|
|
11527
|
+
import { Fragment as Fragment4, jsx as jsx32, jsxs as jsxs18 } from "@emotion/react/jsx-runtime";
|
|
11423
11528
|
var maxLayeringInPx = 64;
|
|
11424
11529
|
var idealDistanceBetweenLayersInPx = 16;
|
|
11425
11530
|
var CurrentDrawerRendererContext = createContext4({});
|
|
@@ -11439,19 +11544,30 @@ var DrawerRenderer = ({
|
|
|
11439
11544
|
if (drawersToRender.length === 0) {
|
|
11440
11545
|
return null;
|
|
11441
11546
|
}
|
|
11442
|
-
return /* @__PURE__ */
|
|
11443
|
-
|
|
11547
|
+
return /* @__PURE__ */ jsx32(CurrentDrawerRendererContext.Provider, { value: { stackId }, children: /* @__PURE__ */ jsx32(
|
|
11548
|
+
"div",
|
|
11444
11549
|
{
|
|
11445
|
-
|
|
11446
|
-
|
|
11447
|
-
|
|
11448
|
-
|
|
11449
|
-
|
|
11450
|
-
|
|
11451
|
-
children: component
|
|
11452
|
-
|
|
11453
|
-
|
|
11454
|
-
|
|
11550
|
+
css: [
|
|
11551
|
+
drawerRendererStyles,
|
|
11552
|
+
{ position },
|
|
11553
|
+
position === "sticky" ? { height: "100%", marginTop: "-100%" } : void 0
|
|
11554
|
+
],
|
|
11555
|
+
...otherProps,
|
|
11556
|
+
children: drawersToRender.map(({ component, id, stackId: stackId2, onRequestClose }, index) => /* @__PURE__ */ jsx32(
|
|
11557
|
+
DrawerWrapper,
|
|
11558
|
+
{
|
|
11559
|
+
index,
|
|
11560
|
+
totalDrawers: drawersToRender.length,
|
|
11561
|
+
width,
|
|
11562
|
+
minWidth,
|
|
11563
|
+
maxWidth,
|
|
11564
|
+
onOverlayClick: onRequestClose,
|
|
11565
|
+
children: component
|
|
11566
|
+
},
|
|
11567
|
+
`${stackId2}-${id}`
|
|
11568
|
+
))
|
|
11569
|
+
}
|
|
11570
|
+
) });
|
|
11455
11571
|
};
|
|
11456
11572
|
var DrawerWrapper = ({
|
|
11457
11573
|
index,
|
|
@@ -11468,22 +11584,22 @@ var DrawerWrapper = ({
|
|
|
11468
11584
|
offsetInPx = Math.round(maxLayeringInPx * relativeLevel);
|
|
11469
11585
|
}
|
|
11470
11586
|
const calculatedWidth = `calc(${width} - ${offsetInPx}px)`;
|
|
11471
|
-
return /* @__PURE__ */
|
|
11472
|
-
/* @__PURE__ */
|
|
11473
|
-
/* @__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 })
|
|
11474
11590
|
] });
|
|
11475
11591
|
};
|
|
11476
11592
|
|
|
11477
11593
|
// src/components/Drawer/Drawer.tsx
|
|
11478
|
-
import { jsx as
|
|
11594
|
+
import { jsx as jsx33, jsxs as jsxs19 } from "@emotion/react/jsx-runtime";
|
|
11479
11595
|
var defaultSackId = "_default";
|
|
11480
11596
|
var Drawer = React11.forwardRef(
|
|
11481
11597
|
({ width, minWidth, maxWidth, position, ...drawerProps }, ref) => {
|
|
11482
11598
|
const drawerRendererProps = { width, minWidth, maxWidth, position };
|
|
11483
11599
|
const { stackId: inheritedStackId } = useCurrentDrawerRenderer();
|
|
11484
|
-
return inheritedStackId ? /* @__PURE__ */
|
|
11485
|
-
/* @__PURE__ */
|
|
11486
|
-
/* @__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 })
|
|
11487
11603
|
] });
|
|
11488
11604
|
}
|
|
11489
11605
|
);
|
|
@@ -11501,7 +11617,7 @@ var DrawerInner = ({
|
|
|
11501
11617
|
const closeButtonRef = useRef2(null);
|
|
11502
11618
|
const component = useMemo(() => {
|
|
11503
11619
|
const headerId = `dialog-header-${stackId}-${id}`;
|
|
11504
|
-
return /* @__PURE__ */
|
|
11620
|
+
return /* @__PURE__ */ jsxs19(
|
|
11505
11621
|
"div",
|
|
11506
11622
|
{
|
|
11507
11623
|
ref,
|
|
@@ -11512,7 +11628,7 @@ var DrawerInner = ({
|
|
|
11512
11628
|
css: drawerStyles(bgColor),
|
|
11513
11629
|
"data-test-id": "side-dialog",
|
|
11514
11630
|
children: [
|
|
11515
|
-
/* @__PURE__ */
|
|
11631
|
+
/* @__PURE__ */ jsx33(
|
|
11516
11632
|
Button,
|
|
11517
11633
|
{
|
|
11518
11634
|
ref: closeButtonRef,
|
|
@@ -11521,11 +11637,11 @@ var DrawerInner = ({
|
|
|
11521
11637
|
css: drawerCloseButtonStyles,
|
|
11522
11638
|
title: "Close dialog",
|
|
11523
11639
|
buttonType: "ghost",
|
|
11524
|
-
children: /* @__PURE__ */
|
|
11640
|
+
children: /* @__PURE__ */ jsx33(Icon, { icon: CgChevronRight, iconColor: "gray", size: "1.5rem" })
|
|
11525
11641
|
}
|
|
11526
11642
|
),
|
|
11527
|
-
header ? /* @__PURE__ */
|
|
11528
|
-
/* @__PURE__ */
|
|
11643
|
+
header ? /* @__PURE__ */ jsx33("div", { id: headerId, css: drawerHeaderStyles, children: header }) : null,
|
|
11644
|
+
/* @__PURE__ */ jsx33("div", { css: drawerInnerStyles, children })
|
|
11529
11645
|
]
|
|
11530
11646
|
}
|
|
11531
11647
|
);
|
|
@@ -11554,8 +11670,8 @@ var DrawerInner = ({
|
|
|
11554
11670
|
};
|
|
11555
11671
|
|
|
11556
11672
|
// src/components/Input/styles/CaptionText.styles.ts
|
|
11557
|
-
import { css as
|
|
11558
|
-
var CaptionText = (dynamicSize) =>
|
|
11673
|
+
import { css as css30 } from "@emotion/react";
|
|
11674
|
+
var CaptionText = (dynamicSize) => css30`
|
|
11559
11675
|
color: var(--gray-500);
|
|
11560
11676
|
display: block;
|
|
11561
11677
|
font-size: ${dynamicSize ? "clamp(var(--fs-xs), 87.5%,var(--fs-sm))" : "var(--fs-sm)"};
|
|
@@ -11564,29 +11680,29 @@ var CaptionText = (dynamicSize) => css28`
|
|
|
11564
11680
|
`;
|
|
11565
11681
|
|
|
11566
11682
|
// src/components/Input/Caption.tsx
|
|
11567
|
-
import { jsx as
|
|
11683
|
+
import { jsx as jsx34 } from "@emotion/react/jsx-runtime";
|
|
11568
11684
|
var Caption = ({ children, testId, dynamicSize = false, ...props }) => {
|
|
11569
|
-
return /* @__PURE__ */
|
|
11685
|
+
return /* @__PURE__ */ jsx34("small", { css: CaptionText(dynamicSize), "data-test-id": testId, ...props, children });
|
|
11570
11686
|
};
|
|
11571
11687
|
|
|
11572
11688
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
11573
11689
|
import { forwardRef as forwardRef4 } from "react";
|
|
11574
11690
|
|
|
11575
11691
|
// src/components/Input/styles/CheckboxWithInfo.styles.ts
|
|
11576
|
-
import { css as
|
|
11577
|
-
var CheckboxWithInfoContainer =
|
|
11692
|
+
import { css as css31 } from "@emotion/react";
|
|
11693
|
+
var CheckboxWithInfoContainer = css31`
|
|
11578
11694
|
align-items: center;
|
|
11579
11695
|
display: flex;
|
|
11580
11696
|
gap: var(--spacing-sm);
|
|
11581
11697
|
`;
|
|
11582
|
-
var CheckboxWithInfoLabel =
|
|
11698
|
+
var CheckboxWithInfoLabel = css31`
|
|
11583
11699
|
align-items: center;
|
|
11584
11700
|
color: var(--gray-500);
|
|
11585
11701
|
display: flex;
|
|
11586
11702
|
font-size: var(--fs-xs);
|
|
11587
11703
|
gap: var(--spacing-sm);
|
|
11588
11704
|
`;
|
|
11589
|
-
var CheckboxWithInfoInput =
|
|
11705
|
+
var CheckboxWithInfoInput = css31`
|
|
11590
11706
|
appearance: none;
|
|
11591
11707
|
border: 1px solid var(--gray-300);
|
|
11592
11708
|
background: var(--white) no-repeat bottom center;
|
|
@@ -11619,7 +11735,7 @@ var CheckboxWithInfoInput = css29`
|
|
|
11619
11735
|
border-color: var(--gray-200);
|
|
11620
11736
|
}
|
|
11621
11737
|
`;
|
|
11622
|
-
var InfoDialogContainer =
|
|
11738
|
+
var InfoDialogContainer = css31`
|
|
11623
11739
|
position: relative;
|
|
11624
11740
|
|
|
11625
11741
|
&:hover {
|
|
@@ -11628,7 +11744,7 @@ var InfoDialogContainer = css29`
|
|
|
11628
11744
|
}
|
|
11629
11745
|
}
|
|
11630
11746
|
`;
|
|
11631
|
-
var InfoDialogMessage =
|
|
11747
|
+
var InfoDialogMessage = css31`
|
|
11632
11748
|
background: var(--white);
|
|
11633
11749
|
box-shadow: var(--shadow-base);
|
|
11634
11750
|
border-radius: var(--rounded-md);
|
|
@@ -11645,21 +11761,21 @@ var InfoDialogMessage = css29`
|
|
|
11645
11761
|
`;
|
|
11646
11762
|
|
|
11647
11763
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
11648
|
-
import { jsx as
|
|
11764
|
+
import { jsx as jsx35, jsxs as jsxs20 } from "@emotion/react/jsx-runtime";
|
|
11649
11765
|
var InfoDialog = ({ message }) => {
|
|
11650
|
-
return /* @__PURE__ */
|
|
11651
|
-
/* @__PURE__ */
|
|
11652
|
-
/* @__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 })
|
|
11653
11769
|
] });
|
|
11654
11770
|
};
|
|
11655
11771
|
var CheckboxWithInfo = forwardRef4(
|
|
11656
11772
|
({ label, name, info, ...props }, ref) => {
|
|
11657
|
-
return /* @__PURE__ */
|
|
11658
|
-
/* @__PURE__ */
|
|
11659
|
-
/* @__PURE__ */
|
|
11660
|
-
/* @__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 })
|
|
11661
11777
|
] }),
|
|
11662
|
-
info ? /* @__PURE__ */
|
|
11778
|
+
info ? /* @__PURE__ */ jsx35(InfoDialog, { message: info }) : null
|
|
11663
11779
|
] });
|
|
11664
11780
|
}
|
|
11665
11781
|
);
|
|
@@ -11668,8 +11784,8 @@ var CheckboxWithInfo = forwardRef4(
|
|
|
11668
11784
|
import { MdWarning } from "react-icons/md";
|
|
11669
11785
|
|
|
11670
11786
|
// src/components/Input/styles/ErrorMessage.styles.ts
|
|
11671
|
-
import { css as
|
|
11672
|
-
var ErrorText =
|
|
11787
|
+
import { css as css32 } from "@emotion/react";
|
|
11788
|
+
var ErrorText = css32`
|
|
11673
11789
|
align-items: center;
|
|
11674
11790
|
color: var(--brand-secondary-5);
|
|
11675
11791
|
display: flex;
|
|
@@ -11677,10 +11793,10 @@ var ErrorText = css30`
|
|
|
11677
11793
|
`;
|
|
11678
11794
|
|
|
11679
11795
|
// src/components/Input/ErrorMessage.tsx
|
|
11680
|
-
import { jsx as
|
|
11796
|
+
import { jsx as jsx36, jsxs as jsxs21 } from "@emotion/react/jsx-runtime";
|
|
11681
11797
|
var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
11682
|
-
return message ? /* @__PURE__ */
|
|
11683
|
-
/* @__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" }),
|
|
11684
11800
|
message
|
|
11685
11801
|
] }) : null;
|
|
11686
11802
|
};
|
|
@@ -11689,9 +11805,9 @@ var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
|
11689
11805
|
import * as React12 from "react";
|
|
11690
11806
|
|
|
11691
11807
|
// src/components/Input/styles/Fieldset.styles.ts
|
|
11692
|
-
import { css as
|
|
11808
|
+
import { css as css33 } from "@emotion/react";
|
|
11693
11809
|
function fieldsetContainer(invert) {
|
|
11694
|
-
const base =
|
|
11810
|
+
const base = css33`
|
|
11695
11811
|
border-radius: var(--rounded-base);
|
|
11696
11812
|
border: 1px solid var(--gray-300);
|
|
11697
11813
|
|
|
@@ -11703,18 +11819,18 @@ function fieldsetContainer(invert) {
|
|
|
11703
11819
|
}
|
|
11704
11820
|
`;
|
|
11705
11821
|
return invert ? [
|
|
11706
|
-
|
|
11822
|
+
css33`
|
|
11707
11823
|
background: white;
|
|
11708
11824
|
`,
|
|
11709
11825
|
base
|
|
11710
11826
|
] : [
|
|
11711
|
-
|
|
11827
|
+
css33`
|
|
11712
11828
|
background: var(--gray-50);
|
|
11713
11829
|
`,
|
|
11714
11830
|
base
|
|
11715
11831
|
];
|
|
11716
11832
|
}
|
|
11717
|
-
var fieldsetLegend =
|
|
11833
|
+
var fieldsetLegend = css33`
|
|
11718
11834
|
align-items: center;
|
|
11719
11835
|
color: var(--brand-secondary-1);
|
|
11720
11836
|
display: flex;
|
|
@@ -11724,17 +11840,17 @@ var fieldsetLegend = css31`
|
|
|
11724
11840
|
margin-bottom: var(--spacing-base);
|
|
11725
11841
|
float: left; // allows the legend to be inside the fieldset and not sat on the border line
|
|
11726
11842
|
`;
|
|
11727
|
-
var fieldsetBody =
|
|
11843
|
+
var fieldsetBody = css33`
|
|
11728
11844
|
clear: left;
|
|
11729
11845
|
`;
|
|
11730
11846
|
|
|
11731
11847
|
// src/components/Input/Fieldset.tsx
|
|
11732
|
-
import { jsx as
|
|
11848
|
+
import { jsx as jsx37, jsxs as jsxs22 } from "@emotion/react/jsx-runtime";
|
|
11733
11849
|
var Fieldset = React12.forwardRef(
|
|
11734
11850
|
({ legend, disabled, children, invert, ...props }, ref) => {
|
|
11735
|
-
return /* @__PURE__ */
|
|
11851
|
+
return /* @__PURE__ */ jsxs22("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled, ...props, children: [
|
|
11736
11852
|
legend,
|
|
11737
|
-
/* @__PURE__ */
|
|
11853
|
+
/* @__PURE__ */ jsx37("div", { css: fieldsetBody, children })
|
|
11738
11854
|
] });
|
|
11739
11855
|
}
|
|
11740
11856
|
);
|
|
@@ -11743,9 +11859,9 @@ var Fieldset = React12.forwardRef(
|
|
|
11743
11859
|
import * as React13 from "react";
|
|
11744
11860
|
|
|
11745
11861
|
// src/components/Input/Label.tsx
|
|
11746
|
-
import { jsx as
|
|
11862
|
+
import { jsx as jsx38 } from "@emotion/react/jsx-runtime";
|
|
11747
11863
|
var Label = ({ children, className, testId, ...props }) => {
|
|
11748
|
-
return /* @__PURE__ */
|
|
11864
|
+
return /* @__PURE__ */ jsx38(
|
|
11749
11865
|
"label",
|
|
11750
11866
|
{
|
|
11751
11867
|
css: [labelText, typeof className === "object" ? className : void 0],
|
|
@@ -11761,28 +11877,28 @@ var Label = ({ children, className, testId, ...props }) => {
|
|
|
11761
11877
|
import { MdWarning as MdWarning2 } from "react-icons/md";
|
|
11762
11878
|
|
|
11763
11879
|
// src/components/Input/styles/WarningMessage.styles.tsx
|
|
11764
|
-
import { css as
|
|
11765
|
-
var WarningText =
|
|
11880
|
+
import { css as css34 } from "@emotion/react";
|
|
11881
|
+
var WarningText = css34`
|
|
11766
11882
|
align-items: center;
|
|
11767
11883
|
color: var(--alert-text);
|
|
11768
11884
|
display: flex;
|
|
11769
11885
|
gap: var(--spacing-sm);
|
|
11770
11886
|
`;
|
|
11771
|
-
var WarningIcon =
|
|
11887
|
+
var WarningIcon = css34`
|
|
11772
11888
|
color: var(--alert);
|
|
11773
11889
|
`;
|
|
11774
11890
|
|
|
11775
11891
|
// src/components/Input/WarningMessage.tsx
|
|
11776
|
-
import { jsx as
|
|
11892
|
+
import { jsx as jsx39, jsxs as jsxs23 } from "@emotion/react/jsx-runtime";
|
|
11777
11893
|
var WarningMessage = ({ message, testId, ...props }) => {
|
|
11778
|
-
return message ? /* @__PURE__ */
|
|
11779
|
-
/* @__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" }),
|
|
11780
11896
|
message
|
|
11781
11897
|
] }) : null;
|
|
11782
11898
|
};
|
|
11783
11899
|
|
|
11784
11900
|
// src/components/Input/Input.tsx
|
|
11785
|
-
import { jsx as
|
|
11901
|
+
import { jsx as jsx40, jsxs as jsxs24 } from "@emotion/react/jsx-runtime";
|
|
11786
11902
|
var Input = React13.forwardRef(
|
|
11787
11903
|
({
|
|
11788
11904
|
label,
|
|
@@ -11801,8 +11917,8 @@ var Input = React13.forwardRef(
|
|
|
11801
11917
|
classNameLabel,
|
|
11802
11918
|
...props
|
|
11803
11919
|
}, ref) => {
|
|
11804
|
-
return /* @__PURE__ */
|
|
11805
|
-
showLabel ? /* @__PURE__ */
|
|
11920
|
+
return /* @__PURE__ */ jsxs24("div", { css: inputContainer, "data-test-id": containerTestId ? containerTestId : "container-input-field", children: [
|
|
11921
|
+
showLabel ? /* @__PURE__ */ jsx40(
|
|
11806
11922
|
Label,
|
|
11807
11923
|
{
|
|
11808
11924
|
htmlFor: id,
|
|
@@ -11812,13 +11928,13 @@ var Input = React13.forwardRef(
|
|
|
11812
11928
|
children: label
|
|
11813
11929
|
}
|
|
11814
11930
|
) : null,
|
|
11815
|
-
/* @__PURE__ */
|
|
11931
|
+
/* @__PURE__ */ jsxs24(
|
|
11816
11932
|
"div",
|
|
11817
11933
|
{
|
|
11818
11934
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
11819
11935
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
11820
11936
|
children: [
|
|
11821
|
-
/* @__PURE__ */
|
|
11937
|
+
/* @__PURE__ */ jsx40(
|
|
11822
11938
|
"input",
|
|
11823
11939
|
{
|
|
11824
11940
|
id,
|
|
@@ -11834,23 +11950,23 @@ var Input = React13.forwardRef(
|
|
|
11834
11950
|
ref
|
|
11835
11951
|
}
|
|
11836
11952
|
),
|
|
11837
|
-
icon ? /* @__PURE__ */
|
|
11953
|
+
icon ? /* @__PURE__ */ jsx40("div", { css: inputIcon, children: icon }) : null
|
|
11838
11954
|
]
|
|
11839
11955
|
}
|
|
11840
11956
|
),
|
|
11841
|
-
caption ? /* @__PURE__ */
|
|
11842
|
-
errorMessage ? /* @__PURE__ */
|
|
11843
|
-
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
|
|
11844
11960
|
] });
|
|
11845
11961
|
}
|
|
11846
11962
|
);
|
|
11847
11963
|
|
|
11848
11964
|
// src/components/Input/InputComboBox.tsx
|
|
11849
11965
|
import Select from "react-select";
|
|
11850
|
-
import { jsx as
|
|
11966
|
+
import { jsx as jsx41 } from "@emotion/react/jsx-runtime";
|
|
11851
11967
|
function InputComboBox(props) {
|
|
11852
11968
|
var _a;
|
|
11853
|
-
return /* @__PURE__ */
|
|
11969
|
+
return /* @__PURE__ */ jsx41(
|
|
11854
11970
|
Select,
|
|
11855
11971
|
{
|
|
11856
11972
|
...props,
|
|
@@ -11979,17 +12095,17 @@ function InputComboBox(props) {
|
|
|
11979
12095
|
}
|
|
11980
12096
|
|
|
11981
12097
|
// src/components/Input/InputInlineSelect.tsx
|
|
11982
|
-
import { css as
|
|
12098
|
+
import { css as css36 } from "@emotion/react";
|
|
11983
12099
|
import { useRef as useRef3, useState as useState5 } from "react";
|
|
11984
12100
|
import { CgChevronDown as CgChevronDown2 } from "react-icons/cg";
|
|
11985
12101
|
|
|
11986
12102
|
// src/components/Input/styles/InputInlineSelect.styles.ts
|
|
11987
|
-
import { css as
|
|
11988
|
-
var inlineSelectContainer =
|
|
12103
|
+
import { css as css35 } from "@emotion/react";
|
|
12104
|
+
var inlineSelectContainer = css35`
|
|
11989
12105
|
margin-inline: auto;
|
|
11990
12106
|
max-width: fit-content;
|
|
11991
12107
|
`;
|
|
11992
|
-
var inlineSelectBtn =
|
|
12108
|
+
var inlineSelectBtn = css35`
|
|
11993
12109
|
align-items: center;
|
|
11994
12110
|
background: var(--brand-secondary-3);
|
|
11995
12111
|
border: 2px solid var(--brand-secondary-3);
|
|
@@ -12013,7 +12129,7 @@ var inlineSelectBtn = css33`
|
|
|
12013
12129
|
outline: 2px solid var(--brand-secondary-1);
|
|
12014
12130
|
}
|
|
12015
12131
|
`;
|
|
12016
|
-
var inlineSelectMenu =
|
|
12132
|
+
var inlineSelectMenu = css35`
|
|
12017
12133
|
background: var(--white);
|
|
12018
12134
|
border: 1px solid var(--brand-secondary-3);
|
|
12019
12135
|
border-top: none;
|
|
@@ -12024,7 +12140,7 @@ var inlineSelectMenu = css33`
|
|
|
12024
12140
|
inset: auto 0;
|
|
12025
12141
|
transform: translateY(-0.2rem);
|
|
12026
12142
|
`;
|
|
12027
|
-
var inlineSelectBtnOptions =
|
|
12143
|
+
var inlineSelectBtnOptions = css35`
|
|
12028
12144
|
cursor: pointer;
|
|
12029
12145
|
display: block;
|
|
12030
12146
|
font-size: var(--fs-sm);
|
|
@@ -12040,7 +12156,7 @@ var inlineSelectBtnOptions = css33`
|
|
|
12040
12156
|
background: var(--gray-50);
|
|
12041
12157
|
}
|
|
12042
12158
|
`;
|
|
12043
|
-
var inlineSelectMenuClosed =
|
|
12159
|
+
var inlineSelectMenuClosed = css35`
|
|
12044
12160
|
position: absolute;
|
|
12045
12161
|
overflow: hidden;
|
|
12046
12162
|
height: 1px;
|
|
@@ -12050,7 +12166,7 @@ var inlineSelectMenuClosed = css33`
|
|
|
12050
12166
|
`;
|
|
12051
12167
|
|
|
12052
12168
|
// src/components/Input/InputInlineSelect.tsx
|
|
12053
|
-
import { jsx as
|
|
12169
|
+
import { jsx as jsx42, jsxs as jsxs25 } from "@emotion/react/jsx-runtime";
|
|
12054
12170
|
var InputInlineSelect = ({
|
|
12055
12171
|
classNameContainer,
|
|
12056
12172
|
options,
|
|
@@ -12064,17 +12180,17 @@ var InputInlineSelect = ({
|
|
|
12064
12180
|
const divRef = useRef3(null);
|
|
12065
12181
|
useOutsideClick(divRef, () => setMenuVisible(false));
|
|
12066
12182
|
const selected = options.find((option) => option.value === value);
|
|
12067
|
-
return /* @__PURE__ */
|
|
12183
|
+
return /* @__PURE__ */ jsxs25(
|
|
12068
12184
|
"div",
|
|
12069
12185
|
{
|
|
12070
12186
|
ref: divRef,
|
|
12071
|
-
css: !classNameContainer ? inlineSelectContainer :
|
|
12187
|
+
css: !classNameContainer ? inlineSelectContainer : css36`
|
|
12072
12188
|
max-width: fit-content;
|
|
12073
12189
|
${typeof classNameContainer === "object" ? classNameContainer : void 0}
|
|
12074
12190
|
`,
|
|
12075
12191
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
12076
12192
|
children: [
|
|
12077
|
-
/* @__PURE__ */
|
|
12193
|
+
/* @__PURE__ */ jsxs25(
|
|
12078
12194
|
"button",
|
|
12079
12195
|
{
|
|
12080
12196
|
type: "button",
|
|
@@ -12088,18 +12204,18 @@ var InputInlineSelect = ({
|
|
|
12088
12204
|
disabled,
|
|
12089
12205
|
...props,
|
|
12090
12206
|
children: [
|
|
12091
|
-
/* @__PURE__ */
|
|
12092
|
-
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 })
|
|
12093
12209
|
]
|
|
12094
12210
|
}
|
|
12095
12211
|
),
|
|
12096
|
-
/* @__PURE__ */
|
|
12212
|
+
/* @__PURE__ */ jsx42(
|
|
12097
12213
|
"div",
|
|
12098
12214
|
{
|
|
12099
12215
|
id: `and-or-${props.id}`,
|
|
12100
12216
|
css: [inlineSelectMenu, menuVisible ? void 0 : inlineSelectMenuClosed],
|
|
12101
12217
|
"aria-hidden": !menuVisible,
|
|
12102
|
-
children: options.map((opt) => /* @__PURE__ */
|
|
12218
|
+
children: options.map((opt) => /* @__PURE__ */ jsx42(
|
|
12103
12219
|
"button",
|
|
12104
12220
|
{
|
|
12105
12221
|
type: "button",
|
|
@@ -12120,7 +12236,7 @@ var InputInlineSelect = ({
|
|
|
12120
12236
|
};
|
|
12121
12237
|
|
|
12122
12238
|
// src/components/Input/InputKeywordSearch.tsx
|
|
12123
|
-
import { jsx as
|
|
12239
|
+
import { jsx as jsx43 } from "@emotion/react/jsx-runtime";
|
|
12124
12240
|
var InputKeywordSearch = ({
|
|
12125
12241
|
onSearchTextChanged,
|
|
12126
12242
|
disabled = false,
|
|
@@ -12139,7 +12255,7 @@ var InputKeywordSearch = ({
|
|
|
12139
12255
|
e.preventDefault();
|
|
12140
12256
|
}
|
|
12141
12257
|
};
|
|
12142
|
-
return /* @__PURE__ */
|
|
12258
|
+
return /* @__PURE__ */ jsx43(
|
|
12143
12259
|
Input,
|
|
12144
12260
|
{
|
|
12145
12261
|
type: "text",
|
|
@@ -12147,7 +12263,7 @@ var InputKeywordSearch = ({
|
|
|
12147
12263
|
placeholder,
|
|
12148
12264
|
showLabel: false,
|
|
12149
12265
|
value,
|
|
12150
|
-
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" }),
|
|
12151
12267
|
onChange: handleSearchTextChanged,
|
|
12152
12268
|
onKeyPress: preventSubmitOnField,
|
|
12153
12269
|
disabled,
|
|
@@ -12158,7 +12274,7 @@ var InputKeywordSearch = ({
|
|
|
12158
12274
|
};
|
|
12159
12275
|
|
|
12160
12276
|
// src/components/Input/InputSelect.tsx
|
|
12161
|
-
import { Fragment as Fragment5, jsx as
|
|
12277
|
+
import { Fragment as Fragment5, jsx as jsx44, jsxs as jsxs26 } from "@emotion/react/jsx-runtime";
|
|
12162
12278
|
var InputSelect = ({
|
|
12163
12279
|
label,
|
|
12164
12280
|
defaultOption,
|
|
@@ -12174,13 +12290,13 @@ var InputSelect = ({
|
|
|
12174
12290
|
classNameLabel,
|
|
12175
12291
|
...props
|
|
12176
12292
|
}) => {
|
|
12177
|
-
return /* @__PURE__ */
|
|
12293
|
+
return /* @__PURE__ */ jsxs26(
|
|
12178
12294
|
"div",
|
|
12179
12295
|
{
|
|
12180
12296
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
12181
12297
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
12182
12298
|
children: [
|
|
12183
|
-
showLabel ? /* @__PURE__ */
|
|
12299
|
+
showLabel ? /* @__PURE__ */ jsx44(Fragment5, { children: /* @__PURE__ */ jsxs26(
|
|
12184
12300
|
Label,
|
|
12185
12301
|
{
|
|
12186
12302
|
htmlFor: props.id,
|
|
@@ -12192,7 +12308,7 @@ var InputSelect = ({
|
|
|
12192
12308
|
]
|
|
12193
12309
|
}
|
|
12194
12310
|
) }) : null,
|
|
12195
|
-
/* @__PURE__ */
|
|
12311
|
+
/* @__PURE__ */ jsxs26(
|
|
12196
12312
|
"select",
|
|
12197
12313
|
{
|
|
12198
12314
|
title: label,
|
|
@@ -12207,21 +12323,21 @@ var InputSelect = ({
|
|
|
12207
12323
|
className: typeof classNameControl === "string" ? classNameControl : "",
|
|
12208
12324
|
...props,
|
|
12209
12325
|
children: [
|
|
12210
|
-
defaultOption ? /* @__PURE__ */
|
|
12211
|
-
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))
|
|
12212
12328
|
]
|
|
12213
12329
|
}
|
|
12214
12330
|
),
|
|
12215
|
-
caption ? /* @__PURE__ */
|
|
12216
|
-
errorMessage ? /* @__PURE__ */
|
|
12217
|
-
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
|
|
12218
12334
|
]
|
|
12219
12335
|
}
|
|
12220
12336
|
);
|
|
12221
12337
|
};
|
|
12222
12338
|
|
|
12223
12339
|
// src/components/Input/InputToggle.tsx
|
|
12224
|
-
import { jsx as
|
|
12340
|
+
import { jsx as jsx45, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
|
|
12225
12341
|
var InputToggle = ({
|
|
12226
12342
|
label,
|
|
12227
12343
|
type,
|
|
@@ -12235,25 +12351,25 @@ var InputToggle = ({
|
|
|
12235
12351
|
fontWeight = "medium",
|
|
12236
12352
|
...props
|
|
12237
12353
|
}) => {
|
|
12238
|
-
return /* @__PURE__ */
|
|
12239
|
-
/* @__PURE__ */
|
|
12240
|
-
/* @__PURE__ */
|
|
12241
|
-
caption || errorMessage ? /* @__PURE__ */
|
|
12242
|
-
caption ? /* @__PURE__ */
|
|
12243
|
-
errorMessage ? /* @__PURE__ */
|
|
12244
|
-
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
|
|
12245
12361
|
] }) : null
|
|
12246
12362
|
] });
|
|
12247
12363
|
};
|
|
12248
12364
|
|
|
12249
12365
|
// src/components/Input/Legend.tsx
|
|
12250
|
-
import { jsx as
|
|
12366
|
+
import { jsx as jsx46 } from "@emotion/react/jsx-runtime";
|
|
12251
12367
|
var Legend = ({ children }) => {
|
|
12252
|
-
return /* @__PURE__ */
|
|
12368
|
+
return /* @__PURE__ */ jsx46("legend", { css: fieldsetLegend, children });
|
|
12253
12369
|
};
|
|
12254
12370
|
|
|
12255
12371
|
// src/components/Input/Textarea.tsx
|
|
12256
|
-
import { Fragment as Fragment6, jsx as
|
|
12372
|
+
import { Fragment as Fragment6, jsx as jsx47, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
|
|
12257
12373
|
var Textarea = ({
|
|
12258
12374
|
label,
|
|
12259
12375
|
icon,
|
|
@@ -12264,10 +12380,10 @@ var Textarea = ({
|
|
|
12264
12380
|
warningMessage,
|
|
12265
12381
|
...props
|
|
12266
12382
|
}) => {
|
|
12267
|
-
return /* @__PURE__ */
|
|
12268
|
-
showLabel ? /* @__PURE__ */
|
|
12269
|
-
/* @__PURE__ */
|
|
12270
|
-
/* @__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(
|
|
12271
12387
|
"textarea",
|
|
12272
12388
|
{
|
|
12273
12389
|
id,
|
|
@@ -12276,36 +12392,31 @@ var Textarea = ({
|
|
|
12276
12392
|
...props
|
|
12277
12393
|
}
|
|
12278
12394
|
),
|
|
12279
|
-
icon ? /* @__PURE__ */
|
|
12395
|
+
icon ? /* @__PURE__ */ jsx47("div", { css: inputIcon, children: icon }) : null
|
|
12280
12396
|
] }),
|
|
12281
|
-
caption ? /* @__PURE__ */
|
|
12282
|
-
errorMessage ? /* @__PURE__ */
|
|
12283
|
-
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
|
|
12284
12400
|
] });
|
|
12285
12401
|
};
|
|
12286
12402
|
|
|
12287
12403
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
12288
|
-
import { ClassNames } from "@emotion/react";
|
|
12289
12404
|
import MonacoEditor from "@monaco-editor/react";
|
|
12290
|
-
|
|
12291
|
-
|
|
12292
|
-
import { css as css35 } from "@emotion/react";
|
|
12293
|
-
var JsonEditorContainer = css35`
|
|
12294
|
-
min-height: 150px;
|
|
12295
|
-
`;
|
|
12296
|
-
|
|
12297
|
-
// src/components/JsonEditor/JsonEditor.tsx
|
|
12298
|
-
import { jsx as jsx47 } from "@emotion/react/jsx-runtime";
|
|
12405
|
+
import { jsx as jsx48 } from "@emotion/react/jsx-runtime";
|
|
12406
|
+
var minEditorHeightPx = 150;
|
|
12299
12407
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
12300
12408
|
let effectiveHeight = height;
|
|
12301
12409
|
if (typeof height === "number" && height < 0) {
|
|
12302
12410
|
effectiveHeight = typeof window === "undefined" ? "100%" : window.innerHeight + height;
|
|
12303
12411
|
}
|
|
12304
|
-
|
|
12412
|
+
if (typeof effectiveHeight === "number" && effectiveHeight < minEditorHeightPx) {
|
|
12413
|
+
effectiveHeight = minEditorHeightPx;
|
|
12414
|
+
}
|
|
12415
|
+
return /* @__PURE__ */ jsx48(
|
|
12305
12416
|
MonacoEditor,
|
|
12306
12417
|
{
|
|
12307
12418
|
height: effectiveHeight,
|
|
12308
|
-
className:
|
|
12419
|
+
className: "uniform-json-editor",
|
|
12309
12420
|
defaultLanguage: "json",
|
|
12310
12421
|
defaultValue,
|
|
12311
12422
|
options: {
|
|
@@ -12334,12 +12445,12 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
12334
12445
|
},
|
|
12335
12446
|
onChange
|
|
12336
12447
|
}
|
|
12337
|
-
)
|
|
12448
|
+
);
|
|
12338
12449
|
};
|
|
12339
12450
|
|
|
12340
12451
|
// src/components/Layout/styles/Container.styles.ts
|
|
12341
|
-
import { css as
|
|
12342
|
-
var Container = ({ backgroundColor, border, rounded, padding, margin }) =>
|
|
12452
|
+
import { css as css37 } from "@emotion/react";
|
|
12453
|
+
var Container = ({ backgroundColor, border, rounded, padding, margin }) => css37`
|
|
12343
12454
|
background: var(--${backgroundColor});
|
|
12344
12455
|
${border ? "border: 1px solid var(--gray-300)" : void 0};
|
|
12345
12456
|
${rounded ? `border-radius: var(--${rounded})` : void 0};
|
|
@@ -12348,7 +12459,7 @@ var Container = ({ backgroundColor, border, rounded, padding, margin }) => css36
|
|
|
12348
12459
|
`;
|
|
12349
12460
|
|
|
12350
12461
|
// src/components/Layout/Container.tsx
|
|
12351
|
-
import { jsx as
|
|
12462
|
+
import { jsx as jsx49 } from "@emotion/react/jsx-runtime";
|
|
12352
12463
|
var Container2 = ({
|
|
12353
12464
|
tag = "div",
|
|
12354
12465
|
backgroundColor = "white",
|
|
@@ -12360,7 +12471,7 @@ var Container2 = ({
|
|
|
12360
12471
|
...props
|
|
12361
12472
|
}) => {
|
|
12362
12473
|
const Tag = tag;
|
|
12363
|
-
return /* @__PURE__ */
|
|
12474
|
+
return /* @__PURE__ */ jsx49(
|
|
12364
12475
|
Tag,
|
|
12365
12476
|
{
|
|
12366
12477
|
css: Container({
|
|
@@ -12377,54 +12488,54 @@ var Container2 = ({
|
|
|
12377
12488
|
};
|
|
12378
12489
|
|
|
12379
12490
|
// src/components/Layout/styles/VerticalRhythm.styles.ts
|
|
12380
|
-
import { css as
|
|
12381
|
-
var VerticalRhythmContainer = (size) =>
|
|
12491
|
+
import { css as css38 } from "@emotion/react";
|
|
12492
|
+
var VerticalRhythmContainer = (size) => css38`
|
|
12382
12493
|
display: flex;
|
|
12383
12494
|
flex-direction: column;
|
|
12384
12495
|
gap: var(--spacing-${size});
|
|
12385
12496
|
`;
|
|
12386
12497
|
|
|
12387
12498
|
// src/components/Layout/VerticalRhythm.tsx
|
|
12388
|
-
import { jsx as
|
|
12499
|
+
import { jsx as jsx50 } from "@emotion/react/jsx-runtime";
|
|
12389
12500
|
var VerticalRhythm = ({ tag = "div", gap = "base", children, ...props }) => {
|
|
12390
12501
|
const Tag = tag;
|
|
12391
|
-
return /* @__PURE__ */
|
|
12502
|
+
return /* @__PURE__ */ jsx50(Tag, { css: VerticalRhythmContainer(gap), ...props, children });
|
|
12392
12503
|
};
|
|
12393
12504
|
|
|
12394
12505
|
// src/components/LimitsBar/LimitsBar.styles.ts
|
|
12395
|
-
import { css as
|
|
12396
|
-
var LimitsBarContainer =
|
|
12506
|
+
import { css as css39 } from "@emotion/react";
|
|
12507
|
+
var LimitsBarContainer = css39`
|
|
12397
12508
|
margin-block: var(--spacing-sm);
|
|
12398
12509
|
`;
|
|
12399
|
-
var LimitsBarProgressBar =
|
|
12510
|
+
var LimitsBarProgressBar = css39`
|
|
12400
12511
|
background: var(--gray-100);
|
|
12401
12512
|
margin-top: var(--spacing-sm);
|
|
12402
12513
|
position: relative;
|
|
12403
12514
|
overflow: hidden;
|
|
12404
12515
|
height: 0.25rem;
|
|
12405
12516
|
`;
|
|
12406
|
-
var LimitsBarProgressBarLine =
|
|
12517
|
+
var LimitsBarProgressBarLine = css39`
|
|
12407
12518
|
position: absolute;
|
|
12408
12519
|
inset: 0;
|
|
12409
12520
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
12410
12521
|
`;
|
|
12411
|
-
var LimitsBarLabelContainer =
|
|
12522
|
+
var LimitsBarLabelContainer = css39`
|
|
12412
12523
|
display: flex;
|
|
12413
12524
|
justify-content: space-between;
|
|
12414
12525
|
font-weight: var(--fw-bold);
|
|
12415
12526
|
`;
|
|
12416
|
-
var LimitsBarLabel =
|
|
12527
|
+
var LimitsBarLabel = css39`
|
|
12417
12528
|
font-size: var(--fs-baase);
|
|
12418
12529
|
`;
|
|
12419
|
-
var LimitsBarBgColor = (statusColor) =>
|
|
12530
|
+
var LimitsBarBgColor = (statusColor) => css39`
|
|
12420
12531
|
background: ${statusColor};
|
|
12421
12532
|
`;
|
|
12422
|
-
var LimitsBarTextColor = (statusColor) =>
|
|
12533
|
+
var LimitsBarTextColor = (statusColor) => css39`
|
|
12423
12534
|
color: ${statusColor};
|
|
12424
12535
|
`;
|
|
12425
12536
|
|
|
12426
12537
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
12427
|
-
import { jsx as
|
|
12538
|
+
import { jsx as jsx51, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
|
|
12428
12539
|
var LimitsBar = ({ current, max, label }) => {
|
|
12429
12540
|
const maxPercentage = 100;
|
|
12430
12541
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -12435,16 +12546,16 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
12435
12546
|
danger: "var(--brand-secondary-5)"
|
|
12436
12547
|
};
|
|
12437
12548
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
12438
|
-
return /* @__PURE__ */
|
|
12439
|
-
/* @__PURE__ */
|
|
12440
|
-
/* @__PURE__ */
|
|
12441
|
-
/* @__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: [
|
|
12442
12553
|
current,
|
|
12443
12554
|
" of ",
|
|
12444
12555
|
max
|
|
12445
12556
|
] })
|
|
12446
12557
|
] }),
|
|
12447
|
-
/* @__PURE__ */
|
|
12558
|
+
/* @__PURE__ */ jsx51(
|
|
12448
12559
|
"div",
|
|
12449
12560
|
{
|
|
12450
12561
|
role: "progressbar",
|
|
@@ -12453,7 +12564,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
12453
12564
|
"aria-valuemax": max,
|
|
12454
12565
|
"aria-valuetext": `${current} of ${max}`,
|
|
12455
12566
|
css: LimitsBarProgressBar,
|
|
12456
|
-
children: /* @__PURE__ */
|
|
12567
|
+
children: /* @__PURE__ */ jsx51(
|
|
12457
12568
|
"span",
|
|
12458
12569
|
{
|
|
12459
12570
|
role: "presentation",
|
|
@@ -12469,8 +12580,8 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
12469
12580
|
};
|
|
12470
12581
|
|
|
12471
12582
|
// src/components/LinkList/LinkList.styles.ts
|
|
12472
|
-
import { css as
|
|
12473
|
-
var LinkListContainer =
|
|
12583
|
+
import { css as css40 } from "@emotion/react";
|
|
12584
|
+
var LinkListContainer = css40`
|
|
12474
12585
|
padding: var(--spacing-md) var(--spacing-lg) var(--spacing-2xl);
|
|
12475
12586
|
${mq("sm")} {
|
|
12476
12587
|
grid-column: last-col / span 1;
|
|
@@ -12479,23 +12590,23 @@ var LinkListContainer = css39`
|
|
|
12479
12590
|
`;
|
|
12480
12591
|
|
|
12481
12592
|
// src/components/LinkList/LinkList.tsx
|
|
12482
|
-
import { jsx as
|
|
12593
|
+
import { jsx as jsx52, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
|
|
12483
12594
|
var LinkList = ({ title, children, ...props }) => {
|
|
12484
|
-
return /* @__PURE__ */
|
|
12485
|
-
/* @__PURE__ */
|
|
12595
|
+
return /* @__PURE__ */ jsxs30("div", { css: LinkListContainer, ...props, children: [
|
|
12596
|
+
/* @__PURE__ */ jsx52(Heading, { level: 3, children: title }),
|
|
12486
12597
|
children
|
|
12487
12598
|
] });
|
|
12488
12599
|
};
|
|
12489
12600
|
|
|
12490
12601
|
// src/components/List/ScrollableList.tsx
|
|
12491
|
-
import { css as
|
|
12602
|
+
import { css as css42 } from "@emotion/react";
|
|
12492
12603
|
|
|
12493
12604
|
// src/components/List/styles/ScrollableList.styles.ts
|
|
12494
|
-
import { css as
|
|
12495
|
-
var ScrollableListContainer =
|
|
12605
|
+
import { css as css41 } from "@emotion/react";
|
|
12606
|
+
var ScrollableListContainer = css41`
|
|
12496
12607
|
position: relative;
|
|
12497
12608
|
`;
|
|
12498
|
-
var ScrollableListInner =
|
|
12609
|
+
var ScrollableListInner = css41`
|
|
12499
12610
|
background: var(--gray-50);
|
|
12500
12611
|
border-top: 1px solid var(--gray-200);
|
|
12501
12612
|
border-bottom: 1px solid var(--gray-200);
|
|
@@ -12513,19 +12624,19 @@ var ScrollableListInner = css40`
|
|
|
12513
12624
|
`;
|
|
12514
12625
|
|
|
12515
12626
|
// src/components/List/ScrollableList.tsx
|
|
12516
|
-
import { jsx as
|
|
12627
|
+
import { jsx as jsx53, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
|
|
12517
12628
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
12518
|
-
return /* @__PURE__ */
|
|
12519
|
-
label ? /* @__PURE__ */
|
|
12629
|
+
return /* @__PURE__ */ jsxs31("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
12630
|
+
label ? /* @__PURE__ */ jsx53(
|
|
12520
12631
|
"span",
|
|
12521
12632
|
{
|
|
12522
|
-
css:
|
|
12633
|
+
css: css42`
|
|
12523
12634
|
${labelText}
|
|
12524
12635
|
`,
|
|
12525
12636
|
children: label
|
|
12526
12637
|
}
|
|
12527
12638
|
) : null,
|
|
12528
|
-
/* @__PURE__ */
|
|
12639
|
+
/* @__PURE__ */ jsx53("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
12529
12640
|
] });
|
|
12530
12641
|
};
|
|
12531
12642
|
|
|
@@ -12533,8 +12644,8 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
12533
12644
|
import { CgCheck } from "react-icons/cg";
|
|
12534
12645
|
|
|
12535
12646
|
// src/components/List/styles/ScrollableListItem.styles.ts
|
|
12536
|
-
import { css as
|
|
12537
|
-
var ScrollableListItemContainer =
|
|
12647
|
+
import { css as css43 } from "@emotion/react";
|
|
12648
|
+
var ScrollableListItemContainer = css43`
|
|
12538
12649
|
align-items: center;
|
|
12539
12650
|
background: var(--white);
|
|
12540
12651
|
border-radius: var(--rounded-base);
|
|
@@ -12544,10 +12655,10 @@ var ScrollableListItemContainer = css42`
|
|
|
12544
12655
|
min-height: 52px;
|
|
12545
12656
|
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
12546
12657
|
`;
|
|
12547
|
-
var ScrollableListItemActive =
|
|
12658
|
+
var ScrollableListItemActive = css43`
|
|
12548
12659
|
border-color: var(--brand-secondary-3);
|
|
12549
12660
|
`;
|
|
12550
|
-
var ScrollableListItemBtn =
|
|
12661
|
+
var ScrollableListItemBtn = css43`
|
|
12551
12662
|
align-items: center;
|
|
12552
12663
|
border: none;
|
|
12553
12664
|
background: transparent;
|
|
@@ -12562,26 +12673,26 @@ var ScrollableListItemBtn = css42`
|
|
|
12562
12673
|
outline: none;
|
|
12563
12674
|
}
|
|
12564
12675
|
`;
|
|
12565
|
-
var ScrollableListInputLabel =
|
|
12676
|
+
var ScrollableListInputLabel = css43`
|
|
12566
12677
|
align-items: center;
|
|
12567
12678
|
display: flex;
|
|
12568
12679
|
padding: var(--spacing-xs) var(--spacing-base) var(--spacing-xs);
|
|
12569
12680
|
flex-grow: 1;
|
|
12570
12681
|
`;
|
|
12571
|
-
var ScrollableListInputText =
|
|
12682
|
+
var ScrollableListInputText = css43`
|
|
12572
12683
|
align-items: center;
|
|
12573
12684
|
display: flex;
|
|
12574
12685
|
gap: var(--spacing-sm);
|
|
12575
12686
|
font-weight: var(--fw-bold);
|
|
12576
12687
|
flex-grow: 1;
|
|
12577
12688
|
`;
|
|
12578
|
-
var ScrollableListHiddenInput =
|
|
12689
|
+
var ScrollableListHiddenInput = css43`
|
|
12579
12690
|
position: absolute;
|
|
12580
12691
|
height: 0;
|
|
12581
12692
|
width: 0;
|
|
12582
12693
|
opacity: 0;
|
|
12583
12694
|
`;
|
|
12584
|
-
var ScrollableListIcon =
|
|
12695
|
+
var ScrollableListIcon = css43`
|
|
12585
12696
|
border-radius: var(--rounded-full);
|
|
12586
12697
|
background: var(--brand-secondary-3);
|
|
12587
12698
|
color: var(--white);
|
|
@@ -12590,7 +12701,7 @@ var ScrollableListIcon = css42`
|
|
|
12590
12701
|
`;
|
|
12591
12702
|
|
|
12592
12703
|
// src/components/List/ScrollableListInputItem.tsx
|
|
12593
|
-
import { jsx as
|
|
12704
|
+
import { jsx as jsx54, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
|
|
12594
12705
|
var ScrollableListInputItem = ({
|
|
12595
12706
|
label,
|
|
12596
12707
|
icon,
|
|
@@ -12598,23 +12709,23 @@ var ScrollableListInputItem = ({
|
|
|
12598
12709
|
children,
|
|
12599
12710
|
labelTestId
|
|
12600
12711
|
}) => {
|
|
12601
|
-
return /* @__PURE__ */
|
|
12602
|
-
/* @__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: [
|
|
12603
12714
|
icon,
|
|
12604
12715
|
label
|
|
12605
12716
|
] }),
|
|
12606
|
-
/* @__PURE__ */
|
|
12607
|
-
active ? /* @__PURE__ */
|
|
12717
|
+
/* @__PURE__ */ jsx54("div", { css: ScrollableListHiddenInput, children }),
|
|
12718
|
+
active ? /* @__PURE__ */ jsx54(Icon, { icon: CgCheck, iconColor: "currentColor", css: ScrollableListIcon, size: 24 }) : null
|
|
12608
12719
|
] }) });
|
|
12609
12720
|
};
|
|
12610
12721
|
|
|
12611
12722
|
// src/components/List/ScrollableListItem.tsx
|
|
12612
|
-
import { css as
|
|
12613
|
-
import { jsx as
|
|
12723
|
+
import { css as css44 } from "@emotion/react";
|
|
12724
|
+
import { jsx as jsx55, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
|
|
12614
12725
|
var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
12615
|
-
return /* @__PURE__ */
|
|
12616
|
-
/* @__PURE__ */
|
|
12617
|
-
/* @__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(
|
|
12618
12729
|
"svg",
|
|
12619
12730
|
{
|
|
12620
12731
|
width: "24",
|
|
@@ -12623,14 +12734,14 @@ var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
|
12623
12734
|
fill: "currentColor",
|
|
12624
12735
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12625
12736
|
"aria-hidden": !active,
|
|
12626
|
-
css:
|
|
12737
|
+
css: css44`
|
|
12627
12738
|
color: var(--brand-secondary-3);
|
|
12628
12739
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
12629
|
-
${active ?
|
|
12740
|
+
${active ? css44`
|
|
12630
12741
|
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
12631
12742
|
` : "opacity: 0;"}
|
|
12632
12743
|
`,
|
|
12633
|
-
children: /* @__PURE__ */
|
|
12744
|
+
children: /* @__PURE__ */ jsx55(
|
|
12634
12745
|
"path",
|
|
12635
12746
|
{
|
|
12636
12747
|
fillRule: "evenodd",
|
|
@@ -12644,7 +12755,7 @@ var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
|
12644
12755
|
};
|
|
12645
12756
|
|
|
12646
12757
|
// src/components/LoadingIndicator/LoadingIndicator.styles.ts
|
|
12647
|
-
import { css as
|
|
12758
|
+
import { css as css45, keyframes as keyframes3 } from "@emotion/react";
|
|
12648
12759
|
var bounceFade = keyframes3`
|
|
12649
12760
|
0%, 100% {
|
|
12650
12761
|
opacity: 1.0;
|
|
@@ -12662,11 +12773,11 @@ var bounceFade = keyframes3`
|
|
|
12662
12773
|
transform: translateY(-5px);
|
|
12663
12774
|
}
|
|
12664
12775
|
`;
|
|
12665
|
-
var loader =
|
|
12776
|
+
var loader = css45`
|
|
12666
12777
|
display: inline-flex;
|
|
12667
12778
|
justify-content: center;
|
|
12668
12779
|
`;
|
|
12669
|
-
var loadingDot =
|
|
12780
|
+
var loadingDot = css45`
|
|
12670
12781
|
background-color: var(--gray-700);
|
|
12671
12782
|
display: block;
|
|
12672
12783
|
border-radius: var(--rounded-full);
|
|
@@ -12690,12 +12801,12 @@ var loadingDot = css44`
|
|
|
12690
12801
|
`;
|
|
12691
12802
|
|
|
12692
12803
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
12693
|
-
import { jsx as
|
|
12804
|
+
import { jsx as jsx56, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
|
|
12694
12805
|
var LoadingIndicator = () => {
|
|
12695
|
-
return /* @__PURE__ */
|
|
12696
|
-
/* @__PURE__ */
|
|
12697
|
-
/* @__PURE__ */
|
|
12698
|
-
/* @__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 })
|
|
12699
12810
|
] });
|
|
12700
12811
|
};
|
|
12701
12812
|
|
|
@@ -12703,8 +12814,8 @@ var LoadingIndicator = () => {
|
|
|
12703
12814
|
import { useCallback as useCallback2, useEffect as useEffect6, useRef as useRef4 } from "react";
|
|
12704
12815
|
|
|
12705
12816
|
// src/components/LoadingOverlay/LoadingOverlay.styles.ts
|
|
12706
|
-
import { css as
|
|
12707
|
-
var loadingOverlayContainer =
|
|
12817
|
+
import { css as css46 } from "@emotion/react";
|
|
12818
|
+
var loadingOverlayContainer = css46`
|
|
12708
12819
|
position: absolute;
|
|
12709
12820
|
inset: 0;
|
|
12710
12821
|
overflow: hidden;
|
|
@@ -12712,30 +12823,30 @@ var loadingOverlayContainer = css45`
|
|
|
12712
12823
|
padding: var(--spacing-xl);
|
|
12713
12824
|
overflow-y: auto;
|
|
12714
12825
|
`;
|
|
12715
|
-
var loadingOverlayVisible =
|
|
12826
|
+
var loadingOverlayVisible = css46`
|
|
12716
12827
|
display: flex;
|
|
12717
12828
|
`;
|
|
12718
|
-
var loadingOverlayHidden =
|
|
12829
|
+
var loadingOverlayHidden = css46`
|
|
12719
12830
|
display: none;
|
|
12720
12831
|
`;
|
|
12721
|
-
var loadingOverlayBackground = (bgColor) =>
|
|
12832
|
+
var loadingOverlayBackground = (bgColor) => css46`
|
|
12722
12833
|
background: ${bgColor};
|
|
12723
12834
|
opacity: 0.92;
|
|
12724
12835
|
position: absolute;
|
|
12725
12836
|
inset: 0 0;
|
|
12726
12837
|
`;
|
|
12727
|
-
var loadingOverlayBody =
|
|
12838
|
+
var loadingOverlayBody = css46`
|
|
12728
12839
|
align-items: center;
|
|
12729
12840
|
display: flex;
|
|
12730
12841
|
flex-direction: column;
|
|
12731
12842
|
`;
|
|
12732
|
-
var loadingOverlayMessage =
|
|
12843
|
+
var loadingOverlayMessage = css46`
|
|
12733
12844
|
color: var(--gray-600);
|
|
12734
12845
|
margin: var(--spacing-base) 0 0;
|
|
12735
12846
|
`;
|
|
12736
12847
|
|
|
12737
12848
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
12738
|
-
import { jsx as
|
|
12849
|
+
import { jsx as jsx57, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
12739
12850
|
var LoadingOverlay = ({
|
|
12740
12851
|
isActive,
|
|
12741
12852
|
statusMessage,
|
|
@@ -12761,16 +12872,17 @@ var LoadingOverlay = ({
|
|
|
12761
12872
|
(_f = lottieRef.current) == null ? void 0 : _f.stop();
|
|
12762
12873
|
}
|
|
12763
12874
|
}, [isPaused]);
|
|
12764
|
-
return /* @__PURE__ */
|
|
12875
|
+
return /* @__PURE__ */ jsxs35(
|
|
12765
12876
|
"div",
|
|
12766
12877
|
{
|
|
12767
12878
|
role: "alert",
|
|
12768
12879
|
css: [loadingOverlayContainer, { zIndex }, isActive ? loadingOverlayVisible : loadingOverlayHidden],
|
|
12769
12880
|
"aria-hidden": !isActive,
|
|
12881
|
+
"aria-busy": isActive && !isPaused,
|
|
12770
12882
|
children: [
|
|
12771
|
-
/* @__PURE__ */
|
|
12772
|
-
/* @__PURE__ */
|
|
12773
|
-
/* @__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(
|
|
12774
12886
|
AnimationFile,
|
|
12775
12887
|
{
|
|
12776
12888
|
lottieRef,
|
|
@@ -12785,15 +12897,15 @@ var LoadingOverlay = ({
|
|
|
12785
12897
|
}
|
|
12786
12898
|
}
|
|
12787
12899
|
),
|
|
12788
|
-
statusMessage ? /* @__PURE__ */
|
|
12789
|
-
/* @__PURE__ */
|
|
12900
|
+
statusMessage ? /* @__PURE__ */ jsx57("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
|
|
12901
|
+
/* @__PURE__ */ jsx57("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
|
|
12790
12902
|
] }) })
|
|
12791
12903
|
]
|
|
12792
12904
|
}
|
|
12793
12905
|
);
|
|
12794
12906
|
};
|
|
12795
12907
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
12796
|
-
return /* @__PURE__ */
|
|
12908
|
+
return /* @__PURE__ */ jsx57(
|
|
12797
12909
|
"svg",
|
|
12798
12910
|
{
|
|
12799
12911
|
"data-testid": "svg",
|
|
@@ -12804,9 +12916,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
12804
12916
|
stroke: "currentColor",
|
|
12805
12917
|
...props,
|
|
12806
12918
|
"data-test-id": "loading-icon",
|
|
12807
|
-
children: /* @__PURE__ */
|
|
12808
|
-
/* @__PURE__ */
|
|
12809
|
-
/* @__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(
|
|
12810
12922
|
"animateTransform",
|
|
12811
12923
|
{
|
|
12812
12924
|
attributeName: "transform",
|
|
@@ -12823,12 +12935,12 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
12823
12935
|
};
|
|
12824
12936
|
|
|
12825
12937
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
12826
|
-
import { css as
|
|
12938
|
+
import { css as css48 } from "@emotion/react";
|
|
12827
12939
|
import { CgAdd as CgAdd2, CgChevronRight as CgChevronRight2 } from "react-icons/cg";
|
|
12828
12940
|
|
|
12829
12941
|
// src/components/Tiles/styles/IntegrationTile.styles.ts
|
|
12830
|
-
import { css as
|
|
12831
|
-
var IntegrationTileContainer =
|
|
12942
|
+
import { css as css47 } from "@emotion/react";
|
|
12943
|
+
var IntegrationTileContainer = css47`
|
|
12832
12944
|
align-items: center;
|
|
12833
12945
|
box-sizing: border-box;
|
|
12834
12946
|
border-radius: var(--rounded-base);
|
|
@@ -12859,22 +12971,22 @@ var IntegrationTileContainer = css46`
|
|
|
12859
12971
|
}
|
|
12860
12972
|
}
|
|
12861
12973
|
`;
|
|
12862
|
-
var IntegrationTileBtnDashedBorder =
|
|
12974
|
+
var IntegrationTileBtnDashedBorder = css47`
|
|
12863
12975
|
border: 1px dashed var(--brand-secondary-1);
|
|
12864
12976
|
`;
|
|
12865
|
-
var IntegrationTileTitle =
|
|
12977
|
+
var IntegrationTileTitle = css47`
|
|
12866
12978
|
display: block;
|
|
12867
12979
|
font-weight: var(--fw-bold);
|
|
12868
12980
|
margin: 0 0 var(--spacing-base);
|
|
12869
12981
|
max-width: 13rem;
|
|
12870
12982
|
`;
|
|
12871
|
-
var IntegrationTitleLogo =
|
|
12983
|
+
var IntegrationTitleLogo = css47`
|
|
12872
12984
|
display: block;
|
|
12873
12985
|
max-width: 10rem;
|
|
12874
12986
|
max-height: 4rem;
|
|
12875
12987
|
margin: 0 auto;
|
|
12876
12988
|
`;
|
|
12877
|
-
var IntegrationTileName =
|
|
12989
|
+
var IntegrationTileName = css47`
|
|
12878
12990
|
color: var(--gray-500);
|
|
12879
12991
|
display: -webkit-box;
|
|
12880
12992
|
-webkit-line-clamp: 1;
|
|
@@ -12887,7 +12999,7 @@ var IntegrationTileName = css46`
|
|
|
12887
12999
|
position: absolute;
|
|
12888
13000
|
bottom: calc(var(--spacing-base) * 3.8);
|
|
12889
13001
|
`;
|
|
12890
|
-
var IntegrationAddedText =
|
|
13002
|
+
var IntegrationAddedText = css47`
|
|
12891
13003
|
align-items: center;
|
|
12892
13004
|
background: var(--brand-secondary-3);
|
|
12893
13005
|
border-radius: 0 var(--rounded-md) 0 var(--rounded-md);
|
|
@@ -12902,7 +13014,7 @@ var IntegrationAddedText = css46`
|
|
|
12902
13014
|
top: 0;
|
|
12903
13015
|
right: 0;
|
|
12904
13016
|
`;
|
|
12905
|
-
var IntegrationCustomBadgeText = (theme) =>
|
|
13017
|
+
var IntegrationCustomBadgeText = (theme) => css47`
|
|
12906
13018
|
align-items: center;
|
|
12907
13019
|
border-radius: var(--rounded-sm) 0 var(--rounded-sm) 0;
|
|
12908
13020
|
background: ${theme === "gray" ? "var(--brand-secondary-2)" : "var(--brand-secondary-1)"};
|
|
@@ -12916,26 +13028,26 @@ var IntegrationCustomBadgeText = (theme) => css46`
|
|
|
12916
13028
|
top: 0;
|
|
12917
13029
|
left: 0;
|
|
12918
13030
|
`;
|
|
12919
|
-
var IntegrationAuthorBadgeIcon =
|
|
13031
|
+
var IntegrationAuthorBadgeIcon = css47`
|
|
12920
13032
|
position: absolute;
|
|
12921
13033
|
bottom: var(--spacing-sm);
|
|
12922
13034
|
right: var(--spacing-xs);
|
|
12923
13035
|
max-height: 1rem;
|
|
12924
13036
|
`;
|
|
12925
|
-
var IntegrationTitleFakeButton =
|
|
13037
|
+
var IntegrationTitleFakeButton = css47`
|
|
12926
13038
|
font-size: var(--fs-xs);
|
|
12927
13039
|
gap: var(--spacing-sm);
|
|
12928
13040
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
12929
13041
|
text-transform: uppercase;
|
|
12930
13042
|
`;
|
|
12931
|
-
var IntegrationTileFloatingButton =
|
|
13043
|
+
var IntegrationTileFloatingButton = css47`
|
|
12932
13044
|
position: absolute;
|
|
12933
13045
|
bottom: var(--spacing-base);
|
|
12934
13046
|
gap: var(--spacing-sm);
|
|
12935
13047
|
font-size: var(--fs-xs);
|
|
12936
13048
|
overflow: hidden;
|
|
12937
13049
|
`;
|
|
12938
|
-
var IntegrationTileFloatingButtonMessage = (clicked) =>
|
|
13050
|
+
var IntegrationTileFloatingButtonMessage = (clicked) => css47`
|
|
12939
13051
|
strong,
|
|
12940
13052
|
span:first-of-type {
|
|
12941
13053
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
@@ -12956,7 +13068,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => css46`
|
|
|
12956
13068
|
`;
|
|
12957
13069
|
|
|
12958
13070
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
12959
|
-
import { jsx as
|
|
13071
|
+
import { jsx as jsx58, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
12960
13072
|
var CreateTeamIntegrationTile = ({
|
|
12961
13073
|
title = "Create a custom integration for your team",
|
|
12962
13074
|
buttonText = "Add Integration",
|
|
@@ -12964,9 +13076,9 @@ var CreateTeamIntegrationTile = ({
|
|
|
12964
13076
|
asDeepLink = false,
|
|
12965
13077
|
...props
|
|
12966
13078
|
}) => {
|
|
12967
|
-
return /* @__PURE__ */
|
|
12968
|
-
/* @__PURE__ */
|
|
12969
|
-
/* @__PURE__ */
|
|
13079
|
+
return /* @__PURE__ */ jsxs36("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
13080
|
+
/* @__PURE__ */ jsx58("span", { css: IntegrationTileTitle, title, children: title }),
|
|
13081
|
+
/* @__PURE__ */ jsxs36(
|
|
12970
13082
|
Button,
|
|
12971
13083
|
{
|
|
12972
13084
|
buttonType: "tertiary",
|
|
@@ -12976,23 +13088,23 @@ var CreateTeamIntegrationTile = ({
|
|
|
12976
13088
|
css: IntegrationTitleFakeButton,
|
|
12977
13089
|
children: [
|
|
12978
13090
|
buttonText,
|
|
12979
|
-
asDeepLink ? /* @__PURE__ */
|
|
13091
|
+
asDeepLink ? /* @__PURE__ */ jsx58(
|
|
12980
13092
|
Icon,
|
|
12981
13093
|
{
|
|
12982
13094
|
icon: CgChevronRight2,
|
|
12983
13095
|
iconColor: "currentColor",
|
|
12984
13096
|
size: 20,
|
|
12985
|
-
css:
|
|
13097
|
+
css: css48`
|
|
12986
13098
|
order: 1;
|
|
12987
13099
|
`
|
|
12988
13100
|
}
|
|
12989
|
-
) : /* @__PURE__ */
|
|
13101
|
+
) : /* @__PURE__ */ jsx58(
|
|
12990
13102
|
Icon,
|
|
12991
13103
|
{
|
|
12992
13104
|
icon: CgAdd2,
|
|
12993
13105
|
iconColor: "currentColor",
|
|
12994
13106
|
size: 16,
|
|
12995
|
-
css:
|
|
13107
|
+
css: css48`
|
|
12996
13108
|
order: -1;
|
|
12997
13109
|
`
|
|
12998
13110
|
}
|
|
@@ -13005,31 +13117,31 @@ var CreateTeamIntegrationTile = ({
|
|
|
13005
13117
|
|
|
13006
13118
|
// src/components/Tiles/IntegrationBadges.tsx
|
|
13007
13119
|
import { CgCheck as CgCheck2, CgLock, CgSandClock } from "react-icons/cg";
|
|
13008
|
-
import { jsx as
|
|
13120
|
+
import { jsx as jsx59, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
|
|
13009
13121
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
13010
|
-
return /* @__PURE__ */
|
|
13011
|
-
/* @__PURE__ */
|
|
13122
|
+
return /* @__PURE__ */ jsxs37("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
13123
|
+
/* @__PURE__ */ jsx59(Icon, { icon: CgCheck2, iconColor: "currentColor" }),
|
|
13012
13124
|
text
|
|
13013
13125
|
] });
|
|
13014
13126
|
};
|
|
13015
13127
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
13016
|
-
return /* @__PURE__ */
|
|
13128
|
+
return /* @__PURE__ */ jsx59("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
13017
13129
|
};
|
|
13018
13130
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
13019
|
-
return /* @__PURE__ */
|
|
13020
|
-
/* @__PURE__ */
|
|
13131
|
+
return /* @__PURE__ */ jsxs37("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
13132
|
+
/* @__PURE__ */ jsx59(Icon, { icon: CgLock, iconColor: "currentColor", size: 12 }),
|
|
13021
13133
|
text
|
|
13022
13134
|
] });
|
|
13023
13135
|
};
|
|
13024
13136
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
13025
|
-
return /* @__PURE__ */
|
|
13026
|
-
/* @__PURE__ */
|
|
13137
|
+
return /* @__PURE__ */ jsxs37("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
13138
|
+
/* @__PURE__ */ jsx59(Icon, { icon: CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
13027
13139
|
text
|
|
13028
13140
|
] });
|
|
13029
13141
|
};
|
|
13030
13142
|
|
|
13031
13143
|
// src/components/Tiles/ResolveIcon.tsx
|
|
13032
|
-
import { jsx as
|
|
13144
|
+
import { jsx as jsx60 } from "@emotion/react/jsx-runtime";
|
|
13033
13145
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
13034
13146
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
13035
13147
|
const mapClassName = {
|
|
@@ -13037,13 +13149,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
13037
13149
|
logo: IntegrationTitleLogo
|
|
13038
13150
|
};
|
|
13039
13151
|
if (icon) {
|
|
13040
|
-
return CompIcon ? /* @__PURE__ */
|
|
13152
|
+
return CompIcon ? /* @__PURE__ */ jsx60(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ jsx60("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
13041
13153
|
}
|
|
13042
13154
|
return null;
|
|
13043
13155
|
};
|
|
13044
13156
|
|
|
13045
13157
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
13046
|
-
import { jsx as
|
|
13158
|
+
import { jsx as jsx61, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
|
|
13047
13159
|
var EditTeamIntegrationTile = ({
|
|
13048
13160
|
id,
|
|
13049
13161
|
icon,
|
|
@@ -13052,17 +13164,17 @@ var EditTeamIntegrationTile = ({
|
|
|
13052
13164
|
isPublic,
|
|
13053
13165
|
canEdit = false
|
|
13054
13166
|
}) => {
|
|
13055
|
-
return /* @__PURE__ */
|
|
13167
|
+
return /* @__PURE__ */ jsxs38(
|
|
13056
13168
|
"div",
|
|
13057
13169
|
{
|
|
13058
13170
|
css: IntegrationTileContainer,
|
|
13059
13171
|
"data-testid": "configure-integration-container",
|
|
13060
13172
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
13061
13173
|
children: [
|
|
13062
|
-
/* @__PURE__ */
|
|
13063
|
-
/* @__PURE__ */
|
|
13064
|
-
!isPublic ? /* @__PURE__ */
|
|
13065
|
-
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(
|
|
13066
13178
|
Button,
|
|
13067
13179
|
{
|
|
13068
13180
|
buttonType: "unimportant",
|
|
@@ -13080,10 +13192,10 @@ var EditTeamIntegrationTile = ({
|
|
|
13080
13192
|
};
|
|
13081
13193
|
|
|
13082
13194
|
// src/components/Tiles/IntegrationComingSoon.tsx
|
|
13083
|
-
import { css as
|
|
13195
|
+
import { css as css49 } from "@emotion/react";
|
|
13084
13196
|
import { useEffect as useEffect7, useState as useState6 } from "react";
|
|
13085
13197
|
import { CgHeart } from "react-icons/cg";
|
|
13086
|
-
import { jsx as
|
|
13198
|
+
import { jsx as jsx62, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
13087
13199
|
var IntegrationComingSoon = ({
|
|
13088
13200
|
name,
|
|
13089
13201
|
icon,
|
|
@@ -13105,17 +13217,17 @@ var IntegrationComingSoon = ({
|
|
|
13105
13217
|
};
|
|
13106
13218
|
}
|
|
13107
13219
|
}, [upVote, setUpVote, timing]);
|
|
13108
|
-
return /* @__PURE__ */
|
|
13220
|
+
return /* @__PURE__ */ jsxs39(
|
|
13109
13221
|
"div",
|
|
13110
13222
|
{
|
|
13111
13223
|
css: IntegrationTileContainer,
|
|
13112
13224
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
13113
13225
|
...props,
|
|
13114
13226
|
children: [
|
|
13115
|
-
/* @__PURE__ */
|
|
13116
|
-
/* @__PURE__ */
|
|
13117
|
-
/* @__PURE__ */
|
|
13118
|
-
/* @__PURE__ */
|
|
13227
|
+
/* @__PURE__ */ jsx62(IntegrationComingSoonBadge, {}),
|
|
13228
|
+
/* @__PURE__ */ jsx62(ResolveIcon, { icon, name }),
|
|
13229
|
+
/* @__PURE__ */ jsx62("span", { css: IntegrationTileName, title: name, children: name }),
|
|
13230
|
+
/* @__PURE__ */ jsxs39(
|
|
13119
13231
|
Button,
|
|
13120
13232
|
{
|
|
13121
13233
|
buttonType: "unimportant",
|
|
@@ -13125,19 +13237,19 @@ var IntegrationComingSoon = ({
|
|
|
13125
13237
|
role: "link",
|
|
13126
13238
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
13127
13239
|
children: [
|
|
13128
|
-
/* @__PURE__ */
|
|
13129
|
-
/* @__PURE__ */
|
|
13240
|
+
/* @__PURE__ */ jsx62("strong", { children: "+1" }),
|
|
13241
|
+
/* @__PURE__ */ jsx62(
|
|
13130
13242
|
"span",
|
|
13131
13243
|
{
|
|
13132
|
-
css:
|
|
13244
|
+
css: css49`
|
|
13133
13245
|
text-transform: uppercase;
|
|
13134
13246
|
color: var(--gray-500);
|
|
13135
13247
|
`,
|
|
13136
13248
|
children: "(I want this)"
|
|
13137
13249
|
}
|
|
13138
13250
|
),
|
|
13139
|
-
/* @__PURE__ */
|
|
13140
|
-
/* @__PURE__ */
|
|
13251
|
+
/* @__PURE__ */ jsxs39("span", { "aria-hidden": !upVote, children: [
|
|
13252
|
+
/* @__PURE__ */ jsx62(Icon, { icon: CgHeart, iconColor: "currentColor", size: 18 }),
|
|
13141
13253
|
"Thanks!"
|
|
13142
13254
|
] })
|
|
13143
13255
|
]
|
|
@@ -13149,8 +13261,8 @@ var IntegrationComingSoon = ({
|
|
|
13149
13261
|
};
|
|
13150
13262
|
|
|
13151
13263
|
// src/components/Tiles/styles/IntegrationLoadingTile.styles.ts
|
|
13152
|
-
import { css as
|
|
13153
|
-
var IntegrationLoadingTileContainer =
|
|
13264
|
+
import { css as css50 } from "@emotion/react";
|
|
13265
|
+
var IntegrationLoadingTileContainer = css50`
|
|
13154
13266
|
align-items: center;
|
|
13155
13267
|
box-sizing: border-box;
|
|
13156
13268
|
border-radius: var(--rounded-base);
|
|
@@ -13177,39 +13289,39 @@ var IntegrationLoadingTileContainer = css49`
|
|
|
13177
13289
|
}
|
|
13178
13290
|
}
|
|
13179
13291
|
`;
|
|
13180
|
-
var IntegrationLoadingTileImg =
|
|
13292
|
+
var IntegrationLoadingTileImg = css50`
|
|
13181
13293
|
width: 10rem;
|
|
13182
13294
|
height: 4rem;
|
|
13183
13295
|
margin: 0 auto;
|
|
13184
13296
|
`;
|
|
13185
|
-
var IntegrationLoadingTileText =
|
|
13297
|
+
var IntegrationLoadingTileText = css50`
|
|
13186
13298
|
width: 5rem;
|
|
13187
13299
|
height: var(--spacing-sm);
|
|
13188
13300
|
margin: var(--spacing-sm) 0;
|
|
13189
13301
|
`;
|
|
13190
|
-
var IntegrationLoadingFrame =
|
|
13302
|
+
var IntegrationLoadingFrame = css50`
|
|
13191
13303
|
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
13192
13304
|
border-radius: var(--rounded-base);
|
|
13193
13305
|
`;
|
|
13194
13306
|
|
|
13195
13307
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
13196
|
-
import { Fragment as Fragment7, jsx as
|
|
13308
|
+
import { Fragment as Fragment7, jsx as jsx63, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
|
|
13197
13309
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
13198
13310
|
const componentCount = Array.from(Array(count).keys());
|
|
13199
|
-
return /* @__PURE__ */
|
|
13200
|
-
/* @__PURE__ */
|
|
13201
|
-
/* @__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] })
|
|
13202
13314
|
] }, i)) });
|
|
13203
13315
|
};
|
|
13204
13316
|
|
|
13205
13317
|
// src/components/Tiles/styles/IntegrationModalIcon.styles.ts
|
|
13206
|
-
import { css as
|
|
13207
|
-
var IntegrationModalIconContainer =
|
|
13318
|
+
import { css as css51 } from "@emotion/react";
|
|
13319
|
+
var IntegrationModalIconContainer = css51`
|
|
13208
13320
|
position: relative;
|
|
13209
13321
|
width: 50px;
|
|
13210
13322
|
margin-bottom: var(--spacing-base);
|
|
13211
13323
|
`;
|
|
13212
|
-
var IntegrationModalImage =
|
|
13324
|
+
var IntegrationModalImage = css51`
|
|
13213
13325
|
position: absolute;
|
|
13214
13326
|
inset: 0;
|
|
13215
13327
|
margin: auto;
|
|
@@ -13218,12 +13330,12 @@ var IntegrationModalImage = css50`
|
|
|
13218
13330
|
`;
|
|
13219
13331
|
|
|
13220
13332
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
13221
|
-
import { jsx as
|
|
13333
|
+
import { jsx as jsx64, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
13222
13334
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
13223
13335
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
13224
|
-
return /* @__PURE__ */
|
|
13225
|
-
/* @__PURE__ */
|
|
13226
|
-
/* @__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(
|
|
13227
13339
|
"path",
|
|
13228
13340
|
{
|
|
13229
13341
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -13232,12 +13344,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
13232
13344
|
strokeWidth: "2"
|
|
13233
13345
|
}
|
|
13234
13346
|
),
|
|
13235
|
-
/* @__PURE__ */
|
|
13236
|
-
/* @__PURE__ */
|
|
13237
|
-
/* @__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" })
|
|
13238
13350
|
] }) })
|
|
13239
13351
|
] }),
|
|
13240
|
-
CompIcon ? /* @__PURE__ */
|
|
13352
|
+
CompIcon ? /* @__PURE__ */ jsx64(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : /* @__PURE__ */ jsx64(
|
|
13241
13353
|
"img",
|
|
13242
13354
|
{
|
|
13243
13355
|
src: icon,
|
|
@@ -13251,7 +13363,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
13251
13363
|
};
|
|
13252
13364
|
|
|
13253
13365
|
// src/components/Tiles/IntegrationTile.tsx
|
|
13254
|
-
import { jsx as
|
|
13366
|
+
import { jsx as jsx65, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
13255
13367
|
var IntegrationTile = ({
|
|
13256
13368
|
id,
|
|
13257
13369
|
icon,
|
|
@@ -13263,7 +13375,7 @@ var IntegrationTile = ({
|
|
|
13263
13375
|
authorIcon,
|
|
13264
13376
|
...btnProps
|
|
13265
13377
|
}) => {
|
|
13266
|
-
return /* @__PURE__ */
|
|
13378
|
+
return /* @__PURE__ */ jsxs42(
|
|
13267
13379
|
"button",
|
|
13268
13380
|
{
|
|
13269
13381
|
type: "button",
|
|
@@ -13273,70 +13385,70 @@ var IntegrationTile = ({
|
|
|
13273
13385
|
"aria-label": name,
|
|
13274
13386
|
...btnProps,
|
|
13275
13387
|
children: [
|
|
13276
|
-
/* @__PURE__ */
|
|
13277
|
-
/* @__PURE__ */
|
|
13278
|
-
isInstalled ? /* @__PURE__ */
|
|
13279
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */
|
|
13280
|
-
!isPublic ? /* @__PURE__ */
|
|
13281
|
-
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
|
|
13282
13394
|
]
|
|
13283
13395
|
}
|
|
13284
13396
|
);
|
|
13285
13397
|
};
|
|
13286
13398
|
|
|
13287
13399
|
// src/components/Tiles/styles/TileContainer.styles.ts
|
|
13288
|
-
import { css as
|
|
13289
|
-
var TileContainerWrapper =
|
|
13400
|
+
import { css as css52 } from "@emotion/react";
|
|
13401
|
+
var TileContainerWrapper = css52`
|
|
13290
13402
|
background: var(--brand-secondary-2);
|
|
13291
13403
|
padding: var(--spacing-base);
|
|
13292
13404
|
margin-bottom: var(--spacing-lg);
|
|
13293
13405
|
`;
|
|
13294
|
-
var TileContainerInner =
|
|
13406
|
+
var TileContainerInner = css52`
|
|
13295
13407
|
display: grid;
|
|
13296
13408
|
grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
|
|
13297
13409
|
gap: var(--spacing-base);
|
|
13298
13410
|
`;
|
|
13299
13411
|
|
|
13300
13412
|
// src/components/Tiles/TileContainer.tsx
|
|
13301
|
-
import { jsx as
|
|
13413
|
+
import { jsx as jsx66 } from "@emotion/react/jsx-runtime";
|
|
13302
13414
|
var TileContainer = ({ children, ...props }) => {
|
|
13303
|
-
return /* @__PURE__ */
|
|
13415
|
+
return /* @__PURE__ */ jsx66("div", { css: TileContainerWrapper, ...props, children: /* @__PURE__ */ jsx66("div", { css: TileContainerInner, children }) });
|
|
13304
13416
|
};
|
|
13305
13417
|
|
|
13306
13418
|
// src/components/Modal/IntegrationModalHeader.styles.ts
|
|
13307
|
-
import { css as
|
|
13308
|
-
var IntegrationModalHeaderSVGBackground =
|
|
13419
|
+
import { css as css53 } from "@emotion/react";
|
|
13420
|
+
var IntegrationModalHeaderSVGBackground = css53`
|
|
13309
13421
|
position: absolute;
|
|
13310
13422
|
top: 0;
|
|
13311
13423
|
left: 0;
|
|
13312
13424
|
`;
|
|
13313
|
-
var IntegrationModalHeaderGroup =
|
|
13425
|
+
var IntegrationModalHeaderGroup = css53`
|
|
13314
13426
|
align-items: center;
|
|
13315
13427
|
display: flex;
|
|
13316
13428
|
gap: var(--spacing-sm);
|
|
13317
13429
|
margin: 0 0 var(--spacing-md);
|
|
13318
13430
|
position: relative;
|
|
13319
13431
|
`;
|
|
13320
|
-
var IntegrationModalHeaderTitleGroup =
|
|
13432
|
+
var IntegrationModalHeaderTitleGroup = css53`
|
|
13321
13433
|
align-items: center;
|
|
13322
13434
|
display: flex;
|
|
13323
13435
|
gap: var(--spacing-base);
|
|
13324
13436
|
`;
|
|
13325
|
-
var IntegrationModalHeaderTitle =
|
|
13437
|
+
var IntegrationModalHeaderTitle = css53`
|
|
13326
13438
|
margin-top: 0;
|
|
13327
13439
|
`;
|
|
13328
|
-
var IntegrationModalHeaderMenuPlacement =
|
|
13440
|
+
var IntegrationModalHeaderMenuPlacement = css53`
|
|
13329
13441
|
margin-bottom: var(--spacing-base);
|
|
13330
13442
|
`;
|
|
13331
|
-
var IntegrationModalHeaderContentWrapper =
|
|
13443
|
+
var IntegrationModalHeaderContentWrapper = css53`
|
|
13332
13444
|
position: relative;
|
|
13333
13445
|
z-index: var(--z-10);
|
|
13334
13446
|
`;
|
|
13335
13447
|
|
|
13336
13448
|
// src/components/Modal/IntegrationModalHeader.tsx
|
|
13337
|
-
import { Fragment as Fragment8, jsx as
|
|
13449
|
+
import { Fragment as Fragment8, jsx as jsx67, jsxs as jsxs43 } from "@emotion/react/jsx-runtime";
|
|
13338
13450
|
var HexModalBackground = ({ ...props }) => {
|
|
13339
|
-
return /* @__PURE__ */
|
|
13451
|
+
return /* @__PURE__ */ jsxs43(
|
|
13340
13452
|
"svg",
|
|
13341
13453
|
{
|
|
13342
13454
|
width: "236",
|
|
@@ -13346,7 +13458,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13346
13458
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13347
13459
|
...props,
|
|
13348
13460
|
children: [
|
|
13349
|
-
/* @__PURE__ */
|
|
13461
|
+
/* @__PURE__ */ jsx67(
|
|
13350
13462
|
"path",
|
|
13351
13463
|
{
|
|
13352
13464
|
fillRule: "evenodd",
|
|
@@ -13355,7 +13467,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13355
13467
|
fill: "url(#paint0_linear_196_2737)"
|
|
13356
13468
|
}
|
|
13357
13469
|
),
|
|
13358
|
-
/* @__PURE__ */
|
|
13470
|
+
/* @__PURE__ */ jsx67("defs", { children: /* @__PURE__ */ jsxs43(
|
|
13359
13471
|
"linearGradient",
|
|
13360
13472
|
{
|
|
13361
13473
|
id: "paint0_linear_196_2737",
|
|
@@ -13365,8 +13477,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13365
13477
|
y2: "-95.2742",
|
|
13366
13478
|
gradientUnits: "userSpaceOnUse",
|
|
13367
13479
|
children: [
|
|
13368
|
-
/* @__PURE__ */
|
|
13369
|
-
/* @__PURE__ */
|
|
13480
|
+
/* @__PURE__ */ jsx67("stop", { stopColor: "#81DCDE" }),
|
|
13481
|
+
/* @__PURE__ */ jsx67("stop", { offset: "1", stopColor: "#428ED4" })
|
|
13370
13482
|
]
|
|
13371
13483
|
}
|
|
13372
13484
|
) })
|
|
@@ -13375,17 +13487,17 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13375
13487
|
);
|
|
13376
13488
|
};
|
|
13377
13489
|
var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
13378
|
-
return /* @__PURE__ */
|
|
13379
|
-
/* @__PURE__ */
|
|
13380
|
-
/* @__PURE__ */
|
|
13381
|
-
icon ? /* @__PURE__ */
|
|
13382
|
-
/* @__PURE__ */
|
|
13383
|
-
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: [
|
|
13384
13496
|
menu2,
|
|
13385
13497
|
" "
|
|
13386
13498
|
] }) : null
|
|
13387
13499
|
] }) }),
|
|
13388
|
-
/* @__PURE__ */
|
|
13500
|
+
/* @__PURE__ */ jsx67("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
13389
13501
|
] });
|
|
13390
13502
|
};
|
|
13391
13503
|
|
|
@@ -13399,8 +13511,8 @@ import {
|
|
|
13399
13511
|
} from "reakit/Tooltip";
|
|
13400
13512
|
|
|
13401
13513
|
// src/components/Tooltip/Tooltip.styles.ts
|
|
13402
|
-
import { css as
|
|
13403
|
-
var TooltipContainer =
|
|
13514
|
+
import { css as css54 } from "@emotion/react";
|
|
13515
|
+
var TooltipContainer = css54`
|
|
13404
13516
|
border: 2px solid var(--gray-300);
|
|
13405
13517
|
border-radius: var(--rounded-base);
|
|
13406
13518
|
padding: var(--spacing-xs) var(--spacing-sm);
|
|
@@ -13408,28 +13520,28 @@ var TooltipContainer = css53`
|
|
|
13408
13520
|
font-size: var(--fs-xs);
|
|
13409
13521
|
background: var(--white);
|
|
13410
13522
|
`;
|
|
13411
|
-
var TooltipArrowStyles =
|
|
13523
|
+
var TooltipArrowStyles = css54`
|
|
13412
13524
|
svg {
|
|
13413
13525
|
fill: var(--gray-300);
|
|
13414
13526
|
}
|
|
13415
13527
|
`;
|
|
13416
13528
|
|
|
13417
13529
|
// src/components/Tooltip/Tooltip.tsx
|
|
13418
|
-
import { Fragment as Fragment9, jsx as
|
|
13530
|
+
import { Fragment as Fragment9, jsx as jsx68, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
13419
13531
|
function Tooltip({ children, title, placement = "bottom", visible, ...props }) {
|
|
13420
13532
|
const tooltip = useTooltipState({ placement });
|
|
13421
|
-
return /* @__PURE__ */
|
|
13422
|
-
/* @__PURE__ */
|
|
13423
|
-
!title ? null : /* @__PURE__ */
|
|
13424
|
-
/* @__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 }),
|
|
13425
13537
|
title
|
|
13426
13538
|
] })
|
|
13427
13539
|
] });
|
|
13428
13540
|
}
|
|
13429
13541
|
|
|
13430
13542
|
// src/components/ParameterInputs/styles/ParameterBindingButton.styles.ts
|
|
13431
|
-
import { css as
|
|
13432
|
-
var inputIconBtn =
|
|
13543
|
+
import { css as css55 } from "@emotion/react";
|
|
13544
|
+
var inputIconBtn = css55`
|
|
13433
13545
|
align-items: center;
|
|
13434
13546
|
border: none;
|
|
13435
13547
|
border-radius: var(--rounded-base);
|
|
@@ -13452,7 +13564,7 @@ var inputIconBtn = css54`
|
|
|
13452
13564
|
`;
|
|
13453
13565
|
|
|
13454
13566
|
// src/components/ParameterInputs/ConnectToDataElementButton.tsx
|
|
13455
|
-
import { jsx as
|
|
13567
|
+
import { jsx as jsx69, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
|
|
13456
13568
|
var ConnectToDataElementButton = ({
|
|
13457
13569
|
icon,
|
|
13458
13570
|
iconColor,
|
|
@@ -13462,7 +13574,7 @@ var ConnectToDataElementButton = ({
|
|
|
13462
13574
|
...props
|
|
13463
13575
|
}) => {
|
|
13464
13576
|
const title = isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
13465
|
-
return /* @__PURE__ */
|
|
13577
|
+
return /* @__PURE__ */ jsx69(Tooltip, { title, children: /* @__PURE__ */ jsxs45(
|
|
13466
13578
|
"button",
|
|
13467
13579
|
{
|
|
13468
13580
|
css: inputIconBtn,
|
|
@@ -13471,7 +13583,7 @@ var ConnectToDataElementButton = ({
|
|
|
13471
13583
|
"aria-disabled": isLocked,
|
|
13472
13584
|
...props,
|
|
13473
13585
|
children: [
|
|
13474
|
-
/* @__PURE__ */
|
|
13586
|
+
/* @__PURE__ */ jsx69(
|
|
13475
13587
|
Icon,
|
|
13476
13588
|
{
|
|
13477
13589
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -13507,8 +13619,8 @@ var useParameterShell = () => {
|
|
|
13507
13619
|
};
|
|
13508
13620
|
|
|
13509
13621
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
13510
|
-
import { css as
|
|
13511
|
-
var inputContainer2 =
|
|
13622
|
+
import { css as css56 } from "@emotion/react";
|
|
13623
|
+
var inputContainer2 = css56`
|
|
13512
13624
|
position: relative;
|
|
13513
13625
|
|
|
13514
13626
|
&:hover,
|
|
@@ -13520,14 +13632,14 @@ var inputContainer2 = css55`
|
|
|
13520
13632
|
}
|
|
13521
13633
|
}
|
|
13522
13634
|
`;
|
|
13523
|
-
var labelText2 =
|
|
13635
|
+
var labelText2 = css56`
|
|
13524
13636
|
align-items: center;
|
|
13525
13637
|
display: flex;
|
|
13526
13638
|
gap: var(--spacing-xs);
|
|
13527
13639
|
font-weight: var(--fw-regular);
|
|
13528
13640
|
margin: 0 0 var(--spacing-xs);
|
|
13529
13641
|
`;
|
|
13530
|
-
var input2 =
|
|
13642
|
+
var input2 = css56`
|
|
13531
13643
|
display: block;
|
|
13532
13644
|
appearance: none;
|
|
13533
13645
|
box-sizing: border-box;
|
|
@@ -13571,18 +13683,18 @@ var input2 = css55`
|
|
|
13571
13683
|
color: var(--gray-400);
|
|
13572
13684
|
}
|
|
13573
13685
|
`;
|
|
13574
|
-
var selectInput =
|
|
13686
|
+
var selectInput = css56`
|
|
13575
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");
|
|
13576
13688
|
background-position: right var(--spacing-sm) center;
|
|
13577
13689
|
background-repeat: no-repeat;
|
|
13578
13690
|
background-size: 1rem;
|
|
13579
13691
|
padding-right: var(--spacing-xl);
|
|
13580
13692
|
`;
|
|
13581
|
-
var inputWrapper =
|
|
13693
|
+
var inputWrapper = css56`
|
|
13582
13694
|
display: flex; // used to correct overflow with chrome textarea
|
|
13583
13695
|
position: relative;
|
|
13584
13696
|
`;
|
|
13585
|
-
var inputIcon2 =
|
|
13697
|
+
var inputIcon2 = css56`
|
|
13586
13698
|
align-items: center;
|
|
13587
13699
|
background: var(--white);
|
|
13588
13700
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -13598,7 +13710,7 @@ var inputIcon2 = css55`
|
|
|
13598
13710
|
width: var(--spacing-lg);
|
|
13599
13711
|
z-index: var(--z-10);
|
|
13600
13712
|
`;
|
|
13601
|
-
var inputToggleLabel2 =
|
|
13713
|
+
var inputToggleLabel2 = css56`
|
|
13602
13714
|
align-items: center;
|
|
13603
13715
|
background: var(--white);
|
|
13604
13716
|
cursor: pointer;
|
|
@@ -13609,7 +13721,7 @@ var inputToggleLabel2 = css55`
|
|
|
13609
13721
|
min-height: var(--spacing-md);
|
|
13610
13722
|
position: relative;
|
|
13611
13723
|
`;
|
|
13612
|
-
var toggleInput2 =
|
|
13724
|
+
var toggleInput2 = css56`
|
|
13613
13725
|
appearance: none;
|
|
13614
13726
|
border: 1px solid var(--gray-300);
|
|
13615
13727
|
background: var(--white);
|
|
@@ -13648,7 +13760,7 @@ var toggleInput2 = css55`
|
|
|
13648
13760
|
border-color: var(--gray-300);
|
|
13649
13761
|
}
|
|
13650
13762
|
`;
|
|
13651
|
-
var inlineLabel2 =
|
|
13763
|
+
var inlineLabel2 = css56`
|
|
13652
13764
|
padding-left: var(--spacing-lg);
|
|
13653
13765
|
font-size: var(--fs-sm);
|
|
13654
13766
|
font-weight: var(--fw-regular);
|
|
@@ -13664,7 +13776,7 @@ var inlineLabel2 = css55`
|
|
|
13664
13776
|
}
|
|
13665
13777
|
}
|
|
13666
13778
|
`;
|
|
13667
|
-
var inputMenu =
|
|
13779
|
+
var inputMenu = css56`
|
|
13668
13780
|
background: none;
|
|
13669
13781
|
border: none;
|
|
13670
13782
|
padding: var(--spacing-2xs);
|
|
@@ -13680,14 +13792,14 @@ var inputMenu = css55`
|
|
|
13680
13792
|
background-color: var(--gray-200);
|
|
13681
13793
|
}
|
|
13682
13794
|
`;
|
|
13683
|
-
var textarea2 =
|
|
13795
|
+
var textarea2 = css56`
|
|
13684
13796
|
resize: vertical;
|
|
13685
13797
|
min-height: 2rem;
|
|
13686
13798
|
`;
|
|
13687
|
-
var imageWrapper =
|
|
13799
|
+
var imageWrapper = css56`
|
|
13688
13800
|
background: var(--white);
|
|
13689
13801
|
`;
|
|
13690
|
-
var img =
|
|
13802
|
+
var img = css56`
|
|
13691
13803
|
animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
13692
13804
|
object-fit: contain;
|
|
13693
13805
|
max-width: 100%;
|
|
@@ -13695,7 +13807,7 @@ var img = css55`
|
|
|
13695
13807
|
opacity: var(--opacity-0);
|
|
13696
13808
|
margin: var(--spacing-sm) auto 0;
|
|
13697
13809
|
`;
|
|
13698
|
-
var dataConnectButton =
|
|
13810
|
+
var dataConnectButton = css56`
|
|
13699
13811
|
align-items: center;
|
|
13700
13812
|
appearance: none;
|
|
13701
13813
|
box-sizing: border-box;
|
|
@@ -13730,7 +13842,7 @@ var dataConnectButton = css55`
|
|
|
13730
13842
|
pointer-events: none;
|
|
13731
13843
|
}
|
|
13732
13844
|
`;
|
|
13733
|
-
var linkParameterBtn =
|
|
13845
|
+
var linkParameterBtn = css56`
|
|
13734
13846
|
border-radius: var(--rounded-base);
|
|
13735
13847
|
background: var(--white);
|
|
13736
13848
|
border: none;
|
|
@@ -13742,10 +13854,10 @@ var linkParameterBtn = css55`
|
|
|
13742
13854
|
inset: 0 var(--spacing-base) 0 auto;
|
|
13743
13855
|
padding: 0 var(--spacing-base);
|
|
13744
13856
|
`;
|
|
13745
|
-
var linkParameterInput =
|
|
13857
|
+
var linkParameterInput = css56`
|
|
13746
13858
|
padding-right: calc(var(--spacing-2xl) + var(--spacing-base));
|
|
13747
13859
|
`;
|
|
13748
|
-
var linkParameterIcon =
|
|
13860
|
+
var linkParameterIcon = css56`
|
|
13749
13861
|
align-items: center;
|
|
13750
13862
|
color: var(--brand-secondary-3);
|
|
13751
13863
|
display: flex;
|
|
@@ -13760,7 +13872,7 @@ var linkParameterIcon = css55`
|
|
|
13760
13872
|
`;
|
|
13761
13873
|
|
|
13762
13874
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
13763
|
-
import { jsx as
|
|
13875
|
+
import { jsx as jsx70, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
13764
13876
|
function ParameterDataResource({
|
|
13765
13877
|
label,
|
|
13766
13878
|
labelLeadingIcon,
|
|
@@ -13770,12 +13882,12 @@ function ParameterDataResource({
|
|
|
13770
13882
|
disabled,
|
|
13771
13883
|
children
|
|
13772
13884
|
}) {
|
|
13773
|
-
return /* @__PURE__ */
|
|
13774
|
-
/* @__PURE__ */
|
|
13885
|
+
return /* @__PURE__ */ jsxs46("div", { "data-testid": "parameter-data-connect-button", children: [
|
|
13886
|
+
/* @__PURE__ */ jsxs46("span", { css: labelText2, children: [
|
|
13775
13887
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
13776
13888
|
label
|
|
13777
13889
|
] }),
|
|
13778
|
-
/* @__PURE__ */
|
|
13890
|
+
/* @__PURE__ */ jsxs46(
|
|
13779
13891
|
"button",
|
|
13780
13892
|
{
|
|
13781
13893
|
type: "button",
|
|
@@ -13784,30 +13896,30 @@ function ParameterDataResource({
|
|
|
13784
13896
|
disabled,
|
|
13785
13897
|
onClick: onConnectDatasource,
|
|
13786
13898
|
children: [
|
|
13787
|
-
/* @__PURE__ */
|
|
13899
|
+
/* @__PURE__ */ jsx70("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx70(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
13788
13900
|
children
|
|
13789
13901
|
]
|
|
13790
13902
|
}
|
|
13791
13903
|
),
|
|
13792
|
-
caption ? /* @__PURE__ */
|
|
13904
|
+
caption ? /* @__PURE__ */ jsx70(Caption, { children: caption }) : null
|
|
13793
13905
|
] });
|
|
13794
13906
|
}
|
|
13795
13907
|
|
|
13796
13908
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
13797
|
-
import { css as
|
|
13798
|
-
var ParameterDrawerHeaderContainer =
|
|
13909
|
+
import { css as css57 } from "@emotion/react";
|
|
13910
|
+
var ParameterDrawerHeaderContainer = css57`
|
|
13799
13911
|
align-items: center;
|
|
13800
13912
|
display: flex;
|
|
13801
13913
|
gap: var(--spacing-base);
|
|
13802
13914
|
justify-content: space-between;
|
|
13803
13915
|
margin-bottom: var(--spacing-sm);
|
|
13804
13916
|
`;
|
|
13805
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
13917
|
+
var ParameterDrawerHeaderTitleGroup = css57`
|
|
13806
13918
|
align-items: center;
|
|
13807
13919
|
display: flex;
|
|
13808
13920
|
gap: var(--spacing-sm);
|
|
13809
13921
|
`;
|
|
13810
|
-
var ParameterDrawerHeaderTitle =
|
|
13922
|
+
var ParameterDrawerHeaderTitle = css57`
|
|
13811
13923
|
text-overflow: ellipsis;
|
|
13812
13924
|
white-space: nowrap;
|
|
13813
13925
|
overflow: hidden;
|
|
@@ -13815,12 +13927,12 @@ var ParameterDrawerHeaderTitle = css56`
|
|
|
13815
13927
|
`;
|
|
13816
13928
|
|
|
13817
13929
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
13818
|
-
import { jsx as
|
|
13930
|
+
import { jsx as jsx71, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
13819
13931
|
var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
13820
|
-
return /* @__PURE__ */
|
|
13821
|
-
/* @__PURE__ */
|
|
13932
|
+
return /* @__PURE__ */ jsxs47("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
13933
|
+
/* @__PURE__ */ jsxs47("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
13822
13934
|
iconBeforeTitle,
|
|
13823
|
-
/* @__PURE__ */
|
|
13935
|
+
/* @__PURE__ */ jsx71(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
|
|
13824
13936
|
] }),
|
|
13825
13937
|
children
|
|
13826
13938
|
] });
|
|
@@ -13830,8 +13942,8 @@ var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
|
13830
13942
|
import { forwardRef as forwardRef7 } from "react";
|
|
13831
13943
|
|
|
13832
13944
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
13833
|
-
import { css as
|
|
13834
|
-
var fieldsetStyles =
|
|
13945
|
+
import { css as css58 } from "@emotion/react";
|
|
13946
|
+
var fieldsetStyles = css58`
|
|
13835
13947
|
&:disabled,
|
|
13836
13948
|
[readonly] {
|
|
13837
13949
|
pointer-events: none;
|
|
@@ -13842,7 +13954,7 @@ var fieldsetStyles = css57`
|
|
|
13842
13954
|
}
|
|
13843
13955
|
}
|
|
13844
13956
|
`;
|
|
13845
|
-
var fieldsetLegend2 =
|
|
13957
|
+
var fieldsetLegend2 = css58`
|
|
13846
13958
|
display: block;
|
|
13847
13959
|
font-weight: var(--fw-medium);
|
|
13848
13960
|
margin-bottom: var(--spacing-sm);
|
|
@@ -13850,11 +13962,11 @@ var fieldsetLegend2 = css57`
|
|
|
13850
13962
|
`;
|
|
13851
13963
|
|
|
13852
13964
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
13853
|
-
import { jsx as
|
|
13965
|
+
import { jsx as jsx72, jsxs as jsxs48 } from "@emotion/react/jsx-runtime";
|
|
13854
13966
|
var ParameterGroup = forwardRef7(
|
|
13855
13967
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
13856
|
-
return /* @__PURE__ */
|
|
13857
|
-
/* @__PURE__ */
|
|
13968
|
+
return /* @__PURE__ */ jsxs48("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
13969
|
+
/* @__PURE__ */ jsx72("legend", { css: fieldsetLegend2, children: legend }),
|
|
13858
13970
|
children
|
|
13859
13971
|
] });
|
|
13860
13972
|
}
|
|
@@ -13867,21 +13979,21 @@ import { forwardRef as forwardRef9, useCallback as useCallback3, useDeferredValu
|
|
|
13867
13979
|
import { useState as useState7 } from "react";
|
|
13868
13980
|
|
|
13869
13981
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
13870
|
-
import { jsx as
|
|
13982
|
+
import { jsx as jsx73 } from "@emotion/react/jsx-runtime";
|
|
13871
13983
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
13872
|
-
return !asSpan ? /* @__PURE__ */
|
|
13984
|
+
return !asSpan ? /* @__PURE__ */ jsx73("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx73("span", { "aria-labelledby": id, css: labelText2, children });
|
|
13873
13985
|
};
|
|
13874
13986
|
|
|
13875
13987
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
13876
13988
|
import { forwardRef as forwardRef8 } from "react";
|
|
13877
|
-
import { jsx as
|
|
13989
|
+
import { jsx as jsx74 } from "@emotion/react/jsx-runtime";
|
|
13878
13990
|
var ParameterMenuButton = forwardRef8(
|
|
13879
13991
|
({ label, children }, ref) => {
|
|
13880
|
-
return /* @__PURE__ */
|
|
13992
|
+
return /* @__PURE__ */ jsx74(
|
|
13881
13993
|
Menu,
|
|
13882
13994
|
{
|
|
13883
13995
|
menuLabel: `${label} menu`,
|
|
13884
|
-
menuTrigger: /* @__PURE__ */
|
|
13996
|
+
menuTrigger: /* @__PURE__ */ jsx74(
|
|
13885
13997
|
"button",
|
|
13886
13998
|
{
|
|
13887
13999
|
className: "parameter-menu",
|
|
@@ -13889,7 +14001,7 @@ var ParameterMenuButton = forwardRef8(
|
|
|
13889
14001
|
type: "button",
|
|
13890
14002
|
"aria-label": `${label} options`,
|
|
13891
14003
|
ref,
|
|
13892
|
-
children: /* @__PURE__ */
|
|
14004
|
+
children: /* @__PURE__ */ jsx74(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
13893
14005
|
}
|
|
13894
14006
|
),
|
|
13895
14007
|
children
|
|
@@ -13899,15 +14011,15 @@ var ParameterMenuButton = forwardRef8(
|
|
|
13899
14011
|
);
|
|
13900
14012
|
|
|
13901
14013
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
13902
|
-
import { css as
|
|
13903
|
-
var emptyParameterShell =
|
|
14014
|
+
import { css as css59 } from "@emotion/react";
|
|
14015
|
+
var emptyParameterShell = css59`
|
|
13904
14016
|
border-radius: var(--rounded-sm);
|
|
13905
14017
|
background: var(--white);
|
|
13906
14018
|
flex-grow: 1;
|
|
13907
14019
|
padding: var(--spacing-xs);
|
|
13908
14020
|
position: relative;
|
|
13909
14021
|
`;
|
|
13910
|
-
var emptyParameterShellText =
|
|
14022
|
+
var emptyParameterShellText = css59`
|
|
13911
14023
|
background: var(--brand-secondary-6);
|
|
13912
14024
|
border-radius: var(--rounded-sm);
|
|
13913
14025
|
padding: var(--spacing-sm);
|
|
@@ -13915,7 +14027,7 @@ var emptyParameterShellText = css58`
|
|
|
13915
14027
|
font-size: var(--fs-sm);
|
|
13916
14028
|
margin: 0;
|
|
13917
14029
|
`;
|
|
13918
|
-
var overrideMarker =
|
|
14030
|
+
var overrideMarker = css59`
|
|
13919
14031
|
border-radius: var(--rounded-sm);
|
|
13920
14032
|
border: 10px solid var(--gray-300);
|
|
13921
14033
|
border-left-color: transparent;
|
|
@@ -13926,7 +14038,7 @@ var overrideMarker = css58`
|
|
|
13926
14038
|
`;
|
|
13927
14039
|
|
|
13928
14040
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
13929
|
-
import { jsx as
|
|
14041
|
+
import { jsx as jsx75, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
13930
14042
|
var extractParameterProps = (props) => {
|
|
13931
14043
|
const {
|
|
13932
14044
|
id,
|
|
@@ -13982,18 +14094,18 @@ var ParameterShell = ({
|
|
|
13982
14094
|
const [manualErrorMessage, setManualErrorMessage] = useState7(void 0);
|
|
13983
14095
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
13984
14096
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
13985
|
-
return /* @__PURE__ */
|
|
13986
|
-
hiddenLabel || title ? null : /* @__PURE__ */
|
|
14097
|
+
return /* @__PURE__ */ jsxs49("div", { css: inputContainer2, ...props, children: [
|
|
14098
|
+
hiddenLabel || title ? null : /* @__PURE__ */ jsxs49(ParameterLabel, { id, css: labelText2, children: [
|
|
13987
14099
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
13988
14100
|
label
|
|
13989
14101
|
] }),
|
|
13990
|
-
!title ? null : /* @__PURE__ */
|
|
14102
|
+
!title ? null : /* @__PURE__ */ jsxs49(ParameterLabel, { id, asSpan: true, children: [
|
|
13991
14103
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
13992
14104
|
title
|
|
13993
14105
|
] }),
|
|
13994
|
-
/* @__PURE__ */
|
|
13995
|
-
menuItems ? /* @__PURE__ */
|
|
13996
|
-
/* @__PURE__ */
|
|
14106
|
+
/* @__PURE__ */ jsxs49("div", { css: inputWrapper, children: [
|
|
14107
|
+
menuItems ? /* @__PURE__ */ jsx75(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
14108
|
+
/* @__PURE__ */ jsx75(
|
|
13997
14109
|
ParameterShellContext.Provider,
|
|
13998
14110
|
{
|
|
13999
14111
|
value: {
|
|
@@ -14003,30 +14115,30 @@ var ParameterShell = ({
|
|
|
14003
14115
|
errorMessage: errorMessaging,
|
|
14004
14116
|
onManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
14005
14117
|
},
|
|
14006
|
-
children: /* @__PURE__ */
|
|
14118
|
+
children: /* @__PURE__ */ jsxs49(ParameterShellPlaceholder, { children: [
|
|
14007
14119
|
children,
|
|
14008
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
14120
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx75(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
14009
14121
|
] })
|
|
14010
14122
|
}
|
|
14011
14123
|
)
|
|
14012
14124
|
] }),
|
|
14013
|
-
caption ? /* @__PURE__ */
|
|
14014
|
-
errorMessaging ? /* @__PURE__ */
|
|
14125
|
+
caption ? /* @__PURE__ */ jsx75(Caption, { testId: captionTestId, children: caption }) : null,
|
|
14126
|
+
errorMessaging ? /* @__PURE__ */ jsx75(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null
|
|
14015
14127
|
] });
|
|
14016
14128
|
};
|
|
14017
14129
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
14018
|
-
return /* @__PURE__ */
|
|
14130
|
+
return /* @__PURE__ */ jsx75("div", { css: emptyParameterShell, children });
|
|
14019
14131
|
};
|
|
14020
|
-
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" }) }) });
|
|
14021
14133
|
|
|
14022
14134
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
14023
|
-
import { Fragment as Fragment10, jsx as
|
|
14135
|
+
import { Fragment as Fragment10, jsx as jsx76, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
14024
14136
|
var ParameterImage = forwardRef9((props, ref) => {
|
|
14025
14137
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14026
|
-
return /* @__PURE__ */
|
|
14138
|
+
return /* @__PURE__ */ jsx76(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: /* @__PURE__ */ jsx76(ParameterImageInner, { ref, ...innerProps }) });
|
|
14027
14139
|
});
|
|
14028
14140
|
var BrokenImage = ({ ...props }) => {
|
|
14029
|
-
return /* @__PURE__ */
|
|
14141
|
+
return /* @__PURE__ */ jsxs50(
|
|
14030
14142
|
"svg",
|
|
14031
14143
|
{
|
|
14032
14144
|
width: "214",
|
|
@@ -14037,11 +14149,11 @@ var BrokenImage = ({ ...props }) => {
|
|
|
14037
14149
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
14038
14150
|
...props,
|
|
14039
14151
|
children: [
|
|
14040
|
-
/* @__PURE__ */
|
|
14041
|
-
/* @__PURE__ */
|
|
14042
|
-
/* @__PURE__ */
|
|
14043
|
-
/* @__PURE__ */
|
|
14044
|
-
/* @__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(
|
|
14045
14157
|
"image",
|
|
14046
14158
|
{
|
|
14047
14159
|
id: "image0_761_4353",
|
|
@@ -14093,8 +14205,8 @@ var ParameterImageInner = forwardRef9(
|
|
|
14093
14205
|
useEffect8(() => {
|
|
14094
14206
|
updateImageSrc();
|
|
14095
14207
|
}, [value]);
|
|
14096
|
-
return /* @__PURE__ */
|
|
14097
|
-
/* @__PURE__ */
|
|
14208
|
+
return /* @__PURE__ */ jsxs50(Fragment10, { children: [
|
|
14209
|
+
/* @__PURE__ */ jsx76(
|
|
14098
14210
|
"input",
|
|
14099
14211
|
{
|
|
14100
14212
|
css: input2,
|
|
@@ -14106,8 +14218,8 @@ var ParameterImageInner = forwardRef9(
|
|
|
14106
14218
|
...props
|
|
14107
14219
|
}
|
|
14108
14220
|
),
|
|
14109
|
-
/* @__PURE__ */
|
|
14110
|
-
deferredValue && !errorMessage ? /* @__PURE__ */
|
|
14221
|
+
/* @__PURE__ */ jsxs50("div", { css: imageWrapper, children: [
|
|
14222
|
+
deferredValue && !errorMessage ? /* @__PURE__ */ jsx76(
|
|
14111
14223
|
"img",
|
|
14112
14224
|
{
|
|
14113
14225
|
src: deferredValue,
|
|
@@ -14117,24 +14229,24 @@ var ParameterImageInner = forwardRef9(
|
|
|
14117
14229
|
loading: "lazy"
|
|
14118
14230
|
}
|
|
14119
14231
|
) : null,
|
|
14120
|
-
deferredValue && errorMessage ? /* @__PURE__ */
|
|
14232
|
+
deferredValue && errorMessage ? /* @__PURE__ */ jsx76(BrokenImage, { css: img }) : null
|
|
14121
14233
|
] }),
|
|
14122
|
-
loading ? /* @__PURE__ */
|
|
14234
|
+
loading ? /* @__PURE__ */ jsx76(LoadingIcon, {}) : null
|
|
14123
14235
|
] });
|
|
14124
14236
|
}
|
|
14125
14237
|
);
|
|
14126
14238
|
|
|
14127
14239
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
14128
14240
|
import { forwardRef as forwardRef10 } from "react";
|
|
14129
|
-
import { jsx as
|
|
14241
|
+
import { jsx as jsx77 } from "@emotion/react/jsx-runtime";
|
|
14130
14242
|
var ParameterInput = forwardRef10((props, ref) => {
|
|
14131
14243
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14132
|
-
return /* @__PURE__ */
|
|
14244
|
+
return /* @__PURE__ */ jsx77(ParameterShell, { "data-test-id": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx77(ParameterInputInner, { ref, ...innerProps }) });
|
|
14133
14245
|
});
|
|
14134
14246
|
var ParameterInputInner = forwardRef10(
|
|
14135
14247
|
({ ...props }, ref) => {
|
|
14136
14248
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14137
|
-
return /* @__PURE__ */
|
|
14249
|
+
return /* @__PURE__ */ jsx77(
|
|
14138
14250
|
"input",
|
|
14139
14251
|
{
|
|
14140
14252
|
css: input2,
|
|
@@ -14151,18 +14263,18 @@ var ParameterInputInner = forwardRef10(
|
|
|
14151
14263
|
|
|
14152
14264
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
14153
14265
|
import { forwardRef as forwardRef11 } from "react";
|
|
14154
|
-
import { jsx as
|
|
14266
|
+
import { jsx as jsx78, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
14155
14267
|
var ParameterLink = forwardRef11(
|
|
14156
14268
|
({ buttonText = "Select project map node", disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
14157
14269
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14158
|
-
return /* @__PURE__ */
|
|
14270
|
+
return /* @__PURE__ */ jsx78(
|
|
14159
14271
|
ParameterShell,
|
|
14160
14272
|
{
|
|
14161
14273
|
"data-test-id": "link-parameter-editor",
|
|
14162
14274
|
...shellProps,
|
|
14163
14275
|
label: innerProps.value ? shellProps.label : "",
|
|
14164
14276
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
14165
|
-
children: !innerProps.value ? /* @__PURE__ */
|
|
14277
|
+
children: !innerProps.value ? /* @__PURE__ */ jsx78("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText }) : /* @__PURE__ */ jsx78(
|
|
14166
14278
|
ParameterLinkInner,
|
|
14167
14279
|
{
|
|
14168
14280
|
onConnectLink,
|
|
@@ -14178,8 +14290,8 @@ var ParameterLink = forwardRef11(
|
|
|
14178
14290
|
var ParameterLinkInner = forwardRef11(
|
|
14179
14291
|
({ externalLink, onConnectLink, disabled, ...props }, ref) => {
|
|
14180
14292
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14181
|
-
return /* @__PURE__ */
|
|
14182
|
-
/* @__PURE__ */
|
|
14293
|
+
return /* @__PURE__ */ jsxs51("div", { css: inputWrapper, children: [
|
|
14294
|
+
/* @__PURE__ */ jsx78(
|
|
14183
14295
|
"input",
|
|
14184
14296
|
{
|
|
14185
14297
|
type: "text",
|
|
@@ -14191,7 +14303,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14191
14303
|
...props
|
|
14192
14304
|
}
|
|
14193
14305
|
),
|
|
14194
|
-
/* @__PURE__ */
|
|
14306
|
+
/* @__PURE__ */ jsx78(
|
|
14195
14307
|
"button",
|
|
14196
14308
|
{
|
|
14197
14309
|
type: "button",
|
|
@@ -14202,7 +14314,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14202
14314
|
children: "edit"
|
|
14203
14315
|
}
|
|
14204
14316
|
),
|
|
14205
|
-
externalLink ? /* @__PURE__ */
|
|
14317
|
+
externalLink ? /* @__PURE__ */ jsx78(
|
|
14206
14318
|
"a",
|
|
14207
14319
|
{
|
|
14208
14320
|
href: externalLink,
|
|
@@ -14210,7 +14322,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14210
14322
|
title: "Open link in new tab",
|
|
14211
14323
|
target: "_blank",
|
|
14212
14324
|
rel: "noopener noreferrer",
|
|
14213
|
-
children: /* @__PURE__ */
|
|
14325
|
+
children: /* @__PURE__ */ jsx78(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
14214
14326
|
}
|
|
14215
14327
|
) : null
|
|
14216
14328
|
] });
|
|
@@ -14218,7 +14330,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14218
14330
|
);
|
|
14219
14331
|
|
|
14220
14332
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
14221
|
-
import { Fragment as Fragment11, jsx as
|
|
14333
|
+
import { Fragment as Fragment11, jsx as jsx79, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
14222
14334
|
var ParameterNameAndPublicIdInput = ({
|
|
14223
14335
|
id,
|
|
14224
14336
|
onBlur,
|
|
@@ -14244,8 +14356,8 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14244
14356
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
14245
14357
|
};
|
|
14246
14358
|
autoFocus == null ? void 0 : autoFocus();
|
|
14247
|
-
return /* @__PURE__ */
|
|
14248
|
-
/* @__PURE__ */
|
|
14359
|
+
return /* @__PURE__ */ jsxs52(Fragment11, { children: [
|
|
14360
|
+
/* @__PURE__ */ jsx79(
|
|
14249
14361
|
ParameterInput,
|
|
14250
14362
|
{
|
|
14251
14363
|
id: nameIdField,
|
|
@@ -14264,7 +14376,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14264
14376
|
value: values[nameIdField]
|
|
14265
14377
|
}
|
|
14266
14378
|
),
|
|
14267
|
-
/* @__PURE__ */
|
|
14379
|
+
/* @__PURE__ */ jsx79(
|
|
14268
14380
|
ParameterInput,
|
|
14269
14381
|
{
|
|
14270
14382
|
id: publicIdFieldName,
|
|
@@ -14278,11 +14390,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14278
14390
|
caption: publicIdCaption,
|
|
14279
14391
|
placeholder: publicIdPlaceholderText,
|
|
14280
14392
|
errorMessage: publicIdError,
|
|
14281
|
-
menuItems: /* @__PURE__ */
|
|
14393
|
+
menuItems: /* @__PURE__ */ jsx79(
|
|
14282
14394
|
MenuItem,
|
|
14283
14395
|
{
|
|
14284
14396
|
disabled: !values[publicIdFieldName],
|
|
14285
|
-
icon: /* @__PURE__ */
|
|
14397
|
+
icon: /* @__PURE__ */ jsx79(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
14286
14398
|
onClick: handleCopyPidFieldValue,
|
|
14287
14399
|
children: "Copy"
|
|
14288
14400
|
}
|
|
@@ -14290,13 +14402,13 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14290
14402
|
value: values[publicIdFieldName]
|
|
14291
14403
|
}
|
|
14292
14404
|
),
|
|
14293
|
-
(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
|
|
14294
14406
|
] });
|
|
14295
14407
|
};
|
|
14296
14408
|
|
|
14297
14409
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
14298
14410
|
import { forwardRef as forwardRef12 } from "react";
|
|
14299
|
-
import { Fragment as Fragment12, jsx as
|
|
14411
|
+
import { Fragment as Fragment12, jsx as jsx80, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
14300
14412
|
var ParameterRichText = forwardRef12(
|
|
14301
14413
|
({
|
|
14302
14414
|
label,
|
|
@@ -14310,7 +14422,7 @@ var ParameterRichText = forwardRef12(
|
|
|
14310
14422
|
menuItems,
|
|
14311
14423
|
...props
|
|
14312
14424
|
}, ref) => {
|
|
14313
|
-
return /* @__PURE__ */
|
|
14425
|
+
return /* @__PURE__ */ jsxs53(
|
|
14314
14426
|
ParameterShell,
|
|
14315
14427
|
{
|
|
14316
14428
|
"data-test-id": "parameter-input",
|
|
@@ -14323,8 +14435,8 @@ var ParameterRichText = forwardRef12(
|
|
|
14323
14435
|
captionTestId,
|
|
14324
14436
|
menuItems,
|
|
14325
14437
|
children: [
|
|
14326
|
-
/* @__PURE__ */
|
|
14327
|
-
menuItems ? /* @__PURE__ */
|
|
14438
|
+
/* @__PURE__ */ jsx80(ParameterRichTextInner, { ref, ...props }),
|
|
14439
|
+
menuItems ? /* @__PURE__ */ jsx80(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx80(Fragment12, { children: menuItems }) }) : null
|
|
14328
14440
|
]
|
|
14329
14441
|
}
|
|
14330
14442
|
);
|
|
@@ -14332,7 +14444,7 @@ var ParameterRichText = forwardRef12(
|
|
|
14332
14444
|
);
|
|
14333
14445
|
var ParameterRichTextInner = forwardRef12(({ ...props }, ref) => {
|
|
14334
14446
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14335
|
-
return /* @__PURE__ */
|
|
14447
|
+
return /* @__PURE__ */ jsx80(
|
|
14336
14448
|
"textarea",
|
|
14337
14449
|
{
|
|
14338
14450
|
css: [input2, textarea2],
|
|
@@ -14346,17 +14458,17 @@ var ParameterRichTextInner = forwardRef12(({ ...props }, ref) => {
|
|
|
14346
14458
|
|
|
14347
14459
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
14348
14460
|
import { forwardRef as forwardRef13 } from "react";
|
|
14349
|
-
import { jsx as
|
|
14461
|
+
import { jsx as jsx81, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
14350
14462
|
var ParameterSelect = forwardRef13(
|
|
14351
14463
|
({ defaultOption, options, ...props }, ref) => {
|
|
14352
14464
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14353
|
-
return /* @__PURE__ */
|
|
14465
|
+
return /* @__PURE__ */ jsx81(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx81(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
14354
14466
|
}
|
|
14355
14467
|
);
|
|
14356
14468
|
var ParameterSelectInner = forwardRef13(
|
|
14357
14469
|
({ defaultOption, options, ...props }, ref) => {
|
|
14358
14470
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14359
|
-
return /* @__PURE__ */
|
|
14471
|
+
return /* @__PURE__ */ jsxs54(
|
|
14360
14472
|
"select",
|
|
14361
14473
|
{
|
|
14362
14474
|
css: [input2, selectInput],
|
|
@@ -14365,10 +14477,10 @@ var ParameterSelectInner = forwardRef13(
|
|
|
14365
14477
|
ref,
|
|
14366
14478
|
...props,
|
|
14367
14479
|
children: [
|
|
14368
|
-
defaultOption ? /* @__PURE__ */
|
|
14480
|
+
defaultOption ? /* @__PURE__ */ jsx81("option", { value: "", children: defaultOption }) : null,
|
|
14369
14481
|
options.map((option) => {
|
|
14370
14482
|
var _a;
|
|
14371
|
-
return /* @__PURE__ */
|
|
14483
|
+
return /* @__PURE__ */ jsx81("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
14372
14484
|
})
|
|
14373
14485
|
]
|
|
14374
14486
|
}
|
|
@@ -14378,14 +14490,14 @@ var ParameterSelectInner = forwardRef13(
|
|
|
14378
14490
|
|
|
14379
14491
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
14380
14492
|
import { forwardRef as forwardRef14 } from "react";
|
|
14381
|
-
import { jsx as
|
|
14493
|
+
import { jsx as jsx82 } from "@emotion/react/jsx-runtime";
|
|
14382
14494
|
var ParameterTextarea = forwardRef14((props, ref) => {
|
|
14383
14495
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14384
|
-
return /* @__PURE__ */
|
|
14496
|
+
return /* @__PURE__ */ jsx82(ParameterShell, { "data-test-id": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx82(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
14385
14497
|
});
|
|
14386
14498
|
var ParameterTextareaInner = forwardRef14(({ ...props }, ref) => {
|
|
14387
14499
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14388
|
-
return /* @__PURE__ */
|
|
14500
|
+
return /* @__PURE__ */ jsx82(
|
|
14389
14501
|
"textarea",
|
|
14390
14502
|
{
|
|
14391
14503
|
css: [input2, textarea2],
|
|
@@ -14399,17 +14511,17 @@ var ParameterTextareaInner = forwardRef14(({ ...props }, ref) => {
|
|
|
14399
14511
|
|
|
14400
14512
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
14401
14513
|
import { forwardRef as forwardRef15 } from "react";
|
|
14402
|
-
import { jsx as
|
|
14514
|
+
import { jsx as jsx83, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
14403
14515
|
var ParameterToggle = forwardRef15((props, ref) => {
|
|
14404
14516
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14405
|
-
return /* @__PURE__ */
|
|
14517
|
+
return /* @__PURE__ */ jsx83(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx83(ParameterToggleInner, { ref, ...innerProps }) });
|
|
14406
14518
|
});
|
|
14407
14519
|
var ParameterToggleInner = forwardRef15(
|
|
14408
14520
|
({ ...props }, ref) => {
|
|
14409
14521
|
const { id, label } = useParameterShell();
|
|
14410
|
-
return /* @__PURE__ */
|
|
14411
|
-
/* @__PURE__ */
|
|
14412
|
-
/* @__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 })
|
|
14413
14525
|
] });
|
|
14414
14526
|
}
|
|
14415
14527
|
);
|
|
@@ -14423,13 +14535,13 @@ import {
|
|
|
14423
14535
|
import { Portal as Portal2 } from "reakit/Portal";
|
|
14424
14536
|
|
|
14425
14537
|
// src/components/Popover/Popover.styles.ts
|
|
14426
|
-
import { css as
|
|
14427
|
-
var PopoverBtn =
|
|
14538
|
+
import { css as css60 } from "@emotion/react";
|
|
14539
|
+
var PopoverBtn = css60`
|
|
14428
14540
|
border: none;
|
|
14429
14541
|
background: none;
|
|
14430
14542
|
padding: 0;
|
|
14431
14543
|
`;
|
|
14432
|
-
var Popover =
|
|
14544
|
+
var Popover = css60`
|
|
14433
14545
|
border-left: var(--spacing-xs) solid var(--brand-secondary-3);
|
|
14434
14546
|
border-radius: var(--rounded-base);
|
|
14435
14547
|
box-shadow: var(--shadow-base);
|
|
@@ -14442,7 +14554,7 @@ var Popover = css59`
|
|
|
14442
14554
|
`;
|
|
14443
14555
|
|
|
14444
14556
|
// src/components/Popover/Popover.tsx
|
|
14445
|
-
import { Fragment as Fragment13, jsx as
|
|
14557
|
+
import { Fragment as Fragment13, jsx as jsx84, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
14446
14558
|
var Popover2 = ({
|
|
14447
14559
|
iconColor = "green",
|
|
14448
14560
|
buttonText,
|
|
@@ -14451,36 +14563,36 @@ var Popover2 = ({
|
|
|
14451
14563
|
children
|
|
14452
14564
|
}) => {
|
|
14453
14565
|
const popover = usePopoverState({ placement });
|
|
14454
|
-
return /* @__PURE__ */
|
|
14455
|
-
/* @__PURE__ */
|
|
14456
|
-
/* @__PURE__ */
|
|
14457
|
-
/* @__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 })
|
|
14458
14570
|
] }),
|
|
14459
|
-
/* @__PURE__ */
|
|
14571
|
+
/* @__PURE__ */ jsx84(Portal2, { children: /* @__PURE__ */ jsx84(ReakitPopover, { css: Popover, ...popover, "aria-label": ariaLabel, children }) })
|
|
14460
14572
|
] });
|
|
14461
14573
|
};
|
|
14462
14574
|
|
|
14463
14575
|
// src/components/ProgressList/ProgressList.tsx
|
|
14464
|
-
import { css as
|
|
14576
|
+
import { css as css62 } from "@emotion/react";
|
|
14465
14577
|
import { useMemo as useMemo2 } from "react";
|
|
14466
14578
|
import { CgCheckO, CgRadioCheck, CgRecord } from "react-icons/cg";
|
|
14467
14579
|
|
|
14468
14580
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
14469
|
-
import { css as
|
|
14470
|
-
var progressListStyles =
|
|
14581
|
+
import { css as css61 } from "@emotion/react";
|
|
14582
|
+
var progressListStyles = css61`
|
|
14471
14583
|
display: flex;
|
|
14472
14584
|
flex-direction: column;
|
|
14473
14585
|
gap: var(--spacing-sm);
|
|
14474
14586
|
list-style-type: none;
|
|
14475
14587
|
`;
|
|
14476
|
-
var progressListItemStyles =
|
|
14588
|
+
var progressListItemStyles = css61`
|
|
14477
14589
|
display: flex;
|
|
14478
14590
|
gap: var(--spacing-base);
|
|
14479
14591
|
align-items: center;
|
|
14480
14592
|
`;
|
|
14481
14593
|
|
|
14482
14594
|
// src/components/ProgressList/ProgressList.tsx
|
|
14483
|
-
import { jsx as
|
|
14595
|
+
import { jsx as jsx85, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
|
|
14484
14596
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
14485
14597
|
const itemsWithStatus = useMemo2(() => {
|
|
14486
14598
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -14494,8 +14606,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
14494
14606
|
return { ...item, status };
|
|
14495
14607
|
});
|
|
14496
14608
|
}, [items, inProgressId]);
|
|
14497
|
-
return /* @__PURE__ */
|
|
14498
|
-
return /* @__PURE__ */
|
|
14609
|
+
return /* @__PURE__ */ jsx85("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
14610
|
+
return /* @__PURE__ */ jsx85(
|
|
14499
14611
|
ProgressListItem,
|
|
14500
14612
|
{
|
|
14501
14613
|
status,
|
|
@@ -14528,12 +14640,12 @@ var ProgressListItem = ({
|
|
|
14528
14640
|
}, [status, error]);
|
|
14529
14641
|
const statusStyles = useMemo2(() => {
|
|
14530
14642
|
if (error) {
|
|
14531
|
-
return errorLevel === "caution" ?
|
|
14643
|
+
return errorLevel === "caution" ? css62`
|
|
14532
14644
|
color: rgb(161, 98, 7);
|
|
14533
14645
|
& svg {
|
|
14534
14646
|
color: rgb(250, 204, 21);
|
|
14535
14647
|
}
|
|
14536
|
-
` :
|
|
14648
|
+
` : css62`
|
|
14537
14649
|
color: rgb(185, 28, 28);
|
|
14538
14650
|
& svg {
|
|
14539
14651
|
color: var(--brand-primary-2);
|
|
@@ -14541,40 +14653,202 @@ var ProgressListItem = ({
|
|
|
14541
14653
|
`;
|
|
14542
14654
|
}
|
|
14543
14655
|
const colorPerStatus = {
|
|
14544
|
-
completed:
|
|
14656
|
+
completed: css62`
|
|
14545
14657
|
opacity: 0.75;
|
|
14546
14658
|
`,
|
|
14547
|
-
inProgress:
|
|
14659
|
+
inProgress: css62`
|
|
14548
14660
|
-webkit-text-stroke-width: thin;
|
|
14549
14661
|
`,
|
|
14550
|
-
queued:
|
|
14662
|
+
queued: css62`
|
|
14551
14663
|
opacity: 0.5;
|
|
14552
14664
|
`
|
|
14553
14665
|
};
|
|
14554
14666
|
return colorPerStatus[status];
|
|
14555
14667
|
}, [status, error, errorLevel]);
|
|
14556
|
-
return /* @__PURE__ */
|
|
14557
|
-
/* @__PURE__ */
|
|
14558
|
-
/* @__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: [
|
|
14559
14671
|
children,
|
|
14560
|
-
/* @__PURE__ */
|
|
14672
|
+
/* @__PURE__ */ jsx85("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
14561
14673
|
] })
|
|
14562
14674
|
] });
|
|
14563
14675
|
};
|
|
14564
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
|
+
|
|
14565
14839
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
14566
|
-
import { css as
|
|
14840
|
+
import { css as css65, keyframes as keyframes4 } from "@emotion/react";
|
|
14567
14841
|
var lightFadingOut = keyframes4`
|
|
14568
14842
|
from { opacity: 0.1; }
|
|
14569
14843
|
to { opacity: 0.025; }
|
|
14570
14844
|
`;
|
|
14571
|
-
var skeletonStyles =
|
|
14845
|
+
var skeletonStyles = css65`
|
|
14572
14846
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
14573
14847
|
background-color: var(--gray-900);
|
|
14574
14848
|
`;
|
|
14575
14849
|
|
|
14576
14850
|
// src/components/Skeleton/Skeleton.tsx
|
|
14577
|
-
import { jsx as
|
|
14851
|
+
import { jsx as jsx87 } from "@emotion/react/jsx-runtime";
|
|
14578
14852
|
var Skeleton = ({
|
|
14579
14853
|
width = "100%",
|
|
14580
14854
|
height = "1.25rem",
|
|
@@ -14582,7 +14856,7 @@ var Skeleton = ({
|
|
|
14582
14856
|
circle = false,
|
|
14583
14857
|
children,
|
|
14584
14858
|
...otherProps
|
|
14585
|
-
}) => /* @__PURE__ */
|
|
14859
|
+
}) => /* @__PURE__ */ jsx87(
|
|
14586
14860
|
"div",
|
|
14587
14861
|
{
|
|
14588
14862
|
css: [
|
|
@@ -14602,11 +14876,11 @@ var Skeleton = ({
|
|
|
14602
14876
|
);
|
|
14603
14877
|
|
|
14604
14878
|
// src/components/Switch/Switch.tsx
|
|
14605
|
-
import * as
|
|
14879
|
+
import * as React18 from "react";
|
|
14606
14880
|
|
|
14607
14881
|
// src/components/Switch/Switch.styles.ts
|
|
14608
|
-
import { css as
|
|
14609
|
-
var SwitchInputContainer =
|
|
14882
|
+
import { css as css66 } from "@emotion/react";
|
|
14883
|
+
var SwitchInputContainer = css66`
|
|
14610
14884
|
cursor: pointer;
|
|
14611
14885
|
display: inline-block;
|
|
14612
14886
|
position: relative;
|
|
@@ -14615,7 +14889,7 @@ var SwitchInputContainer = css63`
|
|
|
14615
14889
|
vertical-align: middle;
|
|
14616
14890
|
user-select: none;
|
|
14617
14891
|
`;
|
|
14618
|
-
var SwitchInput =
|
|
14892
|
+
var SwitchInput = css66`
|
|
14619
14893
|
appearance: none;
|
|
14620
14894
|
border-radius: var(--rounded-full);
|
|
14621
14895
|
background-color: var(--white);
|
|
@@ -14653,7 +14927,7 @@ var SwitchInput = css63`
|
|
|
14653
14927
|
cursor: not-allowed;
|
|
14654
14928
|
}
|
|
14655
14929
|
`;
|
|
14656
|
-
var SwitchInputDisabled =
|
|
14930
|
+
var SwitchInputDisabled = css66`
|
|
14657
14931
|
opacity: var(--opacity-50);
|
|
14658
14932
|
cursor: not-allowed;
|
|
14659
14933
|
|
|
@@ -14661,7 +14935,7 @@ var SwitchInputDisabled = css63`
|
|
|
14661
14935
|
cursor: not-allowed;
|
|
14662
14936
|
}
|
|
14663
14937
|
`;
|
|
14664
|
-
var SwitchInputLabel =
|
|
14938
|
+
var SwitchInputLabel = css66`
|
|
14665
14939
|
align-items: center;
|
|
14666
14940
|
color: var(--brand-secondary-1);
|
|
14667
14941
|
display: inline-flex;
|
|
@@ -14683,98 +14957,98 @@ var SwitchInputLabel = css63`
|
|
|
14683
14957
|
top: 0;
|
|
14684
14958
|
}
|
|
14685
14959
|
`;
|
|
14686
|
-
var SwitchText =
|
|
14960
|
+
var SwitchText = css66`
|
|
14687
14961
|
color: var(--gray-500);
|
|
14688
14962
|
font-size: var(--fs-sm);
|
|
14689
14963
|
padding-inline: var(--spacing-2xl) 0;
|
|
14690
14964
|
`;
|
|
14691
14965
|
|
|
14692
14966
|
// src/components/Switch/Switch.tsx
|
|
14693
|
-
import { Fragment as Fragment14, jsx as
|
|
14694
|
-
var Switch =
|
|
14967
|
+
import { Fragment as Fragment14, jsx as jsx88, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
|
|
14968
|
+
var Switch = React18.forwardRef(
|
|
14695
14969
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
14696
14970
|
let additionalText = infoText;
|
|
14697
14971
|
if (infoText && toggleText) {
|
|
14698
14972
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
14699
14973
|
}
|
|
14700
|
-
return /* @__PURE__ */
|
|
14701
|
-
/* @__PURE__ */
|
|
14702
|
-
/* @__PURE__ */
|
|
14703
|
-
/* @__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 })
|
|
14704
14978
|
] }),
|
|
14705
|
-
additionalText ? /* @__PURE__ */
|
|
14979
|
+
additionalText ? /* @__PURE__ */ jsx88("p", { css: SwitchText, children: additionalText }) : null,
|
|
14706
14980
|
children
|
|
14707
14981
|
] });
|
|
14708
14982
|
}
|
|
14709
14983
|
);
|
|
14710
14984
|
|
|
14711
14985
|
// src/components/Table/Table.tsx
|
|
14712
|
-
import * as
|
|
14986
|
+
import * as React19 from "react";
|
|
14713
14987
|
|
|
14714
14988
|
// src/components/Table/Table.styles.ts
|
|
14715
|
-
import { css as
|
|
14716
|
-
var table =
|
|
14989
|
+
import { css as css67 } from "@emotion/react";
|
|
14990
|
+
var table = css67`
|
|
14717
14991
|
border-bottom: 1px solid var(--gray-400);
|
|
14718
14992
|
border-collapse: collapse;
|
|
14719
14993
|
min-width: 100%;
|
|
14720
14994
|
table-layout: auto;
|
|
14721
14995
|
`;
|
|
14722
|
-
var tableHead =
|
|
14996
|
+
var tableHead = css67`
|
|
14723
14997
|
background: var(--gray-100);
|
|
14724
14998
|
color: var(--brand-secondary-1);
|
|
14725
14999
|
text-align: left;
|
|
14726
15000
|
`;
|
|
14727
|
-
var tableRow =
|
|
15001
|
+
var tableRow = css67`
|
|
14728
15002
|
border-bottom: 1px solid var(--gray-200);
|
|
14729
15003
|
`;
|
|
14730
|
-
var tableCellHead =
|
|
15004
|
+
var tableCellHead = css67`
|
|
14731
15005
|
font-size: var(--fs-sm);
|
|
14732
15006
|
padding: var(--spacing-base) var(--spacing-md);
|
|
14733
15007
|
text-transform: uppercase;
|
|
14734
15008
|
font-weight: var(--fw-bold);
|
|
14735
15009
|
`;
|
|
14736
|
-
var tableCellData =
|
|
15010
|
+
var tableCellData = css67`
|
|
14737
15011
|
padding: var(--spacing-base) var(--spacing-md);
|
|
14738
15012
|
`;
|
|
14739
15013
|
|
|
14740
15014
|
// src/components/Table/Table.tsx
|
|
14741
|
-
import { jsx as
|
|
14742
|
-
var Table =
|
|
14743
|
-
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 });
|
|
14744
15018
|
});
|
|
14745
|
-
var TableHead =
|
|
15019
|
+
var TableHead = React19.forwardRef(
|
|
14746
15020
|
({ children, ...otherProps }, ref) => {
|
|
14747
|
-
return /* @__PURE__ */
|
|
15021
|
+
return /* @__PURE__ */ jsx89("thead", { ref, css: tableHead, ...otherProps, children });
|
|
14748
15022
|
}
|
|
14749
15023
|
);
|
|
14750
|
-
var TableBody =
|
|
15024
|
+
var TableBody = React19.forwardRef(
|
|
14751
15025
|
({ children, ...otherProps }, ref) => {
|
|
14752
|
-
return /* @__PURE__ */
|
|
15026
|
+
return /* @__PURE__ */ jsx89("tbody", { ref, ...otherProps, children });
|
|
14753
15027
|
}
|
|
14754
15028
|
);
|
|
14755
|
-
var TableFoot =
|
|
15029
|
+
var TableFoot = React19.forwardRef(
|
|
14756
15030
|
({ children, ...otherProps }, ref) => {
|
|
14757
|
-
return /* @__PURE__ */
|
|
15031
|
+
return /* @__PURE__ */ jsx89("tfoot", { ref, ...otherProps, children });
|
|
14758
15032
|
}
|
|
14759
15033
|
);
|
|
14760
|
-
var TableRow =
|
|
15034
|
+
var TableRow = React19.forwardRef(
|
|
14761
15035
|
({ children, ...otherProps }, ref) => {
|
|
14762
|
-
return /* @__PURE__ */
|
|
15036
|
+
return /* @__PURE__ */ jsx89("tr", { ref, css: tableRow, ...otherProps, children });
|
|
14763
15037
|
}
|
|
14764
15038
|
);
|
|
14765
|
-
var TableCellHead =
|
|
15039
|
+
var TableCellHead = React19.forwardRef(
|
|
14766
15040
|
({ children, ...otherProps }, ref) => {
|
|
14767
|
-
return /* @__PURE__ */
|
|
15041
|
+
return /* @__PURE__ */ jsx89("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
14768
15042
|
}
|
|
14769
15043
|
);
|
|
14770
|
-
var TableCellData =
|
|
15044
|
+
var TableCellData = React19.forwardRef(
|
|
14771
15045
|
({ children, ...otherProps }, ref) => {
|
|
14772
|
-
return /* @__PURE__ */
|
|
15046
|
+
return /* @__PURE__ */ jsx89("td", { ref, css: tableCellData, ...otherProps, children });
|
|
14773
15047
|
}
|
|
14774
15048
|
);
|
|
14775
15049
|
|
|
14776
15050
|
// src/components/Tabs/Tabs.tsx
|
|
14777
|
-
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";
|
|
14778
15052
|
import {
|
|
14779
15053
|
Tab as ReakitTab,
|
|
14780
15054
|
TabList as ReakitTabList,
|
|
@@ -14783,8 +15057,8 @@ import {
|
|
|
14783
15057
|
} from "reakit/Tab";
|
|
14784
15058
|
|
|
14785
15059
|
// src/components/Tabs/Tabs.styles.ts
|
|
14786
|
-
import { css as
|
|
14787
|
-
var tabButtonStyles =
|
|
15060
|
+
import { css as css68 } from "@emotion/react";
|
|
15061
|
+
var tabButtonStyles = css68`
|
|
14788
15062
|
align-items: center;
|
|
14789
15063
|
border: 0;
|
|
14790
15064
|
height: 2.5rem;
|
|
@@ -14801,14 +15075,14 @@ var tabButtonStyles = css65`
|
|
|
14801
15075
|
-webkit-text-stroke-width: thin;
|
|
14802
15076
|
}
|
|
14803
15077
|
`;
|
|
14804
|
-
var tabButtonGroupStyles =
|
|
15078
|
+
var tabButtonGroupStyles = css68`
|
|
14805
15079
|
display: flex;
|
|
14806
15080
|
gap: var(--spacing-base);
|
|
14807
15081
|
border-bottom: 1px solid var(--gray-300);
|
|
14808
15082
|
`;
|
|
14809
15083
|
|
|
14810
15084
|
// src/components/Tabs/Tabs.tsx
|
|
14811
|
-
import { jsx as
|
|
15085
|
+
import { jsx as jsx90 } from "@emotion/react/jsx-runtime";
|
|
14812
15086
|
var CurrentTabContext = createContext6(null);
|
|
14813
15087
|
var useCurrentTab = () => {
|
|
14814
15088
|
const context = useContext7(CurrentTabContext);
|
|
@@ -14818,7 +15092,7 @@ var useCurrentTab = () => {
|
|
|
14818
15092
|
return context;
|
|
14819
15093
|
};
|
|
14820
15094
|
var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...props }) => {
|
|
14821
|
-
const selected =
|
|
15095
|
+
const selected = useMemo4(() => {
|
|
14822
15096
|
if (selectedId)
|
|
14823
15097
|
return selectedId;
|
|
14824
15098
|
return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
|
|
@@ -14837,24 +15111,24 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
14837
15111
|
tab.setSelectedId(selected);
|
|
14838
15112
|
}
|
|
14839
15113
|
}, [selected]);
|
|
14840
|
-
return /* @__PURE__ */
|
|
15114
|
+
return /* @__PURE__ */ jsx90(CurrentTabContext.Provider, { value: tab, children });
|
|
14841
15115
|
};
|
|
14842
15116
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
14843
15117
|
const currentTab = useCurrentTab();
|
|
14844
|
-
return /* @__PURE__ */
|
|
15118
|
+
return /* @__PURE__ */ jsx90(ReakitTabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
14845
15119
|
};
|
|
14846
15120
|
var TabButton = ({ children, id, ...props }) => {
|
|
14847
15121
|
const currentTab = useCurrentTab();
|
|
14848
|
-
return /* @__PURE__ */
|
|
15122
|
+
return /* @__PURE__ */ jsx90(ReakitTab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
14849
15123
|
};
|
|
14850
15124
|
var TabContent = ({ children, ...props }) => {
|
|
14851
15125
|
const currentTab = useCurrentTab();
|
|
14852
|
-
return /* @__PURE__ */
|
|
15126
|
+
return /* @__PURE__ */ jsx90(ReakitTabPanel, { ...props, ...currentTab, children });
|
|
14853
15127
|
};
|
|
14854
15128
|
|
|
14855
15129
|
// src/components/Validation/StatusBullet.styles.ts
|
|
14856
|
-
import { css as
|
|
14857
|
-
var StatusBulletContainer =
|
|
15130
|
+
import { css as css69 } from "@emotion/react";
|
|
15131
|
+
var StatusBulletContainer = css69`
|
|
14858
15132
|
align-items: center;
|
|
14859
15133
|
align-self: center;
|
|
14860
15134
|
color: var(--gray-500);
|
|
@@ -14871,51 +15145,51 @@ var StatusBulletContainer = css66`
|
|
|
14871
15145
|
display: block;
|
|
14872
15146
|
}
|
|
14873
15147
|
`;
|
|
14874
|
-
var StatusBulletBase =
|
|
15148
|
+
var StatusBulletBase = css69`
|
|
14875
15149
|
font-size: var(--fs-sm);
|
|
14876
15150
|
&:before {
|
|
14877
15151
|
width: var(--fs-xs);
|
|
14878
15152
|
height: var(--fs-xs);
|
|
14879
15153
|
}
|
|
14880
15154
|
`;
|
|
14881
|
-
var StatusBulletSmall =
|
|
15155
|
+
var StatusBulletSmall = css69`
|
|
14882
15156
|
font-size: var(--fs-xs);
|
|
14883
15157
|
&:before {
|
|
14884
15158
|
width: var(--fs-xxs);
|
|
14885
15159
|
height: var(--fs-xxs);
|
|
14886
15160
|
}
|
|
14887
15161
|
`;
|
|
14888
|
-
var StatusDraft =
|
|
15162
|
+
var StatusDraft = css69`
|
|
14889
15163
|
&:before {
|
|
14890
15164
|
background: var(--white);
|
|
14891
15165
|
box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
|
|
14892
15166
|
}
|
|
14893
15167
|
`;
|
|
14894
|
-
var StatusModified =
|
|
15168
|
+
var StatusModified = css69`
|
|
14895
15169
|
&:before {
|
|
14896
15170
|
background: linear-gradient(to right, var(--white) 50%, var(--brand-primary-1) 50% 100%);
|
|
14897
15171
|
box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
|
|
14898
15172
|
}
|
|
14899
15173
|
`;
|
|
14900
|
-
var StatusError =
|
|
15174
|
+
var StatusError = css69`
|
|
14901
15175
|
color: var(--error);
|
|
14902
15176
|
&:before {
|
|
14903
15177
|
background: linear-gradient(120deg, var(--error) 40%, var(--white) 50%, var(--error) 60%);
|
|
14904
15178
|
}
|
|
14905
15179
|
`;
|
|
14906
|
-
var StatusPublished =
|
|
15180
|
+
var StatusPublished = css69`
|
|
14907
15181
|
&:before {
|
|
14908
15182
|
background: var(--brand-secondary-3);
|
|
14909
15183
|
}
|
|
14910
15184
|
`;
|
|
14911
|
-
var StatusOrphan =
|
|
15185
|
+
var StatusOrphan = css69`
|
|
14912
15186
|
&:before {
|
|
14913
15187
|
background: var(--brand-secondary-5);
|
|
14914
15188
|
}
|
|
14915
15189
|
`;
|
|
14916
15190
|
|
|
14917
15191
|
// src/components/Validation/StatusBullet.tsx
|
|
14918
|
-
import { jsx as
|
|
15192
|
+
import { jsx as jsx91 } from "@emotion/react/jsx-runtime";
|
|
14919
15193
|
var StatusBullet = ({
|
|
14920
15194
|
status,
|
|
14921
15195
|
hideText = false,
|
|
@@ -14932,7 +15206,7 @@ var StatusBullet = ({
|
|
|
14932
15206
|
Draft: StatusDraft
|
|
14933
15207
|
};
|
|
14934
15208
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
14935
|
-
return /* @__PURE__ */
|
|
15209
|
+
return /* @__PURE__ */ jsx91(
|
|
14936
15210
|
"span",
|
|
14937
15211
|
{
|
|
14938
15212
|
role: "status",
|
|
@@ -14948,6 +15222,7 @@ export {
|
|
|
14948
15222
|
AddListButton,
|
|
14949
15223
|
AnimationFile,
|
|
14950
15224
|
Badge,
|
|
15225
|
+
Banner,
|
|
14951
15226
|
Button,
|
|
14952
15227
|
ButtonWithMenu,
|
|
14953
15228
|
Callout,
|
|
@@ -15031,6 +15306,7 @@ export {
|
|
|
15031
15306
|
ScrollableList,
|
|
15032
15307
|
ScrollableListInputItem,
|
|
15033
15308
|
ScrollableListItem,
|
|
15309
|
+
SegmentedControl,
|
|
15034
15310
|
ShortcutContext,
|
|
15035
15311
|
ShortcutRevealer,
|
|
15036
15312
|
Skeleton,
|
|
@@ -15055,6 +15331,7 @@ export {
|
|
|
15055
15331
|
UniformLogo,
|
|
15056
15332
|
VerticalRhythm,
|
|
15057
15333
|
WarningMessage,
|
|
15334
|
+
borderTopIcon,
|
|
15058
15335
|
breakpoints,
|
|
15059
15336
|
button,
|
|
15060
15337
|
buttonGhost,
|
|
@@ -15065,6 +15342,9 @@ export {
|
|
|
15065
15342
|
buttonSecondaryInvert,
|
|
15066
15343
|
buttonTertiary,
|
|
15067
15344
|
buttonUnimportant,
|
|
15345
|
+
canvasAlertIcon,
|
|
15346
|
+
cardIcon,
|
|
15347
|
+
customIcons,
|
|
15068
15348
|
extractParameterProps,
|
|
15069
15349
|
fadeIn,
|
|
15070
15350
|
fadeInBottom,
|
|
@@ -15072,7 +15352,10 @@ export {
|
|
|
15072
15352
|
fadeInRtl,
|
|
15073
15353
|
fadeInTop,
|
|
15074
15354
|
fadeOutBottom,
|
|
15355
|
+
fullWidthScreenIcon,
|
|
15075
15356
|
growSubtle,
|
|
15357
|
+
imageTextIcon,
|
|
15358
|
+
infoFilledIcon,
|
|
15076
15359
|
input,
|
|
15077
15360
|
inputError,
|
|
15078
15361
|
inputSelect,
|
|
@@ -15081,11 +15364,15 @@ export {
|
|
|
15081
15364
|
loader_default as loaderAnimationData,
|
|
15082
15365
|
macifyShortcut,
|
|
15083
15366
|
mq,
|
|
15367
|
+
numberInput,
|
|
15368
|
+
rectangleRoundedIcon,
|
|
15084
15369
|
ripple,
|
|
15085
15370
|
scrollbarStyles,
|
|
15086
15371
|
skeletonLoading,
|
|
15372
|
+
slideInTtb,
|
|
15087
15373
|
spinner_default as spinnerAnimationData,
|
|
15088
15374
|
supports,
|
|
15375
|
+
textInput,
|
|
15089
15376
|
useBreakpoint,
|
|
15090
15377
|
useCloseCurrentDrawer,
|
|
15091
15378
|
useCurrentDrawerRenderer,
|
|
@@ -15095,5 +15382,6 @@ export {
|
|
|
15095
15382
|
useMenuContext,
|
|
15096
15383
|
useOutsideClick,
|
|
15097
15384
|
useParameterShell,
|
|
15098
|
-
useShortcut
|
|
15385
|
+
useShortcut,
|
|
15386
|
+
warningIcon
|
|
15099
15387
|
};
|