@uniformdev/design-system 18.23.1-alpha.34 → 18.24.1-alpha.1
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 +429 -343
- package/dist/index.d.ts +48 -2
- package/dist/index.js +528 -439
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -42,6 +42,7 @@ __export(src_exports, {
|
|
|
42
42
|
CardContainer: () => CardContainer2,
|
|
43
43
|
CheckboxWithInfo: () => CheckboxWithInfo,
|
|
44
44
|
ConnectToDataElementButton: () => ConnectToDataElementButton,
|
|
45
|
+
Container: () => Container2,
|
|
45
46
|
Counter: () => Counter,
|
|
46
47
|
CreateTeamIntegrationTile: () => CreateTeamIntegrationTile,
|
|
47
48
|
DashedBox: () => DashedBox,
|
|
@@ -136,6 +137,7 @@ __export(src_exports, {
|
|
|
136
137
|
Tooltip: () => Tooltip,
|
|
137
138
|
UniformBadge: () => UniformBadge,
|
|
138
139
|
UniformLogo: () => UniformLogo,
|
|
140
|
+
VerticalRhythm: () => VerticalRhythm,
|
|
139
141
|
WarningMessage: () => WarningMessage,
|
|
140
142
|
breakpoints: () => breakpoints,
|
|
141
143
|
button: () => button,
|
|
@@ -167,6 +169,7 @@ __export(src_exports, {
|
|
|
167
169
|
skeletonLoading: () => skeletonLoading,
|
|
168
170
|
supports: () => supports,
|
|
169
171
|
useBreakpoint: () => useBreakpoint,
|
|
172
|
+
useCloseCurrentDrawer: () => useCloseCurrentDrawer,
|
|
170
173
|
useCurrentDrawerRenderer: () => useCurrentDrawerRenderer,
|
|
171
174
|
useCurrentTab: () => useCurrentTab,
|
|
172
175
|
useDrawer: () => useDrawer,
|
|
@@ -9291,6 +9294,9 @@ var summaryIcon = import_react33.css`
|
|
|
9291
9294
|
transition: rotate var(--duration-fast) var(--timing-ease-out);
|
|
9292
9295
|
rotate: -90deg;
|
|
9293
9296
|
`;
|
|
9297
|
+
var summaryIconVisiblyHidden = import_react33.css`
|
|
9298
|
+
visibility: hidden;
|
|
9299
|
+
`;
|
|
9294
9300
|
|
|
9295
9301
|
// src/components/Details/Details.tsx
|
|
9296
9302
|
var import_jsx_runtime28 = require("@emotion/react/jsx-runtime");
|
|
@@ -9315,7 +9321,15 @@ var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props
|
|
|
9315
9321
|
}, [detailsRef]);
|
|
9316
9322
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("details", { "data-testid": "details", css: details, open, ref: detailsRef, ...props, children: [
|
|
9317
9323
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("summary", { "data-testid": "summary", css: summary, children: [
|
|
9318
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
9324
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
9325
|
+
Icon,
|
|
9326
|
+
{
|
|
9327
|
+
css: [!children ? summaryIconVisiblyHidden : void 0, summaryIcon],
|
|
9328
|
+
icon: "chevron-down",
|
|
9329
|
+
iconColor: "currentColor",
|
|
9330
|
+
size: "1.25rem"
|
|
9331
|
+
}
|
|
9332
|
+
),
|
|
9319
9333
|
summary2
|
|
9320
9334
|
] }),
|
|
9321
9335
|
open ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { "data-testid": "details-content", css: detailsContent, children }) : null
|
|
@@ -9359,7 +9373,7 @@ var drawerRendererStyles = (position) => import_react34.css`
|
|
|
9359
9373
|
`;
|
|
9360
9374
|
var drawerInnerStyles = import_react34.css`
|
|
9361
9375
|
height: 100%;
|
|
9362
|
-
padding: var(--spacing-base);
|
|
9376
|
+
padding: 0 var(--spacing-base) var(--spacing-base);
|
|
9363
9377
|
overflow: auto;
|
|
9364
9378
|
${scrollbarStyles}
|
|
9365
9379
|
`;
|
|
@@ -9452,6 +9466,13 @@ var DrawerProvider = ({ children }) => {
|
|
|
9452
9466
|
var useDrawer = () => {
|
|
9453
9467
|
return (0, import_react35.useContext)(DrawerContext);
|
|
9454
9468
|
};
|
|
9469
|
+
var useCloseCurrentDrawer = () => {
|
|
9470
|
+
const context = useDrawer();
|
|
9471
|
+
if (context.drawersRegistry.length === 0) {
|
|
9472
|
+
return;
|
|
9473
|
+
}
|
|
9474
|
+
return context.drawersRegistry[context.drawersRegistry.length - 1].onRequestClose;
|
|
9475
|
+
};
|
|
9455
9476
|
function isEqualDrawer(a, b) {
|
|
9456
9477
|
return (a == null ? void 0 : a.id) === (b == null ? void 0 : b.id) && (a == null ? void 0 : a.stackId) === (b == null ? void 0 : b.stackId);
|
|
9457
9478
|
}
|
|
@@ -9891,32 +9912,34 @@ var Input = React13.forwardRef(
|
|
|
9891
9912
|
var import_react_select = __toESM(require("react-select"));
|
|
9892
9913
|
var import_jsx_runtime39 = require("@emotion/react/jsx-runtime");
|
|
9893
9914
|
function InputComboBox(props) {
|
|
9915
|
+
var _a;
|
|
9894
9916
|
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
9895
9917
|
import_react_select.default,
|
|
9896
9918
|
{
|
|
9897
9919
|
...props,
|
|
9920
|
+
isClearable: (_a = props.isClearable) != null ? _a : false,
|
|
9898
9921
|
classNamePrefix: "input-combobox",
|
|
9899
9922
|
styles: {
|
|
9900
9923
|
...props.styles,
|
|
9901
9924
|
singleValue: (base, sProps) => {
|
|
9902
|
-
var
|
|
9925
|
+
var _a2, _b;
|
|
9903
9926
|
return {
|
|
9904
9927
|
...base,
|
|
9905
9928
|
color: "#828282",
|
|
9906
|
-
...(_b = (
|
|
9929
|
+
...(_b = (_a2 = props.styles) == null ? void 0 : _a2.singleValue) == null ? void 0 : _b.call(_a2, base, sProps)
|
|
9907
9930
|
};
|
|
9908
9931
|
},
|
|
9909
9932
|
valueContainer: (base, sProps) => {
|
|
9910
|
-
var
|
|
9933
|
+
var _a2, _b;
|
|
9911
9934
|
return {
|
|
9912
9935
|
...base,
|
|
9913
9936
|
padding: "var(--spacing-base)",
|
|
9914
9937
|
gap: "2px",
|
|
9915
|
-
...(_b = (
|
|
9938
|
+
...(_b = (_a2 = props.styles) == null ? void 0 : _a2.valueContainer) == null ? void 0 : _b.call(_a2, base, sProps)
|
|
9916
9939
|
};
|
|
9917
9940
|
},
|
|
9918
9941
|
input: (base, sProps) => {
|
|
9919
|
-
var
|
|
9942
|
+
var _a2, _b;
|
|
9920
9943
|
return {
|
|
9921
9944
|
...base,
|
|
9922
9945
|
margin: "0",
|
|
@@ -9925,19 +9948,19 @@ function InputComboBox(props) {
|
|
|
9925
9948
|
"& > input": {
|
|
9926
9949
|
boxShadow: "none !important"
|
|
9927
9950
|
},
|
|
9928
|
-
...(_b = (
|
|
9951
|
+
...(_b = (_a2 = props.styles) == null ? void 0 : _a2.input) == null ? void 0 : _b.call(_a2, base, sProps)
|
|
9929
9952
|
};
|
|
9930
9953
|
},
|
|
9931
9954
|
menu: (base, state) => {
|
|
9932
|
-
var
|
|
9955
|
+
var _a2, _b;
|
|
9933
9956
|
return {
|
|
9934
9957
|
...base,
|
|
9935
9958
|
zIndex: "var(--z-20)",
|
|
9936
|
-
...(_b = (
|
|
9959
|
+
...(_b = (_a2 = props.styles) == null ? void 0 : _a2.menu) == null ? void 0 : _b.call(_a2, base, state)
|
|
9937
9960
|
};
|
|
9938
9961
|
},
|
|
9939
9962
|
control: (base, state) => {
|
|
9940
|
-
var
|
|
9963
|
+
var _a2, _b;
|
|
9941
9964
|
return {
|
|
9942
9965
|
...base,
|
|
9943
9966
|
className: "input-combobox-control",
|
|
@@ -9952,11 +9975,11 @@ function InputComboBox(props) {
|
|
|
9952
9975
|
"&:hover": {
|
|
9953
9976
|
boxShadow: "none"
|
|
9954
9977
|
},
|
|
9955
|
-
...(_b = (
|
|
9978
|
+
...(_b = (_a2 = props.styles) == null ? void 0 : _a2.control) == null ? void 0 : _b.call(_a2, base, state)
|
|
9956
9979
|
};
|
|
9957
9980
|
},
|
|
9958
9981
|
indicatorsContainer: (base, state) => {
|
|
9959
|
-
var
|
|
9982
|
+
var _a2, _b;
|
|
9960
9983
|
return {
|
|
9961
9984
|
...base,
|
|
9962
9985
|
backgroundImage: `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")`,
|
|
@@ -9967,23 +9990,23 @@ function InputComboBox(props) {
|
|
|
9967
9990
|
"& svg": {
|
|
9968
9991
|
display: "none"
|
|
9969
9992
|
},
|
|
9970
|
-
...(_b = (
|
|
9993
|
+
...(_b = (_a2 = props.styles) == null ? void 0 : _a2.indicatorsContainer) == null ? void 0 : _b.call(_a2, base, state)
|
|
9971
9994
|
};
|
|
9972
9995
|
},
|
|
9973
9996
|
indicatorSeparator: (base, state) => {
|
|
9974
|
-
var
|
|
9997
|
+
var _a2, _b;
|
|
9975
9998
|
return {
|
|
9976
9999
|
display: "none",
|
|
9977
|
-
...(_b = (
|
|
10000
|
+
...(_b = (_a2 = props.styles) == null ? void 0 : _a2.indicatorSeparator) == null ? void 0 : _b.call(_a2, base, state)
|
|
9978
10001
|
};
|
|
9979
10002
|
},
|
|
9980
10003
|
option: (base, state) => {
|
|
9981
|
-
var
|
|
10004
|
+
var _a2, _b;
|
|
9982
10005
|
return {
|
|
9983
10006
|
...base,
|
|
9984
10007
|
color: state.isDisabled ? "var(--gray-500)" : "var(--gray-700)",
|
|
9985
10008
|
backgroundColor: state.isDisabled ? "transparent" : state.isSelected ? "var(--gray-200)" : state.isFocused ? "var(--gray-100)" : "transparent",
|
|
9986
|
-
...(_b = (
|
|
10009
|
+
...(_b = (_a2 = props.styles) == null ? void 0 : _a2.option) == null ? void 0 : _b.call(_a2, base, state)
|
|
9987
10010
|
};
|
|
9988
10011
|
},
|
|
9989
10012
|
multiValue: (styles) => {
|
|
@@ -10341,40 +10364,94 @@ var Textarea = ({
|
|
|
10341
10364
|
] });
|
|
10342
10365
|
};
|
|
10343
10366
|
|
|
10344
|
-
// src/components/
|
|
10367
|
+
// src/components/Layout/styles/Container.styles.ts
|
|
10345
10368
|
var import_react47 = require("@emotion/react");
|
|
10346
|
-
var
|
|
10369
|
+
var Container = ({ backgroundColor, border, rounded, padding, margin }) => import_react47.css`
|
|
10370
|
+
background: var(--${backgroundColor});
|
|
10371
|
+
${border ? "border: 1px solid var(--gray-300)" : void 0};
|
|
10372
|
+
${rounded ? `border-radius: var(--${rounded})` : void 0};
|
|
10373
|
+
${padding ? `padding: ${padding}` : void 0};
|
|
10374
|
+
${margin ? `margin: ${margin}` : void 0};
|
|
10375
|
+
`;
|
|
10376
|
+
|
|
10377
|
+
// src/components/Layout/Container.tsx
|
|
10378
|
+
var import_jsx_runtime46 = require("@emotion/react/jsx-runtime");
|
|
10379
|
+
var Container2 = ({
|
|
10380
|
+
tag = "div",
|
|
10381
|
+
backgroundColor = "white",
|
|
10382
|
+
border,
|
|
10383
|
+
rounded,
|
|
10384
|
+
padding,
|
|
10385
|
+
margin,
|
|
10386
|
+
children,
|
|
10387
|
+
...props
|
|
10388
|
+
}) => {
|
|
10389
|
+
const Tag = tag;
|
|
10390
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
10391
|
+
Tag,
|
|
10392
|
+
{
|
|
10393
|
+
css: Container({
|
|
10394
|
+
backgroundColor,
|
|
10395
|
+
border,
|
|
10396
|
+
rounded,
|
|
10397
|
+
padding,
|
|
10398
|
+
margin
|
|
10399
|
+
}),
|
|
10400
|
+
...props,
|
|
10401
|
+
children
|
|
10402
|
+
}
|
|
10403
|
+
);
|
|
10404
|
+
};
|
|
10405
|
+
|
|
10406
|
+
// src/components/Layout/styles/VerticalRhythm.styles.ts
|
|
10407
|
+
var import_react48 = require("@emotion/react");
|
|
10408
|
+
var VerticalRhythmContainer = (size) => import_react48.css`
|
|
10409
|
+
display: flex;
|
|
10410
|
+
flex-direction: column;
|
|
10411
|
+
gap: var(--spacing-${size});
|
|
10412
|
+
`;
|
|
10413
|
+
|
|
10414
|
+
// src/components/Layout/VerticalRhythm.tsx
|
|
10415
|
+
var import_jsx_runtime47 = require("@emotion/react/jsx-runtime");
|
|
10416
|
+
var VerticalRhythm = ({ tag = "div", gap = "base", children, ...props }) => {
|
|
10417
|
+
const Tag = tag;
|
|
10418
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Tag, { css: VerticalRhythmContainer(gap), ...props, children });
|
|
10419
|
+
};
|
|
10420
|
+
|
|
10421
|
+
// src/components/LimitsBar/LimitsBar.styles.ts
|
|
10422
|
+
var import_react49 = require("@emotion/react");
|
|
10423
|
+
var LimitsBarContainer = import_react49.css`
|
|
10347
10424
|
margin-block: var(--spacing-sm);
|
|
10348
10425
|
`;
|
|
10349
|
-
var LimitsBarProgressBar =
|
|
10426
|
+
var LimitsBarProgressBar = import_react49.css`
|
|
10350
10427
|
background: var(--gray-100);
|
|
10351
10428
|
margin-top: var(--spacing-sm);
|
|
10352
10429
|
position: relative;
|
|
10353
10430
|
overflow: hidden;
|
|
10354
10431
|
height: 0.25rem;
|
|
10355
10432
|
`;
|
|
10356
|
-
var LimitsBarProgressBarLine =
|
|
10433
|
+
var LimitsBarProgressBarLine = import_react49.css`
|
|
10357
10434
|
position: absolute;
|
|
10358
10435
|
inset: 0;
|
|
10359
10436
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
10360
10437
|
`;
|
|
10361
|
-
var LimitsBarLabelContainer =
|
|
10438
|
+
var LimitsBarLabelContainer = import_react49.css`
|
|
10362
10439
|
display: flex;
|
|
10363
10440
|
justify-content: space-between;
|
|
10364
10441
|
font-weight: var(--fw-bold);
|
|
10365
10442
|
`;
|
|
10366
|
-
var LimitsBarLabel =
|
|
10443
|
+
var LimitsBarLabel = import_react49.css`
|
|
10367
10444
|
font-size: var(--fs-baase);
|
|
10368
10445
|
`;
|
|
10369
|
-
var LimitsBarBgColor = (statusColor) =>
|
|
10446
|
+
var LimitsBarBgColor = (statusColor) => import_react49.css`
|
|
10370
10447
|
background: ${statusColor};
|
|
10371
10448
|
`;
|
|
10372
|
-
var LimitsBarTextColor = (statusColor) =>
|
|
10449
|
+
var LimitsBarTextColor = (statusColor) => import_react49.css`
|
|
10373
10450
|
color: ${statusColor};
|
|
10374
10451
|
`;
|
|
10375
10452
|
|
|
10376
10453
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
10377
|
-
var
|
|
10454
|
+
var import_jsx_runtime48 = require("@emotion/react/jsx-runtime");
|
|
10378
10455
|
var LimitsBar = ({ current, max, label }) => {
|
|
10379
10456
|
const maxPercentage = 100;
|
|
10380
10457
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -10385,16 +10462,16 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
10385
10462
|
danger: "var(--brand-secondary-5)"
|
|
10386
10463
|
};
|
|
10387
10464
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
10388
|
-
return /* @__PURE__ */ (0,
|
|
10389
|
-
/* @__PURE__ */ (0,
|
|
10390
|
-
/* @__PURE__ */ (0,
|
|
10391
|
-
/* @__PURE__ */ (0,
|
|
10465
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { css: LimitsBarContainer, children: [
|
|
10466
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { css: LimitsBarLabelContainer, children: [
|
|
10467
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { css: LimitsBarLabel, children: label }),
|
|
10468
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
10392
10469
|
current,
|
|
10393
10470
|
" of ",
|
|
10394
10471
|
max
|
|
10395
10472
|
] })
|
|
10396
10473
|
] }),
|
|
10397
|
-
/* @__PURE__ */ (0,
|
|
10474
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
10398
10475
|
"div",
|
|
10399
10476
|
{
|
|
10400
10477
|
role: "progressbar",
|
|
@@ -10403,7 +10480,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
10403
10480
|
"aria-valuemax": max,
|
|
10404
10481
|
"aria-valuetext": `${current} of ${max}`,
|
|
10405
10482
|
css: LimitsBarProgressBar,
|
|
10406
|
-
children: /* @__PURE__ */ (0,
|
|
10483
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
10407
10484
|
"span",
|
|
10408
10485
|
{
|
|
10409
10486
|
role: "presentation",
|
|
@@ -10419,8 +10496,8 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
10419
10496
|
};
|
|
10420
10497
|
|
|
10421
10498
|
// src/components/LinkList/LinkList.styles.ts
|
|
10422
|
-
var
|
|
10423
|
-
var LinkListContainer =
|
|
10499
|
+
var import_react50 = require("@emotion/react");
|
|
10500
|
+
var LinkListContainer = import_react50.css`
|
|
10424
10501
|
padding: var(--spacing-md) var(--spacing-lg) var(--spacing-2xl);
|
|
10425
10502
|
${mq("sm")} {
|
|
10426
10503
|
grid-column: last-col / span 1;
|
|
@@ -10429,23 +10506,23 @@ var LinkListContainer = import_react48.css`
|
|
|
10429
10506
|
`;
|
|
10430
10507
|
|
|
10431
10508
|
// src/components/LinkList/LinkList.tsx
|
|
10432
|
-
var
|
|
10509
|
+
var import_jsx_runtime49 = require("@emotion/react/jsx-runtime");
|
|
10433
10510
|
var LinkList = ({ title, children, ...props }) => {
|
|
10434
|
-
return /* @__PURE__ */ (0,
|
|
10435
|
-
/* @__PURE__ */ (0,
|
|
10511
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { css: LinkListContainer, ...props, children: [
|
|
10512
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Heading, { level: 3, children: title }),
|
|
10436
10513
|
children
|
|
10437
10514
|
] });
|
|
10438
10515
|
};
|
|
10439
10516
|
|
|
10440
10517
|
// src/components/List/ScrollableList.tsx
|
|
10441
|
-
var
|
|
10518
|
+
var import_react52 = require("@emotion/react");
|
|
10442
10519
|
|
|
10443
10520
|
// src/components/List/styles/ScrollableList.styles.ts
|
|
10444
|
-
var
|
|
10445
|
-
var ScrollableListContainer =
|
|
10521
|
+
var import_react51 = require("@emotion/react");
|
|
10522
|
+
var ScrollableListContainer = import_react51.css`
|
|
10446
10523
|
position: relative;
|
|
10447
10524
|
`;
|
|
10448
|
-
var ScrollableListInner =
|
|
10525
|
+
var ScrollableListInner = import_react51.css`
|
|
10449
10526
|
background: var(--gray-50);
|
|
10450
10527
|
border-top: 1px solid var(--gray-200);
|
|
10451
10528
|
border-bottom: 1px solid var(--gray-200);
|
|
@@ -10463,19 +10540,19 @@ var ScrollableListInner = import_react49.css`
|
|
|
10463
10540
|
`;
|
|
10464
10541
|
|
|
10465
10542
|
// src/components/List/ScrollableList.tsx
|
|
10466
|
-
var
|
|
10543
|
+
var import_jsx_runtime50 = require("@emotion/react/jsx-runtime");
|
|
10467
10544
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
10468
|
-
return /* @__PURE__ */ (0,
|
|
10469
|
-
label ? /* @__PURE__ */ (0,
|
|
10545
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
10546
|
+
label ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
10470
10547
|
"span",
|
|
10471
10548
|
{
|
|
10472
|
-
css:
|
|
10549
|
+
css: import_react52.css`
|
|
10473
10550
|
${labelText}
|
|
10474
10551
|
`,
|
|
10475
10552
|
children: label
|
|
10476
10553
|
}
|
|
10477
10554
|
) : null,
|
|
10478
|
-
/* @__PURE__ */ (0,
|
|
10555
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
10479
10556
|
] });
|
|
10480
10557
|
};
|
|
10481
10558
|
|
|
@@ -10483,8 +10560,8 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
10483
10560
|
var import_cg9 = require("react-icons/cg");
|
|
10484
10561
|
|
|
10485
10562
|
// src/components/List/styles/ScrollableListItem.styles.ts
|
|
10486
|
-
var
|
|
10487
|
-
var ScrollableListItemContainer =
|
|
10563
|
+
var import_react53 = require("@emotion/react");
|
|
10564
|
+
var ScrollableListItemContainer = import_react53.css`
|
|
10488
10565
|
align-items: center;
|
|
10489
10566
|
background: var(--white);
|
|
10490
10567
|
border-radius: var(--rounded-base);
|
|
@@ -10494,10 +10571,10 @@ var ScrollableListItemContainer = import_react51.css`
|
|
|
10494
10571
|
min-height: 52px;
|
|
10495
10572
|
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
10496
10573
|
`;
|
|
10497
|
-
var ScrollableListItemActive =
|
|
10574
|
+
var ScrollableListItemActive = import_react53.css`
|
|
10498
10575
|
border-color: var(--brand-secondary-3);
|
|
10499
10576
|
`;
|
|
10500
|
-
var ScrollableListItemBtn =
|
|
10577
|
+
var ScrollableListItemBtn = import_react53.css`
|
|
10501
10578
|
align-items: center;
|
|
10502
10579
|
border: none;
|
|
10503
10580
|
background: transparent;
|
|
@@ -10512,26 +10589,26 @@ var ScrollableListItemBtn = import_react51.css`
|
|
|
10512
10589
|
outline: none;
|
|
10513
10590
|
}
|
|
10514
10591
|
`;
|
|
10515
|
-
var ScrollableListInputLabel =
|
|
10592
|
+
var ScrollableListInputLabel = import_react53.css`
|
|
10516
10593
|
align-items: center;
|
|
10517
10594
|
display: flex;
|
|
10518
10595
|
padding: var(--spacing-xs) var(--spacing-base) var(--spacing-xs);
|
|
10519
10596
|
flex-grow: 1;
|
|
10520
10597
|
`;
|
|
10521
|
-
var ScrollableListInputText =
|
|
10598
|
+
var ScrollableListInputText = import_react53.css`
|
|
10522
10599
|
align-items: center;
|
|
10523
10600
|
display: flex;
|
|
10524
10601
|
gap: var(--spacing-sm);
|
|
10525
10602
|
font-weight: var(--fw-bold);
|
|
10526
10603
|
flex-grow: 1;
|
|
10527
10604
|
`;
|
|
10528
|
-
var ScrollableListHiddenInput =
|
|
10605
|
+
var ScrollableListHiddenInput = import_react53.css`
|
|
10529
10606
|
position: absolute;
|
|
10530
10607
|
height: 0;
|
|
10531
10608
|
width: 0;
|
|
10532
10609
|
opacity: 0;
|
|
10533
10610
|
`;
|
|
10534
|
-
var ScrollableListIcon =
|
|
10611
|
+
var ScrollableListIcon = import_react53.css`
|
|
10535
10612
|
border-radius: var(--rounded-full);
|
|
10536
10613
|
background: var(--brand-secondary-3);
|
|
10537
10614
|
color: var(--white);
|
|
@@ -10540,7 +10617,7 @@ var ScrollableListIcon = import_react51.css`
|
|
|
10540
10617
|
`;
|
|
10541
10618
|
|
|
10542
10619
|
// src/components/List/ScrollableListInputItem.tsx
|
|
10543
|
-
var
|
|
10620
|
+
var import_jsx_runtime51 = require("@emotion/react/jsx-runtime");
|
|
10544
10621
|
var ScrollableListInputItem = ({
|
|
10545
10622
|
label,
|
|
10546
10623
|
icon,
|
|
@@ -10548,23 +10625,23 @@ var ScrollableListInputItem = ({
|
|
|
10548
10625
|
children,
|
|
10549
10626
|
labelTestId
|
|
10550
10627
|
}) => {
|
|
10551
|
-
return /* @__PURE__ */ (0,
|
|
10552
|
-
/* @__PURE__ */ (0,
|
|
10628
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { css: [ScrollableListItemContainer, active ? ScrollableListItemActive : void 0], children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("label", { "data-test-id": labelTestId, css: ScrollableListInputLabel, children: [
|
|
10629
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("span", { css: ScrollableListInputText, children: [
|
|
10553
10630
|
icon,
|
|
10554
10631
|
label
|
|
10555
10632
|
] }),
|
|
10556
|
-
/* @__PURE__ */ (0,
|
|
10557
|
-
active ? /* @__PURE__ */ (0,
|
|
10633
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { css: ScrollableListHiddenInput, children }),
|
|
10634
|
+
active ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, { icon: import_cg9.CgCheck, iconColor: "currentColor", css: ScrollableListIcon, size: 24 }) : null
|
|
10558
10635
|
] }) });
|
|
10559
10636
|
};
|
|
10560
10637
|
|
|
10561
10638
|
// src/components/List/ScrollableListItem.tsx
|
|
10562
|
-
var
|
|
10563
|
-
var
|
|
10639
|
+
var import_react54 = require("@emotion/react");
|
|
10640
|
+
var import_jsx_runtime52 = require("@emotion/react/jsx-runtime");
|
|
10564
10641
|
var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
10565
|
-
return /* @__PURE__ */ (0,
|
|
10566
|
-
/* @__PURE__ */ (0,
|
|
10567
|
-
/* @__PURE__ */ (0,
|
|
10642
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { css: [ScrollableListItemContainer, active ? ScrollableListItemActive : void 0], children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
10643
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { children: buttonText }),
|
|
10644
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10568
10645
|
"svg",
|
|
10569
10646
|
{
|
|
10570
10647
|
width: "24",
|
|
@@ -10573,14 +10650,14 @@ var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
|
10573
10650
|
fill: "currentColor",
|
|
10574
10651
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10575
10652
|
"aria-hidden": !active,
|
|
10576
|
-
css:
|
|
10653
|
+
css: import_react54.css`
|
|
10577
10654
|
color: var(--brand-secondary-3);
|
|
10578
10655
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
10579
|
-
${active ?
|
|
10656
|
+
${active ? import_react54.css`
|
|
10580
10657
|
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
10581
10658
|
` : "opacity: 0;"}
|
|
10582
10659
|
`,
|
|
10583
|
-
children: /* @__PURE__ */ (0,
|
|
10660
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10584
10661
|
"path",
|
|
10585
10662
|
{
|
|
10586
10663
|
fillRule: "evenodd",
|
|
@@ -10594,8 +10671,8 @@ var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
|
10594
10671
|
};
|
|
10595
10672
|
|
|
10596
10673
|
// src/components/LoadingIndicator/LoadingIndicator.styles.ts
|
|
10597
|
-
var
|
|
10598
|
-
var bounceFade =
|
|
10674
|
+
var import_react55 = require("@emotion/react");
|
|
10675
|
+
var bounceFade = import_react55.keyframes`
|
|
10599
10676
|
0%, 100% {
|
|
10600
10677
|
opacity: 1.0;
|
|
10601
10678
|
transform: translateY(0);
|
|
@@ -10612,11 +10689,11 @@ var bounceFade = import_react53.keyframes`
|
|
|
10612
10689
|
transform: translateY(-5px);
|
|
10613
10690
|
}
|
|
10614
10691
|
`;
|
|
10615
|
-
var loader =
|
|
10692
|
+
var loader = import_react55.css`
|
|
10616
10693
|
display: inline-flex;
|
|
10617
10694
|
justify-content: center;
|
|
10618
10695
|
`;
|
|
10619
|
-
var loadingDot =
|
|
10696
|
+
var loadingDot = import_react55.css`
|
|
10620
10697
|
background-color: var(--gray-700);
|
|
10621
10698
|
display: block;
|
|
10622
10699
|
border-radius: var(--rounded-full);
|
|
@@ -10640,51 +10717,51 @@ var loadingDot = import_react53.css`
|
|
|
10640
10717
|
`;
|
|
10641
10718
|
|
|
10642
10719
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
10643
|
-
var
|
|
10720
|
+
var import_jsx_runtime53 = require("@emotion/react/jsx-runtime");
|
|
10644
10721
|
var LoadingIndicator = () => {
|
|
10645
|
-
return /* @__PURE__ */ (0,
|
|
10646
|
-
/* @__PURE__ */ (0,
|
|
10647
|
-
/* @__PURE__ */ (0,
|
|
10648
|
-
/* @__PURE__ */ (0,
|
|
10722
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { css: loader, role: "alert", "data-test-id": "loading-indicator", children: [
|
|
10723
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { css: loadingDot }),
|
|
10724
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { css: loadingDot }),
|
|
10725
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { css: loadingDot })
|
|
10649
10726
|
] });
|
|
10650
10727
|
};
|
|
10651
10728
|
|
|
10652
10729
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
10653
|
-
var
|
|
10730
|
+
var import_react57 = require("@emotion/react");
|
|
10654
10731
|
|
|
10655
10732
|
// src/components/LoadingOverlay/LoadingOverlay.styles.ts
|
|
10656
|
-
var
|
|
10657
|
-
var loadingOverlayContainer =
|
|
10733
|
+
var import_react56 = require("@emotion/react");
|
|
10734
|
+
var loadingOverlayContainer = import_react56.css`
|
|
10658
10735
|
align-items: center;
|
|
10659
10736
|
position: absolute;
|
|
10660
10737
|
inset: 0;
|
|
10661
10738
|
overflow: hidden;
|
|
10662
10739
|
justify-content: center;
|
|
10663
10740
|
`;
|
|
10664
|
-
var loadingOverlayVisible =
|
|
10741
|
+
var loadingOverlayVisible = import_react56.css`
|
|
10665
10742
|
display: flex;
|
|
10666
10743
|
`;
|
|
10667
|
-
var loadingOverlayHidden =
|
|
10744
|
+
var loadingOverlayHidden = import_react56.css`
|
|
10668
10745
|
display: none;
|
|
10669
10746
|
`;
|
|
10670
|
-
var loadingOverlayBackground = (bgColor) =>
|
|
10747
|
+
var loadingOverlayBackground = (bgColor) => import_react56.css`
|
|
10671
10748
|
background: ${bgColor};
|
|
10672
10749
|
opacity: var(--opacity-75);
|
|
10673
10750
|
position: absolute;
|
|
10674
10751
|
inset: 0 0;
|
|
10675
10752
|
`;
|
|
10676
|
-
var loadingOverlayBody =
|
|
10753
|
+
var loadingOverlayBody = import_react56.css`
|
|
10677
10754
|
align-items: center;
|
|
10678
10755
|
display: flex;
|
|
10679
10756
|
flex-direction: column;
|
|
10680
10757
|
`;
|
|
10681
|
-
var loadingOverlayMessage =
|
|
10758
|
+
var loadingOverlayMessage = import_react56.css`
|
|
10682
10759
|
color: var(--gray-600);
|
|
10683
10760
|
margin: var(--spacing-base) 0 0;
|
|
10684
10761
|
`;
|
|
10685
10762
|
|
|
10686
10763
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
10687
|
-
var
|
|
10764
|
+
var import_jsx_runtime54 = require("@emotion/react/jsx-runtime");
|
|
10688
10765
|
var LoadingOverlay = ({
|
|
10689
10766
|
isActive,
|
|
10690
10767
|
statusMessage,
|
|
@@ -10692,23 +10769,23 @@ var LoadingOverlay = ({
|
|
|
10692
10769
|
size = 128,
|
|
10693
10770
|
overlayBackgroundColor = "var(--white)"
|
|
10694
10771
|
}) => {
|
|
10695
|
-
return /* @__PURE__ */ (0,
|
|
10772
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
10696
10773
|
"div",
|
|
10697
10774
|
{
|
|
10698
10775
|
role: "alert",
|
|
10699
10776
|
css: [loadingOverlayContainer, { zIndex }, isActive ? loadingOverlayVisible : loadingOverlayHidden],
|
|
10700
10777
|
"aria-hidden": !isActive,
|
|
10701
10778
|
children: [
|
|
10702
|
-
/* @__PURE__ */ (0,
|
|
10703
|
-
/* @__PURE__ */ (0,
|
|
10779
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
10780
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
10704
10781
|
"div",
|
|
10705
10782
|
{
|
|
10706
|
-
css:
|
|
10783
|
+
css: import_react57.css`
|
|
10707
10784
|
position: relative;
|
|
10708
10785
|
`,
|
|
10709
|
-
children: /* @__PURE__ */ (0,
|
|
10710
|
-
/* @__PURE__ */ (0,
|
|
10711
|
-
statusMessage ? /* @__PURE__ */ (0,
|
|
10786
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { css: loadingOverlayBody, children: [
|
|
10787
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(LoadingIcon, { height: size, width: size }),
|
|
10788
|
+
statusMessage ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { css: loadingOverlayMessage, children: statusMessage }) : null
|
|
10712
10789
|
] })
|
|
10713
10790
|
}
|
|
10714
10791
|
)
|
|
@@ -10717,7 +10794,7 @@ var LoadingOverlay = ({
|
|
|
10717
10794
|
);
|
|
10718
10795
|
};
|
|
10719
10796
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
10720
|
-
return /* @__PURE__ */ (0,
|
|
10797
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
10721
10798
|
"svg",
|
|
10722
10799
|
{
|
|
10723
10800
|
"data-testid": "svg",
|
|
@@ -10728,9 +10805,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
10728
10805
|
stroke: "currentColor",
|
|
10729
10806
|
...props,
|
|
10730
10807
|
"data-test-id": "loading-icon",
|
|
10731
|
-
children: /* @__PURE__ */ (0,
|
|
10732
|
-
/* @__PURE__ */ (0,
|
|
10733
|
-
/* @__PURE__ */ (0,
|
|
10808
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
10809
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
10810
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
10734
10811
|
"animateTransform",
|
|
10735
10812
|
{
|
|
10736
10813
|
attributeName: "transform",
|
|
@@ -10747,12 +10824,12 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
10747
10824
|
};
|
|
10748
10825
|
|
|
10749
10826
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
10750
|
-
var
|
|
10827
|
+
var import_react59 = require("@emotion/react");
|
|
10751
10828
|
var import_cg10 = require("react-icons/cg");
|
|
10752
10829
|
|
|
10753
10830
|
// src/components/Tiles/styles/IntegrationTile.styles.ts
|
|
10754
|
-
var
|
|
10755
|
-
var IntegrationTileContainer =
|
|
10831
|
+
var import_react58 = require("@emotion/react");
|
|
10832
|
+
var IntegrationTileContainer = import_react58.css`
|
|
10756
10833
|
align-items: center;
|
|
10757
10834
|
box-sizing: border-box;
|
|
10758
10835
|
border-radius: var(--rounded-base);
|
|
@@ -10783,22 +10860,22 @@ var IntegrationTileContainer = import_react56.css`
|
|
|
10783
10860
|
}
|
|
10784
10861
|
}
|
|
10785
10862
|
`;
|
|
10786
|
-
var IntegrationTileBtnDashedBorder =
|
|
10863
|
+
var IntegrationTileBtnDashedBorder = import_react58.css`
|
|
10787
10864
|
border: 1px dashed var(--brand-secondary-1);
|
|
10788
10865
|
`;
|
|
10789
|
-
var IntegrationTileTitle =
|
|
10866
|
+
var IntegrationTileTitle = import_react58.css`
|
|
10790
10867
|
display: block;
|
|
10791
10868
|
font-weight: var(--fw-bold);
|
|
10792
10869
|
margin: 0 0 var(--spacing-base);
|
|
10793
10870
|
max-width: 13rem;
|
|
10794
10871
|
`;
|
|
10795
|
-
var IntegrationTitleLogo =
|
|
10872
|
+
var IntegrationTitleLogo = import_react58.css`
|
|
10796
10873
|
display: block;
|
|
10797
10874
|
max-width: 10rem;
|
|
10798
10875
|
max-height: 4rem;
|
|
10799
10876
|
margin: 0 auto;
|
|
10800
10877
|
`;
|
|
10801
|
-
var IntegrationTileName =
|
|
10878
|
+
var IntegrationTileName = import_react58.css`
|
|
10802
10879
|
color: var(--gray-500);
|
|
10803
10880
|
display: -webkit-box;
|
|
10804
10881
|
-webkit-line-clamp: 1;
|
|
@@ -10811,7 +10888,7 @@ var IntegrationTileName = import_react56.css`
|
|
|
10811
10888
|
position: absolute;
|
|
10812
10889
|
bottom: calc(var(--spacing-base) * 3.8);
|
|
10813
10890
|
`;
|
|
10814
|
-
var IntegrationAddedText =
|
|
10891
|
+
var IntegrationAddedText = import_react58.css`
|
|
10815
10892
|
align-items: center;
|
|
10816
10893
|
background: var(--brand-secondary-3);
|
|
10817
10894
|
border-radius: 0 var(--rounded-md) 0 var(--rounded-md);
|
|
@@ -10826,7 +10903,7 @@ var IntegrationAddedText = import_react56.css`
|
|
|
10826
10903
|
top: 0;
|
|
10827
10904
|
right: 0;
|
|
10828
10905
|
`;
|
|
10829
|
-
var IntegrationCustomBadgeText = (theme) =>
|
|
10906
|
+
var IntegrationCustomBadgeText = (theme) => import_react58.css`
|
|
10830
10907
|
align-items: center;
|
|
10831
10908
|
border-radius: var(--rounded-sm) 0 var(--rounded-sm) 0;
|
|
10832
10909
|
background: ${theme === "gray" ? "var(--brand-secondary-2)" : "var(--brand-secondary-1)"};
|
|
@@ -10840,26 +10917,26 @@ var IntegrationCustomBadgeText = (theme) => import_react56.css`
|
|
|
10840
10917
|
top: 0;
|
|
10841
10918
|
left: 0;
|
|
10842
10919
|
`;
|
|
10843
|
-
var IntegrationAuthorBadgeIcon =
|
|
10920
|
+
var IntegrationAuthorBadgeIcon = import_react58.css`
|
|
10844
10921
|
position: absolute;
|
|
10845
10922
|
bottom: var(--spacing-sm);
|
|
10846
10923
|
right: var(--spacing-xs);
|
|
10847
10924
|
max-height: 1rem;
|
|
10848
10925
|
`;
|
|
10849
|
-
var IntegrationTitleFakeButton =
|
|
10926
|
+
var IntegrationTitleFakeButton = import_react58.css`
|
|
10850
10927
|
font-size: var(--fs-xs);
|
|
10851
10928
|
gap: var(--spacing-sm);
|
|
10852
10929
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
10853
10930
|
text-transform: uppercase;
|
|
10854
10931
|
`;
|
|
10855
|
-
var IntegrationTileFloatingButton =
|
|
10932
|
+
var IntegrationTileFloatingButton = import_react58.css`
|
|
10856
10933
|
position: absolute;
|
|
10857
10934
|
bottom: var(--spacing-base);
|
|
10858
10935
|
gap: var(--spacing-sm);
|
|
10859
10936
|
font-size: var(--fs-xs);
|
|
10860
10937
|
overflow: hidden;
|
|
10861
10938
|
`;
|
|
10862
|
-
var IntegrationTileFloatingButtonMessage = (clicked) =>
|
|
10939
|
+
var IntegrationTileFloatingButtonMessage = (clicked) => import_react58.css`
|
|
10863
10940
|
strong,
|
|
10864
10941
|
span:first-of-type {
|
|
10865
10942
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
@@ -10880,7 +10957,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => import_react56.css`
|
|
|
10880
10957
|
`;
|
|
10881
10958
|
|
|
10882
10959
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
10883
|
-
var
|
|
10960
|
+
var import_jsx_runtime55 = require("@emotion/react/jsx-runtime");
|
|
10884
10961
|
var CreateTeamIntegrationTile = ({
|
|
10885
10962
|
title = "Create a custom integration for your team",
|
|
10886
10963
|
buttonText = "Add Integration",
|
|
@@ -10888,9 +10965,9 @@ var CreateTeamIntegrationTile = ({
|
|
|
10888
10965
|
asDeepLink = false,
|
|
10889
10966
|
...props
|
|
10890
10967
|
}) => {
|
|
10891
|
-
return /* @__PURE__ */ (0,
|
|
10892
|
-
/* @__PURE__ */ (0,
|
|
10893
|
-
/* @__PURE__ */ (0,
|
|
10968
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
10969
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { css: IntegrationTileTitle, title, children: title }),
|
|
10970
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
10894
10971
|
Button,
|
|
10895
10972
|
{
|
|
10896
10973
|
buttonType: "tertiary",
|
|
@@ -10900,23 +10977,23 @@ var CreateTeamIntegrationTile = ({
|
|
|
10900
10977
|
css: IntegrationTitleFakeButton,
|
|
10901
10978
|
children: [
|
|
10902
10979
|
buttonText,
|
|
10903
|
-
asDeepLink ? /* @__PURE__ */ (0,
|
|
10980
|
+
asDeepLink ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
10904
10981
|
Icon,
|
|
10905
10982
|
{
|
|
10906
10983
|
icon: import_cg10.CgChevronRight,
|
|
10907
10984
|
iconColor: "currentColor",
|
|
10908
10985
|
size: 20,
|
|
10909
|
-
css:
|
|
10986
|
+
css: import_react59.css`
|
|
10910
10987
|
order: 1;
|
|
10911
10988
|
`
|
|
10912
10989
|
}
|
|
10913
|
-
) : /* @__PURE__ */ (0,
|
|
10990
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
10914
10991
|
Icon,
|
|
10915
10992
|
{
|
|
10916
10993
|
icon: import_cg10.CgAdd,
|
|
10917
10994
|
iconColor: "currentColor",
|
|
10918
10995
|
size: 16,
|
|
10919
|
-
css:
|
|
10996
|
+
css: import_react59.css`
|
|
10920
10997
|
order: -1;
|
|
10921
10998
|
`
|
|
10922
10999
|
}
|
|
@@ -10929,31 +11006,31 @@ var CreateTeamIntegrationTile = ({
|
|
|
10929
11006
|
|
|
10930
11007
|
// src/components/Tiles/IntegrationBadges.tsx
|
|
10931
11008
|
var import_cg11 = require("react-icons/cg");
|
|
10932
|
-
var
|
|
11009
|
+
var import_jsx_runtime56 = require("@emotion/react/jsx-runtime");
|
|
10933
11010
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
10934
|
-
return /* @__PURE__ */ (0,
|
|
10935
|
-
/* @__PURE__ */ (0,
|
|
11011
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
11012
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { icon: import_cg11.CgCheck, iconColor: "currentColor" }),
|
|
10936
11013
|
text
|
|
10937
11014
|
] });
|
|
10938
11015
|
};
|
|
10939
11016
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
10940
|
-
return /* @__PURE__ */ (0,
|
|
11017
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
10941
11018
|
};
|
|
10942
11019
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
10943
|
-
return /* @__PURE__ */ (0,
|
|
10944
|
-
/* @__PURE__ */ (0,
|
|
11020
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
11021
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { icon: import_cg11.CgLock, iconColor: "currentColor", size: 12 }),
|
|
10945
11022
|
text
|
|
10946
11023
|
] });
|
|
10947
11024
|
};
|
|
10948
11025
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
10949
|
-
return /* @__PURE__ */ (0,
|
|
10950
|
-
/* @__PURE__ */ (0,
|
|
11026
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
11027
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { icon: import_cg11.CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
10951
11028
|
text
|
|
10952
11029
|
] });
|
|
10953
11030
|
};
|
|
10954
11031
|
|
|
10955
11032
|
// src/components/Tiles/ResolveIcon.tsx
|
|
10956
|
-
var
|
|
11033
|
+
var import_jsx_runtime57 = require("@emotion/react/jsx-runtime");
|
|
10957
11034
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
10958
11035
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
10959
11036
|
const mapClassName = {
|
|
@@ -10961,13 +11038,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
10961
11038
|
logo: IntegrationTitleLogo
|
|
10962
11039
|
};
|
|
10963
11040
|
if (icon) {
|
|
10964
|
-
return CompIcon ? /* @__PURE__ */ (0,
|
|
11041
|
+
return CompIcon ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
10965
11042
|
}
|
|
10966
11043
|
return null;
|
|
10967
11044
|
};
|
|
10968
11045
|
|
|
10969
11046
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
10970
|
-
var
|
|
11047
|
+
var import_jsx_runtime58 = require("@emotion/react/jsx-runtime");
|
|
10971
11048
|
var EditTeamIntegrationTile = ({
|
|
10972
11049
|
id,
|
|
10973
11050
|
icon,
|
|
@@ -10976,17 +11053,17 @@ var EditTeamIntegrationTile = ({
|
|
|
10976
11053
|
isPublic,
|
|
10977
11054
|
canEdit = false
|
|
10978
11055
|
}) => {
|
|
10979
|
-
return /* @__PURE__ */ (0,
|
|
11056
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
10980
11057
|
"div",
|
|
10981
11058
|
{
|
|
10982
11059
|
css: IntegrationTileContainer,
|
|
10983
11060
|
"data-testid": "configure-integration-container",
|
|
10984
11061
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
10985
11062
|
children: [
|
|
10986
|
-
/* @__PURE__ */ (0,
|
|
10987
|
-
/* @__PURE__ */ (0,
|
|
10988
|
-
!isPublic ? /* @__PURE__ */ (0,
|
|
10989
|
-
canEdit ? /* @__PURE__ */ (0,
|
|
11063
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ResolveIcon, { icon, name, "data-test-id": "integration-logo" }),
|
|
11064
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { css: IntegrationTileName, "data-test-id": "integration-card-name", children: name }),
|
|
11065
|
+
!isPublic ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(IntegrationCustomBadge, {}) : null,
|
|
11066
|
+
canEdit ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
10990
11067
|
Button,
|
|
10991
11068
|
{
|
|
10992
11069
|
buttonType: "unimportant",
|
|
@@ -11004,10 +11081,10 @@ var EditTeamIntegrationTile = ({
|
|
|
11004
11081
|
};
|
|
11005
11082
|
|
|
11006
11083
|
// src/components/Tiles/IntegrationComingSoon.tsx
|
|
11007
|
-
var
|
|
11008
|
-
var
|
|
11084
|
+
var import_react60 = require("@emotion/react");
|
|
11085
|
+
var import_react61 = require("react");
|
|
11009
11086
|
var import_cg12 = require("react-icons/cg");
|
|
11010
|
-
var
|
|
11087
|
+
var import_jsx_runtime59 = require("@emotion/react/jsx-runtime");
|
|
11011
11088
|
var IntegrationComingSoon = ({
|
|
11012
11089
|
name,
|
|
11013
11090
|
icon,
|
|
@@ -11016,12 +11093,12 @@ var IntegrationComingSoon = ({
|
|
|
11016
11093
|
timing = 1e3,
|
|
11017
11094
|
...props
|
|
11018
11095
|
}) => {
|
|
11019
|
-
const [upVote, setUpVote] = (0,
|
|
11096
|
+
const [upVote, setUpVote] = (0, import_react61.useState)(false);
|
|
11020
11097
|
const handleUpVoteInteraction = () => {
|
|
11021
11098
|
setUpVote((prev) => !prev);
|
|
11022
11099
|
onUpVoteClick();
|
|
11023
11100
|
};
|
|
11024
|
-
(0,
|
|
11101
|
+
(0, import_react61.useEffect)(() => {
|
|
11025
11102
|
if (upVote) {
|
|
11026
11103
|
const timer = setTimeout(() => setUpVote(false), timing);
|
|
11027
11104
|
return () => {
|
|
@@ -11029,17 +11106,17 @@ var IntegrationComingSoon = ({
|
|
|
11029
11106
|
};
|
|
11030
11107
|
}
|
|
11031
11108
|
}, [upVote, setUpVote, timing]);
|
|
11032
|
-
return /* @__PURE__ */ (0,
|
|
11109
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
11033
11110
|
"div",
|
|
11034
11111
|
{
|
|
11035
11112
|
css: IntegrationTileContainer,
|
|
11036
11113
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
11037
11114
|
...props,
|
|
11038
11115
|
children: [
|
|
11039
|
-
/* @__PURE__ */ (0,
|
|
11040
|
-
/* @__PURE__ */ (0,
|
|
11041
|
-
/* @__PURE__ */ (0,
|
|
11042
|
-
/* @__PURE__ */ (0,
|
|
11116
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(IntegrationComingSoonBadge, {}),
|
|
11117
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ResolveIcon, { icon, name }),
|
|
11118
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { css: IntegrationTileName, title: name, children: name }),
|
|
11119
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
11043
11120
|
Button,
|
|
11044
11121
|
{
|
|
11045
11122
|
buttonType: "unimportant",
|
|
@@ -11049,19 +11126,19 @@ var IntegrationComingSoon = ({
|
|
|
11049
11126
|
role: "link",
|
|
11050
11127
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
11051
11128
|
children: [
|
|
11052
|
-
/* @__PURE__ */ (0,
|
|
11053
|
-
/* @__PURE__ */ (0,
|
|
11129
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("strong", { children: "+1" }),
|
|
11130
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
11054
11131
|
"span",
|
|
11055
11132
|
{
|
|
11056
|
-
css:
|
|
11133
|
+
css: import_react60.css`
|
|
11057
11134
|
text-transform: uppercase;
|
|
11058
11135
|
color: var(--gray-500);
|
|
11059
11136
|
`,
|
|
11060
11137
|
children: "(I want this)"
|
|
11061
11138
|
}
|
|
11062
11139
|
),
|
|
11063
|
-
/* @__PURE__ */ (0,
|
|
11064
|
-
/* @__PURE__ */ (0,
|
|
11140
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { "aria-hidden": !upVote, children: [
|
|
11141
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { icon: import_cg12.CgHeart, iconColor: "currentColor", size: 18 }),
|
|
11065
11142
|
"Thanks!"
|
|
11066
11143
|
] })
|
|
11067
11144
|
]
|
|
@@ -11073,8 +11150,8 @@ var IntegrationComingSoon = ({
|
|
|
11073
11150
|
};
|
|
11074
11151
|
|
|
11075
11152
|
// src/components/Tiles/styles/IntegrationLoadingTile.styles.ts
|
|
11076
|
-
var
|
|
11077
|
-
var IntegrationLoadingTileContainer =
|
|
11153
|
+
var import_react62 = require("@emotion/react");
|
|
11154
|
+
var IntegrationLoadingTileContainer = import_react62.css`
|
|
11078
11155
|
align-items: center;
|
|
11079
11156
|
box-sizing: border-box;
|
|
11080
11157
|
border-radius: var(--rounded-base);
|
|
@@ -11101,39 +11178,39 @@ var IntegrationLoadingTileContainer = import_react60.css`
|
|
|
11101
11178
|
}
|
|
11102
11179
|
}
|
|
11103
11180
|
`;
|
|
11104
|
-
var IntegrationLoadingTileImg =
|
|
11181
|
+
var IntegrationLoadingTileImg = import_react62.css`
|
|
11105
11182
|
width: 10rem;
|
|
11106
11183
|
height: 4rem;
|
|
11107
11184
|
margin: 0 auto;
|
|
11108
11185
|
`;
|
|
11109
|
-
var IntegrationLoadingTileText =
|
|
11186
|
+
var IntegrationLoadingTileText = import_react62.css`
|
|
11110
11187
|
width: 5rem;
|
|
11111
11188
|
height: var(--spacing-sm);
|
|
11112
11189
|
margin: var(--spacing-sm) 0;
|
|
11113
11190
|
`;
|
|
11114
|
-
var IntegrationLoadingFrame =
|
|
11191
|
+
var IntegrationLoadingFrame = import_react62.css`
|
|
11115
11192
|
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
11116
11193
|
border-radius: var(--rounded-base);
|
|
11117
11194
|
`;
|
|
11118
11195
|
|
|
11119
11196
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
11120
|
-
var
|
|
11197
|
+
var import_jsx_runtime60 = require("@emotion/react/jsx-runtime");
|
|
11121
11198
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
11122
11199
|
const componentCount = Array.from(Array(count).keys());
|
|
11123
|
-
return /* @__PURE__ */ (0,
|
|
11124
|
-
/* @__PURE__ */ (0,
|
|
11125
|
-
/* @__PURE__ */ (0,
|
|
11200
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_jsx_runtime60.Fragment, { children: componentCount.map((i) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { css: IntegrationLoadingTileContainer, children: [
|
|
11201
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
11202
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
11126
11203
|
] }, i)) });
|
|
11127
11204
|
};
|
|
11128
11205
|
|
|
11129
11206
|
// src/components/Tiles/styles/IntegrationModalIcon.styles.ts
|
|
11130
|
-
var
|
|
11131
|
-
var IntegrationModalIconContainer =
|
|
11207
|
+
var import_react63 = require("@emotion/react");
|
|
11208
|
+
var IntegrationModalIconContainer = import_react63.css`
|
|
11132
11209
|
position: relative;
|
|
11133
11210
|
width: 50px;
|
|
11134
11211
|
margin-bottom: var(--spacing-base);
|
|
11135
11212
|
`;
|
|
11136
|
-
var IntegrationModalImage =
|
|
11213
|
+
var IntegrationModalImage = import_react63.css`
|
|
11137
11214
|
position: absolute;
|
|
11138
11215
|
inset: 0;
|
|
11139
11216
|
margin: auto;
|
|
@@ -11142,12 +11219,12 @@ var IntegrationModalImage = import_react61.css`
|
|
|
11142
11219
|
`;
|
|
11143
11220
|
|
|
11144
11221
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
11145
|
-
var
|
|
11222
|
+
var import_jsx_runtime61 = require("@emotion/react/jsx-runtime");
|
|
11146
11223
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
11147
11224
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
11148
|
-
return /* @__PURE__ */ (0,
|
|
11149
|
-
/* @__PURE__ */ (0,
|
|
11150
|
-
/* @__PURE__ */ (0,
|
|
11225
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { css: IntegrationModalIconContainer, children: [
|
|
11226
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
11227
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
11151
11228
|
"path",
|
|
11152
11229
|
{
|
|
11153
11230
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -11156,12 +11233,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
11156
11233
|
strokeWidth: "2"
|
|
11157
11234
|
}
|
|
11158
11235
|
),
|
|
11159
|
-
/* @__PURE__ */ (0,
|
|
11160
|
-
/* @__PURE__ */ (0,
|
|
11161
|
-
/* @__PURE__ */ (0,
|
|
11236
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
11237
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("stop", { stopColor: "#1768B2" }),
|
|
11238
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
11162
11239
|
] }) })
|
|
11163
11240
|
] }),
|
|
11164
|
-
CompIcon ? /* @__PURE__ */ (0,
|
|
11241
|
+
CompIcon ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
11165
11242
|
"img",
|
|
11166
11243
|
{
|
|
11167
11244
|
src: icon,
|
|
@@ -11175,7 +11252,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
11175
11252
|
};
|
|
11176
11253
|
|
|
11177
11254
|
// src/components/Tiles/IntegrationTile.tsx
|
|
11178
|
-
var
|
|
11255
|
+
var import_jsx_runtime62 = require("@emotion/react/jsx-runtime");
|
|
11179
11256
|
var IntegrationTile = ({
|
|
11180
11257
|
id,
|
|
11181
11258
|
icon,
|
|
@@ -11187,7 +11264,7 @@ var IntegrationTile = ({
|
|
|
11187
11264
|
authorIcon,
|
|
11188
11265
|
...btnProps
|
|
11189
11266
|
}) => {
|
|
11190
|
-
return /* @__PURE__ */ (0,
|
|
11267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
11191
11268
|
"button",
|
|
11192
11269
|
{
|
|
11193
11270
|
type: "button",
|
|
@@ -11197,70 +11274,70 @@ var IntegrationTile = ({
|
|
|
11197
11274
|
"aria-label": name,
|
|
11198
11275
|
...btnProps,
|
|
11199
11276
|
children: [
|
|
11200
|
-
/* @__PURE__ */ (0,
|
|
11201
|
-
/* @__PURE__ */ (0,
|
|
11202
|
-
isInstalled ? /* @__PURE__ */ (0,
|
|
11203
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */ (0,
|
|
11204
|
-
!isPublic ? /* @__PURE__ */ (0,
|
|
11205
|
-
authorIcon ? /* @__PURE__ */ (0,
|
|
11277
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(ResolveIcon, { icon, name }),
|
|
11278
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { css: IntegrationTileName, title: name, children: name }),
|
|
11279
|
+
isInstalled ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(IntegrationedAddedBadge, {}) : null,
|
|
11280
|
+
requiedEntitlement && isPublic ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(IntegrationPremiumBadge, {}) : null,
|
|
11281
|
+
!isPublic ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(IntegrationCustomBadge, {}) : null,
|
|
11282
|
+
authorIcon ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(ResolveIcon, { icon: authorIcon, name }) : null
|
|
11206
11283
|
]
|
|
11207
11284
|
}
|
|
11208
11285
|
);
|
|
11209
11286
|
};
|
|
11210
11287
|
|
|
11211
11288
|
// src/components/Tiles/styles/TileContainer.styles.ts
|
|
11212
|
-
var
|
|
11213
|
-
var TileContainerWrapper =
|
|
11289
|
+
var import_react64 = require("@emotion/react");
|
|
11290
|
+
var TileContainerWrapper = import_react64.css`
|
|
11214
11291
|
background: var(--brand-secondary-2);
|
|
11215
11292
|
padding: var(--spacing-base);
|
|
11216
11293
|
margin-bottom: var(--spacing-lg);
|
|
11217
11294
|
`;
|
|
11218
|
-
var TileContainerInner =
|
|
11295
|
+
var TileContainerInner = import_react64.css`
|
|
11219
11296
|
display: grid;
|
|
11220
11297
|
grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
|
|
11221
11298
|
gap: var(--spacing-base);
|
|
11222
11299
|
`;
|
|
11223
11300
|
|
|
11224
11301
|
// src/components/Tiles/TileContainer.tsx
|
|
11225
|
-
var
|
|
11302
|
+
var import_jsx_runtime63 = require("@emotion/react/jsx-runtime");
|
|
11226
11303
|
var TileContainer = ({ children, ...props }) => {
|
|
11227
|
-
return /* @__PURE__ */ (0,
|
|
11304
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { css: TileContainerWrapper, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { css: TileContainerInner, children }) });
|
|
11228
11305
|
};
|
|
11229
11306
|
|
|
11230
11307
|
// src/components/Modal/IntegrationModalHeader.styles.ts
|
|
11231
|
-
var
|
|
11232
|
-
var IntegrationModalHeaderSVGBackground =
|
|
11308
|
+
var import_react65 = require("@emotion/react");
|
|
11309
|
+
var IntegrationModalHeaderSVGBackground = import_react65.css`
|
|
11233
11310
|
position: absolute;
|
|
11234
11311
|
top: 0;
|
|
11235
11312
|
left: 0;
|
|
11236
11313
|
`;
|
|
11237
|
-
var IntegrationModalHeaderGroup =
|
|
11314
|
+
var IntegrationModalHeaderGroup = import_react65.css`
|
|
11238
11315
|
align-items: center;
|
|
11239
11316
|
display: flex;
|
|
11240
11317
|
gap: var(--spacing-sm);
|
|
11241
11318
|
margin: 0 0 var(--spacing-md);
|
|
11242
11319
|
position: relative;
|
|
11243
11320
|
`;
|
|
11244
|
-
var IntegrationModalHeaderTitleGroup =
|
|
11321
|
+
var IntegrationModalHeaderTitleGroup = import_react65.css`
|
|
11245
11322
|
align-items: center;
|
|
11246
11323
|
display: flex;
|
|
11247
11324
|
gap: var(--spacing-base);
|
|
11248
11325
|
`;
|
|
11249
|
-
var IntegrationModalHeaderTitle =
|
|
11326
|
+
var IntegrationModalHeaderTitle = import_react65.css`
|
|
11250
11327
|
margin-top: 0;
|
|
11251
11328
|
`;
|
|
11252
|
-
var IntegrationModalHeaderMenuPlacement =
|
|
11329
|
+
var IntegrationModalHeaderMenuPlacement = import_react65.css`
|
|
11253
11330
|
margin-bottom: var(--spacing-base);
|
|
11254
11331
|
`;
|
|
11255
|
-
var IntegrationModalHeaderContentWrapper =
|
|
11332
|
+
var IntegrationModalHeaderContentWrapper = import_react65.css`
|
|
11256
11333
|
position: relative;
|
|
11257
11334
|
z-index: var(--z-10);
|
|
11258
11335
|
`;
|
|
11259
11336
|
|
|
11260
11337
|
// src/components/Modal/IntegrationModalHeader.tsx
|
|
11261
|
-
var
|
|
11338
|
+
var import_jsx_runtime64 = require("@emotion/react/jsx-runtime");
|
|
11262
11339
|
var HexModalBackground = ({ ...props }) => {
|
|
11263
|
-
return /* @__PURE__ */ (0,
|
|
11340
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
11264
11341
|
"svg",
|
|
11265
11342
|
{
|
|
11266
11343
|
width: "236",
|
|
@@ -11270,7 +11347,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
11270
11347
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11271
11348
|
...props,
|
|
11272
11349
|
children: [
|
|
11273
|
-
/* @__PURE__ */ (0,
|
|
11350
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
11274
11351
|
"path",
|
|
11275
11352
|
{
|
|
11276
11353
|
fillRule: "evenodd",
|
|
@@ -11279,7 +11356,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
11279
11356
|
fill: "url(#paint0_linear_196_2737)"
|
|
11280
11357
|
}
|
|
11281
11358
|
),
|
|
11282
|
-
/* @__PURE__ */ (0,
|
|
11359
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
11283
11360
|
"linearGradient",
|
|
11284
11361
|
{
|
|
11285
11362
|
id: "paint0_linear_196_2737",
|
|
@@ -11289,8 +11366,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
11289
11366
|
y2: "-95.2742",
|
|
11290
11367
|
gradientUnits: "userSpaceOnUse",
|
|
11291
11368
|
children: [
|
|
11292
|
-
/* @__PURE__ */ (0,
|
|
11293
|
-
/* @__PURE__ */ (0,
|
|
11369
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("stop", { stopColor: "#81DCDE" }),
|
|
11370
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("stop", { offset: "1", stopColor: "#428ED4" })
|
|
11294
11371
|
]
|
|
11295
11372
|
}
|
|
11296
11373
|
) })
|
|
@@ -11299,27 +11376,27 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
11299
11376
|
);
|
|
11300
11377
|
};
|
|
11301
11378
|
var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
11302
|
-
return /* @__PURE__ */ (0,
|
|
11303
|
-
/* @__PURE__ */ (0,
|
|
11304
|
-
/* @__PURE__ */ (0,
|
|
11305
|
-
icon ? /* @__PURE__ */ (0,
|
|
11306
|
-
/* @__PURE__ */ (0,
|
|
11307
|
-
menu2 ? /* @__PURE__ */ (0,
|
|
11379
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
|
|
11380
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
11381
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
11382
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
11383
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-test-id": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
11384
|
+
menu2 ? /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
11308
11385
|
menu2,
|
|
11309
11386
|
" "
|
|
11310
11387
|
] }) : null
|
|
11311
11388
|
] }) }),
|
|
11312
|
-
/* @__PURE__ */ (0,
|
|
11389
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
11313
11390
|
] });
|
|
11314
11391
|
};
|
|
11315
11392
|
|
|
11316
11393
|
// src/components/Tooltip/Tooltip.tsx
|
|
11317
|
-
var
|
|
11394
|
+
var import_react67 = __toESM(require("react"));
|
|
11318
11395
|
var import_Tooltip = require("reakit/Tooltip");
|
|
11319
11396
|
|
|
11320
11397
|
// src/components/Tooltip/Tooltip.styles.ts
|
|
11321
|
-
var
|
|
11322
|
-
var TooltipContainer =
|
|
11398
|
+
var import_react66 = require("@emotion/react");
|
|
11399
|
+
var TooltipContainer = import_react66.css`
|
|
11323
11400
|
border: 2px solid var(--gray-300);
|
|
11324
11401
|
border-radius: var(--rounded-base);
|
|
11325
11402
|
padding: var(--spacing-xs) var(--spacing-sm);
|
|
@@ -11327,28 +11404,28 @@ var TooltipContainer = import_react64.css`
|
|
|
11327
11404
|
font-size: var(--fs-xs);
|
|
11328
11405
|
background: var(--white);
|
|
11329
11406
|
`;
|
|
11330
|
-
var TooltipArrowStyles =
|
|
11407
|
+
var TooltipArrowStyles = import_react66.css`
|
|
11331
11408
|
svg {
|
|
11332
11409
|
fill: var(--gray-300);
|
|
11333
11410
|
}
|
|
11334
11411
|
`;
|
|
11335
11412
|
|
|
11336
11413
|
// src/components/Tooltip/Tooltip.tsx
|
|
11337
|
-
var
|
|
11414
|
+
var import_jsx_runtime65 = require("@emotion/react/jsx-runtime");
|
|
11338
11415
|
function Tooltip({ children, title, placement = "bottom", visible, ...props }) {
|
|
11339
11416
|
const tooltip = (0, import_Tooltip.useTooltipState)({ placement });
|
|
11340
|
-
return /* @__PURE__ */ (0,
|
|
11341
|
-
/* @__PURE__ */ (0,
|
|
11342
|
-
/* @__PURE__ */ (0,
|
|
11343
|
-
/* @__PURE__ */ (0,
|
|
11417
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
|
|
11418
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_Tooltip.TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => import_react67.default.cloneElement(children, referenceProps) }),
|
|
11419
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_Tooltip.Tooltip, { ...tooltip, ...props, css: TooltipContainer, visible: visible != null ? visible : tooltip.visible, children: [
|
|
11420
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_Tooltip.TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
|
|
11344
11421
|
title
|
|
11345
11422
|
] })
|
|
11346
11423
|
] });
|
|
11347
11424
|
}
|
|
11348
11425
|
|
|
11349
11426
|
// src/components/ParameterInputs/styles/ParameterBindingButton.styles.ts
|
|
11350
|
-
var
|
|
11351
|
-
var inputIconBtn =
|
|
11427
|
+
var import_react68 = require("@emotion/react");
|
|
11428
|
+
var inputIconBtn = import_react68.css`
|
|
11352
11429
|
align-items: center;
|
|
11353
11430
|
border: none;
|
|
11354
11431
|
border-radius: var(--rounded-base);
|
|
@@ -11371,7 +11448,7 @@ var inputIconBtn = import_react66.css`
|
|
|
11371
11448
|
`;
|
|
11372
11449
|
|
|
11373
11450
|
// src/components/ParameterInputs/ConnectToDataElementButton.tsx
|
|
11374
|
-
var
|
|
11451
|
+
var import_jsx_runtime66 = require("@emotion/react/jsx-runtime");
|
|
11375
11452
|
var ConnectToDataElementButton = ({
|
|
11376
11453
|
icon,
|
|
11377
11454
|
iconColor,
|
|
@@ -11381,7 +11458,7 @@ var ConnectToDataElementButton = ({
|
|
|
11381
11458
|
...props
|
|
11382
11459
|
}) => {
|
|
11383
11460
|
const title = isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
11384
|
-
return /* @__PURE__ */ (0,
|
|
11461
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Tooltip, { title, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
11385
11462
|
"button",
|
|
11386
11463
|
{
|
|
11387
11464
|
css: inputIconBtn,
|
|
@@ -11390,7 +11467,7 @@ var ConnectToDataElementButton = ({
|
|
|
11390
11467
|
"aria-disabled": isLocked,
|
|
11391
11468
|
...props,
|
|
11392
11469
|
children: [
|
|
11393
|
-
/* @__PURE__ */ (0,
|
|
11470
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
11394
11471
|
Icon,
|
|
11395
11472
|
{
|
|
11396
11473
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -11405,8 +11482,8 @@ var ConnectToDataElementButton = ({
|
|
|
11405
11482
|
};
|
|
11406
11483
|
|
|
11407
11484
|
// src/components/ParameterInputs/hooks/ParameterShellContext.tsx
|
|
11408
|
-
var
|
|
11409
|
-
var ParameterShellContext = (0,
|
|
11485
|
+
var import_react69 = require("react");
|
|
11486
|
+
var ParameterShellContext = (0, import_react69.createContext)({
|
|
11410
11487
|
id: "",
|
|
11411
11488
|
label: "",
|
|
11412
11489
|
hiddenLabel: void 0,
|
|
@@ -11415,7 +11492,7 @@ var ParameterShellContext = (0, import_react67.createContext)({
|
|
|
11415
11492
|
}
|
|
11416
11493
|
});
|
|
11417
11494
|
var useParameterShell = () => {
|
|
11418
|
-
const { id, label, hiddenLabel, errorMessage, onManuallySetErrorMessage } = (0,
|
|
11495
|
+
const { id, label, hiddenLabel, errorMessage, onManuallySetErrorMessage } = (0, import_react69.useContext)(ParameterShellContext);
|
|
11419
11496
|
return {
|
|
11420
11497
|
id,
|
|
11421
11498
|
label,
|
|
@@ -11426,8 +11503,8 @@ var useParameterShell = () => {
|
|
|
11426
11503
|
};
|
|
11427
11504
|
|
|
11428
11505
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
11429
|
-
var
|
|
11430
|
-
var inputContainer2 =
|
|
11506
|
+
var import_react70 = require("@emotion/react");
|
|
11507
|
+
var inputContainer2 = import_react70.css`
|
|
11431
11508
|
position: relative;
|
|
11432
11509
|
|
|
11433
11510
|
&:hover,
|
|
@@ -11439,14 +11516,14 @@ var inputContainer2 = import_react68.css`
|
|
|
11439
11516
|
}
|
|
11440
11517
|
}
|
|
11441
11518
|
`;
|
|
11442
|
-
var labelText2 =
|
|
11519
|
+
var labelText2 = import_react70.css`
|
|
11443
11520
|
align-items: center;
|
|
11444
11521
|
display: flex;
|
|
11445
11522
|
gap: var(--spacing-xs);
|
|
11446
11523
|
font-weight: var(--fw-regular);
|
|
11447
11524
|
margin: 0 0 var(--spacing-xs);
|
|
11448
11525
|
`;
|
|
11449
|
-
var input2 =
|
|
11526
|
+
var input2 = import_react70.css`
|
|
11450
11527
|
display: block;
|
|
11451
11528
|
appearance: none;
|
|
11452
11529
|
box-sizing: border-box;
|
|
@@ -11490,18 +11567,18 @@ var input2 = import_react68.css`
|
|
|
11490
11567
|
color: var(--gray-400);
|
|
11491
11568
|
}
|
|
11492
11569
|
`;
|
|
11493
|
-
var selectInput =
|
|
11570
|
+
var selectInput = import_react70.css`
|
|
11494
11571
|
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");
|
|
11495
11572
|
background-position: right var(--spacing-sm) center;
|
|
11496
11573
|
background-repeat: no-repeat;
|
|
11497
11574
|
background-size: 1rem;
|
|
11498
11575
|
padding-right: var(--spacing-xl);
|
|
11499
11576
|
`;
|
|
11500
|
-
var inputWrapper =
|
|
11577
|
+
var inputWrapper = import_react70.css`
|
|
11501
11578
|
display: flex; // used to correct overflow with chrome textarea
|
|
11502
11579
|
position: relative;
|
|
11503
11580
|
`;
|
|
11504
|
-
var inputIcon2 =
|
|
11581
|
+
var inputIcon2 = import_react70.css`
|
|
11505
11582
|
align-items: center;
|
|
11506
11583
|
background: var(--white);
|
|
11507
11584
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -11517,7 +11594,7 @@ var inputIcon2 = import_react68.css`
|
|
|
11517
11594
|
width: var(--spacing-lg);
|
|
11518
11595
|
z-index: var(--z-10);
|
|
11519
11596
|
`;
|
|
11520
|
-
var inputToggleLabel2 =
|
|
11597
|
+
var inputToggleLabel2 = import_react70.css`
|
|
11521
11598
|
align-items: center;
|
|
11522
11599
|
background: var(--white);
|
|
11523
11600
|
cursor: pointer;
|
|
@@ -11528,7 +11605,7 @@ var inputToggleLabel2 = import_react68.css`
|
|
|
11528
11605
|
min-height: var(--spacing-md);
|
|
11529
11606
|
position: relative;
|
|
11530
11607
|
`;
|
|
11531
|
-
var toggleInput2 =
|
|
11608
|
+
var toggleInput2 = import_react70.css`
|
|
11532
11609
|
appearance: none;
|
|
11533
11610
|
border: 1px solid var(--gray-300);
|
|
11534
11611
|
background: var(--white);
|
|
@@ -11567,7 +11644,7 @@ var toggleInput2 = import_react68.css`
|
|
|
11567
11644
|
border-color: var(--gray-300);
|
|
11568
11645
|
}
|
|
11569
11646
|
`;
|
|
11570
|
-
var inlineLabel2 =
|
|
11647
|
+
var inlineLabel2 = import_react70.css`
|
|
11571
11648
|
padding-left: var(--spacing-lg);
|
|
11572
11649
|
font-size: var(--fs-sm);
|
|
11573
11650
|
font-weight: var(--fw-regular);
|
|
@@ -11583,7 +11660,7 @@ var inlineLabel2 = import_react68.css`
|
|
|
11583
11660
|
}
|
|
11584
11661
|
}
|
|
11585
11662
|
`;
|
|
11586
|
-
var inputMenu =
|
|
11663
|
+
var inputMenu = import_react70.css`
|
|
11587
11664
|
background: none;
|
|
11588
11665
|
border: none;
|
|
11589
11666
|
padding: 0;
|
|
@@ -11604,14 +11681,14 @@ var inputMenu = import_react68.css`
|
|
|
11604
11681
|
|
|
11605
11682
|
}
|
|
11606
11683
|
`;
|
|
11607
|
-
var textarea2 =
|
|
11684
|
+
var textarea2 = import_react70.css`
|
|
11608
11685
|
resize: vertical;
|
|
11609
11686
|
min-height: 2rem;
|
|
11610
11687
|
`;
|
|
11611
|
-
var imageWrapper =
|
|
11688
|
+
var imageWrapper = import_react70.css`
|
|
11612
11689
|
background: var(--white);
|
|
11613
11690
|
`;
|
|
11614
|
-
var img =
|
|
11691
|
+
var img = import_react70.css`
|
|
11615
11692
|
animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
11616
11693
|
object-fit: contain;
|
|
11617
11694
|
max-width: 100%;
|
|
@@ -11619,7 +11696,7 @@ var img = import_react68.css`
|
|
|
11619
11696
|
opacity: var(--opacity-0);
|
|
11620
11697
|
margin: var(--spacing-sm) auto 0;
|
|
11621
11698
|
`;
|
|
11622
|
-
var dataConnectButton =
|
|
11699
|
+
var dataConnectButton = import_react70.css`
|
|
11623
11700
|
align-items: center;
|
|
11624
11701
|
appearance: none;
|
|
11625
11702
|
box-sizing: border-box;
|
|
@@ -11654,7 +11731,7 @@ var dataConnectButton = import_react68.css`
|
|
|
11654
11731
|
pointer-events: none;
|
|
11655
11732
|
}
|
|
11656
11733
|
`;
|
|
11657
|
-
var linkParameterBtn =
|
|
11734
|
+
var linkParameterBtn = import_react70.css`
|
|
11658
11735
|
border-radius: var(--rounded-base);
|
|
11659
11736
|
background: var(--white);
|
|
11660
11737
|
border: none;
|
|
@@ -11666,10 +11743,10 @@ var linkParameterBtn = import_react68.css`
|
|
|
11666
11743
|
inset: 0 var(--spacing-base) 0 auto;
|
|
11667
11744
|
padding: 0 var(--spacing-base);
|
|
11668
11745
|
`;
|
|
11669
|
-
var linkParameterInput =
|
|
11746
|
+
var linkParameterInput = import_react70.css`
|
|
11670
11747
|
padding-right: calc(var(--spacing-2xl) + var(--spacing-base));
|
|
11671
11748
|
`;
|
|
11672
|
-
var linkParameterIcon =
|
|
11749
|
+
var linkParameterIcon = import_react70.css`
|
|
11673
11750
|
align-items: center;
|
|
11674
11751
|
color: var(--brand-secondary-3);
|
|
11675
11752
|
display: flex;
|
|
@@ -11684,7 +11761,7 @@ var linkParameterIcon = import_react68.css`
|
|
|
11684
11761
|
`;
|
|
11685
11762
|
|
|
11686
11763
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
11687
|
-
var
|
|
11764
|
+
var import_jsx_runtime67 = require("@emotion/react/jsx-runtime");
|
|
11688
11765
|
function ParameterDataResource({
|
|
11689
11766
|
label,
|
|
11690
11767
|
labelLeadingIcon,
|
|
@@ -11694,12 +11771,12 @@ function ParameterDataResource({
|
|
|
11694
11771
|
disabled,
|
|
11695
11772
|
children
|
|
11696
11773
|
}) {
|
|
11697
|
-
return /* @__PURE__ */ (0,
|
|
11698
|
-
/* @__PURE__ */ (0,
|
|
11774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { "data-testid": "parameter-data-connect-button", children: [
|
|
11775
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { css: labelText2, children: [
|
|
11699
11776
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
11700
11777
|
label
|
|
11701
11778
|
] }),
|
|
11702
|
-
/* @__PURE__ */ (0,
|
|
11779
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
11703
11780
|
"button",
|
|
11704
11781
|
{
|
|
11705
11782
|
type: "button",
|
|
@@ -11708,30 +11785,30 @@ function ParameterDataResource({
|
|
|
11708
11785
|
disabled,
|
|
11709
11786
|
onClick: onConnectDatasource,
|
|
11710
11787
|
children: [
|
|
11711
|
-
/* @__PURE__ */ (0,
|
|
11788
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
11712
11789
|
children
|
|
11713
11790
|
]
|
|
11714
11791
|
}
|
|
11715
11792
|
),
|
|
11716
|
-
caption ? /* @__PURE__ */ (0,
|
|
11793
|
+
caption ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Caption, { children: caption }) : null
|
|
11717
11794
|
] });
|
|
11718
11795
|
}
|
|
11719
11796
|
|
|
11720
11797
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
11721
|
-
var
|
|
11722
|
-
var ParameterDrawerHeaderContainer =
|
|
11798
|
+
var import_react71 = require("@emotion/react");
|
|
11799
|
+
var ParameterDrawerHeaderContainer = import_react71.css`
|
|
11723
11800
|
align-items: center;
|
|
11724
11801
|
display: flex;
|
|
11725
11802
|
gap: var(--spacing-base);
|
|
11726
11803
|
justify-content: space-between;
|
|
11727
11804
|
margin-bottom: var(--spacing-sm);
|
|
11728
11805
|
`;
|
|
11729
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
11806
|
+
var ParameterDrawerHeaderTitleGroup = import_react71.css`
|
|
11730
11807
|
align-items: center;
|
|
11731
11808
|
display: flex;
|
|
11732
11809
|
gap: var(--spacing-sm);
|
|
11733
11810
|
`;
|
|
11734
|
-
var ParameterDrawerHeaderTitle =
|
|
11811
|
+
var ParameterDrawerHeaderTitle = import_react71.css`
|
|
11735
11812
|
text-overflow: ellipsis;
|
|
11736
11813
|
white-space: nowrap;
|
|
11737
11814
|
overflow: hidden;
|
|
@@ -11739,23 +11816,23 @@ var ParameterDrawerHeaderTitle = import_react69.css`
|
|
|
11739
11816
|
`;
|
|
11740
11817
|
|
|
11741
11818
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
11742
|
-
var
|
|
11819
|
+
var import_jsx_runtime68 = require("@emotion/react/jsx-runtime");
|
|
11743
11820
|
var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
11744
|
-
return /* @__PURE__ */ (0,
|
|
11745
|
-
/* @__PURE__ */ (0,
|
|
11821
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
11822
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
11746
11823
|
iconBeforeTitle,
|
|
11747
|
-
/* @__PURE__ */ (0,
|
|
11824
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
|
|
11748
11825
|
] }),
|
|
11749
11826
|
children
|
|
11750
11827
|
] });
|
|
11751
11828
|
};
|
|
11752
11829
|
|
|
11753
11830
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
11754
|
-
var
|
|
11831
|
+
var import_react73 = require("react");
|
|
11755
11832
|
|
|
11756
11833
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
11757
|
-
var
|
|
11758
|
-
var fieldsetStyles =
|
|
11834
|
+
var import_react72 = require("@emotion/react");
|
|
11835
|
+
var fieldsetStyles = import_react72.css`
|
|
11759
11836
|
&:disabled,
|
|
11760
11837
|
[readonly] {
|
|
11761
11838
|
pointer-events: none;
|
|
@@ -11766,7 +11843,7 @@ var fieldsetStyles = import_react70.css`
|
|
|
11766
11843
|
}
|
|
11767
11844
|
}
|
|
11768
11845
|
`;
|
|
11769
|
-
var fieldsetLegend2 =
|
|
11846
|
+
var fieldsetLegend2 = import_react72.css`
|
|
11770
11847
|
display: block;
|
|
11771
11848
|
font-weight: var(--fw-medium);
|
|
11772
11849
|
margin-bottom: var(--spacing-sm);
|
|
@@ -11774,38 +11851,38 @@ var fieldsetLegend2 = import_react70.css`
|
|
|
11774
11851
|
`;
|
|
11775
11852
|
|
|
11776
11853
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
11777
|
-
var
|
|
11778
|
-
var ParameterGroup = (0,
|
|
11854
|
+
var import_jsx_runtime69 = require("@emotion/react/jsx-runtime");
|
|
11855
|
+
var ParameterGroup = (0, import_react73.forwardRef)(
|
|
11779
11856
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
11780
|
-
return /* @__PURE__ */ (0,
|
|
11781
|
-
/* @__PURE__ */ (0,
|
|
11857
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
11858
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("legend", { css: fieldsetLegend2, children: legend }),
|
|
11782
11859
|
children
|
|
11783
11860
|
] });
|
|
11784
11861
|
}
|
|
11785
11862
|
);
|
|
11786
11863
|
|
|
11787
11864
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
11788
|
-
var
|
|
11865
|
+
var import_react77 = require("react");
|
|
11789
11866
|
|
|
11790
11867
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
11791
|
-
var
|
|
11868
|
+
var import_react76 = require("react");
|
|
11792
11869
|
|
|
11793
11870
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
11794
|
-
var
|
|
11871
|
+
var import_jsx_runtime70 = require("@emotion/react/jsx-runtime");
|
|
11795
11872
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
11796
|
-
return !asSpan ? /* @__PURE__ */ (0,
|
|
11873
|
+
return !asSpan ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { "aria-labelledby": id, css: labelText2, children });
|
|
11797
11874
|
};
|
|
11798
11875
|
|
|
11799
11876
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
11800
|
-
var
|
|
11801
|
-
var
|
|
11802
|
-
var ParameterMenuButton = (0,
|
|
11877
|
+
var import_react74 = require("react");
|
|
11878
|
+
var import_jsx_runtime71 = require("@emotion/react/jsx-runtime");
|
|
11879
|
+
var ParameterMenuButton = (0, import_react74.forwardRef)(
|
|
11803
11880
|
({ label, children }, ref) => {
|
|
11804
|
-
return /* @__PURE__ */ (0,
|
|
11881
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
11805
11882
|
Menu,
|
|
11806
11883
|
{
|
|
11807
11884
|
menuLabel: `${label} menu`,
|
|
11808
|
-
menuTrigger: /* @__PURE__ */ (0,
|
|
11885
|
+
menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
11809
11886
|
"button",
|
|
11810
11887
|
{
|
|
11811
11888
|
className: "parameter-menu",
|
|
@@ -11813,7 +11890,7 @@ var ParameterMenuButton = (0, import_react72.forwardRef)(
|
|
|
11813
11890
|
type: "button",
|
|
11814
11891
|
"aria-label": `${label} options`,
|
|
11815
11892
|
ref,
|
|
11816
|
-
children: /* @__PURE__ */ (0,
|
|
11893
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Icon, { icon: "more-alt", iconColor: "currentColor" })
|
|
11817
11894
|
}
|
|
11818
11895
|
),
|
|
11819
11896
|
children
|
|
@@ -11823,15 +11900,15 @@ var ParameterMenuButton = (0, import_react72.forwardRef)(
|
|
|
11823
11900
|
);
|
|
11824
11901
|
|
|
11825
11902
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
11826
|
-
var
|
|
11827
|
-
var emptyParameterShell =
|
|
11903
|
+
var import_react75 = require("@emotion/react");
|
|
11904
|
+
var emptyParameterShell = import_react75.css`
|
|
11828
11905
|
border-radius: var(--rounded-sm);
|
|
11829
11906
|
background: var(--white);
|
|
11830
11907
|
flex-grow: 1;
|
|
11831
11908
|
padding: var(--spacing-xs);
|
|
11832
11909
|
position: relative;
|
|
11833
11910
|
`;
|
|
11834
|
-
var emptyParameterShellText =
|
|
11911
|
+
var emptyParameterShellText = import_react75.css`
|
|
11835
11912
|
background: var(--brand-secondary-6);
|
|
11836
11913
|
border-radius: var(--rounded-sm);
|
|
11837
11914
|
padding: var(--spacing-sm);
|
|
@@ -11839,7 +11916,7 @@ var emptyParameterShellText = import_react73.css`
|
|
|
11839
11916
|
font-size: var(--fs-sm);
|
|
11840
11917
|
margin: 0;
|
|
11841
11918
|
`;
|
|
11842
|
-
var overrideMarker =
|
|
11919
|
+
var overrideMarker = import_react75.css`
|
|
11843
11920
|
border-radius: var(--rounded-sm);
|
|
11844
11921
|
border: 10px solid var(--gray-300);
|
|
11845
11922
|
border-left-color: transparent;
|
|
@@ -11850,7 +11927,7 @@ var overrideMarker = import_react73.css`
|
|
|
11850
11927
|
`;
|
|
11851
11928
|
|
|
11852
11929
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
11853
|
-
var
|
|
11930
|
+
var import_jsx_runtime72 = require("@emotion/react/jsx-runtime");
|
|
11854
11931
|
var extractParameterProps = (props) => {
|
|
11855
11932
|
const {
|
|
11856
11933
|
id,
|
|
@@ -11903,21 +11980,21 @@ var ParameterShell = ({
|
|
|
11903
11980
|
children,
|
|
11904
11981
|
...props
|
|
11905
11982
|
}) => {
|
|
11906
|
-
const [manualErrorMessage, setManualErrorMessage] = (0,
|
|
11983
|
+
const [manualErrorMessage, setManualErrorMessage] = (0, import_react76.useState)(void 0);
|
|
11907
11984
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
11908
11985
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
11909
|
-
return /* @__PURE__ */ (0,
|
|
11910
|
-
hiddenLabel || title ? null : /* @__PURE__ */ (0,
|
|
11986
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { css: inputContainer2, ...props, children: [
|
|
11987
|
+
hiddenLabel || title ? null : /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(ParameterLabel, { id, css: labelText2, children: [
|
|
11911
11988
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
11912
11989
|
label
|
|
11913
11990
|
] }),
|
|
11914
|
-
!title ? null : /* @__PURE__ */ (0,
|
|
11991
|
+
!title ? null : /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(ParameterLabel, { id, asSpan: true, children: [
|
|
11915
11992
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
11916
11993
|
title
|
|
11917
11994
|
] }),
|
|
11918
|
-
/* @__PURE__ */ (0,
|
|
11919
|
-
menuItems ? /* @__PURE__ */ (0,
|
|
11920
|
-
/* @__PURE__ */ (0,
|
|
11995
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { css: inputWrapper, children: [
|
|
11996
|
+
menuItems ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
11997
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
11921
11998
|
ParameterShellContext.Provider,
|
|
11922
11999
|
{
|
|
11923
12000
|
value: {
|
|
@@ -11927,30 +12004,30 @@ var ParameterShell = ({
|
|
|
11927
12004
|
errorMessage: errorMessaging,
|
|
11928
12005
|
onManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
11929
12006
|
},
|
|
11930
|
-
children: /* @__PURE__ */ (0,
|
|
12007
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(ParameterShellPlaceholder, { children: [
|
|
11931
12008
|
children,
|
|
11932
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0,
|
|
12009
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
11933
12010
|
] })
|
|
11934
12011
|
}
|
|
11935
12012
|
)
|
|
11936
12013
|
] }),
|
|
11937
|
-
caption ? /* @__PURE__ */ (0,
|
|
11938
|
-
errorMessaging ? /* @__PURE__ */ (0,
|
|
12014
|
+
caption ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Caption, { testId: captionTestId, children: caption }) : null,
|
|
12015
|
+
errorMessaging ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null
|
|
11939
12016
|
] });
|
|
11940
12017
|
};
|
|
11941
12018
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
11942
|
-
return /* @__PURE__ */ (0,
|
|
12019
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { css: emptyParameterShell, children });
|
|
11943
12020
|
};
|
|
11944
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0,
|
|
12021
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
11945
12022
|
|
|
11946
12023
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
11947
|
-
var
|
|
11948
|
-
var ParameterImage = (0,
|
|
12024
|
+
var import_jsx_runtime73 = require("@emotion/react/jsx-runtime");
|
|
12025
|
+
var ParameterImage = (0, import_react77.forwardRef)((props, ref) => {
|
|
11949
12026
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
11950
|
-
return /* @__PURE__ */ (0,
|
|
12027
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(ParameterImageInner, { ref, ...innerProps }) });
|
|
11951
12028
|
});
|
|
11952
12029
|
var BrokenImage = ({ ...props }) => {
|
|
11953
|
-
return /* @__PURE__ */ (0,
|
|
12030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
11954
12031
|
"svg",
|
|
11955
12032
|
{
|
|
11956
12033
|
width: "214",
|
|
@@ -11961,11 +12038,11 @@ var BrokenImage = ({ ...props }) => {
|
|
|
11961
12038
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
11962
12039
|
...props,
|
|
11963
12040
|
children: [
|
|
11964
|
-
/* @__PURE__ */ (0,
|
|
11965
|
-
/* @__PURE__ */ (0,
|
|
11966
|
-
/* @__PURE__ */ (0,
|
|
11967
|
-
/* @__PURE__ */ (0,
|
|
11968
|
-
/* @__PURE__ */ (0,
|
|
12041
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
12042
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
12043
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("defs", { children: [
|
|
12044
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
12045
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
11969
12046
|
"image",
|
|
11970
12047
|
{
|
|
11971
12048
|
id: "image0_761_4353",
|
|
@@ -11979,14 +12056,14 @@ var BrokenImage = ({ ...props }) => {
|
|
|
11979
12056
|
}
|
|
11980
12057
|
);
|
|
11981
12058
|
};
|
|
11982
|
-
var ParameterImageInner = (0,
|
|
12059
|
+
var ParameterImageInner = (0, import_react77.forwardRef)(
|
|
11983
12060
|
({ ...props }, ref) => {
|
|
11984
12061
|
const { value } = props;
|
|
11985
12062
|
const { id, label, hiddenLabel, errorMessage, onManuallySetErrorMessage } = useParameterShell();
|
|
11986
|
-
const [loading, setLoading] = (0,
|
|
11987
|
-
const deferredValue = (0,
|
|
12063
|
+
const [loading, setLoading] = (0, import_react77.useState)(false);
|
|
12064
|
+
const deferredValue = (0, import_react77.useDeferredValue)(value);
|
|
11988
12065
|
const errorText = "The text you provided is not a valid URL";
|
|
11989
|
-
const updateImageSrc = (0,
|
|
12066
|
+
const updateImageSrc = (0, import_react77.useCallback)(() => {
|
|
11990
12067
|
let message = void 0;
|
|
11991
12068
|
try {
|
|
11992
12069
|
if (value !== "") {
|
|
@@ -12014,11 +12091,11 @@ var ParameterImageInner = (0, import_react75.forwardRef)(
|
|
|
12014
12091
|
onManuallySetErrorMessage(errorText);
|
|
12015
12092
|
}
|
|
12016
12093
|
};
|
|
12017
|
-
(0,
|
|
12094
|
+
(0, import_react77.useEffect)(() => {
|
|
12018
12095
|
updateImageSrc();
|
|
12019
12096
|
}, [value]);
|
|
12020
|
-
return /* @__PURE__ */ (0,
|
|
12021
|
-
/* @__PURE__ */ (0,
|
|
12097
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_jsx_runtime73.Fragment, { children: [
|
|
12098
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
12022
12099
|
"input",
|
|
12023
12100
|
{
|
|
12024
12101
|
css: input2,
|
|
@@ -12030,8 +12107,8 @@ var ParameterImageInner = (0, import_react75.forwardRef)(
|
|
|
12030
12107
|
...props
|
|
12031
12108
|
}
|
|
12032
12109
|
),
|
|
12033
|
-
/* @__PURE__ */ (0,
|
|
12034
|
-
deferredValue && !errorMessage ? /* @__PURE__ */ (0,
|
|
12110
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { css: imageWrapper, children: [
|
|
12111
|
+
deferredValue && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
12035
12112
|
"img",
|
|
12036
12113
|
{
|
|
12037
12114
|
src: deferredValue,
|
|
@@ -12041,24 +12118,24 @@ var ParameterImageInner = (0, import_react75.forwardRef)(
|
|
|
12041
12118
|
loading: "lazy"
|
|
12042
12119
|
}
|
|
12043
12120
|
) : null,
|
|
12044
|
-
deferredValue && errorMessage ? /* @__PURE__ */ (0,
|
|
12121
|
+
deferredValue && errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(BrokenImage, { css: img }) : null
|
|
12045
12122
|
] }),
|
|
12046
|
-
loading ? /* @__PURE__ */ (0,
|
|
12123
|
+
loading ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(LoadingIcon, {}) : null
|
|
12047
12124
|
] });
|
|
12048
12125
|
}
|
|
12049
12126
|
);
|
|
12050
12127
|
|
|
12051
12128
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
12052
|
-
var
|
|
12053
|
-
var
|
|
12054
|
-
var ParameterInput = (0,
|
|
12129
|
+
var import_react78 = require("react");
|
|
12130
|
+
var import_jsx_runtime74 = require("@emotion/react/jsx-runtime");
|
|
12131
|
+
var ParameterInput = (0, import_react78.forwardRef)((props, ref) => {
|
|
12055
12132
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
12056
|
-
return /* @__PURE__ */ (0,
|
|
12133
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(ParameterShell, { "data-test-id": "parameter-input", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(ParameterInputInner, { ref, ...innerProps }) });
|
|
12057
12134
|
});
|
|
12058
|
-
var ParameterInputInner = (0,
|
|
12135
|
+
var ParameterInputInner = (0, import_react78.forwardRef)(
|
|
12059
12136
|
({ ...props }, ref) => {
|
|
12060
12137
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
12061
|
-
return /* @__PURE__ */ (0,
|
|
12138
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
12062
12139
|
"input",
|
|
12063
12140
|
{
|
|
12064
12141
|
css: input2,
|
|
@@ -12074,19 +12151,19 @@ var ParameterInputInner = (0, import_react76.forwardRef)(
|
|
|
12074
12151
|
);
|
|
12075
12152
|
|
|
12076
12153
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
12077
|
-
var
|
|
12078
|
-
var
|
|
12079
|
-
var ParameterLink = (0,
|
|
12154
|
+
var import_react79 = require("react");
|
|
12155
|
+
var import_jsx_runtime75 = require("@emotion/react/jsx-runtime");
|
|
12156
|
+
var ParameterLink = (0, import_react79.forwardRef)(
|
|
12080
12157
|
({ buttonText = "Select project map node", disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
12081
12158
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
12082
|
-
return /* @__PURE__ */ (0,
|
|
12159
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
12083
12160
|
ParameterShell,
|
|
12084
12161
|
{
|
|
12085
|
-
"data-test-id": "parameter-
|
|
12162
|
+
"data-test-id": "link-parameter-editor",
|
|
12086
12163
|
...shellProps,
|
|
12087
12164
|
label: innerProps.value ? shellProps.label : "",
|
|
12088
12165
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
12089
|
-
children: !innerProps.value ? /* @__PURE__ */ (0,
|
|
12166
|
+
children: !innerProps.value ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText }) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
12090
12167
|
ParameterLinkInner,
|
|
12091
12168
|
{
|
|
12092
12169
|
onConnectLink,
|
|
@@ -12099,11 +12176,11 @@ var ParameterLink = (0, import_react77.forwardRef)(
|
|
|
12099
12176
|
);
|
|
12100
12177
|
}
|
|
12101
12178
|
);
|
|
12102
|
-
var ParameterLinkInner = (0,
|
|
12179
|
+
var ParameterLinkInner = (0, import_react79.forwardRef)(
|
|
12103
12180
|
({ externalLink, onConnectLink, disabled, ...props }, ref) => {
|
|
12104
12181
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
12105
|
-
return /* @__PURE__ */ (0,
|
|
12106
|
-
/* @__PURE__ */ (0,
|
|
12182
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { css: inputWrapper, children: [
|
|
12183
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
12107
12184
|
"input",
|
|
12108
12185
|
{
|
|
12109
12186
|
type: "text",
|
|
@@ -12115,7 +12192,7 @@ var ParameterLinkInner = (0, import_react77.forwardRef)(
|
|
|
12115
12192
|
...props
|
|
12116
12193
|
}
|
|
12117
12194
|
),
|
|
12118
|
-
/* @__PURE__ */ (0,
|
|
12195
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
12119
12196
|
"button",
|
|
12120
12197
|
{
|
|
12121
12198
|
type: "button",
|
|
@@ -12126,7 +12203,7 @@ var ParameterLinkInner = (0, import_react77.forwardRef)(
|
|
|
12126
12203
|
children: "edit"
|
|
12127
12204
|
}
|
|
12128
12205
|
),
|
|
12129
|
-
externalLink ? /* @__PURE__ */ (0,
|
|
12206
|
+
externalLink ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
12130
12207
|
"a",
|
|
12131
12208
|
{
|
|
12132
12209
|
href: externalLink,
|
|
@@ -12134,7 +12211,7 @@ var ParameterLinkInner = (0, import_react77.forwardRef)(
|
|
|
12134
12211
|
title: "Open link in new tab",
|
|
12135
12212
|
target: "_blank",
|
|
12136
12213
|
rel: "noopener noreferrer",
|
|
12137
|
-
children: /* @__PURE__ */ (0,
|
|
12214
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
12138
12215
|
}
|
|
12139
12216
|
) : null
|
|
12140
12217
|
] });
|
|
@@ -12142,7 +12219,7 @@ var ParameterLinkInner = (0, import_react77.forwardRef)(
|
|
|
12142
12219
|
);
|
|
12143
12220
|
|
|
12144
12221
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
12145
|
-
var
|
|
12222
|
+
var import_jsx_runtime76 = require("@emotion/react/jsx-runtime");
|
|
12146
12223
|
var ParameterNameAndPublicIdInput = ({
|
|
12147
12224
|
id,
|
|
12148
12225
|
onBlur,
|
|
@@ -12168,8 +12245,8 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
12168
12245
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
12169
12246
|
};
|
|
12170
12247
|
autoFocus == null ? void 0 : autoFocus();
|
|
12171
|
-
return /* @__PURE__ */ (0,
|
|
12172
|
-
/* @__PURE__ */ (0,
|
|
12248
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
|
|
12249
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
12173
12250
|
ParameterInput,
|
|
12174
12251
|
{
|
|
12175
12252
|
id: nameIdField,
|
|
@@ -12188,7 +12265,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
12188
12265
|
value: values[nameIdField]
|
|
12189
12266
|
}
|
|
12190
12267
|
),
|
|
12191
|
-
/* @__PURE__ */ (0,
|
|
12268
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
12192
12269
|
ParameterInput,
|
|
12193
12270
|
{
|
|
12194
12271
|
id: publicIdFieldName,
|
|
@@ -12202,11 +12279,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
12202
12279
|
caption: publicIdCaption,
|
|
12203
12280
|
placeholder: publicIdPlaceholderText,
|
|
12204
12281
|
errorMessage: publicIdError,
|
|
12205
|
-
menuItems: /* @__PURE__ */ (0,
|
|
12282
|
+
menuItems: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
12206
12283
|
MenuItem,
|
|
12207
12284
|
{
|
|
12208
12285
|
disabled: !values[publicIdFieldName],
|
|
12209
|
-
icon: /* @__PURE__ */ (0,
|
|
12286
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
12210
12287
|
onClick: handleCopyPidFieldValue,
|
|
12211
12288
|
children: "Copy"
|
|
12212
12289
|
}
|
|
@@ -12214,14 +12291,14 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
12214
12291
|
value: values[publicIdFieldName]
|
|
12215
12292
|
}
|
|
12216
12293
|
),
|
|
12217
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ (0,
|
|
12294
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
12218
12295
|
] });
|
|
12219
12296
|
};
|
|
12220
12297
|
|
|
12221
12298
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
12222
|
-
var
|
|
12223
|
-
var
|
|
12224
|
-
var ParameterRichText = (0,
|
|
12299
|
+
var import_react80 = require("react");
|
|
12300
|
+
var import_jsx_runtime77 = require("@emotion/react/jsx-runtime");
|
|
12301
|
+
var ParameterRichText = (0, import_react80.forwardRef)(
|
|
12225
12302
|
({
|
|
12226
12303
|
label,
|
|
12227
12304
|
labelLeadingIcon,
|
|
@@ -12234,7 +12311,7 @@ var ParameterRichText = (0, import_react78.forwardRef)(
|
|
|
12234
12311
|
menuItems,
|
|
12235
12312
|
...props
|
|
12236
12313
|
}, ref) => {
|
|
12237
|
-
return /* @__PURE__ */ (0,
|
|
12314
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
|
|
12238
12315
|
ParameterShell,
|
|
12239
12316
|
{
|
|
12240
12317
|
"data-test-id": "parameter-input",
|
|
@@ -12247,16 +12324,16 @@ var ParameterRichText = (0, import_react78.forwardRef)(
|
|
|
12247
12324
|
captionTestId,
|
|
12248
12325
|
menuItems,
|
|
12249
12326
|
children: [
|
|
12250
|
-
/* @__PURE__ */ (0,
|
|
12251
|
-
menuItems ? /* @__PURE__ */ (0,
|
|
12327
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ParameterRichTextInner, { ref, ...props }),
|
|
12328
|
+
menuItems ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_jsx_runtime77.Fragment, { children: menuItems }) }) : null
|
|
12252
12329
|
]
|
|
12253
12330
|
}
|
|
12254
12331
|
);
|
|
12255
12332
|
}
|
|
12256
12333
|
);
|
|
12257
|
-
var ParameterRichTextInner = (0,
|
|
12334
|
+
var ParameterRichTextInner = (0, import_react80.forwardRef)(({ ...props }, ref) => {
|
|
12258
12335
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
12259
|
-
return /* @__PURE__ */ (0,
|
|
12336
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
12260
12337
|
"textarea",
|
|
12261
12338
|
{
|
|
12262
12339
|
css: [input2, textarea2],
|
|
@@ -12269,18 +12346,18 @@ var ParameterRichTextInner = (0, import_react78.forwardRef)(({ ...props }, ref)
|
|
|
12269
12346
|
});
|
|
12270
12347
|
|
|
12271
12348
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
12272
|
-
var
|
|
12273
|
-
var
|
|
12274
|
-
var ParameterSelect = (0,
|
|
12349
|
+
var import_react81 = require("react");
|
|
12350
|
+
var import_jsx_runtime78 = require("@emotion/react/jsx-runtime");
|
|
12351
|
+
var ParameterSelect = (0, import_react81.forwardRef)(
|
|
12275
12352
|
({ defaultOption, options, ...props }, ref) => {
|
|
12276
12353
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
12277
|
-
return /* @__PURE__ */ (0,
|
|
12354
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
12278
12355
|
}
|
|
12279
12356
|
);
|
|
12280
|
-
var ParameterSelectInner = (0,
|
|
12357
|
+
var ParameterSelectInner = (0, import_react81.forwardRef)(
|
|
12281
12358
|
({ defaultOption, options, ...props }, ref) => {
|
|
12282
12359
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
12283
|
-
return /* @__PURE__ */ (0,
|
|
12360
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
12284
12361
|
"select",
|
|
12285
12362
|
{
|
|
12286
12363
|
css: [input2, selectInput],
|
|
@@ -12289,10 +12366,10 @@ var ParameterSelectInner = (0, import_react79.forwardRef)(
|
|
|
12289
12366
|
ref,
|
|
12290
12367
|
...props,
|
|
12291
12368
|
children: [
|
|
12292
|
-
defaultOption ? /* @__PURE__ */ (0,
|
|
12369
|
+
defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("option", { value: "", children: defaultOption }) : null,
|
|
12293
12370
|
options.map((option) => {
|
|
12294
12371
|
var _a;
|
|
12295
|
-
return /* @__PURE__ */ (0,
|
|
12372
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
12296
12373
|
})
|
|
12297
12374
|
]
|
|
12298
12375
|
}
|
|
@@ -12301,15 +12378,15 @@ var ParameterSelectInner = (0, import_react79.forwardRef)(
|
|
|
12301
12378
|
);
|
|
12302
12379
|
|
|
12303
12380
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
12304
|
-
var
|
|
12305
|
-
var
|
|
12306
|
-
var ParameterTextarea = (0,
|
|
12381
|
+
var import_react82 = require("react");
|
|
12382
|
+
var import_jsx_runtime79 = require("@emotion/react/jsx-runtime");
|
|
12383
|
+
var ParameterTextarea = (0, import_react82.forwardRef)((props, ref) => {
|
|
12307
12384
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
12308
|
-
return /* @__PURE__ */ (0,
|
|
12385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ParameterShell, { "data-test-id": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
12309
12386
|
});
|
|
12310
|
-
var ParameterTextareaInner = (0,
|
|
12387
|
+
var ParameterTextareaInner = (0, import_react82.forwardRef)(({ ...props }, ref) => {
|
|
12311
12388
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
12312
|
-
return /* @__PURE__ */ (0,
|
|
12389
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
12313
12390
|
"textarea",
|
|
12314
12391
|
{
|
|
12315
12392
|
css: [input2, textarea2],
|
|
@@ -12322,18 +12399,18 @@ var ParameterTextareaInner = (0, import_react80.forwardRef)(({ ...props }, ref)
|
|
|
12322
12399
|
});
|
|
12323
12400
|
|
|
12324
12401
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
12325
|
-
var
|
|
12326
|
-
var
|
|
12327
|
-
var ParameterToggle = (0,
|
|
12402
|
+
var import_react83 = require("react");
|
|
12403
|
+
var import_jsx_runtime80 = require("@emotion/react/jsx-runtime");
|
|
12404
|
+
var ParameterToggle = (0, import_react83.forwardRef)((props, ref) => {
|
|
12328
12405
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
12329
|
-
return /* @__PURE__ */ (0,
|
|
12406
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ParameterToggleInner, { ref, ...innerProps }) });
|
|
12330
12407
|
});
|
|
12331
|
-
var ParameterToggleInner = (0,
|
|
12408
|
+
var ParameterToggleInner = (0, import_react83.forwardRef)(
|
|
12332
12409
|
({ ...props }, ref) => {
|
|
12333
12410
|
const { id, label } = useParameterShell();
|
|
12334
|
-
return /* @__PURE__ */ (0,
|
|
12335
|
-
/* @__PURE__ */ (0,
|
|
12336
|
-
/* @__PURE__ */ (0,
|
|
12411
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("label", { css: inputToggleLabel2, children: [
|
|
12412
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
12413
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { css: inlineLabel2, children: label })
|
|
12337
12414
|
] });
|
|
12338
12415
|
}
|
|
12339
12416
|
);
|
|
@@ -12343,13 +12420,13 @@ var import_Popover = require("reakit/Popover");
|
|
|
12343
12420
|
var import_Portal2 = require("reakit/Portal");
|
|
12344
12421
|
|
|
12345
12422
|
// src/components/Popover/Popover.styles.ts
|
|
12346
|
-
var
|
|
12347
|
-
var PopoverBtn =
|
|
12423
|
+
var import_react84 = require("@emotion/react");
|
|
12424
|
+
var PopoverBtn = import_react84.css`
|
|
12348
12425
|
border: none;
|
|
12349
12426
|
background: none;
|
|
12350
12427
|
padding: 0;
|
|
12351
12428
|
`;
|
|
12352
|
-
var Popover =
|
|
12429
|
+
var Popover = import_react84.css`
|
|
12353
12430
|
border-left: var(--spacing-xs) solid var(--brand-secondary-3);
|
|
12354
12431
|
border-radius: var(--rounded-base);
|
|
12355
12432
|
box-shadow: var(--shadow-base);
|
|
@@ -12362,7 +12439,7 @@ var Popover = import_react82.css`
|
|
|
12362
12439
|
`;
|
|
12363
12440
|
|
|
12364
12441
|
// src/components/Popover/Popover.tsx
|
|
12365
|
-
var
|
|
12442
|
+
var import_jsx_runtime81 = require("@emotion/react/jsx-runtime");
|
|
12366
12443
|
var Popover2 = ({
|
|
12367
12444
|
iconColor = "green",
|
|
12368
12445
|
buttonText,
|
|
@@ -12371,28 +12448,28 @@ var Popover2 = ({
|
|
|
12371
12448
|
children
|
|
12372
12449
|
}) => {
|
|
12373
12450
|
const popover = (0, import_Popover.usePopoverState)({ placement });
|
|
12374
|
-
return /* @__PURE__ */ (0,
|
|
12375
|
-
/* @__PURE__ */ (0,
|
|
12376
|
-
/* @__PURE__ */ (0,
|
|
12377
|
-
/* @__PURE__ */ (0,
|
|
12451
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
|
|
12452
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_Popover.PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, children: [
|
|
12453
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon, { icon: "info", iconColor, size: "1rem" }),
|
|
12454
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { hidden: true, children: buttonText })
|
|
12378
12455
|
] }),
|
|
12379
|
-
/* @__PURE__ */ (0,
|
|
12456
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_Portal2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_Popover.Popover, { css: Popover, ...popover, "aria-label": ariaLabel, children }) })
|
|
12380
12457
|
] });
|
|
12381
12458
|
};
|
|
12382
12459
|
|
|
12383
12460
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
12384
|
-
var
|
|
12385
|
-
var lightFadingOut =
|
|
12461
|
+
var import_react85 = require("@emotion/react");
|
|
12462
|
+
var lightFadingOut = import_react85.keyframes`
|
|
12386
12463
|
from { opacity: 0.1; }
|
|
12387
12464
|
to { opacity: 0.025; }
|
|
12388
12465
|
`;
|
|
12389
|
-
var skeletonStyles =
|
|
12466
|
+
var skeletonStyles = import_react85.css`
|
|
12390
12467
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
12391
12468
|
background-color: var(--gray-900);
|
|
12392
12469
|
`;
|
|
12393
12470
|
|
|
12394
12471
|
// src/components/Skeleton/Skeleton.tsx
|
|
12395
|
-
var
|
|
12472
|
+
var import_jsx_runtime82 = require("@emotion/react/jsx-runtime");
|
|
12396
12473
|
var Skeleton = ({
|
|
12397
12474
|
width = "100%",
|
|
12398
12475
|
height = "1.25rem",
|
|
@@ -12400,7 +12477,7 @@ var Skeleton = ({
|
|
|
12400
12477
|
circle = false,
|
|
12401
12478
|
children,
|
|
12402
12479
|
...otherProps
|
|
12403
|
-
}) => /* @__PURE__ */ (0,
|
|
12480
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
12404
12481
|
"div",
|
|
12405
12482
|
{
|
|
12406
12483
|
css: [
|
|
@@ -12423,8 +12500,8 @@ var Skeleton = ({
|
|
|
12423
12500
|
var React15 = __toESM(require("react"));
|
|
12424
12501
|
|
|
12425
12502
|
// src/components/Switch/Switch.styles.ts
|
|
12426
|
-
var
|
|
12427
|
-
var SwitchInputContainer =
|
|
12503
|
+
var import_react86 = require("@emotion/react");
|
|
12504
|
+
var SwitchInputContainer = import_react86.css`
|
|
12428
12505
|
cursor: pointer;
|
|
12429
12506
|
display: inline-block;
|
|
12430
12507
|
position: relative;
|
|
@@ -12433,7 +12510,7 @@ var SwitchInputContainer = import_react84.css`
|
|
|
12433
12510
|
vertical-align: middle;
|
|
12434
12511
|
user-select: none;
|
|
12435
12512
|
`;
|
|
12436
|
-
var SwitchInput =
|
|
12513
|
+
var SwitchInput = import_react86.css`
|
|
12437
12514
|
appearance: none;
|
|
12438
12515
|
border-radius: var(--rounded-full);
|
|
12439
12516
|
background-color: var(--white);
|
|
@@ -12471,7 +12548,7 @@ var SwitchInput = import_react84.css`
|
|
|
12471
12548
|
cursor: not-allowed;
|
|
12472
12549
|
}
|
|
12473
12550
|
`;
|
|
12474
|
-
var SwitchInputDisabled =
|
|
12551
|
+
var SwitchInputDisabled = import_react86.css`
|
|
12475
12552
|
opacity: var(--opacity-50);
|
|
12476
12553
|
cursor: not-allowed;
|
|
12477
12554
|
|
|
@@ -12479,7 +12556,7 @@ var SwitchInputDisabled = import_react84.css`
|
|
|
12479
12556
|
cursor: not-allowed;
|
|
12480
12557
|
}
|
|
12481
12558
|
`;
|
|
12482
|
-
var SwitchInputLabel =
|
|
12559
|
+
var SwitchInputLabel = import_react86.css`
|
|
12483
12560
|
align-items: center;
|
|
12484
12561
|
color: var(--brand-secondary-1);
|
|
12485
12562
|
display: inline-flex;
|
|
@@ -12501,26 +12578,26 @@ var SwitchInputLabel = import_react84.css`
|
|
|
12501
12578
|
top: 0;
|
|
12502
12579
|
}
|
|
12503
12580
|
`;
|
|
12504
|
-
var SwitchText =
|
|
12581
|
+
var SwitchText = import_react86.css`
|
|
12505
12582
|
color: var(--gray-500);
|
|
12506
12583
|
font-size: var(--fs-sm);
|
|
12507
12584
|
padding-inline: var(--spacing-2xl) 0;
|
|
12508
12585
|
`;
|
|
12509
12586
|
|
|
12510
12587
|
// src/components/Switch/Switch.tsx
|
|
12511
|
-
var
|
|
12588
|
+
var import_jsx_runtime83 = require("@emotion/react/jsx-runtime");
|
|
12512
12589
|
var Switch = React15.forwardRef(
|
|
12513
12590
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
12514
12591
|
let additionalText = infoText;
|
|
12515
12592
|
if (infoText && toggleText) {
|
|
12516
12593
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
12517
12594
|
}
|
|
12518
|
-
return /* @__PURE__ */ (0,
|
|
12519
|
-
/* @__PURE__ */ (0,
|
|
12520
|
-
/* @__PURE__ */ (0,
|
|
12521
|
-
/* @__PURE__ */ (0,
|
|
12595
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
|
|
12596
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
12597
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
12598
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { css: SwitchInputLabel, children: label })
|
|
12522
12599
|
] }),
|
|
12523
|
-
additionalText ? /* @__PURE__ */ (0,
|
|
12600
|
+
additionalText ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { css: SwitchText, children: additionalText }) : null,
|
|
12524
12601
|
children
|
|
12525
12602
|
] });
|
|
12526
12603
|
}
|
|
@@ -12530,74 +12607,74 @@ var Switch = React15.forwardRef(
|
|
|
12530
12607
|
var React16 = __toESM(require("react"));
|
|
12531
12608
|
|
|
12532
12609
|
// src/components/Table/Table.styles.ts
|
|
12533
|
-
var
|
|
12534
|
-
var table =
|
|
12610
|
+
var import_react87 = require("@emotion/react");
|
|
12611
|
+
var table = import_react87.css`
|
|
12535
12612
|
border-bottom: 1px solid var(--gray-400);
|
|
12536
12613
|
border-collapse: collapse;
|
|
12537
12614
|
min-width: 100%;
|
|
12538
12615
|
table-layout: auto;
|
|
12539
12616
|
`;
|
|
12540
|
-
var tableHead =
|
|
12617
|
+
var tableHead = import_react87.css`
|
|
12541
12618
|
background: var(--gray-100);
|
|
12542
12619
|
color: var(--brand-secondary-1);
|
|
12543
12620
|
text-align: left;
|
|
12544
12621
|
`;
|
|
12545
|
-
var tableRow =
|
|
12622
|
+
var tableRow = import_react87.css`
|
|
12546
12623
|
border-bottom: 1px solid var(--gray-200);
|
|
12547
12624
|
`;
|
|
12548
|
-
var tableCellHead =
|
|
12625
|
+
var tableCellHead = import_react87.css`
|
|
12549
12626
|
font-size: var(--fs-sm);
|
|
12550
12627
|
padding: var(--spacing-base) var(--spacing-md);
|
|
12551
12628
|
text-transform: uppercase;
|
|
12552
12629
|
font-weight: var(--fw-bold);
|
|
12553
12630
|
`;
|
|
12554
|
-
var tableCellData =
|
|
12631
|
+
var tableCellData = import_react87.css`
|
|
12555
12632
|
padding: var(--spacing-base) var(--spacing-md);
|
|
12556
12633
|
`;
|
|
12557
12634
|
|
|
12558
12635
|
// src/components/Table/Table.tsx
|
|
12559
|
-
var
|
|
12636
|
+
var import_jsx_runtime84 = require("@emotion/react/jsx-runtime");
|
|
12560
12637
|
var Table = React16.forwardRef(({ children, ...otherProps }, ref) => {
|
|
12561
|
-
return /* @__PURE__ */ (0,
|
|
12638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("table", { ref, css: table, ...otherProps, children });
|
|
12562
12639
|
});
|
|
12563
12640
|
var TableHead = React16.forwardRef(
|
|
12564
12641
|
({ children, ...otherProps }, ref) => {
|
|
12565
|
-
return /* @__PURE__ */ (0,
|
|
12642
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
|
|
12566
12643
|
}
|
|
12567
12644
|
);
|
|
12568
12645
|
var TableBody = React16.forwardRef(
|
|
12569
12646
|
({ children, ...otherProps }, ref) => {
|
|
12570
|
-
return /* @__PURE__ */ (0,
|
|
12647
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("tbody", { ref, ...otherProps, children });
|
|
12571
12648
|
}
|
|
12572
12649
|
);
|
|
12573
12650
|
var TableFoot = React16.forwardRef(
|
|
12574
12651
|
({ children, ...otherProps }, ref) => {
|
|
12575
|
-
return /* @__PURE__ */ (0,
|
|
12652
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("tfoot", { ref, ...otherProps, children });
|
|
12576
12653
|
}
|
|
12577
12654
|
);
|
|
12578
12655
|
var TableRow = React16.forwardRef(
|
|
12579
12656
|
({ children, ...otherProps }, ref) => {
|
|
12580
|
-
return /* @__PURE__ */ (0,
|
|
12657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
|
|
12581
12658
|
}
|
|
12582
12659
|
);
|
|
12583
12660
|
var TableCellHead = React16.forwardRef(
|
|
12584
12661
|
({ children, ...otherProps }, ref) => {
|
|
12585
|
-
return /* @__PURE__ */ (0,
|
|
12662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
12586
12663
|
}
|
|
12587
12664
|
);
|
|
12588
12665
|
var TableCellData = React16.forwardRef(
|
|
12589
12666
|
({ children, ...otherProps }, ref) => {
|
|
12590
|
-
return /* @__PURE__ */ (0,
|
|
12667
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("td", { ref, css: tableCellData, ...otherProps, children });
|
|
12591
12668
|
}
|
|
12592
12669
|
);
|
|
12593
12670
|
|
|
12594
12671
|
// src/components/Tabs/Tabs.tsx
|
|
12595
|
-
var
|
|
12672
|
+
var import_react89 = require("react");
|
|
12596
12673
|
var import_Tab = require("reakit/Tab");
|
|
12597
12674
|
|
|
12598
12675
|
// src/components/Tabs/Tabs.styles.ts
|
|
12599
|
-
var
|
|
12600
|
-
var tabButtonStyles =
|
|
12676
|
+
var import_react88 = require("@emotion/react");
|
|
12677
|
+
var tabButtonStyles = import_react88.css`
|
|
12601
12678
|
align-items: center;
|
|
12602
12679
|
border: 0;
|
|
12603
12680
|
height: 2.5rem;
|
|
@@ -12614,30 +12691,30 @@ var tabButtonStyles = import_react86.css`
|
|
|
12614
12691
|
-webkit-text-stroke-width: thin;
|
|
12615
12692
|
}
|
|
12616
12693
|
`;
|
|
12617
|
-
var tabButtonGroupStyles =
|
|
12694
|
+
var tabButtonGroupStyles = import_react88.css`
|
|
12618
12695
|
display: flex;
|
|
12619
12696
|
gap: var(--spacing-base);
|
|
12620
12697
|
border-bottom: 1px solid var(--gray-300);
|
|
12621
12698
|
`;
|
|
12622
12699
|
|
|
12623
12700
|
// src/components/Tabs/Tabs.tsx
|
|
12624
|
-
var
|
|
12625
|
-
var CurrentTabContext = (0,
|
|
12701
|
+
var import_jsx_runtime85 = require("@emotion/react/jsx-runtime");
|
|
12702
|
+
var CurrentTabContext = (0, import_react89.createContext)(null);
|
|
12626
12703
|
var useCurrentTab = () => {
|
|
12627
|
-
const context = (0,
|
|
12704
|
+
const context = (0, import_react89.useContext)(CurrentTabContext);
|
|
12628
12705
|
if (!context) {
|
|
12629
12706
|
throw new Error("This component can only be used inside <Tabs>");
|
|
12630
12707
|
}
|
|
12631
12708
|
return context;
|
|
12632
12709
|
};
|
|
12633
12710
|
var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...props }) => {
|
|
12634
|
-
const selected = (0,
|
|
12711
|
+
const selected = (0, import_react89.useMemo)(() => {
|
|
12635
12712
|
if (selectedId)
|
|
12636
12713
|
return selectedId;
|
|
12637
12714
|
return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
|
|
12638
12715
|
}, [selectedId, useHashForState]);
|
|
12639
12716
|
const tab = (0, import_Tab.useTabState)({ ...props, selectedId: selected });
|
|
12640
|
-
(0,
|
|
12717
|
+
(0, import_react89.useEffect)(() => {
|
|
12641
12718
|
var _a;
|
|
12642
12719
|
const selectedValueWithoutNull = (_a = tab.selectedId) != null ? _a : void 0;
|
|
12643
12720
|
onSelectedIdChange == null ? void 0 : onSelectedIdChange(selectedValueWithoutNull);
|
|
@@ -12645,34 +12722,33 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
12645
12722
|
window.location.hash = selectedValueWithoutNull != null ? selectedValueWithoutNull : "";
|
|
12646
12723
|
}
|
|
12647
12724
|
}, [tab.selectedId, onSelectedIdChange, useHashForState]);
|
|
12648
|
-
(0,
|
|
12725
|
+
(0, import_react89.useEffect)(() => {
|
|
12649
12726
|
if (selected && selected !== tab.selectedId) {
|
|
12650
12727
|
tab.setSelectedId(selected);
|
|
12651
12728
|
}
|
|
12652
12729
|
}, [selected]);
|
|
12653
|
-
return /* @__PURE__ */ (0,
|
|
12730
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(CurrentTabContext.Provider, { value: tab, children });
|
|
12654
12731
|
};
|
|
12655
12732
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
12656
12733
|
const currentTab = useCurrentTab();
|
|
12657
|
-
return /* @__PURE__ */ (0,
|
|
12734
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_Tab.TabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
12658
12735
|
};
|
|
12659
12736
|
var TabButton = ({ children, id, ...props }) => {
|
|
12660
12737
|
const currentTab = useCurrentTab();
|
|
12661
|
-
return /* @__PURE__ */ (0,
|
|
12738
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_Tab.Tab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
12662
12739
|
};
|
|
12663
12740
|
var TabContent = ({ children, ...props }) => {
|
|
12664
12741
|
const currentTab = useCurrentTab();
|
|
12665
|
-
return /* @__PURE__ */ (0,
|
|
12742
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_Tab.TabPanel, { ...props, ...currentTab, children });
|
|
12666
12743
|
};
|
|
12667
12744
|
|
|
12668
12745
|
// src/components/Validation/StatusBullet.styles.ts
|
|
12669
|
-
var
|
|
12670
|
-
var StatusBulletContainer =
|
|
12746
|
+
var import_react90 = require("@emotion/react");
|
|
12747
|
+
var StatusBulletContainer = import_react90.css`
|
|
12671
12748
|
align-items: center;
|
|
12672
12749
|
align-self: center;
|
|
12673
12750
|
color: var(--gray-500);
|
|
12674
12751
|
display: inline-flex;
|
|
12675
|
-
font-size: var(--fs-sm);
|
|
12676
12752
|
font-weight: var(--fw-regular);
|
|
12677
12753
|
gap: var(--spacing-xs);
|
|
12678
12754
|
line-height: 1;
|
|
@@ -12683,52 +12759,60 @@ var StatusBulletContainer = import_react88.css`
|
|
|
12683
12759
|
border-radius: var(--rounded-full);
|
|
12684
12760
|
content: '';
|
|
12685
12761
|
display: block;
|
|
12762
|
+
}
|
|
12763
|
+
`;
|
|
12764
|
+
var StatusBulletBase = import_react90.css`
|
|
12765
|
+
font-size: var(--fs-sm);
|
|
12766
|
+
&:before {
|
|
12686
12767
|
width: var(--fs-xs);
|
|
12687
12768
|
height: var(--fs-xs);
|
|
12688
12769
|
}
|
|
12689
12770
|
`;
|
|
12690
|
-
var
|
|
12771
|
+
var StatusBulletSmall = import_react90.css`
|
|
12772
|
+
font-size: var(--fs-xs);
|
|
12773
|
+
&:before {
|
|
12774
|
+
width: var(--fs-xxs);
|
|
12775
|
+
height: var(--fs-xxs);
|
|
12776
|
+
}
|
|
12777
|
+
`;
|
|
12778
|
+
var StatusDraft = import_react90.css`
|
|
12691
12779
|
&:before {
|
|
12692
12780
|
background: var(--white);
|
|
12693
12781
|
box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
|
|
12694
12782
|
}
|
|
12695
12783
|
`;
|
|
12696
|
-
var StatusModified =
|
|
12784
|
+
var StatusModified = import_react90.css`
|
|
12697
12785
|
&:before {
|
|
12698
12786
|
background: linear-gradient(to right, var(--white) 50%, var(--brand-primary-1) 50% 100%);
|
|
12699
12787
|
box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
|
|
12700
12788
|
}
|
|
12701
12789
|
`;
|
|
12702
|
-
var StatusError =
|
|
12790
|
+
var StatusError = import_react90.css`
|
|
12703
12791
|
color: var(--error);
|
|
12704
12792
|
&:before {
|
|
12705
|
-
background: var(--error);
|
|
12706
|
-
}
|
|
12707
|
-
&:after {
|
|
12708
|
-
background: var(--white);
|
|
12709
|
-
content: '';
|
|
12710
|
-
display: block;
|
|
12711
|
-
width: var(--fs-xxs);
|
|
12712
|
-
height: 0.12rem;
|
|
12713
|
-
width: 100%;
|
|
12714
|
-
position: absolute;
|
|
12715
|
-
rotate: -45deg;
|
|
12793
|
+
background: linear-gradient(120deg, var(--error) 40%, var(--white) 50%, var(--error) 60%);
|
|
12716
12794
|
}
|
|
12717
12795
|
`;
|
|
12718
|
-
var StatusPublished =
|
|
12796
|
+
var StatusPublished = import_react90.css`
|
|
12719
12797
|
&:before {
|
|
12720
12798
|
background: var(--brand-secondary-3);
|
|
12721
12799
|
}
|
|
12722
12800
|
`;
|
|
12723
|
-
var StatusOrphan =
|
|
12801
|
+
var StatusOrphan = import_react90.css`
|
|
12724
12802
|
&:before {
|
|
12725
12803
|
background: var(--brand-secondary-5);
|
|
12726
12804
|
}
|
|
12727
12805
|
`;
|
|
12728
12806
|
|
|
12729
12807
|
// src/components/Validation/StatusBullet.tsx
|
|
12730
|
-
var
|
|
12731
|
-
var StatusBullet = ({
|
|
12808
|
+
var import_jsx_runtime86 = require("@emotion/react/jsx-runtime");
|
|
12809
|
+
var StatusBullet = ({
|
|
12810
|
+
status,
|
|
12811
|
+
hideText = false,
|
|
12812
|
+
size = "base",
|
|
12813
|
+
message,
|
|
12814
|
+
...props
|
|
12815
|
+
}) => {
|
|
12732
12816
|
const currentStateStyles = {
|
|
12733
12817
|
Error: StatusError,
|
|
12734
12818
|
Modified: StatusModified,
|
|
@@ -12737,10 +12821,12 @@ var StatusBullet = ({ status, hideText = false, message, ...props }) => {
|
|
|
12737
12821
|
Published: StatusPublished,
|
|
12738
12822
|
Draft: StatusDraft
|
|
12739
12823
|
};
|
|
12740
|
-
|
|
12824
|
+
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
12825
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
12741
12826
|
"span",
|
|
12742
12827
|
{
|
|
12743
|
-
|
|
12828
|
+
role: "status",
|
|
12829
|
+
css: [StatusBulletContainer, currentStateStyles[status], statusSize],
|
|
12744
12830
|
title: message != null ? message : status,
|
|
12745
12831
|
...props,
|
|
12746
12832
|
children: hideText ? null : message ? message : status
|
|
@@ -12761,6 +12847,7 @@ var StatusBullet = ({ status, hideText = false, message, ...props }) => {
|
|
|
12761
12847
|
CardContainer,
|
|
12762
12848
|
CheckboxWithInfo,
|
|
12763
12849
|
ConnectToDataElementButton,
|
|
12850
|
+
Container,
|
|
12764
12851
|
Counter,
|
|
12765
12852
|
CreateTeamIntegrationTile,
|
|
12766
12853
|
DashedBox,
|
|
@@ -12855,6 +12942,7 @@ var StatusBullet = ({ status, hideText = false, message, ...props }) => {
|
|
|
12855
12942
|
Tooltip,
|
|
12856
12943
|
UniformBadge,
|
|
12857
12944
|
UniformLogo,
|
|
12945
|
+
VerticalRhythm,
|
|
12858
12946
|
WarningMessage,
|
|
12859
12947
|
breakpoints,
|
|
12860
12948
|
button,
|
|
@@ -12886,6 +12974,7 @@ var StatusBullet = ({ status, hideText = false, message, ...props }) => {
|
|
|
12886
12974
|
skeletonLoading,
|
|
12887
12975
|
supports,
|
|
12888
12976
|
useBreakpoint,
|
|
12977
|
+
useCloseCurrentDrawer,
|
|
12889
12978
|
useCurrentDrawerRenderer,
|
|
12890
12979
|
useCurrentTab,
|
|
12891
12980
|
useDrawer,
|