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