@uniformdev/design-system 18.29.0 → 18.29.2-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +1010 -732
- package/dist/index.d.ts +84 -1
- package/dist/index.js +944 -652
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -34,6 +34,7 @@ __export(src_exports, {
|
|
|
34
34
|
AddListButton: () => AddListButton,
|
|
35
35
|
AnimationFile: () => AnimationFile,
|
|
36
36
|
Badge: () => Badge,
|
|
37
|
+
Banner: () => Banner,
|
|
37
38
|
Button: () => Button,
|
|
38
39
|
ButtonWithMenu: () => ButtonWithMenu,
|
|
39
40
|
Callout: () => Callout,
|
|
@@ -117,6 +118,7 @@ __export(src_exports, {
|
|
|
117
118
|
ScrollableList: () => ScrollableList,
|
|
118
119
|
ScrollableListInputItem: () => ScrollableListInputItem,
|
|
119
120
|
ScrollableListItem: () => ScrollableListItem,
|
|
121
|
+
SegmentedControl: () => SegmentedControl,
|
|
120
122
|
ShortcutContext: () => ShortcutContext,
|
|
121
123
|
ShortcutRevealer: () => ShortcutRevealer,
|
|
122
124
|
Skeleton: () => Skeleton,
|
|
@@ -141,6 +143,7 @@ __export(src_exports, {
|
|
|
141
143
|
UniformLogo: () => UniformLogo,
|
|
142
144
|
VerticalRhythm: () => VerticalRhythm,
|
|
143
145
|
WarningMessage: () => WarningMessage,
|
|
146
|
+
borderTopIcon: () => borderTopIcon,
|
|
144
147
|
breakpoints: () => breakpoints,
|
|
145
148
|
button: () => button,
|
|
146
149
|
buttonGhost: () => buttonGhost,
|
|
@@ -151,6 +154,9 @@ __export(src_exports, {
|
|
|
151
154
|
buttonSecondaryInvert: () => buttonSecondaryInvert,
|
|
152
155
|
buttonTertiary: () => buttonTertiary,
|
|
153
156
|
buttonUnimportant: () => buttonUnimportant,
|
|
157
|
+
canvasAlertIcon: () => canvasAlertIcon,
|
|
158
|
+
cardIcon: () => cardIcon,
|
|
159
|
+
customIcons: () => customIcons,
|
|
154
160
|
extractParameterProps: () => extractParameterProps,
|
|
155
161
|
fadeIn: () => fadeIn,
|
|
156
162
|
fadeInBottom: () => fadeInBottom,
|
|
@@ -158,7 +164,10 @@ __export(src_exports, {
|
|
|
158
164
|
fadeInRtl: () => fadeInRtl,
|
|
159
165
|
fadeInTop: () => fadeInTop,
|
|
160
166
|
fadeOutBottom: () => fadeOutBottom,
|
|
167
|
+
fullWidthScreenIcon: () => fullWidthScreenIcon,
|
|
161
168
|
growSubtle: () => growSubtle,
|
|
169
|
+
imageTextIcon: () => imageTextIcon,
|
|
170
|
+
infoFilledIcon: () => infoFilledIcon,
|
|
162
171
|
input: () => input,
|
|
163
172
|
inputError: () => inputError,
|
|
164
173
|
inputSelect: () => inputSelect,
|
|
@@ -167,11 +176,15 @@ __export(src_exports, {
|
|
|
167
176
|
loaderAnimationData: () => loader_default,
|
|
168
177
|
macifyShortcut: () => macifyShortcut,
|
|
169
178
|
mq: () => mq,
|
|
179
|
+
numberInput: () => numberInput,
|
|
180
|
+
rectangleRoundedIcon: () => rectangleRoundedIcon,
|
|
170
181
|
ripple: () => ripple,
|
|
171
182
|
scrollbarStyles: () => scrollbarStyles,
|
|
172
183
|
skeletonLoading: () => skeletonLoading,
|
|
184
|
+
slideInTtb: () => slideInTtb,
|
|
173
185
|
spinnerAnimationData: () => spinner_default,
|
|
174
186
|
supports: () => supports,
|
|
187
|
+
textInput: () => textInput,
|
|
175
188
|
useBreakpoint: () => useBreakpoint,
|
|
176
189
|
useCloseCurrentDrawer: () => useCloseCurrentDrawer,
|
|
177
190
|
useCurrentDrawerRenderer: () => useCurrentDrawerRenderer,
|
|
@@ -181,7 +194,8 @@ __export(src_exports, {
|
|
|
181
194
|
useMenuContext: () => useMenuContext,
|
|
182
195
|
useOutsideClick: () => useOutsideClick,
|
|
183
196
|
useParameterShell: () => useParameterShell,
|
|
184
|
-
useShortcut: () => useShortcut
|
|
197
|
+
useShortcut: () => useShortcut,
|
|
198
|
+
warningIcon: () => warningIcon
|
|
185
199
|
});
|
|
186
200
|
module.exports = __toCommonJS(src_exports);
|
|
187
201
|
|
|
@@ -697,9 +711,10 @@ var textarea = import_react4.css`
|
|
|
697
711
|
`;
|
|
698
712
|
var inputSelectCompact = import_react4.css`
|
|
699
713
|
font-size: var(--fs-xs);
|
|
700
|
-
padding: var(--spacing-
|
|
714
|
+
padding: var(--spacing-2xs) var(--spacing-md) var(--spacing-2xs) var(--spacing-xs);
|
|
701
715
|
border-color: var(--gray-300);
|
|
702
716
|
background-position: right var(--spacing-xs) center;
|
|
717
|
+
border-radius: var(--rounded-base);
|
|
703
718
|
`;
|
|
704
719
|
|
|
705
720
|
// src/styles/Animations.styles.ts
|
|
@@ -785,6 +800,14 @@ to {
|
|
|
785
800
|
transform: translateX(0);
|
|
786
801
|
}
|
|
787
802
|
`;
|
|
803
|
+
var slideInTtb = import_react5.keyframes`
|
|
804
|
+
from {
|
|
805
|
+
transform: translateY(-100%);
|
|
806
|
+
}
|
|
807
|
+
to {
|
|
808
|
+
transform: translateY(0);
|
|
809
|
+
}
|
|
810
|
+
`;
|
|
788
811
|
|
|
789
812
|
// src/styles/Scrollbar.styles.ts
|
|
790
813
|
var import_react6 = require("@emotion/react");
|
|
@@ -1030,40 +1053,6 @@ var AddButton = ({
|
|
|
1030
1053
|
// src/components/AddListButton/AddListButton.tsx
|
|
1031
1054
|
var import_cg = require("react-icons/cg");
|
|
1032
1055
|
|
|
1033
|
-
// src/components/Icons/Icon.tsx
|
|
1034
|
-
var import_react13 = __toESM(require("react"));
|
|
1035
|
-
|
|
1036
|
-
// src/components/Icons/Icon.styles.ts
|
|
1037
|
-
var import_react11 = require("@emotion/react");
|
|
1038
|
-
var IconImg = import_react11.css`
|
|
1039
|
-
display: hidden;
|
|
1040
|
-
|
|
1041
|
-
${mq("sm")} {
|
|
1042
|
-
display: block;
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
|
-
& svg {
|
|
1046
|
-
display: block;
|
|
1047
|
-
vertical-align: middle;
|
|
1048
|
-
}
|
|
1049
|
-
`;
|
|
1050
|
-
var IconColorGreen = import_react11.css`
|
|
1051
|
-
color: var(--brand-secondary-3);
|
|
1052
|
-
`;
|
|
1053
|
-
var IconColorRed = import_react11.css`
|
|
1054
|
-
color: var(--brand-secondary-5);
|
|
1055
|
-
`;
|
|
1056
|
-
var IconColorGray = import_react11.css`
|
|
1057
|
-
color: var(--gray-500);
|
|
1058
|
-
`;
|
|
1059
|
-
var IconColorCurrent = import_react11.css`
|
|
1060
|
-
color: currentColor;
|
|
1061
|
-
`;
|
|
1062
|
-
|
|
1063
|
-
// src/components/Icons/IconsProvider.tsx
|
|
1064
|
-
var import_param_case = require("param-case");
|
|
1065
|
-
var import_react12 = require("react");
|
|
1066
|
-
|
|
1067
1056
|
// src/components/Icons/customIcons.tsx
|
|
1068
1057
|
var import_react_icons = require("react-icons");
|
|
1069
1058
|
var rectangleRoundedIcon = (0, import_react_icons.GenIcon)({
|
|
@@ -1376,7 +1365,39 @@ var customIcons = {
|
|
|
1376
1365
|
"info-filled": infoFilledIcon
|
|
1377
1366
|
};
|
|
1378
1367
|
|
|
1368
|
+
// src/components/Icons/Icon.tsx
|
|
1369
|
+
var import_react13 = __toESM(require("react"));
|
|
1370
|
+
|
|
1371
|
+
// src/components/Icons/Icon.styles.ts
|
|
1372
|
+
var import_react11 = require("@emotion/react");
|
|
1373
|
+
var IconImg = import_react11.css`
|
|
1374
|
+
display: hidden;
|
|
1375
|
+
|
|
1376
|
+
${mq("sm")} {
|
|
1377
|
+
display: block;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
& svg {
|
|
1381
|
+
display: block;
|
|
1382
|
+
vertical-align: middle;
|
|
1383
|
+
}
|
|
1384
|
+
`;
|
|
1385
|
+
var IconColorGreen = import_react11.css`
|
|
1386
|
+
color: var(--brand-secondary-3);
|
|
1387
|
+
`;
|
|
1388
|
+
var IconColorRed = import_react11.css`
|
|
1389
|
+
color: var(--brand-secondary-5);
|
|
1390
|
+
`;
|
|
1391
|
+
var IconColorGray = import_react11.css`
|
|
1392
|
+
color: var(--gray-500);
|
|
1393
|
+
`;
|
|
1394
|
+
var IconColorCurrent = import_react11.css`
|
|
1395
|
+
color: currentColor;
|
|
1396
|
+
`;
|
|
1397
|
+
|
|
1379
1398
|
// src/components/Icons/IconsProvider.tsx
|
|
1399
|
+
var import_param_case = require("param-case");
|
|
1400
|
+
var import_react12 = require("react");
|
|
1380
1401
|
var import_jsx_runtime4 = require("@emotion/react/jsx-runtime");
|
|
1381
1402
|
var IconContext = (0, import_react12.createContext)({
|
|
1382
1403
|
/** object mapping of available icons */
|
|
@@ -10480,27 +10501,149 @@ var AnimationFile = ({
|
|
|
10480
10501
|
);
|
|
10481
10502
|
};
|
|
10482
10503
|
|
|
10483
|
-
// src/components/
|
|
10504
|
+
// src/components/Banner/Banner.tsx
|
|
10505
|
+
var import_cg5 = require("react-icons/cg");
|
|
10506
|
+
|
|
10507
|
+
// src/components/Banner/Banner.styles.ts
|
|
10508
|
+
var import_react24 = require("@emotion/react");
|
|
10509
|
+
|
|
10510
|
+
// src/styles/functionalColors.styles.ts
|
|
10484
10511
|
var import_react23 = require("@emotion/react");
|
|
10485
|
-
var
|
|
10512
|
+
var functionalColors = import_react23.css`
|
|
10513
|
+
--caution-desc: rgb(161, 98, 7);
|
|
10514
|
+
--caution-icon: rgb(250, 204, 21);
|
|
10515
|
+
--caution-title: rgb(133, 77, 14);
|
|
10516
|
+
--caution-container: rgb(254, 252, 232);
|
|
10517
|
+
|
|
10518
|
+
--danger-desc: rgb(185, 28, 28);
|
|
10519
|
+
--danger-icon: rgb(248, 113, 113);
|
|
10520
|
+
--danger-title: rgb(153, 27, 27);
|
|
10521
|
+
--danger-container: rgb(254, 242, 242);
|
|
10522
|
+
|
|
10523
|
+
--info-desc: rgb(29, 78, 216);
|
|
10524
|
+
--info-icon: rgb(96, 165, 250);
|
|
10525
|
+
--info-title: rgb(30, 64, 175);
|
|
10526
|
+
--info-container: rgb(239, 246, 255);
|
|
10527
|
+
|
|
10528
|
+
--note-desc: var(--gray-700);
|
|
10529
|
+
--note-icon: var(--gray-400);
|
|
10530
|
+
--note-title: var(--gray-800);
|
|
10531
|
+
--note-container: var(--gray-50);
|
|
10532
|
+
|
|
10533
|
+
--success-desc: rgb(21, 128, 61);
|
|
10534
|
+
--success-icon: rgb(74, 222, 128);
|
|
10535
|
+
--success-title: rgb(22, 101, 52);
|
|
10536
|
+
--success-container: rgb(240, 253, 250);
|
|
10537
|
+
`;
|
|
10538
|
+
|
|
10539
|
+
// src/components/Banner/Banner.styles.ts
|
|
10540
|
+
var bannerStyles = import_react24.css`
|
|
10541
|
+
${functionalColors}
|
|
10542
|
+
|
|
10543
|
+
--border-color: var(--info-icon);
|
|
10544
|
+
--background-color: var(--info-container);
|
|
10545
|
+
|
|
10546
|
+
display: flex;
|
|
10547
|
+
gap: var(--spacing-sm);
|
|
10548
|
+
justify-content: space-between;
|
|
10549
|
+
color: var(--brand-secondary-1);
|
|
10550
|
+
border-bottom: 1px solid var(--border-color);
|
|
10551
|
+
background-color: var(--background-color);
|
|
10552
|
+
padding: var(--spacing-sm);
|
|
10553
|
+
|
|
10554
|
+
&[data-type='caution'] {
|
|
10555
|
+
--border-color: var(--caution-icon);
|
|
10556
|
+
--background-color: var(--caution-container);
|
|
10557
|
+
}
|
|
10558
|
+
|
|
10559
|
+
&[data-type='danger'] {
|
|
10560
|
+
--border-color: var(--danger-icon);
|
|
10561
|
+
--background-color: var(--danger-container);
|
|
10562
|
+
}
|
|
10563
|
+
|
|
10564
|
+
&[data-type='note'] {
|
|
10565
|
+
--border-color: var(--note-icon);
|
|
10566
|
+
--background-color: var(--note-container);
|
|
10567
|
+
}
|
|
10568
|
+
|
|
10569
|
+
&[data-type='success'] {
|
|
10570
|
+
--border-color: var(--success-icon);
|
|
10571
|
+
--background-color: var(--success-container);
|
|
10572
|
+
}
|
|
10573
|
+
`;
|
|
10574
|
+
var bannerAnimatedStyles = import_react24.css`
|
|
10575
|
+
animation: ${slideInTtb} var(--duration-xfast) ease-out;
|
|
10576
|
+
`;
|
|
10577
|
+
var bannerContentStyles = import_react24.css``;
|
|
10578
|
+
var bannerDismissButtonStyles = import_react24.css`
|
|
10579
|
+
display: flex;
|
|
10580
|
+
align-items: center;
|
|
10581
|
+
justify-content: center;
|
|
10582
|
+
position: relative;
|
|
10583
|
+
padding: var(--spacing-xs);
|
|
10584
|
+
background: transparent;
|
|
10585
|
+
border: 0;
|
|
10586
|
+
border-radius: var(--rounded-base);
|
|
10587
|
+
z-index: 1;
|
|
10588
|
+
overflow: hidden;
|
|
10589
|
+
|
|
10590
|
+
&::before {
|
|
10591
|
+
content: '';
|
|
10592
|
+
display: block;
|
|
10593
|
+
position: absolute;
|
|
10594
|
+
inset: 0;
|
|
10595
|
+
background-color: var(--gray-200);
|
|
10596
|
+
z-index: -1;
|
|
10597
|
+
opacity: 0;
|
|
10598
|
+
transition: opacity var(--duration-xfast) ease-in-out;
|
|
10599
|
+
}
|
|
10600
|
+
|
|
10601
|
+
&:hover {
|
|
10602
|
+
&::before {
|
|
10603
|
+
opacity: 0.5;
|
|
10604
|
+
}
|
|
10605
|
+
}
|
|
10606
|
+
`;
|
|
10607
|
+
|
|
10608
|
+
// src/components/Banner/Banner.tsx
|
|
10609
|
+
var import_jsx_runtime15 = require("@emotion/react/jsx-runtime");
|
|
10610
|
+
var Banner = ({ type = "note", onDismiss, children, isAnimated = false, ...props }) => {
|
|
10611
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
10612
|
+
"div",
|
|
10613
|
+
{
|
|
10614
|
+
role: "banner",
|
|
10615
|
+
css: [bannerStyles, isAnimated ? bannerAnimatedStyles : void 0],
|
|
10616
|
+
"data-type": type,
|
|
10617
|
+
...props,
|
|
10618
|
+
children: [
|
|
10619
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { css: bannerContentStyles, children }),
|
|
10620
|
+
!onDismiss ? null : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("button", { type: "button", css: bannerDismissButtonStyles, title: "Dismiss banner", onClick: onDismiss, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_cg5.CgClose, {}) })
|
|
10621
|
+
]
|
|
10622
|
+
}
|
|
10623
|
+
);
|
|
10624
|
+
};
|
|
10625
|
+
|
|
10626
|
+
// src/components/Brand/UniformLogo.styles.ts
|
|
10627
|
+
var import_react25 = require("@emotion/react");
|
|
10628
|
+
var SVG = import_react25.css`
|
|
10486
10629
|
display: block;
|
|
10487
10630
|
`;
|
|
10488
|
-
var SVGLight =
|
|
10631
|
+
var SVGLight = import_react25.css`
|
|
10489
10632
|
background: transparent;
|
|
10490
10633
|
color: var(--brand-secondary-1);
|
|
10491
10634
|
`;
|
|
10492
|
-
var SVGDark =
|
|
10635
|
+
var SVGDark = import_react25.css`
|
|
10493
10636
|
background: var(--brand-secondary-1);
|
|
10494
10637
|
color: var(--white);
|
|
10495
10638
|
`;
|
|
10496
10639
|
|
|
10497
10640
|
// src/components/Brand/UniformBadge.tsx
|
|
10498
|
-
var
|
|
10641
|
+
var import_jsx_runtime16 = require("@emotion/react/jsx-runtime");
|
|
10499
10642
|
var UniformBadge = ({
|
|
10500
10643
|
theme = "light",
|
|
10501
10644
|
...props
|
|
10502
10645
|
}) => {
|
|
10503
|
-
return /* @__PURE__ */ (0,
|
|
10646
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
10504
10647
|
"svg",
|
|
10505
10648
|
{
|
|
10506
10649
|
width: "38",
|
|
@@ -10512,15 +10655,15 @@ var UniformBadge = ({
|
|
|
10512
10655
|
css: [SVG, theme === "dark" ? SVGDark : SVGLight],
|
|
10513
10656
|
...props,
|
|
10514
10657
|
children: [
|
|
10515
|
-
/* @__PURE__ */ (0,
|
|
10516
|
-
/* @__PURE__ */ (0,
|
|
10658
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M28.998 0 0 16.744V50.23l28.998-16.744 29.004-16.743L28.998 0Z", fill: "#7BB3FF" }),
|
|
10659
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
10517
10660
|
"path",
|
|
10518
10661
|
{
|
|
10519
10662
|
d: "M28.998 66.974V33.487L0 50.231v33.487l28.998 16.744 29.004-16.744V50.23L28.998 66.974Z",
|
|
10520
10663
|
fill: "#498DFF"
|
|
10521
10664
|
}
|
|
10522
10665
|
),
|
|
10523
|
-
/* @__PURE__ */ (0,
|
|
10666
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
10524
10667
|
"path",
|
|
10525
10668
|
{
|
|
10526
10669
|
d: "M58.002 16.744 28.998 33.487l29.004 16.744v33.487L87 66.975V33.487L58.002 16.744Z",
|
|
@@ -10533,12 +10676,12 @@ var UniformBadge = ({
|
|
|
10533
10676
|
};
|
|
10534
10677
|
|
|
10535
10678
|
// src/components/Brand/UniformLogo.tsx
|
|
10536
|
-
var
|
|
10679
|
+
var import_jsx_runtime17 = require("@emotion/react/jsx-runtime");
|
|
10537
10680
|
var UniformLogo = ({
|
|
10538
10681
|
theme = "light",
|
|
10539
10682
|
...props
|
|
10540
10683
|
}) => {
|
|
10541
|
-
return /* @__PURE__ */ (0,
|
|
10684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { "data-test-id": "uniform-Logo", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
10542
10685
|
"svg",
|
|
10543
10686
|
{
|
|
10544
10687
|
width: "153",
|
|
@@ -10549,16 +10692,16 @@ var UniformLogo = ({
|
|
|
10549
10692
|
css: [SVG, theme === "dark" ? SVGDark : SVGLight],
|
|
10550
10693
|
...props,
|
|
10551
10694
|
children: [
|
|
10552
|
-
/* @__PURE__ */ (0,
|
|
10553
|
-
/* @__PURE__ */ (0,
|
|
10695
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M11.249 0 0 6.495v12.99l11.249-6.495L22.5 6.495 11.25 0Z", fill: "#7BB3FF" }),
|
|
10696
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
10554
10697
|
"path",
|
|
10555
10698
|
{
|
|
10556
10699
|
d: "M11.249 25.98V12.99L0 19.486v12.99l11.249 6.495L22.5 32.476v-12.99L11.25 25.98Z",
|
|
10557
10700
|
fill: "#498DFF"
|
|
10558
10701
|
}
|
|
10559
10702
|
),
|
|
10560
|
-
/* @__PURE__ */ (0,
|
|
10561
|
-
/* @__PURE__ */ (0,
|
|
10703
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "m22.5 6.495-11.25 6.496 11.25 6.495v12.99l11.25-6.495V12.99L22.5 6.495Z", fill: "#E61408" }),
|
|
10704
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
10562
10705
|
"path",
|
|
10563
10706
|
{
|
|
10564
10707
|
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",
|
|
@@ -10573,7 +10716,7 @@ var UniformLogo = ({
|
|
|
10573
10716
|
// src/components/Button/Button.tsx
|
|
10574
10717
|
var React5 = __toESM(require("react"));
|
|
10575
10718
|
var import_Button = require("reakit/Button");
|
|
10576
|
-
var
|
|
10719
|
+
var import_jsx_runtime18 = require("@emotion/react/jsx-runtime");
|
|
10577
10720
|
var Button = React5.forwardRef(
|
|
10578
10721
|
({ buttonType = "primary", size = "md", children, ...props }, ref) => {
|
|
10579
10722
|
const buttonTheme = {
|
|
@@ -10593,12 +10736,12 @@ var Button = React5.forwardRef(
|
|
|
10593
10736
|
lg: "padding: var(--spacing-sm) var(--spacing-base)",
|
|
10594
10737
|
xl: "padding: 0.75rem var(--spacing-md)"
|
|
10595
10738
|
};
|
|
10596
|
-
return /* @__PURE__ */ (0,
|
|
10739
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_Button.Button, { ref, css: [button, buttonTheme[buttonType], btnSize[size]], ...props, children });
|
|
10597
10740
|
}
|
|
10598
10741
|
);
|
|
10599
10742
|
|
|
10600
10743
|
// src/components/ButtonWithMenu/ButtonWithMenu.tsx
|
|
10601
|
-
var
|
|
10744
|
+
var import_cg6 = require("react-icons/cg");
|
|
10602
10745
|
|
|
10603
10746
|
// src/components/Menu/Menu.tsx
|
|
10604
10747
|
var React6 = __toESM(require("react"));
|
|
@@ -10606,8 +10749,8 @@ var import_Menu = require("reakit/Menu");
|
|
|
10606
10749
|
var import_Portal = require("reakit/Portal");
|
|
10607
10750
|
|
|
10608
10751
|
// src/components/Menu/Menu.styles.ts
|
|
10609
|
-
var
|
|
10610
|
-
var menu =
|
|
10752
|
+
var import_react26 = require("@emotion/react");
|
|
10753
|
+
var menu = import_react26.css`
|
|
10611
10754
|
box-shadow: var(--shadow-base);
|
|
10612
10755
|
border-radius: var(--rounded-base);
|
|
10613
10756
|
background: var(--gray-50);
|
|
@@ -10621,7 +10764,7 @@ var menu = import_react24.css`
|
|
|
10621
10764
|
`;
|
|
10622
10765
|
|
|
10623
10766
|
// src/components/Menu/Menu.tsx
|
|
10624
|
-
var
|
|
10767
|
+
var import_jsx_runtime19 = require("@emotion/react/jsx-runtime");
|
|
10625
10768
|
var MenuContext = React6.createContext({});
|
|
10626
10769
|
var useMenuContext = () => {
|
|
10627
10770
|
return React6.useContext(MenuContext);
|
|
@@ -10634,9 +10777,9 @@ var Menu = ({
|
|
|
10634
10777
|
children
|
|
10635
10778
|
}) => {
|
|
10636
10779
|
const menuState = (0, import_Menu.useMenuState)({ placement });
|
|
10637
|
-
return /* @__PURE__ */ (0,
|
|
10638
|
-
/* @__PURE__ */ (0,
|
|
10639
|
-
/* @__PURE__ */ (0,
|
|
10780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(MenuContext.Provider, { value: menuState, children: [
|
|
10781
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_Menu.MenuButton, { ...menuState, ref: menuTrigger.ref, ...menuTrigger.props, children: (triggerProps) => React6.cloneElement(menuTrigger, triggerProps) }),
|
|
10782
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_Portal.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
10640
10783
|
import_Menu.Menu,
|
|
10641
10784
|
{
|
|
10642
10785
|
...menuState,
|
|
@@ -10657,8 +10800,8 @@ var React7 = __toESM(require("react"));
|
|
|
10657
10800
|
var import_reakit = require("reakit");
|
|
10658
10801
|
|
|
10659
10802
|
// src/components/Menu/MenuItem.styles.ts
|
|
10660
|
-
var
|
|
10661
|
-
var menuItem = (textTheme) =>
|
|
10803
|
+
var import_react27 = require("@emotion/react");
|
|
10804
|
+
var menuItem = (textTheme) => import_react27.css`
|
|
10662
10805
|
align-items: center;
|
|
10663
10806
|
border: none;
|
|
10664
10807
|
border-radius: var(--rounded-base);
|
|
@@ -10684,7 +10827,7 @@ var menuItem = (textTheme) => import_react25.css`
|
|
|
10684
10827
|
outline: none;
|
|
10685
10828
|
}
|
|
10686
10829
|
`;
|
|
10687
|
-
var menuItemWithIcon =
|
|
10830
|
+
var menuItemWithIcon = import_react27.css`
|
|
10688
10831
|
align-items: center;
|
|
10689
10832
|
display: flex;
|
|
10690
10833
|
justify-content: space-between;
|
|
@@ -10696,14 +10839,14 @@ var menuItemWithIcon = import_react25.css`
|
|
|
10696
10839
|
height: var(--spacing-base);
|
|
10697
10840
|
}
|
|
10698
10841
|
`;
|
|
10699
|
-
var menuItemSeparator =
|
|
10842
|
+
var menuItemSeparator = import_react27.css`
|
|
10700
10843
|
border-top: 1px solid var(--gray-300);
|
|
10701
10844
|
width: 100%;
|
|
10702
10845
|
margin-block: var(--spacing-sm);
|
|
10703
10846
|
`;
|
|
10704
10847
|
|
|
10705
10848
|
// src/components/Menu/MenuItem.tsx
|
|
10706
|
-
var
|
|
10849
|
+
var import_jsx_runtime20 = require("@emotion/react/jsx-runtime");
|
|
10707
10850
|
var MenuItem = React7.forwardRef(
|
|
10708
10851
|
({ children, className, hideMenuOnClick = true, icon, textColor = "base", ...props }, ref) => {
|
|
10709
10852
|
const menuState = useMenuContext();
|
|
@@ -10720,7 +10863,7 @@ var MenuItem = React7.forwardRef(
|
|
|
10720
10863
|
};
|
|
10721
10864
|
const resolvedProps = hideMenuOnClick ? resolveProps(props) : props;
|
|
10722
10865
|
const resolvedChildren = typeof children === "function" ? children(resolvedProps) : children;
|
|
10723
|
-
return /* @__PURE__ */ (0,
|
|
10866
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
10724
10867
|
import_reakit.MenuItem,
|
|
10725
10868
|
{
|
|
10726
10869
|
ref,
|
|
@@ -10736,7 +10879,7 @@ var MenuItem = React7.forwardRef(
|
|
|
10736
10879
|
}
|
|
10737
10880
|
);
|
|
10738
10881
|
function renderWithIcon(children, icon) {
|
|
10739
|
-
return /* @__PURE__ */ (0,
|
|
10882
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("span", { css: menuItemWithIcon, children: [
|
|
10740
10883
|
icon,
|
|
10741
10884
|
" ",
|
|
10742
10885
|
children
|
|
@@ -10744,12 +10887,12 @@ function renderWithIcon(children, icon) {
|
|
|
10744
10887
|
}
|
|
10745
10888
|
|
|
10746
10889
|
// src/components/Menu/MenuItemSeparator.tsx
|
|
10747
|
-
var
|
|
10748
|
-
var MenuItemSeparator = () => /* @__PURE__ */ (0,
|
|
10890
|
+
var import_jsx_runtime21 = require("@emotion/react/jsx-runtime");
|
|
10891
|
+
var MenuItemSeparator = () => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("hr", { css: menuItemSeparator });
|
|
10749
10892
|
|
|
10750
10893
|
// src/components/ButtonWithMenu/ButtonWithMenu.styles.ts
|
|
10751
|
-
var
|
|
10752
|
-
var ButtonWithMenuContainer =
|
|
10894
|
+
var import_react28 = require("@emotion/react");
|
|
10895
|
+
var ButtonWithMenuContainer = import_react28.css`
|
|
10753
10896
|
align-items: center;
|
|
10754
10897
|
border: 1px solid transparent;
|
|
10755
10898
|
border-radius: var(--rounded-sm);
|
|
@@ -10770,7 +10913,7 @@ var ButtonWithMenuContainer = import_react26.css`
|
|
|
10770
10913
|
border-color: var(--gray-700);
|
|
10771
10914
|
}
|
|
10772
10915
|
`;
|
|
10773
|
-
var ButtonWithMenuBtn =
|
|
10916
|
+
var ButtonWithMenuBtn = import_react28.css`
|
|
10774
10917
|
border: 1px solid transparent;
|
|
10775
10918
|
background: transparent;
|
|
10776
10919
|
border-radius: var(--rounded-base);
|
|
@@ -10793,33 +10936,33 @@ var ButtonWithMenuBtn = import_react26.css`
|
|
|
10793
10936
|
pointer-events: none;
|
|
10794
10937
|
}
|
|
10795
10938
|
`;
|
|
10796
|
-
var ButtonWithMenuIcon =
|
|
10939
|
+
var ButtonWithMenuIcon = import_react28.css`
|
|
10797
10940
|
padding: var(--spacing-sm);
|
|
10798
10941
|
border-left: 1px solid currentColor;
|
|
10799
10942
|
`;
|
|
10800
|
-
var buttonPrimary2 =
|
|
10943
|
+
var buttonPrimary2 = import_react28.css`
|
|
10801
10944
|
background: var(--brand-secondary-1);
|
|
10802
10945
|
color: var(--white);
|
|
10803
10946
|
`;
|
|
10804
|
-
var buttonPrimaryDisabled =
|
|
10947
|
+
var buttonPrimaryDisabled = import_react28.css`
|
|
10805
10948
|
background: var(--gray-300);
|
|
10806
10949
|
color: var(--white);
|
|
10807
10950
|
`;
|
|
10808
|
-
var buttonSecondary2 =
|
|
10951
|
+
var buttonSecondary2 = import_react28.css`
|
|
10809
10952
|
background: var(--brand-secondary-5);
|
|
10810
10953
|
color: var(--white);
|
|
10811
10954
|
`;
|
|
10812
|
-
var buttonSecondaryDisabled =
|
|
10955
|
+
var buttonSecondaryDisabled = import_react28.css`
|
|
10813
10956
|
${buttonPrimaryDisabled}
|
|
10814
10957
|
`;
|
|
10815
|
-
var buttonUnimportant2 =
|
|
10958
|
+
var buttonUnimportant2 = import_react28.css`
|
|
10816
10959
|
background: var(--brand-secondary-2);
|
|
10817
10960
|
color: var(--brand-secondary-1);
|
|
10818
10961
|
`;
|
|
10819
|
-
var buttonUnimportantDisabled =
|
|
10962
|
+
var buttonUnimportantDisabled = import_react28.css`
|
|
10820
10963
|
${buttonPrimaryDisabled}
|
|
10821
10964
|
`;
|
|
10822
|
-
var buttonGhost2 =
|
|
10965
|
+
var buttonGhost2 = import_react28.css`
|
|
10823
10966
|
background: transparent;
|
|
10824
10967
|
color: var(--brand-secondary-3);
|
|
10825
10968
|
|
|
@@ -10827,13 +10970,13 @@ var buttonGhost2 = import_react26.css`
|
|
|
10827
10970
|
border-color: var(--brand-secondary-3);
|
|
10828
10971
|
}
|
|
10829
10972
|
`;
|
|
10830
|
-
var buttonGhostDisabled =
|
|
10973
|
+
var buttonGhostDisabled = import_react28.css`
|
|
10831
10974
|
border-color: var(--gray-400);
|
|
10832
10975
|
color: var(--gray-400);
|
|
10833
10976
|
`;
|
|
10834
10977
|
|
|
10835
10978
|
// src/components/ButtonWithMenu/ButtonWithMenu.tsx
|
|
10836
|
-
var
|
|
10979
|
+
var import_jsx_runtime22 = require("@emotion/react/jsx-runtime");
|
|
10837
10980
|
var ButtonWithMenu = ({
|
|
10838
10981
|
onButtonClick,
|
|
10839
10982
|
buttonType = "secondary",
|
|
@@ -10855,13 +10998,13 @@ var ButtonWithMenu = ({
|
|
|
10855
10998
|
ghost: buttonGhostDisabled,
|
|
10856
10999
|
unimportant: buttonUnimportantDisabled
|
|
10857
11000
|
};
|
|
10858
|
-
return /* @__PURE__ */ (0,
|
|
11001
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
10859
11002
|
"div",
|
|
10860
11003
|
{
|
|
10861
11004
|
css: [ButtonWithMenuContainer, disabled ? buttonDisabledTheme[buttonType] : buttonTheme[buttonType]],
|
|
10862
11005
|
"data-test-id": "multioptions-button",
|
|
10863
11006
|
children: [
|
|
10864
|
-
/* @__PURE__ */ (0,
|
|
11007
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
10865
11008
|
"button",
|
|
10866
11009
|
{
|
|
10867
11010
|
type: "button",
|
|
@@ -10873,12 +11016,12 @@ var ButtonWithMenu = ({
|
|
|
10873
11016
|
children: buttonText
|
|
10874
11017
|
}
|
|
10875
11018
|
),
|
|
10876
|
-
/* @__PURE__ */ (0,
|
|
11019
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
10877
11020
|
Menu,
|
|
10878
11021
|
{
|
|
10879
11022
|
menuLabel: "buttonMenu",
|
|
10880
11023
|
placement,
|
|
10881
|
-
menuTrigger: /* @__PURE__ */ (0,
|
|
11024
|
+
menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { css: ButtonWithMenuIcon, "data-test-id": "multioptions-button-call-menu", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Icon, { icon: import_cg6.CgChevronDown, size: 24, iconColor: "currentColor" }) }),
|
|
10882
11025
|
children
|
|
10883
11026
|
}
|
|
10884
11027
|
)
|
|
@@ -10888,41 +11031,18 @@ var ButtonWithMenu = ({
|
|
|
10888
11031
|
};
|
|
10889
11032
|
|
|
10890
11033
|
// src/components/Callout/Callout.tsx
|
|
10891
|
-
var
|
|
11034
|
+
var import_react30 = require("@emotion/react");
|
|
10892
11035
|
|
|
10893
11036
|
// src/components/Callout/Callout.styles.ts
|
|
10894
|
-
var
|
|
10895
|
-
var calloutContainer =
|
|
10896
|
-
|
|
10897
|
-
--caution-icon: rgb(250, 204, 21);
|
|
10898
|
-
--caution-title: rgb(133, 77, 14);
|
|
10899
|
-
--caution-container: rgb(254, 252, 232);
|
|
10900
|
-
|
|
10901
|
-
--danger-desc: rgb(185, 28, 28);
|
|
10902
|
-
--danger-icon: rgb(248, 113, 113);
|
|
10903
|
-
--danger-title: rgb(153, 27, 27);
|
|
10904
|
-
--danger-container: rgb(254, 242, 242);
|
|
10905
|
-
|
|
10906
|
-
--info-desc: rgb(29, 78, 216);
|
|
10907
|
-
--info-icon: rgb(96, 165, 250);
|
|
10908
|
-
--info-title: rgb(30, 64, 175);
|
|
10909
|
-
--info-container: rgb(239, 246, 255);
|
|
10910
|
-
|
|
10911
|
-
--note-desc: var(--gray-700);
|
|
10912
|
-
--note-icon: var(--gray-400);
|
|
10913
|
-
--note-title: var(--gray-800);
|
|
10914
|
-
--note-container: var(--gray-50);
|
|
10915
|
-
|
|
10916
|
-
--success-desc: rgb(21, 128, 61);
|
|
10917
|
-
--success-icon: rgb(74, 222, 128);
|
|
10918
|
-
--success-title: rgb(22, 101, 52);
|
|
10919
|
-
--success-container: rgb(240, 253, 250);
|
|
11037
|
+
var import_react29 = require("@emotion/react");
|
|
11038
|
+
var calloutContainer = import_react29.css`
|
|
11039
|
+
${functionalColors}
|
|
10920
11040
|
|
|
10921
11041
|
font-size: var(--fs-sm);
|
|
10922
11042
|
border-radius: var(--rounded-base);
|
|
10923
11043
|
padding: var(--spacing-base);
|
|
10924
11044
|
`;
|
|
10925
|
-
var calloutContainerCompact =
|
|
11045
|
+
var calloutContainerCompact = import_react29.css`
|
|
10926
11046
|
font-size: var(--fs-xs);
|
|
10927
11047
|
padding: var(--spacing-sm);
|
|
10928
11048
|
border-radius: 0 var(--rounded-base) var(--rounded-base) 0;
|
|
@@ -10934,32 +11054,32 @@ var calloutContainerCompact = import_react27.css`
|
|
|
10934
11054
|
--note-desc: var(--brand-secondary-1);
|
|
10935
11055
|
--success-desc: var(--brand-secondary-1);
|
|
10936
11056
|
`;
|
|
10937
|
-
var calloutInner =
|
|
11057
|
+
var calloutInner = import_react29.css`
|
|
10938
11058
|
display: flex;
|
|
10939
11059
|
gap: var(--spacing-sm);
|
|
10940
11060
|
`;
|
|
10941
|
-
var calloutBody =
|
|
11061
|
+
var calloutBody = import_react29.css`
|
|
10942
11062
|
display: flex;
|
|
10943
11063
|
flex-direction: column;
|
|
10944
11064
|
gap: var(--spacing-base);
|
|
10945
11065
|
`;
|
|
10946
|
-
var calloutBodyCompact =
|
|
11066
|
+
var calloutBodyCompact = import_react29.css`
|
|
10947
11067
|
gap: var(--spacing-xs);
|
|
10948
11068
|
`;
|
|
10949
|
-
var calloutIconWrap =
|
|
11069
|
+
var calloutIconWrap = import_react29.css`
|
|
10950
11070
|
flex-shrink: 0;
|
|
10951
11071
|
`;
|
|
10952
|
-
var calloutTitle =
|
|
11072
|
+
var calloutTitle = import_react29.css`
|
|
10953
11073
|
font-weight: var(--fw-bold);
|
|
10954
11074
|
`;
|
|
10955
|
-
var calloutIcon =
|
|
11075
|
+
var calloutIcon = import_react29.css`
|
|
10956
11076
|
width: 1.25rem;
|
|
10957
11077
|
height: 1.25rem;
|
|
10958
11078
|
`;
|
|
10959
11079
|
|
|
10960
11080
|
// src/components/Callout/CalloutIcons.tsx
|
|
10961
|
-
var
|
|
10962
|
-
var InfoIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
11081
|
+
var import_jsx_runtime23 = require("@emotion/react/jsx-runtime");
|
|
11082
|
+
var InfoIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
10963
11083
|
"svg",
|
|
10964
11084
|
{
|
|
10965
11085
|
role: "img",
|
|
@@ -10970,7 +11090,7 @@ var InfoIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
|
10970
11090
|
viewBox: "0 0 14 16",
|
|
10971
11091
|
fill: "currentColor",
|
|
10972
11092
|
...props,
|
|
10973
|
-
children: /* @__PURE__ */ (0,
|
|
11093
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
10974
11094
|
"path",
|
|
10975
11095
|
{
|
|
10976
11096
|
fillRule: "evenodd",
|
|
@@ -10979,7 +11099,7 @@ var InfoIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
|
10979
11099
|
)
|
|
10980
11100
|
}
|
|
10981
11101
|
);
|
|
10982
|
-
var DangerIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
11102
|
+
var DangerIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
10983
11103
|
"svg",
|
|
10984
11104
|
{
|
|
10985
11105
|
role: "img",
|
|
@@ -10990,7 +11110,7 @@ var DangerIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)
|
|
|
10990
11110
|
viewBox: "0 0 12 16",
|
|
10991
11111
|
fill: "currentColor",
|
|
10992
11112
|
...props,
|
|
10993
|
-
children: /* @__PURE__ */ (0,
|
|
11113
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
10994
11114
|
"path",
|
|
10995
11115
|
{
|
|
10996
11116
|
fillRule: "evenodd",
|
|
@@ -10999,7 +11119,7 @@ var DangerIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)
|
|
|
10999
11119
|
)
|
|
11000
11120
|
}
|
|
11001
11121
|
);
|
|
11002
|
-
var NoteIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
11122
|
+
var NoteIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
11003
11123
|
"svg",
|
|
11004
11124
|
{
|
|
11005
11125
|
role: "img",
|
|
@@ -11010,7 +11130,7 @@ var NoteIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
|
11010
11130
|
viewBox: "0 0 14 16",
|
|
11011
11131
|
fill: "currentColor",
|
|
11012
11132
|
...props,
|
|
11013
|
-
children: /* @__PURE__ */ (0,
|
|
11133
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
11014
11134
|
"path",
|
|
11015
11135
|
{
|
|
11016
11136
|
fillRule: "evenodd",
|
|
@@ -11019,7 +11139,7 @@ var NoteIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
|
11019
11139
|
)
|
|
11020
11140
|
}
|
|
11021
11141
|
);
|
|
11022
|
-
var TipIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
11142
|
+
var TipIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
11023
11143
|
"svg",
|
|
11024
11144
|
{
|
|
11025
11145
|
role: "img",
|
|
@@ -11030,7 +11150,7 @@ var TipIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
|
11030
11150
|
viewBox: "0 0 12 16",
|
|
11031
11151
|
fill: "currentColor",
|
|
11032
11152
|
...props,
|
|
11033
|
-
children: /* @__PURE__ */ (0,
|
|
11153
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
11034
11154
|
"path",
|
|
11035
11155
|
{
|
|
11036
11156
|
fillRule: "evenodd",
|
|
@@ -11039,7 +11159,7 @@ var TipIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
|
11039
11159
|
)
|
|
11040
11160
|
}
|
|
11041
11161
|
);
|
|
11042
|
-
var CautionIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
11162
|
+
var CautionIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
11043
11163
|
"svg",
|
|
11044
11164
|
{
|
|
11045
11165
|
role: "img",
|
|
@@ -11050,7 +11170,7 @@ var CautionIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx
|
|
|
11050
11170
|
viewBox: "0 0 16 16",
|
|
11051
11171
|
fill: "currentColor",
|
|
11052
11172
|
...props,
|
|
11053
|
-
children: /* @__PURE__ */ (0,
|
|
11173
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
11054
11174
|
"path",
|
|
11055
11175
|
{
|
|
11056
11176
|
fillRule: "evenodd",
|
|
@@ -11059,7 +11179,7 @@ var CautionIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx
|
|
|
11059
11179
|
)
|
|
11060
11180
|
}
|
|
11061
11181
|
);
|
|
11062
|
-
var SuccessIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
11182
|
+
var SuccessIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
11063
11183
|
"svg",
|
|
11064
11184
|
{
|
|
11065
11185
|
role: "img",
|
|
@@ -11070,7 +11190,7 @@ var SuccessIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx
|
|
|
11070
11190
|
fill: "currentColor",
|
|
11071
11191
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11072
11192
|
...props,
|
|
11073
|
-
children: /* @__PURE__ */ (0,
|
|
11193
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
11074
11194
|
"path",
|
|
11075
11195
|
{
|
|
11076
11196
|
fillRule: "evenodd",
|
|
@@ -11082,95 +11202,95 @@ var SuccessIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx
|
|
|
11082
11202
|
);
|
|
11083
11203
|
|
|
11084
11204
|
// src/components/Callout/Callout.tsx
|
|
11085
|
-
var
|
|
11205
|
+
var import_jsx_runtime24 = require("@emotion/react/jsx-runtime");
|
|
11086
11206
|
var calloutTypeDataMap = {
|
|
11087
11207
|
caution: {
|
|
11088
11208
|
icon: CautionIcon,
|
|
11089
|
-
descriptionColor:
|
|
11209
|
+
descriptionColor: import_react30.css`
|
|
11090
11210
|
color: var(--caution-desc);
|
|
11091
11211
|
`,
|
|
11092
|
-
iconColor:
|
|
11212
|
+
iconColor: import_react30.css`
|
|
11093
11213
|
color: var(--caution-icon);
|
|
11094
11214
|
`,
|
|
11095
|
-
containerStyles:
|
|
11215
|
+
containerStyles: import_react30.css`
|
|
11096
11216
|
color: var(--caution-title);
|
|
11097
11217
|
background-color: var(--caution-container);
|
|
11098
11218
|
`
|
|
11099
11219
|
},
|
|
11100
11220
|
danger: {
|
|
11101
11221
|
icon: DangerIcon,
|
|
11102
|
-
descriptionColor:
|
|
11222
|
+
descriptionColor: import_react30.css`
|
|
11103
11223
|
color: var(--danger-desc);
|
|
11104
11224
|
`,
|
|
11105
|
-
iconColor:
|
|
11225
|
+
iconColor: import_react30.css`
|
|
11106
11226
|
color: var(--danger-icon);
|
|
11107
11227
|
`,
|
|
11108
|
-
containerStyles:
|
|
11228
|
+
containerStyles: import_react30.css`
|
|
11109
11229
|
color: var(--danger-title);
|
|
11110
11230
|
background-color: var(--danger-container);
|
|
11111
11231
|
`
|
|
11112
11232
|
},
|
|
11113
11233
|
error: {
|
|
11114
11234
|
icon: CautionIcon,
|
|
11115
|
-
descriptionColor:
|
|
11235
|
+
descriptionColor: import_react30.css`
|
|
11116
11236
|
color: var(--danger-desc);
|
|
11117
11237
|
`,
|
|
11118
|
-
iconColor:
|
|
11238
|
+
iconColor: import_react30.css`
|
|
11119
11239
|
color: var(--danger-icon);
|
|
11120
11240
|
`,
|
|
11121
|
-
containerStyles:
|
|
11241
|
+
containerStyles: import_react30.css`
|
|
11122
11242
|
color: var(--danger-title);
|
|
11123
11243
|
background-color: var(--danger-container);
|
|
11124
11244
|
`
|
|
11125
11245
|
},
|
|
11126
11246
|
info: {
|
|
11127
11247
|
icon: InfoIcon,
|
|
11128
|
-
descriptionColor:
|
|
11248
|
+
descriptionColor: import_react30.css`
|
|
11129
11249
|
color: var(--info-desc);
|
|
11130
11250
|
`,
|
|
11131
|
-
iconColor:
|
|
11251
|
+
iconColor: import_react30.css`
|
|
11132
11252
|
color: var(--info-icon);
|
|
11133
11253
|
`,
|
|
11134
|
-
containerStyles:
|
|
11254
|
+
containerStyles: import_react30.css`
|
|
11135
11255
|
color: var(--info-title);
|
|
11136
11256
|
background-color: var(--info-container);
|
|
11137
11257
|
`
|
|
11138
11258
|
},
|
|
11139
11259
|
note: {
|
|
11140
11260
|
icon: NoteIcon,
|
|
11141
|
-
descriptionColor:
|
|
11261
|
+
descriptionColor: import_react30.css`
|
|
11142
11262
|
color: var(--note-desc);
|
|
11143
11263
|
`,
|
|
11144
|
-
iconColor:
|
|
11264
|
+
iconColor: import_react30.css`
|
|
11145
11265
|
color: var(--note-icon);
|
|
11146
11266
|
`,
|
|
11147
|
-
containerStyles:
|
|
11267
|
+
containerStyles: import_react30.css`
|
|
11148
11268
|
color: var(--note-title);
|
|
11149
11269
|
background-color: var(--note-container);
|
|
11150
11270
|
`
|
|
11151
11271
|
},
|
|
11152
11272
|
success: {
|
|
11153
11273
|
icon: SuccessIcon,
|
|
11154
|
-
descriptionColor:
|
|
11274
|
+
descriptionColor: import_react30.css`
|
|
11155
11275
|
color: var(--success-desc);
|
|
11156
11276
|
`,
|
|
11157
|
-
iconColor:
|
|
11277
|
+
iconColor: import_react30.css`
|
|
11158
11278
|
color: var(--success-icon);
|
|
11159
11279
|
`,
|
|
11160
|
-
containerStyles:
|
|
11280
|
+
containerStyles: import_react30.css`
|
|
11161
11281
|
color: var(--success-title);
|
|
11162
11282
|
background-color: var(--success-container);
|
|
11163
11283
|
`
|
|
11164
11284
|
},
|
|
11165
11285
|
tip: {
|
|
11166
11286
|
icon: TipIcon,
|
|
11167
|
-
descriptionColor:
|
|
11287
|
+
descriptionColor: import_react30.css`
|
|
11168
11288
|
color: var(--success-desc);
|
|
11169
11289
|
`,
|
|
11170
|
-
iconColor:
|
|
11290
|
+
iconColor: import_react30.css`
|
|
11171
11291
|
color: var(--success-icon);
|
|
11172
11292
|
`,
|
|
11173
|
-
containerStyles:
|
|
11293
|
+
containerStyles: import_react30.css`
|
|
11174
11294
|
color: var(--success-title);
|
|
11175
11295
|
background-color: var(--success-container);
|
|
11176
11296
|
`
|
|
@@ -11182,7 +11302,7 @@ var Callout = ({ type = "info", compact = false, title, children, className }) =
|
|
|
11182
11302
|
return null;
|
|
11183
11303
|
}
|
|
11184
11304
|
const Icon2 = calloutTypeData.icon;
|
|
11185
|
-
return /* @__PURE__ */ (0,
|
|
11305
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
11186
11306
|
"div",
|
|
11187
11307
|
{
|
|
11188
11308
|
"data-testid": "sdk-ui-callout",
|
|
@@ -11193,11 +11313,11 @@ var Callout = ({ type = "info", compact = false, title, children, className }) =
|
|
|
11193
11313
|
typeof className === "object" ? className : ""
|
|
11194
11314
|
],
|
|
11195
11315
|
className: `${typeof className === "string" ? className : ""}`,
|
|
11196
|
-
children: /* @__PURE__ */ (0,
|
|
11197
|
-
compact ? null : /* @__PURE__ */ (0,
|
|
11198
|
-
/* @__PURE__ */ (0,
|
|
11199
|
-
title ? /* @__PURE__ */ (0,
|
|
11200
|
-
children ? /* @__PURE__ */ (0,
|
|
11316
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { css: calloutInner, children: [
|
|
11317
|
+
compact ? null : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { css: calloutIconWrap, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon2, { css: [calloutIcon, calloutTypeData.iconColor] }) }),
|
|
11318
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { css: [calloutBody, compact ? calloutBodyCompact : void 0], children: [
|
|
11319
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { css: [calloutTitle], children: title }) : null,
|
|
11320
|
+
children ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { css: [calloutTypeData.descriptionColor], children }) : null
|
|
11201
11321
|
] })
|
|
11202
11322
|
] })
|
|
11203
11323
|
}
|
|
@@ -11205,22 +11325,22 @@ var Callout = ({ type = "info", compact = false, title, children, className }) =
|
|
|
11205
11325
|
};
|
|
11206
11326
|
|
|
11207
11327
|
// src/components/Card/Card.tsx
|
|
11208
|
-
var
|
|
11328
|
+
var import_cg7 = require("react-icons/cg");
|
|
11209
11329
|
|
|
11210
11330
|
// src/components/Card/Card.styles.ts
|
|
11211
|
-
var
|
|
11212
|
-
var CardContainer =
|
|
11331
|
+
var import_react31 = require("@emotion/react");
|
|
11332
|
+
var CardContainer = import_react31.css`
|
|
11213
11333
|
background: var(--white);
|
|
11214
11334
|
border: 1px solid var(--gray-300);
|
|
11215
11335
|
border-radius: var(--rounded-base);
|
|
11216
11336
|
padding: var(--spacing-md);
|
|
11217
11337
|
position: relative;
|
|
11218
11338
|
`;
|
|
11219
|
-
var CardTitle =
|
|
11339
|
+
var CardTitle = import_react31.css`
|
|
11220
11340
|
margin: 0 0 var(--spacing-base);
|
|
11221
11341
|
padding-right: var(--spacing-lg);
|
|
11222
11342
|
`;
|
|
11223
|
-
var CardMenu =
|
|
11343
|
+
var CardMenu = import_react31.css`
|
|
11224
11344
|
background: transparent;
|
|
11225
11345
|
border: none;
|
|
11226
11346
|
padding: 0;
|
|
@@ -11230,16 +11350,16 @@ var CardMenu = import_react29.css`
|
|
|
11230
11350
|
`;
|
|
11231
11351
|
|
|
11232
11352
|
// src/components/Card/Card.tsx
|
|
11233
|
-
var
|
|
11353
|
+
var import_jsx_runtime25 = require("@emotion/react/jsx-runtime");
|
|
11234
11354
|
var Card = ({ title, menuItems, children, disabled, menuButtonTestId, ...props }) => {
|
|
11235
11355
|
const normalizeTitle = (title == null ? void 0 : title.includes("_")) ? title.replaceAll("_", " ") : title;
|
|
11236
|
-
return /* @__PURE__ */ (0,
|
|
11237
|
-
title ? /* @__PURE__ */ (0,
|
|
11238
|
-
menuItems ? /* @__PURE__ */ (0,
|
|
11356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { css: CardContainer, ...props, children: [
|
|
11357
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Heading, { level: 3, css: CardTitle, children: normalizeTitle }) : null,
|
|
11358
|
+
menuItems ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
11239
11359
|
Menu,
|
|
11240
11360
|
{
|
|
11241
11361
|
menuLabel: "More options",
|
|
11242
|
-
menuTrigger: /* @__PURE__ */ (0,
|
|
11362
|
+
menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
11243
11363
|
"button",
|
|
11244
11364
|
{
|
|
11245
11365
|
"aria-label": "More options",
|
|
@@ -11247,7 +11367,7 @@ var Card = ({ title, menuItems, children, disabled, menuButtonTestId, ...props }
|
|
|
11247
11367
|
disabled,
|
|
11248
11368
|
css: CardMenu,
|
|
11249
11369
|
"data-test-id": menuButtonTestId != null ? menuButtonTestId : "list-card-menu",
|
|
11250
|
-
children: /* @__PURE__ */ (0,
|
|
11370
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon, { icon: import_cg7.CgMoreAlt, iconColor: "currentColor", size: 32 })
|
|
11251
11371
|
}
|
|
11252
11372
|
),
|
|
11253
11373
|
children: menuItems
|
|
@@ -11258,11 +11378,11 @@ var Card = ({ title, menuItems, children, disabled, menuButtonTestId, ...props }
|
|
|
11258
11378
|
};
|
|
11259
11379
|
|
|
11260
11380
|
// src/components/Card/CardContainer.styles.ts
|
|
11261
|
-
var
|
|
11262
|
-
var CardContainerWrapper = (bgColor) =>
|
|
11381
|
+
var import_react32 = require("@emotion/react");
|
|
11382
|
+
var CardContainerWrapper = (bgColor) => import_react32.css`
|
|
11263
11383
|
background: ${bgColor === "gray" ? `var(--gray-50)` : `var(--white)`};
|
|
11264
11384
|
`;
|
|
11265
|
-
var CardContainerInner = ({ padding, withLastColumn }) =>
|
|
11385
|
+
var CardContainerInner = ({ padding, withLastColumn }) => import_react32.css`
|
|
11266
11386
|
display: grid;
|
|
11267
11387
|
gap: var(--spacing-lg);
|
|
11268
11388
|
max-width: var(--site-width);
|
|
@@ -11276,7 +11396,7 @@ var CardContainerInner = ({ padding, withLastColumn }) => import_react30.css`
|
|
|
11276
11396
|
`;
|
|
11277
11397
|
|
|
11278
11398
|
// src/components/Card/CardContainer.tsx
|
|
11279
|
-
var
|
|
11399
|
+
var import_jsx_runtime26 = require("@emotion/react/jsx-runtime");
|
|
11280
11400
|
var CardContainer2 = ({
|
|
11281
11401
|
bgColor = "white",
|
|
11282
11402
|
padding = true,
|
|
@@ -11284,12 +11404,12 @@ var CardContainer2 = ({
|
|
|
11284
11404
|
children,
|
|
11285
11405
|
...props
|
|
11286
11406
|
}) => {
|
|
11287
|
-
return /* @__PURE__ */ (0,
|
|
11407
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { css: CardContainerWrapper(bgColor), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { css: CardContainerInner({ padding, withLastColumn }), children }) });
|
|
11288
11408
|
};
|
|
11289
11409
|
|
|
11290
11410
|
// src/components/Counter/Counter.styles.ts
|
|
11291
|
-
var
|
|
11292
|
-
var counterContainer =
|
|
11411
|
+
var import_react33 = require("@emotion/react");
|
|
11412
|
+
var counterContainer = import_react33.css`
|
|
11293
11413
|
align-items: center;
|
|
11294
11414
|
border-radius: var(--rounded-full);
|
|
11295
11415
|
border: 1px solid var(--gray-300);
|
|
@@ -11301,16 +11421,16 @@ var counterContainer = import_react31.css`
|
|
|
11301
11421
|
width: var(--spacing-base);
|
|
11302
11422
|
height: var(--spacing-base);
|
|
11303
11423
|
`;
|
|
11304
|
-
var counterZeroValue =
|
|
11424
|
+
var counterZeroValue = import_react33.css`
|
|
11305
11425
|
background: var(--brand-secondary-1);
|
|
11306
11426
|
border-radius: var(--rounded-full);
|
|
11307
11427
|
width: 2px;
|
|
11308
11428
|
height: 2px;
|
|
11309
11429
|
`;
|
|
11310
|
-
var counterTripleValue =
|
|
11430
|
+
var counterTripleValue = import_react33.css`
|
|
11311
11431
|
position: relative;
|
|
11312
11432
|
`;
|
|
11313
|
-
var counterIcon =
|
|
11433
|
+
var counterIcon = import_react33.css`
|
|
11314
11434
|
border-radius: var(--rounded-full);
|
|
11315
11435
|
background: var(--white);
|
|
11316
11436
|
color: var(--brand-secondary-3);
|
|
@@ -11321,21 +11441,21 @@ var counterIcon = import_react31.css`
|
|
|
11321
11441
|
`;
|
|
11322
11442
|
|
|
11323
11443
|
// src/components/Counter/Counter.tsx
|
|
11324
|
-
var
|
|
11444
|
+
var import_jsx_runtime27 = require("@emotion/react/jsx-runtime");
|
|
11325
11445
|
var Counter = ({ count }) => {
|
|
11326
11446
|
if (typeof count === "undefined") {
|
|
11327
11447
|
return null;
|
|
11328
11448
|
}
|
|
11329
|
-
const isTripleDigits = count > 99 ? /* @__PURE__ */ (0,
|
|
11449
|
+
const isTripleDigits = count > 99 ? /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { css: counterTripleValue, title: `${count}`, children: [
|
|
11330
11450
|
"99",
|
|
11331
|
-
/* @__PURE__ */ (0,
|
|
11451
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Icon, { icon: "math-plus", iconColor: "currentColor", size: "0.5rem", css: counterIcon })
|
|
11332
11452
|
] }) : count;
|
|
11333
|
-
const formatCount = count === 0 ? /* @__PURE__ */ (0,
|
|
11334
|
-
return /* @__PURE__ */ (0,
|
|
11453
|
+
const formatCount = count === 0 ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { css: counterZeroValue, title: `${count}` }) : isTripleDigits;
|
|
11454
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { css: counterContainer, children: formatCount });
|
|
11335
11455
|
};
|
|
11336
11456
|
|
|
11337
11457
|
// src/components/DashedBox/DashedBox.styles.ts
|
|
11338
|
-
var
|
|
11458
|
+
var import_react34 = require("@emotion/react");
|
|
11339
11459
|
var minHeight = (prop) => {
|
|
11340
11460
|
const values = {
|
|
11341
11461
|
auto: "auto",
|
|
@@ -11354,7 +11474,7 @@ var alignItemsConvert = (props) => {
|
|
|
11354
11474
|
};
|
|
11355
11475
|
return alignment[props];
|
|
11356
11476
|
};
|
|
11357
|
-
var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) =>
|
|
11477
|
+
var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) => import_react34.css`
|
|
11358
11478
|
align-items: ${alignItemsConvert(textAlign)};
|
|
11359
11479
|
border: 2px dashed var(--gray-300);
|
|
11360
11480
|
border-radius: var(--rounded-base);
|
|
@@ -11369,7 +11489,7 @@ var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) => import_react32.c
|
|
|
11369
11489
|
`;
|
|
11370
11490
|
|
|
11371
11491
|
// src/components/DashedBox/DashedBox.tsx
|
|
11372
|
-
var
|
|
11492
|
+
var import_jsx_runtime28 = require("@emotion/react/jsx-runtime");
|
|
11373
11493
|
var DashedBox = ({
|
|
11374
11494
|
bgColor = "transparent",
|
|
11375
11495
|
textAlign = "center",
|
|
@@ -11377,15 +11497,15 @@ var DashedBox = ({
|
|
|
11377
11497
|
children,
|
|
11378
11498
|
...props
|
|
11379
11499
|
}) => {
|
|
11380
|
-
return /* @__PURE__ */ (0,
|
|
11500
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { css: DashedBoxContainer({ bgColor, boxHeight, textAlign }), ...props, children });
|
|
11381
11501
|
};
|
|
11382
11502
|
|
|
11383
11503
|
// src/components/Details/Details.tsx
|
|
11384
11504
|
var React8 = __toESM(require("react"));
|
|
11385
11505
|
|
|
11386
11506
|
// src/components/Details/Details.styles.ts
|
|
11387
|
-
var
|
|
11388
|
-
var details =
|
|
11507
|
+
var import_react35 = require("@emotion/react");
|
|
11508
|
+
var details = import_react35.css`
|
|
11389
11509
|
cursor: pointer;
|
|
11390
11510
|
&[open] {
|
|
11391
11511
|
& > summary svg {
|
|
@@ -11393,11 +11513,11 @@ var details = import_react33.css`
|
|
|
11393
11513
|
}
|
|
11394
11514
|
}
|
|
11395
11515
|
`;
|
|
11396
|
-
var detailsContent =
|
|
11516
|
+
var detailsContent = import_react35.css`
|
|
11397
11517
|
animation: ${fadeInRtl} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
11398
11518
|
will-change: height;
|
|
11399
11519
|
`;
|
|
11400
|
-
var summary =
|
|
11520
|
+
var summary = import_react35.css`
|
|
11401
11521
|
align-items: center;
|
|
11402
11522
|
display: grid;
|
|
11403
11523
|
grid-template-columns: 1.25rem 1fr;
|
|
@@ -11410,16 +11530,16 @@ var summary = import_react33.css`
|
|
|
11410
11530
|
display: none;
|
|
11411
11531
|
}
|
|
11412
11532
|
`;
|
|
11413
|
-
var summaryIcon =
|
|
11533
|
+
var summaryIcon = import_react35.css`
|
|
11414
11534
|
transition: rotate var(--duration-fast) var(--timing-ease-out);
|
|
11415
11535
|
rotate: -90deg;
|
|
11416
11536
|
`;
|
|
11417
|
-
var summaryIconVisiblyHidden =
|
|
11537
|
+
var summaryIconVisiblyHidden = import_react35.css`
|
|
11418
11538
|
visibility: hidden;
|
|
11419
11539
|
`;
|
|
11420
11540
|
|
|
11421
11541
|
// src/components/Details/Details.tsx
|
|
11422
|
-
var
|
|
11542
|
+
var import_jsx_runtime29 = require("@emotion/react/jsx-runtime");
|
|
11423
11543
|
var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props }) => {
|
|
11424
11544
|
const detailsRef = React8.useRef(null);
|
|
11425
11545
|
const [open, setOpen] = React8.useState(isOpenByDefault);
|
|
@@ -11439,9 +11559,9 @@ var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props
|
|
|
11439
11559
|
return (_a2 = detailsRef.current) == null ? void 0 : _a2.removeEventListener("toggle", toggleEvent);
|
|
11440
11560
|
};
|
|
11441
11561
|
}, [detailsRef]);
|
|
11442
|
-
return /* @__PURE__ */ (0,
|
|
11443
|
-
/* @__PURE__ */ (0,
|
|
11444
|
-
/* @__PURE__ */ (0,
|
|
11562
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("details", { "data-testid": "details", css: details, open, ref: detailsRef, ...props, children: [
|
|
11563
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("summary", { "data-testid": "summary", css: summary, children: [
|
|
11564
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
11445
11565
|
Icon,
|
|
11446
11566
|
{
|
|
11447
11567
|
css: [!children ? summaryIconVisiblyHidden : void 0, summaryIcon],
|
|
@@ -11452,17 +11572,17 @@ var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props
|
|
|
11452
11572
|
),
|
|
11453
11573
|
summary2
|
|
11454
11574
|
] }),
|
|
11455
|
-
open ? /* @__PURE__ */ (0,
|
|
11575
|
+
open ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { "data-testid": "details-content", css: detailsContent, children }) : null
|
|
11456
11576
|
] });
|
|
11457
11577
|
};
|
|
11458
11578
|
|
|
11459
11579
|
// src/components/Drawer/Drawer.tsx
|
|
11460
|
-
var
|
|
11461
|
-
var
|
|
11580
|
+
var import_react39 = __toESM(require("react"));
|
|
11581
|
+
var import_cg8 = require("react-icons/cg");
|
|
11462
11582
|
|
|
11463
11583
|
// src/components/Drawer/Drawer.styles.ts
|
|
11464
|
-
var
|
|
11465
|
-
var drawerStyles = (bgColor = "var(--white)") =>
|
|
11584
|
+
var import_react36 = require("@emotion/react");
|
|
11585
|
+
var drawerStyles = (bgColor = "var(--white)") => import_react36.css`
|
|
11466
11586
|
background-color: ${bgColor};
|
|
11467
11587
|
display: flex;
|
|
11468
11588
|
gap: var(--spacing-sm);
|
|
@@ -11472,7 +11592,7 @@ var drawerStyles = (bgColor = "var(--white)") => import_react34.css`
|
|
|
11472
11592
|
padding-top: var(--spacing-sm);
|
|
11473
11593
|
height: 100%;
|
|
11474
11594
|
`;
|
|
11475
|
-
var drawerCloseButtonStyles =
|
|
11595
|
+
var drawerCloseButtonStyles = import_react36.css`
|
|
11476
11596
|
align-self: flex-end;
|
|
11477
11597
|
background: transparent;
|
|
11478
11598
|
border: none;
|
|
@@ -11480,23 +11600,23 @@ var drawerCloseButtonStyles = import_react34.css`
|
|
|
11480
11600
|
padding: var(--spacing-xs);
|
|
11481
11601
|
margin-right: var(--spacing-sm);
|
|
11482
11602
|
`;
|
|
11483
|
-
var drawerHeaderStyles =
|
|
11603
|
+
var drawerHeaderStyles = import_react36.css`
|
|
11484
11604
|
font-size: var(--fs-lg);
|
|
11485
11605
|
font-weight: var(--fw-bold);
|
|
11486
11606
|
padding-inline: var(--spacing-base);
|
|
11487
11607
|
`;
|
|
11488
|
-
var drawerRendererStyles =
|
|
11608
|
+
var drawerRendererStyles = import_react36.css`
|
|
11489
11609
|
inset: 0;
|
|
11490
11610
|
overflow: hidden;
|
|
11491
11611
|
z-index: 40;
|
|
11492
11612
|
`;
|
|
11493
|
-
var drawerInnerStyles =
|
|
11613
|
+
var drawerInnerStyles = import_react36.css`
|
|
11494
11614
|
height: 100%;
|
|
11495
11615
|
padding: 0 var(--spacing-base) var(--spacing-base);
|
|
11496
11616
|
overflow: auto;
|
|
11497
11617
|
${scrollbarStyles}
|
|
11498
11618
|
`;
|
|
11499
|
-
var slideDrawerIn =
|
|
11619
|
+
var slideDrawerIn = import_react36.keyframes`
|
|
11500
11620
|
0% {
|
|
11501
11621
|
transform: translate(0);
|
|
11502
11622
|
opacity: 0;
|
|
@@ -11511,7 +11631,7 @@ var slideDrawerIn = import_react34.keyframes`
|
|
|
11511
11631
|
transform: translate(0);
|
|
11512
11632
|
}
|
|
11513
11633
|
`;
|
|
11514
|
-
var drawerWrapperStyles =
|
|
11634
|
+
var drawerWrapperStyles = import_react36.css`
|
|
11515
11635
|
position: absolute;
|
|
11516
11636
|
inset-block: 0;
|
|
11517
11637
|
right: 0;
|
|
@@ -11522,7 +11642,7 @@ var drawerWrapperStyles = import_react34.css`
|
|
|
11522
11642
|
transition: width var(--duration-fast) ease-out;
|
|
11523
11643
|
box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
|
|
11524
11644
|
`;
|
|
11525
|
-
var drawerWrapperOverlayStyles =
|
|
11645
|
+
var drawerWrapperOverlayStyles = import_react36.css`
|
|
11526
11646
|
position: absolute;
|
|
11527
11647
|
inset: 0;
|
|
11528
11648
|
background: rgba(31, 43, 52, 0.4);
|
|
@@ -11530,9 +11650,9 @@ var drawerWrapperOverlayStyles = import_react34.css`
|
|
|
11530
11650
|
`;
|
|
11531
11651
|
|
|
11532
11652
|
// src/components/Drawer/DrawerProvider.tsx
|
|
11533
|
-
var
|
|
11534
|
-
var
|
|
11535
|
-
var DrawerContext = (0,
|
|
11653
|
+
var import_react37 = require("react");
|
|
11654
|
+
var import_jsx_runtime30 = require("@emotion/react/jsx-runtime");
|
|
11655
|
+
var DrawerContext = (0, import_react37.createContext)({
|
|
11536
11656
|
drawersRegistry: [],
|
|
11537
11657
|
registerDrawer: () => {
|
|
11538
11658
|
},
|
|
@@ -11540,7 +11660,7 @@ var DrawerContext = (0, import_react35.createContext)({
|
|
|
11540
11660
|
}
|
|
11541
11661
|
});
|
|
11542
11662
|
var DrawerProvider = ({ children }) => {
|
|
11543
|
-
const [drawersRegistry, setDrawersRegistry] = (0,
|
|
11663
|
+
const [drawersRegistry, setDrawersRegistry] = (0, import_react37.useState)([]);
|
|
11544
11664
|
useShortcut({
|
|
11545
11665
|
handler: () => {
|
|
11546
11666
|
var _a, _b;
|
|
@@ -11548,7 +11668,7 @@ var DrawerProvider = ({ children }) => {
|
|
|
11548
11668
|
},
|
|
11549
11669
|
shortcut: "escape"
|
|
11550
11670
|
});
|
|
11551
|
-
const registerDrawer = (0,
|
|
11671
|
+
const registerDrawer = (0, import_react37.useCallback)(
|
|
11552
11672
|
({ drawer, onFirstRender }) => {
|
|
11553
11673
|
setDrawersRegistry((currentValue) => {
|
|
11554
11674
|
var _a;
|
|
@@ -11570,7 +11690,7 @@ var DrawerProvider = ({ children }) => {
|
|
|
11570
11690
|
},
|
|
11571
11691
|
[setDrawersRegistry]
|
|
11572
11692
|
);
|
|
11573
|
-
const unregisterDrawer = (0,
|
|
11693
|
+
const unregisterDrawer = (0, import_react37.useCallback)(
|
|
11574
11694
|
(drawer) => {
|
|
11575
11695
|
setDrawersRegistry((currentValue) => {
|
|
11576
11696
|
return currentValue.filter((d) => {
|
|
@@ -11580,10 +11700,10 @@ var DrawerProvider = ({ children }) => {
|
|
|
11580
11700
|
},
|
|
11581
11701
|
[setDrawersRegistry]
|
|
11582
11702
|
);
|
|
11583
|
-
return /* @__PURE__ */ (0,
|
|
11703
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(DrawerContext.Provider, { value: { drawersRegistry, registerDrawer, unregisterDrawer }, children });
|
|
11584
11704
|
};
|
|
11585
11705
|
var useDrawer = () => {
|
|
11586
|
-
return (0,
|
|
11706
|
+
return (0, import_react37.useContext)(DrawerContext);
|
|
11587
11707
|
};
|
|
11588
11708
|
var useCloseCurrentDrawer = () => {
|
|
11589
11709
|
const context = useDrawer();
|
|
@@ -11600,13 +11720,13 @@ function isEqualDrawerInstance(a, b) {
|
|
|
11600
11720
|
}
|
|
11601
11721
|
|
|
11602
11722
|
// src/components/Drawer/DrawerRenderer.tsx
|
|
11603
|
-
var
|
|
11604
|
-
var
|
|
11723
|
+
var import_react38 = require("react");
|
|
11724
|
+
var import_jsx_runtime31 = require("@emotion/react/jsx-runtime");
|
|
11605
11725
|
var maxLayeringInPx = 64;
|
|
11606
11726
|
var idealDistanceBetweenLayersInPx = 16;
|
|
11607
|
-
var CurrentDrawerRendererContext = (0,
|
|
11727
|
+
var CurrentDrawerRendererContext = (0, import_react38.createContext)({});
|
|
11608
11728
|
var useCurrentDrawerRenderer = () => {
|
|
11609
|
-
return (0,
|
|
11729
|
+
return (0, import_react38.useContext)(CurrentDrawerRendererContext);
|
|
11610
11730
|
};
|
|
11611
11731
|
var DrawerRenderer = ({
|
|
11612
11732
|
stackId,
|
|
@@ -11621,7 +11741,7 @@ var DrawerRenderer = ({
|
|
|
11621
11741
|
if (drawersToRender.length === 0) {
|
|
11622
11742
|
return null;
|
|
11623
11743
|
}
|
|
11624
|
-
return /* @__PURE__ */ (0,
|
|
11744
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CurrentDrawerRendererContext.Provider, { value: { stackId }, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
11625
11745
|
"div",
|
|
11626
11746
|
{
|
|
11627
11747
|
css: [
|
|
@@ -11630,7 +11750,7 @@ var DrawerRenderer = ({
|
|
|
11630
11750
|
position === "sticky" ? { height: "100%", marginTop: "-100%" } : void 0
|
|
11631
11751
|
],
|
|
11632
11752
|
...otherProps,
|
|
11633
|
-
children: drawersToRender.map(({ component, id, stackId: stackId2, onRequestClose }, index) => /* @__PURE__ */ (0,
|
|
11753
|
+
children: drawersToRender.map(({ component, id, stackId: stackId2, onRequestClose }, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
11634
11754
|
DrawerWrapper,
|
|
11635
11755
|
{
|
|
11636
11756
|
index,
|
|
@@ -11661,22 +11781,22 @@ var DrawerWrapper = ({
|
|
|
11661
11781
|
offsetInPx = Math.round(maxLayeringInPx * relativeLevel);
|
|
11662
11782
|
}
|
|
11663
11783
|
const calculatedWidth = `calc(${width} - ${offsetInPx}px)`;
|
|
11664
|
-
return /* @__PURE__ */ (0,
|
|
11665
|
-
/* @__PURE__ */ (0,
|
|
11666
|
-
/* @__PURE__ */ (0,
|
|
11784
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
|
|
11785
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { css: drawerWrapperOverlayStyles, onClick: onOverlayClick }),
|
|
11786
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { css: [drawerWrapperStyles, { width: calculatedWidth, minWidth, maxWidth }], children })
|
|
11667
11787
|
] });
|
|
11668
11788
|
};
|
|
11669
11789
|
|
|
11670
11790
|
// src/components/Drawer/Drawer.tsx
|
|
11671
|
-
var
|
|
11791
|
+
var import_jsx_runtime32 = require("@emotion/react/jsx-runtime");
|
|
11672
11792
|
var defaultSackId = "_default";
|
|
11673
|
-
var Drawer =
|
|
11793
|
+
var Drawer = import_react39.default.forwardRef(
|
|
11674
11794
|
({ width, minWidth, maxWidth, position, ...drawerProps }, ref) => {
|
|
11675
11795
|
const drawerRendererProps = { width, minWidth, maxWidth, position };
|
|
11676
11796
|
const { stackId: inheritedStackId } = useCurrentDrawerRenderer();
|
|
11677
|
-
return inheritedStackId ? /* @__PURE__ */ (0,
|
|
11678
|
-
/* @__PURE__ */ (0,
|
|
11679
|
-
/* @__PURE__ */ (0,
|
|
11797
|
+
return inheritedStackId ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DrawerInner, { ref, ...drawerProps, stackId: inheritedStackId }) : drawerProps.stackId ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DrawerInner, { ref, ...drawerProps }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(DrawerProvider, { children: [
|
|
11798
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DrawerInner, { ref, ...drawerProps }),
|
|
11799
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DrawerRenderer, { stackId: defaultSackId, ...drawerRendererProps })
|
|
11680
11800
|
] });
|
|
11681
11801
|
}
|
|
11682
11802
|
);
|
|
@@ -11691,10 +11811,10 @@ var DrawerInner = ({
|
|
|
11691
11811
|
onRequestClose
|
|
11692
11812
|
}) => {
|
|
11693
11813
|
const { registerDrawer, unregisterDrawer } = useDrawer();
|
|
11694
|
-
const closeButtonRef = (0,
|
|
11695
|
-
const component = (0,
|
|
11814
|
+
const closeButtonRef = (0, import_react39.useRef)(null);
|
|
11815
|
+
const component = (0, import_react39.useMemo)(() => {
|
|
11696
11816
|
const headerId = `dialog-header-${stackId}-${id}`;
|
|
11697
|
-
return /* @__PURE__ */ (0,
|
|
11817
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
11698
11818
|
"div",
|
|
11699
11819
|
{
|
|
11700
11820
|
ref,
|
|
@@ -11705,7 +11825,7 @@ var DrawerInner = ({
|
|
|
11705
11825
|
css: drawerStyles(bgColor),
|
|
11706
11826
|
"data-test-id": "side-dialog",
|
|
11707
11827
|
children: [
|
|
11708
|
-
/* @__PURE__ */ (0,
|
|
11828
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
11709
11829
|
Button,
|
|
11710
11830
|
{
|
|
11711
11831
|
ref: closeButtonRef,
|
|
@@ -11714,16 +11834,16 @@ var DrawerInner = ({
|
|
|
11714
11834
|
css: drawerCloseButtonStyles,
|
|
11715
11835
|
title: "Close dialog",
|
|
11716
11836
|
buttonType: "ghost",
|
|
11717
|
-
children: /* @__PURE__ */ (0,
|
|
11837
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { icon: import_cg8.CgChevronRight, iconColor: "gray", size: "1.5rem" })
|
|
11718
11838
|
}
|
|
11719
11839
|
),
|
|
11720
|
-
header ? /* @__PURE__ */ (0,
|
|
11721
|
-
/* @__PURE__ */ (0,
|
|
11840
|
+
header ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { id: headerId, css: drawerHeaderStyles, children: header }) : null,
|
|
11841
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { css: drawerInnerStyles, children })
|
|
11722
11842
|
]
|
|
11723
11843
|
}
|
|
11724
11844
|
);
|
|
11725
11845
|
}, [children, header, id, stackId, bgColor, onRequestClose, ref]);
|
|
11726
|
-
(0,
|
|
11846
|
+
(0, import_react39.useEffect)(() => {
|
|
11727
11847
|
registerDrawer({
|
|
11728
11848
|
drawer: {
|
|
11729
11849
|
id,
|
|
@@ -11740,15 +11860,15 @@ var DrawerInner = ({
|
|
|
11740
11860
|
}
|
|
11741
11861
|
});
|
|
11742
11862
|
}, [component, instanceKey, registerDrawer]);
|
|
11743
|
-
(0,
|
|
11863
|
+
(0, import_react39.useEffect)(() => {
|
|
11744
11864
|
return () => unregisterDrawer({ id, stackId, instanceKey });
|
|
11745
11865
|
}, [id, stackId, instanceKey, unregisterDrawer]);
|
|
11746
11866
|
return null;
|
|
11747
11867
|
};
|
|
11748
11868
|
|
|
11749
11869
|
// src/components/Input/styles/CaptionText.styles.ts
|
|
11750
|
-
var
|
|
11751
|
-
var CaptionText = (dynamicSize) =>
|
|
11870
|
+
var import_react40 = require("@emotion/react");
|
|
11871
|
+
var CaptionText = (dynamicSize) => import_react40.css`
|
|
11752
11872
|
color: var(--gray-500);
|
|
11753
11873
|
display: block;
|
|
11754
11874
|
font-size: ${dynamicSize ? "clamp(var(--fs-xs), 87.5%,var(--fs-sm))" : "var(--fs-sm)"};
|
|
@@ -11757,29 +11877,29 @@ var CaptionText = (dynamicSize) => import_react38.css`
|
|
|
11757
11877
|
`;
|
|
11758
11878
|
|
|
11759
11879
|
// src/components/Input/Caption.tsx
|
|
11760
|
-
var
|
|
11880
|
+
var import_jsx_runtime33 = require("@emotion/react/jsx-runtime");
|
|
11761
11881
|
var Caption = ({ children, testId, dynamicSize = false, ...props }) => {
|
|
11762
|
-
return /* @__PURE__ */ (0,
|
|
11882
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("small", { css: CaptionText(dynamicSize), "data-test-id": testId, ...props, children });
|
|
11763
11883
|
};
|
|
11764
11884
|
|
|
11765
11885
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
11766
|
-
var
|
|
11886
|
+
var import_react42 = require("react");
|
|
11767
11887
|
|
|
11768
11888
|
// src/components/Input/styles/CheckboxWithInfo.styles.ts
|
|
11769
|
-
var
|
|
11770
|
-
var CheckboxWithInfoContainer =
|
|
11889
|
+
var import_react41 = require("@emotion/react");
|
|
11890
|
+
var CheckboxWithInfoContainer = import_react41.css`
|
|
11771
11891
|
align-items: center;
|
|
11772
11892
|
display: flex;
|
|
11773
11893
|
gap: var(--spacing-sm);
|
|
11774
11894
|
`;
|
|
11775
|
-
var CheckboxWithInfoLabel =
|
|
11895
|
+
var CheckboxWithInfoLabel = import_react41.css`
|
|
11776
11896
|
align-items: center;
|
|
11777
11897
|
color: var(--gray-500);
|
|
11778
11898
|
display: flex;
|
|
11779
11899
|
font-size: var(--fs-xs);
|
|
11780
11900
|
gap: var(--spacing-sm);
|
|
11781
11901
|
`;
|
|
11782
|
-
var CheckboxWithInfoInput =
|
|
11902
|
+
var CheckboxWithInfoInput = import_react41.css`
|
|
11783
11903
|
appearance: none;
|
|
11784
11904
|
border: 1px solid var(--gray-300);
|
|
11785
11905
|
background: var(--white) no-repeat bottom center;
|
|
@@ -11812,7 +11932,7 @@ var CheckboxWithInfoInput = import_react39.css`
|
|
|
11812
11932
|
border-color: var(--gray-200);
|
|
11813
11933
|
}
|
|
11814
11934
|
`;
|
|
11815
|
-
var InfoDialogContainer =
|
|
11935
|
+
var InfoDialogContainer = import_react41.css`
|
|
11816
11936
|
position: relative;
|
|
11817
11937
|
|
|
11818
11938
|
&:hover {
|
|
@@ -11821,7 +11941,7 @@ var InfoDialogContainer = import_react39.css`
|
|
|
11821
11941
|
}
|
|
11822
11942
|
}
|
|
11823
11943
|
`;
|
|
11824
|
-
var InfoDialogMessage =
|
|
11944
|
+
var InfoDialogMessage = import_react41.css`
|
|
11825
11945
|
background: var(--white);
|
|
11826
11946
|
box-shadow: var(--shadow-base);
|
|
11827
11947
|
border-radius: var(--rounded-md);
|
|
@@ -11838,21 +11958,21 @@ var InfoDialogMessage = import_react39.css`
|
|
|
11838
11958
|
`;
|
|
11839
11959
|
|
|
11840
11960
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
11841
|
-
var
|
|
11961
|
+
var import_jsx_runtime34 = require("@emotion/react/jsx-runtime");
|
|
11842
11962
|
var InfoDialog = ({ message }) => {
|
|
11843
|
-
return /* @__PURE__ */ (0,
|
|
11844
|
-
/* @__PURE__ */ (0,
|
|
11845
|
-
/* @__PURE__ */ (0,
|
|
11963
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { "data-testid": "info-dialog", css: InfoDialogContainer, children: [
|
|
11964
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icon, { icon: "info", iconColor: "green", size: "0.9rem" }),
|
|
11965
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { role: "paragraph", css: InfoDialogMessage, className: "info-message", children: message })
|
|
11846
11966
|
] });
|
|
11847
11967
|
};
|
|
11848
|
-
var CheckboxWithInfo = (0,
|
|
11968
|
+
var CheckboxWithInfo = (0, import_react42.forwardRef)(
|
|
11849
11969
|
({ label, name, info, ...props }, ref) => {
|
|
11850
|
-
return /* @__PURE__ */ (0,
|
|
11851
|
-
/* @__PURE__ */ (0,
|
|
11852
|
-
/* @__PURE__ */ (0,
|
|
11853
|
-
/* @__PURE__ */ (0,
|
|
11970
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { css: CheckboxWithInfoContainer, children: [
|
|
11971
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("label", { css: CheckboxWithInfoLabel, children: [
|
|
11972
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("input", { type: "checkbox", name, ref, css: CheckboxWithInfoInput, ...props }),
|
|
11973
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: label })
|
|
11854
11974
|
] }),
|
|
11855
|
-
info ? /* @__PURE__ */ (0,
|
|
11975
|
+
info ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(InfoDialog, { message: info }) : null
|
|
11856
11976
|
] });
|
|
11857
11977
|
}
|
|
11858
11978
|
);
|
|
@@ -11861,8 +11981,8 @@ var CheckboxWithInfo = (0, import_react40.forwardRef)(
|
|
|
11861
11981
|
var import_md = require("react-icons/md");
|
|
11862
11982
|
|
|
11863
11983
|
// src/components/Input/styles/ErrorMessage.styles.ts
|
|
11864
|
-
var
|
|
11865
|
-
var ErrorText =
|
|
11984
|
+
var import_react43 = require("@emotion/react");
|
|
11985
|
+
var ErrorText = import_react43.css`
|
|
11866
11986
|
align-items: center;
|
|
11867
11987
|
color: var(--brand-secondary-5);
|
|
11868
11988
|
display: flex;
|
|
@@ -11870,10 +11990,10 @@ var ErrorText = import_react41.css`
|
|
|
11870
11990
|
`;
|
|
11871
11991
|
|
|
11872
11992
|
// src/components/Input/ErrorMessage.tsx
|
|
11873
|
-
var
|
|
11993
|
+
var import_jsx_runtime35 = require("@emotion/react/jsx-runtime");
|
|
11874
11994
|
var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
11875
|
-
return message ? /* @__PURE__ */ (0,
|
|
11876
|
-
/* @__PURE__ */ (0,
|
|
11995
|
+
return message ? /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { role: "alert", css: ErrorText, "data-test-id": testId, ...otherProps, children: [
|
|
11996
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Icon, { icon: import_md.MdWarning, size: 16, iconColor: "currentColor" }),
|
|
11877
11997
|
message
|
|
11878
11998
|
] }) : null;
|
|
11879
11999
|
};
|
|
@@ -11882,9 +12002,9 @@ var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
|
11882
12002
|
var React12 = __toESM(require("react"));
|
|
11883
12003
|
|
|
11884
12004
|
// src/components/Input/styles/Fieldset.styles.ts
|
|
11885
|
-
var
|
|
12005
|
+
var import_react44 = require("@emotion/react");
|
|
11886
12006
|
function fieldsetContainer(invert) {
|
|
11887
|
-
const base =
|
|
12007
|
+
const base = import_react44.css`
|
|
11888
12008
|
border-radius: var(--rounded-base);
|
|
11889
12009
|
border: 1px solid var(--gray-300);
|
|
11890
12010
|
|
|
@@ -11896,18 +12016,18 @@ function fieldsetContainer(invert) {
|
|
|
11896
12016
|
}
|
|
11897
12017
|
`;
|
|
11898
12018
|
return invert ? [
|
|
11899
|
-
|
|
12019
|
+
import_react44.css`
|
|
11900
12020
|
background: white;
|
|
11901
12021
|
`,
|
|
11902
12022
|
base
|
|
11903
12023
|
] : [
|
|
11904
|
-
|
|
12024
|
+
import_react44.css`
|
|
11905
12025
|
background: var(--gray-50);
|
|
11906
12026
|
`,
|
|
11907
12027
|
base
|
|
11908
12028
|
];
|
|
11909
12029
|
}
|
|
11910
|
-
var fieldsetLegend =
|
|
12030
|
+
var fieldsetLegend = import_react44.css`
|
|
11911
12031
|
align-items: center;
|
|
11912
12032
|
color: var(--brand-secondary-1);
|
|
11913
12033
|
display: flex;
|
|
@@ -11917,17 +12037,17 @@ var fieldsetLegend = import_react42.css`
|
|
|
11917
12037
|
margin-bottom: var(--spacing-base);
|
|
11918
12038
|
float: left; // allows the legend to be inside the fieldset and not sat on the border line
|
|
11919
12039
|
`;
|
|
11920
|
-
var fieldsetBody =
|
|
12040
|
+
var fieldsetBody = import_react44.css`
|
|
11921
12041
|
clear: left;
|
|
11922
12042
|
`;
|
|
11923
12043
|
|
|
11924
12044
|
// src/components/Input/Fieldset.tsx
|
|
11925
|
-
var
|
|
12045
|
+
var import_jsx_runtime36 = require("@emotion/react/jsx-runtime");
|
|
11926
12046
|
var Fieldset = React12.forwardRef(
|
|
11927
12047
|
({ legend, disabled, children, invert, ...props }, ref) => {
|
|
11928
|
-
return /* @__PURE__ */ (0,
|
|
12048
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled, ...props, children: [
|
|
11929
12049
|
legend,
|
|
11930
|
-
/* @__PURE__ */ (0,
|
|
12050
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { css: fieldsetBody, children })
|
|
11931
12051
|
] });
|
|
11932
12052
|
}
|
|
11933
12053
|
);
|
|
@@ -11936,9 +12056,9 @@ var Fieldset = React12.forwardRef(
|
|
|
11936
12056
|
var React13 = __toESM(require("react"));
|
|
11937
12057
|
|
|
11938
12058
|
// src/components/Input/Label.tsx
|
|
11939
|
-
var
|
|
12059
|
+
var import_jsx_runtime37 = require("@emotion/react/jsx-runtime");
|
|
11940
12060
|
var Label = ({ children, className, testId, ...props }) => {
|
|
11941
|
-
return /* @__PURE__ */ (0,
|
|
12061
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
11942
12062
|
"label",
|
|
11943
12063
|
{
|
|
11944
12064
|
css: [labelText, typeof className === "object" ? className : void 0],
|
|
@@ -11954,28 +12074,28 @@ var Label = ({ children, className, testId, ...props }) => {
|
|
|
11954
12074
|
var import_md2 = require("react-icons/md");
|
|
11955
12075
|
|
|
11956
12076
|
// src/components/Input/styles/WarningMessage.styles.tsx
|
|
11957
|
-
var
|
|
11958
|
-
var WarningText =
|
|
12077
|
+
var import_react45 = require("@emotion/react");
|
|
12078
|
+
var WarningText = import_react45.css`
|
|
11959
12079
|
align-items: center;
|
|
11960
12080
|
color: var(--alert-text);
|
|
11961
12081
|
display: flex;
|
|
11962
12082
|
gap: var(--spacing-sm);
|
|
11963
12083
|
`;
|
|
11964
|
-
var WarningIcon =
|
|
12084
|
+
var WarningIcon = import_react45.css`
|
|
11965
12085
|
color: var(--alert);
|
|
11966
12086
|
`;
|
|
11967
12087
|
|
|
11968
12088
|
// src/components/Input/WarningMessage.tsx
|
|
11969
|
-
var
|
|
12089
|
+
var import_jsx_runtime38 = require("@emotion/react/jsx-runtime");
|
|
11970
12090
|
var WarningMessage = ({ message, testId, ...props }) => {
|
|
11971
|
-
return message ? /* @__PURE__ */ (0,
|
|
11972
|
-
/* @__PURE__ */ (0,
|
|
12091
|
+
return message ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("span", { role: "status", css: WarningText, "data-test-id": testId, ...props, children: [
|
|
12092
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon, { css: WarningIcon, icon: import_md2.MdWarning, size: "1rem", iconColor: "currentColor" }),
|
|
11973
12093
|
message
|
|
11974
12094
|
] }) : null;
|
|
11975
12095
|
};
|
|
11976
12096
|
|
|
11977
12097
|
// src/components/Input/Input.tsx
|
|
11978
|
-
var
|
|
12098
|
+
var import_jsx_runtime39 = require("@emotion/react/jsx-runtime");
|
|
11979
12099
|
var Input = React13.forwardRef(
|
|
11980
12100
|
({
|
|
11981
12101
|
label,
|
|
@@ -11994,8 +12114,8 @@ var Input = React13.forwardRef(
|
|
|
11994
12114
|
classNameLabel,
|
|
11995
12115
|
...props
|
|
11996
12116
|
}, ref) => {
|
|
11997
|
-
return /* @__PURE__ */ (0,
|
|
11998
|
-
showLabel ? /* @__PURE__ */ (0,
|
|
12117
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { css: inputContainer, "data-test-id": containerTestId ? containerTestId : "container-input-field", children: [
|
|
12118
|
+
showLabel ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
11999
12119
|
Label,
|
|
12000
12120
|
{
|
|
12001
12121
|
htmlFor: id,
|
|
@@ -12005,13 +12125,13 @@ var Input = React13.forwardRef(
|
|
|
12005
12125
|
children: label
|
|
12006
12126
|
}
|
|
12007
12127
|
) : null,
|
|
12008
|
-
/* @__PURE__ */ (0,
|
|
12128
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
12009
12129
|
"div",
|
|
12010
12130
|
{
|
|
12011
12131
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
12012
12132
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
12013
12133
|
children: [
|
|
12014
|
-
/* @__PURE__ */ (0,
|
|
12134
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
12015
12135
|
"input",
|
|
12016
12136
|
{
|
|
12017
12137
|
id,
|
|
@@ -12027,23 +12147,23 @@ var Input = React13.forwardRef(
|
|
|
12027
12147
|
ref
|
|
12028
12148
|
}
|
|
12029
12149
|
),
|
|
12030
|
-
icon ? /* @__PURE__ */ (0,
|
|
12150
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { css: inputIcon, children: icon }) : null
|
|
12031
12151
|
]
|
|
12032
12152
|
}
|
|
12033
12153
|
),
|
|
12034
|
-
caption ? /* @__PURE__ */ (0,
|
|
12035
|
-
errorMessage ? /* @__PURE__ */ (0,
|
|
12036
|
-
warningMessage && !errorMessage ? /* @__PURE__ */ (0,
|
|
12154
|
+
caption ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Caption, { testId: captionTestId, children: caption }) : null,
|
|
12155
|
+
errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ErrorMessage, { message: errorMessage, testId: errorTestId }) : null,
|
|
12156
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(WarningMessage, { message: warningMessage }) : null
|
|
12037
12157
|
] });
|
|
12038
12158
|
}
|
|
12039
12159
|
);
|
|
12040
12160
|
|
|
12041
12161
|
// src/components/Input/InputComboBox.tsx
|
|
12042
12162
|
var import_react_select = __toESM(require("react-select"));
|
|
12043
|
-
var
|
|
12163
|
+
var import_jsx_runtime40 = require("@emotion/react/jsx-runtime");
|
|
12044
12164
|
function InputComboBox(props) {
|
|
12045
12165
|
var _a;
|
|
12046
|
-
return /* @__PURE__ */ (0,
|
|
12166
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
12047
12167
|
import_react_select.default,
|
|
12048
12168
|
{
|
|
12049
12169
|
...props,
|
|
@@ -12172,17 +12292,17 @@ function InputComboBox(props) {
|
|
|
12172
12292
|
}
|
|
12173
12293
|
|
|
12174
12294
|
// src/components/Input/InputInlineSelect.tsx
|
|
12175
|
-
var
|
|
12176
|
-
var
|
|
12177
|
-
var
|
|
12295
|
+
var import_react47 = require("@emotion/react");
|
|
12296
|
+
var import_react48 = require("react");
|
|
12297
|
+
var import_cg9 = require("react-icons/cg");
|
|
12178
12298
|
|
|
12179
12299
|
// src/components/Input/styles/InputInlineSelect.styles.ts
|
|
12180
|
-
var
|
|
12181
|
-
var inlineSelectContainer =
|
|
12300
|
+
var import_react46 = require("@emotion/react");
|
|
12301
|
+
var inlineSelectContainer = import_react46.css`
|
|
12182
12302
|
margin-inline: auto;
|
|
12183
12303
|
max-width: fit-content;
|
|
12184
12304
|
`;
|
|
12185
|
-
var inlineSelectBtn =
|
|
12305
|
+
var inlineSelectBtn = import_react46.css`
|
|
12186
12306
|
align-items: center;
|
|
12187
12307
|
background: var(--brand-secondary-3);
|
|
12188
12308
|
border: 2px solid var(--brand-secondary-3);
|
|
@@ -12206,7 +12326,7 @@ var inlineSelectBtn = import_react44.css`
|
|
|
12206
12326
|
outline: 2px solid var(--brand-secondary-1);
|
|
12207
12327
|
}
|
|
12208
12328
|
`;
|
|
12209
|
-
var inlineSelectMenu =
|
|
12329
|
+
var inlineSelectMenu = import_react46.css`
|
|
12210
12330
|
background: var(--white);
|
|
12211
12331
|
border: 1px solid var(--brand-secondary-3);
|
|
12212
12332
|
border-top: none;
|
|
@@ -12217,7 +12337,7 @@ var inlineSelectMenu = import_react44.css`
|
|
|
12217
12337
|
inset: auto 0;
|
|
12218
12338
|
transform: translateY(-0.2rem);
|
|
12219
12339
|
`;
|
|
12220
|
-
var inlineSelectBtnOptions =
|
|
12340
|
+
var inlineSelectBtnOptions = import_react46.css`
|
|
12221
12341
|
cursor: pointer;
|
|
12222
12342
|
display: block;
|
|
12223
12343
|
font-size: var(--fs-sm);
|
|
@@ -12233,7 +12353,7 @@ var inlineSelectBtnOptions = import_react44.css`
|
|
|
12233
12353
|
background: var(--gray-50);
|
|
12234
12354
|
}
|
|
12235
12355
|
`;
|
|
12236
|
-
var inlineSelectMenuClosed =
|
|
12356
|
+
var inlineSelectMenuClosed = import_react46.css`
|
|
12237
12357
|
position: absolute;
|
|
12238
12358
|
overflow: hidden;
|
|
12239
12359
|
height: 1px;
|
|
@@ -12243,7 +12363,7 @@ var inlineSelectMenuClosed = import_react44.css`
|
|
|
12243
12363
|
`;
|
|
12244
12364
|
|
|
12245
12365
|
// src/components/Input/InputInlineSelect.tsx
|
|
12246
|
-
var
|
|
12366
|
+
var import_jsx_runtime41 = require("@emotion/react/jsx-runtime");
|
|
12247
12367
|
var InputInlineSelect = ({
|
|
12248
12368
|
classNameContainer,
|
|
12249
12369
|
options,
|
|
@@ -12253,21 +12373,21 @@ var InputInlineSelect = ({
|
|
|
12253
12373
|
...props
|
|
12254
12374
|
}) => {
|
|
12255
12375
|
var _a;
|
|
12256
|
-
const [menuVisible, setMenuVisible] = (0,
|
|
12257
|
-
const divRef = (0,
|
|
12376
|
+
const [menuVisible, setMenuVisible] = (0, import_react48.useState)(false);
|
|
12377
|
+
const divRef = (0, import_react48.useRef)(null);
|
|
12258
12378
|
useOutsideClick(divRef, () => setMenuVisible(false));
|
|
12259
12379
|
const selected = options.find((option) => option.value === value);
|
|
12260
|
-
return /* @__PURE__ */ (0,
|
|
12380
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
12261
12381
|
"div",
|
|
12262
12382
|
{
|
|
12263
12383
|
ref: divRef,
|
|
12264
|
-
css: !classNameContainer ? inlineSelectContainer :
|
|
12384
|
+
css: !classNameContainer ? inlineSelectContainer : import_react47.css`
|
|
12265
12385
|
max-width: fit-content;
|
|
12266
12386
|
${typeof classNameContainer === "object" ? classNameContainer : void 0}
|
|
12267
12387
|
`,
|
|
12268
12388
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
12269
12389
|
children: [
|
|
12270
|
-
/* @__PURE__ */ (0,
|
|
12390
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
12271
12391
|
"button",
|
|
12272
12392
|
{
|
|
12273
12393
|
type: "button",
|
|
@@ -12281,18 +12401,18 @@ var InputInlineSelect = ({
|
|
|
12281
12401
|
disabled,
|
|
12282
12402
|
...props,
|
|
12283
12403
|
children: [
|
|
12284
|
-
/* @__PURE__ */ (0,
|
|
12285
|
-
disabled ? null : /* @__PURE__ */ (0,
|
|
12404
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { children: (_a = selected == null ? void 0 : selected.label) != null ? _a : value }),
|
|
12405
|
+
disabled ? null : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon, { icon: import_cg9.CgChevronDown, iconColor: "currentColor", size: 24 })
|
|
12286
12406
|
]
|
|
12287
12407
|
}
|
|
12288
12408
|
),
|
|
12289
|
-
/* @__PURE__ */ (0,
|
|
12409
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
12290
12410
|
"div",
|
|
12291
12411
|
{
|
|
12292
12412
|
id: `and-or-${props.id}`,
|
|
12293
12413
|
css: [inlineSelectMenu, menuVisible ? void 0 : inlineSelectMenuClosed],
|
|
12294
12414
|
"aria-hidden": !menuVisible,
|
|
12295
|
-
children: options.map((opt) => /* @__PURE__ */ (0,
|
|
12415
|
+
children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
12296
12416
|
"button",
|
|
12297
12417
|
{
|
|
12298
12418
|
type: "button",
|
|
@@ -12313,7 +12433,7 @@ var InputInlineSelect = ({
|
|
|
12313
12433
|
};
|
|
12314
12434
|
|
|
12315
12435
|
// src/components/Input/InputKeywordSearch.tsx
|
|
12316
|
-
var
|
|
12436
|
+
var import_jsx_runtime42 = require("@emotion/react/jsx-runtime");
|
|
12317
12437
|
var InputKeywordSearch = ({
|
|
12318
12438
|
onSearchTextChanged,
|
|
12319
12439
|
disabled = false,
|
|
@@ -12332,7 +12452,7 @@ var InputKeywordSearch = ({
|
|
|
12332
12452
|
e.preventDefault();
|
|
12333
12453
|
}
|
|
12334
12454
|
};
|
|
12335
|
-
return /* @__PURE__ */ (0,
|
|
12455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
12336
12456
|
Input,
|
|
12337
12457
|
{
|
|
12338
12458
|
type: "text",
|
|
@@ -12340,7 +12460,7 @@ var InputKeywordSearch = ({
|
|
|
12340
12460
|
placeholder,
|
|
12341
12461
|
showLabel: false,
|
|
12342
12462
|
value,
|
|
12343
|
-
icon: value ? /* @__PURE__ */ (0,
|
|
12463
|
+
icon: value ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("button", { css: inputSearchCloseBtn, onClick: onClear, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon, { icon: "close", iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon, { icon: "search", iconColor: "gray", size: "1rem" }),
|
|
12344
12464
|
onChange: handleSearchTextChanged,
|
|
12345
12465
|
onKeyPress: preventSubmitOnField,
|
|
12346
12466
|
disabled,
|
|
@@ -12351,7 +12471,7 @@ var InputKeywordSearch = ({
|
|
|
12351
12471
|
};
|
|
12352
12472
|
|
|
12353
12473
|
// src/components/Input/InputSelect.tsx
|
|
12354
|
-
var
|
|
12474
|
+
var import_jsx_runtime43 = require("@emotion/react/jsx-runtime");
|
|
12355
12475
|
var InputSelect = ({
|
|
12356
12476
|
label,
|
|
12357
12477
|
defaultOption,
|
|
@@ -12367,13 +12487,13 @@ var InputSelect = ({
|
|
|
12367
12487
|
classNameLabel,
|
|
12368
12488
|
...props
|
|
12369
12489
|
}) => {
|
|
12370
|
-
return /* @__PURE__ */ (0,
|
|
12490
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
12371
12491
|
"div",
|
|
12372
12492
|
{
|
|
12373
12493
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
12374
12494
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
12375
12495
|
children: [
|
|
12376
|
-
showLabel ? /* @__PURE__ */ (0,
|
|
12496
|
+
showLabel ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_jsx_runtime43.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
12377
12497
|
Label,
|
|
12378
12498
|
{
|
|
12379
12499
|
htmlFor: props.id,
|
|
@@ -12385,7 +12505,7 @@ var InputSelect = ({
|
|
|
12385
12505
|
]
|
|
12386
12506
|
}
|
|
12387
12507
|
) }) : null,
|
|
12388
|
-
/* @__PURE__ */ (0,
|
|
12508
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
12389
12509
|
"select",
|
|
12390
12510
|
{
|
|
12391
12511
|
title: label,
|
|
@@ -12400,21 +12520,21 @@ var InputSelect = ({
|
|
|
12400
12520
|
className: typeof classNameControl === "string" ? classNameControl : "",
|
|
12401
12521
|
...props,
|
|
12402
12522
|
children: [
|
|
12403
|
-
defaultOption ? /* @__PURE__ */ (0,
|
|
12404
|
-
options.map((opt, index) => /* @__PURE__ */ (0,
|
|
12523
|
+
defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("option", { value: "", children: defaultOption }) : null,
|
|
12524
|
+
options.map((opt, index) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("option", { value: opt.label, ...opt }, index))
|
|
12405
12525
|
]
|
|
12406
12526
|
}
|
|
12407
12527
|
),
|
|
12408
|
-
caption ? /* @__PURE__ */ (0,
|
|
12409
|
-
errorMessage ? /* @__PURE__ */ (0,
|
|
12410
|
-
warningMessage && !errorMessage ? /* @__PURE__ */ (0,
|
|
12528
|
+
caption ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Caption, { children: caption }) : null,
|
|
12529
|
+
errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ErrorMessage, { message: errorMessage }) : null,
|
|
12530
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(WarningMessage, { message: warningMessage }) : null
|
|
12411
12531
|
]
|
|
12412
12532
|
}
|
|
12413
12533
|
);
|
|
12414
12534
|
};
|
|
12415
12535
|
|
|
12416
12536
|
// src/components/Input/InputToggle.tsx
|
|
12417
|
-
var
|
|
12537
|
+
var import_jsx_runtime44 = require("@emotion/react/jsx-runtime");
|
|
12418
12538
|
var InputToggle = ({
|
|
12419
12539
|
label,
|
|
12420
12540
|
type,
|
|
@@ -12428,25 +12548,25 @@ var InputToggle = ({
|
|
|
12428
12548
|
fontWeight = "medium",
|
|
12429
12549
|
...props
|
|
12430
12550
|
}) => {
|
|
12431
|
-
return /* @__PURE__ */ (0,
|
|
12432
|
-
/* @__PURE__ */ (0,
|
|
12433
|
-
/* @__PURE__ */ (0,
|
|
12434
|
-
caption || errorMessage ? /* @__PURE__ */ (0,
|
|
12435
|
-
caption ? /* @__PURE__ */ (0,
|
|
12436
|
-
errorMessage ? /* @__PURE__ */ (0,
|
|
12437
|
-
warningMessage && !errorMessage ? /* @__PURE__ */ (0,
|
|
12551
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(Label, { css: [inputToggleLabel, disabled ? inputDisabled : void 0], "data-test-id": testId, children: [
|
|
12552
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("input", { type, css: toggleInput, checked, name, disabled, ...props }),
|
|
12553
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { css: inlineLabel(fontWeight), dangerouslySetInnerHTML: { __html: label } }),
|
|
12554
|
+
caption || errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("span", { css: inputToggleMessageContainer, children: [
|
|
12555
|
+
caption ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Caption, { children: caption }) : null,
|
|
12556
|
+
errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ErrorMessage, { message: errorMessage }) : null,
|
|
12557
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(WarningMessage, { message: warningMessage }) : null
|
|
12438
12558
|
] }) : null
|
|
12439
12559
|
] });
|
|
12440
12560
|
};
|
|
12441
12561
|
|
|
12442
12562
|
// src/components/Input/Legend.tsx
|
|
12443
|
-
var
|
|
12563
|
+
var import_jsx_runtime45 = require("@emotion/react/jsx-runtime");
|
|
12444
12564
|
var Legend = ({ children }) => {
|
|
12445
|
-
return /* @__PURE__ */ (0,
|
|
12565
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("legend", { css: fieldsetLegend, children });
|
|
12446
12566
|
};
|
|
12447
12567
|
|
|
12448
12568
|
// src/components/Input/Textarea.tsx
|
|
12449
|
-
var
|
|
12569
|
+
var import_jsx_runtime46 = require("@emotion/react/jsx-runtime");
|
|
12450
12570
|
var Textarea = ({
|
|
12451
12571
|
label,
|
|
12452
12572
|
icon,
|
|
@@ -12457,10 +12577,10 @@ var Textarea = ({
|
|
|
12457
12577
|
warningMessage,
|
|
12458
12578
|
...props
|
|
12459
12579
|
}) => {
|
|
12460
|
-
return /* @__PURE__ */ (0,
|
|
12461
|
-
showLabel ? /* @__PURE__ */ (0,
|
|
12462
|
-
/* @__PURE__ */ (0,
|
|
12463
|
-
/* @__PURE__ */ (0,
|
|
12580
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
|
|
12581
|
+
showLabel ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("label", { htmlFor: id, css: [labelText], children: label }) : null,
|
|
12582
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { css: [inputContainer], children: [
|
|
12583
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
12464
12584
|
"textarea",
|
|
12465
12585
|
{
|
|
12466
12586
|
id,
|
|
@@ -12469,36 +12589,31 @@ var Textarea = ({
|
|
|
12469
12589
|
...props
|
|
12470
12590
|
}
|
|
12471
12591
|
),
|
|
12472
|
-
icon ? /* @__PURE__ */ (0,
|
|
12592
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { css: inputIcon, children: icon }) : null
|
|
12473
12593
|
] }),
|
|
12474
|
-
caption ? /* @__PURE__ */ (0,
|
|
12475
|
-
errorMessage ? /* @__PURE__ */ (0,
|
|
12476
|
-
warningMessage && !errorMessage ? /* @__PURE__ */ (0,
|
|
12594
|
+
caption ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Caption, { children: caption }) : null,
|
|
12595
|
+
errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ErrorMessage, { message: errorMessage }) : null,
|
|
12596
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(WarningMessage, { message: warningMessage }) : null
|
|
12477
12597
|
] });
|
|
12478
12598
|
};
|
|
12479
12599
|
|
|
12480
12600
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
12481
|
-
var import_react48 = require("@emotion/react");
|
|
12482
12601
|
var import_react49 = __toESM(require("@monaco-editor/react"));
|
|
12483
|
-
|
|
12484
|
-
|
|
12485
|
-
var import_react47 = require("@emotion/react");
|
|
12486
|
-
var JsonEditorContainer = import_react47.css`
|
|
12487
|
-
min-height: 150px;
|
|
12488
|
-
`;
|
|
12489
|
-
|
|
12490
|
-
// src/components/JsonEditor/JsonEditor.tsx
|
|
12491
|
-
var import_jsx_runtime46 = require("@emotion/react/jsx-runtime");
|
|
12602
|
+
var import_jsx_runtime47 = require("@emotion/react/jsx-runtime");
|
|
12603
|
+
var minEditorHeightPx = 150;
|
|
12492
12604
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
12493
12605
|
let effectiveHeight = height;
|
|
12494
12606
|
if (typeof height === "number" && height < 0) {
|
|
12495
12607
|
effectiveHeight = typeof window === "undefined" ? "100%" : window.innerHeight + height;
|
|
12496
12608
|
}
|
|
12497
|
-
|
|
12609
|
+
if (typeof effectiveHeight === "number" && effectiveHeight < minEditorHeightPx) {
|
|
12610
|
+
effectiveHeight = minEditorHeightPx;
|
|
12611
|
+
}
|
|
12612
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
12498
12613
|
import_react49.default,
|
|
12499
12614
|
{
|
|
12500
12615
|
height: effectiveHeight,
|
|
12501
|
-
className:
|
|
12616
|
+
className: "uniform-json-editor",
|
|
12502
12617
|
defaultLanguage: "json",
|
|
12503
12618
|
defaultValue,
|
|
12504
12619
|
options: {
|
|
@@ -12527,7 +12642,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
12527
12642
|
},
|
|
12528
12643
|
onChange
|
|
12529
12644
|
}
|
|
12530
|
-
)
|
|
12645
|
+
);
|
|
12531
12646
|
};
|
|
12532
12647
|
|
|
12533
12648
|
// src/components/Layout/styles/Container.styles.ts
|
|
@@ -12541,7 +12656,7 @@ var Container = ({ backgroundColor, border, rounded, padding, margin }) => impor
|
|
|
12541
12656
|
`;
|
|
12542
12657
|
|
|
12543
12658
|
// src/components/Layout/Container.tsx
|
|
12544
|
-
var
|
|
12659
|
+
var import_jsx_runtime48 = require("@emotion/react/jsx-runtime");
|
|
12545
12660
|
var Container2 = ({
|
|
12546
12661
|
tag = "div",
|
|
12547
12662
|
backgroundColor = "white",
|
|
@@ -12553,7 +12668,7 @@ var Container2 = ({
|
|
|
12553
12668
|
...props
|
|
12554
12669
|
}) => {
|
|
12555
12670
|
const Tag = tag;
|
|
12556
|
-
return /* @__PURE__ */ (0,
|
|
12671
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
12557
12672
|
Tag,
|
|
12558
12673
|
{
|
|
12559
12674
|
css: Container({
|
|
@@ -12578,10 +12693,10 @@ var VerticalRhythmContainer = (size) => import_react51.css`
|
|
|
12578
12693
|
`;
|
|
12579
12694
|
|
|
12580
12695
|
// src/components/Layout/VerticalRhythm.tsx
|
|
12581
|
-
var
|
|
12696
|
+
var import_jsx_runtime49 = require("@emotion/react/jsx-runtime");
|
|
12582
12697
|
var VerticalRhythm = ({ tag = "div", gap = "base", children, ...props }) => {
|
|
12583
12698
|
const Tag = tag;
|
|
12584
|
-
return /* @__PURE__ */ (0,
|
|
12699
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Tag, { css: VerticalRhythmContainer(gap), ...props, children });
|
|
12585
12700
|
};
|
|
12586
12701
|
|
|
12587
12702
|
// src/components/LimitsBar/LimitsBar.styles.ts
|
|
@@ -12617,7 +12732,7 @@ var LimitsBarTextColor = (statusColor) => import_react52.css`
|
|
|
12617
12732
|
`;
|
|
12618
12733
|
|
|
12619
12734
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
12620
|
-
var
|
|
12735
|
+
var import_jsx_runtime50 = require("@emotion/react/jsx-runtime");
|
|
12621
12736
|
var LimitsBar = ({ current, max, label }) => {
|
|
12622
12737
|
const maxPercentage = 100;
|
|
12623
12738
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -12628,16 +12743,16 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
12628
12743
|
danger: "var(--brand-secondary-5)"
|
|
12629
12744
|
};
|
|
12630
12745
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
12631
|
-
return /* @__PURE__ */ (0,
|
|
12632
|
-
/* @__PURE__ */ (0,
|
|
12633
|
-
/* @__PURE__ */ (0,
|
|
12634
|
-
/* @__PURE__ */ (0,
|
|
12746
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { css: LimitsBarContainer, children: [
|
|
12747
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { css: LimitsBarLabelContainer, children: [
|
|
12748
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { css: LimitsBarLabel, children: label }),
|
|
12749
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
12635
12750
|
current,
|
|
12636
12751
|
" of ",
|
|
12637
12752
|
max
|
|
12638
12753
|
] })
|
|
12639
12754
|
] }),
|
|
12640
|
-
/* @__PURE__ */ (0,
|
|
12755
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
12641
12756
|
"div",
|
|
12642
12757
|
{
|
|
12643
12758
|
role: "progressbar",
|
|
@@ -12646,7 +12761,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
12646
12761
|
"aria-valuemax": max,
|
|
12647
12762
|
"aria-valuetext": `${current} of ${max}`,
|
|
12648
12763
|
css: LimitsBarProgressBar,
|
|
12649
|
-
children: /* @__PURE__ */ (0,
|
|
12764
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
12650
12765
|
"span",
|
|
12651
12766
|
{
|
|
12652
12767
|
role: "presentation",
|
|
@@ -12672,10 +12787,10 @@ var LinkListContainer = import_react53.css`
|
|
|
12672
12787
|
`;
|
|
12673
12788
|
|
|
12674
12789
|
// src/components/LinkList/LinkList.tsx
|
|
12675
|
-
var
|
|
12790
|
+
var import_jsx_runtime51 = require("@emotion/react/jsx-runtime");
|
|
12676
12791
|
var LinkList = ({ title, children, ...props }) => {
|
|
12677
|
-
return /* @__PURE__ */ (0,
|
|
12678
|
-
/* @__PURE__ */ (0,
|
|
12792
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { css: LinkListContainer, ...props, children: [
|
|
12793
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Heading, { level: 3, children: title }),
|
|
12679
12794
|
children
|
|
12680
12795
|
] });
|
|
12681
12796
|
};
|
|
@@ -12706,10 +12821,10 @@ var ScrollableListInner = import_react54.css`
|
|
|
12706
12821
|
`;
|
|
12707
12822
|
|
|
12708
12823
|
// src/components/List/ScrollableList.tsx
|
|
12709
|
-
var
|
|
12824
|
+
var import_jsx_runtime52 = require("@emotion/react/jsx-runtime");
|
|
12710
12825
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
12711
|
-
return /* @__PURE__ */ (0,
|
|
12712
|
-
label ? /* @__PURE__ */ (0,
|
|
12826
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
12827
|
+
label ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
12713
12828
|
"span",
|
|
12714
12829
|
{
|
|
12715
12830
|
css: import_react55.css`
|
|
@@ -12718,12 +12833,12 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
12718
12833
|
children: label
|
|
12719
12834
|
}
|
|
12720
12835
|
) : null,
|
|
12721
|
-
/* @__PURE__ */ (0,
|
|
12836
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
12722
12837
|
] });
|
|
12723
12838
|
};
|
|
12724
12839
|
|
|
12725
12840
|
// src/components/List/ScrollableListInputItem.tsx
|
|
12726
|
-
var
|
|
12841
|
+
var import_cg10 = require("react-icons/cg");
|
|
12727
12842
|
|
|
12728
12843
|
// src/components/List/styles/ScrollableListItem.styles.ts
|
|
12729
12844
|
var import_react56 = require("@emotion/react");
|
|
@@ -12783,7 +12898,7 @@ var ScrollableListIcon = import_react56.css`
|
|
|
12783
12898
|
`;
|
|
12784
12899
|
|
|
12785
12900
|
// src/components/List/ScrollableListInputItem.tsx
|
|
12786
|
-
var
|
|
12901
|
+
var import_jsx_runtime53 = require("@emotion/react/jsx-runtime");
|
|
12787
12902
|
var ScrollableListInputItem = ({
|
|
12788
12903
|
label,
|
|
12789
12904
|
icon,
|
|
@@ -12791,23 +12906,23 @@ var ScrollableListInputItem = ({
|
|
|
12791
12906
|
children,
|
|
12792
12907
|
labelTestId
|
|
12793
12908
|
}) => {
|
|
12794
|
-
return /* @__PURE__ */ (0,
|
|
12795
|
-
/* @__PURE__ */ (0,
|
|
12909
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { css: [ScrollableListItemContainer, active ? ScrollableListItemActive : void 0], children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("label", { "data-test-id": labelTestId, css: ScrollableListInputLabel, children: [
|
|
12910
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("span", { css: ScrollableListInputText, children: [
|
|
12796
12911
|
icon,
|
|
12797
12912
|
label
|
|
12798
12913
|
] }),
|
|
12799
|
-
/* @__PURE__ */ (0,
|
|
12800
|
-
active ? /* @__PURE__ */ (0,
|
|
12914
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { css: ScrollableListHiddenInput, children }),
|
|
12915
|
+
active ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { icon: import_cg10.CgCheck, iconColor: "currentColor", css: ScrollableListIcon, size: 24 }) : null
|
|
12801
12916
|
] }) });
|
|
12802
12917
|
};
|
|
12803
12918
|
|
|
12804
12919
|
// src/components/List/ScrollableListItem.tsx
|
|
12805
12920
|
var import_react57 = require("@emotion/react");
|
|
12806
|
-
var
|
|
12921
|
+
var import_jsx_runtime54 = require("@emotion/react/jsx-runtime");
|
|
12807
12922
|
var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
12808
|
-
return /* @__PURE__ */ (0,
|
|
12809
|
-
/* @__PURE__ */ (0,
|
|
12810
|
-
/* @__PURE__ */ (0,
|
|
12923
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { css: [ScrollableListItemContainer, active ? ScrollableListItemActive : void 0], children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
12924
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { children: buttonText }),
|
|
12925
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
12811
12926
|
"svg",
|
|
12812
12927
|
{
|
|
12813
12928
|
width: "24",
|
|
@@ -12823,7 +12938,7 @@ var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
|
12823
12938
|
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
12824
12939
|
` : "opacity: 0;"}
|
|
12825
12940
|
`,
|
|
12826
|
-
children: /* @__PURE__ */ (0,
|
|
12941
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
12827
12942
|
"path",
|
|
12828
12943
|
{
|
|
12829
12944
|
fillRule: "evenodd",
|
|
@@ -12883,12 +12998,12 @@ var loadingDot = import_react58.css`
|
|
|
12883
12998
|
`;
|
|
12884
12999
|
|
|
12885
13000
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
12886
|
-
var
|
|
13001
|
+
var import_jsx_runtime55 = require("@emotion/react/jsx-runtime");
|
|
12887
13002
|
var LoadingIndicator = () => {
|
|
12888
|
-
return /* @__PURE__ */ (0,
|
|
12889
|
-
/* @__PURE__ */ (0,
|
|
12890
|
-
/* @__PURE__ */ (0,
|
|
12891
|
-
/* @__PURE__ */ (0,
|
|
13003
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { css: loader, role: "alert", "data-test-id": "loading-indicator", children: [
|
|
13004
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { css: loadingDot }),
|
|
13005
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { css: loadingDot }),
|
|
13006
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { css: loadingDot })
|
|
12892
13007
|
] });
|
|
12893
13008
|
};
|
|
12894
13009
|
|
|
@@ -12928,7 +13043,7 @@ var loadingOverlayMessage = import_react59.css`
|
|
|
12928
13043
|
`;
|
|
12929
13044
|
|
|
12930
13045
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
12931
|
-
var
|
|
13046
|
+
var import_jsx_runtime56 = require("@emotion/react/jsx-runtime");
|
|
12932
13047
|
var LoadingOverlay = ({
|
|
12933
13048
|
isActive,
|
|
12934
13049
|
statusMessage,
|
|
@@ -12954,16 +13069,17 @@ var LoadingOverlay = ({
|
|
|
12954
13069
|
(_f = lottieRef.current) == null ? void 0 : _f.stop();
|
|
12955
13070
|
}
|
|
12956
13071
|
}, [isPaused]);
|
|
12957
|
-
return /* @__PURE__ */ (0,
|
|
13072
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
12958
13073
|
"div",
|
|
12959
13074
|
{
|
|
12960
13075
|
role: "alert",
|
|
12961
13076
|
css: [loadingOverlayContainer, { zIndex }, isActive ? loadingOverlayVisible : loadingOverlayHidden],
|
|
12962
13077
|
"aria-hidden": !isActive,
|
|
13078
|
+
"aria-busy": isActive && !isPaused,
|
|
12963
13079
|
children: [
|
|
12964
|
-
/* @__PURE__ */ (0,
|
|
12965
|
-
/* @__PURE__ */ (0,
|
|
12966
|
-
/* @__PURE__ */ (0,
|
|
13080
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
13081
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { css: loadingOverlayBody, children: [
|
|
13082
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
12967
13083
|
AnimationFile,
|
|
12968
13084
|
{
|
|
12969
13085
|
lottieRef,
|
|
@@ -12978,15 +13094,15 @@ var LoadingOverlay = ({
|
|
|
12978
13094
|
}
|
|
12979
13095
|
}
|
|
12980
13096
|
),
|
|
12981
|
-
statusMessage ? /* @__PURE__ */ (0,
|
|
12982
|
-
/* @__PURE__ */ (0,
|
|
13097
|
+
statusMessage ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
|
|
13098
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
|
|
12983
13099
|
] }) })
|
|
12984
13100
|
]
|
|
12985
13101
|
}
|
|
12986
13102
|
);
|
|
12987
13103
|
};
|
|
12988
13104
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
12989
|
-
return /* @__PURE__ */ (0,
|
|
13105
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
12990
13106
|
"svg",
|
|
12991
13107
|
{
|
|
12992
13108
|
"data-testid": "svg",
|
|
@@ -12997,9 +13113,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
12997
13113
|
stroke: "currentColor",
|
|
12998
13114
|
...props,
|
|
12999
13115
|
"data-test-id": "loading-icon",
|
|
13000
|
-
children: /* @__PURE__ */ (0,
|
|
13001
|
-
/* @__PURE__ */ (0,
|
|
13002
|
-
/* @__PURE__ */ (0,
|
|
13116
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
13117
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
13118
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
13003
13119
|
"animateTransform",
|
|
13004
13120
|
{
|
|
13005
13121
|
attributeName: "transform",
|
|
@@ -13017,7 +13133,7 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
13017
13133
|
|
|
13018
13134
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
13019
13135
|
var import_react62 = require("@emotion/react");
|
|
13020
|
-
var
|
|
13136
|
+
var import_cg11 = require("react-icons/cg");
|
|
13021
13137
|
|
|
13022
13138
|
// src/components/Tiles/styles/IntegrationTile.styles.ts
|
|
13023
13139
|
var import_react61 = require("@emotion/react");
|
|
@@ -13149,7 +13265,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => import_react61.css`
|
|
|
13149
13265
|
`;
|
|
13150
13266
|
|
|
13151
13267
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
13152
|
-
var
|
|
13268
|
+
var import_jsx_runtime57 = require("@emotion/react/jsx-runtime");
|
|
13153
13269
|
var CreateTeamIntegrationTile = ({
|
|
13154
13270
|
title = "Create a custom integration for your team",
|
|
13155
13271
|
buttonText = "Add Integration",
|
|
@@ -13157,9 +13273,9 @@ var CreateTeamIntegrationTile = ({
|
|
|
13157
13273
|
asDeepLink = false,
|
|
13158
13274
|
...props
|
|
13159
13275
|
}) => {
|
|
13160
|
-
return /* @__PURE__ */ (0,
|
|
13161
|
-
/* @__PURE__ */ (0,
|
|
13162
|
-
/* @__PURE__ */ (0,
|
|
13276
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
13277
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { css: IntegrationTileTitle, title, children: title }),
|
|
13278
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
13163
13279
|
Button,
|
|
13164
13280
|
{
|
|
13165
13281
|
buttonType: "tertiary",
|
|
@@ -13169,20 +13285,20 @@ var CreateTeamIntegrationTile = ({
|
|
|
13169
13285
|
css: IntegrationTitleFakeButton,
|
|
13170
13286
|
children: [
|
|
13171
13287
|
buttonText,
|
|
13172
|
-
asDeepLink ? /* @__PURE__ */ (0,
|
|
13288
|
+
asDeepLink ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
13173
13289
|
Icon,
|
|
13174
13290
|
{
|
|
13175
|
-
icon:
|
|
13291
|
+
icon: import_cg11.CgChevronRight,
|
|
13176
13292
|
iconColor: "currentColor",
|
|
13177
13293
|
size: 20,
|
|
13178
13294
|
css: import_react62.css`
|
|
13179
13295
|
order: 1;
|
|
13180
13296
|
`
|
|
13181
13297
|
}
|
|
13182
|
-
) : /* @__PURE__ */ (0,
|
|
13298
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
13183
13299
|
Icon,
|
|
13184
13300
|
{
|
|
13185
|
-
icon:
|
|
13301
|
+
icon: import_cg11.CgAdd,
|
|
13186
13302
|
iconColor: "currentColor",
|
|
13187
13303
|
size: 16,
|
|
13188
13304
|
css: import_react62.css`
|
|
@@ -13197,32 +13313,32 @@ var CreateTeamIntegrationTile = ({
|
|
|
13197
13313
|
};
|
|
13198
13314
|
|
|
13199
13315
|
// src/components/Tiles/IntegrationBadges.tsx
|
|
13200
|
-
var
|
|
13201
|
-
var
|
|
13316
|
+
var import_cg12 = require("react-icons/cg");
|
|
13317
|
+
var import_jsx_runtime58 = require("@emotion/react/jsx-runtime");
|
|
13202
13318
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
13203
|
-
return /* @__PURE__ */ (0,
|
|
13204
|
-
/* @__PURE__ */ (0,
|
|
13319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
13320
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { icon: import_cg12.CgCheck, iconColor: "currentColor" }),
|
|
13205
13321
|
text
|
|
13206
13322
|
] });
|
|
13207
13323
|
};
|
|
13208
13324
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
13209
|
-
return /* @__PURE__ */ (0,
|
|
13325
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
13210
13326
|
};
|
|
13211
13327
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
13212
|
-
return /* @__PURE__ */ (0,
|
|
13213
|
-
/* @__PURE__ */ (0,
|
|
13328
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
13329
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { icon: import_cg12.CgLock, iconColor: "currentColor", size: 12 }),
|
|
13214
13330
|
text
|
|
13215
13331
|
] });
|
|
13216
13332
|
};
|
|
13217
13333
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
13218
|
-
return /* @__PURE__ */ (0,
|
|
13219
|
-
/* @__PURE__ */ (0,
|
|
13334
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
13335
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { icon: import_cg12.CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
13220
13336
|
text
|
|
13221
13337
|
] });
|
|
13222
13338
|
};
|
|
13223
13339
|
|
|
13224
13340
|
// src/components/Tiles/ResolveIcon.tsx
|
|
13225
|
-
var
|
|
13341
|
+
var import_jsx_runtime59 = require("@emotion/react/jsx-runtime");
|
|
13226
13342
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
13227
13343
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
13228
13344
|
const mapClassName = {
|
|
@@ -13230,13 +13346,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
13230
13346
|
logo: IntegrationTitleLogo
|
|
13231
13347
|
};
|
|
13232
13348
|
if (icon) {
|
|
13233
|
-
return CompIcon ? /* @__PURE__ */ (0,
|
|
13349
|
+
return CompIcon ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
13234
13350
|
}
|
|
13235
13351
|
return null;
|
|
13236
13352
|
};
|
|
13237
13353
|
|
|
13238
13354
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
13239
|
-
var
|
|
13355
|
+
var import_jsx_runtime60 = require("@emotion/react/jsx-runtime");
|
|
13240
13356
|
var EditTeamIntegrationTile = ({
|
|
13241
13357
|
id,
|
|
13242
13358
|
icon,
|
|
@@ -13245,17 +13361,17 @@ var EditTeamIntegrationTile = ({
|
|
|
13245
13361
|
isPublic,
|
|
13246
13362
|
canEdit = false
|
|
13247
13363
|
}) => {
|
|
13248
|
-
return /* @__PURE__ */ (0,
|
|
13364
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
13249
13365
|
"div",
|
|
13250
13366
|
{
|
|
13251
13367
|
css: IntegrationTileContainer,
|
|
13252
13368
|
"data-testid": "configure-integration-container",
|
|
13253
13369
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
13254
13370
|
children: [
|
|
13255
|
-
/* @__PURE__ */ (0,
|
|
13256
|
-
/* @__PURE__ */ (0,
|
|
13257
|
-
!isPublic ? /* @__PURE__ */ (0,
|
|
13258
|
-
canEdit ? /* @__PURE__ */ (0,
|
|
13371
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ResolveIcon, { icon, name, "data-test-id": "integration-logo" }),
|
|
13372
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { css: IntegrationTileName, "data-test-id": "integration-card-name", children: name }),
|
|
13373
|
+
!isPublic ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(IntegrationCustomBadge, {}) : null,
|
|
13374
|
+
canEdit ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
13259
13375
|
Button,
|
|
13260
13376
|
{
|
|
13261
13377
|
buttonType: "unimportant",
|
|
@@ -13275,8 +13391,8 @@ var EditTeamIntegrationTile = ({
|
|
|
13275
13391
|
// src/components/Tiles/IntegrationComingSoon.tsx
|
|
13276
13392
|
var import_react63 = require("@emotion/react");
|
|
13277
13393
|
var import_react64 = require("react");
|
|
13278
|
-
var
|
|
13279
|
-
var
|
|
13394
|
+
var import_cg13 = require("react-icons/cg");
|
|
13395
|
+
var import_jsx_runtime61 = require("@emotion/react/jsx-runtime");
|
|
13280
13396
|
var IntegrationComingSoon = ({
|
|
13281
13397
|
name,
|
|
13282
13398
|
icon,
|
|
@@ -13298,17 +13414,17 @@ var IntegrationComingSoon = ({
|
|
|
13298
13414
|
};
|
|
13299
13415
|
}
|
|
13300
13416
|
}, [upVote, setUpVote, timing]);
|
|
13301
|
-
return /* @__PURE__ */ (0,
|
|
13417
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
13302
13418
|
"div",
|
|
13303
13419
|
{
|
|
13304
13420
|
css: IntegrationTileContainer,
|
|
13305
13421
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
13306
13422
|
...props,
|
|
13307
13423
|
children: [
|
|
13308
|
-
/* @__PURE__ */ (0,
|
|
13309
|
-
/* @__PURE__ */ (0,
|
|
13310
|
-
/* @__PURE__ */ (0,
|
|
13311
|
-
/* @__PURE__ */ (0,
|
|
13424
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(IntegrationComingSoonBadge, {}),
|
|
13425
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ResolveIcon, { icon, name }),
|
|
13426
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { css: IntegrationTileName, title: name, children: name }),
|
|
13427
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
13312
13428
|
Button,
|
|
13313
13429
|
{
|
|
13314
13430
|
buttonType: "unimportant",
|
|
@@ -13318,8 +13434,8 @@ var IntegrationComingSoon = ({
|
|
|
13318
13434
|
role: "link",
|
|
13319
13435
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
13320
13436
|
children: [
|
|
13321
|
-
/* @__PURE__ */ (0,
|
|
13322
|
-
/* @__PURE__ */ (0,
|
|
13437
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("strong", { children: "+1" }),
|
|
13438
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
13323
13439
|
"span",
|
|
13324
13440
|
{
|
|
13325
13441
|
css: import_react63.css`
|
|
@@ -13329,8 +13445,8 @@ var IntegrationComingSoon = ({
|
|
|
13329
13445
|
children: "(I want this)"
|
|
13330
13446
|
}
|
|
13331
13447
|
),
|
|
13332
|
-
/* @__PURE__ */ (0,
|
|
13333
|
-
/* @__PURE__ */ (0,
|
|
13448
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("span", { "aria-hidden": !upVote, children: [
|
|
13449
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { icon: import_cg13.CgHeart, iconColor: "currentColor", size: 18 }),
|
|
13334
13450
|
"Thanks!"
|
|
13335
13451
|
] })
|
|
13336
13452
|
]
|
|
@@ -13386,12 +13502,12 @@ var IntegrationLoadingFrame = import_react65.css`
|
|
|
13386
13502
|
`;
|
|
13387
13503
|
|
|
13388
13504
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
13389
|
-
var
|
|
13505
|
+
var import_jsx_runtime62 = require("@emotion/react/jsx-runtime");
|
|
13390
13506
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
13391
13507
|
const componentCount = Array.from(Array(count).keys());
|
|
13392
|
-
return /* @__PURE__ */ (0,
|
|
13393
|
-
/* @__PURE__ */ (0,
|
|
13394
|
-
/* @__PURE__ */ (0,
|
|
13508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_jsx_runtime62.Fragment, { children: componentCount.map((i) => /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { css: IntegrationLoadingTileContainer, children: [
|
|
13509
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
13510
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
13395
13511
|
] }, i)) });
|
|
13396
13512
|
};
|
|
13397
13513
|
|
|
@@ -13411,12 +13527,12 @@ var IntegrationModalImage = import_react66.css`
|
|
|
13411
13527
|
`;
|
|
13412
13528
|
|
|
13413
13529
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
13414
|
-
var
|
|
13530
|
+
var import_jsx_runtime63 = require("@emotion/react/jsx-runtime");
|
|
13415
13531
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
13416
13532
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
13417
|
-
return /* @__PURE__ */ (0,
|
|
13418
|
-
/* @__PURE__ */ (0,
|
|
13419
|
-
/* @__PURE__ */ (0,
|
|
13533
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { css: IntegrationModalIconContainer, children: [
|
|
13534
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
13535
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
13420
13536
|
"path",
|
|
13421
13537
|
{
|
|
13422
13538
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -13425,12 +13541,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
13425
13541
|
strokeWidth: "2"
|
|
13426
13542
|
}
|
|
13427
13543
|
),
|
|
13428
|
-
/* @__PURE__ */ (0,
|
|
13429
|
-
/* @__PURE__ */ (0,
|
|
13430
|
-
/* @__PURE__ */ (0,
|
|
13544
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
13545
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("stop", { stopColor: "#1768B2" }),
|
|
13546
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
13431
13547
|
] }) })
|
|
13432
13548
|
] }),
|
|
13433
|
-
CompIcon ? /* @__PURE__ */ (0,
|
|
13549
|
+
CompIcon ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
13434
13550
|
"img",
|
|
13435
13551
|
{
|
|
13436
13552
|
src: icon,
|
|
@@ -13444,7 +13560,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
13444
13560
|
};
|
|
13445
13561
|
|
|
13446
13562
|
// src/components/Tiles/IntegrationTile.tsx
|
|
13447
|
-
var
|
|
13563
|
+
var import_jsx_runtime64 = require("@emotion/react/jsx-runtime");
|
|
13448
13564
|
var IntegrationTile = ({
|
|
13449
13565
|
id,
|
|
13450
13566
|
icon,
|
|
@@ -13456,7 +13572,7 @@ var IntegrationTile = ({
|
|
|
13456
13572
|
authorIcon,
|
|
13457
13573
|
...btnProps
|
|
13458
13574
|
}) => {
|
|
13459
|
-
return /* @__PURE__ */ (0,
|
|
13575
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
13460
13576
|
"button",
|
|
13461
13577
|
{
|
|
13462
13578
|
type: "button",
|
|
@@ -13466,12 +13582,12 @@ var IntegrationTile = ({
|
|
|
13466
13582
|
"aria-label": name,
|
|
13467
13583
|
...btnProps,
|
|
13468
13584
|
children: [
|
|
13469
|
-
/* @__PURE__ */ (0,
|
|
13470
|
-
/* @__PURE__ */ (0,
|
|
13471
|
-
isInstalled ? /* @__PURE__ */ (0,
|
|
13472
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */ (0,
|
|
13473
|
-
!isPublic ? /* @__PURE__ */ (0,
|
|
13474
|
-
authorIcon ? /* @__PURE__ */ (0,
|
|
13585
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ResolveIcon, { icon, name }),
|
|
13586
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { css: IntegrationTileName, title: name, children: name }),
|
|
13587
|
+
isInstalled ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(IntegrationedAddedBadge, {}) : null,
|
|
13588
|
+
requiedEntitlement && isPublic ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(IntegrationPremiumBadge, {}) : null,
|
|
13589
|
+
!isPublic ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(IntegrationCustomBadge, {}) : null,
|
|
13590
|
+
authorIcon ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ResolveIcon, { icon: authorIcon, name }) : null
|
|
13475
13591
|
]
|
|
13476
13592
|
}
|
|
13477
13593
|
);
|
|
@@ -13491,9 +13607,9 @@ var TileContainerInner = import_react67.css`
|
|
|
13491
13607
|
`;
|
|
13492
13608
|
|
|
13493
13609
|
// src/components/Tiles/TileContainer.tsx
|
|
13494
|
-
var
|
|
13610
|
+
var import_jsx_runtime65 = require("@emotion/react/jsx-runtime");
|
|
13495
13611
|
var TileContainer = ({ children, ...props }) => {
|
|
13496
|
-
return /* @__PURE__ */ (0,
|
|
13612
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { css: TileContainerWrapper, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { css: TileContainerInner, children }) });
|
|
13497
13613
|
};
|
|
13498
13614
|
|
|
13499
13615
|
// src/components/Modal/IntegrationModalHeader.styles.ts
|
|
@@ -13527,9 +13643,9 @@ var IntegrationModalHeaderContentWrapper = import_react68.css`
|
|
|
13527
13643
|
`;
|
|
13528
13644
|
|
|
13529
13645
|
// src/components/Modal/IntegrationModalHeader.tsx
|
|
13530
|
-
var
|
|
13646
|
+
var import_jsx_runtime66 = require("@emotion/react/jsx-runtime");
|
|
13531
13647
|
var HexModalBackground = ({ ...props }) => {
|
|
13532
|
-
return /* @__PURE__ */ (0,
|
|
13648
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
13533
13649
|
"svg",
|
|
13534
13650
|
{
|
|
13535
13651
|
width: "236",
|
|
@@ -13539,7 +13655,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13539
13655
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13540
13656
|
...props,
|
|
13541
13657
|
children: [
|
|
13542
|
-
/* @__PURE__ */ (0,
|
|
13658
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
13543
13659
|
"path",
|
|
13544
13660
|
{
|
|
13545
13661
|
fillRule: "evenodd",
|
|
@@ -13548,7 +13664,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13548
13664
|
fill: "url(#paint0_linear_196_2737)"
|
|
13549
13665
|
}
|
|
13550
13666
|
),
|
|
13551
|
-
/* @__PURE__ */ (0,
|
|
13667
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
13552
13668
|
"linearGradient",
|
|
13553
13669
|
{
|
|
13554
13670
|
id: "paint0_linear_196_2737",
|
|
@@ -13558,8 +13674,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13558
13674
|
y2: "-95.2742",
|
|
13559
13675
|
gradientUnits: "userSpaceOnUse",
|
|
13560
13676
|
children: [
|
|
13561
|
-
/* @__PURE__ */ (0,
|
|
13562
|
-
/* @__PURE__ */ (0,
|
|
13677
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("stop", { stopColor: "#81DCDE" }),
|
|
13678
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("stop", { offset: "1", stopColor: "#428ED4" })
|
|
13563
13679
|
]
|
|
13564
13680
|
}
|
|
13565
13681
|
) })
|
|
@@ -13568,17 +13684,17 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13568
13684
|
);
|
|
13569
13685
|
};
|
|
13570
13686
|
var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
13571
|
-
return /* @__PURE__ */ (0,
|
|
13572
|
-
/* @__PURE__ */ (0,
|
|
13573
|
-
/* @__PURE__ */ (0,
|
|
13574
|
-
icon ? /* @__PURE__ */ (0,
|
|
13575
|
-
/* @__PURE__ */ (0,
|
|
13576
|
-
menu2 ? /* @__PURE__ */ (0,
|
|
13687
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
|
|
13688
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
13689
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
13690
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
13691
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-test-id": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
13692
|
+
menu2 ? /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
13577
13693
|
menu2,
|
|
13578
13694
|
" "
|
|
13579
13695
|
] }) : null
|
|
13580
13696
|
] }) }),
|
|
13581
|
-
/* @__PURE__ */ (0,
|
|
13697
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
13582
13698
|
] });
|
|
13583
13699
|
};
|
|
13584
13700
|
|
|
@@ -13603,13 +13719,13 @@ var TooltipArrowStyles = import_react69.css`
|
|
|
13603
13719
|
`;
|
|
13604
13720
|
|
|
13605
13721
|
// src/components/Tooltip/Tooltip.tsx
|
|
13606
|
-
var
|
|
13722
|
+
var import_jsx_runtime67 = require("@emotion/react/jsx-runtime");
|
|
13607
13723
|
function Tooltip({ children, title, placement = "bottom", visible, ...props }) {
|
|
13608
13724
|
const tooltip = (0, import_Tooltip.useTooltipState)({ placement });
|
|
13609
|
-
return /* @__PURE__ */ (0,
|
|
13610
|
-
/* @__PURE__ */ (0,
|
|
13611
|
-
!title ? null : /* @__PURE__ */ (0,
|
|
13612
|
-
/* @__PURE__ */ (0,
|
|
13725
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
|
|
13726
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_Tooltip.TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => import_react70.default.cloneElement(children, referenceProps) }),
|
|
13727
|
+
!title ? null : /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_Tooltip.Tooltip, { ...tooltip, ...props, css: TooltipContainer, visible: visible != null ? visible : tooltip.visible, children: [
|
|
13728
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_Tooltip.TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
|
|
13613
13729
|
title
|
|
13614
13730
|
] })
|
|
13615
13731
|
] });
|
|
@@ -13640,7 +13756,7 @@ var inputIconBtn = import_react71.css`
|
|
|
13640
13756
|
`;
|
|
13641
13757
|
|
|
13642
13758
|
// src/components/ParameterInputs/ConnectToDataElementButton.tsx
|
|
13643
|
-
var
|
|
13759
|
+
var import_jsx_runtime68 = require("@emotion/react/jsx-runtime");
|
|
13644
13760
|
var ConnectToDataElementButton = ({
|
|
13645
13761
|
icon,
|
|
13646
13762
|
iconColor,
|
|
@@ -13650,7 +13766,7 @@ var ConnectToDataElementButton = ({
|
|
|
13650
13766
|
...props
|
|
13651
13767
|
}) => {
|
|
13652
13768
|
const title = isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
13653
|
-
return /* @__PURE__ */ (0,
|
|
13769
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Tooltip, { title, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
13654
13770
|
"button",
|
|
13655
13771
|
{
|
|
13656
13772
|
css: inputIconBtn,
|
|
@@ -13659,7 +13775,7 @@ var ConnectToDataElementButton = ({
|
|
|
13659
13775
|
"aria-disabled": isLocked,
|
|
13660
13776
|
...props,
|
|
13661
13777
|
children: [
|
|
13662
|
-
/* @__PURE__ */ (0,
|
|
13778
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
13663
13779
|
Icon,
|
|
13664
13780
|
{
|
|
13665
13781
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -13948,7 +14064,7 @@ var linkParameterIcon = import_react73.css`
|
|
|
13948
14064
|
`;
|
|
13949
14065
|
|
|
13950
14066
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
13951
|
-
var
|
|
14067
|
+
var import_jsx_runtime69 = require("@emotion/react/jsx-runtime");
|
|
13952
14068
|
function ParameterDataResource({
|
|
13953
14069
|
label,
|
|
13954
14070
|
labelLeadingIcon,
|
|
@@ -13958,12 +14074,12 @@ function ParameterDataResource({
|
|
|
13958
14074
|
disabled,
|
|
13959
14075
|
children
|
|
13960
14076
|
}) {
|
|
13961
|
-
return /* @__PURE__ */ (0,
|
|
13962
|
-
/* @__PURE__ */ (0,
|
|
14077
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { "data-testid": "parameter-data-connect-button", children: [
|
|
14078
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("span", { css: labelText2, children: [
|
|
13963
14079
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
13964
14080
|
label
|
|
13965
14081
|
] }),
|
|
13966
|
-
/* @__PURE__ */ (0,
|
|
14082
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
13967
14083
|
"button",
|
|
13968
14084
|
{
|
|
13969
14085
|
type: "button",
|
|
@@ -13972,12 +14088,12 @@ function ParameterDataResource({
|
|
|
13972
14088
|
disabled,
|
|
13973
14089
|
onClick: onConnectDatasource,
|
|
13974
14090
|
children: [
|
|
13975
|
-
/* @__PURE__ */ (0,
|
|
14091
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
13976
14092
|
children
|
|
13977
14093
|
]
|
|
13978
14094
|
}
|
|
13979
14095
|
),
|
|
13980
|
-
caption ? /* @__PURE__ */ (0,
|
|
14096
|
+
caption ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Caption, { children: caption }) : null
|
|
13981
14097
|
] });
|
|
13982
14098
|
}
|
|
13983
14099
|
|
|
@@ -14003,12 +14119,12 @@ var ParameterDrawerHeaderTitle = import_react74.css`
|
|
|
14003
14119
|
`;
|
|
14004
14120
|
|
|
14005
14121
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
14006
|
-
var
|
|
14122
|
+
var import_jsx_runtime70 = require("@emotion/react/jsx-runtime");
|
|
14007
14123
|
var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
14008
|
-
return /* @__PURE__ */ (0,
|
|
14009
|
-
/* @__PURE__ */ (0,
|
|
14124
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
14125
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
14010
14126
|
iconBeforeTitle,
|
|
14011
|
-
/* @__PURE__ */ (0,
|
|
14127
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
|
|
14012
14128
|
] }),
|
|
14013
14129
|
children
|
|
14014
14130
|
] });
|
|
@@ -14038,11 +14154,11 @@ var fieldsetLegend2 = import_react75.css`
|
|
|
14038
14154
|
`;
|
|
14039
14155
|
|
|
14040
14156
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
14041
|
-
var
|
|
14157
|
+
var import_jsx_runtime71 = require("@emotion/react/jsx-runtime");
|
|
14042
14158
|
var ParameterGroup = (0, import_react76.forwardRef)(
|
|
14043
14159
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
14044
|
-
return /* @__PURE__ */ (0,
|
|
14045
|
-
/* @__PURE__ */ (0,
|
|
14160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
14161
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("legend", { css: fieldsetLegend2, children: legend }),
|
|
14046
14162
|
children
|
|
14047
14163
|
] });
|
|
14048
14164
|
}
|
|
@@ -14055,21 +14171,21 @@ var import_react80 = require("react");
|
|
|
14055
14171
|
var import_react79 = require("react");
|
|
14056
14172
|
|
|
14057
14173
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
14058
|
-
var
|
|
14174
|
+
var import_jsx_runtime72 = require("@emotion/react/jsx-runtime");
|
|
14059
14175
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
14060
|
-
return !asSpan ? /* @__PURE__ */ (0,
|
|
14176
|
+
return !asSpan ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { "aria-labelledby": id, css: labelText2, children });
|
|
14061
14177
|
};
|
|
14062
14178
|
|
|
14063
14179
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
14064
14180
|
var import_react77 = require("react");
|
|
14065
|
-
var
|
|
14181
|
+
var import_jsx_runtime73 = require("@emotion/react/jsx-runtime");
|
|
14066
14182
|
var ParameterMenuButton = (0, import_react77.forwardRef)(
|
|
14067
14183
|
({ label, children }, ref) => {
|
|
14068
|
-
return /* @__PURE__ */ (0,
|
|
14184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
14069
14185
|
Menu,
|
|
14070
14186
|
{
|
|
14071
14187
|
menuLabel: `${label} menu`,
|
|
14072
|
-
menuTrigger: /* @__PURE__ */ (0,
|
|
14188
|
+
menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
14073
14189
|
"button",
|
|
14074
14190
|
{
|
|
14075
14191
|
className: "parameter-menu",
|
|
@@ -14077,7 +14193,7 @@ var ParameterMenuButton = (0, import_react77.forwardRef)(
|
|
|
14077
14193
|
type: "button",
|
|
14078
14194
|
"aria-label": `${label} options`,
|
|
14079
14195
|
ref,
|
|
14080
|
-
children: /* @__PURE__ */ (0,
|
|
14196
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
14081
14197
|
}
|
|
14082
14198
|
),
|
|
14083
14199
|
children
|
|
@@ -14114,7 +14230,7 @@ var overrideMarker = import_react78.css`
|
|
|
14114
14230
|
`;
|
|
14115
14231
|
|
|
14116
14232
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
14117
|
-
var
|
|
14233
|
+
var import_jsx_runtime74 = require("@emotion/react/jsx-runtime");
|
|
14118
14234
|
var extractParameterProps = (props) => {
|
|
14119
14235
|
const {
|
|
14120
14236
|
id,
|
|
@@ -14170,18 +14286,18 @@ var ParameterShell = ({
|
|
|
14170
14286
|
const [manualErrorMessage, setManualErrorMessage] = (0, import_react79.useState)(void 0);
|
|
14171
14287
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
14172
14288
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
14173
|
-
return /* @__PURE__ */ (0,
|
|
14174
|
-
hiddenLabel || title ? null : /* @__PURE__ */ (0,
|
|
14289
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { css: inputContainer2, ...props, children: [
|
|
14290
|
+
hiddenLabel || title ? null : /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(ParameterLabel, { id, css: labelText2, children: [
|
|
14175
14291
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
14176
14292
|
label
|
|
14177
14293
|
] }),
|
|
14178
|
-
!title ? null : /* @__PURE__ */ (0,
|
|
14294
|
+
!title ? null : /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(ParameterLabel, { id, asSpan: true, children: [
|
|
14179
14295
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
14180
14296
|
title
|
|
14181
14297
|
] }),
|
|
14182
|
-
/* @__PURE__ */ (0,
|
|
14183
|
-
menuItems ? /* @__PURE__ */ (0,
|
|
14184
|
-
/* @__PURE__ */ (0,
|
|
14298
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { css: inputWrapper, children: [
|
|
14299
|
+
menuItems ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
14300
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
14185
14301
|
ParameterShellContext.Provider,
|
|
14186
14302
|
{
|
|
14187
14303
|
value: {
|
|
@@ -14191,30 +14307,30 @@ var ParameterShell = ({
|
|
|
14191
14307
|
errorMessage: errorMessaging,
|
|
14192
14308
|
onManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
14193
14309
|
},
|
|
14194
|
-
children: /* @__PURE__ */ (0,
|
|
14310
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(ParameterShellPlaceholder, { children: [
|
|
14195
14311
|
children,
|
|
14196
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0,
|
|
14312
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
14197
14313
|
] })
|
|
14198
14314
|
}
|
|
14199
14315
|
)
|
|
14200
14316
|
] }),
|
|
14201
|
-
caption ? /* @__PURE__ */ (0,
|
|
14202
|
-
errorMessaging ? /* @__PURE__ */ (0,
|
|
14317
|
+
caption ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Caption, { testId: captionTestId, children: caption }) : null,
|
|
14318
|
+
errorMessaging ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null
|
|
14203
14319
|
] });
|
|
14204
14320
|
};
|
|
14205
14321
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
14206
|
-
return /* @__PURE__ */ (0,
|
|
14322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { css: emptyParameterShell, children });
|
|
14207
14323
|
};
|
|
14208
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0,
|
|
14324
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
14209
14325
|
|
|
14210
14326
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
14211
|
-
var
|
|
14327
|
+
var import_jsx_runtime75 = require("@emotion/react/jsx-runtime");
|
|
14212
14328
|
var ParameterImage = (0, import_react80.forwardRef)((props, ref) => {
|
|
14213
14329
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14214
|
-
return /* @__PURE__ */ (0,
|
|
14330
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ParameterImageInner, { ref, ...innerProps }) });
|
|
14215
14331
|
});
|
|
14216
14332
|
var BrokenImage = ({ ...props }) => {
|
|
14217
|
-
return /* @__PURE__ */ (0,
|
|
14333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
14218
14334
|
"svg",
|
|
14219
14335
|
{
|
|
14220
14336
|
width: "214",
|
|
@@ -14225,11 +14341,11 @@ var BrokenImage = ({ ...props }) => {
|
|
|
14225
14341
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
14226
14342
|
...props,
|
|
14227
14343
|
children: [
|
|
14228
|
-
/* @__PURE__ */ (0,
|
|
14229
|
-
/* @__PURE__ */ (0,
|
|
14230
|
-
/* @__PURE__ */ (0,
|
|
14231
|
-
/* @__PURE__ */ (0,
|
|
14232
|
-
/* @__PURE__ */ (0,
|
|
14344
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
14345
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
14346
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("defs", { children: [
|
|
14347
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
14348
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
14233
14349
|
"image",
|
|
14234
14350
|
{
|
|
14235
14351
|
id: "image0_761_4353",
|
|
@@ -14281,8 +14397,8 @@ var ParameterImageInner = (0, import_react80.forwardRef)(
|
|
|
14281
14397
|
(0, import_react80.useEffect)(() => {
|
|
14282
14398
|
updateImageSrc();
|
|
14283
14399
|
}, [value]);
|
|
14284
|
-
return /* @__PURE__ */ (0,
|
|
14285
|
-
/* @__PURE__ */ (0,
|
|
14400
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
|
|
14401
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
14286
14402
|
"input",
|
|
14287
14403
|
{
|
|
14288
14404
|
css: input2,
|
|
@@ -14294,8 +14410,8 @@ var ParameterImageInner = (0, import_react80.forwardRef)(
|
|
|
14294
14410
|
...props
|
|
14295
14411
|
}
|
|
14296
14412
|
),
|
|
14297
|
-
/* @__PURE__ */ (0,
|
|
14298
|
-
deferredValue && !errorMessage ? /* @__PURE__ */ (0,
|
|
14413
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { css: imageWrapper, children: [
|
|
14414
|
+
deferredValue && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
14299
14415
|
"img",
|
|
14300
14416
|
{
|
|
14301
14417
|
src: deferredValue,
|
|
@@ -14305,24 +14421,24 @@ var ParameterImageInner = (0, import_react80.forwardRef)(
|
|
|
14305
14421
|
loading: "lazy"
|
|
14306
14422
|
}
|
|
14307
14423
|
) : null,
|
|
14308
|
-
deferredValue && errorMessage ? /* @__PURE__ */ (0,
|
|
14424
|
+
deferredValue && errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(BrokenImage, { css: img }) : null
|
|
14309
14425
|
] }),
|
|
14310
|
-
loading ? /* @__PURE__ */ (0,
|
|
14426
|
+
loading ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(LoadingIcon, {}) : null
|
|
14311
14427
|
] });
|
|
14312
14428
|
}
|
|
14313
14429
|
);
|
|
14314
14430
|
|
|
14315
14431
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
14316
14432
|
var import_react81 = require("react");
|
|
14317
|
-
var
|
|
14433
|
+
var import_jsx_runtime76 = require("@emotion/react/jsx-runtime");
|
|
14318
14434
|
var ParameterInput = (0, import_react81.forwardRef)((props, ref) => {
|
|
14319
14435
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14320
|
-
return /* @__PURE__ */ (0,
|
|
14436
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ParameterShell, { "data-test-id": "parameter-input", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ParameterInputInner, { ref, ...innerProps }) });
|
|
14321
14437
|
});
|
|
14322
14438
|
var ParameterInputInner = (0, import_react81.forwardRef)(
|
|
14323
14439
|
({ ...props }, ref) => {
|
|
14324
14440
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14325
|
-
return /* @__PURE__ */ (0,
|
|
14441
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
14326
14442
|
"input",
|
|
14327
14443
|
{
|
|
14328
14444
|
css: input2,
|
|
@@ -14339,18 +14455,18 @@ var ParameterInputInner = (0, import_react81.forwardRef)(
|
|
|
14339
14455
|
|
|
14340
14456
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
14341
14457
|
var import_react82 = require("react");
|
|
14342
|
-
var
|
|
14458
|
+
var import_jsx_runtime77 = require("@emotion/react/jsx-runtime");
|
|
14343
14459
|
var ParameterLink = (0, import_react82.forwardRef)(
|
|
14344
14460
|
({ buttonText = "Select project map node", disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
14345
14461
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14346
|
-
return /* @__PURE__ */ (0,
|
|
14462
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
14347
14463
|
ParameterShell,
|
|
14348
14464
|
{
|
|
14349
14465
|
"data-test-id": "link-parameter-editor",
|
|
14350
14466
|
...shellProps,
|
|
14351
14467
|
label: innerProps.value ? shellProps.label : "",
|
|
14352
14468
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
14353
|
-
children: !innerProps.value ? /* @__PURE__ */ (0,
|
|
14469
|
+
children: !innerProps.value ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText }) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
14354
14470
|
ParameterLinkInner,
|
|
14355
14471
|
{
|
|
14356
14472
|
onConnectLink,
|
|
@@ -14366,8 +14482,8 @@ var ParameterLink = (0, import_react82.forwardRef)(
|
|
|
14366
14482
|
var ParameterLinkInner = (0, import_react82.forwardRef)(
|
|
14367
14483
|
({ externalLink, onConnectLink, disabled, ...props }, ref) => {
|
|
14368
14484
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14369
|
-
return /* @__PURE__ */ (0,
|
|
14370
|
-
/* @__PURE__ */ (0,
|
|
14485
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { css: inputWrapper, children: [
|
|
14486
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
14371
14487
|
"input",
|
|
14372
14488
|
{
|
|
14373
14489
|
type: "text",
|
|
@@ -14379,7 +14495,7 @@ var ParameterLinkInner = (0, import_react82.forwardRef)(
|
|
|
14379
14495
|
...props
|
|
14380
14496
|
}
|
|
14381
14497
|
),
|
|
14382
|
-
/* @__PURE__ */ (0,
|
|
14498
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
14383
14499
|
"button",
|
|
14384
14500
|
{
|
|
14385
14501
|
type: "button",
|
|
@@ -14390,7 +14506,7 @@ var ParameterLinkInner = (0, import_react82.forwardRef)(
|
|
|
14390
14506
|
children: "edit"
|
|
14391
14507
|
}
|
|
14392
14508
|
),
|
|
14393
|
-
externalLink ? /* @__PURE__ */ (0,
|
|
14509
|
+
externalLink ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
14394
14510
|
"a",
|
|
14395
14511
|
{
|
|
14396
14512
|
href: externalLink,
|
|
@@ -14398,7 +14514,7 @@ var ParameterLinkInner = (0, import_react82.forwardRef)(
|
|
|
14398
14514
|
title: "Open link in new tab",
|
|
14399
14515
|
target: "_blank",
|
|
14400
14516
|
rel: "noopener noreferrer",
|
|
14401
|
-
children: /* @__PURE__ */ (0,
|
|
14517
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
14402
14518
|
}
|
|
14403
14519
|
) : null
|
|
14404
14520
|
] });
|
|
@@ -14406,7 +14522,7 @@ var ParameterLinkInner = (0, import_react82.forwardRef)(
|
|
|
14406
14522
|
);
|
|
14407
14523
|
|
|
14408
14524
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
14409
|
-
var
|
|
14525
|
+
var import_jsx_runtime78 = require("@emotion/react/jsx-runtime");
|
|
14410
14526
|
var ParameterNameAndPublicIdInput = ({
|
|
14411
14527
|
id,
|
|
14412
14528
|
onBlur,
|
|
@@ -14432,8 +14548,8 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14432
14548
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
14433
14549
|
};
|
|
14434
14550
|
autoFocus == null ? void 0 : autoFocus();
|
|
14435
|
-
return /* @__PURE__ */ (0,
|
|
14436
|
-
/* @__PURE__ */ (0,
|
|
14551
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
|
|
14552
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
14437
14553
|
ParameterInput,
|
|
14438
14554
|
{
|
|
14439
14555
|
id: nameIdField,
|
|
@@ -14452,7 +14568,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14452
14568
|
value: values[nameIdField]
|
|
14453
14569
|
}
|
|
14454
14570
|
),
|
|
14455
|
-
/* @__PURE__ */ (0,
|
|
14571
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
14456
14572
|
ParameterInput,
|
|
14457
14573
|
{
|
|
14458
14574
|
id: publicIdFieldName,
|
|
@@ -14466,11 +14582,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14466
14582
|
caption: publicIdCaption,
|
|
14467
14583
|
placeholder: publicIdPlaceholderText,
|
|
14468
14584
|
errorMessage: publicIdError,
|
|
14469
|
-
menuItems: /* @__PURE__ */ (0,
|
|
14585
|
+
menuItems: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
14470
14586
|
MenuItem,
|
|
14471
14587
|
{
|
|
14472
14588
|
disabled: !values[publicIdFieldName],
|
|
14473
|
-
icon: /* @__PURE__ */ (0,
|
|
14589
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
14474
14590
|
onClick: handleCopyPidFieldValue,
|
|
14475
14591
|
children: "Copy"
|
|
14476
14592
|
}
|
|
@@ -14478,13 +14594,13 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14478
14594
|
value: values[publicIdFieldName]
|
|
14479
14595
|
}
|
|
14480
14596
|
),
|
|
14481
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ (0,
|
|
14597
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
14482
14598
|
] });
|
|
14483
14599
|
};
|
|
14484
14600
|
|
|
14485
14601
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
14486
14602
|
var import_react83 = require("react");
|
|
14487
|
-
var
|
|
14603
|
+
var import_jsx_runtime79 = require("@emotion/react/jsx-runtime");
|
|
14488
14604
|
var ParameterRichText = (0, import_react83.forwardRef)(
|
|
14489
14605
|
({
|
|
14490
14606
|
label,
|
|
@@ -14498,7 +14614,7 @@ var ParameterRichText = (0, import_react83.forwardRef)(
|
|
|
14498
14614
|
menuItems,
|
|
14499
14615
|
...props
|
|
14500
14616
|
}, ref) => {
|
|
14501
|
-
return /* @__PURE__ */ (0,
|
|
14617
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
14502
14618
|
ParameterShell,
|
|
14503
14619
|
{
|
|
14504
14620
|
"data-test-id": "parameter-input",
|
|
@@ -14511,8 +14627,8 @@ var ParameterRichText = (0, import_react83.forwardRef)(
|
|
|
14511
14627
|
captionTestId,
|
|
14512
14628
|
menuItems,
|
|
14513
14629
|
children: [
|
|
14514
|
-
/* @__PURE__ */ (0,
|
|
14515
|
-
menuItems ? /* @__PURE__ */ (0,
|
|
14630
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ParameterRichTextInner, { ref, ...props }),
|
|
14631
|
+
menuItems ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_jsx_runtime79.Fragment, { children: menuItems }) }) : null
|
|
14516
14632
|
]
|
|
14517
14633
|
}
|
|
14518
14634
|
);
|
|
@@ -14520,7 +14636,7 @@ var ParameterRichText = (0, import_react83.forwardRef)(
|
|
|
14520
14636
|
);
|
|
14521
14637
|
var ParameterRichTextInner = (0, import_react83.forwardRef)(({ ...props }, ref) => {
|
|
14522
14638
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14523
|
-
return /* @__PURE__ */ (0,
|
|
14639
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
14524
14640
|
"textarea",
|
|
14525
14641
|
{
|
|
14526
14642
|
css: [input2, textarea2],
|
|
@@ -14534,17 +14650,17 @@ var ParameterRichTextInner = (0, import_react83.forwardRef)(({ ...props }, ref)
|
|
|
14534
14650
|
|
|
14535
14651
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
14536
14652
|
var import_react84 = require("react");
|
|
14537
|
-
var
|
|
14653
|
+
var import_jsx_runtime80 = require("@emotion/react/jsx-runtime");
|
|
14538
14654
|
var ParameterSelect = (0, import_react84.forwardRef)(
|
|
14539
14655
|
({ defaultOption, options, ...props }, ref) => {
|
|
14540
14656
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14541
|
-
return /* @__PURE__ */ (0,
|
|
14657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
14542
14658
|
}
|
|
14543
14659
|
);
|
|
14544
14660
|
var ParameterSelectInner = (0, import_react84.forwardRef)(
|
|
14545
14661
|
({ defaultOption, options, ...props }, ref) => {
|
|
14546
14662
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14547
|
-
return /* @__PURE__ */ (0,
|
|
14663
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
14548
14664
|
"select",
|
|
14549
14665
|
{
|
|
14550
14666
|
css: [input2, selectInput],
|
|
@@ -14553,10 +14669,10 @@ var ParameterSelectInner = (0, import_react84.forwardRef)(
|
|
|
14553
14669
|
ref,
|
|
14554
14670
|
...props,
|
|
14555
14671
|
children: [
|
|
14556
|
-
defaultOption ? /* @__PURE__ */ (0,
|
|
14672
|
+
defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("option", { value: "", children: defaultOption }) : null,
|
|
14557
14673
|
options.map((option) => {
|
|
14558
14674
|
var _a;
|
|
14559
|
-
return /* @__PURE__ */ (0,
|
|
14675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
14560
14676
|
})
|
|
14561
14677
|
]
|
|
14562
14678
|
}
|
|
@@ -14566,14 +14682,14 @@ var ParameterSelectInner = (0, import_react84.forwardRef)(
|
|
|
14566
14682
|
|
|
14567
14683
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
14568
14684
|
var import_react85 = require("react");
|
|
14569
|
-
var
|
|
14685
|
+
var import_jsx_runtime81 = require("@emotion/react/jsx-runtime");
|
|
14570
14686
|
var ParameterTextarea = (0, import_react85.forwardRef)((props, ref) => {
|
|
14571
14687
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14572
|
-
return /* @__PURE__ */ (0,
|
|
14688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ParameterShell, { "data-test-id": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
14573
14689
|
});
|
|
14574
14690
|
var ParameterTextareaInner = (0, import_react85.forwardRef)(({ ...props }, ref) => {
|
|
14575
14691
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14576
|
-
return /* @__PURE__ */ (0,
|
|
14692
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
14577
14693
|
"textarea",
|
|
14578
14694
|
{
|
|
14579
14695
|
css: [input2, textarea2],
|
|
@@ -14587,17 +14703,17 @@ var ParameterTextareaInner = (0, import_react85.forwardRef)(({ ...props }, ref)
|
|
|
14587
14703
|
|
|
14588
14704
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
14589
14705
|
var import_react86 = require("react");
|
|
14590
|
-
var
|
|
14706
|
+
var import_jsx_runtime82 = require("@emotion/react/jsx-runtime");
|
|
14591
14707
|
var ParameterToggle = (0, import_react86.forwardRef)((props, ref) => {
|
|
14592
14708
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14593
|
-
return /* @__PURE__ */ (0,
|
|
14709
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ParameterToggleInner, { ref, ...innerProps }) });
|
|
14594
14710
|
});
|
|
14595
14711
|
var ParameterToggleInner = (0, import_react86.forwardRef)(
|
|
14596
14712
|
({ ...props }, ref) => {
|
|
14597
14713
|
const { id, label } = useParameterShell();
|
|
14598
|
-
return /* @__PURE__ */ (0,
|
|
14599
|
-
/* @__PURE__ */ (0,
|
|
14600
|
-
/* @__PURE__ */ (0,
|
|
14714
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("label", { css: inputToggleLabel2, children: [
|
|
14715
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
14716
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { css: inlineLabel2, children: label })
|
|
14601
14717
|
] });
|
|
14602
14718
|
}
|
|
14603
14719
|
);
|
|
@@ -14626,7 +14742,7 @@ var Popover = import_react87.css`
|
|
|
14626
14742
|
`;
|
|
14627
14743
|
|
|
14628
14744
|
// src/components/Popover/Popover.tsx
|
|
14629
|
-
var
|
|
14745
|
+
var import_jsx_runtime83 = require("@emotion/react/jsx-runtime");
|
|
14630
14746
|
var Popover2 = ({
|
|
14631
14747
|
iconColor = "green",
|
|
14632
14748
|
buttonText,
|
|
@@ -14635,19 +14751,19 @@ var Popover2 = ({
|
|
|
14635
14751
|
children
|
|
14636
14752
|
}) => {
|
|
14637
14753
|
const popover = (0, import_Popover.usePopoverState)({ placement });
|
|
14638
|
-
return /* @__PURE__ */ (0,
|
|
14639
|
-
/* @__PURE__ */ (0,
|
|
14640
|
-
/* @__PURE__ */ (0,
|
|
14641
|
-
/* @__PURE__ */ (0,
|
|
14754
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
|
|
14755
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_Popover.PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, children: [
|
|
14756
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Icon, { icon: "info", iconColor, size: "1rem" }),
|
|
14757
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { hidden: true, children: buttonText })
|
|
14642
14758
|
] }),
|
|
14643
|
-
/* @__PURE__ */ (0,
|
|
14759
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_Portal2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_Popover.Popover, { css: Popover, ...popover, "aria-label": ariaLabel, children }) })
|
|
14644
14760
|
] });
|
|
14645
14761
|
};
|
|
14646
14762
|
|
|
14647
14763
|
// src/components/ProgressList/ProgressList.tsx
|
|
14648
14764
|
var import_react89 = require("@emotion/react");
|
|
14649
14765
|
var import_react90 = require("react");
|
|
14650
|
-
var
|
|
14766
|
+
var import_cg14 = require("react-icons/cg");
|
|
14651
14767
|
|
|
14652
14768
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
14653
14769
|
var import_react88 = require("@emotion/react");
|
|
@@ -14664,7 +14780,7 @@ var progressListItemStyles = import_react88.css`
|
|
|
14664
14780
|
`;
|
|
14665
14781
|
|
|
14666
14782
|
// src/components/ProgressList/ProgressList.tsx
|
|
14667
|
-
var
|
|
14783
|
+
var import_jsx_runtime84 = require("@emotion/react/jsx-runtime");
|
|
14668
14784
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
14669
14785
|
const itemsWithStatus = (0, import_react90.useMemo)(() => {
|
|
14670
14786
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -14678,8 +14794,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
14678
14794
|
return { ...item, status };
|
|
14679
14795
|
});
|
|
14680
14796
|
}, [items, inProgressId]);
|
|
14681
|
-
return /* @__PURE__ */ (0,
|
|
14682
|
-
return /* @__PURE__ */ (0,
|
|
14797
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
14798
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
14683
14799
|
ProgressListItem,
|
|
14684
14800
|
{
|
|
14685
14801
|
status,
|
|
@@ -14704,9 +14820,9 @@ var ProgressListItem = ({
|
|
|
14704
14820
|
return warningIcon;
|
|
14705
14821
|
}
|
|
14706
14822
|
const iconPerStatus = {
|
|
14707
|
-
completed:
|
|
14708
|
-
inProgress:
|
|
14709
|
-
queued:
|
|
14823
|
+
completed: import_cg14.CgCheckO,
|
|
14824
|
+
inProgress: import_cg14.CgRecord,
|
|
14825
|
+
queued: import_cg14.CgRadioCheck
|
|
14710
14826
|
};
|
|
14711
14827
|
return iconPerStatus[status];
|
|
14712
14828
|
}, [status, error]);
|
|
@@ -14737,28 +14853,190 @@ var ProgressListItem = ({
|
|
|
14737
14853
|
};
|
|
14738
14854
|
return colorPerStatus[status];
|
|
14739
14855
|
}, [status, error, errorLevel]);
|
|
14740
|
-
return /* @__PURE__ */ (0,
|
|
14741
|
-
/* @__PURE__ */ (0,
|
|
14742
|
-
/* @__PURE__ */ (0,
|
|
14856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
14857
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Icon2, { size: 20 }) }) }),
|
|
14858
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { children: [
|
|
14743
14859
|
children,
|
|
14744
|
-
/* @__PURE__ */ (0,
|
|
14860
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
14745
14861
|
] })
|
|
14746
14862
|
] });
|
|
14747
14863
|
};
|
|
14748
14864
|
|
|
14749
|
-
// src/components/
|
|
14865
|
+
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
14866
|
+
var import_react92 = require("@emotion/react");
|
|
14867
|
+
var import_react93 = require("react");
|
|
14868
|
+
var import_cg15 = require("react-icons/cg");
|
|
14869
|
+
|
|
14870
|
+
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
14750
14871
|
var import_react91 = require("@emotion/react");
|
|
14751
|
-
var
|
|
14872
|
+
var segmentedControlStyles = import_react91.css`
|
|
14873
|
+
--segmented-control-rounded-value: var(--rounded-base);
|
|
14874
|
+
--segmented-control-border-width: 1px;
|
|
14875
|
+
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
14876
|
+
--segmented-control-first-border-radius: var(--segmented-control-rounded-value) 0 0
|
|
14877
|
+
var(--segmented-control-rounded-value);
|
|
14878
|
+
--segmented-control-last-border-radius: 0 var(--segmented-control-rounded-value)
|
|
14879
|
+
var(--segmented-control-rounded-value) 0;
|
|
14880
|
+
|
|
14881
|
+
position: relative;
|
|
14882
|
+
display: flex;
|
|
14883
|
+
justify-content: flex-start;
|
|
14884
|
+
width: fit-content;
|
|
14885
|
+
background-color: var(--gray-300);
|
|
14886
|
+
padding: var(--segmented-control-border-width);
|
|
14887
|
+
gap: var(--segmented-control-border-width);
|
|
14888
|
+
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
14889
|
+
font-size: var(--fs-xs);
|
|
14890
|
+
`;
|
|
14891
|
+
var segmentedControlVerticalStyles = import_react91.css`
|
|
14892
|
+
flex-direction: column;
|
|
14893
|
+
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
14894
|
+
var(--segmented-control-rounded-value) 0 0;
|
|
14895
|
+
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
14896
|
+
var(--segmented-control-rounded-value);
|
|
14897
|
+
`;
|
|
14898
|
+
var segmentedControlItemStyles = import_react91.css`
|
|
14899
|
+
&:first-of-type label {
|
|
14900
|
+
border-radius: var(--segmented-control-first-border-radius);
|
|
14901
|
+
}
|
|
14902
|
+
&:last-of-type label {
|
|
14903
|
+
border-radius: var(--segmented-control-last-border-radius);
|
|
14904
|
+
}
|
|
14905
|
+
`;
|
|
14906
|
+
var segmentedControlInputStyles = import_react91.css`
|
|
14907
|
+
clip: rect(0, 0, 0, 0);
|
|
14908
|
+
position: absolute;
|
|
14909
|
+
width: 1px;
|
|
14910
|
+
height: 1px;
|
|
14911
|
+
overflow: hidden;
|
|
14912
|
+
`;
|
|
14913
|
+
var segmentedControlLabelStyles = import_react91.css`
|
|
14914
|
+
position: relative;
|
|
14915
|
+
display: flex;
|
|
14916
|
+
align-items: center;
|
|
14917
|
+
justify-content: center;
|
|
14918
|
+
height: 2rem;
|
|
14919
|
+
padding-inline: var(--spacing-base);
|
|
14920
|
+
background-color: white;
|
|
14921
|
+
transition-property: background-color, color, box-shadow;
|
|
14922
|
+
transition-duration: var(--duration-xfast);
|
|
14923
|
+
transition-timing-function: ease-in-out;
|
|
14924
|
+
z-index: 1;
|
|
14925
|
+
cursor: pointer;
|
|
14926
|
+
|
|
14927
|
+
&:has(:checked) {
|
|
14928
|
+
background-color: var(--segmented-control-selected-color);
|
|
14929
|
+
outline: var(--segmented-control-border-width) solid var(--segmented-control-selected-color);
|
|
14930
|
+
box-shadow: 0 0.43em 1.7em 0 rgba(0, 0, 0, 0.15);
|
|
14931
|
+
color: white;
|
|
14932
|
+
z-index: 0;
|
|
14933
|
+
}
|
|
14934
|
+
|
|
14935
|
+
&:has(:disabled) {
|
|
14936
|
+
background-color: var(--gray-200);
|
|
14937
|
+
cursor: default;
|
|
14938
|
+
}
|
|
14939
|
+
`;
|
|
14940
|
+
var segmentedControlLabelIconOnlyStyles = import_react91.css`
|
|
14941
|
+
padding-inline: 0.5em;
|
|
14942
|
+
`;
|
|
14943
|
+
var segmentedControlLabelCheckStyles = import_react91.css`
|
|
14944
|
+
opacity: 0.5;
|
|
14945
|
+
`;
|
|
14946
|
+
var segmentedControlLabelContentStyles = import_react91.css`
|
|
14947
|
+
display: flex;
|
|
14948
|
+
align-items: center;
|
|
14949
|
+
justify-content: center;
|
|
14950
|
+
gap: var(--spacing-sm);
|
|
14951
|
+
height: 100%;
|
|
14952
|
+
`;
|
|
14953
|
+
var segmentedControlLabelTextStyles = import_react91.css``;
|
|
14954
|
+
|
|
14955
|
+
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
14956
|
+
var import_jsx_runtime85 = require("@emotion/react/jsx-runtime");
|
|
14957
|
+
var SegmentedControl = ({
|
|
14958
|
+
name,
|
|
14959
|
+
options,
|
|
14960
|
+
value,
|
|
14961
|
+
onChange,
|
|
14962
|
+
noCheckmark = false,
|
|
14963
|
+
orientation = "horizontal",
|
|
14964
|
+
size = "md",
|
|
14965
|
+
...props
|
|
14966
|
+
}) => {
|
|
14967
|
+
const onOptionChange = (0, import_react93.useCallback)(
|
|
14968
|
+
(event) => {
|
|
14969
|
+
if (event.target.checked) {
|
|
14970
|
+
onChange == null ? void 0 : onChange(options[parseInt(event.target.value)].value);
|
|
14971
|
+
}
|
|
14972
|
+
},
|
|
14973
|
+
[options, onChange]
|
|
14974
|
+
);
|
|
14975
|
+
const sizeStyles = (0, import_react93.useMemo)(() => {
|
|
14976
|
+
const map = {
|
|
14977
|
+
sm: (0, import_react92.css)({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
14978
|
+
md: (0, import_react92.css)({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
14979
|
+
lg: (0, import_react92.css)({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
|
|
14980
|
+
};
|
|
14981
|
+
return map[size];
|
|
14982
|
+
}, [size]);
|
|
14983
|
+
const isIconOnly = (0, import_react93.useMemo)(() => {
|
|
14984
|
+
return options.every((option) => option.icon && !option.label);
|
|
14985
|
+
}, [options]);
|
|
14986
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
14987
|
+
"div",
|
|
14988
|
+
{
|
|
14989
|
+
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
14990
|
+
...props,
|
|
14991
|
+
children: options.map((option, index) => {
|
|
14992
|
+
var _a;
|
|
14993
|
+
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
14994
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Tooltip, { title: (_a = option.tooltip) != null ? _a : "", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { css: segmentedControlItemStyles, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
14995
|
+
"label",
|
|
14996
|
+
{
|
|
14997
|
+
css: [
|
|
14998
|
+
segmentedControlLabelStyles,
|
|
14999
|
+
sizeStyles,
|
|
15000
|
+
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
15001
|
+
],
|
|
15002
|
+
children: [
|
|
15003
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
15004
|
+
"input",
|
|
15005
|
+
{
|
|
15006
|
+
css: segmentedControlInputStyles,
|
|
15007
|
+
type: "radio",
|
|
15008
|
+
name,
|
|
15009
|
+
value: index,
|
|
15010
|
+
checked: option.value === value,
|
|
15011
|
+
onChange: onOptionChange
|
|
15012
|
+
}
|
|
15013
|
+
),
|
|
15014
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_cg15.CgCheck, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
15015
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("span", { css: segmentedControlLabelContentStyles, children: [
|
|
15016
|
+
!option.icon ? null : /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(option.icon, { size: "1.5em" }),
|
|
15017
|
+
!text ? null : /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
15018
|
+
] })
|
|
15019
|
+
]
|
|
15020
|
+
}
|
|
15021
|
+
) }) }, JSON.stringify(option.value));
|
|
15022
|
+
})
|
|
15023
|
+
}
|
|
15024
|
+
);
|
|
15025
|
+
};
|
|
15026
|
+
|
|
15027
|
+
// src/components/Skeleton/Skeleton.styles.ts
|
|
15028
|
+
var import_react94 = require("@emotion/react");
|
|
15029
|
+
var lightFadingOut = import_react94.keyframes`
|
|
14752
15030
|
from { opacity: 0.1; }
|
|
14753
15031
|
to { opacity: 0.025; }
|
|
14754
15032
|
`;
|
|
14755
|
-
var skeletonStyles =
|
|
15033
|
+
var skeletonStyles = import_react94.css`
|
|
14756
15034
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
14757
15035
|
background-color: var(--gray-900);
|
|
14758
15036
|
`;
|
|
14759
15037
|
|
|
14760
15038
|
// src/components/Skeleton/Skeleton.tsx
|
|
14761
|
-
var
|
|
15039
|
+
var import_jsx_runtime86 = require("@emotion/react/jsx-runtime");
|
|
14762
15040
|
var Skeleton = ({
|
|
14763
15041
|
width = "100%",
|
|
14764
15042
|
height = "1.25rem",
|
|
@@ -14766,7 +15044,7 @@ var Skeleton = ({
|
|
|
14766
15044
|
circle = false,
|
|
14767
15045
|
children,
|
|
14768
15046
|
...otherProps
|
|
14769
|
-
}) => /* @__PURE__ */ (0,
|
|
15047
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
14770
15048
|
"div",
|
|
14771
15049
|
{
|
|
14772
15050
|
css: [
|
|
@@ -14786,11 +15064,11 @@ var Skeleton = ({
|
|
|
14786
15064
|
);
|
|
14787
15065
|
|
|
14788
15066
|
// src/components/Switch/Switch.tsx
|
|
14789
|
-
var
|
|
15067
|
+
var React18 = __toESM(require("react"));
|
|
14790
15068
|
|
|
14791
15069
|
// src/components/Switch/Switch.styles.ts
|
|
14792
|
-
var
|
|
14793
|
-
var SwitchInputContainer =
|
|
15070
|
+
var import_react95 = require("@emotion/react");
|
|
15071
|
+
var SwitchInputContainer = import_react95.css`
|
|
14794
15072
|
cursor: pointer;
|
|
14795
15073
|
display: inline-block;
|
|
14796
15074
|
position: relative;
|
|
@@ -14799,7 +15077,7 @@ var SwitchInputContainer = import_react92.css`
|
|
|
14799
15077
|
vertical-align: middle;
|
|
14800
15078
|
user-select: none;
|
|
14801
15079
|
`;
|
|
14802
|
-
var SwitchInput =
|
|
15080
|
+
var SwitchInput = import_react95.css`
|
|
14803
15081
|
appearance: none;
|
|
14804
15082
|
border-radius: var(--rounded-full);
|
|
14805
15083
|
background-color: var(--white);
|
|
@@ -14837,7 +15115,7 @@ var SwitchInput = import_react92.css`
|
|
|
14837
15115
|
cursor: not-allowed;
|
|
14838
15116
|
}
|
|
14839
15117
|
`;
|
|
14840
|
-
var SwitchInputDisabled =
|
|
15118
|
+
var SwitchInputDisabled = import_react95.css`
|
|
14841
15119
|
opacity: var(--opacity-50);
|
|
14842
15120
|
cursor: not-allowed;
|
|
14843
15121
|
|
|
@@ -14845,7 +15123,7 @@ var SwitchInputDisabled = import_react92.css`
|
|
|
14845
15123
|
cursor: not-allowed;
|
|
14846
15124
|
}
|
|
14847
15125
|
`;
|
|
14848
|
-
var SwitchInputLabel =
|
|
15126
|
+
var SwitchInputLabel = import_react95.css`
|
|
14849
15127
|
align-items: center;
|
|
14850
15128
|
color: var(--brand-secondary-1);
|
|
14851
15129
|
display: inline-flex;
|
|
@@ -14867,103 +15145,103 @@ var SwitchInputLabel = import_react92.css`
|
|
|
14867
15145
|
top: 0;
|
|
14868
15146
|
}
|
|
14869
15147
|
`;
|
|
14870
|
-
var SwitchText =
|
|
15148
|
+
var SwitchText = import_react95.css`
|
|
14871
15149
|
color: var(--gray-500);
|
|
14872
15150
|
font-size: var(--fs-sm);
|
|
14873
15151
|
padding-inline: var(--spacing-2xl) 0;
|
|
14874
15152
|
`;
|
|
14875
15153
|
|
|
14876
15154
|
// src/components/Switch/Switch.tsx
|
|
14877
|
-
var
|
|
14878
|
-
var Switch =
|
|
15155
|
+
var import_jsx_runtime87 = require("@emotion/react/jsx-runtime");
|
|
15156
|
+
var Switch = React18.forwardRef(
|
|
14879
15157
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
14880
15158
|
let additionalText = infoText;
|
|
14881
15159
|
if (infoText && toggleText) {
|
|
14882
15160
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
14883
15161
|
}
|
|
14884
|
-
return /* @__PURE__ */ (0,
|
|
14885
|
-
/* @__PURE__ */ (0,
|
|
14886
|
-
/* @__PURE__ */ (0,
|
|
14887
|
-
/* @__PURE__ */ (0,
|
|
15162
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
|
|
15163
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
15164
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
15165
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { css: SwitchInputLabel, children: label })
|
|
14888
15166
|
] }),
|
|
14889
|
-
additionalText ? /* @__PURE__ */ (0,
|
|
15167
|
+
additionalText ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { css: SwitchText, children: additionalText }) : null,
|
|
14890
15168
|
children
|
|
14891
15169
|
] });
|
|
14892
15170
|
}
|
|
14893
15171
|
);
|
|
14894
15172
|
|
|
14895
15173
|
// src/components/Table/Table.tsx
|
|
14896
|
-
var
|
|
15174
|
+
var React19 = __toESM(require("react"));
|
|
14897
15175
|
|
|
14898
15176
|
// src/components/Table/Table.styles.ts
|
|
14899
|
-
var
|
|
14900
|
-
var table =
|
|
15177
|
+
var import_react96 = require("@emotion/react");
|
|
15178
|
+
var table = import_react96.css`
|
|
14901
15179
|
border-bottom: 1px solid var(--gray-400);
|
|
14902
15180
|
border-collapse: collapse;
|
|
14903
15181
|
min-width: 100%;
|
|
14904
15182
|
table-layout: auto;
|
|
14905
15183
|
`;
|
|
14906
|
-
var tableHead =
|
|
15184
|
+
var tableHead = import_react96.css`
|
|
14907
15185
|
background: var(--gray-100);
|
|
14908
15186
|
color: var(--brand-secondary-1);
|
|
14909
15187
|
text-align: left;
|
|
14910
15188
|
`;
|
|
14911
|
-
var tableRow =
|
|
15189
|
+
var tableRow = import_react96.css`
|
|
14912
15190
|
border-bottom: 1px solid var(--gray-200);
|
|
14913
15191
|
`;
|
|
14914
|
-
var tableCellHead =
|
|
15192
|
+
var tableCellHead = import_react96.css`
|
|
14915
15193
|
font-size: var(--fs-sm);
|
|
14916
15194
|
padding: var(--spacing-base) var(--spacing-md);
|
|
14917
15195
|
text-transform: uppercase;
|
|
14918
15196
|
font-weight: var(--fw-bold);
|
|
14919
15197
|
`;
|
|
14920
|
-
var tableCellData =
|
|
15198
|
+
var tableCellData = import_react96.css`
|
|
14921
15199
|
padding: var(--spacing-base) var(--spacing-md);
|
|
14922
15200
|
`;
|
|
14923
15201
|
|
|
14924
15202
|
// src/components/Table/Table.tsx
|
|
14925
|
-
var
|
|
14926
|
-
var Table =
|
|
14927
|
-
return /* @__PURE__ */ (0,
|
|
15203
|
+
var import_jsx_runtime88 = require("@emotion/react/jsx-runtime");
|
|
15204
|
+
var Table = React19.forwardRef(({ children, ...otherProps }, ref) => {
|
|
15205
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("table", { ref, css: table, ...otherProps, children });
|
|
14928
15206
|
});
|
|
14929
|
-
var TableHead =
|
|
15207
|
+
var TableHead = React19.forwardRef(
|
|
14930
15208
|
({ children, ...otherProps }, ref) => {
|
|
14931
|
-
return /* @__PURE__ */ (0,
|
|
15209
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
|
|
14932
15210
|
}
|
|
14933
15211
|
);
|
|
14934
|
-
var TableBody =
|
|
15212
|
+
var TableBody = React19.forwardRef(
|
|
14935
15213
|
({ children, ...otherProps }, ref) => {
|
|
14936
|
-
return /* @__PURE__ */ (0,
|
|
15214
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("tbody", { ref, ...otherProps, children });
|
|
14937
15215
|
}
|
|
14938
15216
|
);
|
|
14939
|
-
var TableFoot =
|
|
15217
|
+
var TableFoot = React19.forwardRef(
|
|
14940
15218
|
({ children, ...otherProps }, ref) => {
|
|
14941
|
-
return /* @__PURE__ */ (0,
|
|
15219
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("tfoot", { ref, ...otherProps, children });
|
|
14942
15220
|
}
|
|
14943
15221
|
);
|
|
14944
|
-
var TableRow =
|
|
15222
|
+
var TableRow = React19.forwardRef(
|
|
14945
15223
|
({ children, ...otherProps }, ref) => {
|
|
14946
|
-
return /* @__PURE__ */ (0,
|
|
15224
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
|
|
14947
15225
|
}
|
|
14948
15226
|
);
|
|
14949
|
-
var TableCellHead =
|
|
15227
|
+
var TableCellHead = React19.forwardRef(
|
|
14950
15228
|
({ children, ...otherProps }, ref) => {
|
|
14951
|
-
return /* @__PURE__ */ (0,
|
|
15229
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
14952
15230
|
}
|
|
14953
15231
|
);
|
|
14954
|
-
var TableCellData =
|
|
15232
|
+
var TableCellData = React19.forwardRef(
|
|
14955
15233
|
({ children, ...otherProps }, ref) => {
|
|
14956
|
-
return /* @__PURE__ */ (0,
|
|
15234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("td", { ref, css: tableCellData, ...otherProps, children });
|
|
14957
15235
|
}
|
|
14958
15236
|
);
|
|
14959
15237
|
|
|
14960
15238
|
// src/components/Tabs/Tabs.tsx
|
|
14961
|
-
var
|
|
15239
|
+
var import_react98 = require("react");
|
|
14962
15240
|
var import_Tab = require("reakit/Tab");
|
|
14963
15241
|
|
|
14964
15242
|
// src/components/Tabs/Tabs.styles.ts
|
|
14965
|
-
var
|
|
14966
|
-
var tabButtonStyles =
|
|
15243
|
+
var import_react97 = require("@emotion/react");
|
|
15244
|
+
var tabButtonStyles = import_react97.css`
|
|
14967
15245
|
align-items: center;
|
|
14968
15246
|
border: 0;
|
|
14969
15247
|
height: 2.5rem;
|
|
@@ -14980,30 +15258,30 @@ var tabButtonStyles = import_react94.css`
|
|
|
14980
15258
|
-webkit-text-stroke-width: thin;
|
|
14981
15259
|
}
|
|
14982
15260
|
`;
|
|
14983
|
-
var tabButtonGroupStyles =
|
|
15261
|
+
var tabButtonGroupStyles = import_react97.css`
|
|
14984
15262
|
display: flex;
|
|
14985
15263
|
gap: var(--spacing-base);
|
|
14986
15264
|
border-bottom: 1px solid var(--gray-300);
|
|
14987
15265
|
`;
|
|
14988
15266
|
|
|
14989
15267
|
// src/components/Tabs/Tabs.tsx
|
|
14990
|
-
var
|
|
14991
|
-
var CurrentTabContext = (0,
|
|
15268
|
+
var import_jsx_runtime89 = require("@emotion/react/jsx-runtime");
|
|
15269
|
+
var CurrentTabContext = (0, import_react98.createContext)(null);
|
|
14992
15270
|
var useCurrentTab = () => {
|
|
14993
|
-
const context = (0,
|
|
15271
|
+
const context = (0, import_react98.useContext)(CurrentTabContext);
|
|
14994
15272
|
if (!context) {
|
|
14995
15273
|
throw new Error("This component can only be used inside <Tabs>");
|
|
14996
15274
|
}
|
|
14997
15275
|
return context;
|
|
14998
15276
|
};
|
|
14999
15277
|
var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...props }) => {
|
|
15000
|
-
const selected = (0,
|
|
15278
|
+
const selected = (0, import_react98.useMemo)(() => {
|
|
15001
15279
|
if (selectedId)
|
|
15002
15280
|
return selectedId;
|
|
15003
15281
|
return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
|
|
15004
15282
|
}, [selectedId, useHashForState]);
|
|
15005
15283
|
const tab = (0, import_Tab.useTabState)({ ...props, selectedId: selected });
|
|
15006
|
-
(0,
|
|
15284
|
+
(0, import_react98.useEffect)(() => {
|
|
15007
15285
|
var _a;
|
|
15008
15286
|
const selectedValueWithoutNull = (_a = tab.selectedId) != null ? _a : void 0;
|
|
15009
15287
|
onSelectedIdChange == null ? void 0 : onSelectedIdChange(selectedValueWithoutNull);
|
|
@@ -15011,29 +15289,29 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
15011
15289
|
window.location.hash = selectedValueWithoutNull != null ? selectedValueWithoutNull : "";
|
|
15012
15290
|
}
|
|
15013
15291
|
}, [tab.selectedId, onSelectedIdChange, useHashForState]);
|
|
15014
|
-
(0,
|
|
15292
|
+
(0, import_react98.useEffect)(() => {
|
|
15015
15293
|
if (selected && selected !== tab.selectedId) {
|
|
15016
15294
|
tab.setSelectedId(selected);
|
|
15017
15295
|
}
|
|
15018
15296
|
}, [selected]);
|
|
15019
|
-
return /* @__PURE__ */ (0,
|
|
15297
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(CurrentTabContext.Provider, { value: tab, children });
|
|
15020
15298
|
};
|
|
15021
15299
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
15022
15300
|
const currentTab = useCurrentTab();
|
|
15023
|
-
return /* @__PURE__ */ (0,
|
|
15301
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_Tab.TabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
15024
15302
|
};
|
|
15025
15303
|
var TabButton = ({ children, id, ...props }) => {
|
|
15026
15304
|
const currentTab = useCurrentTab();
|
|
15027
|
-
return /* @__PURE__ */ (0,
|
|
15305
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_Tab.Tab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
15028
15306
|
};
|
|
15029
15307
|
var TabContent = ({ children, ...props }) => {
|
|
15030
15308
|
const currentTab = useCurrentTab();
|
|
15031
|
-
return /* @__PURE__ */ (0,
|
|
15309
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_Tab.TabPanel, { ...props, ...currentTab, children });
|
|
15032
15310
|
};
|
|
15033
15311
|
|
|
15034
15312
|
// src/components/Validation/StatusBullet.styles.ts
|
|
15035
|
-
var
|
|
15036
|
-
var StatusBulletContainer =
|
|
15313
|
+
var import_react99 = require("@emotion/react");
|
|
15314
|
+
var StatusBulletContainer = import_react99.css`
|
|
15037
15315
|
align-items: center;
|
|
15038
15316
|
align-self: center;
|
|
15039
15317
|
color: var(--gray-500);
|
|
@@ -15050,51 +15328,51 @@ var StatusBulletContainer = import_react96.css`
|
|
|
15050
15328
|
display: block;
|
|
15051
15329
|
}
|
|
15052
15330
|
`;
|
|
15053
|
-
var StatusBulletBase =
|
|
15331
|
+
var StatusBulletBase = import_react99.css`
|
|
15054
15332
|
font-size: var(--fs-sm);
|
|
15055
15333
|
&:before {
|
|
15056
15334
|
width: var(--fs-xs);
|
|
15057
15335
|
height: var(--fs-xs);
|
|
15058
15336
|
}
|
|
15059
15337
|
`;
|
|
15060
|
-
var StatusBulletSmall =
|
|
15338
|
+
var StatusBulletSmall = import_react99.css`
|
|
15061
15339
|
font-size: var(--fs-xs);
|
|
15062
15340
|
&:before {
|
|
15063
15341
|
width: var(--fs-xxs);
|
|
15064
15342
|
height: var(--fs-xxs);
|
|
15065
15343
|
}
|
|
15066
15344
|
`;
|
|
15067
|
-
var StatusDraft =
|
|
15345
|
+
var StatusDraft = import_react99.css`
|
|
15068
15346
|
&:before {
|
|
15069
15347
|
background: var(--white);
|
|
15070
15348
|
box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
|
|
15071
15349
|
}
|
|
15072
15350
|
`;
|
|
15073
|
-
var StatusModified =
|
|
15351
|
+
var StatusModified = import_react99.css`
|
|
15074
15352
|
&:before {
|
|
15075
15353
|
background: linear-gradient(to right, var(--white) 50%, var(--brand-primary-1) 50% 100%);
|
|
15076
15354
|
box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
|
|
15077
15355
|
}
|
|
15078
15356
|
`;
|
|
15079
|
-
var StatusError =
|
|
15357
|
+
var StatusError = import_react99.css`
|
|
15080
15358
|
color: var(--error);
|
|
15081
15359
|
&:before {
|
|
15082
15360
|
background: linear-gradient(120deg, var(--error) 40%, var(--white) 50%, var(--error) 60%);
|
|
15083
15361
|
}
|
|
15084
15362
|
`;
|
|
15085
|
-
var StatusPublished =
|
|
15363
|
+
var StatusPublished = import_react99.css`
|
|
15086
15364
|
&:before {
|
|
15087
15365
|
background: var(--brand-secondary-3);
|
|
15088
15366
|
}
|
|
15089
15367
|
`;
|
|
15090
|
-
var StatusOrphan =
|
|
15368
|
+
var StatusOrphan = import_react99.css`
|
|
15091
15369
|
&:before {
|
|
15092
15370
|
background: var(--brand-secondary-5);
|
|
15093
15371
|
}
|
|
15094
15372
|
`;
|
|
15095
15373
|
|
|
15096
15374
|
// src/components/Validation/StatusBullet.tsx
|
|
15097
|
-
var
|
|
15375
|
+
var import_jsx_runtime90 = require("@emotion/react/jsx-runtime");
|
|
15098
15376
|
var StatusBullet = ({
|
|
15099
15377
|
status,
|
|
15100
15378
|
hideText = false,
|
|
@@ -15111,7 +15389,7 @@ var StatusBullet = ({
|
|
|
15111
15389
|
Draft: StatusDraft
|
|
15112
15390
|
};
|
|
15113
15391
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
15114
|
-
return /* @__PURE__ */ (0,
|
|
15392
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
15115
15393
|
"span",
|
|
15116
15394
|
{
|
|
15117
15395
|
role: "status",
|
|
@@ -15128,6 +15406,7 @@ var StatusBullet = ({
|
|
|
15128
15406
|
AddListButton,
|
|
15129
15407
|
AnimationFile,
|
|
15130
15408
|
Badge,
|
|
15409
|
+
Banner,
|
|
15131
15410
|
Button,
|
|
15132
15411
|
ButtonWithMenu,
|
|
15133
15412
|
Callout,
|
|
@@ -15211,6 +15490,7 @@ var StatusBullet = ({
|
|
|
15211
15490
|
ScrollableList,
|
|
15212
15491
|
ScrollableListInputItem,
|
|
15213
15492
|
ScrollableListItem,
|
|
15493
|
+
SegmentedControl,
|
|
15214
15494
|
ShortcutContext,
|
|
15215
15495
|
ShortcutRevealer,
|
|
15216
15496
|
Skeleton,
|
|
@@ -15235,6 +15515,7 @@ var StatusBullet = ({
|
|
|
15235
15515
|
UniformLogo,
|
|
15236
15516
|
VerticalRhythm,
|
|
15237
15517
|
WarningMessage,
|
|
15518
|
+
borderTopIcon,
|
|
15238
15519
|
breakpoints,
|
|
15239
15520
|
button,
|
|
15240
15521
|
buttonGhost,
|
|
@@ -15245,6 +15526,9 @@ var StatusBullet = ({
|
|
|
15245
15526
|
buttonSecondaryInvert,
|
|
15246
15527
|
buttonTertiary,
|
|
15247
15528
|
buttonUnimportant,
|
|
15529
|
+
canvasAlertIcon,
|
|
15530
|
+
cardIcon,
|
|
15531
|
+
customIcons,
|
|
15248
15532
|
extractParameterProps,
|
|
15249
15533
|
fadeIn,
|
|
15250
15534
|
fadeInBottom,
|
|
@@ -15252,7 +15536,10 @@ var StatusBullet = ({
|
|
|
15252
15536
|
fadeInRtl,
|
|
15253
15537
|
fadeInTop,
|
|
15254
15538
|
fadeOutBottom,
|
|
15539
|
+
fullWidthScreenIcon,
|
|
15255
15540
|
growSubtle,
|
|
15541
|
+
imageTextIcon,
|
|
15542
|
+
infoFilledIcon,
|
|
15256
15543
|
input,
|
|
15257
15544
|
inputError,
|
|
15258
15545
|
inputSelect,
|
|
@@ -15261,11 +15548,15 @@ var StatusBullet = ({
|
|
|
15261
15548
|
loaderAnimationData,
|
|
15262
15549
|
macifyShortcut,
|
|
15263
15550
|
mq,
|
|
15551
|
+
numberInput,
|
|
15552
|
+
rectangleRoundedIcon,
|
|
15264
15553
|
ripple,
|
|
15265
15554
|
scrollbarStyles,
|
|
15266
15555
|
skeletonLoading,
|
|
15556
|
+
slideInTtb,
|
|
15267
15557
|
spinnerAnimationData,
|
|
15268
15558
|
supports,
|
|
15559
|
+
textInput,
|
|
15269
15560
|
useBreakpoint,
|
|
15270
15561
|
useCloseCurrentDrawer,
|
|
15271
15562
|
useCurrentDrawerRenderer,
|
|
@@ -15275,5 +15566,6 @@ var StatusBullet = ({
|
|
|
15275
15566
|
useMenuContext,
|
|
15276
15567
|
useOutsideClick,
|
|
15277
15568
|
useParameterShell,
|
|
15278
|
-
useShortcut
|
|
15569
|
+
useShortcut,
|
|
15570
|
+
warningIcon
|
|
15279
15571
|
});
|