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