@uniformdev/design-system 18.33.0 → 18.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +1058 -721
- package/dist/index.d.ts +108 -4
- package/dist/index.js +1164 -812
- package/package.json +2 -2
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,
|
|
@@ -57,6 +58,7 @@ __export(src_exports, {
|
|
|
57
58
|
HexModalBackground: () => HexModalBackground,
|
|
58
59
|
Icon: () => Icon,
|
|
59
60
|
IconsProvider: () => IconsProvider,
|
|
61
|
+
InfoMessage: () => InfoMessage,
|
|
60
62
|
InlineAlert: () => InlineAlert,
|
|
61
63
|
Input: () => Input,
|
|
62
64
|
InputComboBox: () => InputComboBox,
|
|
@@ -117,6 +119,7 @@ __export(src_exports, {
|
|
|
117
119
|
ScrollableList: () => ScrollableList,
|
|
118
120
|
ScrollableListInputItem: () => ScrollableListInputItem,
|
|
119
121
|
ScrollableListItem: () => ScrollableListItem,
|
|
122
|
+
SegmentedControl: () => SegmentedControl,
|
|
120
123
|
ShortcutContext: () => ShortcutContext,
|
|
121
124
|
ShortcutRevealer: () => ShortcutRevealer,
|
|
122
125
|
Skeleton: () => Skeleton,
|
|
@@ -141,6 +144,7 @@ __export(src_exports, {
|
|
|
141
144
|
UniformLogo: () => UniformLogo,
|
|
142
145
|
VerticalRhythm: () => VerticalRhythm,
|
|
143
146
|
WarningMessage: () => WarningMessage,
|
|
147
|
+
borderTopIcon: () => borderTopIcon,
|
|
144
148
|
breakpoints: () => breakpoints,
|
|
145
149
|
button: () => button,
|
|
146
150
|
buttonGhost: () => buttonGhost,
|
|
@@ -151,6 +155,9 @@ __export(src_exports, {
|
|
|
151
155
|
buttonSecondaryInvert: () => buttonSecondaryInvert,
|
|
152
156
|
buttonTertiary: () => buttonTertiary,
|
|
153
157
|
buttonUnimportant: () => buttonUnimportant,
|
|
158
|
+
canvasAlertIcon: () => canvasAlertIcon,
|
|
159
|
+
cardIcon: () => cardIcon,
|
|
160
|
+
customIcons: () => customIcons,
|
|
154
161
|
extractParameterProps: () => extractParameterProps,
|
|
155
162
|
fadeIn: () => fadeIn,
|
|
156
163
|
fadeInBottom: () => fadeInBottom,
|
|
@@ -158,7 +165,10 @@ __export(src_exports, {
|
|
|
158
165
|
fadeInRtl: () => fadeInRtl,
|
|
159
166
|
fadeInTop: () => fadeInTop,
|
|
160
167
|
fadeOutBottom: () => fadeOutBottom,
|
|
168
|
+
fullWidthScreenIcon: () => fullWidthScreenIcon,
|
|
161
169
|
growSubtle: () => growSubtle,
|
|
170
|
+
imageTextIcon: () => imageTextIcon,
|
|
171
|
+
infoFilledIcon: () => infoFilledIcon,
|
|
162
172
|
input: () => input,
|
|
163
173
|
inputError: () => inputError,
|
|
164
174
|
inputSelect: () => inputSelect,
|
|
@@ -167,11 +177,15 @@ __export(src_exports, {
|
|
|
167
177
|
loaderAnimationData: () => loader_default,
|
|
168
178
|
macifyShortcut: () => macifyShortcut,
|
|
169
179
|
mq: () => mq,
|
|
180
|
+
numberInput: () => numberInput,
|
|
181
|
+
rectangleRoundedIcon: () => rectangleRoundedIcon,
|
|
170
182
|
ripple: () => ripple,
|
|
171
183
|
scrollbarStyles: () => scrollbarStyles,
|
|
172
184
|
skeletonLoading: () => skeletonLoading,
|
|
185
|
+
slideInTtb: () => slideInTtb,
|
|
173
186
|
spinnerAnimationData: () => spinner_default,
|
|
174
187
|
supports: () => supports,
|
|
188
|
+
textInput: () => textInput,
|
|
175
189
|
useBreakpoint: () => useBreakpoint,
|
|
176
190
|
useCloseCurrentDrawer: () => useCloseCurrentDrawer,
|
|
177
191
|
useCurrentDrawerRenderer: () => useCurrentDrawerRenderer,
|
|
@@ -181,7 +195,8 @@ __export(src_exports, {
|
|
|
181
195
|
useMenuContext: () => useMenuContext,
|
|
182
196
|
useOutsideClick: () => useOutsideClick,
|
|
183
197
|
useParameterShell: () => useParameterShell,
|
|
184
|
-
useShortcut: () => useShortcut
|
|
198
|
+
useShortcut: () => useShortcut,
|
|
199
|
+
warningIcon: () => warningIcon
|
|
185
200
|
});
|
|
186
201
|
module.exports = __toCommonJS(src_exports);
|
|
187
202
|
|
|
@@ -697,9 +712,10 @@ var textarea = import_react4.css`
|
|
|
697
712
|
`;
|
|
698
713
|
var inputSelectCompact = import_react4.css`
|
|
699
714
|
font-size: var(--fs-xs);
|
|
700
|
-
padding: var(--spacing-
|
|
715
|
+
padding: var(--spacing-2xs) var(--spacing-md) var(--spacing-2xs) var(--spacing-xs);
|
|
701
716
|
border-color: var(--gray-300);
|
|
702
717
|
background-position: right var(--spacing-xs) center;
|
|
718
|
+
border-radius: var(--rounded-base);
|
|
703
719
|
`;
|
|
704
720
|
|
|
705
721
|
// src/styles/Animations.styles.ts
|
|
@@ -785,6 +801,14 @@ to {
|
|
|
785
801
|
transform: translateX(0);
|
|
786
802
|
}
|
|
787
803
|
`;
|
|
804
|
+
var slideInTtb = import_react5.keyframes`
|
|
805
|
+
from {
|
|
806
|
+
transform: translateY(-100%);
|
|
807
|
+
}
|
|
808
|
+
to {
|
|
809
|
+
transform: translateY(0);
|
|
810
|
+
}
|
|
811
|
+
`;
|
|
788
812
|
|
|
789
813
|
// src/styles/Scrollbar.styles.ts
|
|
790
814
|
var import_react6 = require("@emotion/react");
|
|
@@ -1030,40 +1054,6 @@ var AddButton = ({
|
|
|
1030
1054
|
// src/components/AddListButton/AddListButton.tsx
|
|
1031
1055
|
var import_cg = require("react-icons/cg");
|
|
1032
1056
|
|
|
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
1057
|
// src/components/Icons/customIcons.tsx
|
|
1068
1058
|
var import_react_icons = require("react-icons");
|
|
1069
1059
|
var rectangleRoundedIcon = (0, import_react_icons.GenIcon)({
|
|
@@ -1376,7 +1366,39 @@ var customIcons = {
|
|
|
1376
1366
|
"info-filled": infoFilledIcon
|
|
1377
1367
|
};
|
|
1378
1368
|
|
|
1369
|
+
// src/components/Icons/Icon.tsx
|
|
1370
|
+
var import_react13 = __toESM(require("react"));
|
|
1371
|
+
|
|
1372
|
+
// src/components/Icons/Icon.styles.ts
|
|
1373
|
+
var import_react11 = require("@emotion/react");
|
|
1374
|
+
var IconImg = import_react11.css`
|
|
1375
|
+
display: hidden;
|
|
1376
|
+
|
|
1377
|
+
${mq("sm")} {
|
|
1378
|
+
display: block;
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
& svg {
|
|
1382
|
+
display: block;
|
|
1383
|
+
vertical-align: middle;
|
|
1384
|
+
}
|
|
1385
|
+
`;
|
|
1386
|
+
var IconColorGreen = import_react11.css`
|
|
1387
|
+
color: var(--brand-secondary-3);
|
|
1388
|
+
`;
|
|
1389
|
+
var IconColorRed = import_react11.css`
|
|
1390
|
+
color: var(--brand-secondary-5);
|
|
1391
|
+
`;
|
|
1392
|
+
var IconColorGray = import_react11.css`
|
|
1393
|
+
color: var(--gray-500);
|
|
1394
|
+
`;
|
|
1395
|
+
var IconColorCurrent = import_react11.css`
|
|
1396
|
+
color: currentColor;
|
|
1397
|
+
`;
|
|
1398
|
+
|
|
1379
1399
|
// src/components/Icons/IconsProvider.tsx
|
|
1400
|
+
var import_param_case = require("param-case");
|
|
1401
|
+
var import_react12 = require("react");
|
|
1380
1402
|
var import_jsx_runtime4 = require("@emotion/react/jsx-runtime");
|
|
1381
1403
|
var IconContext = (0, import_react12.createContext)({
|
|
1382
1404
|
/** object mapping of available icons */
|
|
@@ -10480,27 +10502,149 @@ var AnimationFile = ({
|
|
|
10480
10502
|
);
|
|
10481
10503
|
};
|
|
10482
10504
|
|
|
10483
|
-
// src/components/
|
|
10505
|
+
// src/components/Banner/Banner.tsx
|
|
10506
|
+
var import_cg5 = require("react-icons/cg");
|
|
10507
|
+
|
|
10508
|
+
// src/components/Banner/Banner.styles.ts
|
|
10509
|
+
var import_react24 = require("@emotion/react");
|
|
10510
|
+
|
|
10511
|
+
// src/styles/functionalColors.styles.ts
|
|
10484
10512
|
var import_react23 = require("@emotion/react");
|
|
10485
|
-
var
|
|
10513
|
+
var functionalColors = import_react23.css`
|
|
10514
|
+
--caution-desc: rgb(161, 98, 7);
|
|
10515
|
+
--caution-icon: rgb(250, 204, 21);
|
|
10516
|
+
--caution-title: rgb(133, 77, 14);
|
|
10517
|
+
--caution-container: rgb(254, 252, 232);
|
|
10518
|
+
|
|
10519
|
+
--danger-desc: rgb(185, 28, 28);
|
|
10520
|
+
--danger-icon: rgb(248, 113, 113);
|
|
10521
|
+
--danger-title: rgb(153, 27, 27);
|
|
10522
|
+
--danger-container: rgb(254, 242, 242);
|
|
10523
|
+
|
|
10524
|
+
--info-desc: rgb(29, 78, 216);
|
|
10525
|
+
--info-icon: rgb(96, 165, 250);
|
|
10526
|
+
--info-title: rgb(30, 64, 175);
|
|
10527
|
+
--info-container: rgb(239, 246, 255);
|
|
10528
|
+
|
|
10529
|
+
--note-desc: var(--gray-700);
|
|
10530
|
+
--note-icon: var(--gray-400);
|
|
10531
|
+
--note-title: var(--gray-800);
|
|
10532
|
+
--note-container: var(--gray-50);
|
|
10533
|
+
|
|
10534
|
+
--success-desc: rgb(21, 128, 61);
|
|
10535
|
+
--success-icon: rgb(74, 222, 128);
|
|
10536
|
+
--success-title: rgb(22, 101, 52);
|
|
10537
|
+
--success-container: rgb(240, 253, 250);
|
|
10538
|
+
`;
|
|
10539
|
+
|
|
10540
|
+
// src/components/Banner/Banner.styles.ts
|
|
10541
|
+
var bannerStyles = import_react24.css`
|
|
10542
|
+
${functionalColors}
|
|
10543
|
+
|
|
10544
|
+
--border-color: var(--info-icon);
|
|
10545
|
+
--background-color: var(--info-container);
|
|
10546
|
+
|
|
10547
|
+
display: flex;
|
|
10548
|
+
gap: var(--spacing-sm);
|
|
10549
|
+
justify-content: space-between;
|
|
10550
|
+
color: var(--brand-secondary-1);
|
|
10551
|
+
border-bottom: 1px solid var(--border-color);
|
|
10552
|
+
background-color: var(--background-color);
|
|
10553
|
+
padding: var(--spacing-sm);
|
|
10554
|
+
|
|
10555
|
+
&[data-type='caution'] {
|
|
10556
|
+
--border-color: var(--caution-icon);
|
|
10557
|
+
--background-color: var(--caution-container);
|
|
10558
|
+
}
|
|
10559
|
+
|
|
10560
|
+
&[data-type='danger'] {
|
|
10561
|
+
--border-color: var(--danger-icon);
|
|
10562
|
+
--background-color: var(--danger-container);
|
|
10563
|
+
}
|
|
10564
|
+
|
|
10565
|
+
&[data-type='note'] {
|
|
10566
|
+
--border-color: var(--note-icon);
|
|
10567
|
+
--background-color: var(--note-container);
|
|
10568
|
+
}
|
|
10569
|
+
|
|
10570
|
+
&[data-type='success'] {
|
|
10571
|
+
--border-color: var(--success-icon);
|
|
10572
|
+
--background-color: var(--success-container);
|
|
10573
|
+
}
|
|
10574
|
+
`;
|
|
10575
|
+
var bannerAnimatedStyles = import_react24.css`
|
|
10576
|
+
animation: ${slideInTtb} var(--duration-xfast) ease-out;
|
|
10577
|
+
`;
|
|
10578
|
+
var bannerContentStyles = import_react24.css``;
|
|
10579
|
+
var bannerDismissButtonStyles = import_react24.css`
|
|
10580
|
+
display: flex;
|
|
10581
|
+
align-items: center;
|
|
10582
|
+
justify-content: center;
|
|
10583
|
+
position: relative;
|
|
10584
|
+
padding: var(--spacing-xs);
|
|
10585
|
+
background: transparent;
|
|
10586
|
+
border: 0;
|
|
10587
|
+
border-radius: var(--rounded-base);
|
|
10588
|
+
z-index: 1;
|
|
10589
|
+
overflow: hidden;
|
|
10590
|
+
|
|
10591
|
+
&::before {
|
|
10592
|
+
content: '';
|
|
10593
|
+
display: block;
|
|
10594
|
+
position: absolute;
|
|
10595
|
+
inset: 0;
|
|
10596
|
+
background-color: var(--gray-200);
|
|
10597
|
+
z-index: -1;
|
|
10598
|
+
opacity: 0;
|
|
10599
|
+
transition: opacity var(--duration-xfast) ease-in-out;
|
|
10600
|
+
}
|
|
10601
|
+
|
|
10602
|
+
&:hover {
|
|
10603
|
+
&::before {
|
|
10604
|
+
opacity: 0.5;
|
|
10605
|
+
}
|
|
10606
|
+
}
|
|
10607
|
+
`;
|
|
10608
|
+
|
|
10609
|
+
// src/components/Banner/Banner.tsx
|
|
10610
|
+
var import_jsx_runtime15 = require("@emotion/react/jsx-runtime");
|
|
10611
|
+
var Banner = ({ type = "note", onDismiss, children, isAnimated = false, ...props }) => {
|
|
10612
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
10613
|
+
"div",
|
|
10614
|
+
{
|
|
10615
|
+
role: "banner",
|
|
10616
|
+
css: [bannerStyles, isAnimated ? bannerAnimatedStyles : void 0],
|
|
10617
|
+
"data-type": type,
|
|
10618
|
+
...props,
|
|
10619
|
+
children: [
|
|
10620
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { css: bannerContentStyles, children }),
|
|
10621
|
+
!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, {}) })
|
|
10622
|
+
]
|
|
10623
|
+
}
|
|
10624
|
+
);
|
|
10625
|
+
};
|
|
10626
|
+
|
|
10627
|
+
// src/components/Brand/UniformLogo.styles.ts
|
|
10628
|
+
var import_react25 = require("@emotion/react");
|
|
10629
|
+
var SVG = import_react25.css`
|
|
10486
10630
|
display: block;
|
|
10487
10631
|
`;
|
|
10488
|
-
var SVGLight =
|
|
10632
|
+
var SVGLight = import_react25.css`
|
|
10489
10633
|
background: transparent;
|
|
10490
10634
|
color: var(--brand-secondary-1);
|
|
10491
10635
|
`;
|
|
10492
|
-
var SVGDark =
|
|
10636
|
+
var SVGDark = import_react25.css`
|
|
10493
10637
|
background: var(--brand-secondary-1);
|
|
10494
10638
|
color: var(--white);
|
|
10495
10639
|
`;
|
|
10496
10640
|
|
|
10497
10641
|
// src/components/Brand/UniformBadge.tsx
|
|
10498
|
-
var
|
|
10642
|
+
var import_jsx_runtime16 = require("@emotion/react/jsx-runtime");
|
|
10499
10643
|
var UniformBadge = ({
|
|
10500
10644
|
theme = "light",
|
|
10501
10645
|
...props
|
|
10502
10646
|
}) => {
|
|
10503
|
-
return /* @__PURE__ */ (0,
|
|
10647
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
10504
10648
|
"svg",
|
|
10505
10649
|
{
|
|
10506
10650
|
width: "38",
|
|
@@ -10512,15 +10656,15 @@ var UniformBadge = ({
|
|
|
10512
10656
|
css: [SVG, theme === "dark" ? SVGDark : SVGLight],
|
|
10513
10657
|
...props,
|
|
10514
10658
|
children: [
|
|
10515
|
-
/* @__PURE__ */ (0,
|
|
10516
|
-
/* @__PURE__ */ (0,
|
|
10659
|
+
/* @__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" }),
|
|
10660
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
10517
10661
|
"path",
|
|
10518
10662
|
{
|
|
10519
10663
|
d: "M28.998 66.974V33.487L0 50.231v33.487l28.998 16.744 29.004-16.744V50.23L28.998 66.974Z",
|
|
10520
10664
|
fill: "#498DFF"
|
|
10521
10665
|
}
|
|
10522
10666
|
),
|
|
10523
|
-
/* @__PURE__ */ (0,
|
|
10667
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
10524
10668
|
"path",
|
|
10525
10669
|
{
|
|
10526
10670
|
d: "M58.002 16.744 28.998 33.487l29.004 16.744v33.487L87 66.975V33.487L58.002 16.744Z",
|
|
@@ -10533,12 +10677,12 @@ var UniformBadge = ({
|
|
|
10533
10677
|
};
|
|
10534
10678
|
|
|
10535
10679
|
// src/components/Brand/UniformLogo.tsx
|
|
10536
|
-
var
|
|
10680
|
+
var import_jsx_runtime17 = require("@emotion/react/jsx-runtime");
|
|
10537
10681
|
var UniformLogo = ({
|
|
10538
10682
|
theme = "light",
|
|
10539
10683
|
...props
|
|
10540
10684
|
}) => {
|
|
10541
|
-
return /* @__PURE__ */ (0,
|
|
10685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { "data-test-id": "uniform-Logo", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
10542
10686
|
"svg",
|
|
10543
10687
|
{
|
|
10544
10688
|
width: "153",
|
|
@@ -10549,16 +10693,16 @@ var UniformLogo = ({
|
|
|
10549
10693
|
css: [SVG, theme === "dark" ? SVGDark : SVGLight],
|
|
10550
10694
|
...props,
|
|
10551
10695
|
children: [
|
|
10552
|
-
/* @__PURE__ */ (0,
|
|
10553
|
-
/* @__PURE__ */ (0,
|
|
10696
|
+
/* @__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" }),
|
|
10697
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
10554
10698
|
"path",
|
|
10555
10699
|
{
|
|
10556
10700
|
d: "M11.249 25.98V12.99L0 19.486v12.99l11.249 6.495L22.5 32.476v-12.99L11.25 25.98Z",
|
|
10557
10701
|
fill: "#498DFF"
|
|
10558
10702
|
}
|
|
10559
10703
|
),
|
|
10560
|
-
/* @__PURE__ */ (0,
|
|
10561
|
-
/* @__PURE__ */ (0,
|
|
10704
|
+
/* @__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" }),
|
|
10705
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
10562
10706
|
"path",
|
|
10563
10707
|
{
|
|
10564
10708
|
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 +10717,7 @@ var UniformLogo = ({
|
|
|
10573
10717
|
// src/components/Button/Button.tsx
|
|
10574
10718
|
var React5 = __toESM(require("react"));
|
|
10575
10719
|
var import_Button = require("reakit/Button");
|
|
10576
|
-
var
|
|
10720
|
+
var import_jsx_runtime18 = require("@emotion/react/jsx-runtime");
|
|
10577
10721
|
var Button = React5.forwardRef(
|
|
10578
10722
|
({ buttonType = "primary", size = "md", children, ...props }, ref) => {
|
|
10579
10723
|
const buttonTheme = {
|
|
@@ -10593,12 +10737,12 @@ var Button = React5.forwardRef(
|
|
|
10593
10737
|
lg: "padding: var(--spacing-sm) var(--spacing-base)",
|
|
10594
10738
|
xl: "padding: 0.75rem var(--spacing-md)"
|
|
10595
10739
|
};
|
|
10596
|
-
return /* @__PURE__ */ (0,
|
|
10740
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_Button.Button, { ref, css: [button, buttonTheme[buttonType], btnSize[size]], ...props, children });
|
|
10597
10741
|
}
|
|
10598
10742
|
);
|
|
10599
10743
|
|
|
10600
10744
|
// src/components/ButtonWithMenu/ButtonWithMenu.tsx
|
|
10601
|
-
var
|
|
10745
|
+
var import_cg6 = require("react-icons/cg");
|
|
10602
10746
|
|
|
10603
10747
|
// src/components/Menu/Menu.tsx
|
|
10604
10748
|
var React6 = __toESM(require("react"));
|
|
@@ -10606,8 +10750,8 @@ var import_Menu = require("reakit/Menu");
|
|
|
10606
10750
|
var import_Portal = require("reakit/Portal");
|
|
10607
10751
|
|
|
10608
10752
|
// src/components/Menu/Menu.styles.ts
|
|
10609
|
-
var
|
|
10610
|
-
var menu =
|
|
10753
|
+
var import_react26 = require("@emotion/react");
|
|
10754
|
+
var menu = import_react26.css`
|
|
10611
10755
|
box-shadow: var(--shadow-base);
|
|
10612
10756
|
border-radius: var(--rounded-base);
|
|
10613
10757
|
background: var(--gray-50);
|
|
@@ -10621,7 +10765,7 @@ var menu = import_react24.css`
|
|
|
10621
10765
|
`;
|
|
10622
10766
|
|
|
10623
10767
|
// src/components/Menu/Menu.tsx
|
|
10624
|
-
var
|
|
10768
|
+
var import_jsx_runtime19 = require("@emotion/react/jsx-runtime");
|
|
10625
10769
|
var MenuContext = React6.createContext({});
|
|
10626
10770
|
var useMenuContext = () => {
|
|
10627
10771
|
return React6.useContext(MenuContext);
|
|
@@ -10634,9 +10778,9 @@ var Menu = ({
|
|
|
10634
10778
|
children
|
|
10635
10779
|
}) => {
|
|
10636
10780
|
const menuState = (0, import_Menu.useMenuState)({ placement });
|
|
10637
|
-
return /* @__PURE__ */ (0,
|
|
10638
|
-
/* @__PURE__ */ (0,
|
|
10639
|
-
/* @__PURE__ */ (0,
|
|
10781
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(MenuContext.Provider, { value: menuState, children: [
|
|
10782
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_Menu.MenuButton, { ...menuState, ref: menuTrigger.ref, ...menuTrigger.props, children: (triggerProps) => React6.cloneElement(menuTrigger, triggerProps) }),
|
|
10783
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_Portal.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
10640
10784
|
import_Menu.Menu,
|
|
10641
10785
|
{
|
|
10642
10786
|
...menuState,
|
|
@@ -10657,8 +10801,8 @@ var React7 = __toESM(require("react"));
|
|
|
10657
10801
|
var import_reakit = require("reakit");
|
|
10658
10802
|
|
|
10659
10803
|
// src/components/Menu/MenuItem.styles.ts
|
|
10660
|
-
var
|
|
10661
|
-
var menuItem = (textTheme) =>
|
|
10804
|
+
var import_react27 = require("@emotion/react");
|
|
10805
|
+
var menuItem = (textTheme) => import_react27.css`
|
|
10662
10806
|
align-items: center;
|
|
10663
10807
|
border: none;
|
|
10664
10808
|
border-radius: var(--rounded-base);
|
|
@@ -10684,7 +10828,7 @@ var menuItem = (textTheme) => import_react25.css`
|
|
|
10684
10828
|
outline: none;
|
|
10685
10829
|
}
|
|
10686
10830
|
`;
|
|
10687
|
-
var menuItemWithIcon =
|
|
10831
|
+
var menuItemWithIcon = import_react27.css`
|
|
10688
10832
|
align-items: center;
|
|
10689
10833
|
display: flex;
|
|
10690
10834
|
justify-content: space-between;
|
|
@@ -10696,14 +10840,14 @@ var menuItemWithIcon = import_react25.css`
|
|
|
10696
10840
|
height: var(--spacing-base);
|
|
10697
10841
|
}
|
|
10698
10842
|
`;
|
|
10699
|
-
var menuItemSeparator =
|
|
10843
|
+
var menuItemSeparator = import_react27.css`
|
|
10700
10844
|
border-top: 1px solid var(--gray-300);
|
|
10701
10845
|
width: 100%;
|
|
10702
10846
|
margin-block: var(--spacing-sm);
|
|
10703
10847
|
`;
|
|
10704
10848
|
|
|
10705
10849
|
// src/components/Menu/MenuItem.tsx
|
|
10706
|
-
var
|
|
10850
|
+
var import_jsx_runtime20 = require("@emotion/react/jsx-runtime");
|
|
10707
10851
|
var MenuItem = React7.forwardRef(
|
|
10708
10852
|
({ children, className, hideMenuOnClick = true, icon, textColor = "base", ...props }, ref) => {
|
|
10709
10853
|
const menuState = useMenuContext();
|
|
@@ -10720,7 +10864,7 @@ var MenuItem = React7.forwardRef(
|
|
|
10720
10864
|
};
|
|
10721
10865
|
const resolvedProps = hideMenuOnClick ? resolveProps(props) : props;
|
|
10722
10866
|
const resolvedChildren = typeof children === "function" ? children(resolvedProps) : children;
|
|
10723
|
-
return /* @__PURE__ */ (0,
|
|
10867
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
10724
10868
|
import_reakit.MenuItem,
|
|
10725
10869
|
{
|
|
10726
10870
|
ref,
|
|
@@ -10736,7 +10880,7 @@ var MenuItem = React7.forwardRef(
|
|
|
10736
10880
|
}
|
|
10737
10881
|
);
|
|
10738
10882
|
function renderWithIcon(children, icon) {
|
|
10739
|
-
return /* @__PURE__ */ (0,
|
|
10883
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("span", { css: menuItemWithIcon, children: [
|
|
10740
10884
|
icon,
|
|
10741
10885
|
" ",
|
|
10742
10886
|
children
|
|
@@ -10744,12 +10888,12 @@ function renderWithIcon(children, icon) {
|
|
|
10744
10888
|
}
|
|
10745
10889
|
|
|
10746
10890
|
// src/components/Menu/MenuItemSeparator.tsx
|
|
10747
|
-
var
|
|
10748
|
-
var MenuItemSeparator = () => /* @__PURE__ */ (0,
|
|
10891
|
+
var import_jsx_runtime21 = require("@emotion/react/jsx-runtime");
|
|
10892
|
+
var MenuItemSeparator = () => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("hr", { css: menuItemSeparator });
|
|
10749
10893
|
|
|
10750
10894
|
// src/components/ButtonWithMenu/ButtonWithMenu.styles.ts
|
|
10751
|
-
var
|
|
10752
|
-
var ButtonWithMenuContainer =
|
|
10895
|
+
var import_react28 = require("@emotion/react");
|
|
10896
|
+
var ButtonWithMenuContainer = import_react28.css`
|
|
10753
10897
|
align-items: center;
|
|
10754
10898
|
border: 1px solid transparent;
|
|
10755
10899
|
border-radius: var(--rounded-sm);
|
|
@@ -10770,7 +10914,7 @@ var ButtonWithMenuContainer = import_react26.css`
|
|
|
10770
10914
|
border-color: var(--gray-700);
|
|
10771
10915
|
}
|
|
10772
10916
|
`;
|
|
10773
|
-
var ButtonWithMenuBtn =
|
|
10917
|
+
var ButtonWithMenuBtn = import_react28.css`
|
|
10774
10918
|
border: 1px solid transparent;
|
|
10775
10919
|
background: transparent;
|
|
10776
10920
|
border-radius: var(--rounded-base);
|
|
@@ -10793,33 +10937,33 @@ var ButtonWithMenuBtn = import_react26.css`
|
|
|
10793
10937
|
pointer-events: none;
|
|
10794
10938
|
}
|
|
10795
10939
|
`;
|
|
10796
|
-
var ButtonWithMenuIcon =
|
|
10940
|
+
var ButtonWithMenuIcon = import_react28.css`
|
|
10797
10941
|
padding: var(--spacing-sm);
|
|
10798
10942
|
border-left: 1px solid currentColor;
|
|
10799
10943
|
`;
|
|
10800
|
-
var buttonPrimary2 =
|
|
10944
|
+
var buttonPrimary2 = import_react28.css`
|
|
10801
10945
|
background: var(--brand-secondary-1);
|
|
10802
10946
|
color: var(--white);
|
|
10803
10947
|
`;
|
|
10804
|
-
var buttonPrimaryDisabled =
|
|
10948
|
+
var buttonPrimaryDisabled = import_react28.css`
|
|
10805
10949
|
background: var(--gray-300);
|
|
10806
10950
|
color: var(--white);
|
|
10807
10951
|
`;
|
|
10808
|
-
var buttonSecondary2 =
|
|
10952
|
+
var buttonSecondary2 = import_react28.css`
|
|
10809
10953
|
background: var(--brand-secondary-5);
|
|
10810
10954
|
color: var(--white);
|
|
10811
10955
|
`;
|
|
10812
|
-
var buttonSecondaryDisabled =
|
|
10956
|
+
var buttonSecondaryDisabled = import_react28.css`
|
|
10813
10957
|
${buttonPrimaryDisabled}
|
|
10814
10958
|
`;
|
|
10815
|
-
var buttonUnimportant2 =
|
|
10959
|
+
var buttonUnimportant2 = import_react28.css`
|
|
10816
10960
|
background: var(--brand-secondary-2);
|
|
10817
10961
|
color: var(--brand-secondary-1);
|
|
10818
10962
|
`;
|
|
10819
|
-
var buttonUnimportantDisabled =
|
|
10963
|
+
var buttonUnimportantDisabled = import_react28.css`
|
|
10820
10964
|
${buttonPrimaryDisabled}
|
|
10821
10965
|
`;
|
|
10822
|
-
var buttonGhost2 =
|
|
10966
|
+
var buttonGhost2 = import_react28.css`
|
|
10823
10967
|
background: transparent;
|
|
10824
10968
|
color: var(--brand-secondary-3);
|
|
10825
10969
|
|
|
@@ -10827,13 +10971,13 @@ var buttonGhost2 = import_react26.css`
|
|
|
10827
10971
|
border-color: var(--brand-secondary-3);
|
|
10828
10972
|
}
|
|
10829
10973
|
`;
|
|
10830
|
-
var buttonGhostDisabled =
|
|
10974
|
+
var buttonGhostDisabled = import_react28.css`
|
|
10831
10975
|
border-color: var(--gray-400);
|
|
10832
10976
|
color: var(--gray-400);
|
|
10833
10977
|
`;
|
|
10834
10978
|
|
|
10835
10979
|
// src/components/ButtonWithMenu/ButtonWithMenu.tsx
|
|
10836
|
-
var
|
|
10980
|
+
var import_jsx_runtime22 = require("@emotion/react/jsx-runtime");
|
|
10837
10981
|
var ButtonWithMenu = ({
|
|
10838
10982
|
onButtonClick,
|
|
10839
10983
|
buttonType = "secondary",
|
|
@@ -10855,13 +10999,13 @@ var ButtonWithMenu = ({
|
|
|
10855
10999
|
ghost: buttonGhostDisabled,
|
|
10856
11000
|
unimportant: buttonUnimportantDisabled
|
|
10857
11001
|
};
|
|
10858
|
-
return /* @__PURE__ */ (0,
|
|
11002
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
10859
11003
|
"div",
|
|
10860
11004
|
{
|
|
10861
11005
|
css: [ButtonWithMenuContainer, disabled ? buttonDisabledTheme[buttonType] : buttonTheme[buttonType]],
|
|
10862
11006
|
"data-test-id": "multioptions-button",
|
|
10863
11007
|
children: [
|
|
10864
|
-
/* @__PURE__ */ (0,
|
|
11008
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
10865
11009
|
"button",
|
|
10866
11010
|
{
|
|
10867
11011
|
type: "button",
|
|
@@ -10873,12 +11017,12 @@ var ButtonWithMenu = ({
|
|
|
10873
11017
|
children: buttonText
|
|
10874
11018
|
}
|
|
10875
11019
|
),
|
|
10876
|
-
/* @__PURE__ */ (0,
|
|
11020
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
10877
11021
|
Menu,
|
|
10878
11022
|
{
|
|
10879
11023
|
menuLabel: "buttonMenu",
|
|
10880
11024
|
placement,
|
|
10881
|
-
menuTrigger: /* @__PURE__ */ (0,
|
|
11025
|
+
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
11026
|
children
|
|
10883
11027
|
}
|
|
10884
11028
|
)
|
|
@@ -10888,41 +11032,18 @@ var ButtonWithMenu = ({
|
|
|
10888
11032
|
};
|
|
10889
11033
|
|
|
10890
11034
|
// src/components/Callout/Callout.tsx
|
|
10891
|
-
var
|
|
11035
|
+
var import_react30 = require("@emotion/react");
|
|
10892
11036
|
|
|
10893
11037
|
// 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);
|
|
11038
|
+
var import_react29 = require("@emotion/react");
|
|
11039
|
+
var calloutContainer = import_react29.css`
|
|
11040
|
+
${functionalColors}
|
|
10920
11041
|
|
|
10921
11042
|
font-size: var(--fs-sm);
|
|
10922
11043
|
border-radius: var(--rounded-base);
|
|
10923
11044
|
padding: var(--spacing-base);
|
|
10924
11045
|
`;
|
|
10925
|
-
var calloutContainerCompact =
|
|
11046
|
+
var calloutContainerCompact = import_react29.css`
|
|
10926
11047
|
font-size: var(--fs-xs);
|
|
10927
11048
|
padding: var(--spacing-sm);
|
|
10928
11049
|
border-radius: 0 var(--rounded-base) var(--rounded-base) 0;
|
|
@@ -10934,32 +11055,32 @@ var calloutContainerCompact = import_react27.css`
|
|
|
10934
11055
|
--note-desc: var(--brand-secondary-1);
|
|
10935
11056
|
--success-desc: var(--brand-secondary-1);
|
|
10936
11057
|
`;
|
|
10937
|
-
var calloutInner =
|
|
11058
|
+
var calloutInner = import_react29.css`
|
|
10938
11059
|
display: flex;
|
|
10939
11060
|
gap: var(--spacing-sm);
|
|
10940
11061
|
`;
|
|
10941
|
-
var calloutBody =
|
|
11062
|
+
var calloutBody = import_react29.css`
|
|
10942
11063
|
display: flex;
|
|
10943
11064
|
flex-direction: column;
|
|
10944
11065
|
gap: var(--spacing-base);
|
|
10945
11066
|
`;
|
|
10946
|
-
var calloutBodyCompact =
|
|
11067
|
+
var calloutBodyCompact = import_react29.css`
|
|
10947
11068
|
gap: var(--spacing-xs);
|
|
10948
11069
|
`;
|
|
10949
|
-
var calloutIconWrap =
|
|
11070
|
+
var calloutIconWrap = import_react29.css`
|
|
10950
11071
|
flex-shrink: 0;
|
|
10951
11072
|
`;
|
|
10952
|
-
var calloutTitle =
|
|
11073
|
+
var calloutTitle = import_react29.css`
|
|
10953
11074
|
font-weight: var(--fw-bold);
|
|
10954
11075
|
`;
|
|
10955
|
-
var calloutIcon =
|
|
11076
|
+
var calloutIcon = import_react29.css`
|
|
10956
11077
|
width: 1.25rem;
|
|
10957
11078
|
height: 1.25rem;
|
|
10958
11079
|
`;
|
|
10959
11080
|
|
|
10960
11081
|
// src/components/Callout/CalloutIcons.tsx
|
|
10961
|
-
var
|
|
10962
|
-
var InfoIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
11082
|
+
var import_jsx_runtime23 = require("@emotion/react/jsx-runtime");
|
|
11083
|
+
var InfoIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
10963
11084
|
"svg",
|
|
10964
11085
|
{
|
|
10965
11086
|
role: "img",
|
|
@@ -10970,7 +11091,7 @@ var InfoIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
|
10970
11091
|
viewBox: "0 0 14 16",
|
|
10971
11092
|
fill: "currentColor",
|
|
10972
11093
|
...props,
|
|
10973
|
-
children: /* @__PURE__ */ (0,
|
|
11094
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
10974
11095
|
"path",
|
|
10975
11096
|
{
|
|
10976
11097
|
fillRule: "evenodd",
|
|
@@ -10979,7 +11100,7 @@ var InfoIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
|
10979
11100
|
)
|
|
10980
11101
|
}
|
|
10981
11102
|
);
|
|
10982
|
-
var DangerIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
11103
|
+
var DangerIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
10983
11104
|
"svg",
|
|
10984
11105
|
{
|
|
10985
11106
|
role: "img",
|
|
@@ -10990,7 +11111,7 @@ var DangerIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)
|
|
|
10990
11111
|
viewBox: "0 0 12 16",
|
|
10991
11112
|
fill: "currentColor",
|
|
10992
11113
|
...props,
|
|
10993
|
-
children: /* @__PURE__ */ (0,
|
|
11114
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
10994
11115
|
"path",
|
|
10995
11116
|
{
|
|
10996
11117
|
fillRule: "evenodd",
|
|
@@ -10999,7 +11120,7 @@ var DangerIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)
|
|
|
10999
11120
|
)
|
|
11000
11121
|
}
|
|
11001
11122
|
);
|
|
11002
|
-
var NoteIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
11123
|
+
var NoteIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
11003
11124
|
"svg",
|
|
11004
11125
|
{
|
|
11005
11126
|
role: "img",
|
|
@@ -11010,7 +11131,7 @@ var NoteIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
|
11010
11131
|
viewBox: "0 0 14 16",
|
|
11011
11132
|
fill: "currentColor",
|
|
11012
11133
|
...props,
|
|
11013
|
-
children: /* @__PURE__ */ (0,
|
|
11134
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
11014
11135
|
"path",
|
|
11015
11136
|
{
|
|
11016
11137
|
fillRule: "evenodd",
|
|
@@ -11019,7 +11140,7 @@ var NoteIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
|
11019
11140
|
)
|
|
11020
11141
|
}
|
|
11021
11142
|
);
|
|
11022
|
-
var TipIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
11143
|
+
var TipIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
11023
11144
|
"svg",
|
|
11024
11145
|
{
|
|
11025
11146
|
role: "img",
|
|
@@ -11030,7 +11151,7 @@ var TipIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
|
11030
11151
|
viewBox: "0 0 12 16",
|
|
11031
11152
|
fill: "currentColor",
|
|
11032
11153
|
...props,
|
|
11033
|
-
children: /* @__PURE__ */ (0,
|
|
11154
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
11034
11155
|
"path",
|
|
11035
11156
|
{
|
|
11036
11157
|
fillRule: "evenodd",
|
|
@@ -11039,7 +11160,7 @@ var TipIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
|
11039
11160
|
)
|
|
11040
11161
|
}
|
|
11041
11162
|
);
|
|
11042
|
-
var CautionIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
11163
|
+
var CautionIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
11043
11164
|
"svg",
|
|
11044
11165
|
{
|
|
11045
11166
|
role: "img",
|
|
@@ -11050,7 +11171,7 @@ var CautionIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx
|
|
|
11050
11171
|
viewBox: "0 0 16 16",
|
|
11051
11172
|
fill: "currentColor",
|
|
11052
11173
|
...props,
|
|
11053
|
-
children: /* @__PURE__ */ (0,
|
|
11174
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
11054
11175
|
"path",
|
|
11055
11176
|
{
|
|
11056
11177
|
fillRule: "evenodd",
|
|
@@ -11059,7 +11180,7 @@ var CautionIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx
|
|
|
11059
11180
|
)
|
|
11060
11181
|
}
|
|
11061
11182
|
);
|
|
11062
|
-
var SuccessIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
11183
|
+
var SuccessIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
11063
11184
|
"svg",
|
|
11064
11185
|
{
|
|
11065
11186
|
role: "img",
|
|
@@ -11070,7 +11191,7 @@ var SuccessIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx
|
|
|
11070
11191
|
fill: "currentColor",
|
|
11071
11192
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11072
11193
|
...props,
|
|
11073
|
-
children: /* @__PURE__ */ (0,
|
|
11194
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
11074
11195
|
"path",
|
|
11075
11196
|
{
|
|
11076
11197
|
fillRule: "evenodd",
|
|
@@ -11082,95 +11203,95 @@ var SuccessIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx
|
|
|
11082
11203
|
);
|
|
11083
11204
|
|
|
11084
11205
|
// src/components/Callout/Callout.tsx
|
|
11085
|
-
var
|
|
11206
|
+
var import_jsx_runtime24 = require("@emotion/react/jsx-runtime");
|
|
11086
11207
|
var calloutTypeDataMap = {
|
|
11087
11208
|
caution: {
|
|
11088
11209
|
icon: CautionIcon,
|
|
11089
|
-
descriptionColor:
|
|
11210
|
+
descriptionColor: import_react30.css`
|
|
11090
11211
|
color: var(--caution-desc);
|
|
11091
11212
|
`,
|
|
11092
|
-
iconColor:
|
|
11213
|
+
iconColor: import_react30.css`
|
|
11093
11214
|
color: var(--caution-icon);
|
|
11094
11215
|
`,
|
|
11095
|
-
containerStyles:
|
|
11216
|
+
containerStyles: import_react30.css`
|
|
11096
11217
|
color: var(--caution-title);
|
|
11097
11218
|
background-color: var(--caution-container);
|
|
11098
11219
|
`
|
|
11099
11220
|
},
|
|
11100
11221
|
danger: {
|
|
11101
11222
|
icon: DangerIcon,
|
|
11102
|
-
descriptionColor:
|
|
11223
|
+
descriptionColor: import_react30.css`
|
|
11103
11224
|
color: var(--danger-desc);
|
|
11104
11225
|
`,
|
|
11105
|
-
iconColor:
|
|
11226
|
+
iconColor: import_react30.css`
|
|
11106
11227
|
color: var(--danger-icon);
|
|
11107
11228
|
`,
|
|
11108
|
-
containerStyles:
|
|
11229
|
+
containerStyles: import_react30.css`
|
|
11109
11230
|
color: var(--danger-title);
|
|
11110
11231
|
background-color: var(--danger-container);
|
|
11111
11232
|
`
|
|
11112
11233
|
},
|
|
11113
11234
|
error: {
|
|
11114
11235
|
icon: CautionIcon,
|
|
11115
|
-
descriptionColor:
|
|
11236
|
+
descriptionColor: import_react30.css`
|
|
11116
11237
|
color: var(--danger-desc);
|
|
11117
11238
|
`,
|
|
11118
|
-
iconColor:
|
|
11239
|
+
iconColor: import_react30.css`
|
|
11119
11240
|
color: var(--danger-icon);
|
|
11120
11241
|
`,
|
|
11121
|
-
containerStyles:
|
|
11242
|
+
containerStyles: import_react30.css`
|
|
11122
11243
|
color: var(--danger-title);
|
|
11123
11244
|
background-color: var(--danger-container);
|
|
11124
11245
|
`
|
|
11125
11246
|
},
|
|
11126
11247
|
info: {
|
|
11127
11248
|
icon: InfoIcon,
|
|
11128
|
-
descriptionColor:
|
|
11249
|
+
descriptionColor: import_react30.css`
|
|
11129
11250
|
color: var(--info-desc);
|
|
11130
11251
|
`,
|
|
11131
|
-
iconColor:
|
|
11252
|
+
iconColor: import_react30.css`
|
|
11132
11253
|
color: var(--info-icon);
|
|
11133
11254
|
`,
|
|
11134
|
-
containerStyles:
|
|
11255
|
+
containerStyles: import_react30.css`
|
|
11135
11256
|
color: var(--info-title);
|
|
11136
11257
|
background-color: var(--info-container);
|
|
11137
11258
|
`
|
|
11138
11259
|
},
|
|
11139
11260
|
note: {
|
|
11140
11261
|
icon: NoteIcon,
|
|
11141
|
-
descriptionColor:
|
|
11262
|
+
descriptionColor: import_react30.css`
|
|
11142
11263
|
color: var(--note-desc);
|
|
11143
11264
|
`,
|
|
11144
|
-
iconColor:
|
|
11265
|
+
iconColor: import_react30.css`
|
|
11145
11266
|
color: var(--note-icon);
|
|
11146
11267
|
`,
|
|
11147
|
-
containerStyles:
|
|
11268
|
+
containerStyles: import_react30.css`
|
|
11148
11269
|
color: var(--note-title);
|
|
11149
11270
|
background-color: var(--note-container);
|
|
11150
11271
|
`
|
|
11151
11272
|
},
|
|
11152
11273
|
success: {
|
|
11153
11274
|
icon: SuccessIcon,
|
|
11154
|
-
descriptionColor:
|
|
11275
|
+
descriptionColor: import_react30.css`
|
|
11155
11276
|
color: var(--success-desc);
|
|
11156
11277
|
`,
|
|
11157
|
-
iconColor:
|
|
11278
|
+
iconColor: import_react30.css`
|
|
11158
11279
|
color: var(--success-icon);
|
|
11159
11280
|
`,
|
|
11160
|
-
containerStyles:
|
|
11281
|
+
containerStyles: import_react30.css`
|
|
11161
11282
|
color: var(--success-title);
|
|
11162
11283
|
background-color: var(--success-container);
|
|
11163
11284
|
`
|
|
11164
11285
|
},
|
|
11165
11286
|
tip: {
|
|
11166
11287
|
icon: TipIcon,
|
|
11167
|
-
descriptionColor:
|
|
11288
|
+
descriptionColor: import_react30.css`
|
|
11168
11289
|
color: var(--success-desc);
|
|
11169
11290
|
`,
|
|
11170
|
-
iconColor:
|
|
11291
|
+
iconColor: import_react30.css`
|
|
11171
11292
|
color: var(--success-icon);
|
|
11172
11293
|
`,
|
|
11173
|
-
containerStyles:
|
|
11294
|
+
containerStyles: import_react30.css`
|
|
11174
11295
|
color: var(--success-title);
|
|
11175
11296
|
background-color: var(--success-container);
|
|
11176
11297
|
`
|
|
@@ -11182,7 +11303,7 @@ var Callout = ({ type = "info", compact = false, title, children, className }) =
|
|
|
11182
11303
|
return null;
|
|
11183
11304
|
}
|
|
11184
11305
|
const Icon2 = calloutTypeData.icon;
|
|
11185
|
-
return /* @__PURE__ */ (0,
|
|
11306
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
11186
11307
|
"div",
|
|
11187
11308
|
{
|
|
11188
11309
|
"data-testid": "sdk-ui-callout",
|
|
@@ -11193,11 +11314,11 @@ var Callout = ({ type = "info", compact = false, title, children, className }) =
|
|
|
11193
11314
|
typeof className === "object" ? className : ""
|
|
11194
11315
|
],
|
|
11195
11316
|
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,
|
|
11317
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { css: calloutInner, children: [
|
|
11318
|
+
compact ? null : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { css: calloutIconWrap, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon2, { css: [calloutIcon, calloutTypeData.iconColor] }) }),
|
|
11319
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { css: [calloutBody, compact ? calloutBodyCompact : void 0], children: [
|
|
11320
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { css: [calloutTitle], children: title }) : null,
|
|
11321
|
+
children ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { css: [calloutTypeData.descriptionColor], children }) : null
|
|
11201
11322
|
] })
|
|
11202
11323
|
] })
|
|
11203
11324
|
}
|
|
@@ -11205,22 +11326,22 @@ var Callout = ({ type = "info", compact = false, title, children, className }) =
|
|
|
11205
11326
|
};
|
|
11206
11327
|
|
|
11207
11328
|
// src/components/Card/Card.tsx
|
|
11208
|
-
var
|
|
11329
|
+
var import_cg7 = require("react-icons/cg");
|
|
11209
11330
|
|
|
11210
11331
|
// src/components/Card/Card.styles.ts
|
|
11211
|
-
var
|
|
11212
|
-
var CardContainer =
|
|
11332
|
+
var import_react31 = require("@emotion/react");
|
|
11333
|
+
var CardContainer = import_react31.css`
|
|
11213
11334
|
background: var(--white);
|
|
11214
11335
|
border: 1px solid var(--gray-300);
|
|
11215
11336
|
border-radius: var(--rounded-base);
|
|
11216
11337
|
padding: var(--spacing-md);
|
|
11217
11338
|
position: relative;
|
|
11218
11339
|
`;
|
|
11219
|
-
var CardTitle =
|
|
11340
|
+
var CardTitle = import_react31.css`
|
|
11220
11341
|
margin: 0 0 var(--spacing-base);
|
|
11221
11342
|
padding-right: var(--spacing-lg);
|
|
11222
11343
|
`;
|
|
11223
|
-
var CardMenu =
|
|
11344
|
+
var CardMenu = import_react31.css`
|
|
11224
11345
|
background: transparent;
|
|
11225
11346
|
border: none;
|
|
11226
11347
|
padding: 0;
|
|
@@ -11230,16 +11351,16 @@ var CardMenu = import_react29.css`
|
|
|
11230
11351
|
`;
|
|
11231
11352
|
|
|
11232
11353
|
// src/components/Card/Card.tsx
|
|
11233
|
-
var
|
|
11354
|
+
var import_jsx_runtime25 = require("@emotion/react/jsx-runtime");
|
|
11234
11355
|
var Card = ({ title, menuItems, children, disabled, menuButtonTestId, ...props }) => {
|
|
11235
11356
|
const normalizeTitle = (title == null ? void 0 : title.includes("_")) ? title.replaceAll("_", " ") : title;
|
|
11236
|
-
return /* @__PURE__ */ (0,
|
|
11237
|
-
title ? /* @__PURE__ */ (0,
|
|
11238
|
-
menuItems ? /* @__PURE__ */ (0,
|
|
11357
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { css: CardContainer, ...props, children: [
|
|
11358
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Heading, { level: 3, css: CardTitle, children: normalizeTitle }) : null,
|
|
11359
|
+
menuItems ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
11239
11360
|
Menu,
|
|
11240
11361
|
{
|
|
11241
11362
|
menuLabel: "More options",
|
|
11242
|
-
menuTrigger: /* @__PURE__ */ (0,
|
|
11363
|
+
menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
11243
11364
|
"button",
|
|
11244
11365
|
{
|
|
11245
11366
|
"aria-label": "More options",
|
|
@@ -11247,7 +11368,7 @@ var Card = ({ title, menuItems, children, disabled, menuButtonTestId, ...props }
|
|
|
11247
11368
|
disabled,
|
|
11248
11369
|
css: CardMenu,
|
|
11249
11370
|
"data-test-id": menuButtonTestId != null ? menuButtonTestId : "list-card-menu",
|
|
11250
|
-
children: /* @__PURE__ */ (0,
|
|
11371
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon, { icon: import_cg7.CgMoreAlt, iconColor: "currentColor", size: 32 })
|
|
11251
11372
|
}
|
|
11252
11373
|
),
|
|
11253
11374
|
children: menuItems
|
|
@@ -11258,11 +11379,11 @@ var Card = ({ title, menuItems, children, disabled, menuButtonTestId, ...props }
|
|
|
11258
11379
|
};
|
|
11259
11380
|
|
|
11260
11381
|
// src/components/Card/CardContainer.styles.ts
|
|
11261
|
-
var
|
|
11262
|
-
var CardContainerWrapper = (bgColor) =>
|
|
11382
|
+
var import_react32 = require("@emotion/react");
|
|
11383
|
+
var CardContainerWrapper = (bgColor) => import_react32.css`
|
|
11263
11384
|
background: ${bgColor === "gray" ? `var(--gray-50)` : `var(--white)`};
|
|
11264
11385
|
`;
|
|
11265
|
-
var CardContainerInner = ({ padding, withLastColumn }) =>
|
|
11386
|
+
var CardContainerInner = ({ padding, withLastColumn }) => import_react32.css`
|
|
11266
11387
|
display: grid;
|
|
11267
11388
|
gap: var(--spacing-lg);
|
|
11268
11389
|
max-width: var(--site-width);
|
|
@@ -11276,7 +11397,7 @@ var CardContainerInner = ({ padding, withLastColumn }) => import_react30.css`
|
|
|
11276
11397
|
`;
|
|
11277
11398
|
|
|
11278
11399
|
// src/components/Card/CardContainer.tsx
|
|
11279
|
-
var
|
|
11400
|
+
var import_jsx_runtime26 = require("@emotion/react/jsx-runtime");
|
|
11280
11401
|
var CardContainer2 = ({
|
|
11281
11402
|
bgColor = "white",
|
|
11282
11403
|
padding = true,
|
|
@@ -11284,12 +11405,12 @@ var CardContainer2 = ({
|
|
|
11284
11405
|
children,
|
|
11285
11406
|
...props
|
|
11286
11407
|
}) => {
|
|
11287
|
-
return /* @__PURE__ */ (0,
|
|
11408
|
+
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
11409
|
};
|
|
11289
11410
|
|
|
11290
11411
|
// src/components/Counter/Counter.styles.ts
|
|
11291
|
-
var
|
|
11292
|
-
var counterContainer =
|
|
11412
|
+
var import_react33 = require("@emotion/react");
|
|
11413
|
+
var counterContainer = import_react33.css`
|
|
11293
11414
|
align-items: center;
|
|
11294
11415
|
border-radius: var(--rounded-full);
|
|
11295
11416
|
border: 1px solid var(--gray-300);
|
|
@@ -11301,16 +11422,16 @@ var counterContainer = import_react31.css`
|
|
|
11301
11422
|
width: var(--spacing-base);
|
|
11302
11423
|
height: var(--spacing-base);
|
|
11303
11424
|
`;
|
|
11304
|
-
var counterZeroValue =
|
|
11425
|
+
var counterZeroValue = import_react33.css`
|
|
11305
11426
|
background: var(--brand-secondary-1);
|
|
11306
11427
|
border-radius: var(--rounded-full);
|
|
11307
11428
|
width: 2px;
|
|
11308
11429
|
height: 2px;
|
|
11309
11430
|
`;
|
|
11310
|
-
var counterTripleValue =
|
|
11431
|
+
var counterTripleValue = import_react33.css`
|
|
11311
11432
|
position: relative;
|
|
11312
11433
|
`;
|
|
11313
|
-
var counterIcon =
|
|
11434
|
+
var counterIcon = import_react33.css`
|
|
11314
11435
|
border-radius: var(--rounded-full);
|
|
11315
11436
|
background: var(--white);
|
|
11316
11437
|
color: var(--brand-secondary-3);
|
|
@@ -11321,21 +11442,21 @@ var counterIcon = import_react31.css`
|
|
|
11321
11442
|
`;
|
|
11322
11443
|
|
|
11323
11444
|
// src/components/Counter/Counter.tsx
|
|
11324
|
-
var
|
|
11445
|
+
var import_jsx_runtime27 = require("@emotion/react/jsx-runtime");
|
|
11325
11446
|
var Counter = ({ count }) => {
|
|
11326
11447
|
if (typeof count === "undefined") {
|
|
11327
11448
|
return null;
|
|
11328
11449
|
}
|
|
11329
|
-
const isTripleDigits = count > 99 ? /* @__PURE__ */ (0,
|
|
11450
|
+
const isTripleDigits = count > 99 ? /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { css: counterTripleValue, title: `${count}`, children: [
|
|
11330
11451
|
"99",
|
|
11331
|
-
/* @__PURE__ */ (0,
|
|
11452
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Icon, { icon: "math-plus", iconColor: "currentColor", size: "0.5rem", css: counterIcon })
|
|
11332
11453
|
] }) : count;
|
|
11333
|
-
const formatCount = count === 0 ? /* @__PURE__ */ (0,
|
|
11334
|
-
return /* @__PURE__ */ (0,
|
|
11454
|
+
const formatCount = count === 0 ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { css: counterZeroValue, title: `${count}` }) : isTripleDigits;
|
|
11455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { css: counterContainer, children: formatCount });
|
|
11335
11456
|
};
|
|
11336
11457
|
|
|
11337
11458
|
// src/components/DashedBox/DashedBox.styles.ts
|
|
11338
|
-
var
|
|
11459
|
+
var import_react34 = require("@emotion/react");
|
|
11339
11460
|
var minHeight = (prop) => {
|
|
11340
11461
|
const values = {
|
|
11341
11462
|
auto: "auto",
|
|
@@ -11354,7 +11475,7 @@ var alignItemsConvert = (props) => {
|
|
|
11354
11475
|
};
|
|
11355
11476
|
return alignment[props];
|
|
11356
11477
|
};
|
|
11357
|
-
var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) =>
|
|
11478
|
+
var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) => import_react34.css`
|
|
11358
11479
|
align-items: ${alignItemsConvert(textAlign)};
|
|
11359
11480
|
border: 2px dashed var(--gray-300);
|
|
11360
11481
|
border-radius: var(--rounded-base);
|
|
@@ -11369,7 +11490,7 @@ var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) => import_react32.c
|
|
|
11369
11490
|
`;
|
|
11370
11491
|
|
|
11371
11492
|
// src/components/DashedBox/DashedBox.tsx
|
|
11372
|
-
var
|
|
11493
|
+
var import_jsx_runtime28 = require("@emotion/react/jsx-runtime");
|
|
11373
11494
|
var DashedBox = ({
|
|
11374
11495
|
bgColor = "transparent",
|
|
11375
11496
|
textAlign = "center",
|
|
@@ -11377,15 +11498,15 @@ var DashedBox = ({
|
|
|
11377
11498
|
children,
|
|
11378
11499
|
...props
|
|
11379
11500
|
}) => {
|
|
11380
|
-
return /* @__PURE__ */ (0,
|
|
11501
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { css: DashedBoxContainer({ bgColor, boxHeight, textAlign }), ...props, children });
|
|
11381
11502
|
};
|
|
11382
11503
|
|
|
11383
11504
|
// src/components/Details/Details.tsx
|
|
11384
11505
|
var React8 = __toESM(require("react"));
|
|
11385
11506
|
|
|
11386
11507
|
// src/components/Details/Details.styles.ts
|
|
11387
|
-
var
|
|
11388
|
-
var details =
|
|
11508
|
+
var import_react35 = require("@emotion/react");
|
|
11509
|
+
var details = import_react35.css`
|
|
11389
11510
|
cursor: pointer;
|
|
11390
11511
|
&[open] {
|
|
11391
11512
|
& > summary svg {
|
|
@@ -11393,11 +11514,11 @@ var details = import_react33.css`
|
|
|
11393
11514
|
}
|
|
11394
11515
|
}
|
|
11395
11516
|
`;
|
|
11396
|
-
var detailsContent =
|
|
11517
|
+
var detailsContent = import_react35.css`
|
|
11397
11518
|
animation: ${fadeInRtl} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
11398
11519
|
will-change: height;
|
|
11399
11520
|
`;
|
|
11400
|
-
var summary =
|
|
11521
|
+
var summary = import_react35.css`
|
|
11401
11522
|
align-items: center;
|
|
11402
11523
|
display: grid;
|
|
11403
11524
|
grid-template-columns: 1.25rem 1fr;
|
|
@@ -11410,16 +11531,16 @@ var summary = import_react33.css`
|
|
|
11410
11531
|
display: none;
|
|
11411
11532
|
}
|
|
11412
11533
|
`;
|
|
11413
|
-
var summaryIcon =
|
|
11534
|
+
var summaryIcon = import_react35.css`
|
|
11414
11535
|
transition: rotate var(--duration-fast) var(--timing-ease-out);
|
|
11415
11536
|
rotate: -90deg;
|
|
11416
11537
|
`;
|
|
11417
|
-
var summaryIconVisiblyHidden =
|
|
11538
|
+
var summaryIconVisiblyHidden = import_react35.css`
|
|
11418
11539
|
visibility: hidden;
|
|
11419
11540
|
`;
|
|
11420
11541
|
|
|
11421
11542
|
// src/components/Details/Details.tsx
|
|
11422
|
-
var
|
|
11543
|
+
var import_jsx_runtime29 = require("@emotion/react/jsx-runtime");
|
|
11423
11544
|
var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props }) => {
|
|
11424
11545
|
const detailsRef = React8.useRef(null);
|
|
11425
11546
|
const [open, setOpen] = React8.useState(isOpenByDefault);
|
|
@@ -11439,9 +11560,9 @@ var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props
|
|
|
11439
11560
|
return (_a2 = detailsRef.current) == null ? void 0 : _a2.removeEventListener("toggle", toggleEvent);
|
|
11440
11561
|
};
|
|
11441
11562
|
}, [detailsRef]);
|
|
11442
|
-
return /* @__PURE__ */ (0,
|
|
11443
|
-
/* @__PURE__ */ (0,
|
|
11444
|
-
/* @__PURE__ */ (0,
|
|
11563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("details", { "data-testid": "details", css: details, open, ref: detailsRef, ...props, children: [
|
|
11564
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("summary", { "data-testid": "summary", css: summary, children: [
|
|
11565
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
11445
11566
|
Icon,
|
|
11446
11567
|
{
|
|
11447
11568
|
css: [!children ? summaryIconVisiblyHidden : void 0, summaryIcon],
|
|
@@ -11452,17 +11573,17 @@ var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props
|
|
|
11452
11573
|
),
|
|
11453
11574
|
summary2
|
|
11454
11575
|
] }),
|
|
11455
|
-
open ? /* @__PURE__ */ (0,
|
|
11576
|
+
open ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { "data-testid": "details-content", css: detailsContent, children }) : null
|
|
11456
11577
|
] });
|
|
11457
11578
|
};
|
|
11458
11579
|
|
|
11459
11580
|
// src/components/Drawer/Drawer.tsx
|
|
11460
|
-
var
|
|
11461
|
-
var
|
|
11581
|
+
var import_react39 = __toESM(require("react"));
|
|
11582
|
+
var import_cg8 = require("react-icons/cg");
|
|
11462
11583
|
|
|
11463
11584
|
// src/components/Drawer/Drawer.styles.ts
|
|
11464
|
-
var
|
|
11465
|
-
var drawerStyles = (bgColor = "var(--white)") =>
|
|
11585
|
+
var import_react36 = require("@emotion/react");
|
|
11586
|
+
var drawerStyles = (bgColor = "var(--white)") => import_react36.css`
|
|
11466
11587
|
background-color: ${bgColor};
|
|
11467
11588
|
display: flex;
|
|
11468
11589
|
gap: var(--spacing-sm);
|
|
@@ -11472,7 +11593,7 @@ var drawerStyles = (bgColor = "var(--white)") => import_react34.css`
|
|
|
11472
11593
|
padding-top: var(--spacing-sm);
|
|
11473
11594
|
height: 100%;
|
|
11474
11595
|
`;
|
|
11475
|
-
var drawerCloseButtonStyles =
|
|
11596
|
+
var drawerCloseButtonStyles = import_react36.css`
|
|
11476
11597
|
align-self: flex-end;
|
|
11477
11598
|
background: transparent;
|
|
11478
11599
|
border: none;
|
|
@@ -11480,23 +11601,23 @@ var drawerCloseButtonStyles = import_react34.css`
|
|
|
11480
11601
|
padding: var(--spacing-xs);
|
|
11481
11602
|
margin-right: var(--spacing-sm);
|
|
11482
11603
|
`;
|
|
11483
|
-
var drawerHeaderStyles =
|
|
11604
|
+
var drawerHeaderStyles = import_react36.css`
|
|
11484
11605
|
font-size: var(--fs-lg);
|
|
11485
11606
|
font-weight: var(--fw-bold);
|
|
11486
11607
|
padding-inline: var(--spacing-base);
|
|
11487
11608
|
`;
|
|
11488
|
-
var drawerRendererStyles =
|
|
11609
|
+
var drawerRendererStyles = import_react36.css`
|
|
11489
11610
|
inset: 0;
|
|
11490
11611
|
overflow: hidden;
|
|
11491
11612
|
z-index: 40;
|
|
11492
11613
|
`;
|
|
11493
|
-
var drawerInnerStyles =
|
|
11614
|
+
var drawerInnerStyles = import_react36.css`
|
|
11494
11615
|
height: 100%;
|
|
11495
11616
|
padding: 0 var(--spacing-base) var(--spacing-base);
|
|
11496
11617
|
overflow: auto;
|
|
11497
11618
|
${scrollbarStyles}
|
|
11498
11619
|
`;
|
|
11499
|
-
var slideDrawerIn =
|
|
11620
|
+
var slideDrawerIn = import_react36.keyframes`
|
|
11500
11621
|
0% {
|
|
11501
11622
|
transform: translate(0);
|
|
11502
11623
|
opacity: 0;
|
|
@@ -11511,7 +11632,7 @@ var slideDrawerIn = import_react34.keyframes`
|
|
|
11511
11632
|
transform: translate(0);
|
|
11512
11633
|
}
|
|
11513
11634
|
`;
|
|
11514
|
-
var drawerWrapperStyles =
|
|
11635
|
+
var drawerWrapperStyles = import_react36.css`
|
|
11515
11636
|
position: absolute;
|
|
11516
11637
|
inset-block: 0;
|
|
11517
11638
|
right: 0;
|
|
@@ -11522,7 +11643,7 @@ var drawerWrapperStyles = import_react34.css`
|
|
|
11522
11643
|
transition: width var(--duration-fast) ease-out;
|
|
11523
11644
|
box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
|
|
11524
11645
|
`;
|
|
11525
|
-
var drawerWrapperOverlayStyles =
|
|
11646
|
+
var drawerWrapperOverlayStyles = import_react36.css`
|
|
11526
11647
|
position: absolute;
|
|
11527
11648
|
inset: 0;
|
|
11528
11649
|
background: rgba(31, 43, 52, 0.4);
|
|
@@ -11530,9 +11651,9 @@ var drawerWrapperOverlayStyles = import_react34.css`
|
|
|
11530
11651
|
`;
|
|
11531
11652
|
|
|
11532
11653
|
// src/components/Drawer/DrawerProvider.tsx
|
|
11533
|
-
var
|
|
11534
|
-
var
|
|
11535
|
-
var DrawerContext = (0,
|
|
11654
|
+
var import_react37 = require("react");
|
|
11655
|
+
var import_jsx_runtime30 = require("@emotion/react/jsx-runtime");
|
|
11656
|
+
var DrawerContext = (0, import_react37.createContext)({
|
|
11536
11657
|
drawersRegistry: [],
|
|
11537
11658
|
registerDrawer: () => {
|
|
11538
11659
|
},
|
|
@@ -11540,7 +11661,7 @@ var DrawerContext = (0, import_react35.createContext)({
|
|
|
11540
11661
|
}
|
|
11541
11662
|
});
|
|
11542
11663
|
var DrawerProvider = ({ children }) => {
|
|
11543
|
-
const [drawersRegistry, setDrawersRegistry] = (0,
|
|
11664
|
+
const [drawersRegistry, setDrawersRegistry] = (0, import_react37.useState)([]);
|
|
11544
11665
|
useShortcut({
|
|
11545
11666
|
handler: () => {
|
|
11546
11667
|
var _a, _b;
|
|
@@ -11548,7 +11669,7 @@ var DrawerProvider = ({ children }) => {
|
|
|
11548
11669
|
},
|
|
11549
11670
|
shortcut: "escape"
|
|
11550
11671
|
});
|
|
11551
|
-
const registerDrawer = (0,
|
|
11672
|
+
const registerDrawer = (0, import_react37.useCallback)(
|
|
11552
11673
|
({ drawer, onFirstRender }) => {
|
|
11553
11674
|
setDrawersRegistry((currentValue) => {
|
|
11554
11675
|
var _a;
|
|
@@ -11570,7 +11691,7 @@ var DrawerProvider = ({ children }) => {
|
|
|
11570
11691
|
},
|
|
11571
11692
|
[setDrawersRegistry]
|
|
11572
11693
|
);
|
|
11573
|
-
const unregisterDrawer = (0,
|
|
11694
|
+
const unregisterDrawer = (0, import_react37.useCallback)(
|
|
11574
11695
|
(drawer) => {
|
|
11575
11696
|
setDrawersRegistry((currentValue) => {
|
|
11576
11697
|
return currentValue.filter((d) => {
|
|
@@ -11580,10 +11701,10 @@ var DrawerProvider = ({ children }) => {
|
|
|
11580
11701
|
},
|
|
11581
11702
|
[setDrawersRegistry]
|
|
11582
11703
|
);
|
|
11583
|
-
return /* @__PURE__ */ (0,
|
|
11704
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(DrawerContext.Provider, { value: { drawersRegistry, registerDrawer, unregisterDrawer }, children });
|
|
11584
11705
|
};
|
|
11585
11706
|
var useDrawer = () => {
|
|
11586
|
-
return (0,
|
|
11707
|
+
return (0, import_react37.useContext)(DrawerContext);
|
|
11587
11708
|
};
|
|
11588
11709
|
var useCloseCurrentDrawer = () => {
|
|
11589
11710
|
const context = useDrawer();
|
|
@@ -11600,13 +11721,13 @@ function isEqualDrawerInstance(a, b) {
|
|
|
11600
11721
|
}
|
|
11601
11722
|
|
|
11602
11723
|
// src/components/Drawer/DrawerRenderer.tsx
|
|
11603
|
-
var
|
|
11604
|
-
var
|
|
11724
|
+
var import_react38 = require("react");
|
|
11725
|
+
var import_jsx_runtime31 = require("@emotion/react/jsx-runtime");
|
|
11605
11726
|
var maxLayeringInPx = 64;
|
|
11606
11727
|
var idealDistanceBetweenLayersInPx = 16;
|
|
11607
|
-
var CurrentDrawerRendererContext = (0,
|
|
11728
|
+
var CurrentDrawerRendererContext = (0, import_react38.createContext)({});
|
|
11608
11729
|
var useCurrentDrawerRenderer = () => {
|
|
11609
|
-
return (0,
|
|
11730
|
+
return (0, import_react38.useContext)(CurrentDrawerRendererContext);
|
|
11610
11731
|
};
|
|
11611
11732
|
var DrawerRenderer = ({
|
|
11612
11733
|
stackId,
|
|
@@ -11621,7 +11742,7 @@ var DrawerRenderer = ({
|
|
|
11621
11742
|
if (drawersToRender.length === 0) {
|
|
11622
11743
|
return null;
|
|
11623
11744
|
}
|
|
11624
|
-
return /* @__PURE__ */ (0,
|
|
11745
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CurrentDrawerRendererContext.Provider, { value: { stackId }, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
11625
11746
|
"div",
|
|
11626
11747
|
{
|
|
11627
11748
|
css: [
|
|
@@ -11630,7 +11751,7 @@ var DrawerRenderer = ({
|
|
|
11630
11751
|
position === "sticky" ? { height: "100%", marginTop: "-100%" } : void 0
|
|
11631
11752
|
],
|
|
11632
11753
|
...otherProps,
|
|
11633
|
-
children: drawersToRender.map(({ component, id, stackId: stackId2, onRequestClose }, index) => /* @__PURE__ */ (0,
|
|
11754
|
+
children: drawersToRender.map(({ component, id, stackId: stackId2, onRequestClose }, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
11634
11755
|
DrawerWrapper,
|
|
11635
11756
|
{
|
|
11636
11757
|
index,
|
|
@@ -11661,22 +11782,22 @@ var DrawerWrapper = ({
|
|
|
11661
11782
|
offsetInPx = Math.round(maxLayeringInPx * relativeLevel);
|
|
11662
11783
|
}
|
|
11663
11784
|
const calculatedWidth = `calc(${width} - ${offsetInPx}px)`;
|
|
11664
|
-
return /* @__PURE__ */ (0,
|
|
11665
|
-
/* @__PURE__ */ (0,
|
|
11666
|
-
/* @__PURE__ */ (0,
|
|
11785
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
|
|
11786
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { css: drawerWrapperOverlayStyles, onClick: onOverlayClick }),
|
|
11787
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { css: [drawerWrapperStyles, { width: calculatedWidth, minWidth, maxWidth }], children })
|
|
11667
11788
|
] });
|
|
11668
11789
|
};
|
|
11669
11790
|
|
|
11670
11791
|
// src/components/Drawer/Drawer.tsx
|
|
11671
|
-
var
|
|
11792
|
+
var import_jsx_runtime32 = require("@emotion/react/jsx-runtime");
|
|
11672
11793
|
var defaultSackId = "_default";
|
|
11673
|
-
var Drawer =
|
|
11794
|
+
var Drawer = import_react39.default.forwardRef(
|
|
11674
11795
|
({ width, minWidth, maxWidth, position, ...drawerProps }, ref) => {
|
|
11675
11796
|
const drawerRendererProps = { width, minWidth, maxWidth, position };
|
|
11676
11797
|
const { stackId: inheritedStackId } = useCurrentDrawerRenderer();
|
|
11677
|
-
return inheritedStackId ? /* @__PURE__ */ (0,
|
|
11678
|
-
/* @__PURE__ */ (0,
|
|
11679
|
-
/* @__PURE__ */ (0,
|
|
11798
|
+
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: [
|
|
11799
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DrawerInner, { ref, ...drawerProps }),
|
|
11800
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DrawerRenderer, { stackId: defaultSackId, ...drawerRendererProps })
|
|
11680
11801
|
] });
|
|
11681
11802
|
}
|
|
11682
11803
|
);
|
|
@@ -11691,10 +11812,10 @@ var DrawerInner = ({
|
|
|
11691
11812
|
onRequestClose
|
|
11692
11813
|
}) => {
|
|
11693
11814
|
const { registerDrawer, unregisterDrawer } = useDrawer();
|
|
11694
|
-
const closeButtonRef = (0,
|
|
11695
|
-
const component = (0,
|
|
11815
|
+
const closeButtonRef = (0, import_react39.useRef)(null);
|
|
11816
|
+
const component = (0, import_react39.useMemo)(() => {
|
|
11696
11817
|
const headerId = `dialog-header-${stackId}-${id}`;
|
|
11697
|
-
return /* @__PURE__ */ (0,
|
|
11818
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
11698
11819
|
"div",
|
|
11699
11820
|
{
|
|
11700
11821
|
ref,
|
|
@@ -11705,7 +11826,7 @@ var DrawerInner = ({
|
|
|
11705
11826
|
css: drawerStyles(bgColor),
|
|
11706
11827
|
"data-test-id": "side-dialog",
|
|
11707
11828
|
children: [
|
|
11708
|
-
/* @__PURE__ */ (0,
|
|
11829
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
11709
11830
|
Button,
|
|
11710
11831
|
{
|
|
11711
11832
|
ref: closeButtonRef,
|
|
@@ -11714,16 +11835,16 @@ var DrawerInner = ({
|
|
|
11714
11835
|
css: drawerCloseButtonStyles,
|
|
11715
11836
|
title: "Close dialog",
|
|
11716
11837
|
buttonType: "ghost",
|
|
11717
|
-
children: /* @__PURE__ */ (0,
|
|
11838
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { icon: import_cg8.CgChevronRight, iconColor: "gray", size: "1.5rem" })
|
|
11718
11839
|
}
|
|
11719
11840
|
),
|
|
11720
|
-
header ? /* @__PURE__ */ (0,
|
|
11721
|
-
/* @__PURE__ */ (0,
|
|
11841
|
+
header ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { id: headerId, css: drawerHeaderStyles, children: header }) : null,
|
|
11842
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { css: drawerInnerStyles, children })
|
|
11722
11843
|
]
|
|
11723
11844
|
}
|
|
11724
11845
|
);
|
|
11725
11846
|
}, [children, header, id, stackId, bgColor, onRequestClose, ref]);
|
|
11726
|
-
(0,
|
|
11847
|
+
(0, import_react39.useEffect)(() => {
|
|
11727
11848
|
registerDrawer({
|
|
11728
11849
|
drawer: {
|
|
11729
11850
|
id,
|
|
@@ -11740,15 +11861,15 @@ var DrawerInner = ({
|
|
|
11740
11861
|
}
|
|
11741
11862
|
});
|
|
11742
11863
|
}, [component, instanceKey, registerDrawer]);
|
|
11743
|
-
(0,
|
|
11864
|
+
(0, import_react39.useEffect)(() => {
|
|
11744
11865
|
return () => unregisterDrawer({ id, stackId, instanceKey });
|
|
11745
11866
|
}, [id, stackId, instanceKey, unregisterDrawer]);
|
|
11746
11867
|
return null;
|
|
11747
11868
|
};
|
|
11748
11869
|
|
|
11749
11870
|
// src/components/Input/styles/CaptionText.styles.ts
|
|
11750
|
-
var
|
|
11751
|
-
var CaptionText = (dynamicSize) =>
|
|
11871
|
+
var import_react40 = require("@emotion/react");
|
|
11872
|
+
var CaptionText = (dynamicSize) => import_react40.css`
|
|
11752
11873
|
color: var(--gray-500);
|
|
11753
11874
|
display: block;
|
|
11754
11875
|
font-size: ${dynamicSize ? "clamp(var(--fs-xs), 87.5%,var(--fs-sm))" : "var(--fs-sm)"};
|
|
@@ -11757,29 +11878,29 @@ var CaptionText = (dynamicSize) => import_react38.css`
|
|
|
11757
11878
|
`;
|
|
11758
11879
|
|
|
11759
11880
|
// src/components/Input/Caption.tsx
|
|
11760
|
-
var
|
|
11881
|
+
var import_jsx_runtime33 = require("@emotion/react/jsx-runtime");
|
|
11761
11882
|
var Caption = ({ children, testId, dynamicSize = false, ...props }) => {
|
|
11762
|
-
return /* @__PURE__ */ (0,
|
|
11883
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("small", { css: CaptionText(dynamicSize), "data-test-id": testId, ...props, children });
|
|
11763
11884
|
};
|
|
11764
11885
|
|
|
11765
11886
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
11766
|
-
var
|
|
11887
|
+
var import_react42 = require("react");
|
|
11767
11888
|
|
|
11768
11889
|
// src/components/Input/styles/CheckboxWithInfo.styles.ts
|
|
11769
|
-
var
|
|
11770
|
-
var CheckboxWithInfoContainer =
|
|
11890
|
+
var import_react41 = require("@emotion/react");
|
|
11891
|
+
var CheckboxWithInfoContainer = import_react41.css`
|
|
11771
11892
|
align-items: center;
|
|
11772
11893
|
display: flex;
|
|
11773
11894
|
gap: var(--spacing-sm);
|
|
11774
11895
|
`;
|
|
11775
|
-
var CheckboxWithInfoLabel =
|
|
11896
|
+
var CheckboxWithInfoLabel = import_react41.css`
|
|
11776
11897
|
align-items: center;
|
|
11777
11898
|
color: var(--gray-500);
|
|
11778
11899
|
display: flex;
|
|
11779
11900
|
font-size: var(--fs-xs);
|
|
11780
11901
|
gap: var(--spacing-sm);
|
|
11781
11902
|
`;
|
|
11782
|
-
var CheckboxWithInfoInput =
|
|
11903
|
+
var CheckboxWithInfoInput = import_react41.css`
|
|
11783
11904
|
appearance: none;
|
|
11784
11905
|
border: 1px solid var(--gray-300);
|
|
11785
11906
|
background: var(--white) no-repeat bottom center;
|
|
@@ -11812,7 +11933,7 @@ var CheckboxWithInfoInput = import_react39.css`
|
|
|
11812
11933
|
border-color: var(--gray-200);
|
|
11813
11934
|
}
|
|
11814
11935
|
`;
|
|
11815
|
-
var InfoDialogContainer =
|
|
11936
|
+
var InfoDialogContainer = import_react41.css`
|
|
11816
11937
|
position: relative;
|
|
11817
11938
|
|
|
11818
11939
|
&:hover {
|
|
@@ -11821,7 +11942,7 @@ var InfoDialogContainer = import_react39.css`
|
|
|
11821
11942
|
}
|
|
11822
11943
|
}
|
|
11823
11944
|
`;
|
|
11824
|
-
var InfoDialogMessage =
|
|
11945
|
+
var InfoDialogMessage = import_react41.css`
|
|
11825
11946
|
background: var(--white);
|
|
11826
11947
|
box-shadow: var(--shadow-base);
|
|
11827
11948
|
border-radius: var(--rounded-md);
|
|
@@ -11838,21 +11959,21 @@ var InfoDialogMessage = import_react39.css`
|
|
|
11838
11959
|
`;
|
|
11839
11960
|
|
|
11840
11961
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
11841
|
-
var
|
|
11962
|
+
var import_jsx_runtime34 = require("@emotion/react/jsx-runtime");
|
|
11842
11963
|
var InfoDialog = ({ message }) => {
|
|
11843
|
-
return /* @__PURE__ */ (0,
|
|
11844
|
-
/* @__PURE__ */ (0,
|
|
11845
|
-
/* @__PURE__ */ (0,
|
|
11964
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { "data-testid": "info-dialog", css: InfoDialogContainer, children: [
|
|
11965
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icon, { icon: "info", iconColor: "green", size: "0.9rem" }),
|
|
11966
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { role: "paragraph", css: InfoDialogMessage, className: "info-message", children: message })
|
|
11846
11967
|
] });
|
|
11847
11968
|
};
|
|
11848
|
-
var CheckboxWithInfo = (0,
|
|
11969
|
+
var CheckboxWithInfo = (0, import_react42.forwardRef)(
|
|
11849
11970
|
({ label, name, info, ...props }, ref) => {
|
|
11850
|
-
return /* @__PURE__ */ (0,
|
|
11851
|
-
/* @__PURE__ */ (0,
|
|
11852
|
-
/* @__PURE__ */ (0,
|
|
11853
|
-
/* @__PURE__ */ (0,
|
|
11971
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { css: CheckboxWithInfoContainer, children: [
|
|
11972
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("label", { css: CheckboxWithInfoLabel, children: [
|
|
11973
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("input", { type: "checkbox", name, ref, css: CheckboxWithInfoInput, ...props }),
|
|
11974
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: label })
|
|
11854
11975
|
] }),
|
|
11855
|
-
info ? /* @__PURE__ */ (0,
|
|
11976
|
+
info ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(InfoDialog, { message: info }) : null
|
|
11856
11977
|
] });
|
|
11857
11978
|
}
|
|
11858
11979
|
);
|
|
@@ -11861,8 +11982,8 @@ var CheckboxWithInfo = (0, import_react40.forwardRef)(
|
|
|
11861
11982
|
var import_md = require("react-icons/md");
|
|
11862
11983
|
|
|
11863
11984
|
// src/components/Input/styles/ErrorMessage.styles.ts
|
|
11864
|
-
var
|
|
11865
|
-
var ErrorText =
|
|
11985
|
+
var import_react43 = require("@emotion/react");
|
|
11986
|
+
var ErrorText = import_react43.css`
|
|
11866
11987
|
align-items: center;
|
|
11867
11988
|
color: var(--brand-secondary-5);
|
|
11868
11989
|
display: flex;
|
|
@@ -11870,10 +11991,10 @@ var ErrorText = import_react41.css`
|
|
|
11870
11991
|
`;
|
|
11871
11992
|
|
|
11872
11993
|
// src/components/Input/ErrorMessage.tsx
|
|
11873
|
-
var
|
|
11994
|
+
var import_jsx_runtime35 = require("@emotion/react/jsx-runtime");
|
|
11874
11995
|
var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
11875
|
-
return message ? /* @__PURE__ */ (0,
|
|
11876
|
-
/* @__PURE__ */ (0,
|
|
11996
|
+
return message ? /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { role: "alert", css: ErrorText, "data-test-id": testId, ...otherProps, children: [
|
|
11997
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Icon, { icon: import_md.MdWarning, size: 16, iconColor: "currentColor" }),
|
|
11877
11998
|
message
|
|
11878
11999
|
] }) : null;
|
|
11879
12000
|
};
|
|
@@ -11882,9 +12003,9 @@ var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
|
11882
12003
|
var React12 = __toESM(require("react"));
|
|
11883
12004
|
|
|
11884
12005
|
// src/components/Input/styles/Fieldset.styles.ts
|
|
11885
|
-
var
|
|
12006
|
+
var import_react44 = require("@emotion/react");
|
|
11886
12007
|
function fieldsetContainer(invert) {
|
|
11887
|
-
const base =
|
|
12008
|
+
const base = import_react44.css`
|
|
11888
12009
|
border-radius: var(--rounded-base);
|
|
11889
12010
|
border: 1px solid var(--gray-300);
|
|
11890
12011
|
|
|
@@ -11896,18 +12017,18 @@ function fieldsetContainer(invert) {
|
|
|
11896
12017
|
}
|
|
11897
12018
|
`;
|
|
11898
12019
|
return invert ? [
|
|
11899
|
-
|
|
12020
|
+
import_react44.css`
|
|
11900
12021
|
background: white;
|
|
11901
12022
|
`,
|
|
11902
12023
|
base
|
|
11903
12024
|
] : [
|
|
11904
|
-
|
|
12025
|
+
import_react44.css`
|
|
11905
12026
|
background: var(--gray-50);
|
|
11906
12027
|
`,
|
|
11907
12028
|
base
|
|
11908
12029
|
];
|
|
11909
12030
|
}
|
|
11910
|
-
var fieldsetLegend =
|
|
12031
|
+
var fieldsetLegend = import_react44.css`
|
|
11911
12032
|
align-items: center;
|
|
11912
12033
|
color: var(--brand-secondary-1);
|
|
11913
12034
|
display: flex;
|
|
@@ -11917,28 +12038,55 @@ var fieldsetLegend = import_react42.css`
|
|
|
11917
12038
|
margin-bottom: var(--spacing-base);
|
|
11918
12039
|
float: left; // allows the legend to be inside the fieldset and not sat on the border line
|
|
11919
12040
|
`;
|
|
11920
|
-
var fieldsetBody =
|
|
12041
|
+
var fieldsetBody = import_react44.css`
|
|
11921
12042
|
clear: left;
|
|
11922
12043
|
`;
|
|
11923
12044
|
|
|
11924
12045
|
// src/components/Input/Fieldset.tsx
|
|
11925
|
-
var
|
|
12046
|
+
var import_jsx_runtime36 = require("@emotion/react/jsx-runtime");
|
|
11926
12047
|
var Fieldset = React12.forwardRef(
|
|
11927
12048
|
({ legend, disabled, children, invert, ...props }, ref) => {
|
|
11928
|
-
return /* @__PURE__ */ (0,
|
|
12049
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled, ...props, children: [
|
|
11929
12050
|
legend,
|
|
11930
|
-
/* @__PURE__ */ (0,
|
|
12051
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { css: fieldsetBody, children })
|
|
11931
12052
|
] });
|
|
11932
12053
|
}
|
|
11933
12054
|
);
|
|
11934
12055
|
|
|
12056
|
+
// src/components/Input/InfoMessage.tsx
|
|
12057
|
+
var import_md2 = require("react-icons/md");
|
|
12058
|
+
|
|
12059
|
+
// src/components/Input/styles/InfoMessage.styles.tsx
|
|
12060
|
+
var import_react45 = require("@emotion/react");
|
|
12061
|
+
var InfoText = import_react45.css`
|
|
12062
|
+
--info-desc: rgb(29, 78, 216);
|
|
12063
|
+
--info-icon: rgb(96, 165, 250);
|
|
12064
|
+
|
|
12065
|
+
align-items: center;
|
|
12066
|
+
color: var(--info-desc);
|
|
12067
|
+
display: flex;
|
|
12068
|
+
gap: var(--spacing-sm);
|
|
12069
|
+
`;
|
|
12070
|
+
var InfoIcon2 = import_react45.css`
|
|
12071
|
+
color: var(--info-icon);
|
|
12072
|
+
`;
|
|
12073
|
+
|
|
12074
|
+
// src/components/Input/InfoMessage.tsx
|
|
12075
|
+
var import_jsx_runtime37 = require("@emotion/react/jsx-runtime");
|
|
12076
|
+
var InfoMessage = ({ message, testId, ...props }) => {
|
|
12077
|
+
return message ? /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { role: "status", css: InfoText, "data-test-id": testId, ...props, children: [
|
|
12078
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Icon, { css: InfoIcon2, icon: import_md2.MdInfoOutline, size: "1rem", iconColor: "currentColor" }),
|
|
12079
|
+
message
|
|
12080
|
+
] }) : null;
|
|
12081
|
+
};
|
|
12082
|
+
|
|
11935
12083
|
// src/components/Input/Input.tsx
|
|
11936
12084
|
var React13 = __toESM(require("react"));
|
|
11937
12085
|
|
|
11938
12086
|
// src/components/Input/Label.tsx
|
|
11939
|
-
var
|
|
12087
|
+
var import_jsx_runtime38 = require("@emotion/react/jsx-runtime");
|
|
11940
12088
|
var Label = ({ children, className, testId, ...props }) => {
|
|
11941
|
-
return /* @__PURE__ */ (0,
|
|
12089
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
11942
12090
|
"label",
|
|
11943
12091
|
{
|
|
11944
12092
|
css: [labelText, typeof className === "object" ? className : void 0],
|
|
@@ -11951,31 +12099,31 @@ var Label = ({ children, className, testId, ...props }) => {
|
|
|
11951
12099
|
};
|
|
11952
12100
|
|
|
11953
12101
|
// src/components/Input/WarningMessage.tsx
|
|
11954
|
-
var
|
|
12102
|
+
var import_md3 = require("react-icons/md");
|
|
11955
12103
|
|
|
11956
12104
|
// src/components/Input/styles/WarningMessage.styles.tsx
|
|
11957
|
-
var
|
|
11958
|
-
var WarningText =
|
|
12105
|
+
var import_react46 = require("@emotion/react");
|
|
12106
|
+
var WarningText = import_react46.css`
|
|
11959
12107
|
align-items: center;
|
|
11960
12108
|
color: var(--alert-text);
|
|
11961
12109
|
display: flex;
|
|
11962
12110
|
gap: var(--spacing-sm);
|
|
11963
12111
|
`;
|
|
11964
|
-
var WarningIcon =
|
|
12112
|
+
var WarningIcon = import_react46.css`
|
|
11965
12113
|
color: var(--alert);
|
|
11966
12114
|
`;
|
|
11967
12115
|
|
|
11968
12116
|
// src/components/Input/WarningMessage.tsx
|
|
11969
|
-
var
|
|
12117
|
+
var import_jsx_runtime39 = require("@emotion/react/jsx-runtime");
|
|
11970
12118
|
var WarningMessage = ({ message, testId, ...props }) => {
|
|
11971
|
-
return message ? /* @__PURE__ */ (0,
|
|
11972
|
-
/* @__PURE__ */ (0,
|
|
12119
|
+
return message ? /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("span", { role: "status", css: WarningText, "data-test-id": testId, ...props, children: [
|
|
12120
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icon, { css: WarningIcon, icon: import_md3.MdWarning, size: "1rem", iconColor: "currentColor" }),
|
|
11973
12121
|
message
|
|
11974
12122
|
] }) : null;
|
|
11975
12123
|
};
|
|
11976
12124
|
|
|
11977
12125
|
// src/components/Input/Input.tsx
|
|
11978
|
-
var
|
|
12126
|
+
var import_jsx_runtime40 = require("@emotion/react/jsx-runtime");
|
|
11979
12127
|
var Input = React13.forwardRef(
|
|
11980
12128
|
({
|
|
11981
12129
|
label,
|
|
@@ -11994,8 +12142,8 @@ var Input = React13.forwardRef(
|
|
|
11994
12142
|
classNameLabel,
|
|
11995
12143
|
...props
|
|
11996
12144
|
}, ref) => {
|
|
11997
|
-
return /* @__PURE__ */ (0,
|
|
11998
|
-
showLabel ? /* @__PURE__ */ (0,
|
|
12145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { css: inputContainer, "data-test-id": containerTestId ? containerTestId : "container-input-field", children: [
|
|
12146
|
+
showLabel ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
11999
12147
|
Label,
|
|
12000
12148
|
{
|
|
12001
12149
|
htmlFor: id,
|
|
@@ -12005,13 +12153,13 @@ var Input = React13.forwardRef(
|
|
|
12005
12153
|
children: label
|
|
12006
12154
|
}
|
|
12007
12155
|
) : null,
|
|
12008
|
-
/* @__PURE__ */ (0,
|
|
12156
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
12009
12157
|
"div",
|
|
12010
12158
|
{
|
|
12011
12159
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
12012
12160
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
12013
12161
|
children: [
|
|
12014
|
-
/* @__PURE__ */ (0,
|
|
12162
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
12015
12163
|
"input",
|
|
12016
12164
|
{
|
|
12017
12165
|
id,
|
|
@@ -12027,23 +12175,23 @@ var Input = React13.forwardRef(
|
|
|
12027
12175
|
ref
|
|
12028
12176
|
}
|
|
12029
12177
|
),
|
|
12030
|
-
icon ? /* @__PURE__ */ (0,
|
|
12178
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { css: inputIcon, children: icon }) : null
|
|
12031
12179
|
]
|
|
12032
12180
|
}
|
|
12033
12181
|
),
|
|
12034
|
-
caption ? /* @__PURE__ */ (0,
|
|
12035
|
-
errorMessage ? /* @__PURE__ */ (0,
|
|
12036
|
-
warningMessage && !errorMessage ? /* @__PURE__ */ (0,
|
|
12182
|
+
caption ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Caption, { testId: captionTestId, children: caption }) : null,
|
|
12183
|
+
errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ErrorMessage, { message: errorMessage, testId: errorTestId }) : null,
|
|
12184
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(WarningMessage, { message: warningMessage }) : null
|
|
12037
12185
|
] });
|
|
12038
12186
|
}
|
|
12039
12187
|
);
|
|
12040
12188
|
|
|
12041
12189
|
// src/components/Input/InputComboBox.tsx
|
|
12042
12190
|
var import_react_select = __toESM(require("react-select"));
|
|
12043
|
-
var
|
|
12191
|
+
var import_jsx_runtime41 = require("@emotion/react/jsx-runtime");
|
|
12044
12192
|
function InputComboBox(props) {
|
|
12045
12193
|
var _a;
|
|
12046
|
-
return /* @__PURE__ */ (0,
|
|
12194
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
12047
12195
|
import_react_select.default,
|
|
12048
12196
|
{
|
|
12049
12197
|
...props,
|
|
@@ -12172,17 +12320,17 @@ function InputComboBox(props) {
|
|
|
12172
12320
|
}
|
|
12173
12321
|
|
|
12174
12322
|
// src/components/Input/InputInlineSelect.tsx
|
|
12175
|
-
var
|
|
12176
|
-
var
|
|
12177
|
-
var
|
|
12323
|
+
var import_react48 = require("@emotion/react");
|
|
12324
|
+
var import_react49 = require("react");
|
|
12325
|
+
var import_cg9 = require("react-icons/cg");
|
|
12178
12326
|
|
|
12179
12327
|
// src/components/Input/styles/InputInlineSelect.styles.ts
|
|
12180
|
-
var
|
|
12181
|
-
var inlineSelectContainer =
|
|
12328
|
+
var import_react47 = require("@emotion/react");
|
|
12329
|
+
var inlineSelectContainer = import_react47.css`
|
|
12182
12330
|
margin-inline: auto;
|
|
12183
12331
|
max-width: fit-content;
|
|
12184
12332
|
`;
|
|
12185
|
-
var inlineSelectBtn =
|
|
12333
|
+
var inlineSelectBtn = import_react47.css`
|
|
12186
12334
|
align-items: center;
|
|
12187
12335
|
background: var(--brand-secondary-3);
|
|
12188
12336
|
border: 2px solid var(--brand-secondary-3);
|
|
@@ -12206,7 +12354,7 @@ var inlineSelectBtn = import_react44.css`
|
|
|
12206
12354
|
outline: 2px solid var(--brand-secondary-1);
|
|
12207
12355
|
}
|
|
12208
12356
|
`;
|
|
12209
|
-
var inlineSelectMenu =
|
|
12357
|
+
var inlineSelectMenu = import_react47.css`
|
|
12210
12358
|
background: var(--white);
|
|
12211
12359
|
border: 1px solid var(--brand-secondary-3);
|
|
12212
12360
|
border-top: none;
|
|
@@ -12217,7 +12365,7 @@ var inlineSelectMenu = import_react44.css`
|
|
|
12217
12365
|
inset: auto 0;
|
|
12218
12366
|
transform: translateY(-0.2rem);
|
|
12219
12367
|
`;
|
|
12220
|
-
var inlineSelectBtnOptions =
|
|
12368
|
+
var inlineSelectBtnOptions = import_react47.css`
|
|
12221
12369
|
cursor: pointer;
|
|
12222
12370
|
display: block;
|
|
12223
12371
|
font-size: var(--fs-sm);
|
|
@@ -12233,7 +12381,7 @@ var inlineSelectBtnOptions = import_react44.css`
|
|
|
12233
12381
|
background: var(--gray-50);
|
|
12234
12382
|
}
|
|
12235
12383
|
`;
|
|
12236
|
-
var inlineSelectMenuClosed =
|
|
12384
|
+
var inlineSelectMenuClosed = import_react47.css`
|
|
12237
12385
|
position: absolute;
|
|
12238
12386
|
overflow: hidden;
|
|
12239
12387
|
height: 1px;
|
|
@@ -12243,7 +12391,7 @@ var inlineSelectMenuClosed = import_react44.css`
|
|
|
12243
12391
|
`;
|
|
12244
12392
|
|
|
12245
12393
|
// src/components/Input/InputInlineSelect.tsx
|
|
12246
|
-
var
|
|
12394
|
+
var import_jsx_runtime42 = require("@emotion/react/jsx-runtime");
|
|
12247
12395
|
var InputInlineSelect = ({
|
|
12248
12396
|
classNameContainer,
|
|
12249
12397
|
options,
|
|
@@ -12253,21 +12401,21 @@ var InputInlineSelect = ({
|
|
|
12253
12401
|
...props
|
|
12254
12402
|
}) => {
|
|
12255
12403
|
var _a;
|
|
12256
|
-
const [menuVisible, setMenuVisible] = (0,
|
|
12257
|
-
const divRef = (0,
|
|
12404
|
+
const [menuVisible, setMenuVisible] = (0, import_react49.useState)(false);
|
|
12405
|
+
const divRef = (0, import_react49.useRef)(null);
|
|
12258
12406
|
useOutsideClick(divRef, () => setMenuVisible(false));
|
|
12259
12407
|
const selected = options.find((option) => option.value === value);
|
|
12260
|
-
return /* @__PURE__ */ (0,
|
|
12408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
12261
12409
|
"div",
|
|
12262
12410
|
{
|
|
12263
12411
|
ref: divRef,
|
|
12264
|
-
css: !classNameContainer ? inlineSelectContainer :
|
|
12412
|
+
css: !classNameContainer ? inlineSelectContainer : import_react48.css`
|
|
12265
12413
|
max-width: fit-content;
|
|
12266
12414
|
${typeof classNameContainer === "object" ? classNameContainer : void 0}
|
|
12267
12415
|
`,
|
|
12268
12416
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
12269
12417
|
children: [
|
|
12270
|
-
/* @__PURE__ */ (0,
|
|
12418
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
12271
12419
|
"button",
|
|
12272
12420
|
{
|
|
12273
12421
|
type: "button",
|
|
@@ -12281,18 +12429,18 @@ var InputInlineSelect = ({
|
|
|
12281
12429
|
disabled,
|
|
12282
12430
|
...props,
|
|
12283
12431
|
children: [
|
|
12284
|
-
/* @__PURE__ */ (0,
|
|
12285
|
-
disabled ? null : /* @__PURE__ */ (0,
|
|
12432
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { children: (_a = selected == null ? void 0 : selected.label) != null ? _a : value }),
|
|
12433
|
+
disabled ? null : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon, { icon: import_cg9.CgChevronDown, iconColor: "currentColor", size: 24 })
|
|
12286
12434
|
]
|
|
12287
12435
|
}
|
|
12288
12436
|
),
|
|
12289
|
-
/* @__PURE__ */ (0,
|
|
12437
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
12290
12438
|
"div",
|
|
12291
12439
|
{
|
|
12292
12440
|
id: `and-or-${props.id}`,
|
|
12293
12441
|
css: [inlineSelectMenu, menuVisible ? void 0 : inlineSelectMenuClosed],
|
|
12294
12442
|
"aria-hidden": !menuVisible,
|
|
12295
|
-
children: options.map((opt) => /* @__PURE__ */ (0,
|
|
12443
|
+
children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
12296
12444
|
"button",
|
|
12297
12445
|
{
|
|
12298
12446
|
type: "button",
|
|
@@ -12313,7 +12461,7 @@ var InputInlineSelect = ({
|
|
|
12313
12461
|
};
|
|
12314
12462
|
|
|
12315
12463
|
// src/components/Input/InputKeywordSearch.tsx
|
|
12316
|
-
var
|
|
12464
|
+
var import_jsx_runtime43 = require("@emotion/react/jsx-runtime");
|
|
12317
12465
|
var InputKeywordSearch = ({
|
|
12318
12466
|
onSearchTextChanged,
|
|
12319
12467
|
disabled = false,
|
|
@@ -12332,7 +12480,7 @@ var InputKeywordSearch = ({
|
|
|
12332
12480
|
e.preventDefault();
|
|
12333
12481
|
}
|
|
12334
12482
|
};
|
|
12335
|
-
return /* @__PURE__ */ (0,
|
|
12483
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
12336
12484
|
Input,
|
|
12337
12485
|
{
|
|
12338
12486
|
type: "text",
|
|
@@ -12340,7 +12488,7 @@ var InputKeywordSearch = ({
|
|
|
12340
12488
|
placeholder,
|
|
12341
12489
|
showLabel: false,
|
|
12342
12490
|
value,
|
|
12343
|
-
icon: value ? /* @__PURE__ */ (0,
|
|
12491
|
+
icon: value ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("button", { css: inputSearchCloseBtn, onClick: onClear, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon, { icon: "close", iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon, { icon: "search", iconColor: "gray", size: "1rem" }),
|
|
12344
12492
|
onChange: handleSearchTextChanged,
|
|
12345
12493
|
onKeyPress: preventSubmitOnField,
|
|
12346
12494
|
disabled,
|
|
@@ -12351,7 +12499,7 @@ var InputKeywordSearch = ({
|
|
|
12351
12499
|
};
|
|
12352
12500
|
|
|
12353
12501
|
// src/components/Input/InputSelect.tsx
|
|
12354
|
-
var
|
|
12502
|
+
var import_jsx_runtime44 = require("@emotion/react/jsx-runtime");
|
|
12355
12503
|
var InputSelect = ({
|
|
12356
12504
|
label,
|
|
12357
12505
|
defaultOption,
|
|
@@ -12367,13 +12515,13 @@ var InputSelect = ({
|
|
|
12367
12515
|
classNameLabel,
|
|
12368
12516
|
...props
|
|
12369
12517
|
}) => {
|
|
12370
|
-
return /* @__PURE__ */ (0,
|
|
12518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
12371
12519
|
"div",
|
|
12372
12520
|
{
|
|
12373
12521
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
12374
12522
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
12375
12523
|
children: [
|
|
12376
|
-
showLabel ? /* @__PURE__ */ (0,
|
|
12524
|
+
showLabel ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_jsx_runtime44.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
12377
12525
|
Label,
|
|
12378
12526
|
{
|
|
12379
12527
|
htmlFor: props.id,
|
|
@@ -12385,7 +12533,7 @@ var InputSelect = ({
|
|
|
12385
12533
|
]
|
|
12386
12534
|
}
|
|
12387
12535
|
) }) : null,
|
|
12388
|
-
/* @__PURE__ */ (0,
|
|
12536
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
12389
12537
|
"select",
|
|
12390
12538
|
{
|
|
12391
12539
|
title: label,
|
|
@@ -12400,21 +12548,21 @@ var InputSelect = ({
|
|
|
12400
12548
|
className: typeof classNameControl === "string" ? classNameControl : "",
|
|
12401
12549
|
...props,
|
|
12402
12550
|
children: [
|
|
12403
|
-
defaultOption ? /* @__PURE__ */ (0,
|
|
12404
|
-
options.map((opt, index) => /* @__PURE__ */ (0,
|
|
12551
|
+
defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("option", { value: "", children: defaultOption }) : null,
|
|
12552
|
+
options.map((opt, index) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("option", { value: opt.label, ...opt }, index))
|
|
12405
12553
|
]
|
|
12406
12554
|
}
|
|
12407
12555
|
),
|
|
12408
|
-
caption ? /* @__PURE__ */ (0,
|
|
12409
|
-
errorMessage ? /* @__PURE__ */ (0,
|
|
12410
|
-
warningMessage && !errorMessage ? /* @__PURE__ */ (0,
|
|
12556
|
+
caption ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Caption, { children: caption }) : null,
|
|
12557
|
+
errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ErrorMessage, { message: errorMessage }) : null,
|
|
12558
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(WarningMessage, { message: warningMessage }) : null
|
|
12411
12559
|
]
|
|
12412
12560
|
}
|
|
12413
12561
|
);
|
|
12414
12562
|
};
|
|
12415
12563
|
|
|
12416
12564
|
// src/components/Input/InputToggle.tsx
|
|
12417
|
-
var
|
|
12565
|
+
var import_jsx_runtime45 = require("@emotion/react/jsx-runtime");
|
|
12418
12566
|
var InputToggle = ({
|
|
12419
12567
|
label,
|
|
12420
12568
|
type,
|
|
@@ -12428,25 +12576,25 @@ var InputToggle = ({
|
|
|
12428
12576
|
fontWeight = "medium",
|
|
12429
12577
|
...props
|
|
12430
12578
|
}) => {
|
|
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,
|
|
12579
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(Label, { css: [inputToggleLabel, disabled ? inputDisabled : void 0], "data-test-id": testId, children: [
|
|
12580
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("input", { type, css: toggleInput, checked, name, disabled, ...props }),
|
|
12581
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { css: inlineLabel(fontWeight), dangerouslySetInnerHTML: { __html: label } }),
|
|
12582
|
+
caption || errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("span", { css: inputToggleMessageContainer, children: [
|
|
12583
|
+
caption ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Caption, { children: caption }) : null,
|
|
12584
|
+
errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(ErrorMessage, { message: errorMessage }) : null,
|
|
12585
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(WarningMessage, { message: warningMessage }) : null
|
|
12438
12586
|
] }) : null
|
|
12439
12587
|
] });
|
|
12440
12588
|
};
|
|
12441
12589
|
|
|
12442
12590
|
// src/components/Input/Legend.tsx
|
|
12443
|
-
var
|
|
12591
|
+
var import_jsx_runtime46 = require("@emotion/react/jsx-runtime");
|
|
12444
12592
|
var Legend = ({ children }) => {
|
|
12445
|
-
return /* @__PURE__ */ (0,
|
|
12593
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("legend", { css: fieldsetLegend, children });
|
|
12446
12594
|
};
|
|
12447
12595
|
|
|
12448
12596
|
// src/components/Input/Textarea.tsx
|
|
12449
|
-
var
|
|
12597
|
+
var import_jsx_runtime47 = require("@emotion/react/jsx-runtime");
|
|
12450
12598
|
var Textarea = ({
|
|
12451
12599
|
label,
|
|
12452
12600
|
icon,
|
|
@@ -12457,10 +12605,10 @@ var Textarea = ({
|
|
|
12457
12605
|
warningMessage,
|
|
12458
12606
|
...props
|
|
12459
12607
|
}) => {
|
|
12460
|
-
return /* @__PURE__ */ (0,
|
|
12461
|
-
showLabel ? /* @__PURE__ */ (0,
|
|
12462
|
-
/* @__PURE__ */ (0,
|
|
12463
|
-
/* @__PURE__ */ (0,
|
|
12608
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
|
|
12609
|
+
showLabel ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("label", { htmlFor: id, css: [labelText], children: label }) : null,
|
|
12610
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { css: [inputContainer], children: [
|
|
12611
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
12464
12612
|
"textarea",
|
|
12465
12613
|
{
|
|
12466
12614
|
id,
|
|
@@ -12469,17 +12617,17 @@ var Textarea = ({
|
|
|
12469
12617
|
...props
|
|
12470
12618
|
}
|
|
12471
12619
|
),
|
|
12472
|
-
icon ? /* @__PURE__ */ (0,
|
|
12620
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { css: inputIcon, children: icon }) : null
|
|
12473
12621
|
] }),
|
|
12474
|
-
caption ? /* @__PURE__ */ (0,
|
|
12475
|
-
errorMessage ? /* @__PURE__ */ (0,
|
|
12476
|
-
warningMessage && !errorMessage ? /* @__PURE__ */ (0,
|
|
12622
|
+
caption ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Caption, { children: caption }) : null,
|
|
12623
|
+
errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ErrorMessage, { message: errorMessage }) : null,
|
|
12624
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(WarningMessage, { message: warningMessage }) : null
|
|
12477
12625
|
] });
|
|
12478
12626
|
};
|
|
12479
12627
|
|
|
12480
12628
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
12481
|
-
var
|
|
12482
|
-
var
|
|
12629
|
+
var import_react50 = __toESM(require("@monaco-editor/react"));
|
|
12630
|
+
var import_jsx_runtime48 = require("@emotion/react/jsx-runtime");
|
|
12483
12631
|
var minEditorHeightPx = 150;
|
|
12484
12632
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
12485
12633
|
let effectiveHeight = height;
|
|
@@ -12489,8 +12637,8 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
12489
12637
|
if (typeof effectiveHeight === "number" && effectiveHeight < minEditorHeightPx) {
|
|
12490
12638
|
effectiveHeight = minEditorHeightPx;
|
|
12491
12639
|
}
|
|
12492
|
-
return /* @__PURE__ */ (0,
|
|
12493
|
-
|
|
12640
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
12641
|
+
import_react50.default,
|
|
12494
12642
|
{
|
|
12495
12643
|
height: effectiveHeight,
|
|
12496
12644
|
className: "uniform-json-editor",
|
|
@@ -12526,8 +12674,8 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
12526
12674
|
};
|
|
12527
12675
|
|
|
12528
12676
|
// src/components/Layout/styles/Container.styles.ts
|
|
12529
|
-
var
|
|
12530
|
-
var Container = ({ backgroundColor, border, rounded, padding, margin }) =>
|
|
12677
|
+
var import_react51 = require("@emotion/react");
|
|
12678
|
+
var Container = ({ backgroundColor, border, rounded, padding, margin }) => import_react51.css`
|
|
12531
12679
|
background: var(--${backgroundColor});
|
|
12532
12680
|
${border ? "border: 1px solid var(--gray-300)" : void 0};
|
|
12533
12681
|
${rounded ? `border-radius: var(--${rounded})` : void 0};
|
|
@@ -12536,7 +12684,7 @@ var Container = ({ backgroundColor, border, rounded, padding, margin }) => impor
|
|
|
12536
12684
|
`;
|
|
12537
12685
|
|
|
12538
12686
|
// src/components/Layout/Container.tsx
|
|
12539
|
-
var
|
|
12687
|
+
var import_jsx_runtime49 = require("@emotion/react/jsx-runtime");
|
|
12540
12688
|
var Container2 = ({
|
|
12541
12689
|
tag = "div",
|
|
12542
12690
|
backgroundColor = "white",
|
|
@@ -12548,7 +12696,7 @@ var Container2 = ({
|
|
|
12548
12696
|
...props
|
|
12549
12697
|
}) => {
|
|
12550
12698
|
const Tag = tag;
|
|
12551
|
-
return /* @__PURE__ */ (0,
|
|
12699
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
12552
12700
|
Tag,
|
|
12553
12701
|
{
|
|
12554
12702
|
css: Container({
|
|
@@ -12565,54 +12713,54 @@ var Container2 = ({
|
|
|
12565
12713
|
};
|
|
12566
12714
|
|
|
12567
12715
|
// src/components/Layout/styles/VerticalRhythm.styles.ts
|
|
12568
|
-
var
|
|
12569
|
-
var VerticalRhythmContainer = (size) =>
|
|
12716
|
+
var import_react52 = require("@emotion/react");
|
|
12717
|
+
var VerticalRhythmContainer = (size) => import_react52.css`
|
|
12570
12718
|
display: flex;
|
|
12571
12719
|
flex-direction: column;
|
|
12572
12720
|
gap: var(--spacing-${size});
|
|
12573
12721
|
`;
|
|
12574
12722
|
|
|
12575
12723
|
// src/components/Layout/VerticalRhythm.tsx
|
|
12576
|
-
var
|
|
12724
|
+
var import_jsx_runtime50 = require("@emotion/react/jsx-runtime");
|
|
12577
12725
|
var VerticalRhythm = ({ tag = "div", gap = "base", children, ...props }) => {
|
|
12578
12726
|
const Tag = tag;
|
|
12579
|
-
return /* @__PURE__ */ (0,
|
|
12727
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Tag, { css: VerticalRhythmContainer(gap), ...props, children });
|
|
12580
12728
|
};
|
|
12581
12729
|
|
|
12582
12730
|
// src/components/LimitsBar/LimitsBar.styles.ts
|
|
12583
|
-
var
|
|
12584
|
-
var LimitsBarContainer =
|
|
12731
|
+
var import_react53 = require("@emotion/react");
|
|
12732
|
+
var LimitsBarContainer = import_react53.css`
|
|
12585
12733
|
margin-block: var(--spacing-sm);
|
|
12586
12734
|
`;
|
|
12587
|
-
var LimitsBarProgressBar =
|
|
12735
|
+
var LimitsBarProgressBar = import_react53.css`
|
|
12588
12736
|
background: var(--gray-100);
|
|
12589
12737
|
margin-top: var(--spacing-sm);
|
|
12590
12738
|
position: relative;
|
|
12591
12739
|
overflow: hidden;
|
|
12592
12740
|
height: 0.25rem;
|
|
12593
12741
|
`;
|
|
12594
|
-
var LimitsBarProgressBarLine =
|
|
12742
|
+
var LimitsBarProgressBarLine = import_react53.css`
|
|
12595
12743
|
position: absolute;
|
|
12596
12744
|
inset: 0;
|
|
12597
12745
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
12598
12746
|
`;
|
|
12599
|
-
var LimitsBarLabelContainer =
|
|
12747
|
+
var LimitsBarLabelContainer = import_react53.css`
|
|
12600
12748
|
display: flex;
|
|
12601
12749
|
justify-content: space-between;
|
|
12602
12750
|
font-weight: var(--fw-bold);
|
|
12603
12751
|
`;
|
|
12604
|
-
var LimitsBarLabel =
|
|
12752
|
+
var LimitsBarLabel = import_react53.css`
|
|
12605
12753
|
font-size: var(--fs-baase);
|
|
12606
12754
|
`;
|
|
12607
|
-
var LimitsBarBgColor = (statusColor) =>
|
|
12755
|
+
var LimitsBarBgColor = (statusColor) => import_react53.css`
|
|
12608
12756
|
background: ${statusColor};
|
|
12609
12757
|
`;
|
|
12610
|
-
var LimitsBarTextColor = (statusColor) =>
|
|
12758
|
+
var LimitsBarTextColor = (statusColor) => import_react53.css`
|
|
12611
12759
|
color: ${statusColor};
|
|
12612
12760
|
`;
|
|
12613
12761
|
|
|
12614
12762
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
12615
|
-
var
|
|
12763
|
+
var import_jsx_runtime51 = require("@emotion/react/jsx-runtime");
|
|
12616
12764
|
var LimitsBar = ({ current, max, label }) => {
|
|
12617
12765
|
const maxPercentage = 100;
|
|
12618
12766
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -12623,16 +12771,16 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
12623
12771
|
danger: "var(--brand-secondary-5)"
|
|
12624
12772
|
};
|
|
12625
12773
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
12626
|
-
return /* @__PURE__ */ (0,
|
|
12627
|
-
/* @__PURE__ */ (0,
|
|
12628
|
-
/* @__PURE__ */ (0,
|
|
12629
|
-
/* @__PURE__ */ (0,
|
|
12774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { css: LimitsBarContainer, children: [
|
|
12775
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { css: LimitsBarLabelContainer, children: [
|
|
12776
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { css: LimitsBarLabel, children: label }),
|
|
12777
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
12630
12778
|
current,
|
|
12631
12779
|
" of ",
|
|
12632
12780
|
max
|
|
12633
12781
|
] })
|
|
12634
12782
|
] }),
|
|
12635
|
-
/* @__PURE__ */ (0,
|
|
12783
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
12636
12784
|
"div",
|
|
12637
12785
|
{
|
|
12638
12786
|
role: "progressbar",
|
|
@@ -12641,7 +12789,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
12641
12789
|
"aria-valuemax": max,
|
|
12642
12790
|
"aria-valuetext": `${current} of ${max}`,
|
|
12643
12791
|
css: LimitsBarProgressBar,
|
|
12644
|
-
children: /* @__PURE__ */ (0,
|
|
12792
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
12645
12793
|
"span",
|
|
12646
12794
|
{
|
|
12647
12795
|
role: "presentation",
|
|
@@ -12657,8 +12805,8 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
12657
12805
|
};
|
|
12658
12806
|
|
|
12659
12807
|
// src/components/LinkList/LinkList.styles.ts
|
|
12660
|
-
var
|
|
12661
|
-
var LinkListContainer =
|
|
12808
|
+
var import_react54 = require("@emotion/react");
|
|
12809
|
+
var LinkListContainer = import_react54.css`
|
|
12662
12810
|
padding: var(--spacing-md) var(--spacing-lg) var(--spacing-2xl);
|
|
12663
12811
|
${mq("sm")} {
|
|
12664
12812
|
grid-column: last-col / span 1;
|
|
@@ -12667,23 +12815,23 @@ var LinkListContainer = import_react51.css`
|
|
|
12667
12815
|
`;
|
|
12668
12816
|
|
|
12669
12817
|
// src/components/LinkList/LinkList.tsx
|
|
12670
|
-
var
|
|
12818
|
+
var import_jsx_runtime52 = require("@emotion/react/jsx-runtime");
|
|
12671
12819
|
var LinkList = ({ title, children, ...props }) => {
|
|
12672
|
-
return /* @__PURE__ */ (0,
|
|
12673
|
-
/* @__PURE__ */ (0,
|
|
12820
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { css: LinkListContainer, ...props, children: [
|
|
12821
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Heading, { level: 3, children: title }),
|
|
12674
12822
|
children
|
|
12675
12823
|
] });
|
|
12676
12824
|
};
|
|
12677
12825
|
|
|
12678
12826
|
// src/components/List/ScrollableList.tsx
|
|
12679
|
-
var
|
|
12827
|
+
var import_react56 = require("@emotion/react");
|
|
12680
12828
|
|
|
12681
12829
|
// src/components/List/styles/ScrollableList.styles.ts
|
|
12682
|
-
var
|
|
12683
|
-
var ScrollableListContainer =
|
|
12830
|
+
var import_react55 = require("@emotion/react");
|
|
12831
|
+
var ScrollableListContainer = import_react55.css`
|
|
12684
12832
|
position: relative;
|
|
12685
12833
|
`;
|
|
12686
|
-
var ScrollableListInner =
|
|
12834
|
+
var ScrollableListInner = import_react55.css`
|
|
12687
12835
|
background: var(--gray-50);
|
|
12688
12836
|
border-top: 1px solid var(--gray-200);
|
|
12689
12837
|
border-bottom: 1px solid var(--gray-200);
|
|
@@ -12701,28 +12849,28 @@ var ScrollableListInner = import_react52.css`
|
|
|
12701
12849
|
`;
|
|
12702
12850
|
|
|
12703
12851
|
// src/components/List/ScrollableList.tsx
|
|
12704
|
-
var
|
|
12852
|
+
var import_jsx_runtime53 = require("@emotion/react/jsx-runtime");
|
|
12705
12853
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
12706
|
-
return /* @__PURE__ */ (0,
|
|
12707
|
-
label ? /* @__PURE__ */ (0,
|
|
12854
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
12855
|
+
label ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
12708
12856
|
"span",
|
|
12709
12857
|
{
|
|
12710
|
-
css:
|
|
12858
|
+
css: import_react56.css`
|
|
12711
12859
|
${labelText}
|
|
12712
12860
|
`,
|
|
12713
12861
|
children: label
|
|
12714
12862
|
}
|
|
12715
12863
|
) : null,
|
|
12716
|
-
/* @__PURE__ */ (0,
|
|
12864
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
12717
12865
|
] });
|
|
12718
12866
|
};
|
|
12719
12867
|
|
|
12720
12868
|
// src/components/List/ScrollableListInputItem.tsx
|
|
12721
|
-
var
|
|
12869
|
+
var import_cg10 = require("react-icons/cg");
|
|
12722
12870
|
|
|
12723
12871
|
// src/components/List/styles/ScrollableListItem.styles.ts
|
|
12724
|
-
var
|
|
12725
|
-
var ScrollableListItemContainer =
|
|
12872
|
+
var import_react57 = require("@emotion/react");
|
|
12873
|
+
var ScrollableListItemContainer = import_react57.css`
|
|
12726
12874
|
align-items: center;
|
|
12727
12875
|
background: var(--white);
|
|
12728
12876
|
border-radius: var(--rounded-base);
|
|
@@ -12732,10 +12880,10 @@ var ScrollableListItemContainer = import_react54.css`
|
|
|
12732
12880
|
min-height: 52px;
|
|
12733
12881
|
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
12734
12882
|
`;
|
|
12735
|
-
var ScrollableListItemActive =
|
|
12883
|
+
var ScrollableListItemActive = import_react57.css`
|
|
12736
12884
|
border-color: var(--brand-secondary-3);
|
|
12737
12885
|
`;
|
|
12738
|
-
var ScrollableListItemBtn =
|
|
12886
|
+
var ScrollableListItemBtn = import_react57.css`
|
|
12739
12887
|
align-items: center;
|
|
12740
12888
|
border: none;
|
|
12741
12889
|
background: transparent;
|
|
@@ -12750,26 +12898,26 @@ var ScrollableListItemBtn = import_react54.css`
|
|
|
12750
12898
|
outline: none;
|
|
12751
12899
|
}
|
|
12752
12900
|
`;
|
|
12753
|
-
var ScrollableListInputLabel =
|
|
12901
|
+
var ScrollableListInputLabel = import_react57.css`
|
|
12754
12902
|
align-items: center;
|
|
12755
12903
|
display: flex;
|
|
12756
12904
|
padding: var(--spacing-xs) var(--spacing-base) var(--spacing-xs);
|
|
12757
12905
|
flex-grow: 1;
|
|
12758
12906
|
`;
|
|
12759
|
-
var ScrollableListInputText =
|
|
12907
|
+
var ScrollableListInputText = import_react57.css`
|
|
12760
12908
|
align-items: center;
|
|
12761
12909
|
display: flex;
|
|
12762
12910
|
gap: var(--spacing-sm);
|
|
12763
12911
|
font-weight: var(--fw-bold);
|
|
12764
12912
|
flex-grow: 1;
|
|
12765
12913
|
`;
|
|
12766
|
-
var ScrollableListHiddenInput =
|
|
12914
|
+
var ScrollableListHiddenInput = import_react57.css`
|
|
12767
12915
|
position: absolute;
|
|
12768
12916
|
height: 0;
|
|
12769
12917
|
width: 0;
|
|
12770
12918
|
opacity: 0;
|
|
12771
12919
|
`;
|
|
12772
|
-
var ScrollableListIcon =
|
|
12920
|
+
var ScrollableListIcon = import_react57.css`
|
|
12773
12921
|
border-radius: var(--rounded-full);
|
|
12774
12922
|
background: var(--brand-secondary-3);
|
|
12775
12923
|
color: var(--white);
|
|
@@ -12778,7 +12926,7 @@ var ScrollableListIcon = import_react54.css`
|
|
|
12778
12926
|
`;
|
|
12779
12927
|
|
|
12780
12928
|
// src/components/List/ScrollableListInputItem.tsx
|
|
12781
|
-
var
|
|
12929
|
+
var import_jsx_runtime54 = require("@emotion/react/jsx-runtime");
|
|
12782
12930
|
var ScrollableListInputItem = ({
|
|
12783
12931
|
label,
|
|
12784
12932
|
icon,
|
|
@@ -12786,23 +12934,23 @@ var ScrollableListInputItem = ({
|
|
|
12786
12934
|
children,
|
|
12787
12935
|
labelTestId
|
|
12788
12936
|
}) => {
|
|
12789
|
-
return /* @__PURE__ */ (0,
|
|
12790
|
-
/* @__PURE__ */ (0,
|
|
12937
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { css: [ScrollableListItemContainer, active ? ScrollableListItemActive : void 0], children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("label", { "data-test-id": labelTestId, css: ScrollableListInputLabel, children: [
|
|
12938
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("span", { css: ScrollableListInputText, children: [
|
|
12791
12939
|
icon,
|
|
12792
12940
|
label
|
|
12793
12941
|
] }),
|
|
12794
|
-
/* @__PURE__ */ (0,
|
|
12795
|
-
active ? /* @__PURE__ */ (0,
|
|
12942
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { css: ScrollableListHiddenInput, children }),
|
|
12943
|
+
active ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { icon: import_cg10.CgCheck, iconColor: "currentColor", css: ScrollableListIcon, size: 24 }) : null
|
|
12796
12944
|
] }) });
|
|
12797
12945
|
};
|
|
12798
12946
|
|
|
12799
12947
|
// src/components/List/ScrollableListItem.tsx
|
|
12800
|
-
var
|
|
12801
|
-
var
|
|
12948
|
+
var import_react58 = require("@emotion/react");
|
|
12949
|
+
var import_jsx_runtime55 = require("@emotion/react/jsx-runtime");
|
|
12802
12950
|
var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
12803
|
-
return /* @__PURE__ */ (0,
|
|
12804
|
-
/* @__PURE__ */ (0,
|
|
12805
|
-
/* @__PURE__ */ (0,
|
|
12951
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { css: [ScrollableListItemContainer, active ? ScrollableListItemActive : void 0], children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
12952
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { children: buttonText }),
|
|
12953
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
12806
12954
|
"svg",
|
|
12807
12955
|
{
|
|
12808
12956
|
width: "24",
|
|
@@ -12811,14 +12959,14 @@ var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
|
12811
12959
|
fill: "currentColor",
|
|
12812
12960
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12813
12961
|
"aria-hidden": !active,
|
|
12814
|
-
css:
|
|
12962
|
+
css: import_react58.css`
|
|
12815
12963
|
color: var(--brand-secondary-3);
|
|
12816
12964
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
12817
|
-
${active ?
|
|
12965
|
+
${active ? import_react58.css`
|
|
12818
12966
|
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
12819
12967
|
` : "opacity: 0;"}
|
|
12820
12968
|
`,
|
|
12821
|
-
children: /* @__PURE__ */ (0,
|
|
12969
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
12822
12970
|
"path",
|
|
12823
12971
|
{
|
|
12824
12972
|
fillRule: "evenodd",
|
|
@@ -12832,8 +12980,8 @@ var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
|
12832
12980
|
};
|
|
12833
12981
|
|
|
12834
12982
|
// src/components/LoadingIndicator/LoadingIndicator.styles.ts
|
|
12835
|
-
var
|
|
12836
|
-
var bounceFade =
|
|
12983
|
+
var import_react59 = require("@emotion/react");
|
|
12984
|
+
var bounceFade = import_react59.keyframes`
|
|
12837
12985
|
0%, 100% {
|
|
12838
12986
|
opacity: 1.0;
|
|
12839
12987
|
transform: translateY(0);
|
|
@@ -12850,11 +12998,11 @@ var bounceFade = import_react56.keyframes`
|
|
|
12850
12998
|
transform: translateY(-5px);
|
|
12851
12999
|
}
|
|
12852
13000
|
`;
|
|
12853
|
-
var loader =
|
|
13001
|
+
var loader = import_react59.css`
|
|
12854
13002
|
display: inline-flex;
|
|
12855
13003
|
justify-content: center;
|
|
12856
13004
|
`;
|
|
12857
|
-
var loadingDot =
|
|
13005
|
+
var loadingDot = import_react59.css`
|
|
12858
13006
|
background-color: var(--gray-700);
|
|
12859
13007
|
display: block;
|
|
12860
13008
|
border-radius: var(--rounded-full);
|
|
@@ -12878,21 +13026,21 @@ var loadingDot = import_react56.css`
|
|
|
12878
13026
|
`;
|
|
12879
13027
|
|
|
12880
13028
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
12881
|
-
var
|
|
13029
|
+
var import_jsx_runtime56 = require("@emotion/react/jsx-runtime");
|
|
12882
13030
|
var LoadingIndicator = () => {
|
|
12883
|
-
return /* @__PURE__ */ (0,
|
|
12884
|
-
/* @__PURE__ */ (0,
|
|
12885
|
-
/* @__PURE__ */ (0,
|
|
12886
|
-
/* @__PURE__ */ (0,
|
|
13031
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { css: loader, role: "alert", "data-test-id": "loading-indicator", children: [
|
|
13032
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { css: loadingDot }),
|
|
13033
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { css: loadingDot }),
|
|
13034
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { css: loadingDot })
|
|
12887
13035
|
] });
|
|
12888
13036
|
};
|
|
12889
13037
|
|
|
12890
13038
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
12891
|
-
var
|
|
13039
|
+
var import_react61 = require("react");
|
|
12892
13040
|
|
|
12893
13041
|
// src/components/LoadingOverlay/LoadingOverlay.styles.ts
|
|
12894
|
-
var
|
|
12895
|
-
var loadingOverlayContainer =
|
|
13042
|
+
var import_react60 = require("@emotion/react");
|
|
13043
|
+
var loadingOverlayContainer = import_react60.css`
|
|
12896
13044
|
position: absolute;
|
|
12897
13045
|
inset: 0;
|
|
12898
13046
|
overflow: hidden;
|
|
@@ -12900,30 +13048,30 @@ var loadingOverlayContainer = import_react57.css`
|
|
|
12900
13048
|
padding: var(--spacing-xl);
|
|
12901
13049
|
overflow-y: auto;
|
|
12902
13050
|
`;
|
|
12903
|
-
var loadingOverlayVisible =
|
|
13051
|
+
var loadingOverlayVisible = import_react60.css`
|
|
12904
13052
|
display: flex;
|
|
12905
13053
|
`;
|
|
12906
|
-
var loadingOverlayHidden =
|
|
13054
|
+
var loadingOverlayHidden = import_react60.css`
|
|
12907
13055
|
display: none;
|
|
12908
13056
|
`;
|
|
12909
|
-
var loadingOverlayBackground = (bgColor) =>
|
|
13057
|
+
var loadingOverlayBackground = (bgColor) => import_react60.css`
|
|
12910
13058
|
background: ${bgColor};
|
|
12911
13059
|
opacity: 0.92;
|
|
12912
13060
|
position: absolute;
|
|
12913
13061
|
inset: 0 0;
|
|
12914
13062
|
`;
|
|
12915
|
-
var loadingOverlayBody =
|
|
13063
|
+
var loadingOverlayBody = import_react60.css`
|
|
12916
13064
|
align-items: center;
|
|
12917
13065
|
display: flex;
|
|
12918
13066
|
flex-direction: column;
|
|
12919
13067
|
`;
|
|
12920
|
-
var loadingOverlayMessage =
|
|
13068
|
+
var loadingOverlayMessage = import_react60.css`
|
|
12921
13069
|
color: var(--gray-600);
|
|
12922
13070
|
margin: var(--spacing-base) 0 0;
|
|
12923
13071
|
`;
|
|
12924
13072
|
|
|
12925
13073
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
12926
|
-
var
|
|
13074
|
+
var import_jsx_runtime57 = require("@emotion/react/jsx-runtime");
|
|
12927
13075
|
var LoadingOverlay = ({
|
|
12928
13076
|
isActive,
|
|
12929
13077
|
statusMessage,
|
|
@@ -12934,14 +13082,14 @@ var LoadingOverlay = ({
|
|
|
12934
13082
|
isPaused = false,
|
|
12935
13083
|
children
|
|
12936
13084
|
}) => {
|
|
12937
|
-
const lottieRef = (0,
|
|
12938
|
-
const onLoopComplete = (0,
|
|
13085
|
+
const lottieRef = (0, import_react61.useRef)(null);
|
|
13086
|
+
const onLoopComplete = (0, import_react61.useCallback)(() => {
|
|
12939
13087
|
var _a, _b, _c;
|
|
12940
13088
|
if (isPaused && !((_b = (_a = lottieRef.current) == null ? void 0 : _a.animationItem) == null ? void 0 : _b.isPaused)) {
|
|
12941
13089
|
(_c = lottieRef.current) == null ? void 0 : _c.stop();
|
|
12942
13090
|
}
|
|
12943
13091
|
}, [isPaused]);
|
|
12944
|
-
(0,
|
|
13092
|
+
(0, import_react61.useEffect)(() => {
|
|
12945
13093
|
var _a, _b, _c, _d, _e, _f;
|
|
12946
13094
|
if (!isPaused && ((_b = (_a = lottieRef.current) == null ? void 0 : _a.animationItem) == null ? void 0 : _b.isPaused)) {
|
|
12947
13095
|
(_c = lottieRef.current) == null ? void 0 : _c.play();
|
|
@@ -12949,7 +13097,7 @@ var LoadingOverlay = ({
|
|
|
12949
13097
|
(_f = lottieRef.current) == null ? void 0 : _f.stop();
|
|
12950
13098
|
}
|
|
12951
13099
|
}, [isPaused]);
|
|
12952
|
-
return /* @__PURE__ */ (0,
|
|
13100
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
12953
13101
|
"div",
|
|
12954
13102
|
{
|
|
12955
13103
|
role: "alert",
|
|
@@ -12957,9 +13105,9 @@ var LoadingOverlay = ({
|
|
|
12957
13105
|
"aria-hidden": !isActive,
|
|
12958
13106
|
"aria-busy": isActive && !isPaused,
|
|
12959
13107
|
children: [
|
|
12960
|
-
/* @__PURE__ */ (0,
|
|
12961
|
-
/* @__PURE__ */ (0,
|
|
12962
|
-
/* @__PURE__ */ (0,
|
|
13108
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
13109
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { css: loadingOverlayBody, children: [
|
|
13110
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
12963
13111
|
AnimationFile,
|
|
12964
13112
|
{
|
|
12965
13113
|
lottieRef,
|
|
@@ -12974,15 +13122,15 @@ var LoadingOverlay = ({
|
|
|
12974
13122
|
}
|
|
12975
13123
|
}
|
|
12976
13124
|
),
|
|
12977
|
-
statusMessage ? /* @__PURE__ */ (0,
|
|
12978
|
-
/* @__PURE__ */ (0,
|
|
13125
|
+
statusMessage ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
|
|
13126
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
|
|
12979
13127
|
] }) })
|
|
12980
13128
|
]
|
|
12981
13129
|
}
|
|
12982
13130
|
);
|
|
12983
13131
|
};
|
|
12984
13132
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
12985
|
-
return /* @__PURE__ */ (0,
|
|
13133
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
12986
13134
|
"svg",
|
|
12987
13135
|
{
|
|
12988
13136
|
"data-testid": "svg",
|
|
@@ -12993,9 +13141,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
12993
13141
|
stroke: "currentColor",
|
|
12994
13142
|
...props,
|
|
12995
13143
|
"data-test-id": "loading-icon",
|
|
12996
|
-
children: /* @__PURE__ */ (0,
|
|
12997
|
-
/* @__PURE__ */ (0,
|
|
12998
|
-
/* @__PURE__ */ (0,
|
|
13144
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
13145
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
13146
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
12999
13147
|
"animateTransform",
|
|
13000
13148
|
{
|
|
13001
13149
|
attributeName: "transform",
|
|
@@ -13012,12 +13160,12 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
13012
13160
|
};
|
|
13013
13161
|
|
|
13014
13162
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
13015
|
-
var
|
|
13016
|
-
var
|
|
13163
|
+
var import_react63 = require("@emotion/react");
|
|
13164
|
+
var import_cg11 = require("react-icons/cg");
|
|
13017
13165
|
|
|
13018
13166
|
// src/components/Tiles/styles/IntegrationTile.styles.ts
|
|
13019
|
-
var
|
|
13020
|
-
var IntegrationTileContainer =
|
|
13167
|
+
var import_react62 = require("@emotion/react");
|
|
13168
|
+
var IntegrationTileContainer = import_react62.css`
|
|
13021
13169
|
align-items: center;
|
|
13022
13170
|
box-sizing: border-box;
|
|
13023
13171
|
border-radius: var(--rounded-base);
|
|
@@ -13048,22 +13196,22 @@ var IntegrationTileContainer = import_react59.css`
|
|
|
13048
13196
|
}
|
|
13049
13197
|
}
|
|
13050
13198
|
`;
|
|
13051
|
-
var IntegrationTileBtnDashedBorder =
|
|
13199
|
+
var IntegrationTileBtnDashedBorder = import_react62.css`
|
|
13052
13200
|
border: 1px dashed var(--brand-secondary-1);
|
|
13053
13201
|
`;
|
|
13054
|
-
var IntegrationTileTitle =
|
|
13202
|
+
var IntegrationTileTitle = import_react62.css`
|
|
13055
13203
|
display: block;
|
|
13056
13204
|
font-weight: var(--fw-bold);
|
|
13057
13205
|
margin: 0 0 var(--spacing-base);
|
|
13058
13206
|
max-width: 13rem;
|
|
13059
13207
|
`;
|
|
13060
|
-
var IntegrationTitleLogo =
|
|
13208
|
+
var IntegrationTitleLogo = import_react62.css`
|
|
13061
13209
|
display: block;
|
|
13062
13210
|
max-width: 10rem;
|
|
13063
13211
|
max-height: 4rem;
|
|
13064
13212
|
margin: 0 auto;
|
|
13065
13213
|
`;
|
|
13066
|
-
var IntegrationTileName =
|
|
13214
|
+
var IntegrationTileName = import_react62.css`
|
|
13067
13215
|
color: var(--gray-500);
|
|
13068
13216
|
display: -webkit-box;
|
|
13069
13217
|
-webkit-line-clamp: 1;
|
|
@@ -13076,7 +13224,7 @@ var IntegrationTileName = import_react59.css`
|
|
|
13076
13224
|
position: absolute;
|
|
13077
13225
|
bottom: calc(var(--spacing-base) * 3.8);
|
|
13078
13226
|
`;
|
|
13079
|
-
var IntegrationAddedText =
|
|
13227
|
+
var IntegrationAddedText = import_react62.css`
|
|
13080
13228
|
align-items: center;
|
|
13081
13229
|
background: var(--brand-secondary-3);
|
|
13082
13230
|
border-radius: 0 var(--rounded-md) 0 var(--rounded-md);
|
|
@@ -13091,7 +13239,7 @@ var IntegrationAddedText = import_react59.css`
|
|
|
13091
13239
|
top: 0;
|
|
13092
13240
|
right: 0;
|
|
13093
13241
|
`;
|
|
13094
|
-
var IntegrationCustomBadgeText = (theme) =>
|
|
13242
|
+
var IntegrationCustomBadgeText = (theme) => import_react62.css`
|
|
13095
13243
|
align-items: center;
|
|
13096
13244
|
border-radius: var(--rounded-sm) 0 var(--rounded-sm) 0;
|
|
13097
13245
|
background: ${theme === "gray" ? "var(--brand-secondary-2)" : "var(--brand-secondary-1)"};
|
|
@@ -13105,26 +13253,26 @@ var IntegrationCustomBadgeText = (theme) => import_react59.css`
|
|
|
13105
13253
|
top: 0;
|
|
13106
13254
|
left: 0;
|
|
13107
13255
|
`;
|
|
13108
|
-
var IntegrationAuthorBadgeIcon =
|
|
13256
|
+
var IntegrationAuthorBadgeIcon = import_react62.css`
|
|
13109
13257
|
position: absolute;
|
|
13110
13258
|
bottom: var(--spacing-sm);
|
|
13111
13259
|
right: var(--spacing-xs);
|
|
13112
13260
|
max-height: 1rem;
|
|
13113
13261
|
`;
|
|
13114
|
-
var IntegrationTitleFakeButton =
|
|
13262
|
+
var IntegrationTitleFakeButton = import_react62.css`
|
|
13115
13263
|
font-size: var(--fs-xs);
|
|
13116
13264
|
gap: var(--spacing-sm);
|
|
13117
13265
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
13118
13266
|
text-transform: uppercase;
|
|
13119
13267
|
`;
|
|
13120
|
-
var IntegrationTileFloatingButton =
|
|
13268
|
+
var IntegrationTileFloatingButton = import_react62.css`
|
|
13121
13269
|
position: absolute;
|
|
13122
13270
|
bottom: var(--spacing-base);
|
|
13123
13271
|
gap: var(--spacing-sm);
|
|
13124
13272
|
font-size: var(--fs-xs);
|
|
13125
13273
|
overflow: hidden;
|
|
13126
13274
|
`;
|
|
13127
|
-
var IntegrationTileFloatingButtonMessage = (clicked) =>
|
|
13275
|
+
var IntegrationTileFloatingButtonMessage = (clicked) => import_react62.css`
|
|
13128
13276
|
strong,
|
|
13129
13277
|
span:first-of-type {
|
|
13130
13278
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
@@ -13145,7 +13293,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => import_react59.css`
|
|
|
13145
13293
|
`;
|
|
13146
13294
|
|
|
13147
13295
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
13148
|
-
var
|
|
13296
|
+
var import_jsx_runtime58 = require("@emotion/react/jsx-runtime");
|
|
13149
13297
|
var CreateTeamIntegrationTile = ({
|
|
13150
13298
|
title = "Create a custom integration for your team",
|
|
13151
13299
|
buttonText = "Add Integration",
|
|
@@ -13153,9 +13301,9 @@ var CreateTeamIntegrationTile = ({
|
|
|
13153
13301
|
asDeepLink = false,
|
|
13154
13302
|
...props
|
|
13155
13303
|
}) => {
|
|
13156
|
-
return /* @__PURE__ */ (0,
|
|
13157
|
-
/* @__PURE__ */ (0,
|
|
13158
|
-
/* @__PURE__ */ (0,
|
|
13304
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
13305
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { css: IntegrationTileTitle, title, children: title }),
|
|
13306
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
13159
13307
|
Button,
|
|
13160
13308
|
{
|
|
13161
13309
|
buttonType: "tertiary",
|
|
@@ -13165,23 +13313,23 @@ var CreateTeamIntegrationTile = ({
|
|
|
13165
13313
|
css: IntegrationTitleFakeButton,
|
|
13166
13314
|
children: [
|
|
13167
13315
|
buttonText,
|
|
13168
|
-
asDeepLink ? /* @__PURE__ */ (0,
|
|
13316
|
+
asDeepLink ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
13169
13317
|
Icon,
|
|
13170
13318
|
{
|
|
13171
|
-
icon:
|
|
13319
|
+
icon: import_cg11.CgChevronRight,
|
|
13172
13320
|
iconColor: "currentColor",
|
|
13173
13321
|
size: 20,
|
|
13174
|
-
css:
|
|
13322
|
+
css: import_react63.css`
|
|
13175
13323
|
order: 1;
|
|
13176
13324
|
`
|
|
13177
13325
|
}
|
|
13178
|
-
) : /* @__PURE__ */ (0,
|
|
13326
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
13179
13327
|
Icon,
|
|
13180
13328
|
{
|
|
13181
|
-
icon:
|
|
13329
|
+
icon: import_cg11.CgAdd,
|
|
13182
13330
|
iconColor: "currentColor",
|
|
13183
13331
|
size: 16,
|
|
13184
|
-
css:
|
|
13332
|
+
css: import_react63.css`
|
|
13185
13333
|
order: -1;
|
|
13186
13334
|
`
|
|
13187
13335
|
}
|
|
@@ -13193,32 +13341,32 @@ var CreateTeamIntegrationTile = ({
|
|
|
13193
13341
|
};
|
|
13194
13342
|
|
|
13195
13343
|
// src/components/Tiles/IntegrationBadges.tsx
|
|
13196
|
-
var
|
|
13197
|
-
var
|
|
13344
|
+
var import_cg12 = require("react-icons/cg");
|
|
13345
|
+
var import_jsx_runtime59 = require("@emotion/react/jsx-runtime");
|
|
13198
13346
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
13199
|
-
return /* @__PURE__ */ (0,
|
|
13200
|
-
/* @__PURE__ */ (0,
|
|
13347
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
13348
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { icon: import_cg12.CgCheck, iconColor: "currentColor" }),
|
|
13201
13349
|
text
|
|
13202
13350
|
] });
|
|
13203
13351
|
};
|
|
13204
13352
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
13205
|
-
return /* @__PURE__ */ (0,
|
|
13353
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
13206
13354
|
};
|
|
13207
13355
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
13208
|
-
return /* @__PURE__ */ (0,
|
|
13209
|
-
/* @__PURE__ */ (0,
|
|
13356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
13357
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { icon: import_cg12.CgLock, iconColor: "currentColor", size: 12 }),
|
|
13210
13358
|
text
|
|
13211
13359
|
] });
|
|
13212
13360
|
};
|
|
13213
13361
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
13214
|
-
return /* @__PURE__ */ (0,
|
|
13215
|
-
/* @__PURE__ */ (0,
|
|
13362
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
13363
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { icon: import_cg12.CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
13216
13364
|
text
|
|
13217
13365
|
] });
|
|
13218
13366
|
};
|
|
13219
13367
|
|
|
13220
13368
|
// src/components/Tiles/ResolveIcon.tsx
|
|
13221
|
-
var
|
|
13369
|
+
var import_jsx_runtime60 = require("@emotion/react/jsx-runtime");
|
|
13222
13370
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
13223
13371
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
13224
13372
|
const mapClassName = {
|
|
@@ -13226,13 +13374,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
13226
13374
|
logo: IntegrationTitleLogo
|
|
13227
13375
|
};
|
|
13228
13376
|
if (icon) {
|
|
13229
|
-
return CompIcon ? /* @__PURE__ */ (0,
|
|
13377
|
+
return CompIcon ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
13230
13378
|
}
|
|
13231
13379
|
return null;
|
|
13232
13380
|
};
|
|
13233
13381
|
|
|
13234
13382
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
13235
|
-
var
|
|
13383
|
+
var import_jsx_runtime61 = require("@emotion/react/jsx-runtime");
|
|
13236
13384
|
var EditTeamIntegrationTile = ({
|
|
13237
13385
|
id,
|
|
13238
13386
|
icon,
|
|
@@ -13241,17 +13389,17 @@ var EditTeamIntegrationTile = ({
|
|
|
13241
13389
|
isPublic,
|
|
13242
13390
|
canEdit = false
|
|
13243
13391
|
}) => {
|
|
13244
|
-
return /* @__PURE__ */ (0,
|
|
13392
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
13245
13393
|
"div",
|
|
13246
13394
|
{
|
|
13247
13395
|
css: IntegrationTileContainer,
|
|
13248
13396
|
"data-testid": "configure-integration-container",
|
|
13249
13397
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
13250
13398
|
children: [
|
|
13251
|
-
/* @__PURE__ */ (0,
|
|
13252
|
-
/* @__PURE__ */ (0,
|
|
13253
|
-
!isPublic ? /* @__PURE__ */ (0,
|
|
13254
|
-
canEdit ? /* @__PURE__ */ (0,
|
|
13399
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ResolveIcon, { icon, name, "data-test-id": "integration-logo" }),
|
|
13400
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { css: IntegrationTileName, "data-test-id": "integration-card-name", children: name }),
|
|
13401
|
+
!isPublic ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(IntegrationCustomBadge, {}) : null,
|
|
13402
|
+
canEdit ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
13255
13403
|
Button,
|
|
13256
13404
|
{
|
|
13257
13405
|
buttonType: "unimportant",
|
|
@@ -13269,10 +13417,10 @@ var EditTeamIntegrationTile = ({
|
|
|
13269
13417
|
};
|
|
13270
13418
|
|
|
13271
13419
|
// src/components/Tiles/IntegrationComingSoon.tsx
|
|
13272
|
-
var
|
|
13273
|
-
var
|
|
13274
|
-
var
|
|
13275
|
-
var
|
|
13420
|
+
var import_react64 = require("@emotion/react");
|
|
13421
|
+
var import_react65 = require("react");
|
|
13422
|
+
var import_cg13 = require("react-icons/cg");
|
|
13423
|
+
var import_jsx_runtime62 = require("@emotion/react/jsx-runtime");
|
|
13276
13424
|
var IntegrationComingSoon = ({
|
|
13277
13425
|
name,
|
|
13278
13426
|
icon,
|
|
@@ -13281,12 +13429,12 @@ var IntegrationComingSoon = ({
|
|
|
13281
13429
|
timing = 1e3,
|
|
13282
13430
|
...props
|
|
13283
13431
|
}) => {
|
|
13284
|
-
const [upVote, setUpVote] = (0,
|
|
13432
|
+
const [upVote, setUpVote] = (0, import_react65.useState)(false);
|
|
13285
13433
|
const handleUpVoteInteraction = () => {
|
|
13286
13434
|
setUpVote((prev) => !prev);
|
|
13287
13435
|
onUpVoteClick();
|
|
13288
13436
|
};
|
|
13289
|
-
(0,
|
|
13437
|
+
(0, import_react65.useEffect)(() => {
|
|
13290
13438
|
if (upVote) {
|
|
13291
13439
|
const timer = setTimeout(() => setUpVote(false), timing);
|
|
13292
13440
|
return () => {
|
|
@@ -13294,17 +13442,17 @@ var IntegrationComingSoon = ({
|
|
|
13294
13442
|
};
|
|
13295
13443
|
}
|
|
13296
13444
|
}, [upVote, setUpVote, timing]);
|
|
13297
|
-
return /* @__PURE__ */ (0,
|
|
13445
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
13298
13446
|
"div",
|
|
13299
13447
|
{
|
|
13300
13448
|
css: IntegrationTileContainer,
|
|
13301
13449
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
13302
13450
|
...props,
|
|
13303
13451
|
children: [
|
|
13304
|
-
/* @__PURE__ */ (0,
|
|
13305
|
-
/* @__PURE__ */ (0,
|
|
13306
|
-
/* @__PURE__ */ (0,
|
|
13307
|
-
/* @__PURE__ */ (0,
|
|
13452
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(IntegrationComingSoonBadge, {}),
|
|
13453
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(ResolveIcon, { icon, name }),
|
|
13454
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { css: IntegrationTileName, title: name, children: name }),
|
|
13455
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
13308
13456
|
Button,
|
|
13309
13457
|
{
|
|
13310
13458
|
buttonType: "unimportant",
|
|
@@ -13314,19 +13462,19 @@ var IntegrationComingSoon = ({
|
|
|
13314
13462
|
role: "link",
|
|
13315
13463
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
13316
13464
|
children: [
|
|
13317
|
-
/* @__PURE__ */ (0,
|
|
13318
|
-
/* @__PURE__ */ (0,
|
|
13465
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("strong", { children: "+1" }),
|
|
13466
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
13319
13467
|
"span",
|
|
13320
13468
|
{
|
|
13321
|
-
css:
|
|
13469
|
+
css: import_react64.css`
|
|
13322
13470
|
text-transform: uppercase;
|
|
13323
13471
|
color: var(--gray-500);
|
|
13324
13472
|
`,
|
|
13325
13473
|
children: "(I want this)"
|
|
13326
13474
|
}
|
|
13327
13475
|
),
|
|
13328
|
-
/* @__PURE__ */ (0,
|
|
13329
|
-
/* @__PURE__ */ (0,
|
|
13476
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("span", { "aria-hidden": !upVote, children: [
|
|
13477
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon, { icon: import_cg13.CgHeart, iconColor: "currentColor", size: 18 }),
|
|
13330
13478
|
"Thanks!"
|
|
13331
13479
|
] })
|
|
13332
13480
|
]
|
|
@@ -13338,8 +13486,8 @@ var IntegrationComingSoon = ({
|
|
|
13338
13486
|
};
|
|
13339
13487
|
|
|
13340
13488
|
// src/components/Tiles/styles/IntegrationLoadingTile.styles.ts
|
|
13341
|
-
var
|
|
13342
|
-
var IntegrationLoadingTileContainer =
|
|
13489
|
+
var import_react66 = require("@emotion/react");
|
|
13490
|
+
var IntegrationLoadingTileContainer = import_react66.css`
|
|
13343
13491
|
align-items: center;
|
|
13344
13492
|
box-sizing: border-box;
|
|
13345
13493
|
border-radius: var(--rounded-base);
|
|
@@ -13366,39 +13514,39 @@ var IntegrationLoadingTileContainer = import_react63.css`
|
|
|
13366
13514
|
}
|
|
13367
13515
|
}
|
|
13368
13516
|
`;
|
|
13369
|
-
var IntegrationLoadingTileImg =
|
|
13517
|
+
var IntegrationLoadingTileImg = import_react66.css`
|
|
13370
13518
|
width: 10rem;
|
|
13371
13519
|
height: 4rem;
|
|
13372
13520
|
margin: 0 auto;
|
|
13373
13521
|
`;
|
|
13374
|
-
var IntegrationLoadingTileText =
|
|
13522
|
+
var IntegrationLoadingTileText = import_react66.css`
|
|
13375
13523
|
width: 5rem;
|
|
13376
13524
|
height: var(--spacing-sm);
|
|
13377
13525
|
margin: var(--spacing-sm) 0;
|
|
13378
13526
|
`;
|
|
13379
|
-
var IntegrationLoadingFrame =
|
|
13527
|
+
var IntegrationLoadingFrame = import_react66.css`
|
|
13380
13528
|
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
13381
13529
|
border-radius: var(--rounded-base);
|
|
13382
13530
|
`;
|
|
13383
13531
|
|
|
13384
13532
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
13385
|
-
var
|
|
13533
|
+
var import_jsx_runtime63 = require("@emotion/react/jsx-runtime");
|
|
13386
13534
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
13387
13535
|
const componentCount = Array.from(Array(count).keys());
|
|
13388
|
-
return /* @__PURE__ */ (0,
|
|
13389
|
-
/* @__PURE__ */ (0,
|
|
13390
|
-
/* @__PURE__ */ (0,
|
|
13536
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_jsx_runtime63.Fragment, { children: componentCount.map((i) => /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { css: IntegrationLoadingTileContainer, children: [
|
|
13537
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
13538
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
13391
13539
|
] }, i)) });
|
|
13392
13540
|
};
|
|
13393
13541
|
|
|
13394
13542
|
// src/components/Tiles/styles/IntegrationModalIcon.styles.ts
|
|
13395
|
-
var
|
|
13396
|
-
var IntegrationModalIconContainer =
|
|
13543
|
+
var import_react67 = require("@emotion/react");
|
|
13544
|
+
var IntegrationModalIconContainer = import_react67.css`
|
|
13397
13545
|
position: relative;
|
|
13398
13546
|
width: 50px;
|
|
13399
13547
|
margin-bottom: var(--spacing-base);
|
|
13400
13548
|
`;
|
|
13401
|
-
var IntegrationModalImage =
|
|
13549
|
+
var IntegrationModalImage = import_react67.css`
|
|
13402
13550
|
position: absolute;
|
|
13403
13551
|
inset: 0;
|
|
13404
13552
|
margin: auto;
|
|
@@ -13407,12 +13555,12 @@ var IntegrationModalImage = import_react64.css`
|
|
|
13407
13555
|
`;
|
|
13408
13556
|
|
|
13409
13557
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
13410
|
-
var
|
|
13558
|
+
var import_jsx_runtime64 = require("@emotion/react/jsx-runtime");
|
|
13411
13559
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
13412
13560
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
13413
|
-
return /* @__PURE__ */ (0,
|
|
13414
|
-
/* @__PURE__ */ (0,
|
|
13415
|
-
/* @__PURE__ */ (0,
|
|
13561
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { css: IntegrationModalIconContainer, children: [
|
|
13562
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
13563
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
13416
13564
|
"path",
|
|
13417
13565
|
{
|
|
13418
13566
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -13421,12 +13569,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
13421
13569
|
strokeWidth: "2"
|
|
13422
13570
|
}
|
|
13423
13571
|
),
|
|
13424
|
-
/* @__PURE__ */ (0,
|
|
13425
|
-
/* @__PURE__ */ (0,
|
|
13426
|
-
/* @__PURE__ */ (0,
|
|
13572
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
13573
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("stop", { stopColor: "#1768B2" }),
|
|
13574
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
13427
13575
|
] }) })
|
|
13428
13576
|
] }),
|
|
13429
|
-
CompIcon ? /* @__PURE__ */ (0,
|
|
13577
|
+
CompIcon ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
13430
13578
|
"img",
|
|
13431
13579
|
{
|
|
13432
13580
|
src: icon,
|
|
@@ -13440,7 +13588,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
13440
13588
|
};
|
|
13441
13589
|
|
|
13442
13590
|
// src/components/Tiles/IntegrationTile.tsx
|
|
13443
|
-
var
|
|
13591
|
+
var import_jsx_runtime65 = require("@emotion/react/jsx-runtime");
|
|
13444
13592
|
var IntegrationTile = ({
|
|
13445
13593
|
id,
|
|
13446
13594
|
icon,
|
|
@@ -13452,7 +13600,7 @@ var IntegrationTile = ({
|
|
|
13452
13600
|
authorIcon,
|
|
13453
13601
|
...btnProps
|
|
13454
13602
|
}) => {
|
|
13455
|
-
return /* @__PURE__ */ (0,
|
|
13603
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
13456
13604
|
"button",
|
|
13457
13605
|
{
|
|
13458
13606
|
type: "button",
|
|
@@ -13462,70 +13610,70 @@ var IntegrationTile = ({
|
|
|
13462
13610
|
"aria-label": name,
|
|
13463
13611
|
...btnProps,
|
|
13464
13612
|
children: [
|
|
13465
|
-
/* @__PURE__ */ (0,
|
|
13466
|
-
/* @__PURE__ */ (0,
|
|
13467
|
-
isInstalled ? /* @__PURE__ */ (0,
|
|
13468
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */ (0,
|
|
13469
|
-
!isPublic ? /* @__PURE__ */ (0,
|
|
13470
|
-
authorIcon ? /* @__PURE__ */ (0,
|
|
13613
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ResolveIcon, { icon, name }),
|
|
13614
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { css: IntegrationTileName, title: name, children: name }),
|
|
13615
|
+
isInstalled ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(IntegrationedAddedBadge, {}) : null,
|
|
13616
|
+
requiedEntitlement && isPublic ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(IntegrationPremiumBadge, {}) : null,
|
|
13617
|
+
!isPublic ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(IntegrationCustomBadge, {}) : null,
|
|
13618
|
+
authorIcon ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ResolveIcon, { icon: authorIcon, name }) : null
|
|
13471
13619
|
]
|
|
13472
13620
|
}
|
|
13473
13621
|
);
|
|
13474
13622
|
};
|
|
13475
13623
|
|
|
13476
13624
|
// src/components/Tiles/styles/TileContainer.styles.ts
|
|
13477
|
-
var
|
|
13478
|
-
var TileContainerWrapper =
|
|
13625
|
+
var import_react68 = require("@emotion/react");
|
|
13626
|
+
var TileContainerWrapper = import_react68.css`
|
|
13479
13627
|
background: var(--brand-secondary-2);
|
|
13480
13628
|
padding: var(--spacing-base);
|
|
13481
13629
|
margin-bottom: var(--spacing-lg);
|
|
13482
13630
|
`;
|
|
13483
|
-
var TileContainerInner =
|
|
13631
|
+
var TileContainerInner = import_react68.css`
|
|
13484
13632
|
display: grid;
|
|
13485
13633
|
grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
|
|
13486
13634
|
gap: var(--spacing-base);
|
|
13487
13635
|
`;
|
|
13488
13636
|
|
|
13489
13637
|
// src/components/Tiles/TileContainer.tsx
|
|
13490
|
-
var
|
|
13638
|
+
var import_jsx_runtime66 = require("@emotion/react/jsx-runtime");
|
|
13491
13639
|
var TileContainer = ({ children, ...props }) => {
|
|
13492
|
-
return /* @__PURE__ */ (0,
|
|
13640
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { css: TileContainerWrapper, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { css: TileContainerInner, children }) });
|
|
13493
13641
|
};
|
|
13494
13642
|
|
|
13495
13643
|
// src/components/Modal/IntegrationModalHeader.styles.ts
|
|
13496
|
-
var
|
|
13497
|
-
var IntegrationModalHeaderSVGBackground =
|
|
13644
|
+
var import_react69 = require("@emotion/react");
|
|
13645
|
+
var IntegrationModalHeaderSVGBackground = import_react69.css`
|
|
13498
13646
|
position: absolute;
|
|
13499
13647
|
top: 0;
|
|
13500
13648
|
left: 0;
|
|
13501
13649
|
`;
|
|
13502
|
-
var IntegrationModalHeaderGroup =
|
|
13650
|
+
var IntegrationModalHeaderGroup = import_react69.css`
|
|
13503
13651
|
align-items: center;
|
|
13504
13652
|
display: flex;
|
|
13505
13653
|
gap: var(--spacing-sm);
|
|
13506
13654
|
margin: 0 0 var(--spacing-md);
|
|
13507
13655
|
position: relative;
|
|
13508
13656
|
`;
|
|
13509
|
-
var IntegrationModalHeaderTitleGroup =
|
|
13657
|
+
var IntegrationModalHeaderTitleGroup = import_react69.css`
|
|
13510
13658
|
align-items: center;
|
|
13511
13659
|
display: flex;
|
|
13512
13660
|
gap: var(--spacing-base);
|
|
13513
13661
|
`;
|
|
13514
|
-
var IntegrationModalHeaderTitle =
|
|
13662
|
+
var IntegrationModalHeaderTitle = import_react69.css`
|
|
13515
13663
|
margin-top: 0;
|
|
13516
13664
|
`;
|
|
13517
|
-
var IntegrationModalHeaderMenuPlacement =
|
|
13665
|
+
var IntegrationModalHeaderMenuPlacement = import_react69.css`
|
|
13518
13666
|
margin-bottom: var(--spacing-base);
|
|
13519
13667
|
`;
|
|
13520
|
-
var IntegrationModalHeaderContentWrapper =
|
|
13668
|
+
var IntegrationModalHeaderContentWrapper = import_react69.css`
|
|
13521
13669
|
position: relative;
|
|
13522
13670
|
z-index: var(--z-10);
|
|
13523
13671
|
`;
|
|
13524
13672
|
|
|
13525
13673
|
// src/components/Modal/IntegrationModalHeader.tsx
|
|
13526
|
-
var
|
|
13674
|
+
var import_jsx_runtime67 = require("@emotion/react/jsx-runtime");
|
|
13527
13675
|
var HexModalBackground = ({ ...props }) => {
|
|
13528
|
-
return /* @__PURE__ */ (0,
|
|
13676
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
13529
13677
|
"svg",
|
|
13530
13678
|
{
|
|
13531
13679
|
width: "236",
|
|
@@ -13535,7 +13683,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13535
13683
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13536
13684
|
...props,
|
|
13537
13685
|
children: [
|
|
13538
|
-
/* @__PURE__ */ (0,
|
|
13686
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
13539
13687
|
"path",
|
|
13540
13688
|
{
|
|
13541
13689
|
fillRule: "evenodd",
|
|
@@ -13544,7 +13692,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13544
13692
|
fill: "url(#paint0_linear_196_2737)"
|
|
13545
13693
|
}
|
|
13546
13694
|
),
|
|
13547
|
-
/* @__PURE__ */ (0,
|
|
13695
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
13548
13696
|
"linearGradient",
|
|
13549
13697
|
{
|
|
13550
13698
|
id: "paint0_linear_196_2737",
|
|
@@ -13554,8 +13702,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13554
13702
|
y2: "-95.2742",
|
|
13555
13703
|
gradientUnits: "userSpaceOnUse",
|
|
13556
13704
|
children: [
|
|
13557
|
-
/* @__PURE__ */ (0,
|
|
13558
|
-
/* @__PURE__ */ (0,
|
|
13705
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("stop", { stopColor: "#81DCDE" }),
|
|
13706
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("stop", { offset: "1", stopColor: "#428ED4" })
|
|
13559
13707
|
]
|
|
13560
13708
|
}
|
|
13561
13709
|
) })
|
|
@@ -13564,27 +13712,27 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13564
13712
|
);
|
|
13565
13713
|
};
|
|
13566
13714
|
var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
13567
|
-
return /* @__PURE__ */ (0,
|
|
13568
|
-
/* @__PURE__ */ (0,
|
|
13569
|
-
/* @__PURE__ */ (0,
|
|
13570
|
-
icon ? /* @__PURE__ */ (0,
|
|
13571
|
-
/* @__PURE__ */ (0,
|
|
13572
|
-
menu2 ? /* @__PURE__ */ (0,
|
|
13715
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
|
|
13716
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
13717
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
13718
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
13719
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-test-id": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
13720
|
+
menu2 ? /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
13573
13721
|
menu2,
|
|
13574
13722
|
" "
|
|
13575
13723
|
] }) : null
|
|
13576
13724
|
] }) }),
|
|
13577
|
-
/* @__PURE__ */ (0,
|
|
13725
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
13578
13726
|
] });
|
|
13579
13727
|
};
|
|
13580
13728
|
|
|
13581
13729
|
// src/components/Tooltip/Tooltip.tsx
|
|
13582
|
-
var
|
|
13730
|
+
var import_react71 = __toESM(require("react"));
|
|
13583
13731
|
var import_Tooltip = require("reakit/Tooltip");
|
|
13584
13732
|
|
|
13585
13733
|
// src/components/Tooltip/Tooltip.styles.ts
|
|
13586
|
-
var
|
|
13587
|
-
var TooltipContainer =
|
|
13734
|
+
var import_react70 = require("@emotion/react");
|
|
13735
|
+
var TooltipContainer = import_react70.css`
|
|
13588
13736
|
border: 2px solid var(--gray-300);
|
|
13589
13737
|
border-radius: var(--rounded-base);
|
|
13590
13738
|
padding: var(--spacing-xs) var(--spacing-sm);
|
|
@@ -13592,28 +13740,28 @@ var TooltipContainer = import_react67.css`
|
|
|
13592
13740
|
font-size: var(--fs-xs);
|
|
13593
13741
|
background: var(--white);
|
|
13594
13742
|
`;
|
|
13595
|
-
var TooltipArrowStyles =
|
|
13743
|
+
var TooltipArrowStyles = import_react70.css`
|
|
13596
13744
|
svg {
|
|
13597
13745
|
fill: var(--gray-300);
|
|
13598
13746
|
}
|
|
13599
13747
|
`;
|
|
13600
13748
|
|
|
13601
13749
|
// src/components/Tooltip/Tooltip.tsx
|
|
13602
|
-
var
|
|
13750
|
+
var import_jsx_runtime68 = require("@emotion/react/jsx-runtime");
|
|
13603
13751
|
function Tooltip({ children, title, placement = "bottom", visible, ...props }) {
|
|
13604
13752
|
const tooltip = (0, import_Tooltip.useTooltipState)({ placement });
|
|
13605
|
-
return /* @__PURE__ */ (0,
|
|
13606
|
-
/* @__PURE__ */ (0,
|
|
13607
|
-
|
|
13608
|
-
/* @__PURE__ */ (0,
|
|
13753
|
+
return !title ? children : /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx_runtime68.Fragment, { children: [
|
|
13754
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_Tooltip.TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => import_react71.default.cloneElement(children, referenceProps) }),
|
|
13755
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_Tooltip.Tooltip, { ...tooltip, ...props, css: TooltipContainer, visible: visible != null ? visible : tooltip.visible, children: [
|
|
13756
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_Tooltip.TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
|
|
13609
13757
|
title
|
|
13610
13758
|
] })
|
|
13611
13759
|
] });
|
|
13612
13760
|
}
|
|
13613
13761
|
|
|
13614
13762
|
// src/components/ParameterInputs/styles/ParameterBindingButton.styles.ts
|
|
13615
|
-
var
|
|
13616
|
-
var inputIconBtn =
|
|
13763
|
+
var import_react72 = require("@emotion/react");
|
|
13764
|
+
var inputIconBtn = import_react72.css`
|
|
13617
13765
|
align-items: center;
|
|
13618
13766
|
border: none;
|
|
13619
13767
|
border-radius: var(--rounded-base);
|
|
@@ -13636,7 +13784,7 @@ var inputIconBtn = import_react69.css`
|
|
|
13636
13784
|
`;
|
|
13637
13785
|
|
|
13638
13786
|
// src/components/ParameterInputs/ConnectToDataElementButton.tsx
|
|
13639
|
-
var
|
|
13787
|
+
var import_jsx_runtime69 = require("@emotion/react/jsx-runtime");
|
|
13640
13788
|
var ConnectToDataElementButton = ({
|
|
13641
13789
|
icon,
|
|
13642
13790
|
iconColor,
|
|
@@ -13646,7 +13794,7 @@ var ConnectToDataElementButton = ({
|
|
|
13646
13794
|
...props
|
|
13647
13795
|
}) => {
|
|
13648
13796
|
const title = isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
13649
|
-
return /* @__PURE__ */ (0,
|
|
13797
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Tooltip, { title, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
13650
13798
|
"button",
|
|
13651
13799
|
{
|
|
13652
13800
|
css: inputIconBtn,
|
|
@@ -13655,7 +13803,7 @@ var ConnectToDataElementButton = ({
|
|
|
13655
13803
|
"aria-disabled": isLocked,
|
|
13656
13804
|
...props,
|
|
13657
13805
|
children: [
|
|
13658
|
-
/* @__PURE__ */ (0,
|
|
13806
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
13659
13807
|
Icon,
|
|
13660
13808
|
{
|
|
13661
13809
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -13670,8 +13818,8 @@ var ConnectToDataElementButton = ({
|
|
|
13670
13818
|
};
|
|
13671
13819
|
|
|
13672
13820
|
// src/components/ParameterInputs/hooks/ParameterShellContext.tsx
|
|
13673
|
-
var
|
|
13674
|
-
var ParameterShellContext = (0,
|
|
13821
|
+
var import_react73 = require("react");
|
|
13822
|
+
var ParameterShellContext = (0, import_react73.createContext)({
|
|
13675
13823
|
id: "",
|
|
13676
13824
|
label: "",
|
|
13677
13825
|
hiddenLabel: void 0,
|
|
@@ -13680,7 +13828,7 @@ var ParameterShellContext = (0, import_react70.createContext)({
|
|
|
13680
13828
|
}
|
|
13681
13829
|
});
|
|
13682
13830
|
var useParameterShell = () => {
|
|
13683
|
-
const { id, label, hiddenLabel, errorMessage, onManuallySetErrorMessage } = (0,
|
|
13831
|
+
const { id, label, hiddenLabel, errorMessage, onManuallySetErrorMessage } = (0, import_react73.useContext)(ParameterShellContext);
|
|
13684
13832
|
return {
|
|
13685
13833
|
id,
|
|
13686
13834
|
label,
|
|
@@ -13691,8 +13839,8 @@ var useParameterShell = () => {
|
|
|
13691
13839
|
};
|
|
13692
13840
|
|
|
13693
13841
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
13694
|
-
var
|
|
13695
|
-
var inputContainer2 =
|
|
13842
|
+
var import_react74 = require("@emotion/react");
|
|
13843
|
+
var inputContainer2 = import_react74.css`
|
|
13696
13844
|
position: relative;
|
|
13697
13845
|
|
|
13698
13846
|
&:hover,
|
|
@@ -13704,14 +13852,14 @@ var inputContainer2 = import_react71.css`
|
|
|
13704
13852
|
}
|
|
13705
13853
|
}
|
|
13706
13854
|
`;
|
|
13707
|
-
var labelText2 =
|
|
13855
|
+
var labelText2 = import_react74.css`
|
|
13708
13856
|
align-items: center;
|
|
13709
13857
|
display: flex;
|
|
13710
13858
|
gap: var(--spacing-xs);
|
|
13711
13859
|
font-weight: var(--fw-regular);
|
|
13712
13860
|
margin: 0 0 var(--spacing-xs);
|
|
13713
13861
|
`;
|
|
13714
|
-
var input2 =
|
|
13862
|
+
var input2 = import_react74.css`
|
|
13715
13863
|
display: block;
|
|
13716
13864
|
appearance: none;
|
|
13717
13865
|
box-sizing: border-box;
|
|
@@ -13755,18 +13903,18 @@ var input2 = import_react71.css`
|
|
|
13755
13903
|
color: var(--gray-400);
|
|
13756
13904
|
}
|
|
13757
13905
|
`;
|
|
13758
|
-
var selectInput =
|
|
13906
|
+
var selectInput = import_react74.css`
|
|
13759
13907
|
background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath d='M6.34317 7.75732L4.92896 9.17154L12 16.2426L19.0711 9.17157L17.6569 7.75735L12 13.4142L6.34317 7.75732Z' fill='currentColor' /%3E%3C/svg%3E");
|
|
13760
13908
|
background-position: right var(--spacing-sm) center;
|
|
13761
13909
|
background-repeat: no-repeat;
|
|
13762
13910
|
background-size: 1rem;
|
|
13763
13911
|
padding-right: var(--spacing-xl);
|
|
13764
13912
|
`;
|
|
13765
|
-
var inputWrapper =
|
|
13913
|
+
var inputWrapper = import_react74.css`
|
|
13766
13914
|
display: flex; // used to correct overflow with chrome textarea
|
|
13767
13915
|
position: relative;
|
|
13768
13916
|
`;
|
|
13769
|
-
var inputIcon2 =
|
|
13917
|
+
var inputIcon2 = import_react74.css`
|
|
13770
13918
|
align-items: center;
|
|
13771
13919
|
background: var(--white);
|
|
13772
13920
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -13782,7 +13930,7 @@ var inputIcon2 = import_react71.css`
|
|
|
13782
13930
|
width: var(--spacing-lg);
|
|
13783
13931
|
z-index: var(--z-10);
|
|
13784
13932
|
`;
|
|
13785
|
-
var inputToggleLabel2 =
|
|
13933
|
+
var inputToggleLabel2 = import_react74.css`
|
|
13786
13934
|
align-items: center;
|
|
13787
13935
|
background: var(--white);
|
|
13788
13936
|
cursor: pointer;
|
|
@@ -13793,7 +13941,7 @@ var inputToggleLabel2 = import_react71.css`
|
|
|
13793
13941
|
min-height: var(--spacing-md);
|
|
13794
13942
|
position: relative;
|
|
13795
13943
|
`;
|
|
13796
|
-
var toggleInput2 =
|
|
13944
|
+
var toggleInput2 = import_react74.css`
|
|
13797
13945
|
appearance: none;
|
|
13798
13946
|
border: 1px solid var(--gray-300);
|
|
13799
13947
|
background: var(--white);
|
|
@@ -13832,7 +13980,7 @@ var toggleInput2 = import_react71.css`
|
|
|
13832
13980
|
border-color: var(--gray-300);
|
|
13833
13981
|
}
|
|
13834
13982
|
`;
|
|
13835
|
-
var inlineLabel2 =
|
|
13983
|
+
var inlineLabel2 = import_react74.css`
|
|
13836
13984
|
padding-left: var(--spacing-lg);
|
|
13837
13985
|
font-size: var(--fs-sm);
|
|
13838
13986
|
font-weight: var(--fw-regular);
|
|
@@ -13848,7 +13996,7 @@ var inlineLabel2 = import_react71.css`
|
|
|
13848
13996
|
}
|
|
13849
13997
|
}
|
|
13850
13998
|
`;
|
|
13851
|
-
var inputMenu =
|
|
13999
|
+
var inputMenu = import_react74.css`
|
|
13852
14000
|
background: none;
|
|
13853
14001
|
border: none;
|
|
13854
14002
|
padding: var(--spacing-2xs);
|
|
@@ -13864,14 +14012,14 @@ var inputMenu = import_react71.css`
|
|
|
13864
14012
|
background-color: var(--gray-200);
|
|
13865
14013
|
}
|
|
13866
14014
|
`;
|
|
13867
|
-
var textarea2 =
|
|
14015
|
+
var textarea2 = import_react74.css`
|
|
13868
14016
|
resize: vertical;
|
|
13869
14017
|
min-height: 2rem;
|
|
13870
14018
|
`;
|
|
13871
|
-
var imageWrapper =
|
|
14019
|
+
var imageWrapper = import_react74.css`
|
|
13872
14020
|
background: var(--white);
|
|
13873
14021
|
`;
|
|
13874
|
-
var img =
|
|
14022
|
+
var img = import_react74.css`
|
|
13875
14023
|
animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
13876
14024
|
object-fit: contain;
|
|
13877
14025
|
max-width: 100%;
|
|
@@ -13879,7 +14027,7 @@ var img = import_react71.css`
|
|
|
13879
14027
|
opacity: var(--opacity-0);
|
|
13880
14028
|
margin: var(--spacing-sm) auto 0;
|
|
13881
14029
|
`;
|
|
13882
|
-
var dataConnectButton =
|
|
14030
|
+
var dataConnectButton = import_react74.css`
|
|
13883
14031
|
align-items: center;
|
|
13884
14032
|
appearance: none;
|
|
13885
14033
|
box-sizing: border-box;
|
|
@@ -13914,7 +14062,7 @@ var dataConnectButton = import_react71.css`
|
|
|
13914
14062
|
pointer-events: none;
|
|
13915
14063
|
}
|
|
13916
14064
|
`;
|
|
13917
|
-
var linkParameterBtn =
|
|
14065
|
+
var linkParameterBtn = import_react74.css`
|
|
13918
14066
|
border-radius: var(--rounded-base);
|
|
13919
14067
|
background: var(--white);
|
|
13920
14068
|
border: none;
|
|
@@ -13926,10 +14074,10 @@ var linkParameterBtn = import_react71.css`
|
|
|
13926
14074
|
inset: 0 var(--spacing-base) 0 auto;
|
|
13927
14075
|
padding: 0 var(--spacing-base);
|
|
13928
14076
|
`;
|
|
13929
|
-
var linkParameterInput =
|
|
14077
|
+
var linkParameterInput = import_react74.css`
|
|
13930
14078
|
padding-right: calc(var(--spacing-2xl) + var(--spacing-base));
|
|
13931
14079
|
`;
|
|
13932
|
-
var linkParameterIcon =
|
|
14080
|
+
var linkParameterIcon = import_react74.css`
|
|
13933
14081
|
align-items: center;
|
|
13934
14082
|
color: var(--brand-secondary-3);
|
|
13935
14083
|
display: flex;
|
|
@@ -13944,7 +14092,7 @@ var linkParameterIcon = import_react71.css`
|
|
|
13944
14092
|
`;
|
|
13945
14093
|
|
|
13946
14094
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
13947
|
-
var
|
|
14095
|
+
var import_jsx_runtime70 = require("@emotion/react/jsx-runtime");
|
|
13948
14096
|
function ParameterDataResource({
|
|
13949
14097
|
label,
|
|
13950
14098
|
labelLeadingIcon,
|
|
@@ -13954,12 +14102,12 @@ function ParameterDataResource({
|
|
|
13954
14102
|
disabled,
|
|
13955
14103
|
children
|
|
13956
14104
|
}) {
|
|
13957
|
-
return /* @__PURE__ */ (0,
|
|
13958
|
-
/* @__PURE__ */ (0,
|
|
14105
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { "data-testid": "parameter-data-connect-button", children: [
|
|
14106
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("span", { css: labelText2, children: [
|
|
13959
14107
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
13960
14108
|
label
|
|
13961
14109
|
] }),
|
|
13962
|
-
/* @__PURE__ */ (0,
|
|
14110
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
|
|
13963
14111
|
"button",
|
|
13964
14112
|
{
|
|
13965
14113
|
type: "button",
|
|
@@ -13968,30 +14116,30 @@ function ParameterDataResource({
|
|
|
13968
14116
|
disabled,
|
|
13969
14117
|
onClick: onConnectDatasource,
|
|
13970
14118
|
children: [
|
|
13971
|
-
/* @__PURE__ */ (0,
|
|
14119
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
13972
14120
|
children
|
|
13973
14121
|
]
|
|
13974
14122
|
}
|
|
13975
14123
|
),
|
|
13976
|
-
caption ? /* @__PURE__ */ (0,
|
|
14124
|
+
caption ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Caption, { children: caption }) : null
|
|
13977
14125
|
] });
|
|
13978
14126
|
}
|
|
13979
14127
|
|
|
13980
14128
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
13981
|
-
var
|
|
13982
|
-
var ParameterDrawerHeaderContainer =
|
|
14129
|
+
var import_react75 = require("@emotion/react");
|
|
14130
|
+
var ParameterDrawerHeaderContainer = import_react75.css`
|
|
13983
14131
|
align-items: center;
|
|
13984
14132
|
display: flex;
|
|
13985
14133
|
gap: var(--spacing-base);
|
|
13986
14134
|
justify-content: space-between;
|
|
13987
14135
|
margin-bottom: var(--spacing-sm);
|
|
13988
14136
|
`;
|
|
13989
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
14137
|
+
var ParameterDrawerHeaderTitleGroup = import_react75.css`
|
|
13990
14138
|
align-items: center;
|
|
13991
14139
|
display: flex;
|
|
13992
14140
|
gap: var(--spacing-sm);
|
|
13993
14141
|
`;
|
|
13994
|
-
var ParameterDrawerHeaderTitle =
|
|
14142
|
+
var ParameterDrawerHeaderTitle = import_react75.css`
|
|
13995
14143
|
text-overflow: ellipsis;
|
|
13996
14144
|
white-space: nowrap;
|
|
13997
14145
|
overflow: hidden;
|
|
@@ -13999,23 +14147,23 @@ var ParameterDrawerHeaderTitle = import_react72.css`
|
|
|
13999
14147
|
`;
|
|
14000
14148
|
|
|
14001
14149
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
14002
|
-
var
|
|
14150
|
+
var import_jsx_runtime71 = require("@emotion/react/jsx-runtime");
|
|
14003
14151
|
var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
14004
|
-
return /* @__PURE__ */ (0,
|
|
14005
|
-
/* @__PURE__ */ (0,
|
|
14152
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
14153
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
14006
14154
|
iconBeforeTitle,
|
|
14007
|
-
/* @__PURE__ */ (0,
|
|
14155
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
|
|
14008
14156
|
] }),
|
|
14009
14157
|
children
|
|
14010
14158
|
] });
|
|
14011
14159
|
};
|
|
14012
14160
|
|
|
14013
14161
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
14014
|
-
var
|
|
14162
|
+
var import_react77 = require("react");
|
|
14015
14163
|
|
|
14016
14164
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
14017
|
-
var
|
|
14018
|
-
var fieldsetStyles =
|
|
14165
|
+
var import_react76 = require("@emotion/react");
|
|
14166
|
+
var fieldsetStyles = import_react76.css`
|
|
14019
14167
|
&:disabled,
|
|
14020
14168
|
[readonly] {
|
|
14021
14169
|
pointer-events: none;
|
|
@@ -14026,7 +14174,7 @@ var fieldsetStyles = import_react73.css`
|
|
|
14026
14174
|
}
|
|
14027
14175
|
}
|
|
14028
14176
|
`;
|
|
14029
|
-
var fieldsetLegend2 =
|
|
14177
|
+
var fieldsetLegend2 = import_react76.css`
|
|
14030
14178
|
display: block;
|
|
14031
14179
|
font-weight: var(--fw-medium);
|
|
14032
14180
|
margin-bottom: var(--spacing-sm);
|
|
@@ -14034,38 +14182,38 @@ var fieldsetLegend2 = import_react73.css`
|
|
|
14034
14182
|
`;
|
|
14035
14183
|
|
|
14036
14184
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
14037
|
-
var
|
|
14038
|
-
var ParameterGroup = (0,
|
|
14185
|
+
var import_jsx_runtime72 = require("@emotion/react/jsx-runtime");
|
|
14186
|
+
var ParameterGroup = (0, import_react77.forwardRef)(
|
|
14039
14187
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
14040
|
-
return /* @__PURE__ */ (0,
|
|
14041
|
-
/* @__PURE__ */ (0,
|
|
14188
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
14189
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("legend", { css: fieldsetLegend2, children: legend }),
|
|
14042
14190
|
children
|
|
14043
14191
|
] });
|
|
14044
14192
|
}
|
|
14045
14193
|
);
|
|
14046
14194
|
|
|
14047
14195
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
14048
|
-
var
|
|
14196
|
+
var import_react81 = require("react");
|
|
14049
14197
|
|
|
14050
14198
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
14051
|
-
var
|
|
14199
|
+
var import_react80 = require("react");
|
|
14052
14200
|
|
|
14053
14201
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
14054
|
-
var
|
|
14202
|
+
var import_jsx_runtime73 = require("@emotion/react/jsx-runtime");
|
|
14055
14203
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
14056
|
-
return !asSpan ? /* @__PURE__ */ (0,
|
|
14204
|
+
return !asSpan ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { "aria-labelledby": id, css: labelText2, children });
|
|
14057
14205
|
};
|
|
14058
14206
|
|
|
14059
14207
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
14060
|
-
var
|
|
14061
|
-
var
|
|
14062
|
-
var ParameterMenuButton = (0,
|
|
14208
|
+
var import_react78 = require("react");
|
|
14209
|
+
var import_jsx_runtime74 = require("@emotion/react/jsx-runtime");
|
|
14210
|
+
var ParameterMenuButton = (0, import_react78.forwardRef)(
|
|
14063
14211
|
({ label, children }, ref) => {
|
|
14064
|
-
return /* @__PURE__ */ (0,
|
|
14212
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
14065
14213
|
Menu,
|
|
14066
14214
|
{
|
|
14067
14215
|
menuLabel: `${label} menu`,
|
|
14068
|
-
menuTrigger: /* @__PURE__ */ (0,
|
|
14216
|
+
menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
14069
14217
|
"button",
|
|
14070
14218
|
{
|
|
14071
14219
|
className: "parameter-menu",
|
|
@@ -14073,7 +14221,7 @@ var ParameterMenuButton = (0, import_react75.forwardRef)(
|
|
|
14073
14221
|
type: "button",
|
|
14074
14222
|
"aria-label": `${label} options`,
|
|
14075
14223
|
ref,
|
|
14076
|
-
children: /* @__PURE__ */ (0,
|
|
14224
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
14077
14225
|
}
|
|
14078
14226
|
),
|
|
14079
14227
|
children
|
|
@@ -14083,15 +14231,15 @@ var ParameterMenuButton = (0, import_react75.forwardRef)(
|
|
|
14083
14231
|
);
|
|
14084
14232
|
|
|
14085
14233
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
14086
|
-
var
|
|
14087
|
-
var emptyParameterShell =
|
|
14234
|
+
var import_react79 = require("@emotion/react");
|
|
14235
|
+
var emptyParameterShell = import_react79.css`
|
|
14088
14236
|
border-radius: var(--rounded-sm);
|
|
14089
14237
|
background: var(--white);
|
|
14090
14238
|
flex-grow: 1;
|
|
14091
14239
|
padding: var(--spacing-xs);
|
|
14092
14240
|
position: relative;
|
|
14093
14241
|
`;
|
|
14094
|
-
var emptyParameterShellText =
|
|
14242
|
+
var emptyParameterShellText = import_react79.css`
|
|
14095
14243
|
background: var(--brand-secondary-6);
|
|
14096
14244
|
border-radius: var(--rounded-sm);
|
|
14097
14245
|
padding: var(--spacing-sm);
|
|
@@ -14099,7 +14247,7 @@ var emptyParameterShellText = import_react76.css`
|
|
|
14099
14247
|
font-size: var(--fs-sm);
|
|
14100
14248
|
margin: 0;
|
|
14101
14249
|
`;
|
|
14102
|
-
var overrideMarker =
|
|
14250
|
+
var overrideMarker = import_react79.css`
|
|
14103
14251
|
border-radius: var(--rounded-sm);
|
|
14104
14252
|
border: 10px solid var(--gray-300);
|
|
14105
14253
|
border-left-color: transparent;
|
|
@@ -14110,7 +14258,7 @@ var overrideMarker = import_react76.css`
|
|
|
14110
14258
|
`;
|
|
14111
14259
|
|
|
14112
14260
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
14113
|
-
var
|
|
14261
|
+
var import_jsx_runtime75 = require("@emotion/react/jsx-runtime");
|
|
14114
14262
|
var extractParameterProps = (props) => {
|
|
14115
14263
|
const {
|
|
14116
14264
|
id,
|
|
@@ -14119,6 +14267,8 @@ var extractParameterProps = (props) => {
|
|
|
14119
14267
|
captionTestId,
|
|
14120
14268
|
errorMessage,
|
|
14121
14269
|
errorTestId,
|
|
14270
|
+
infoMessage,
|
|
14271
|
+
warningMessage,
|
|
14122
14272
|
hiddenLabel,
|
|
14123
14273
|
labelLeadingIcon,
|
|
14124
14274
|
menuItems,
|
|
@@ -14135,6 +14285,8 @@ var extractParameterProps = (props) => {
|
|
|
14135
14285
|
caption,
|
|
14136
14286
|
captionTestId,
|
|
14137
14287
|
errorMessage,
|
|
14288
|
+
infoMessage,
|
|
14289
|
+
warningMessage,
|
|
14138
14290
|
errorTestId,
|
|
14139
14291
|
hiddenLabel,
|
|
14140
14292
|
labelLeadingIcon,
|
|
@@ -14153,6 +14305,8 @@ var ParameterShell = ({
|
|
|
14153
14305
|
hiddenLabel,
|
|
14154
14306
|
id,
|
|
14155
14307
|
errorMessage,
|
|
14308
|
+
warningMessage,
|
|
14309
|
+
infoMessage,
|
|
14156
14310
|
caption,
|
|
14157
14311
|
errorTestId,
|
|
14158
14312
|
captionTestId,
|
|
@@ -14163,21 +14317,21 @@ var ParameterShell = ({
|
|
|
14163
14317
|
children,
|
|
14164
14318
|
...props
|
|
14165
14319
|
}) => {
|
|
14166
|
-
const [manualErrorMessage, setManualErrorMessage] = (0,
|
|
14320
|
+
const [manualErrorMessage, setManualErrorMessage] = (0, import_react80.useState)(void 0);
|
|
14167
14321
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
14168
14322
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
14169
|
-
return /* @__PURE__ */ (0,
|
|
14170
|
-
hiddenLabel || title ? null : /* @__PURE__ */ (0,
|
|
14323
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { css: inputContainer2, ...props, children: [
|
|
14324
|
+
hiddenLabel || title ? null : /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(ParameterLabel, { id, css: labelText2, children: [
|
|
14171
14325
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
14172
14326
|
label
|
|
14173
14327
|
] }),
|
|
14174
|
-
!title ? null : /* @__PURE__ */ (0,
|
|
14328
|
+
!title ? null : /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(ParameterLabel, { id, asSpan: true, children: [
|
|
14175
14329
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
14176
14330
|
title
|
|
14177
14331
|
] }),
|
|
14178
|
-
/* @__PURE__ */ (0,
|
|
14179
|
-
menuItems ? /* @__PURE__ */ (0,
|
|
14180
|
-
/* @__PURE__ */ (0,
|
|
14332
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { css: inputWrapper, children: [
|
|
14333
|
+
menuItems ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
14334
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
14181
14335
|
ParameterShellContext.Provider,
|
|
14182
14336
|
{
|
|
14183
14337
|
value: {
|
|
@@ -14187,30 +14341,32 @@ var ParameterShell = ({
|
|
|
14187
14341
|
errorMessage: errorMessaging,
|
|
14188
14342
|
onManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
14189
14343
|
},
|
|
14190
|
-
children: /* @__PURE__ */ (0,
|
|
14344
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(ParameterShellPlaceholder, { children: [
|
|
14191
14345
|
children,
|
|
14192
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0,
|
|
14346
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
14193
14347
|
] })
|
|
14194
14348
|
}
|
|
14195
14349
|
)
|
|
14196
14350
|
] }),
|
|
14197
|
-
caption ? /* @__PURE__ */ (0,
|
|
14198
|
-
errorMessaging ? /* @__PURE__ */ (0,
|
|
14351
|
+
caption ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Caption, { testId: captionTestId, children: caption }) : null,
|
|
14352
|
+
errorMessaging ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null,
|
|
14353
|
+
warningMessage ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(WarningMessage, { message: warningMessage }) : null,
|
|
14354
|
+
infoMessage ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(InfoMessage, { message: infoMessage }) : null
|
|
14199
14355
|
] });
|
|
14200
14356
|
};
|
|
14201
14357
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
14202
|
-
return /* @__PURE__ */ (0,
|
|
14358
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { css: emptyParameterShell, children });
|
|
14203
14359
|
};
|
|
14204
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0,
|
|
14360
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
14205
14361
|
|
|
14206
14362
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
14207
|
-
var
|
|
14208
|
-
var ParameterImage = (0,
|
|
14363
|
+
var import_jsx_runtime76 = require("@emotion/react/jsx-runtime");
|
|
14364
|
+
var ParameterImage = (0, import_react81.forwardRef)((props, ref) => {
|
|
14209
14365
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14210
|
-
return /* @__PURE__ */ (0,
|
|
14366
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ParameterImageInner, { ref, ...innerProps }) });
|
|
14211
14367
|
});
|
|
14212
14368
|
var BrokenImage = ({ ...props }) => {
|
|
14213
|
-
return /* @__PURE__ */ (0,
|
|
14369
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
14214
14370
|
"svg",
|
|
14215
14371
|
{
|
|
14216
14372
|
width: "214",
|
|
@@ -14221,11 +14377,11 @@ var BrokenImage = ({ ...props }) => {
|
|
|
14221
14377
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
14222
14378
|
...props,
|
|
14223
14379
|
children: [
|
|
14224
|
-
/* @__PURE__ */ (0,
|
|
14225
|
-
/* @__PURE__ */ (0,
|
|
14226
|
-
/* @__PURE__ */ (0,
|
|
14227
|
-
/* @__PURE__ */ (0,
|
|
14228
|
-
/* @__PURE__ */ (0,
|
|
14380
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
14381
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
14382
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("defs", { children: [
|
|
14383
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
14384
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
14229
14385
|
"image",
|
|
14230
14386
|
{
|
|
14231
14387
|
id: "image0_761_4353",
|
|
@@ -14239,14 +14395,14 @@ var BrokenImage = ({ ...props }) => {
|
|
|
14239
14395
|
}
|
|
14240
14396
|
);
|
|
14241
14397
|
};
|
|
14242
|
-
var ParameterImageInner = (0,
|
|
14398
|
+
var ParameterImageInner = (0, import_react81.forwardRef)(
|
|
14243
14399
|
({ ...props }, ref) => {
|
|
14244
14400
|
const { value } = props;
|
|
14245
14401
|
const { id, label, hiddenLabel, errorMessage, onManuallySetErrorMessage } = useParameterShell();
|
|
14246
|
-
const [loading, setLoading] = (0,
|
|
14247
|
-
const deferredValue = (0,
|
|
14402
|
+
const [loading, setLoading] = (0, import_react81.useState)(false);
|
|
14403
|
+
const deferredValue = (0, import_react81.useDeferredValue)(value);
|
|
14248
14404
|
const errorText = "The text you provided is not a valid URL";
|
|
14249
|
-
const updateImageSrc = (0,
|
|
14405
|
+
const updateImageSrc = (0, import_react81.useCallback)(() => {
|
|
14250
14406
|
let message = void 0;
|
|
14251
14407
|
try {
|
|
14252
14408
|
if (value !== "") {
|
|
@@ -14274,11 +14430,11 @@ var ParameterImageInner = (0, import_react78.forwardRef)(
|
|
|
14274
14430
|
onManuallySetErrorMessage(errorText);
|
|
14275
14431
|
}
|
|
14276
14432
|
};
|
|
14277
|
-
(0,
|
|
14433
|
+
(0, import_react81.useEffect)(() => {
|
|
14278
14434
|
updateImageSrc();
|
|
14279
14435
|
}, [value]);
|
|
14280
|
-
return /* @__PURE__ */ (0,
|
|
14281
|
-
/* @__PURE__ */ (0,
|
|
14436
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
|
|
14437
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
14282
14438
|
"input",
|
|
14283
14439
|
{
|
|
14284
14440
|
css: input2,
|
|
@@ -14290,8 +14446,8 @@ var ParameterImageInner = (0, import_react78.forwardRef)(
|
|
|
14290
14446
|
...props
|
|
14291
14447
|
}
|
|
14292
14448
|
),
|
|
14293
|
-
/* @__PURE__ */ (0,
|
|
14294
|
-
deferredValue && !errorMessage ? /* @__PURE__ */ (0,
|
|
14449
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { css: imageWrapper, children: [
|
|
14450
|
+
deferredValue && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
14295
14451
|
"img",
|
|
14296
14452
|
{
|
|
14297
14453
|
src: deferredValue,
|
|
@@ -14301,24 +14457,24 @@ var ParameterImageInner = (0, import_react78.forwardRef)(
|
|
|
14301
14457
|
loading: "lazy"
|
|
14302
14458
|
}
|
|
14303
14459
|
) : null,
|
|
14304
|
-
deferredValue && errorMessage ? /* @__PURE__ */ (0,
|
|
14460
|
+
deferredValue && errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(BrokenImage, { css: img }) : null
|
|
14305
14461
|
] }),
|
|
14306
|
-
loading ? /* @__PURE__ */ (0,
|
|
14462
|
+
loading ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(LoadingIcon, {}) : null
|
|
14307
14463
|
] });
|
|
14308
14464
|
}
|
|
14309
14465
|
);
|
|
14310
14466
|
|
|
14311
14467
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
14312
|
-
var
|
|
14313
|
-
var
|
|
14314
|
-
var ParameterInput = (0,
|
|
14468
|
+
var import_react82 = require("react");
|
|
14469
|
+
var import_jsx_runtime77 = require("@emotion/react/jsx-runtime");
|
|
14470
|
+
var ParameterInput = (0, import_react82.forwardRef)((props, ref) => {
|
|
14315
14471
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14316
|
-
return /* @__PURE__ */ (0,
|
|
14472
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ParameterShell, { "data-test-id": "parameter-input", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ParameterInputInner, { ref, ...innerProps }) });
|
|
14317
14473
|
});
|
|
14318
|
-
var ParameterInputInner = (0,
|
|
14474
|
+
var ParameterInputInner = (0, import_react82.forwardRef)(
|
|
14319
14475
|
({ ...props }, ref) => {
|
|
14320
14476
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14321
|
-
return /* @__PURE__ */ (0,
|
|
14477
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
14322
14478
|
"input",
|
|
14323
14479
|
{
|
|
14324
14480
|
css: input2,
|
|
@@ -14334,19 +14490,19 @@ var ParameterInputInner = (0, import_react79.forwardRef)(
|
|
|
14334
14490
|
);
|
|
14335
14491
|
|
|
14336
14492
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
14337
|
-
var
|
|
14338
|
-
var
|
|
14339
|
-
var ParameterLink = (0,
|
|
14493
|
+
var import_react83 = require("react");
|
|
14494
|
+
var import_jsx_runtime78 = require("@emotion/react/jsx-runtime");
|
|
14495
|
+
var ParameterLink = (0, import_react83.forwardRef)(
|
|
14340
14496
|
({ buttonText = "Select project map node", disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
14341
14497
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14342
|
-
return /* @__PURE__ */ (0,
|
|
14498
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
14343
14499
|
ParameterShell,
|
|
14344
14500
|
{
|
|
14345
14501
|
"data-test-id": "link-parameter-editor",
|
|
14346
14502
|
...shellProps,
|
|
14347
14503
|
label: innerProps.value ? shellProps.label : "",
|
|
14348
14504
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
14349
|
-
children: !innerProps.value ? /* @__PURE__ */ (0,
|
|
14505
|
+
children: !innerProps.value ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText }) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
14350
14506
|
ParameterLinkInner,
|
|
14351
14507
|
{
|
|
14352
14508
|
onConnectLink,
|
|
@@ -14359,11 +14515,11 @@ var ParameterLink = (0, import_react80.forwardRef)(
|
|
|
14359
14515
|
);
|
|
14360
14516
|
}
|
|
14361
14517
|
);
|
|
14362
|
-
var ParameterLinkInner = (0,
|
|
14518
|
+
var ParameterLinkInner = (0, import_react83.forwardRef)(
|
|
14363
14519
|
({ externalLink, onConnectLink, disabled, ...props }, ref) => {
|
|
14364
14520
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14365
|
-
return /* @__PURE__ */ (0,
|
|
14366
|
-
/* @__PURE__ */ (0,
|
|
14521
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { css: inputWrapper, children: [
|
|
14522
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
14367
14523
|
"input",
|
|
14368
14524
|
{
|
|
14369
14525
|
type: "text",
|
|
@@ -14375,7 +14531,7 @@ var ParameterLinkInner = (0, import_react80.forwardRef)(
|
|
|
14375
14531
|
...props
|
|
14376
14532
|
}
|
|
14377
14533
|
),
|
|
14378
|
-
/* @__PURE__ */ (0,
|
|
14534
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
14379
14535
|
"button",
|
|
14380
14536
|
{
|
|
14381
14537
|
type: "button",
|
|
@@ -14386,7 +14542,7 @@ var ParameterLinkInner = (0, import_react80.forwardRef)(
|
|
|
14386
14542
|
children: "edit"
|
|
14387
14543
|
}
|
|
14388
14544
|
),
|
|
14389
|
-
externalLink ? /* @__PURE__ */ (0,
|
|
14545
|
+
externalLink ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
14390
14546
|
"a",
|
|
14391
14547
|
{
|
|
14392
14548
|
href: externalLink,
|
|
@@ -14394,7 +14550,7 @@ var ParameterLinkInner = (0, import_react80.forwardRef)(
|
|
|
14394
14550
|
title: "Open link in new tab",
|
|
14395
14551
|
target: "_blank",
|
|
14396
14552
|
rel: "noopener noreferrer",
|
|
14397
|
-
children: /* @__PURE__ */ (0,
|
|
14553
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
14398
14554
|
}
|
|
14399
14555
|
) : null
|
|
14400
14556
|
] });
|
|
@@ -14402,7 +14558,7 @@ var ParameterLinkInner = (0, import_react80.forwardRef)(
|
|
|
14402
14558
|
);
|
|
14403
14559
|
|
|
14404
14560
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
14405
|
-
var
|
|
14561
|
+
var import_jsx_runtime79 = require("@emotion/react/jsx-runtime");
|
|
14406
14562
|
var ParameterNameAndPublicIdInput = ({
|
|
14407
14563
|
id,
|
|
14408
14564
|
onBlur,
|
|
@@ -14428,8 +14584,8 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14428
14584
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
14429
14585
|
};
|
|
14430
14586
|
autoFocus == null ? void 0 : autoFocus();
|
|
14431
|
-
return /* @__PURE__ */ (0,
|
|
14432
|
-
/* @__PURE__ */ (0,
|
|
14587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
|
|
14588
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
14433
14589
|
ParameterInput,
|
|
14434
14590
|
{
|
|
14435
14591
|
id: nameIdField,
|
|
@@ -14448,7 +14604,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14448
14604
|
value: values[nameIdField]
|
|
14449
14605
|
}
|
|
14450
14606
|
),
|
|
14451
|
-
/* @__PURE__ */ (0,
|
|
14607
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
14452
14608
|
ParameterInput,
|
|
14453
14609
|
{
|
|
14454
14610
|
id: publicIdFieldName,
|
|
@@ -14462,11 +14618,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14462
14618
|
caption: publicIdCaption,
|
|
14463
14619
|
placeholder: publicIdPlaceholderText,
|
|
14464
14620
|
errorMessage: publicIdError,
|
|
14465
|
-
menuItems: /* @__PURE__ */ (0,
|
|
14621
|
+
menuItems: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
14466
14622
|
MenuItem,
|
|
14467
14623
|
{
|
|
14468
14624
|
disabled: !values[publicIdFieldName],
|
|
14469
|
-
icon: /* @__PURE__ */ (0,
|
|
14625
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
14470
14626
|
onClick: handleCopyPidFieldValue,
|
|
14471
14627
|
children: "Copy"
|
|
14472
14628
|
}
|
|
@@ -14474,14 +14630,14 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14474
14630
|
value: values[publicIdFieldName]
|
|
14475
14631
|
}
|
|
14476
14632
|
),
|
|
14477
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ (0,
|
|
14633
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
14478
14634
|
] });
|
|
14479
14635
|
};
|
|
14480
14636
|
|
|
14481
14637
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
14482
|
-
var
|
|
14483
|
-
var
|
|
14484
|
-
var ParameterRichText = (0,
|
|
14638
|
+
var import_react84 = require("react");
|
|
14639
|
+
var import_jsx_runtime80 = require("@emotion/react/jsx-runtime");
|
|
14640
|
+
var ParameterRichText = (0, import_react84.forwardRef)(
|
|
14485
14641
|
({
|
|
14486
14642
|
label,
|
|
14487
14643
|
labelLeadingIcon,
|
|
@@ -14494,7 +14650,7 @@ var ParameterRichText = (0, import_react81.forwardRef)(
|
|
|
14494
14650
|
menuItems,
|
|
14495
14651
|
...props
|
|
14496
14652
|
}, ref) => {
|
|
14497
|
-
return /* @__PURE__ */ (0,
|
|
14653
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
14498
14654
|
ParameterShell,
|
|
14499
14655
|
{
|
|
14500
14656
|
"data-test-id": "parameter-input",
|
|
@@ -14507,16 +14663,16 @@ var ParameterRichText = (0, import_react81.forwardRef)(
|
|
|
14507
14663
|
captionTestId,
|
|
14508
14664
|
menuItems,
|
|
14509
14665
|
children: [
|
|
14510
|
-
/* @__PURE__ */ (0,
|
|
14511
|
-
menuItems ? /* @__PURE__ */ (0,
|
|
14666
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ParameterRichTextInner, { ref, ...props }),
|
|
14667
|
+
menuItems ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_jsx_runtime80.Fragment, { children: menuItems }) }) : null
|
|
14512
14668
|
]
|
|
14513
14669
|
}
|
|
14514
14670
|
);
|
|
14515
14671
|
}
|
|
14516
14672
|
);
|
|
14517
|
-
var ParameterRichTextInner = (0,
|
|
14673
|
+
var ParameterRichTextInner = (0, import_react84.forwardRef)(({ ...props }, ref) => {
|
|
14518
14674
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14519
|
-
return /* @__PURE__ */ (0,
|
|
14675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
14520
14676
|
"textarea",
|
|
14521
14677
|
{
|
|
14522
14678
|
css: [input2, textarea2],
|
|
@@ -14529,18 +14685,18 @@ var ParameterRichTextInner = (0, import_react81.forwardRef)(({ ...props }, ref)
|
|
|
14529
14685
|
});
|
|
14530
14686
|
|
|
14531
14687
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
14532
|
-
var
|
|
14533
|
-
var
|
|
14534
|
-
var ParameterSelect = (0,
|
|
14688
|
+
var import_react85 = require("react");
|
|
14689
|
+
var import_jsx_runtime81 = require("@emotion/react/jsx-runtime");
|
|
14690
|
+
var ParameterSelect = (0, import_react85.forwardRef)(
|
|
14535
14691
|
({ defaultOption, options, ...props }, ref) => {
|
|
14536
14692
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14537
|
-
return /* @__PURE__ */ (0,
|
|
14693
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
14538
14694
|
}
|
|
14539
14695
|
);
|
|
14540
|
-
var ParameterSelectInner = (0,
|
|
14696
|
+
var ParameterSelectInner = (0, import_react85.forwardRef)(
|
|
14541
14697
|
({ defaultOption, options, ...props }, ref) => {
|
|
14542
14698
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14543
|
-
return /* @__PURE__ */ (0,
|
|
14699
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
14544
14700
|
"select",
|
|
14545
14701
|
{
|
|
14546
14702
|
css: [input2, selectInput],
|
|
@@ -14549,10 +14705,10 @@ var ParameterSelectInner = (0, import_react82.forwardRef)(
|
|
|
14549
14705
|
ref,
|
|
14550
14706
|
...props,
|
|
14551
14707
|
children: [
|
|
14552
|
-
defaultOption ? /* @__PURE__ */ (0,
|
|
14708
|
+
defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("option", { value: "", children: defaultOption }) : null,
|
|
14553
14709
|
options.map((option) => {
|
|
14554
14710
|
var _a;
|
|
14555
|
-
return /* @__PURE__ */ (0,
|
|
14711
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
14556
14712
|
})
|
|
14557
14713
|
]
|
|
14558
14714
|
}
|
|
@@ -14561,15 +14717,15 @@ var ParameterSelectInner = (0, import_react82.forwardRef)(
|
|
|
14561
14717
|
);
|
|
14562
14718
|
|
|
14563
14719
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
14564
|
-
var
|
|
14565
|
-
var
|
|
14566
|
-
var ParameterTextarea = (0,
|
|
14720
|
+
var import_react86 = require("react");
|
|
14721
|
+
var import_jsx_runtime82 = require("@emotion/react/jsx-runtime");
|
|
14722
|
+
var ParameterTextarea = (0, import_react86.forwardRef)((props, ref) => {
|
|
14567
14723
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14568
|
-
return /* @__PURE__ */ (0,
|
|
14724
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ParameterShell, { "data-test-id": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
14569
14725
|
});
|
|
14570
|
-
var ParameterTextareaInner = (0,
|
|
14726
|
+
var ParameterTextareaInner = (0, import_react86.forwardRef)(({ ...props }, ref) => {
|
|
14571
14727
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14572
|
-
return /* @__PURE__ */ (0,
|
|
14728
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
14573
14729
|
"textarea",
|
|
14574
14730
|
{
|
|
14575
14731
|
css: [input2, textarea2],
|
|
@@ -14582,18 +14738,18 @@ var ParameterTextareaInner = (0, import_react83.forwardRef)(({ ...props }, ref)
|
|
|
14582
14738
|
});
|
|
14583
14739
|
|
|
14584
14740
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
14585
|
-
var
|
|
14586
|
-
var
|
|
14587
|
-
var ParameterToggle = (0,
|
|
14741
|
+
var import_react87 = require("react");
|
|
14742
|
+
var import_jsx_runtime83 = require("@emotion/react/jsx-runtime");
|
|
14743
|
+
var ParameterToggle = (0, import_react87.forwardRef)((props, ref) => {
|
|
14588
14744
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14589
|
-
return /* @__PURE__ */ (0,
|
|
14745
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ParameterToggleInner, { ref, ...innerProps }) });
|
|
14590
14746
|
});
|
|
14591
|
-
var ParameterToggleInner = (0,
|
|
14747
|
+
var ParameterToggleInner = (0, import_react87.forwardRef)(
|
|
14592
14748
|
({ ...props }, ref) => {
|
|
14593
14749
|
const { id, label } = useParameterShell();
|
|
14594
|
-
return /* @__PURE__ */ (0,
|
|
14595
|
-
/* @__PURE__ */ (0,
|
|
14596
|
-
/* @__PURE__ */ (0,
|
|
14750
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("label", { css: inputToggleLabel2, children: [
|
|
14751
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
14752
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { css: inlineLabel2, children: label })
|
|
14597
14753
|
] });
|
|
14598
14754
|
}
|
|
14599
14755
|
);
|
|
@@ -14603,13 +14759,13 @@ var import_Popover = require("reakit/Popover");
|
|
|
14603
14759
|
var import_Portal2 = require("reakit/Portal");
|
|
14604
14760
|
|
|
14605
14761
|
// src/components/Popover/Popover.styles.ts
|
|
14606
|
-
var
|
|
14607
|
-
var PopoverBtn =
|
|
14762
|
+
var import_react88 = require("@emotion/react");
|
|
14763
|
+
var PopoverBtn = import_react88.css`
|
|
14608
14764
|
border: none;
|
|
14609
14765
|
background: none;
|
|
14610
14766
|
padding: 0;
|
|
14611
14767
|
`;
|
|
14612
|
-
var Popover =
|
|
14768
|
+
var Popover = import_react88.css`
|
|
14613
14769
|
border-left: var(--spacing-xs) solid var(--brand-secondary-3);
|
|
14614
14770
|
border-radius: var(--rounded-base);
|
|
14615
14771
|
box-shadow: var(--shadow-base);
|
|
@@ -14622,7 +14778,7 @@ var Popover = import_react85.css`
|
|
|
14622
14778
|
`;
|
|
14623
14779
|
|
|
14624
14780
|
// src/components/Popover/Popover.tsx
|
|
14625
|
-
var
|
|
14781
|
+
var import_jsx_runtime84 = require("@emotion/react/jsx-runtime");
|
|
14626
14782
|
var Popover2 = ({
|
|
14627
14783
|
iconColor = "green",
|
|
14628
14784
|
buttonText,
|
|
@@ -14631,38 +14787,38 @@ var Popover2 = ({
|
|
|
14631
14787
|
children
|
|
14632
14788
|
}) => {
|
|
14633
14789
|
const popover = (0, import_Popover.usePopoverState)({ placement });
|
|
14634
|
-
return /* @__PURE__ */ (0,
|
|
14635
|
-
/* @__PURE__ */ (0,
|
|
14636
|
-
/* @__PURE__ */ (0,
|
|
14637
|
-
/* @__PURE__ */ (0,
|
|
14790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
|
|
14791
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_Popover.PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, children: [
|
|
14792
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Icon, { icon: "info", iconColor, size: "1rem" }),
|
|
14793
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { hidden: true, children: buttonText })
|
|
14638
14794
|
] }),
|
|
14639
|
-
/* @__PURE__ */ (0,
|
|
14795
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_Portal2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_Popover.Popover, { css: Popover, ...popover, "aria-label": ariaLabel, children }) })
|
|
14640
14796
|
] });
|
|
14641
14797
|
};
|
|
14642
14798
|
|
|
14643
14799
|
// src/components/ProgressList/ProgressList.tsx
|
|
14644
|
-
var
|
|
14645
|
-
var
|
|
14646
|
-
var
|
|
14800
|
+
var import_react90 = require("@emotion/react");
|
|
14801
|
+
var import_react91 = require("react");
|
|
14802
|
+
var import_cg14 = require("react-icons/cg");
|
|
14647
14803
|
|
|
14648
14804
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
14649
|
-
var
|
|
14650
|
-
var progressListStyles =
|
|
14805
|
+
var import_react89 = require("@emotion/react");
|
|
14806
|
+
var progressListStyles = import_react89.css`
|
|
14651
14807
|
display: flex;
|
|
14652
14808
|
flex-direction: column;
|
|
14653
14809
|
gap: var(--spacing-sm);
|
|
14654
14810
|
list-style-type: none;
|
|
14655
14811
|
`;
|
|
14656
|
-
var progressListItemStyles =
|
|
14812
|
+
var progressListItemStyles = import_react89.css`
|
|
14657
14813
|
display: flex;
|
|
14658
14814
|
gap: var(--spacing-base);
|
|
14659
14815
|
align-items: center;
|
|
14660
14816
|
`;
|
|
14661
14817
|
|
|
14662
14818
|
// src/components/ProgressList/ProgressList.tsx
|
|
14663
|
-
var
|
|
14819
|
+
var import_jsx_runtime85 = require("@emotion/react/jsx-runtime");
|
|
14664
14820
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
14665
|
-
const itemsWithStatus = (0,
|
|
14821
|
+
const itemsWithStatus = (0, import_react91.useMemo)(() => {
|
|
14666
14822
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
14667
14823
|
return items.map((item, index) => {
|
|
14668
14824
|
let status = "queued";
|
|
@@ -14674,8 +14830,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
14674
14830
|
return { ...item, status };
|
|
14675
14831
|
});
|
|
14676
14832
|
}, [items, inProgressId]);
|
|
14677
|
-
return /* @__PURE__ */ (0,
|
|
14678
|
-
return /* @__PURE__ */ (0,
|
|
14833
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
14834
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
14679
14835
|
ProgressListItem,
|
|
14680
14836
|
{
|
|
14681
14837
|
status,
|
|
@@ -14695,25 +14851,25 @@ var ProgressListItem = ({
|
|
|
14695
14851
|
errorLevel = "danger",
|
|
14696
14852
|
autoEllipsis = false
|
|
14697
14853
|
}) => {
|
|
14698
|
-
const Icon2 = (0,
|
|
14854
|
+
const Icon2 = (0, import_react91.useMemo)(() => {
|
|
14699
14855
|
if (error) {
|
|
14700
14856
|
return warningIcon;
|
|
14701
14857
|
}
|
|
14702
14858
|
const iconPerStatus = {
|
|
14703
|
-
completed:
|
|
14704
|
-
inProgress:
|
|
14705
|
-
queued:
|
|
14859
|
+
completed: import_cg14.CgCheckO,
|
|
14860
|
+
inProgress: import_cg14.CgRecord,
|
|
14861
|
+
queued: import_cg14.CgRadioCheck
|
|
14706
14862
|
};
|
|
14707
14863
|
return iconPerStatus[status];
|
|
14708
14864
|
}, [status, error]);
|
|
14709
|
-
const statusStyles = (0,
|
|
14865
|
+
const statusStyles = (0, import_react91.useMemo)(() => {
|
|
14710
14866
|
if (error) {
|
|
14711
|
-
return errorLevel === "caution" ?
|
|
14867
|
+
return errorLevel === "caution" ? import_react90.css`
|
|
14712
14868
|
color: rgb(161, 98, 7);
|
|
14713
14869
|
& svg {
|
|
14714
14870
|
color: rgb(250, 204, 21);
|
|
14715
14871
|
}
|
|
14716
|
-
` :
|
|
14872
|
+
` : import_react90.css`
|
|
14717
14873
|
color: rgb(185, 28, 28);
|
|
14718
14874
|
& svg {
|
|
14719
14875
|
color: var(--brand-primary-2);
|
|
@@ -14721,40 +14877,221 @@ var ProgressListItem = ({
|
|
|
14721
14877
|
`;
|
|
14722
14878
|
}
|
|
14723
14879
|
const colorPerStatus = {
|
|
14724
|
-
completed:
|
|
14880
|
+
completed: import_react90.css`
|
|
14725
14881
|
opacity: 0.75;
|
|
14726
14882
|
`,
|
|
14727
|
-
inProgress:
|
|
14883
|
+
inProgress: import_react90.css`
|
|
14728
14884
|
-webkit-text-stroke-width: thin;
|
|
14729
14885
|
`,
|
|
14730
|
-
queued:
|
|
14886
|
+
queued: import_react90.css`
|
|
14731
14887
|
opacity: 0.5;
|
|
14732
14888
|
`
|
|
14733
14889
|
};
|
|
14734
14890
|
return colorPerStatus[status];
|
|
14735
14891
|
}, [status, error, errorLevel]);
|
|
14736
|
-
return /* @__PURE__ */ (0,
|
|
14737
|
-
/* @__PURE__ */ (0,
|
|
14738
|
-
/* @__PURE__ */ (0,
|
|
14892
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
14893
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Icon2, { size: 20 }) }) }),
|
|
14894
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { children: [
|
|
14739
14895
|
children,
|
|
14740
|
-
/* @__PURE__ */ (0,
|
|
14896
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
14741
14897
|
] })
|
|
14742
14898
|
] });
|
|
14743
14899
|
};
|
|
14744
14900
|
|
|
14901
|
+
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
14902
|
+
var import_react93 = require("@emotion/react");
|
|
14903
|
+
var import_react94 = require("react");
|
|
14904
|
+
var import_cg15 = require("react-icons/cg");
|
|
14905
|
+
|
|
14906
|
+
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
14907
|
+
var import_react92 = require("@emotion/react");
|
|
14908
|
+
var segmentedControlStyles = import_react92.css`
|
|
14909
|
+
--segmented-control-rounded-value: var(--rounded-base);
|
|
14910
|
+
--segmented-control-border-width: 1px;
|
|
14911
|
+
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
14912
|
+
--segmented-control-first-border-radius: var(--segmented-control-rounded-value) 0 0
|
|
14913
|
+
var(--segmented-control-rounded-value);
|
|
14914
|
+
--segmented-control-last-border-radius: 0 var(--segmented-control-rounded-value)
|
|
14915
|
+
var(--segmented-control-rounded-value) 0;
|
|
14916
|
+
|
|
14917
|
+
position: relative;
|
|
14918
|
+
display: flex;
|
|
14919
|
+
justify-content: flex-start;
|
|
14920
|
+
width: fit-content;
|
|
14921
|
+
background-color: var(--gray-300);
|
|
14922
|
+
padding: var(--segmented-control-border-width);
|
|
14923
|
+
gap: var(--segmented-control-border-width);
|
|
14924
|
+
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
14925
|
+
font-size: var(--fs-xs);
|
|
14926
|
+
`;
|
|
14927
|
+
var segmentedControlVerticalStyles = import_react92.css`
|
|
14928
|
+
flex-direction: column;
|
|
14929
|
+
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
14930
|
+
var(--segmented-control-rounded-value) 0 0;
|
|
14931
|
+
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
14932
|
+
var(--segmented-control-rounded-value);
|
|
14933
|
+
`;
|
|
14934
|
+
var segmentedControlItemStyles = import_react92.css`
|
|
14935
|
+
&:first-of-type label {
|
|
14936
|
+
border-radius: var(--segmented-control-first-border-radius);
|
|
14937
|
+
}
|
|
14938
|
+
&:last-of-type label {
|
|
14939
|
+
border-radius: var(--segmented-control-last-border-radius);
|
|
14940
|
+
}
|
|
14941
|
+
`;
|
|
14942
|
+
var segmentedControlInputStyles = import_react92.css`
|
|
14943
|
+
clip: rect(0, 0, 0, 0);
|
|
14944
|
+
position: absolute;
|
|
14945
|
+
width: 1px;
|
|
14946
|
+
height: 1px;
|
|
14947
|
+
overflow: hidden;
|
|
14948
|
+
`;
|
|
14949
|
+
var segmentedControlLabelStyles = import_react92.css`
|
|
14950
|
+
position: relative;
|
|
14951
|
+
display: flex;
|
|
14952
|
+
align-items: center;
|
|
14953
|
+
justify-content: center;
|
|
14954
|
+
height: 2rem;
|
|
14955
|
+
padding-inline: var(--spacing-base);
|
|
14956
|
+
background-color: white;
|
|
14957
|
+
transition-property: background-color, color, box-shadow;
|
|
14958
|
+
transition-duration: var(--duration-xfast);
|
|
14959
|
+
transition-timing-function: ease-in-out;
|
|
14960
|
+
z-index: 1;
|
|
14961
|
+
cursor: pointer;
|
|
14962
|
+
|
|
14963
|
+
&:has(:checked:not(:disabled)) {
|
|
14964
|
+
background-color: var(--segmented-control-selected-color);
|
|
14965
|
+
outline: var(--segmented-control-border-width) solid var(--segmented-control-selected-color);
|
|
14966
|
+
box-shadow: 0 0.43em 1.7em 0 rgba(0, 0, 0, 0.15);
|
|
14967
|
+
color: white;
|
|
14968
|
+
-webkit-text-stroke-width: thin;
|
|
14969
|
+
z-index: 0;
|
|
14970
|
+
}
|
|
14971
|
+
|
|
14972
|
+
&:hover:not(:has(:disabled, :checked)) {
|
|
14973
|
+
background-color: var(--gray-100);
|
|
14974
|
+
}
|
|
14975
|
+
|
|
14976
|
+
&:has(:disabled) {
|
|
14977
|
+
color: var(--gray-400);
|
|
14978
|
+
cursor: default;
|
|
14979
|
+
}
|
|
14980
|
+
|
|
14981
|
+
&:has(:checked:disabled) {
|
|
14982
|
+
color: var(--gray-50);
|
|
14983
|
+
background-color: var(--gray-400);
|
|
14984
|
+
}
|
|
14985
|
+
`;
|
|
14986
|
+
var segmentedControlLabelIconOnlyStyles = import_react92.css`
|
|
14987
|
+
padding-inline: 0.5em;
|
|
14988
|
+
`;
|
|
14989
|
+
var segmentedControlLabelCheckStyles = import_react92.css`
|
|
14990
|
+
opacity: 0.5;
|
|
14991
|
+
`;
|
|
14992
|
+
var segmentedControlLabelContentStyles = import_react92.css`
|
|
14993
|
+
display: flex;
|
|
14994
|
+
align-items: center;
|
|
14995
|
+
justify-content: center;
|
|
14996
|
+
gap: var(--spacing-sm);
|
|
14997
|
+
height: 100%;
|
|
14998
|
+
`;
|
|
14999
|
+
var segmentedControlLabelTextStyles = import_react92.css``;
|
|
15000
|
+
|
|
15001
|
+
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
15002
|
+
var import_jsx_runtime86 = require("@emotion/react/jsx-runtime");
|
|
15003
|
+
var SegmentedControl = ({
|
|
15004
|
+
name,
|
|
15005
|
+
options,
|
|
15006
|
+
value,
|
|
15007
|
+
onChange,
|
|
15008
|
+
noCheckmark = false,
|
|
15009
|
+
disabled = false,
|
|
15010
|
+
orientation = "horizontal",
|
|
15011
|
+
size = "md",
|
|
15012
|
+
...props
|
|
15013
|
+
}) => {
|
|
15014
|
+
const onOptionChange = (0, import_react94.useCallback)(
|
|
15015
|
+
(event) => {
|
|
15016
|
+
if (event.target.checked) {
|
|
15017
|
+
onChange == null ? void 0 : onChange(options[parseInt(event.target.value)].value);
|
|
15018
|
+
}
|
|
15019
|
+
},
|
|
15020
|
+
[options, onChange]
|
|
15021
|
+
);
|
|
15022
|
+
const sizeStyles = (0, import_react94.useMemo)(() => {
|
|
15023
|
+
const map = {
|
|
15024
|
+
sm: (0, import_react93.css)({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
15025
|
+
md: (0, import_react93.css)({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
15026
|
+
lg: (0, import_react93.css)({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
|
|
15027
|
+
};
|
|
15028
|
+
return map[size];
|
|
15029
|
+
}, [size]);
|
|
15030
|
+
const isIconOnly = (0, import_react94.useMemo)(() => {
|
|
15031
|
+
return options.every((option) => option.icon && !option.label);
|
|
15032
|
+
}, [options]);
|
|
15033
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
15034
|
+
"div",
|
|
15035
|
+
{
|
|
15036
|
+
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
15037
|
+
...props,
|
|
15038
|
+
children: options.map((option, index) => {
|
|
15039
|
+
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
15040
|
+
const isDisabled = disabled || option.disabled;
|
|
15041
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
15042
|
+
Tooltip,
|
|
15043
|
+
{
|
|
15044
|
+
title: isDisabled || !option.tooltip ? "" : option.tooltip,
|
|
15045
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { css: segmentedControlItemStyles, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
15046
|
+
"label",
|
|
15047
|
+
{
|
|
15048
|
+
css: [
|
|
15049
|
+
segmentedControlLabelStyles,
|
|
15050
|
+
sizeStyles,
|
|
15051
|
+
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
15052
|
+
],
|
|
15053
|
+
children: [
|
|
15054
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
15055
|
+
"input",
|
|
15056
|
+
{
|
|
15057
|
+
css: segmentedControlInputStyles,
|
|
15058
|
+
type: "radio",
|
|
15059
|
+
name,
|
|
15060
|
+
value: index,
|
|
15061
|
+
checked: option.value === value,
|
|
15062
|
+
onChange: onOptionChange,
|
|
15063
|
+
disabled: isDisabled
|
|
15064
|
+
}
|
|
15065
|
+
),
|
|
15066
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_cg15.CgCheck, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
15067
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("span", { css: segmentedControlLabelContentStyles, children: [
|
|
15068
|
+
!option.icon ? null : /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(option.icon, { size: "1.5em" }),
|
|
15069
|
+
!text ? null : /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
15070
|
+
] })
|
|
15071
|
+
]
|
|
15072
|
+
}
|
|
15073
|
+
) })
|
|
15074
|
+
},
|
|
15075
|
+
JSON.stringify(option.value)
|
|
15076
|
+
);
|
|
15077
|
+
})
|
|
15078
|
+
}
|
|
15079
|
+
);
|
|
15080
|
+
};
|
|
15081
|
+
|
|
14745
15082
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
14746
|
-
var
|
|
14747
|
-
var lightFadingOut =
|
|
15083
|
+
var import_react95 = require("@emotion/react");
|
|
15084
|
+
var lightFadingOut = import_react95.keyframes`
|
|
14748
15085
|
from { opacity: 0.1; }
|
|
14749
15086
|
to { opacity: 0.025; }
|
|
14750
15087
|
`;
|
|
14751
|
-
var skeletonStyles =
|
|
15088
|
+
var skeletonStyles = import_react95.css`
|
|
14752
15089
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
14753
15090
|
background-color: var(--gray-900);
|
|
14754
15091
|
`;
|
|
14755
15092
|
|
|
14756
15093
|
// src/components/Skeleton/Skeleton.tsx
|
|
14757
|
-
var
|
|
15094
|
+
var import_jsx_runtime87 = require("@emotion/react/jsx-runtime");
|
|
14758
15095
|
var Skeleton = ({
|
|
14759
15096
|
width = "100%",
|
|
14760
15097
|
height = "1.25rem",
|
|
@@ -14762,7 +15099,7 @@ var Skeleton = ({
|
|
|
14762
15099
|
circle = false,
|
|
14763
15100
|
children,
|
|
14764
15101
|
...otherProps
|
|
14765
|
-
}) => /* @__PURE__ */ (0,
|
|
15102
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
14766
15103
|
"div",
|
|
14767
15104
|
{
|
|
14768
15105
|
css: [
|
|
@@ -14782,11 +15119,11 @@ var Skeleton = ({
|
|
|
14782
15119
|
);
|
|
14783
15120
|
|
|
14784
15121
|
// src/components/Switch/Switch.tsx
|
|
14785
|
-
var
|
|
15122
|
+
var React18 = __toESM(require("react"));
|
|
14786
15123
|
|
|
14787
15124
|
// src/components/Switch/Switch.styles.ts
|
|
14788
|
-
var
|
|
14789
|
-
var SwitchInputContainer =
|
|
15125
|
+
var import_react96 = require("@emotion/react");
|
|
15126
|
+
var SwitchInputContainer = import_react96.css`
|
|
14790
15127
|
cursor: pointer;
|
|
14791
15128
|
display: inline-block;
|
|
14792
15129
|
position: relative;
|
|
@@ -14795,7 +15132,7 @@ var SwitchInputContainer = import_react90.css`
|
|
|
14795
15132
|
vertical-align: middle;
|
|
14796
15133
|
user-select: none;
|
|
14797
15134
|
`;
|
|
14798
|
-
var SwitchInput =
|
|
15135
|
+
var SwitchInput = import_react96.css`
|
|
14799
15136
|
appearance: none;
|
|
14800
15137
|
border-radius: var(--rounded-full);
|
|
14801
15138
|
background-color: var(--white);
|
|
@@ -14833,7 +15170,7 @@ var SwitchInput = import_react90.css`
|
|
|
14833
15170
|
cursor: not-allowed;
|
|
14834
15171
|
}
|
|
14835
15172
|
`;
|
|
14836
|
-
var SwitchInputDisabled =
|
|
15173
|
+
var SwitchInputDisabled = import_react96.css`
|
|
14837
15174
|
opacity: var(--opacity-50);
|
|
14838
15175
|
cursor: not-allowed;
|
|
14839
15176
|
|
|
@@ -14841,7 +15178,7 @@ var SwitchInputDisabled = import_react90.css`
|
|
|
14841
15178
|
cursor: not-allowed;
|
|
14842
15179
|
}
|
|
14843
15180
|
`;
|
|
14844
|
-
var SwitchInputLabel =
|
|
15181
|
+
var SwitchInputLabel = import_react96.css`
|
|
14845
15182
|
align-items: center;
|
|
14846
15183
|
color: var(--brand-secondary-1);
|
|
14847
15184
|
display: inline-flex;
|
|
@@ -14863,103 +15200,103 @@ var SwitchInputLabel = import_react90.css`
|
|
|
14863
15200
|
top: 0;
|
|
14864
15201
|
}
|
|
14865
15202
|
`;
|
|
14866
|
-
var SwitchText =
|
|
15203
|
+
var SwitchText = import_react96.css`
|
|
14867
15204
|
color: var(--gray-500);
|
|
14868
15205
|
font-size: var(--fs-sm);
|
|
14869
15206
|
padding-inline: var(--spacing-2xl) 0;
|
|
14870
15207
|
`;
|
|
14871
15208
|
|
|
14872
15209
|
// src/components/Switch/Switch.tsx
|
|
14873
|
-
var
|
|
14874
|
-
var Switch =
|
|
15210
|
+
var import_jsx_runtime88 = require("@emotion/react/jsx-runtime");
|
|
15211
|
+
var Switch = React18.forwardRef(
|
|
14875
15212
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
14876
15213
|
let additionalText = infoText;
|
|
14877
15214
|
if (infoText && toggleText) {
|
|
14878
15215
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
14879
15216
|
}
|
|
14880
|
-
return /* @__PURE__ */ (0,
|
|
14881
|
-
/* @__PURE__ */ (0,
|
|
14882
|
-
/* @__PURE__ */ (0,
|
|
14883
|
-
/* @__PURE__ */ (0,
|
|
15217
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_jsx_runtime88.Fragment, { children: [
|
|
15218
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
15219
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
15220
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { css: SwitchInputLabel, children: label })
|
|
14884
15221
|
] }),
|
|
14885
|
-
additionalText ? /* @__PURE__ */ (0,
|
|
15222
|
+
additionalText ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("p", { css: SwitchText, children: additionalText }) : null,
|
|
14886
15223
|
children
|
|
14887
15224
|
] });
|
|
14888
15225
|
}
|
|
14889
15226
|
);
|
|
14890
15227
|
|
|
14891
15228
|
// src/components/Table/Table.tsx
|
|
14892
|
-
var
|
|
15229
|
+
var React19 = __toESM(require("react"));
|
|
14893
15230
|
|
|
14894
15231
|
// src/components/Table/Table.styles.ts
|
|
14895
|
-
var
|
|
14896
|
-
var table =
|
|
15232
|
+
var import_react97 = require("@emotion/react");
|
|
15233
|
+
var table = import_react97.css`
|
|
14897
15234
|
border-bottom: 1px solid var(--gray-400);
|
|
14898
15235
|
border-collapse: collapse;
|
|
14899
15236
|
min-width: 100%;
|
|
14900
15237
|
table-layout: auto;
|
|
14901
15238
|
`;
|
|
14902
|
-
var tableHead =
|
|
15239
|
+
var tableHead = import_react97.css`
|
|
14903
15240
|
background: var(--gray-100);
|
|
14904
15241
|
color: var(--brand-secondary-1);
|
|
14905
15242
|
text-align: left;
|
|
14906
15243
|
`;
|
|
14907
|
-
var tableRow =
|
|
15244
|
+
var tableRow = import_react97.css`
|
|
14908
15245
|
border-bottom: 1px solid var(--gray-200);
|
|
14909
15246
|
`;
|
|
14910
|
-
var tableCellHead =
|
|
15247
|
+
var tableCellHead = import_react97.css`
|
|
14911
15248
|
font-size: var(--fs-sm);
|
|
14912
15249
|
padding: var(--spacing-base) var(--spacing-md);
|
|
14913
15250
|
text-transform: uppercase;
|
|
14914
15251
|
font-weight: var(--fw-bold);
|
|
14915
15252
|
`;
|
|
14916
|
-
var tableCellData =
|
|
15253
|
+
var tableCellData = import_react97.css`
|
|
14917
15254
|
padding: var(--spacing-base) var(--spacing-md);
|
|
14918
15255
|
`;
|
|
14919
15256
|
|
|
14920
15257
|
// src/components/Table/Table.tsx
|
|
14921
|
-
var
|
|
14922
|
-
var Table =
|
|
14923
|
-
return /* @__PURE__ */ (0,
|
|
15258
|
+
var import_jsx_runtime89 = require("@emotion/react/jsx-runtime");
|
|
15259
|
+
var Table = React19.forwardRef(({ children, ...otherProps }, ref) => {
|
|
15260
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("table", { ref, css: table, ...otherProps, children });
|
|
14924
15261
|
});
|
|
14925
|
-
var TableHead =
|
|
15262
|
+
var TableHead = React19.forwardRef(
|
|
14926
15263
|
({ children, ...otherProps }, ref) => {
|
|
14927
|
-
return /* @__PURE__ */ (0,
|
|
15264
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
|
|
14928
15265
|
}
|
|
14929
15266
|
);
|
|
14930
|
-
var TableBody =
|
|
15267
|
+
var TableBody = React19.forwardRef(
|
|
14931
15268
|
({ children, ...otherProps }, ref) => {
|
|
14932
|
-
return /* @__PURE__ */ (0,
|
|
15269
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("tbody", { ref, ...otherProps, children });
|
|
14933
15270
|
}
|
|
14934
15271
|
);
|
|
14935
|
-
var TableFoot =
|
|
15272
|
+
var TableFoot = React19.forwardRef(
|
|
14936
15273
|
({ children, ...otherProps }, ref) => {
|
|
14937
|
-
return /* @__PURE__ */ (0,
|
|
15274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("tfoot", { ref, ...otherProps, children });
|
|
14938
15275
|
}
|
|
14939
15276
|
);
|
|
14940
|
-
var TableRow =
|
|
15277
|
+
var TableRow = React19.forwardRef(
|
|
14941
15278
|
({ children, ...otherProps }, ref) => {
|
|
14942
|
-
return /* @__PURE__ */ (0,
|
|
15279
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
|
|
14943
15280
|
}
|
|
14944
15281
|
);
|
|
14945
|
-
var TableCellHead =
|
|
15282
|
+
var TableCellHead = React19.forwardRef(
|
|
14946
15283
|
({ children, ...otherProps }, ref) => {
|
|
14947
|
-
return /* @__PURE__ */ (0,
|
|
15284
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
14948
15285
|
}
|
|
14949
15286
|
);
|
|
14950
|
-
var TableCellData =
|
|
15287
|
+
var TableCellData = React19.forwardRef(
|
|
14951
15288
|
({ children, ...otherProps }, ref) => {
|
|
14952
|
-
return /* @__PURE__ */ (0,
|
|
15289
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("td", { ref, css: tableCellData, ...otherProps, children });
|
|
14953
15290
|
}
|
|
14954
15291
|
);
|
|
14955
15292
|
|
|
14956
15293
|
// src/components/Tabs/Tabs.tsx
|
|
14957
|
-
var
|
|
15294
|
+
var import_react99 = require("react");
|
|
14958
15295
|
var import_Tab = require("reakit/Tab");
|
|
14959
15296
|
|
|
14960
15297
|
// src/components/Tabs/Tabs.styles.ts
|
|
14961
|
-
var
|
|
14962
|
-
var tabButtonStyles =
|
|
15298
|
+
var import_react98 = require("@emotion/react");
|
|
15299
|
+
var tabButtonStyles = import_react98.css`
|
|
14963
15300
|
align-items: center;
|
|
14964
15301
|
border: 0;
|
|
14965
15302
|
height: 2.5rem;
|
|
@@ -14976,30 +15313,30 @@ var tabButtonStyles = import_react92.css`
|
|
|
14976
15313
|
-webkit-text-stroke-width: thin;
|
|
14977
15314
|
}
|
|
14978
15315
|
`;
|
|
14979
|
-
var tabButtonGroupStyles =
|
|
15316
|
+
var tabButtonGroupStyles = import_react98.css`
|
|
14980
15317
|
display: flex;
|
|
14981
15318
|
gap: var(--spacing-base);
|
|
14982
15319
|
border-bottom: 1px solid var(--gray-300);
|
|
14983
15320
|
`;
|
|
14984
15321
|
|
|
14985
15322
|
// src/components/Tabs/Tabs.tsx
|
|
14986
|
-
var
|
|
14987
|
-
var CurrentTabContext = (0,
|
|
15323
|
+
var import_jsx_runtime90 = require("@emotion/react/jsx-runtime");
|
|
15324
|
+
var CurrentTabContext = (0, import_react99.createContext)(null);
|
|
14988
15325
|
var useCurrentTab = () => {
|
|
14989
|
-
const context = (0,
|
|
15326
|
+
const context = (0, import_react99.useContext)(CurrentTabContext);
|
|
14990
15327
|
if (!context) {
|
|
14991
15328
|
throw new Error("This component can only be used inside <Tabs>");
|
|
14992
15329
|
}
|
|
14993
15330
|
return context;
|
|
14994
15331
|
};
|
|
14995
15332
|
var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...props }) => {
|
|
14996
|
-
const selected = (0,
|
|
15333
|
+
const selected = (0, import_react99.useMemo)(() => {
|
|
14997
15334
|
if (selectedId)
|
|
14998
15335
|
return selectedId;
|
|
14999
15336
|
return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
|
|
15000
15337
|
}, [selectedId, useHashForState]);
|
|
15001
15338
|
const tab = (0, import_Tab.useTabState)({ ...props, selectedId: selected });
|
|
15002
|
-
(0,
|
|
15339
|
+
(0, import_react99.useEffect)(() => {
|
|
15003
15340
|
var _a;
|
|
15004
15341
|
const selectedValueWithoutNull = (_a = tab.selectedId) != null ? _a : void 0;
|
|
15005
15342
|
onSelectedIdChange == null ? void 0 : onSelectedIdChange(selectedValueWithoutNull);
|
|
@@ -15007,29 +15344,29 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
15007
15344
|
window.location.hash = selectedValueWithoutNull != null ? selectedValueWithoutNull : "";
|
|
15008
15345
|
}
|
|
15009
15346
|
}, [tab.selectedId, onSelectedIdChange, useHashForState]);
|
|
15010
|
-
(0,
|
|
15347
|
+
(0, import_react99.useEffect)(() => {
|
|
15011
15348
|
if (selected && selected !== tab.selectedId) {
|
|
15012
15349
|
tab.setSelectedId(selected);
|
|
15013
15350
|
}
|
|
15014
15351
|
}, [selected]);
|
|
15015
|
-
return /* @__PURE__ */ (0,
|
|
15352
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(CurrentTabContext.Provider, { value: tab, children });
|
|
15016
15353
|
};
|
|
15017
15354
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
15018
15355
|
const currentTab = useCurrentTab();
|
|
15019
|
-
return /* @__PURE__ */ (0,
|
|
15356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_Tab.TabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
15020
15357
|
};
|
|
15021
15358
|
var TabButton = ({ children, id, ...props }) => {
|
|
15022
15359
|
const currentTab = useCurrentTab();
|
|
15023
|
-
return /* @__PURE__ */ (0,
|
|
15360
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_Tab.Tab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
15024
15361
|
};
|
|
15025
15362
|
var TabContent = ({ children, ...props }) => {
|
|
15026
15363
|
const currentTab = useCurrentTab();
|
|
15027
|
-
return /* @__PURE__ */ (0,
|
|
15364
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_Tab.TabPanel, { ...props, ...currentTab, children });
|
|
15028
15365
|
};
|
|
15029
15366
|
|
|
15030
15367
|
// src/components/Validation/StatusBullet.styles.ts
|
|
15031
|
-
var
|
|
15032
|
-
var StatusBulletContainer =
|
|
15368
|
+
var import_react100 = require("@emotion/react");
|
|
15369
|
+
var StatusBulletContainer = import_react100.css`
|
|
15033
15370
|
align-items: center;
|
|
15034
15371
|
align-self: center;
|
|
15035
15372
|
color: var(--gray-500);
|
|
@@ -15046,51 +15383,51 @@ var StatusBulletContainer = import_react94.css`
|
|
|
15046
15383
|
display: block;
|
|
15047
15384
|
}
|
|
15048
15385
|
`;
|
|
15049
|
-
var StatusBulletBase =
|
|
15386
|
+
var StatusBulletBase = import_react100.css`
|
|
15050
15387
|
font-size: var(--fs-sm);
|
|
15051
15388
|
&:before {
|
|
15052
15389
|
width: var(--fs-xs);
|
|
15053
15390
|
height: var(--fs-xs);
|
|
15054
15391
|
}
|
|
15055
15392
|
`;
|
|
15056
|
-
var StatusBulletSmall =
|
|
15393
|
+
var StatusBulletSmall = import_react100.css`
|
|
15057
15394
|
font-size: var(--fs-xs);
|
|
15058
15395
|
&:before {
|
|
15059
15396
|
width: var(--fs-xxs);
|
|
15060
15397
|
height: var(--fs-xxs);
|
|
15061
15398
|
}
|
|
15062
15399
|
`;
|
|
15063
|
-
var StatusDraft =
|
|
15400
|
+
var StatusDraft = import_react100.css`
|
|
15064
15401
|
&:before {
|
|
15065
15402
|
background: var(--white);
|
|
15066
15403
|
box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
|
|
15067
15404
|
}
|
|
15068
15405
|
`;
|
|
15069
|
-
var StatusModified =
|
|
15406
|
+
var StatusModified = import_react100.css`
|
|
15070
15407
|
&:before {
|
|
15071
15408
|
background: linear-gradient(to right, var(--white) 50%, var(--brand-primary-1) 50% 100%);
|
|
15072
15409
|
box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
|
|
15073
15410
|
}
|
|
15074
15411
|
`;
|
|
15075
|
-
var StatusError =
|
|
15412
|
+
var StatusError = import_react100.css`
|
|
15076
15413
|
color: var(--error);
|
|
15077
15414
|
&:before {
|
|
15078
15415
|
background: linear-gradient(120deg, var(--error) 40%, var(--white) 50%, var(--error) 60%);
|
|
15079
15416
|
}
|
|
15080
15417
|
`;
|
|
15081
|
-
var StatusPublished =
|
|
15418
|
+
var StatusPublished = import_react100.css`
|
|
15082
15419
|
&:before {
|
|
15083
15420
|
background: var(--brand-secondary-3);
|
|
15084
15421
|
}
|
|
15085
15422
|
`;
|
|
15086
|
-
var StatusOrphan =
|
|
15423
|
+
var StatusOrphan = import_react100.css`
|
|
15087
15424
|
&:before {
|
|
15088
15425
|
background: var(--brand-secondary-5);
|
|
15089
15426
|
}
|
|
15090
15427
|
`;
|
|
15091
15428
|
|
|
15092
15429
|
// src/components/Validation/StatusBullet.tsx
|
|
15093
|
-
var
|
|
15430
|
+
var import_jsx_runtime91 = require("@emotion/react/jsx-runtime");
|
|
15094
15431
|
var StatusBullet = ({
|
|
15095
15432
|
status,
|
|
15096
15433
|
hideText = false,
|
|
@@ -15107,7 +15444,7 @@ var StatusBullet = ({
|
|
|
15107
15444
|
Draft: StatusDraft
|
|
15108
15445
|
};
|
|
15109
15446
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
15110
|
-
return /* @__PURE__ */ (0,
|
|
15447
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
15111
15448
|
"span",
|
|
15112
15449
|
{
|
|
15113
15450
|
role: "status",
|
|
@@ -15124,6 +15461,7 @@ var StatusBullet = ({
|
|
|
15124
15461
|
AddListButton,
|
|
15125
15462
|
AnimationFile,
|
|
15126
15463
|
Badge,
|
|
15464
|
+
Banner,
|
|
15127
15465
|
Button,
|
|
15128
15466
|
ButtonWithMenu,
|
|
15129
15467
|
Callout,
|
|
@@ -15147,6 +15485,7 @@ var StatusBullet = ({
|
|
|
15147
15485
|
HexModalBackground,
|
|
15148
15486
|
Icon,
|
|
15149
15487
|
IconsProvider,
|
|
15488
|
+
InfoMessage,
|
|
15150
15489
|
InlineAlert,
|
|
15151
15490
|
Input,
|
|
15152
15491
|
InputComboBox,
|
|
@@ -15207,6 +15546,7 @@ var StatusBullet = ({
|
|
|
15207
15546
|
ScrollableList,
|
|
15208
15547
|
ScrollableListInputItem,
|
|
15209
15548
|
ScrollableListItem,
|
|
15549
|
+
SegmentedControl,
|
|
15210
15550
|
ShortcutContext,
|
|
15211
15551
|
ShortcutRevealer,
|
|
15212
15552
|
Skeleton,
|
|
@@ -15231,6 +15571,7 @@ var StatusBullet = ({
|
|
|
15231
15571
|
UniformLogo,
|
|
15232
15572
|
VerticalRhythm,
|
|
15233
15573
|
WarningMessage,
|
|
15574
|
+
borderTopIcon,
|
|
15234
15575
|
breakpoints,
|
|
15235
15576
|
button,
|
|
15236
15577
|
buttonGhost,
|
|
@@ -15241,6 +15582,9 @@ var StatusBullet = ({
|
|
|
15241
15582
|
buttonSecondaryInvert,
|
|
15242
15583
|
buttonTertiary,
|
|
15243
15584
|
buttonUnimportant,
|
|
15585
|
+
canvasAlertIcon,
|
|
15586
|
+
cardIcon,
|
|
15587
|
+
customIcons,
|
|
15244
15588
|
extractParameterProps,
|
|
15245
15589
|
fadeIn,
|
|
15246
15590
|
fadeInBottom,
|
|
@@ -15248,7 +15592,10 @@ var StatusBullet = ({
|
|
|
15248
15592
|
fadeInRtl,
|
|
15249
15593
|
fadeInTop,
|
|
15250
15594
|
fadeOutBottom,
|
|
15595
|
+
fullWidthScreenIcon,
|
|
15251
15596
|
growSubtle,
|
|
15597
|
+
imageTextIcon,
|
|
15598
|
+
infoFilledIcon,
|
|
15252
15599
|
input,
|
|
15253
15600
|
inputError,
|
|
15254
15601
|
inputSelect,
|
|
@@ -15257,11 +15604,15 @@ var StatusBullet = ({
|
|
|
15257
15604
|
loaderAnimationData,
|
|
15258
15605
|
macifyShortcut,
|
|
15259
15606
|
mq,
|
|
15607
|
+
numberInput,
|
|
15608
|
+
rectangleRoundedIcon,
|
|
15260
15609
|
ripple,
|
|
15261
15610
|
scrollbarStyles,
|
|
15262
15611
|
skeletonLoading,
|
|
15612
|
+
slideInTtb,
|
|
15263
15613
|
spinnerAnimationData,
|
|
15264
15614
|
supports,
|
|
15615
|
+
textInput,
|
|
15265
15616
|
useBreakpoint,
|
|
15266
15617
|
useCloseCurrentDrawer,
|
|
15267
15618
|
useCurrentDrawerRenderer,
|
|
@@ -15271,5 +15622,6 @@ var StatusBullet = ({
|
|
|
15271
15622
|
useMenuContext,
|
|
15272
15623
|
useOutsideClick,
|
|
15273
15624
|
useParameterShell,
|
|
15274
|
-
useShortcut
|
|
15625
|
+
useShortcut,
|
|
15626
|
+
warningIcon
|
|
15275
15627
|
});
|