@uniformdev/design-system 18.24.1-alpha.2 → 18.25.1-alpha.16
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 +461 -417
- package/dist/index.d.ts +28 -3
- package/dist/index.js +498 -452
- package/package.json +6 -3
package/dist/esm/index.js
CHANGED
|
@@ -306,6 +306,20 @@ var buttonSecondaryInvert = css`
|
|
|
306
306
|
|
|
307
307
|
${buttonRippleEffect({ hoverColor: "var(--gray-50)" })}
|
|
308
308
|
`;
|
|
309
|
+
var buttonPrimaryInvert = css`
|
|
310
|
+
background: var(--white);
|
|
311
|
+
color: var(--brand-secondary-1);
|
|
312
|
+
box-shadow: 0 0 0 1px var(--brand-secondary-1);
|
|
313
|
+
transition: box-shadow var(--duration-fast) var(--timing-ease-out);
|
|
314
|
+
gap: var(--spacing-sm);
|
|
315
|
+
|
|
316
|
+
&:disabled {
|
|
317
|
+
color: var(--gray-300);
|
|
318
|
+
box-shadow: 0 0 0 1px var(--gray-300);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
${buttonRippleEffect({ hoverColor: "var(--gray-50)" })}
|
|
322
|
+
`;
|
|
309
323
|
var buttonUnimportant = css`
|
|
310
324
|
background: var(--brand-secondary-2);
|
|
311
325
|
color: var(--brand-secondary-1);
|
|
@@ -424,15 +438,11 @@ var inputSelect = css2`
|
|
|
424
438
|
background-size: 1rem;
|
|
425
439
|
padding-right: var(--spacing-xl);
|
|
426
440
|
`;
|
|
427
|
-
var
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
var inputSearchCloseIcon = css2`
|
|
433
|
-
color: var(--brand-primary-2);
|
|
434
|
-
height: 1.5rem;
|
|
435
|
-
width: 1.5rem;
|
|
441
|
+
var inputSearchCloseBtn = css2`
|
|
442
|
+
background: none;
|
|
443
|
+
border: none;
|
|
444
|
+
padding: 0;
|
|
445
|
+
pointer-events: all;
|
|
436
446
|
`;
|
|
437
447
|
var inputToggleLabel = css2`
|
|
438
448
|
align-items: flex-start;
|
|
@@ -8275,6 +8285,7 @@ var Button = React5.forwardRef(
|
|
|
8275
8285
|
({ buttonType = "primary", size = "md", children, ...props }, ref) => {
|
|
8276
8286
|
const buttonTheme = {
|
|
8277
8287
|
primary: buttonPrimary,
|
|
8288
|
+
primaryInvert: buttonPrimaryInvert,
|
|
8278
8289
|
secondary: buttonSecondary,
|
|
8279
8290
|
secondaryInvert: buttonSecondaryInvert,
|
|
8280
8291
|
ghost: buttonGhost,
|
|
@@ -10004,7 +10015,7 @@ var InputInlineSelect = ({
|
|
|
10004
10015
|
};
|
|
10005
10016
|
|
|
10006
10017
|
// src/components/Input/InputKeywordSearch.tsx
|
|
10007
|
-
import { jsx as jsx42
|
|
10018
|
+
import { jsx as jsx42 } from "@emotion/react/jsx-runtime";
|
|
10008
10019
|
var InputKeywordSearch = ({
|
|
10009
10020
|
onSearchTextChanged,
|
|
10010
10021
|
disabled = false,
|
|
@@ -10031,24 +10042,7 @@ var InputKeywordSearch = ({
|
|
|
10031
10042
|
placeholder,
|
|
10032
10043
|
showLabel: false,
|
|
10033
10044
|
value,
|
|
10034
|
-
icon: value ? /* @__PURE__ */ jsx42("button", {
|
|
10035
|
-
"svg",
|
|
10036
|
-
{
|
|
10037
|
-
width: "26",
|
|
10038
|
-
height: "24",
|
|
10039
|
-
viewBox: "0 0 26 24",
|
|
10040
|
-
fill: "currentColor",
|
|
10041
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10042
|
-
css: inputSearchIcon,
|
|
10043
|
-
children: [
|
|
10044
|
-
/* @__PURE__ */ jsxs25("g", { clipPath: "url(#clip0)", children: [
|
|
10045
|
-
/* @__PURE__ */ jsx42("path", { d: "M11.539 0C5.48429 0 0.558105 4.74145 0.558105 10.5691C0.558105 16.3971 5.48429 21.1382 11.539 21.1382C17.594 21.1382 22.5199 16.3971 22.5199 10.5691C22.5199 4.74145 17.594 0 11.539 0ZM11.539 19.187C6.60198 19.187 2.58535 15.321 2.58535 10.5691C2.58535 5.81728 6.60198 1.95122 11.539 1.95122C16.476 1.95122 20.4926 5.81723 20.4926 10.5691C20.4926 15.321 16.476 19.187 11.539 19.187Z" }),
|
|
10046
|
-
/* @__PURE__ */ jsx42("path", { d: "M25.196 22.3344L19.3846 16.7409C18.9886 16.3598 18.3473 16.3598 17.9513 16.7409C17.5553 17.1217 17.5553 17.7397 17.9513 18.1205L23.7627 23.714C23.9607 23.9045 24.2199 23.9998 24.4794 23.9998C24.7385 23.9998 24.998 23.9045 25.196 23.714C25.592 23.3332 25.592 22.7153 25.196 22.3344Z" })
|
|
10047
|
-
] }),
|
|
10048
|
-
/* @__PURE__ */ jsx42("defs", { children: /* @__PURE__ */ jsx42("clipPath", { id: "clip0", children: /* @__PURE__ */ jsx42("rect", { width: "24.9351", height: "24", fill: "white", transform: "translate(0.558105)" }) }) })
|
|
10049
|
-
]
|
|
10050
|
-
}
|
|
10051
|
-
),
|
|
10045
|
+
icon: value ? /* @__PURE__ */ jsx42("button", { css: inputSearchCloseBtn, onClick: onClear, children: /* @__PURE__ */ jsx42(Icon, { icon: "close", iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ jsx42(Icon, { icon: "search", iconColor: "gray", size: "1rem" }),
|
|
10052
10046
|
onChange: handleSearchTextChanged,
|
|
10053
10047
|
onKeyPress: preventSubmitOnField,
|
|
10054
10048
|
disabled,
|
|
@@ -10059,7 +10053,7 @@ var InputKeywordSearch = ({
|
|
|
10059
10053
|
};
|
|
10060
10054
|
|
|
10061
10055
|
// src/components/Input/InputSelect.tsx
|
|
10062
|
-
import { Fragment as Fragment5, jsx as jsx43, jsxs as
|
|
10056
|
+
import { Fragment as Fragment5, jsx as jsx43, jsxs as jsxs25 } from "@emotion/react/jsx-runtime";
|
|
10063
10057
|
var InputSelect = ({
|
|
10064
10058
|
label,
|
|
10065
10059
|
defaultOption,
|
|
@@ -10075,13 +10069,13 @@ var InputSelect = ({
|
|
|
10075
10069
|
classNameLabel,
|
|
10076
10070
|
...props
|
|
10077
10071
|
}) => {
|
|
10078
|
-
return /* @__PURE__ */
|
|
10072
|
+
return /* @__PURE__ */ jsxs25(
|
|
10079
10073
|
"div",
|
|
10080
10074
|
{
|
|
10081
10075
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
10082
10076
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
10083
10077
|
children: [
|
|
10084
|
-
showLabel ? /* @__PURE__ */ jsx43(Fragment5, { children: /* @__PURE__ */
|
|
10078
|
+
showLabel ? /* @__PURE__ */ jsx43(Fragment5, { children: /* @__PURE__ */ jsxs25(
|
|
10085
10079
|
Label,
|
|
10086
10080
|
{
|
|
10087
10081
|
htmlFor: props.id,
|
|
@@ -10093,7 +10087,7 @@ var InputSelect = ({
|
|
|
10093
10087
|
]
|
|
10094
10088
|
}
|
|
10095
10089
|
) }) : null,
|
|
10096
|
-
/* @__PURE__ */
|
|
10090
|
+
/* @__PURE__ */ jsxs25(
|
|
10097
10091
|
"select",
|
|
10098
10092
|
{
|
|
10099
10093
|
title: label,
|
|
@@ -10122,7 +10116,7 @@ var InputSelect = ({
|
|
|
10122
10116
|
};
|
|
10123
10117
|
|
|
10124
10118
|
// src/components/Input/InputToggle.tsx
|
|
10125
|
-
import { jsx as jsx44, jsxs as
|
|
10119
|
+
import { jsx as jsx44, jsxs as jsxs26 } from "@emotion/react/jsx-runtime";
|
|
10126
10120
|
var InputToggle = ({
|
|
10127
10121
|
label,
|
|
10128
10122
|
type,
|
|
@@ -10136,10 +10130,10 @@ var InputToggle = ({
|
|
|
10136
10130
|
fontWeight = "medium",
|
|
10137
10131
|
...props
|
|
10138
10132
|
}) => {
|
|
10139
|
-
return /* @__PURE__ */
|
|
10133
|
+
return /* @__PURE__ */ jsxs26(Label, { css: [inputToggleLabel, disabled ? inputDisabled : void 0], "data-test-id": testId, children: [
|
|
10140
10134
|
/* @__PURE__ */ jsx44("input", { type, css: toggleInput, checked, name, disabled, ...props }),
|
|
10141
10135
|
/* @__PURE__ */ jsx44("span", { css: inlineLabel(fontWeight), dangerouslySetInnerHTML: { __html: label } }),
|
|
10142
|
-
caption || errorMessage ? /* @__PURE__ */
|
|
10136
|
+
caption || errorMessage ? /* @__PURE__ */ jsxs26("span", { css: inputToggleMessageContainer, children: [
|
|
10143
10137
|
caption ? /* @__PURE__ */ jsx44(Caption, { children: caption }) : null,
|
|
10144
10138
|
errorMessage ? /* @__PURE__ */ jsx44(ErrorMessage, { message: errorMessage }) : null,
|
|
10145
10139
|
warningMessage && !errorMessage ? /* @__PURE__ */ jsx44(WarningMessage, { message: warningMessage }) : null
|
|
@@ -10154,7 +10148,7 @@ var Legend = ({ children }) => {
|
|
|
10154
10148
|
};
|
|
10155
10149
|
|
|
10156
10150
|
// src/components/Input/Textarea.tsx
|
|
10157
|
-
import { Fragment as Fragment6, jsx as jsx46, jsxs as
|
|
10151
|
+
import { Fragment as Fragment6, jsx as jsx46, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
|
|
10158
10152
|
var Textarea = ({
|
|
10159
10153
|
label,
|
|
10160
10154
|
icon,
|
|
@@ -10165,9 +10159,9 @@ var Textarea = ({
|
|
|
10165
10159
|
warningMessage,
|
|
10166
10160
|
...props
|
|
10167
10161
|
}) => {
|
|
10168
|
-
return /* @__PURE__ */
|
|
10162
|
+
return /* @__PURE__ */ jsxs27(Fragment6, { children: [
|
|
10169
10163
|
showLabel ? /* @__PURE__ */ jsx46("label", { htmlFor: id, css: [labelText], children: label }) : null,
|
|
10170
|
-
/* @__PURE__ */
|
|
10164
|
+
/* @__PURE__ */ jsxs27("div", { css: [inputContainer], children: [
|
|
10171
10165
|
/* @__PURE__ */ jsx46(
|
|
10172
10166
|
"textarea",
|
|
10173
10167
|
{
|
|
@@ -10185,9 +10179,62 @@ var Textarea = ({
|
|
|
10185
10179
|
] });
|
|
10186
10180
|
};
|
|
10187
10181
|
|
|
10188
|
-
// src/components/
|
|
10182
|
+
// src/components/JsonEditor/JsonEditor.tsx
|
|
10183
|
+
import { ClassNames } from "@emotion/react";
|
|
10184
|
+
import MonacoEditor from "@monaco-editor/react";
|
|
10185
|
+
|
|
10186
|
+
// src/components/JsonEditor/JsonEditor.styles.ts
|
|
10189
10187
|
import { css as css35 } from "@emotion/react";
|
|
10190
|
-
var
|
|
10188
|
+
var JsonEditorContainer = css35`
|
|
10189
|
+
min-height: 150px;
|
|
10190
|
+
`;
|
|
10191
|
+
|
|
10192
|
+
// src/components/JsonEditor/JsonEditor.tsx
|
|
10193
|
+
import { jsx as jsx47 } from "@emotion/react/jsx-runtime";
|
|
10194
|
+
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
10195
|
+
let effectiveHeight = height;
|
|
10196
|
+
if (typeof height === "number" && height < 0) {
|
|
10197
|
+
effectiveHeight = typeof window === "undefined" ? "100%" : window.innerHeight + height;
|
|
10198
|
+
}
|
|
10199
|
+
return /* @__PURE__ */ jsx47(ClassNames, { children: ({ css: css66, cx }) => /* @__PURE__ */ jsx47(
|
|
10200
|
+
MonacoEditor,
|
|
10201
|
+
{
|
|
10202
|
+
height: effectiveHeight,
|
|
10203
|
+
className: cx("uniform-json-editor", css66(JsonEditorContainer)),
|
|
10204
|
+
defaultLanguage: "json",
|
|
10205
|
+
defaultValue,
|
|
10206
|
+
options: {
|
|
10207
|
+
language: "json",
|
|
10208
|
+
minimap: { enabled: false },
|
|
10209
|
+
lineNumbers: "off",
|
|
10210
|
+
folding: false,
|
|
10211
|
+
scrollBeyondLastLine: false,
|
|
10212
|
+
readOnly,
|
|
10213
|
+
renderLineHighlight: "none"
|
|
10214
|
+
},
|
|
10215
|
+
onMount: (_, monaco) => {
|
|
10216
|
+
if (jsonSchema) {
|
|
10217
|
+
monaco.languages.json.jsonDefaults.setDiagnosticsOptions({
|
|
10218
|
+
validate: true,
|
|
10219
|
+
allowComments: false,
|
|
10220
|
+
schemas: [
|
|
10221
|
+
{
|
|
10222
|
+
uri: "http://myserver/foo-schema.json",
|
|
10223
|
+
fileMatch: ["*"],
|
|
10224
|
+
schema: jsonSchema
|
|
10225
|
+
}
|
|
10226
|
+
]
|
|
10227
|
+
});
|
|
10228
|
+
}
|
|
10229
|
+
},
|
|
10230
|
+
onChange
|
|
10231
|
+
}
|
|
10232
|
+
) });
|
|
10233
|
+
};
|
|
10234
|
+
|
|
10235
|
+
// src/components/Layout/styles/Container.styles.ts
|
|
10236
|
+
import { css as css36 } from "@emotion/react";
|
|
10237
|
+
var Container = ({ backgroundColor, border, rounded, padding, margin }) => css36`
|
|
10191
10238
|
background: var(--${backgroundColor});
|
|
10192
10239
|
${border ? "border: 1px solid var(--gray-300)" : void 0};
|
|
10193
10240
|
${rounded ? `border-radius: var(--${rounded})` : void 0};
|
|
@@ -10196,7 +10243,7 @@ var Container = ({ backgroundColor, border, rounded, padding, margin }) => css35
|
|
|
10196
10243
|
`;
|
|
10197
10244
|
|
|
10198
10245
|
// src/components/Layout/Container.tsx
|
|
10199
|
-
import { jsx as
|
|
10246
|
+
import { jsx as jsx48 } from "@emotion/react/jsx-runtime";
|
|
10200
10247
|
var Container2 = ({
|
|
10201
10248
|
tag = "div",
|
|
10202
10249
|
backgroundColor = "white",
|
|
@@ -10208,7 +10255,7 @@ var Container2 = ({
|
|
|
10208
10255
|
...props
|
|
10209
10256
|
}) => {
|
|
10210
10257
|
const Tag = tag;
|
|
10211
|
-
return /* @__PURE__ */
|
|
10258
|
+
return /* @__PURE__ */ jsx48(
|
|
10212
10259
|
Tag,
|
|
10213
10260
|
{
|
|
10214
10261
|
css: Container({
|
|
@@ -10225,54 +10272,54 @@ var Container2 = ({
|
|
|
10225
10272
|
};
|
|
10226
10273
|
|
|
10227
10274
|
// src/components/Layout/styles/VerticalRhythm.styles.ts
|
|
10228
|
-
import { css as
|
|
10229
|
-
var VerticalRhythmContainer = (size) =>
|
|
10275
|
+
import { css as css37 } from "@emotion/react";
|
|
10276
|
+
var VerticalRhythmContainer = (size) => css37`
|
|
10230
10277
|
display: flex;
|
|
10231
10278
|
flex-direction: column;
|
|
10232
10279
|
gap: var(--spacing-${size});
|
|
10233
10280
|
`;
|
|
10234
10281
|
|
|
10235
10282
|
// src/components/Layout/VerticalRhythm.tsx
|
|
10236
|
-
import { jsx as
|
|
10283
|
+
import { jsx as jsx49 } from "@emotion/react/jsx-runtime";
|
|
10237
10284
|
var VerticalRhythm = ({ tag = "div", gap = "base", children, ...props }) => {
|
|
10238
10285
|
const Tag = tag;
|
|
10239
|
-
return /* @__PURE__ */
|
|
10286
|
+
return /* @__PURE__ */ jsx49(Tag, { css: VerticalRhythmContainer(gap), ...props, children });
|
|
10240
10287
|
};
|
|
10241
10288
|
|
|
10242
10289
|
// src/components/LimitsBar/LimitsBar.styles.ts
|
|
10243
|
-
import { css as
|
|
10244
|
-
var LimitsBarContainer =
|
|
10290
|
+
import { css as css38 } from "@emotion/react";
|
|
10291
|
+
var LimitsBarContainer = css38`
|
|
10245
10292
|
margin-block: var(--spacing-sm);
|
|
10246
10293
|
`;
|
|
10247
|
-
var LimitsBarProgressBar =
|
|
10294
|
+
var LimitsBarProgressBar = css38`
|
|
10248
10295
|
background: var(--gray-100);
|
|
10249
10296
|
margin-top: var(--spacing-sm);
|
|
10250
10297
|
position: relative;
|
|
10251
10298
|
overflow: hidden;
|
|
10252
10299
|
height: 0.25rem;
|
|
10253
10300
|
`;
|
|
10254
|
-
var LimitsBarProgressBarLine =
|
|
10301
|
+
var LimitsBarProgressBarLine = css38`
|
|
10255
10302
|
position: absolute;
|
|
10256
10303
|
inset: 0;
|
|
10257
10304
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
10258
10305
|
`;
|
|
10259
|
-
var LimitsBarLabelContainer =
|
|
10306
|
+
var LimitsBarLabelContainer = css38`
|
|
10260
10307
|
display: flex;
|
|
10261
10308
|
justify-content: space-between;
|
|
10262
10309
|
font-weight: var(--fw-bold);
|
|
10263
10310
|
`;
|
|
10264
|
-
var LimitsBarLabel =
|
|
10311
|
+
var LimitsBarLabel = css38`
|
|
10265
10312
|
font-size: var(--fs-baase);
|
|
10266
10313
|
`;
|
|
10267
|
-
var LimitsBarBgColor = (statusColor) =>
|
|
10314
|
+
var LimitsBarBgColor = (statusColor) => css38`
|
|
10268
10315
|
background: ${statusColor};
|
|
10269
10316
|
`;
|
|
10270
|
-
var LimitsBarTextColor = (statusColor) =>
|
|
10317
|
+
var LimitsBarTextColor = (statusColor) => css38`
|
|
10271
10318
|
color: ${statusColor};
|
|
10272
10319
|
`;
|
|
10273
10320
|
|
|
10274
10321
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
10275
|
-
import { jsx as
|
|
10322
|
+
import { jsx as jsx50, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
|
|
10276
10323
|
var LimitsBar = ({ current, max, label }) => {
|
|
10277
10324
|
const maxPercentage = 100;
|
|
10278
10325
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -10283,16 +10330,16 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
10283
10330
|
danger: "var(--brand-secondary-5)"
|
|
10284
10331
|
};
|
|
10285
10332
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
10286
|
-
return /* @__PURE__ */
|
|
10287
|
-
/* @__PURE__ */
|
|
10288
|
-
/* @__PURE__ */
|
|
10289
|
-
/* @__PURE__ */
|
|
10333
|
+
return /* @__PURE__ */ jsxs28("div", { css: LimitsBarContainer, children: [
|
|
10334
|
+
/* @__PURE__ */ jsxs28("div", { css: LimitsBarLabelContainer, children: [
|
|
10335
|
+
/* @__PURE__ */ jsx50("span", { css: LimitsBarLabel, children: label }),
|
|
10336
|
+
/* @__PURE__ */ jsxs28("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
10290
10337
|
current,
|
|
10291
10338
|
" of ",
|
|
10292
10339
|
max
|
|
10293
10340
|
] })
|
|
10294
10341
|
] }),
|
|
10295
|
-
/* @__PURE__ */
|
|
10342
|
+
/* @__PURE__ */ jsx50(
|
|
10296
10343
|
"div",
|
|
10297
10344
|
{
|
|
10298
10345
|
role: "progressbar",
|
|
@@ -10301,7 +10348,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
10301
10348
|
"aria-valuemax": max,
|
|
10302
10349
|
"aria-valuetext": `${current} of ${max}`,
|
|
10303
10350
|
css: LimitsBarProgressBar,
|
|
10304
|
-
children: /* @__PURE__ */
|
|
10351
|
+
children: /* @__PURE__ */ jsx50(
|
|
10305
10352
|
"span",
|
|
10306
10353
|
{
|
|
10307
10354
|
role: "presentation",
|
|
@@ -10317,8 +10364,8 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
10317
10364
|
};
|
|
10318
10365
|
|
|
10319
10366
|
// src/components/LinkList/LinkList.styles.ts
|
|
10320
|
-
import { css as
|
|
10321
|
-
var LinkListContainer =
|
|
10367
|
+
import { css as css39 } from "@emotion/react";
|
|
10368
|
+
var LinkListContainer = css39`
|
|
10322
10369
|
padding: var(--spacing-md) var(--spacing-lg) var(--spacing-2xl);
|
|
10323
10370
|
${mq("sm")} {
|
|
10324
10371
|
grid-column: last-col / span 1;
|
|
@@ -10327,23 +10374,23 @@ var LinkListContainer = css38`
|
|
|
10327
10374
|
`;
|
|
10328
10375
|
|
|
10329
10376
|
// src/components/LinkList/LinkList.tsx
|
|
10330
|
-
import { jsx as
|
|
10377
|
+
import { jsx as jsx51, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
|
|
10331
10378
|
var LinkList = ({ title, children, ...props }) => {
|
|
10332
|
-
return /* @__PURE__ */
|
|
10333
|
-
/* @__PURE__ */
|
|
10379
|
+
return /* @__PURE__ */ jsxs29("div", { css: LinkListContainer, ...props, children: [
|
|
10380
|
+
/* @__PURE__ */ jsx51(Heading, { level: 3, children: title }),
|
|
10334
10381
|
children
|
|
10335
10382
|
] });
|
|
10336
10383
|
};
|
|
10337
10384
|
|
|
10338
10385
|
// src/components/List/ScrollableList.tsx
|
|
10339
|
-
import { css as
|
|
10386
|
+
import { css as css41 } from "@emotion/react";
|
|
10340
10387
|
|
|
10341
10388
|
// src/components/List/styles/ScrollableList.styles.ts
|
|
10342
|
-
import { css as
|
|
10343
|
-
var ScrollableListContainer =
|
|
10389
|
+
import { css as css40 } from "@emotion/react";
|
|
10390
|
+
var ScrollableListContainer = css40`
|
|
10344
10391
|
position: relative;
|
|
10345
10392
|
`;
|
|
10346
|
-
var ScrollableListInner =
|
|
10393
|
+
var ScrollableListInner = css40`
|
|
10347
10394
|
background: var(--gray-50);
|
|
10348
10395
|
border-top: 1px solid var(--gray-200);
|
|
10349
10396
|
border-bottom: 1px solid var(--gray-200);
|
|
@@ -10361,19 +10408,19 @@ var ScrollableListInner = css39`
|
|
|
10361
10408
|
`;
|
|
10362
10409
|
|
|
10363
10410
|
// src/components/List/ScrollableList.tsx
|
|
10364
|
-
import { jsx as
|
|
10411
|
+
import { jsx as jsx52, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
|
|
10365
10412
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
10366
|
-
return /* @__PURE__ */
|
|
10367
|
-
label ? /* @__PURE__ */
|
|
10413
|
+
return /* @__PURE__ */ jsxs30("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
10414
|
+
label ? /* @__PURE__ */ jsx52(
|
|
10368
10415
|
"span",
|
|
10369
10416
|
{
|
|
10370
|
-
css:
|
|
10417
|
+
css: css41`
|
|
10371
10418
|
${labelText}
|
|
10372
10419
|
`,
|
|
10373
10420
|
children: label
|
|
10374
10421
|
}
|
|
10375
10422
|
) : null,
|
|
10376
|
-
/* @__PURE__ */
|
|
10423
|
+
/* @__PURE__ */ jsx52("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
10377
10424
|
] });
|
|
10378
10425
|
};
|
|
10379
10426
|
|
|
@@ -10381,8 +10428,8 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
10381
10428
|
import { CgCheck } from "react-icons/cg";
|
|
10382
10429
|
|
|
10383
10430
|
// src/components/List/styles/ScrollableListItem.styles.ts
|
|
10384
|
-
import { css as
|
|
10385
|
-
var ScrollableListItemContainer =
|
|
10431
|
+
import { css as css42 } from "@emotion/react";
|
|
10432
|
+
var ScrollableListItemContainer = css42`
|
|
10386
10433
|
align-items: center;
|
|
10387
10434
|
background: var(--white);
|
|
10388
10435
|
border-radius: var(--rounded-base);
|
|
@@ -10392,10 +10439,10 @@ var ScrollableListItemContainer = css41`
|
|
|
10392
10439
|
min-height: 52px;
|
|
10393
10440
|
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
10394
10441
|
`;
|
|
10395
|
-
var ScrollableListItemActive =
|
|
10442
|
+
var ScrollableListItemActive = css42`
|
|
10396
10443
|
border-color: var(--brand-secondary-3);
|
|
10397
10444
|
`;
|
|
10398
|
-
var ScrollableListItemBtn =
|
|
10445
|
+
var ScrollableListItemBtn = css42`
|
|
10399
10446
|
align-items: center;
|
|
10400
10447
|
border: none;
|
|
10401
10448
|
background: transparent;
|
|
@@ -10410,26 +10457,26 @@ var ScrollableListItemBtn = css41`
|
|
|
10410
10457
|
outline: none;
|
|
10411
10458
|
}
|
|
10412
10459
|
`;
|
|
10413
|
-
var ScrollableListInputLabel =
|
|
10460
|
+
var ScrollableListInputLabel = css42`
|
|
10414
10461
|
align-items: center;
|
|
10415
10462
|
display: flex;
|
|
10416
10463
|
padding: var(--spacing-xs) var(--spacing-base) var(--spacing-xs);
|
|
10417
10464
|
flex-grow: 1;
|
|
10418
10465
|
`;
|
|
10419
|
-
var ScrollableListInputText =
|
|
10466
|
+
var ScrollableListInputText = css42`
|
|
10420
10467
|
align-items: center;
|
|
10421
10468
|
display: flex;
|
|
10422
10469
|
gap: var(--spacing-sm);
|
|
10423
10470
|
font-weight: var(--fw-bold);
|
|
10424
10471
|
flex-grow: 1;
|
|
10425
10472
|
`;
|
|
10426
|
-
var ScrollableListHiddenInput =
|
|
10473
|
+
var ScrollableListHiddenInput = css42`
|
|
10427
10474
|
position: absolute;
|
|
10428
10475
|
height: 0;
|
|
10429
10476
|
width: 0;
|
|
10430
10477
|
opacity: 0;
|
|
10431
10478
|
`;
|
|
10432
|
-
var ScrollableListIcon =
|
|
10479
|
+
var ScrollableListIcon = css42`
|
|
10433
10480
|
border-radius: var(--rounded-full);
|
|
10434
10481
|
background: var(--brand-secondary-3);
|
|
10435
10482
|
color: var(--white);
|
|
@@ -10438,7 +10485,7 @@ var ScrollableListIcon = css41`
|
|
|
10438
10485
|
`;
|
|
10439
10486
|
|
|
10440
10487
|
// src/components/List/ScrollableListInputItem.tsx
|
|
10441
|
-
import { jsx as
|
|
10488
|
+
import { jsx as jsx53, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
|
|
10442
10489
|
var ScrollableListInputItem = ({
|
|
10443
10490
|
label,
|
|
10444
10491
|
icon,
|
|
@@ -10446,23 +10493,23 @@ var ScrollableListInputItem = ({
|
|
|
10446
10493
|
children,
|
|
10447
10494
|
labelTestId
|
|
10448
10495
|
}) => {
|
|
10449
|
-
return /* @__PURE__ */
|
|
10450
|
-
/* @__PURE__ */
|
|
10496
|
+
return /* @__PURE__ */ jsx53("div", { css: [ScrollableListItemContainer, active ? ScrollableListItemActive : void 0], children: /* @__PURE__ */ jsxs31("label", { "data-test-id": labelTestId, css: ScrollableListInputLabel, children: [
|
|
10497
|
+
/* @__PURE__ */ jsxs31("span", { css: ScrollableListInputText, children: [
|
|
10451
10498
|
icon,
|
|
10452
10499
|
label
|
|
10453
10500
|
] }),
|
|
10454
|
-
/* @__PURE__ */
|
|
10455
|
-
active ? /* @__PURE__ */
|
|
10501
|
+
/* @__PURE__ */ jsx53("div", { css: ScrollableListHiddenInput, children }),
|
|
10502
|
+
active ? /* @__PURE__ */ jsx53(Icon, { icon: CgCheck, iconColor: "currentColor", css: ScrollableListIcon, size: 24 }) : null
|
|
10456
10503
|
] }) });
|
|
10457
10504
|
};
|
|
10458
10505
|
|
|
10459
10506
|
// src/components/List/ScrollableListItem.tsx
|
|
10460
|
-
import { css as
|
|
10461
|
-
import { jsx as
|
|
10507
|
+
import { css as css43 } from "@emotion/react";
|
|
10508
|
+
import { jsx as jsx54, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
|
|
10462
10509
|
var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
10463
|
-
return /* @__PURE__ */
|
|
10464
|
-
/* @__PURE__ */
|
|
10465
|
-
/* @__PURE__ */
|
|
10510
|
+
return /* @__PURE__ */ jsx54("div", { css: [ScrollableListItemContainer, active ? ScrollableListItemActive : void 0], children: /* @__PURE__ */ jsxs32("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
10511
|
+
/* @__PURE__ */ jsx54("span", { children: buttonText }),
|
|
10512
|
+
/* @__PURE__ */ jsx54(
|
|
10466
10513
|
"svg",
|
|
10467
10514
|
{
|
|
10468
10515
|
width: "24",
|
|
@@ -10471,14 +10518,14 @@ var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
|
10471
10518
|
fill: "currentColor",
|
|
10472
10519
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10473
10520
|
"aria-hidden": !active,
|
|
10474
|
-
css:
|
|
10521
|
+
css: css43`
|
|
10475
10522
|
color: var(--brand-secondary-3);
|
|
10476
10523
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
10477
|
-
${active ?
|
|
10524
|
+
${active ? css43`
|
|
10478
10525
|
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
10479
10526
|
` : "opacity: 0;"}
|
|
10480
10527
|
`,
|
|
10481
|
-
children: /* @__PURE__ */
|
|
10528
|
+
children: /* @__PURE__ */ jsx54(
|
|
10482
10529
|
"path",
|
|
10483
10530
|
{
|
|
10484
10531
|
fillRule: "evenodd",
|
|
@@ -10492,7 +10539,7 @@ var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
|
10492
10539
|
};
|
|
10493
10540
|
|
|
10494
10541
|
// src/components/LoadingIndicator/LoadingIndicator.styles.ts
|
|
10495
|
-
import { css as
|
|
10542
|
+
import { css as css44, keyframes as keyframes3 } from "@emotion/react";
|
|
10496
10543
|
var bounceFade = keyframes3`
|
|
10497
10544
|
0%, 100% {
|
|
10498
10545
|
opacity: 1.0;
|
|
@@ -10510,11 +10557,11 @@ var bounceFade = keyframes3`
|
|
|
10510
10557
|
transform: translateY(-5px);
|
|
10511
10558
|
}
|
|
10512
10559
|
`;
|
|
10513
|
-
var loader =
|
|
10560
|
+
var loader = css44`
|
|
10514
10561
|
display: inline-flex;
|
|
10515
10562
|
justify-content: center;
|
|
10516
10563
|
`;
|
|
10517
|
-
var loadingDot =
|
|
10564
|
+
var loadingDot = css44`
|
|
10518
10565
|
background-color: var(--gray-700);
|
|
10519
10566
|
display: block;
|
|
10520
10567
|
border-radius: var(--rounded-full);
|
|
@@ -10538,51 +10585,51 @@ var loadingDot = css43`
|
|
|
10538
10585
|
`;
|
|
10539
10586
|
|
|
10540
10587
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
10541
|
-
import { jsx as
|
|
10542
|
-
var LoadingIndicator = () => {
|
|
10543
|
-
return /* @__PURE__ */
|
|
10544
|
-
/* @__PURE__ */
|
|
10545
|
-
/* @__PURE__ */
|
|
10546
|
-
/* @__PURE__ */
|
|
10588
|
+
import { jsx as jsx55, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
|
|
10589
|
+
var LoadingIndicator = ({ ...props }) => {
|
|
10590
|
+
return /* @__PURE__ */ jsxs33("div", { role: "alert", css: loader, "data-test-id": "loading-indicator", ...props, children: [
|
|
10591
|
+
/* @__PURE__ */ jsx55("span", { css: loadingDot }),
|
|
10592
|
+
/* @__PURE__ */ jsx55("span", { css: loadingDot }),
|
|
10593
|
+
/* @__PURE__ */ jsx55("span", { css: loadingDot })
|
|
10547
10594
|
] });
|
|
10548
10595
|
};
|
|
10549
10596
|
|
|
10550
10597
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
10551
|
-
import { css as
|
|
10598
|
+
import { css as css46 } from "@emotion/react";
|
|
10552
10599
|
|
|
10553
10600
|
// src/components/LoadingOverlay/LoadingOverlay.styles.ts
|
|
10554
|
-
import { css as
|
|
10555
|
-
var loadingOverlayContainer =
|
|
10601
|
+
import { css as css45 } from "@emotion/react";
|
|
10602
|
+
var loadingOverlayContainer = css45`
|
|
10556
10603
|
align-items: center;
|
|
10557
10604
|
position: absolute;
|
|
10558
10605
|
inset: 0;
|
|
10559
10606
|
overflow: hidden;
|
|
10560
10607
|
justify-content: center;
|
|
10561
10608
|
`;
|
|
10562
|
-
var loadingOverlayVisible =
|
|
10609
|
+
var loadingOverlayVisible = css45`
|
|
10563
10610
|
display: flex;
|
|
10564
10611
|
`;
|
|
10565
|
-
var loadingOverlayHidden =
|
|
10612
|
+
var loadingOverlayHidden = css45`
|
|
10566
10613
|
display: none;
|
|
10567
10614
|
`;
|
|
10568
|
-
var loadingOverlayBackground = (bgColor) =>
|
|
10615
|
+
var loadingOverlayBackground = (bgColor) => css45`
|
|
10569
10616
|
background: ${bgColor};
|
|
10570
10617
|
opacity: var(--opacity-75);
|
|
10571
10618
|
position: absolute;
|
|
10572
10619
|
inset: 0 0;
|
|
10573
10620
|
`;
|
|
10574
|
-
var loadingOverlayBody =
|
|
10621
|
+
var loadingOverlayBody = css45`
|
|
10575
10622
|
align-items: center;
|
|
10576
10623
|
display: flex;
|
|
10577
10624
|
flex-direction: column;
|
|
10578
10625
|
`;
|
|
10579
|
-
var loadingOverlayMessage =
|
|
10626
|
+
var loadingOverlayMessage = css45`
|
|
10580
10627
|
color: var(--gray-600);
|
|
10581
10628
|
margin: var(--spacing-base) 0 0;
|
|
10582
10629
|
`;
|
|
10583
10630
|
|
|
10584
10631
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
10585
|
-
import { jsx as
|
|
10632
|
+
import { jsx as jsx56, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
|
|
10586
10633
|
var LoadingOverlay = ({
|
|
10587
10634
|
isActive,
|
|
10588
10635
|
statusMessage,
|
|
@@ -10590,23 +10637,23 @@ var LoadingOverlay = ({
|
|
|
10590
10637
|
size = 128,
|
|
10591
10638
|
overlayBackgroundColor = "var(--white)"
|
|
10592
10639
|
}) => {
|
|
10593
|
-
return /* @__PURE__ */
|
|
10640
|
+
return /* @__PURE__ */ jsxs34(
|
|
10594
10641
|
"div",
|
|
10595
10642
|
{
|
|
10596
10643
|
role: "alert",
|
|
10597
10644
|
css: [loadingOverlayContainer, { zIndex }, isActive ? loadingOverlayVisible : loadingOverlayHidden],
|
|
10598
10645
|
"aria-hidden": !isActive,
|
|
10599
10646
|
children: [
|
|
10600
|
-
/* @__PURE__ */
|
|
10601
|
-
/* @__PURE__ */
|
|
10647
|
+
/* @__PURE__ */ jsx56("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
10648
|
+
/* @__PURE__ */ jsx56(
|
|
10602
10649
|
"div",
|
|
10603
10650
|
{
|
|
10604
|
-
css:
|
|
10651
|
+
css: css46`
|
|
10605
10652
|
position: relative;
|
|
10606
10653
|
`,
|
|
10607
|
-
children: /* @__PURE__ */
|
|
10608
|
-
/* @__PURE__ */
|
|
10609
|
-
statusMessage ? /* @__PURE__ */
|
|
10654
|
+
children: /* @__PURE__ */ jsxs34("div", { css: loadingOverlayBody, children: [
|
|
10655
|
+
/* @__PURE__ */ jsx56(LoadingIcon, { height: size, width: size }),
|
|
10656
|
+
statusMessage ? /* @__PURE__ */ jsx56("div", { css: loadingOverlayMessage, children: statusMessage }) : null
|
|
10610
10657
|
] })
|
|
10611
10658
|
}
|
|
10612
10659
|
)
|
|
@@ -10615,7 +10662,7 @@ var LoadingOverlay = ({
|
|
|
10615
10662
|
);
|
|
10616
10663
|
};
|
|
10617
10664
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
10618
|
-
return /* @__PURE__ */
|
|
10665
|
+
return /* @__PURE__ */ jsx56(
|
|
10619
10666
|
"svg",
|
|
10620
10667
|
{
|
|
10621
10668
|
"data-testid": "svg",
|
|
@@ -10626,9 +10673,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
10626
10673
|
stroke: "currentColor",
|
|
10627
10674
|
...props,
|
|
10628
10675
|
"data-test-id": "loading-icon",
|
|
10629
|
-
children: /* @__PURE__ */
|
|
10630
|
-
/* @__PURE__ */
|
|
10631
|
-
/* @__PURE__ */
|
|
10676
|
+
children: /* @__PURE__ */ jsx56("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs34("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
10677
|
+
/* @__PURE__ */ jsx56("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
10678
|
+
/* @__PURE__ */ jsx56("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ jsx56(
|
|
10632
10679
|
"animateTransform",
|
|
10633
10680
|
{
|
|
10634
10681
|
attributeName: "transform",
|
|
@@ -10645,12 +10692,12 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
10645
10692
|
};
|
|
10646
10693
|
|
|
10647
10694
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
10648
|
-
import { css as
|
|
10695
|
+
import { css as css48 } from "@emotion/react";
|
|
10649
10696
|
import { CgAdd as CgAdd2, CgChevronRight as CgChevronRight2 } from "react-icons/cg";
|
|
10650
10697
|
|
|
10651
10698
|
// src/components/Tiles/styles/IntegrationTile.styles.ts
|
|
10652
|
-
import { css as
|
|
10653
|
-
var IntegrationTileContainer =
|
|
10699
|
+
import { css as css47 } from "@emotion/react";
|
|
10700
|
+
var IntegrationTileContainer = css47`
|
|
10654
10701
|
align-items: center;
|
|
10655
10702
|
box-sizing: border-box;
|
|
10656
10703
|
border-radius: var(--rounded-base);
|
|
@@ -10681,22 +10728,22 @@ var IntegrationTileContainer = css46`
|
|
|
10681
10728
|
}
|
|
10682
10729
|
}
|
|
10683
10730
|
`;
|
|
10684
|
-
var IntegrationTileBtnDashedBorder =
|
|
10731
|
+
var IntegrationTileBtnDashedBorder = css47`
|
|
10685
10732
|
border: 1px dashed var(--brand-secondary-1);
|
|
10686
10733
|
`;
|
|
10687
|
-
var IntegrationTileTitle =
|
|
10734
|
+
var IntegrationTileTitle = css47`
|
|
10688
10735
|
display: block;
|
|
10689
10736
|
font-weight: var(--fw-bold);
|
|
10690
10737
|
margin: 0 0 var(--spacing-base);
|
|
10691
10738
|
max-width: 13rem;
|
|
10692
10739
|
`;
|
|
10693
|
-
var IntegrationTitleLogo =
|
|
10740
|
+
var IntegrationTitleLogo = css47`
|
|
10694
10741
|
display: block;
|
|
10695
10742
|
max-width: 10rem;
|
|
10696
10743
|
max-height: 4rem;
|
|
10697
10744
|
margin: 0 auto;
|
|
10698
10745
|
`;
|
|
10699
|
-
var IntegrationTileName =
|
|
10746
|
+
var IntegrationTileName = css47`
|
|
10700
10747
|
color: var(--gray-500);
|
|
10701
10748
|
display: -webkit-box;
|
|
10702
10749
|
-webkit-line-clamp: 1;
|
|
@@ -10709,7 +10756,7 @@ var IntegrationTileName = css46`
|
|
|
10709
10756
|
position: absolute;
|
|
10710
10757
|
bottom: calc(var(--spacing-base) * 3.8);
|
|
10711
10758
|
`;
|
|
10712
|
-
var IntegrationAddedText =
|
|
10759
|
+
var IntegrationAddedText = css47`
|
|
10713
10760
|
align-items: center;
|
|
10714
10761
|
background: var(--brand-secondary-3);
|
|
10715
10762
|
border-radius: 0 var(--rounded-md) 0 var(--rounded-md);
|
|
@@ -10724,7 +10771,7 @@ var IntegrationAddedText = css46`
|
|
|
10724
10771
|
top: 0;
|
|
10725
10772
|
right: 0;
|
|
10726
10773
|
`;
|
|
10727
|
-
var IntegrationCustomBadgeText = (theme) =>
|
|
10774
|
+
var IntegrationCustomBadgeText = (theme) => css47`
|
|
10728
10775
|
align-items: center;
|
|
10729
10776
|
border-radius: var(--rounded-sm) 0 var(--rounded-sm) 0;
|
|
10730
10777
|
background: ${theme === "gray" ? "var(--brand-secondary-2)" : "var(--brand-secondary-1)"};
|
|
@@ -10738,26 +10785,26 @@ var IntegrationCustomBadgeText = (theme) => css46`
|
|
|
10738
10785
|
top: 0;
|
|
10739
10786
|
left: 0;
|
|
10740
10787
|
`;
|
|
10741
|
-
var IntegrationAuthorBadgeIcon =
|
|
10788
|
+
var IntegrationAuthorBadgeIcon = css47`
|
|
10742
10789
|
position: absolute;
|
|
10743
10790
|
bottom: var(--spacing-sm);
|
|
10744
10791
|
right: var(--spacing-xs);
|
|
10745
10792
|
max-height: 1rem;
|
|
10746
10793
|
`;
|
|
10747
|
-
var IntegrationTitleFakeButton =
|
|
10794
|
+
var IntegrationTitleFakeButton = css47`
|
|
10748
10795
|
font-size: var(--fs-xs);
|
|
10749
10796
|
gap: var(--spacing-sm);
|
|
10750
10797
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
10751
10798
|
text-transform: uppercase;
|
|
10752
10799
|
`;
|
|
10753
|
-
var IntegrationTileFloatingButton =
|
|
10800
|
+
var IntegrationTileFloatingButton = css47`
|
|
10754
10801
|
position: absolute;
|
|
10755
10802
|
bottom: var(--spacing-base);
|
|
10756
10803
|
gap: var(--spacing-sm);
|
|
10757
10804
|
font-size: var(--fs-xs);
|
|
10758
10805
|
overflow: hidden;
|
|
10759
10806
|
`;
|
|
10760
|
-
var IntegrationTileFloatingButtonMessage = (clicked) =>
|
|
10807
|
+
var IntegrationTileFloatingButtonMessage = (clicked) => css47`
|
|
10761
10808
|
strong,
|
|
10762
10809
|
span:first-of-type {
|
|
10763
10810
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
@@ -10778,7 +10825,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => css46`
|
|
|
10778
10825
|
`;
|
|
10779
10826
|
|
|
10780
10827
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
10781
|
-
import { jsx as
|
|
10828
|
+
import { jsx as jsx57, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
10782
10829
|
var CreateTeamIntegrationTile = ({
|
|
10783
10830
|
title = "Create a custom integration for your team",
|
|
10784
10831
|
buttonText = "Add Integration",
|
|
@@ -10786,9 +10833,9 @@ var CreateTeamIntegrationTile = ({
|
|
|
10786
10833
|
asDeepLink = false,
|
|
10787
10834
|
...props
|
|
10788
10835
|
}) => {
|
|
10789
|
-
return /* @__PURE__ */
|
|
10790
|
-
/* @__PURE__ */
|
|
10791
|
-
/* @__PURE__ */
|
|
10836
|
+
return /* @__PURE__ */ jsxs35("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
10837
|
+
/* @__PURE__ */ jsx57("span", { css: IntegrationTileTitle, title, children: title }),
|
|
10838
|
+
/* @__PURE__ */ jsxs35(
|
|
10792
10839
|
Button,
|
|
10793
10840
|
{
|
|
10794
10841
|
buttonType: "tertiary",
|
|
@@ -10798,23 +10845,23 @@ var CreateTeamIntegrationTile = ({
|
|
|
10798
10845
|
css: IntegrationTitleFakeButton,
|
|
10799
10846
|
children: [
|
|
10800
10847
|
buttonText,
|
|
10801
|
-
asDeepLink ? /* @__PURE__ */
|
|
10848
|
+
asDeepLink ? /* @__PURE__ */ jsx57(
|
|
10802
10849
|
Icon,
|
|
10803
10850
|
{
|
|
10804
10851
|
icon: CgChevronRight2,
|
|
10805
10852
|
iconColor: "currentColor",
|
|
10806
10853
|
size: 20,
|
|
10807
|
-
css:
|
|
10854
|
+
css: css48`
|
|
10808
10855
|
order: 1;
|
|
10809
10856
|
`
|
|
10810
10857
|
}
|
|
10811
|
-
) : /* @__PURE__ */
|
|
10858
|
+
) : /* @__PURE__ */ jsx57(
|
|
10812
10859
|
Icon,
|
|
10813
10860
|
{
|
|
10814
10861
|
icon: CgAdd2,
|
|
10815
10862
|
iconColor: "currentColor",
|
|
10816
10863
|
size: 16,
|
|
10817
|
-
css:
|
|
10864
|
+
css: css48`
|
|
10818
10865
|
order: -1;
|
|
10819
10866
|
`
|
|
10820
10867
|
}
|
|
@@ -10827,31 +10874,31 @@ var CreateTeamIntegrationTile = ({
|
|
|
10827
10874
|
|
|
10828
10875
|
// src/components/Tiles/IntegrationBadges.tsx
|
|
10829
10876
|
import { CgCheck as CgCheck2, CgLock, CgSandClock } from "react-icons/cg";
|
|
10830
|
-
import { jsx as
|
|
10877
|
+
import { jsx as jsx58, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
10831
10878
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
10832
|
-
return /* @__PURE__ */
|
|
10833
|
-
/* @__PURE__ */
|
|
10879
|
+
return /* @__PURE__ */ jsxs36("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
10880
|
+
/* @__PURE__ */ jsx58(Icon, { icon: CgCheck2, iconColor: "currentColor" }),
|
|
10834
10881
|
text
|
|
10835
10882
|
] });
|
|
10836
10883
|
};
|
|
10837
10884
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
10838
|
-
return /* @__PURE__ */
|
|
10885
|
+
return /* @__PURE__ */ jsx58("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
10839
10886
|
};
|
|
10840
10887
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
10841
|
-
return /* @__PURE__ */
|
|
10842
|
-
/* @__PURE__ */
|
|
10888
|
+
return /* @__PURE__ */ jsxs36("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
10889
|
+
/* @__PURE__ */ jsx58(Icon, { icon: CgLock, iconColor: "currentColor", size: 12 }),
|
|
10843
10890
|
text
|
|
10844
10891
|
] });
|
|
10845
10892
|
};
|
|
10846
10893
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
10847
|
-
return /* @__PURE__ */
|
|
10848
|
-
/* @__PURE__ */
|
|
10894
|
+
return /* @__PURE__ */ jsxs36("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
10895
|
+
/* @__PURE__ */ jsx58(Icon, { icon: CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
10849
10896
|
text
|
|
10850
10897
|
] });
|
|
10851
10898
|
};
|
|
10852
10899
|
|
|
10853
10900
|
// src/components/Tiles/ResolveIcon.tsx
|
|
10854
|
-
import { jsx as
|
|
10901
|
+
import { jsx as jsx59 } from "@emotion/react/jsx-runtime";
|
|
10855
10902
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
10856
10903
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
10857
10904
|
const mapClassName = {
|
|
@@ -10859,13 +10906,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
10859
10906
|
logo: IntegrationTitleLogo
|
|
10860
10907
|
};
|
|
10861
10908
|
if (icon) {
|
|
10862
|
-
return CompIcon ? /* @__PURE__ */
|
|
10909
|
+
return CompIcon ? /* @__PURE__ */ jsx59(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ jsx59("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
10863
10910
|
}
|
|
10864
10911
|
return null;
|
|
10865
10912
|
};
|
|
10866
10913
|
|
|
10867
10914
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
10868
|
-
import { jsx as
|
|
10915
|
+
import { jsx as jsx60, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
|
|
10869
10916
|
var EditTeamIntegrationTile = ({
|
|
10870
10917
|
id,
|
|
10871
10918
|
icon,
|
|
@@ -10874,17 +10921,17 @@ var EditTeamIntegrationTile = ({
|
|
|
10874
10921
|
isPublic,
|
|
10875
10922
|
canEdit = false
|
|
10876
10923
|
}) => {
|
|
10877
|
-
return /* @__PURE__ */
|
|
10924
|
+
return /* @__PURE__ */ jsxs37(
|
|
10878
10925
|
"div",
|
|
10879
10926
|
{
|
|
10880
10927
|
css: IntegrationTileContainer,
|
|
10881
10928
|
"data-testid": "configure-integration-container",
|
|
10882
10929
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
10883
10930
|
children: [
|
|
10884
|
-
/* @__PURE__ */
|
|
10885
|
-
/* @__PURE__ */
|
|
10886
|
-
!isPublic ? /* @__PURE__ */
|
|
10887
|
-
canEdit ? /* @__PURE__ */
|
|
10931
|
+
/* @__PURE__ */ jsx60(ResolveIcon, { icon, name, "data-test-id": "integration-logo" }),
|
|
10932
|
+
/* @__PURE__ */ jsx60("span", { css: IntegrationTileName, "data-test-id": "integration-card-name", children: name }),
|
|
10933
|
+
!isPublic ? /* @__PURE__ */ jsx60(IntegrationCustomBadge, {}) : null,
|
|
10934
|
+
canEdit ? /* @__PURE__ */ jsx60(
|
|
10888
10935
|
Button,
|
|
10889
10936
|
{
|
|
10890
10937
|
buttonType: "unimportant",
|
|
@@ -10902,10 +10949,10 @@ var EditTeamIntegrationTile = ({
|
|
|
10902
10949
|
};
|
|
10903
10950
|
|
|
10904
10951
|
// src/components/Tiles/IntegrationComingSoon.tsx
|
|
10905
|
-
import { css as
|
|
10952
|
+
import { css as css49 } from "@emotion/react";
|
|
10906
10953
|
import { useEffect as useEffect6, useState as useState6 } from "react";
|
|
10907
10954
|
import { CgHeart } from "react-icons/cg";
|
|
10908
|
-
import { jsx as
|
|
10955
|
+
import { jsx as jsx61, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
|
|
10909
10956
|
var IntegrationComingSoon = ({
|
|
10910
10957
|
name,
|
|
10911
10958
|
icon,
|
|
@@ -10927,17 +10974,17 @@ var IntegrationComingSoon = ({
|
|
|
10927
10974
|
};
|
|
10928
10975
|
}
|
|
10929
10976
|
}, [upVote, setUpVote, timing]);
|
|
10930
|
-
return /* @__PURE__ */
|
|
10977
|
+
return /* @__PURE__ */ jsxs38(
|
|
10931
10978
|
"div",
|
|
10932
10979
|
{
|
|
10933
10980
|
css: IntegrationTileContainer,
|
|
10934
10981
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
10935
10982
|
...props,
|
|
10936
10983
|
children: [
|
|
10937
|
-
/* @__PURE__ */
|
|
10938
|
-
/* @__PURE__ */
|
|
10939
|
-
/* @__PURE__ */
|
|
10940
|
-
/* @__PURE__ */
|
|
10984
|
+
/* @__PURE__ */ jsx61(IntegrationComingSoonBadge, {}),
|
|
10985
|
+
/* @__PURE__ */ jsx61(ResolveIcon, { icon, name }),
|
|
10986
|
+
/* @__PURE__ */ jsx61("span", { css: IntegrationTileName, title: name, children: name }),
|
|
10987
|
+
/* @__PURE__ */ jsxs38(
|
|
10941
10988
|
Button,
|
|
10942
10989
|
{
|
|
10943
10990
|
buttonType: "unimportant",
|
|
@@ -10947,19 +10994,19 @@ var IntegrationComingSoon = ({
|
|
|
10947
10994
|
role: "link",
|
|
10948
10995
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
10949
10996
|
children: [
|
|
10950
|
-
/* @__PURE__ */
|
|
10951
|
-
/* @__PURE__ */
|
|
10997
|
+
/* @__PURE__ */ jsx61("strong", { children: "+1" }),
|
|
10998
|
+
/* @__PURE__ */ jsx61(
|
|
10952
10999
|
"span",
|
|
10953
11000
|
{
|
|
10954
|
-
css:
|
|
11001
|
+
css: css49`
|
|
10955
11002
|
text-transform: uppercase;
|
|
10956
11003
|
color: var(--gray-500);
|
|
10957
11004
|
`,
|
|
10958
11005
|
children: "(I want this)"
|
|
10959
11006
|
}
|
|
10960
11007
|
),
|
|
10961
|
-
/* @__PURE__ */
|
|
10962
|
-
/* @__PURE__ */
|
|
11008
|
+
/* @__PURE__ */ jsxs38("span", { "aria-hidden": !upVote, children: [
|
|
11009
|
+
/* @__PURE__ */ jsx61(Icon, { icon: CgHeart, iconColor: "currentColor", size: 18 }),
|
|
10963
11010
|
"Thanks!"
|
|
10964
11011
|
] })
|
|
10965
11012
|
]
|
|
@@ -10971,8 +11018,8 @@ var IntegrationComingSoon = ({
|
|
|
10971
11018
|
};
|
|
10972
11019
|
|
|
10973
11020
|
// src/components/Tiles/styles/IntegrationLoadingTile.styles.ts
|
|
10974
|
-
import { css as
|
|
10975
|
-
var IntegrationLoadingTileContainer =
|
|
11021
|
+
import { css as css50 } from "@emotion/react";
|
|
11022
|
+
var IntegrationLoadingTileContainer = css50`
|
|
10976
11023
|
align-items: center;
|
|
10977
11024
|
box-sizing: border-box;
|
|
10978
11025
|
border-radius: var(--rounded-base);
|
|
@@ -10999,39 +11046,39 @@ var IntegrationLoadingTileContainer = css49`
|
|
|
10999
11046
|
}
|
|
11000
11047
|
}
|
|
11001
11048
|
`;
|
|
11002
|
-
var IntegrationLoadingTileImg =
|
|
11049
|
+
var IntegrationLoadingTileImg = css50`
|
|
11003
11050
|
width: 10rem;
|
|
11004
11051
|
height: 4rem;
|
|
11005
11052
|
margin: 0 auto;
|
|
11006
11053
|
`;
|
|
11007
|
-
var IntegrationLoadingTileText =
|
|
11054
|
+
var IntegrationLoadingTileText = css50`
|
|
11008
11055
|
width: 5rem;
|
|
11009
11056
|
height: var(--spacing-sm);
|
|
11010
11057
|
margin: var(--spacing-sm) 0;
|
|
11011
11058
|
`;
|
|
11012
|
-
var IntegrationLoadingFrame =
|
|
11059
|
+
var IntegrationLoadingFrame = css50`
|
|
11013
11060
|
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
11014
11061
|
border-radius: var(--rounded-base);
|
|
11015
11062
|
`;
|
|
11016
11063
|
|
|
11017
11064
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
11018
|
-
import { Fragment as Fragment7, jsx as
|
|
11065
|
+
import { Fragment as Fragment7, jsx as jsx62, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
11019
11066
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
11020
11067
|
const componentCount = Array.from(Array(count).keys());
|
|
11021
|
-
return /* @__PURE__ */
|
|
11022
|
-
/* @__PURE__ */
|
|
11023
|
-
/* @__PURE__ */
|
|
11068
|
+
return /* @__PURE__ */ jsx62(Fragment7, { children: componentCount.map((i) => /* @__PURE__ */ jsxs39("div", { css: IntegrationLoadingTileContainer, children: [
|
|
11069
|
+
/* @__PURE__ */ jsx62("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
11070
|
+
/* @__PURE__ */ jsx62("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
11024
11071
|
] }, i)) });
|
|
11025
11072
|
};
|
|
11026
11073
|
|
|
11027
11074
|
// src/components/Tiles/styles/IntegrationModalIcon.styles.ts
|
|
11028
|
-
import { css as
|
|
11029
|
-
var IntegrationModalIconContainer =
|
|
11075
|
+
import { css as css51 } from "@emotion/react";
|
|
11076
|
+
var IntegrationModalIconContainer = css51`
|
|
11030
11077
|
position: relative;
|
|
11031
11078
|
width: 50px;
|
|
11032
11079
|
margin-bottom: var(--spacing-base);
|
|
11033
11080
|
`;
|
|
11034
|
-
var IntegrationModalImage =
|
|
11081
|
+
var IntegrationModalImage = css51`
|
|
11035
11082
|
position: absolute;
|
|
11036
11083
|
inset: 0;
|
|
11037
11084
|
margin: auto;
|
|
@@ -11040,12 +11087,12 @@ var IntegrationModalImage = css50`
|
|
|
11040
11087
|
`;
|
|
11041
11088
|
|
|
11042
11089
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
11043
|
-
import { jsx as
|
|
11090
|
+
import { jsx as jsx63, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
|
|
11044
11091
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
11045
11092
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
11046
|
-
return /* @__PURE__ */
|
|
11047
|
-
/* @__PURE__ */
|
|
11048
|
-
/* @__PURE__ */
|
|
11093
|
+
return /* @__PURE__ */ jsxs40("div", { css: IntegrationModalIconContainer, children: [
|
|
11094
|
+
/* @__PURE__ */ jsxs40("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
11095
|
+
/* @__PURE__ */ jsx63(
|
|
11049
11096
|
"path",
|
|
11050
11097
|
{
|
|
11051
11098
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -11054,12 +11101,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
11054
11101
|
strokeWidth: "2"
|
|
11055
11102
|
}
|
|
11056
11103
|
),
|
|
11057
|
-
/* @__PURE__ */
|
|
11058
|
-
/* @__PURE__ */
|
|
11059
|
-
/* @__PURE__ */
|
|
11104
|
+
/* @__PURE__ */ jsx63("defs", { children: /* @__PURE__ */ jsxs40("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
11105
|
+
/* @__PURE__ */ jsx63("stop", { stopColor: "#1768B2" }),
|
|
11106
|
+
/* @__PURE__ */ jsx63("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
11060
11107
|
] }) })
|
|
11061
11108
|
] }),
|
|
11062
|
-
CompIcon ? /* @__PURE__ */
|
|
11109
|
+
CompIcon ? /* @__PURE__ */ jsx63(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : /* @__PURE__ */ jsx63(
|
|
11063
11110
|
"img",
|
|
11064
11111
|
{
|
|
11065
11112
|
src: icon,
|
|
@@ -11073,7 +11120,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
11073
11120
|
};
|
|
11074
11121
|
|
|
11075
11122
|
// src/components/Tiles/IntegrationTile.tsx
|
|
11076
|
-
import { jsx as
|
|
11123
|
+
import { jsx as jsx64, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
11077
11124
|
var IntegrationTile = ({
|
|
11078
11125
|
id,
|
|
11079
11126
|
icon,
|
|
@@ -11085,7 +11132,7 @@ var IntegrationTile = ({
|
|
|
11085
11132
|
authorIcon,
|
|
11086
11133
|
...btnProps
|
|
11087
11134
|
}) => {
|
|
11088
|
-
return /* @__PURE__ */
|
|
11135
|
+
return /* @__PURE__ */ jsxs41(
|
|
11089
11136
|
"button",
|
|
11090
11137
|
{
|
|
11091
11138
|
type: "button",
|
|
@@ -11095,70 +11142,70 @@ var IntegrationTile = ({
|
|
|
11095
11142
|
"aria-label": name,
|
|
11096
11143
|
...btnProps,
|
|
11097
11144
|
children: [
|
|
11098
|
-
/* @__PURE__ */
|
|
11099
|
-
/* @__PURE__ */
|
|
11100
|
-
isInstalled ? /* @__PURE__ */
|
|
11101
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */
|
|
11102
|
-
!isPublic ? /* @__PURE__ */
|
|
11103
|
-
authorIcon ? /* @__PURE__ */
|
|
11145
|
+
/* @__PURE__ */ jsx64(ResolveIcon, { icon, name }),
|
|
11146
|
+
/* @__PURE__ */ jsx64("span", { css: IntegrationTileName, title: name, children: name }),
|
|
11147
|
+
isInstalled ? /* @__PURE__ */ jsx64(IntegrationedAddedBadge, {}) : null,
|
|
11148
|
+
requiedEntitlement && isPublic ? /* @__PURE__ */ jsx64(IntegrationPremiumBadge, {}) : null,
|
|
11149
|
+
!isPublic ? /* @__PURE__ */ jsx64(IntegrationCustomBadge, {}) : null,
|
|
11150
|
+
authorIcon ? /* @__PURE__ */ jsx64(ResolveIcon, { icon: authorIcon, name }) : null
|
|
11104
11151
|
]
|
|
11105
11152
|
}
|
|
11106
11153
|
);
|
|
11107
11154
|
};
|
|
11108
11155
|
|
|
11109
11156
|
// src/components/Tiles/styles/TileContainer.styles.ts
|
|
11110
|
-
import { css as
|
|
11111
|
-
var TileContainerWrapper =
|
|
11157
|
+
import { css as css52 } from "@emotion/react";
|
|
11158
|
+
var TileContainerWrapper = css52`
|
|
11112
11159
|
background: var(--brand-secondary-2);
|
|
11113
11160
|
padding: var(--spacing-base);
|
|
11114
11161
|
margin-bottom: var(--spacing-lg);
|
|
11115
11162
|
`;
|
|
11116
|
-
var TileContainerInner =
|
|
11163
|
+
var TileContainerInner = css52`
|
|
11117
11164
|
display: grid;
|
|
11118
11165
|
grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
|
|
11119
11166
|
gap: var(--spacing-base);
|
|
11120
11167
|
`;
|
|
11121
11168
|
|
|
11122
11169
|
// src/components/Tiles/TileContainer.tsx
|
|
11123
|
-
import { jsx as
|
|
11170
|
+
import { jsx as jsx65 } from "@emotion/react/jsx-runtime";
|
|
11124
11171
|
var TileContainer = ({ children, ...props }) => {
|
|
11125
|
-
return /* @__PURE__ */
|
|
11172
|
+
return /* @__PURE__ */ jsx65("div", { css: TileContainerWrapper, ...props, children: /* @__PURE__ */ jsx65("div", { css: TileContainerInner, children }) });
|
|
11126
11173
|
};
|
|
11127
11174
|
|
|
11128
11175
|
// src/components/Modal/IntegrationModalHeader.styles.ts
|
|
11129
|
-
import { css as
|
|
11130
|
-
var IntegrationModalHeaderSVGBackground =
|
|
11176
|
+
import { css as css53 } from "@emotion/react";
|
|
11177
|
+
var IntegrationModalHeaderSVGBackground = css53`
|
|
11131
11178
|
position: absolute;
|
|
11132
11179
|
top: 0;
|
|
11133
11180
|
left: 0;
|
|
11134
11181
|
`;
|
|
11135
|
-
var IntegrationModalHeaderGroup =
|
|
11182
|
+
var IntegrationModalHeaderGroup = css53`
|
|
11136
11183
|
align-items: center;
|
|
11137
11184
|
display: flex;
|
|
11138
11185
|
gap: var(--spacing-sm);
|
|
11139
11186
|
margin: 0 0 var(--spacing-md);
|
|
11140
11187
|
position: relative;
|
|
11141
11188
|
`;
|
|
11142
|
-
var IntegrationModalHeaderTitleGroup =
|
|
11189
|
+
var IntegrationModalHeaderTitleGroup = css53`
|
|
11143
11190
|
align-items: center;
|
|
11144
11191
|
display: flex;
|
|
11145
11192
|
gap: var(--spacing-base);
|
|
11146
11193
|
`;
|
|
11147
|
-
var IntegrationModalHeaderTitle =
|
|
11194
|
+
var IntegrationModalHeaderTitle = css53`
|
|
11148
11195
|
margin-top: 0;
|
|
11149
11196
|
`;
|
|
11150
|
-
var IntegrationModalHeaderMenuPlacement =
|
|
11197
|
+
var IntegrationModalHeaderMenuPlacement = css53`
|
|
11151
11198
|
margin-bottom: var(--spacing-base);
|
|
11152
11199
|
`;
|
|
11153
|
-
var IntegrationModalHeaderContentWrapper =
|
|
11200
|
+
var IntegrationModalHeaderContentWrapper = css53`
|
|
11154
11201
|
position: relative;
|
|
11155
11202
|
z-index: var(--z-10);
|
|
11156
11203
|
`;
|
|
11157
11204
|
|
|
11158
11205
|
// src/components/Modal/IntegrationModalHeader.tsx
|
|
11159
|
-
import { Fragment as Fragment8, jsx as
|
|
11206
|
+
import { Fragment as Fragment8, jsx as jsx66, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
11160
11207
|
var HexModalBackground = ({ ...props }) => {
|
|
11161
|
-
return /* @__PURE__ */
|
|
11208
|
+
return /* @__PURE__ */ jsxs42(
|
|
11162
11209
|
"svg",
|
|
11163
11210
|
{
|
|
11164
11211
|
width: "236",
|
|
@@ -11168,7 +11215,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
11168
11215
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11169
11216
|
...props,
|
|
11170
11217
|
children: [
|
|
11171
|
-
/* @__PURE__ */
|
|
11218
|
+
/* @__PURE__ */ jsx66(
|
|
11172
11219
|
"path",
|
|
11173
11220
|
{
|
|
11174
11221
|
fillRule: "evenodd",
|
|
@@ -11177,7 +11224,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
11177
11224
|
fill: "url(#paint0_linear_196_2737)"
|
|
11178
11225
|
}
|
|
11179
11226
|
),
|
|
11180
|
-
/* @__PURE__ */
|
|
11227
|
+
/* @__PURE__ */ jsx66("defs", { children: /* @__PURE__ */ jsxs42(
|
|
11181
11228
|
"linearGradient",
|
|
11182
11229
|
{
|
|
11183
11230
|
id: "paint0_linear_196_2737",
|
|
@@ -11187,8 +11234,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
11187
11234
|
y2: "-95.2742",
|
|
11188
11235
|
gradientUnits: "userSpaceOnUse",
|
|
11189
11236
|
children: [
|
|
11190
|
-
/* @__PURE__ */
|
|
11191
|
-
/* @__PURE__ */
|
|
11237
|
+
/* @__PURE__ */ jsx66("stop", { stopColor: "#81DCDE" }),
|
|
11238
|
+
/* @__PURE__ */ jsx66("stop", { offset: "1", stopColor: "#428ED4" })
|
|
11192
11239
|
]
|
|
11193
11240
|
}
|
|
11194
11241
|
) })
|
|
@@ -11197,17 +11244,17 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
11197
11244
|
);
|
|
11198
11245
|
};
|
|
11199
11246
|
var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
11200
|
-
return /* @__PURE__ */
|
|
11201
|
-
/* @__PURE__ */
|
|
11202
|
-
/* @__PURE__ */
|
|
11203
|
-
icon ? /* @__PURE__ */
|
|
11204
|
-
/* @__PURE__ */
|
|
11205
|
-
menu2 ? /* @__PURE__ */
|
|
11247
|
+
return /* @__PURE__ */ jsxs42(Fragment8, { children: [
|
|
11248
|
+
/* @__PURE__ */ jsx66(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
11249
|
+
/* @__PURE__ */ jsx66("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs42("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
11250
|
+
icon ? /* @__PURE__ */ jsx66(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
11251
|
+
/* @__PURE__ */ jsx66(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-test-id": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
11252
|
+
menu2 ? /* @__PURE__ */ jsxs42("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
11206
11253
|
menu2,
|
|
11207
11254
|
" "
|
|
11208
11255
|
] }) : null
|
|
11209
11256
|
] }) }),
|
|
11210
|
-
/* @__PURE__ */
|
|
11257
|
+
/* @__PURE__ */ jsx66("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
11211
11258
|
] });
|
|
11212
11259
|
};
|
|
11213
11260
|
|
|
@@ -11221,8 +11268,8 @@ import {
|
|
|
11221
11268
|
} from "reakit/Tooltip";
|
|
11222
11269
|
|
|
11223
11270
|
// src/components/Tooltip/Tooltip.styles.ts
|
|
11224
|
-
import { css as
|
|
11225
|
-
var TooltipContainer =
|
|
11271
|
+
import { css as css54 } from "@emotion/react";
|
|
11272
|
+
var TooltipContainer = css54`
|
|
11226
11273
|
border: 2px solid var(--gray-300);
|
|
11227
11274
|
border-radius: var(--rounded-base);
|
|
11228
11275
|
padding: var(--spacing-xs) var(--spacing-sm);
|
|
@@ -11230,28 +11277,28 @@ var TooltipContainer = css53`
|
|
|
11230
11277
|
font-size: var(--fs-xs);
|
|
11231
11278
|
background: var(--white);
|
|
11232
11279
|
`;
|
|
11233
|
-
var TooltipArrowStyles =
|
|
11280
|
+
var TooltipArrowStyles = css54`
|
|
11234
11281
|
svg {
|
|
11235
11282
|
fill: var(--gray-300);
|
|
11236
11283
|
}
|
|
11237
11284
|
`;
|
|
11238
11285
|
|
|
11239
11286
|
// src/components/Tooltip/Tooltip.tsx
|
|
11240
|
-
import { Fragment as Fragment9, jsx as
|
|
11287
|
+
import { Fragment as Fragment9, jsx as jsx67, jsxs as jsxs43 } from "@emotion/react/jsx-runtime";
|
|
11241
11288
|
function Tooltip({ children, title, placement = "bottom", visible, ...props }) {
|
|
11242
11289
|
const tooltip = useTooltipState({ placement });
|
|
11243
|
-
return /* @__PURE__ */
|
|
11244
|
-
/* @__PURE__ */
|
|
11245
|
-
/* @__PURE__ */
|
|
11246
|
-
/* @__PURE__ */
|
|
11290
|
+
return /* @__PURE__ */ jsxs43(Fragment9, { children: [
|
|
11291
|
+
/* @__PURE__ */ jsx67(TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => React14.cloneElement(children, referenceProps) }),
|
|
11292
|
+
/* @__PURE__ */ jsxs43(ReakitTooltip, { ...tooltip, ...props, css: TooltipContainer, visible: visible != null ? visible : tooltip.visible, children: [
|
|
11293
|
+
/* @__PURE__ */ jsx67(TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
|
|
11247
11294
|
title
|
|
11248
11295
|
] })
|
|
11249
11296
|
] });
|
|
11250
11297
|
}
|
|
11251
11298
|
|
|
11252
11299
|
// src/components/ParameterInputs/styles/ParameterBindingButton.styles.ts
|
|
11253
|
-
import { css as
|
|
11254
|
-
var inputIconBtn =
|
|
11300
|
+
import { css as css55 } from "@emotion/react";
|
|
11301
|
+
var inputIconBtn = css55`
|
|
11255
11302
|
align-items: center;
|
|
11256
11303
|
border: none;
|
|
11257
11304
|
border-radius: var(--rounded-base);
|
|
@@ -11274,7 +11321,7 @@ var inputIconBtn = css54`
|
|
|
11274
11321
|
`;
|
|
11275
11322
|
|
|
11276
11323
|
// src/components/ParameterInputs/ConnectToDataElementButton.tsx
|
|
11277
|
-
import { jsx as
|
|
11324
|
+
import { jsx as jsx68, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
11278
11325
|
var ConnectToDataElementButton = ({
|
|
11279
11326
|
icon,
|
|
11280
11327
|
iconColor,
|
|
@@ -11284,7 +11331,7 @@ var ConnectToDataElementButton = ({
|
|
|
11284
11331
|
...props
|
|
11285
11332
|
}) => {
|
|
11286
11333
|
const title = isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
11287
|
-
return /* @__PURE__ */
|
|
11334
|
+
return /* @__PURE__ */ jsx68(Tooltip, { title, children: /* @__PURE__ */ jsxs44(
|
|
11288
11335
|
"button",
|
|
11289
11336
|
{
|
|
11290
11337
|
css: inputIconBtn,
|
|
@@ -11293,7 +11340,7 @@ var ConnectToDataElementButton = ({
|
|
|
11293
11340
|
"aria-disabled": isLocked,
|
|
11294
11341
|
...props,
|
|
11295
11342
|
children: [
|
|
11296
|
-
/* @__PURE__ */
|
|
11343
|
+
/* @__PURE__ */ jsx68(
|
|
11297
11344
|
Icon,
|
|
11298
11345
|
{
|
|
11299
11346
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -11329,8 +11376,8 @@ var useParameterShell = () => {
|
|
|
11329
11376
|
};
|
|
11330
11377
|
|
|
11331
11378
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
11332
|
-
import { css as
|
|
11333
|
-
var inputContainer2 =
|
|
11379
|
+
import { css as css56 } from "@emotion/react";
|
|
11380
|
+
var inputContainer2 = css56`
|
|
11334
11381
|
position: relative;
|
|
11335
11382
|
|
|
11336
11383
|
&:hover,
|
|
@@ -11342,14 +11389,14 @@ var inputContainer2 = css55`
|
|
|
11342
11389
|
}
|
|
11343
11390
|
}
|
|
11344
11391
|
`;
|
|
11345
|
-
var labelText2 =
|
|
11392
|
+
var labelText2 = css56`
|
|
11346
11393
|
align-items: center;
|
|
11347
11394
|
display: flex;
|
|
11348
11395
|
gap: var(--spacing-xs);
|
|
11349
11396
|
font-weight: var(--fw-regular);
|
|
11350
11397
|
margin: 0 0 var(--spacing-xs);
|
|
11351
11398
|
`;
|
|
11352
|
-
var input2 =
|
|
11399
|
+
var input2 = css56`
|
|
11353
11400
|
display: block;
|
|
11354
11401
|
appearance: none;
|
|
11355
11402
|
box-sizing: border-box;
|
|
@@ -11393,18 +11440,18 @@ var input2 = css55`
|
|
|
11393
11440
|
color: var(--gray-400);
|
|
11394
11441
|
}
|
|
11395
11442
|
`;
|
|
11396
|
-
var selectInput =
|
|
11443
|
+
var selectInput = css56`
|
|
11397
11444
|
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");
|
|
11398
11445
|
background-position: right var(--spacing-sm) center;
|
|
11399
11446
|
background-repeat: no-repeat;
|
|
11400
11447
|
background-size: 1rem;
|
|
11401
11448
|
padding-right: var(--spacing-xl);
|
|
11402
11449
|
`;
|
|
11403
|
-
var inputWrapper =
|
|
11450
|
+
var inputWrapper = css56`
|
|
11404
11451
|
display: flex; // used to correct overflow with chrome textarea
|
|
11405
11452
|
position: relative;
|
|
11406
11453
|
`;
|
|
11407
|
-
var inputIcon2 =
|
|
11454
|
+
var inputIcon2 = css56`
|
|
11408
11455
|
align-items: center;
|
|
11409
11456
|
background: var(--white);
|
|
11410
11457
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -11420,7 +11467,7 @@ var inputIcon2 = css55`
|
|
|
11420
11467
|
width: var(--spacing-lg);
|
|
11421
11468
|
z-index: var(--z-10);
|
|
11422
11469
|
`;
|
|
11423
|
-
var inputToggleLabel2 =
|
|
11470
|
+
var inputToggleLabel2 = css56`
|
|
11424
11471
|
align-items: center;
|
|
11425
11472
|
background: var(--white);
|
|
11426
11473
|
cursor: pointer;
|
|
@@ -11431,7 +11478,7 @@ var inputToggleLabel2 = css55`
|
|
|
11431
11478
|
min-height: var(--spacing-md);
|
|
11432
11479
|
position: relative;
|
|
11433
11480
|
`;
|
|
11434
|
-
var toggleInput2 =
|
|
11481
|
+
var toggleInput2 = css56`
|
|
11435
11482
|
appearance: none;
|
|
11436
11483
|
border: 1px solid var(--gray-300);
|
|
11437
11484
|
background: var(--white);
|
|
@@ -11470,7 +11517,7 @@ var toggleInput2 = css55`
|
|
|
11470
11517
|
border-color: var(--gray-300);
|
|
11471
11518
|
}
|
|
11472
11519
|
`;
|
|
11473
|
-
var inlineLabel2 =
|
|
11520
|
+
var inlineLabel2 = css56`
|
|
11474
11521
|
padding-left: var(--spacing-lg);
|
|
11475
11522
|
font-size: var(--fs-sm);
|
|
11476
11523
|
font-weight: var(--fw-regular);
|
|
@@ -11486,35 +11533,30 @@ var inlineLabel2 = css55`
|
|
|
11486
11533
|
}
|
|
11487
11534
|
}
|
|
11488
11535
|
`;
|
|
11489
|
-
var inputMenu =
|
|
11536
|
+
var inputMenu = css56`
|
|
11490
11537
|
background: none;
|
|
11491
11538
|
border: none;
|
|
11492
|
-
padding:
|
|
11539
|
+
padding: var(--spacing-2xs);
|
|
11493
11540
|
position: absolute;
|
|
11494
11541
|
top: calc(var(--spacing-md) * -1.2);
|
|
11495
11542
|
right: 0;
|
|
11496
11543
|
opacity: var(--opacity-50);
|
|
11497
|
-
transition:
|
|
11544
|
+
transition: background-color var(--duration-fast) var(--timing-ease-out);
|
|
11498
11545
|
|
|
11499
11546
|
// css trick to style the input like a hover or active state when the menu button is active or hovered
|
|
11500
11547
|
&:hover,
|
|
11501
11548
|
&[aria-expanded='true'] {
|
|
11502
|
-
|
|
11503
|
-
~ select,
|
|
11504
|
-
~ textarea {
|
|
11505
|
-
'order-radius: var(--rounded-md);
|
|
11506
|
-
}
|
|
11507
|
-
|
|
11549
|
+
background-color: var(--gray-200);
|
|
11508
11550
|
}
|
|
11509
11551
|
`;
|
|
11510
|
-
var textarea2 =
|
|
11552
|
+
var textarea2 = css56`
|
|
11511
11553
|
resize: vertical;
|
|
11512
11554
|
min-height: 2rem;
|
|
11513
11555
|
`;
|
|
11514
|
-
var imageWrapper =
|
|
11556
|
+
var imageWrapper = css56`
|
|
11515
11557
|
background: var(--white);
|
|
11516
11558
|
`;
|
|
11517
|
-
var img =
|
|
11559
|
+
var img = css56`
|
|
11518
11560
|
animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
11519
11561
|
object-fit: contain;
|
|
11520
11562
|
max-width: 100%;
|
|
@@ -11522,7 +11564,7 @@ var img = css55`
|
|
|
11522
11564
|
opacity: var(--opacity-0);
|
|
11523
11565
|
margin: var(--spacing-sm) auto 0;
|
|
11524
11566
|
`;
|
|
11525
|
-
var dataConnectButton =
|
|
11567
|
+
var dataConnectButton = css56`
|
|
11526
11568
|
align-items: center;
|
|
11527
11569
|
appearance: none;
|
|
11528
11570
|
box-sizing: border-box;
|
|
@@ -11557,7 +11599,7 @@ var dataConnectButton = css55`
|
|
|
11557
11599
|
pointer-events: none;
|
|
11558
11600
|
}
|
|
11559
11601
|
`;
|
|
11560
|
-
var linkParameterBtn =
|
|
11602
|
+
var linkParameterBtn = css56`
|
|
11561
11603
|
border-radius: var(--rounded-base);
|
|
11562
11604
|
background: var(--white);
|
|
11563
11605
|
border: none;
|
|
@@ -11569,10 +11611,10 @@ var linkParameterBtn = css55`
|
|
|
11569
11611
|
inset: 0 var(--spacing-base) 0 auto;
|
|
11570
11612
|
padding: 0 var(--spacing-base);
|
|
11571
11613
|
`;
|
|
11572
|
-
var linkParameterInput =
|
|
11614
|
+
var linkParameterInput = css56`
|
|
11573
11615
|
padding-right: calc(var(--spacing-2xl) + var(--spacing-base));
|
|
11574
11616
|
`;
|
|
11575
|
-
var linkParameterIcon =
|
|
11617
|
+
var linkParameterIcon = css56`
|
|
11576
11618
|
align-items: center;
|
|
11577
11619
|
color: var(--brand-secondary-3);
|
|
11578
11620
|
display: flex;
|
|
@@ -11587,7 +11629,7 @@ var linkParameterIcon = css55`
|
|
|
11587
11629
|
`;
|
|
11588
11630
|
|
|
11589
11631
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
11590
|
-
import { jsx as
|
|
11632
|
+
import { jsx as jsx69, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
|
|
11591
11633
|
function ParameterDataResource({
|
|
11592
11634
|
label,
|
|
11593
11635
|
labelLeadingIcon,
|
|
@@ -11597,12 +11639,12 @@ function ParameterDataResource({
|
|
|
11597
11639
|
disabled,
|
|
11598
11640
|
children
|
|
11599
11641
|
}) {
|
|
11600
|
-
return /* @__PURE__ */
|
|
11601
|
-
/* @__PURE__ */
|
|
11642
|
+
return /* @__PURE__ */ jsxs45("div", { "data-testid": "parameter-data-connect-button", children: [
|
|
11643
|
+
/* @__PURE__ */ jsxs45("span", { css: labelText2, children: [
|
|
11602
11644
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
11603
11645
|
label
|
|
11604
11646
|
] }),
|
|
11605
|
-
/* @__PURE__ */
|
|
11647
|
+
/* @__PURE__ */ jsxs45(
|
|
11606
11648
|
"button",
|
|
11607
11649
|
{
|
|
11608
11650
|
type: "button",
|
|
@@ -11611,30 +11653,30 @@ function ParameterDataResource({
|
|
|
11611
11653
|
disabled,
|
|
11612
11654
|
onClick: onConnectDatasource,
|
|
11613
11655
|
children: [
|
|
11614
|
-
/* @__PURE__ */
|
|
11656
|
+
/* @__PURE__ */ jsx69("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx69(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
11615
11657
|
children
|
|
11616
11658
|
]
|
|
11617
11659
|
}
|
|
11618
11660
|
),
|
|
11619
|
-
caption ? /* @__PURE__ */
|
|
11661
|
+
caption ? /* @__PURE__ */ jsx69(Caption, { children: caption }) : null
|
|
11620
11662
|
] });
|
|
11621
11663
|
}
|
|
11622
11664
|
|
|
11623
11665
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
11624
|
-
import { css as
|
|
11625
|
-
var ParameterDrawerHeaderContainer =
|
|
11666
|
+
import { css as css57 } from "@emotion/react";
|
|
11667
|
+
var ParameterDrawerHeaderContainer = css57`
|
|
11626
11668
|
align-items: center;
|
|
11627
11669
|
display: flex;
|
|
11628
11670
|
gap: var(--spacing-base);
|
|
11629
11671
|
justify-content: space-between;
|
|
11630
11672
|
margin-bottom: var(--spacing-sm);
|
|
11631
11673
|
`;
|
|
11632
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
11674
|
+
var ParameterDrawerHeaderTitleGroup = css57`
|
|
11633
11675
|
align-items: center;
|
|
11634
11676
|
display: flex;
|
|
11635
11677
|
gap: var(--spacing-sm);
|
|
11636
11678
|
`;
|
|
11637
|
-
var ParameterDrawerHeaderTitle =
|
|
11679
|
+
var ParameterDrawerHeaderTitle = css57`
|
|
11638
11680
|
text-overflow: ellipsis;
|
|
11639
11681
|
white-space: nowrap;
|
|
11640
11682
|
overflow: hidden;
|
|
@@ -11642,12 +11684,12 @@ var ParameterDrawerHeaderTitle = css56`
|
|
|
11642
11684
|
`;
|
|
11643
11685
|
|
|
11644
11686
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
11645
|
-
import { jsx as
|
|
11687
|
+
import { jsx as jsx70, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
11646
11688
|
var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
11647
|
-
return /* @__PURE__ */
|
|
11648
|
-
/* @__PURE__ */
|
|
11689
|
+
return /* @__PURE__ */ jsxs46("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
11690
|
+
/* @__PURE__ */ jsxs46("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
11649
11691
|
iconBeforeTitle,
|
|
11650
|
-
/* @__PURE__ */
|
|
11692
|
+
/* @__PURE__ */ jsx70(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
|
|
11651
11693
|
] }),
|
|
11652
11694
|
children
|
|
11653
11695
|
] });
|
|
@@ -11657,8 +11699,8 @@ var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
|
11657
11699
|
import { forwardRef as forwardRef7 } from "react";
|
|
11658
11700
|
|
|
11659
11701
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
11660
|
-
import { css as
|
|
11661
|
-
var fieldsetStyles =
|
|
11702
|
+
import { css as css58 } from "@emotion/react";
|
|
11703
|
+
var fieldsetStyles = css58`
|
|
11662
11704
|
&:disabled,
|
|
11663
11705
|
[readonly] {
|
|
11664
11706
|
pointer-events: none;
|
|
@@ -11669,7 +11711,7 @@ var fieldsetStyles = css57`
|
|
|
11669
11711
|
}
|
|
11670
11712
|
}
|
|
11671
11713
|
`;
|
|
11672
|
-
var fieldsetLegend2 =
|
|
11714
|
+
var fieldsetLegend2 = css58`
|
|
11673
11715
|
display: block;
|
|
11674
11716
|
font-weight: var(--fw-medium);
|
|
11675
11717
|
margin-bottom: var(--spacing-sm);
|
|
@@ -11677,11 +11719,11 @@ var fieldsetLegend2 = css57`
|
|
|
11677
11719
|
`;
|
|
11678
11720
|
|
|
11679
11721
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
11680
|
-
import { jsx as
|
|
11722
|
+
import { jsx as jsx71, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
11681
11723
|
var ParameterGroup = forwardRef7(
|
|
11682
11724
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
11683
|
-
return /* @__PURE__ */
|
|
11684
|
-
/* @__PURE__ */
|
|
11725
|
+
return /* @__PURE__ */ jsxs47("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
11726
|
+
/* @__PURE__ */ jsx71("legend", { css: fieldsetLegend2, children: legend }),
|
|
11685
11727
|
children
|
|
11686
11728
|
] });
|
|
11687
11729
|
}
|
|
@@ -11694,21 +11736,21 @@ import { forwardRef as forwardRef9, useCallback as useCallback2, useDeferredValu
|
|
|
11694
11736
|
import { useState as useState7 } from "react";
|
|
11695
11737
|
|
|
11696
11738
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
11697
|
-
import { jsx as
|
|
11739
|
+
import { jsx as jsx72 } from "@emotion/react/jsx-runtime";
|
|
11698
11740
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
11699
|
-
return !asSpan ? /* @__PURE__ */
|
|
11741
|
+
return !asSpan ? /* @__PURE__ */ jsx72("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx72("span", { "aria-labelledby": id, css: labelText2, children });
|
|
11700
11742
|
};
|
|
11701
11743
|
|
|
11702
11744
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
11703
11745
|
import { forwardRef as forwardRef8 } from "react";
|
|
11704
|
-
import { jsx as
|
|
11746
|
+
import { jsx as jsx73 } from "@emotion/react/jsx-runtime";
|
|
11705
11747
|
var ParameterMenuButton = forwardRef8(
|
|
11706
11748
|
({ label, children }, ref) => {
|
|
11707
|
-
return /* @__PURE__ */
|
|
11749
|
+
return /* @__PURE__ */ jsx73(
|
|
11708
11750
|
Menu,
|
|
11709
11751
|
{
|
|
11710
11752
|
menuLabel: `${label} menu`,
|
|
11711
|
-
menuTrigger: /* @__PURE__ */
|
|
11753
|
+
menuTrigger: /* @__PURE__ */ jsx73(
|
|
11712
11754
|
"button",
|
|
11713
11755
|
{
|
|
11714
11756
|
className: "parameter-menu",
|
|
@@ -11716,7 +11758,7 @@ var ParameterMenuButton = forwardRef8(
|
|
|
11716
11758
|
type: "button",
|
|
11717
11759
|
"aria-label": `${label} options`,
|
|
11718
11760
|
ref,
|
|
11719
|
-
children: /* @__PURE__ */
|
|
11761
|
+
children: /* @__PURE__ */ jsx73(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
11720
11762
|
}
|
|
11721
11763
|
),
|
|
11722
11764
|
children
|
|
@@ -11726,15 +11768,15 @@ var ParameterMenuButton = forwardRef8(
|
|
|
11726
11768
|
);
|
|
11727
11769
|
|
|
11728
11770
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
11729
|
-
import { css as
|
|
11730
|
-
var emptyParameterShell =
|
|
11771
|
+
import { css as css59 } from "@emotion/react";
|
|
11772
|
+
var emptyParameterShell = css59`
|
|
11731
11773
|
border-radius: var(--rounded-sm);
|
|
11732
11774
|
background: var(--white);
|
|
11733
11775
|
flex-grow: 1;
|
|
11734
11776
|
padding: var(--spacing-xs);
|
|
11735
11777
|
position: relative;
|
|
11736
11778
|
`;
|
|
11737
|
-
var emptyParameterShellText =
|
|
11779
|
+
var emptyParameterShellText = css59`
|
|
11738
11780
|
background: var(--brand-secondary-6);
|
|
11739
11781
|
border-radius: var(--rounded-sm);
|
|
11740
11782
|
padding: var(--spacing-sm);
|
|
@@ -11742,7 +11784,7 @@ var emptyParameterShellText = css58`
|
|
|
11742
11784
|
font-size: var(--fs-sm);
|
|
11743
11785
|
margin: 0;
|
|
11744
11786
|
`;
|
|
11745
|
-
var overrideMarker =
|
|
11787
|
+
var overrideMarker = css59`
|
|
11746
11788
|
border-radius: var(--rounded-sm);
|
|
11747
11789
|
border: 10px solid var(--gray-300);
|
|
11748
11790
|
border-left-color: transparent;
|
|
@@ -11753,7 +11795,7 @@ var overrideMarker = css58`
|
|
|
11753
11795
|
`;
|
|
11754
11796
|
|
|
11755
11797
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
11756
|
-
import { jsx as
|
|
11798
|
+
import { jsx as jsx74, jsxs as jsxs48 } from "@emotion/react/jsx-runtime";
|
|
11757
11799
|
var extractParameterProps = (props) => {
|
|
11758
11800
|
const {
|
|
11759
11801
|
id,
|
|
@@ -11809,18 +11851,18 @@ var ParameterShell = ({
|
|
|
11809
11851
|
const [manualErrorMessage, setManualErrorMessage] = useState7(void 0);
|
|
11810
11852
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
11811
11853
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
11812
|
-
return /* @__PURE__ */
|
|
11813
|
-
hiddenLabel || title ? null : /* @__PURE__ */
|
|
11854
|
+
return /* @__PURE__ */ jsxs48("div", { css: inputContainer2, ...props, children: [
|
|
11855
|
+
hiddenLabel || title ? null : /* @__PURE__ */ jsxs48(ParameterLabel, { id, css: labelText2, children: [
|
|
11814
11856
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
11815
11857
|
label
|
|
11816
11858
|
] }),
|
|
11817
|
-
!title ? null : /* @__PURE__ */
|
|
11859
|
+
!title ? null : /* @__PURE__ */ jsxs48(ParameterLabel, { id, asSpan: true, children: [
|
|
11818
11860
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
11819
11861
|
title
|
|
11820
11862
|
] }),
|
|
11821
|
-
/* @__PURE__ */
|
|
11822
|
-
menuItems ? /* @__PURE__ */
|
|
11823
|
-
/* @__PURE__ */
|
|
11863
|
+
/* @__PURE__ */ jsxs48("div", { css: inputWrapper, children: [
|
|
11864
|
+
menuItems ? /* @__PURE__ */ jsx74(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
11865
|
+
/* @__PURE__ */ jsx74(
|
|
11824
11866
|
ParameterShellContext.Provider,
|
|
11825
11867
|
{
|
|
11826
11868
|
value: {
|
|
@@ -11830,30 +11872,30 @@ var ParameterShell = ({
|
|
|
11830
11872
|
errorMessage: errorMessaging,
|
|
11831
11873
|
onManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
11832
11874
|
},
|
|
11833
|
-
children: /* @__PURE__ */
|
|
11875
|
+
children: /* @__PURE__ */ jsxs48(ParameterShellPlaceholder, { children: [
|
|
11834
11876
|
children,
|
|
11835
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
11877
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx74(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
11836
11878
|
] })
|
|
11837
11879
|
}
|
|
11838
11880
|
)
|
|
11839
11881
|
] }),
|
|
11840
|
-
caption ? /* @__PURE__ */
|
|
11841
|
-
errorMessaging ? /* @__PURE__ */
|
|
11882
|
+
caption ? /* @__PURE__ */ jsx74(Caption, { testId: captionTestId, children: caption }) : null,
|
|
11883
|
+
errorMessaging ? /* @__PURE__ */ jsx74(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null
|
|
11842
11884
|
] });
|
|
11843
11885
|
};
|
|
11844
11886
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
11845
|
-
return /* @__PURE__ */
|
|
11887
|
+
return /* @__PURE__ */ jsx74("div", { css: emptyParameterShell, children });
|
|
11846
11888
|
};
|
|
11847
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
11889
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx74(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx74("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx74("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
11848
11890
|
|
|
11849
11891
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
11850
|
-
import { Fragment as Fragment10, jsx as
|
|
11892
|
+
import { Fragment as Fragment10, jsx as jsx75, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
11851
11893
|
var ParameterImage = forwardRef9((props, ref) => {
|
|
11852
11894
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
11853
|
-
return /* @__PURE__ */
|
|
11895
|
+
return /* @__PURE__ */ jsx75(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: /* @__PURE__ */ jsx75(ParameterImageInner, { ref, ...innerProps }) });
|
|
11854
11896
|
});
|
|
11855
11897
|
var BrokenImage = ({ ...props }) => {
|
|
11856
|
-
return /* @__PURE__ */
|
|
11898
|
+
return /* @__PURE__ */ jsxs49(
|
|
11857
11899
|
"svg",
|
|
11858
11900
|
{
|
|
11859
11901
|
width: "214",
|
|
@@ -11864,11 +11906,11 @@ var BrokenImage = ({ ...props }) => {
|
|
|
11864
11906
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
11865
11907
|
...props,
|
|
11866
11908
|
children: [
|
|
11867
|
-
/* @__PURE__ */
|
|
11868
|
-
/* @__PURE__ */
|
|
11869
|
-
/* @__PURE__ */
|
|
11870
|
-
/* @__PURE__ */
|
|
11871
|
-
/* @__PURE__ */
|
|
11909
|
+
/* @__PURE__ */ jsx75("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
11910
|
+
/* @__PURE__ */ jsx75("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
11911
|
+
/* @__PURE__ */ jsxs49("defs", { children: [
|
|
11912
|
+
/* @__PURE__ */ jsx75("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx75("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
11913
|
+
/* @__PURE__ */ jsx75(
|
|
11872
11914
|
"image",
|
|
11873
11915
|
{
|
|
11874
11916
|
id: "image0_761_4353",
|
|
@@ -11920,8 +11962,8 @@ var ParameterImageInner = forwardRef9(
|
|
|
11920
11962
|
useEffect7(() => {
|
|
11921
11963
|
updateImageSrc();
|
|
11922
11964
|
}, [value]);
|
|
11923
|
-
return /* @__PURE__ */
|
|
11924
|
-
/* @__PURE__ */
|
|
11965
|
+
return /* @__PURE__ */ jsxs49(Fragment10, { children: [
|
|
11966
|
+
/* @__PURE__ */ jsx75(
|
|
11925
11967
|
"input",
|
|
11926
11968
|
{
|
|
11927
11969
|
css: input2,
|
|
@@ -11933,8 +11975,8 @@ var ParameterImageInner = forwardRef9(
|
|
|
11933
11975
|
...props
|
|
11934
11976
|
}
|
|
11935
11977
|
),
|
|
11936
|
-
/* @__PURE__ */
|
|
11937
|
-
deferredValue && !errorMessage ? /* @__PURE__ */
|
|
11978
|
+
/* @__PURE__ */ jsxs49("div", { css: imageWrapper, children: [
|
|
11979
|
+
deferredValue && !errorMessage ? /* @__PURE__ */ jsx75(
|
|
11938
11980
|
"img",
|
|
11939
11981
|
{
|
|
11940
11982
|
src: deferredValue,
|
|
@@ -11944,24 +11986,24 @@ var ParameterImageInner = forwardRef9(
|
|
|
11944
11986
|
loading: "lazy"
|
|
11945
11987
|
}
|
|
11946
11988
|
) : null,
|
|
11947
|
-
deferredValue && errorMessage ? /* @__PURE__ */
|
|
11989
|
+
deferredValue && errorMessage ? /* @__PURE__ */ jsx75(BrokenImage, { css: img }) : null
|
|
11948
11990
|
] }),
|
|
11949
|
-
loading ? /* @__PURE__ */
|
|
11991
|
+
loading ? /* @__PURE__ */ jsx75(LoadingIcon, {}) : null
|
|
11950
11992
|
] });
|
|
11951
11993
|
}
|
|
11952
11994
|
);
|
|
11953
11995
|
|
|
11954
11996
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
11955
11997
|
import { forwardRef as forwardRef10 } from "react";
|
|
11956
|
-
import { jsx as
|
|
11998
|
+
import { jsx as jsx76 } from "@emotion/react/jsx-runtime";
|
|
11957
11999
|
var ParameterInput = forwardRef10((props, ref) => {
|
|
11958
12000
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
11959
|
-
return /* @__PURE__ */
|
|
12001
|
+
return /* @__PURE__ */ jsx76(ParameterShell, { "data-test-id": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx76(ParameterInputInner, { ref, ...innerProps }) });
|
|
11960
12002
|
});
|
|
11961
12003
|
var ParameterInputInner = forwardRef10(
|
|
11962
12004
|
({ ...props }, ref) => {
|
|
11963
12005
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
11964
|
-
return /* @__PURE__ */
|
|
12006
|
+
return /* @__PURE__ */ jsx76(
|
|
11965
12007
|
"input",
|
|
11966
12008
|
{
|
|
11967
12009
|
css: input2,
|
|
@@ -11978,18 +12020,18 @@ var ParameterInputInner = forwardRef10(
|
|
|
11978
12020
|
|
|
11979
12021
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
11980
12022
|
import { forwardRef as forwardRef11 } from "react";
|
|
11981
|
-
import { jsx as
|
|
12023
|
+
import { jsx as jsx77, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
11982
12024
|
var ParameterLink = forwardRef11(
|
|
11983
12025
|
({ buttonText = "Select project map node", disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
11984
12026
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
11985
|
-
return /* @__PURE__ */
|
|
12027
|
+
return /* @__PURE__ */ jsx77(
|
|
11986
12028
|
ParameterShell,
|
|
11987
12029
|
{
|
|
11988
12030
|
"data-test-id": "link-parameter-editor",
|
|
11989
12031
|
...shellProps,
|
|
11990
12032
|
label: innerProps.value ? shellProps.label : "",
|
|
11991
12033
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
11992
|
-
children: !innerProps.value ? /* @__PURE__ */
|
|
12034
|
+
children: !innerProps.value ? /* @__PURE__ */ jsx77("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText }) : /* @__PURE__ */ jsx77(
|
|
11993
12035
|
ParameterLinkInner,
|
|
11994
12036
|
{
|
|
11995
12037
|
onConnectLink,
|
|
@@ -12005,8 +12047,8 @@ var ParameterLink = forwardRef11(
|
|
|
12005
12047
|
var ParameterLinkInner = forwardRef11(
|
|
12006
12048
|
({ externalLink, onConnectLink, disabled, ...props }, ref) => {
|
|
12007
12049
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
12008
|
-
return /* @__PURE__ */
|
|
12009
|
-
/* @__PURE__ */
|
|
12050
|
+
return /* @__PURE__ */ jsxs50("div", { css: inputWrapper, children: [
|
|
12051
|
+
/* @__PURE__ */ jsx77(
|
|
12010
12052
|
"input",
|
|
12011
12053
|
{
|
|
12012
12054
|
type: "text",
|
|
@@ -12018,7 +12060,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
12018
12060
|
...props
|
|
12019
12061
|
}
|
|
12020
12062
|
),
|
|
12021
|
-
/* @__PURE__ */
|
|
12063
|
+
/* @__PURE__ */ jsx77(
|
|
12022
12064
|
"button",
|
|
12023
12065
|
{
|
|
12024
12066
|
type: "button",
|
|
@@ -12029,7 +12071,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
12029
12071
|
children: "edit"
|
|
12030
12072
|
}
|
|
12031
12073
|
),
|
|
12032
|
-
externalLink ? /* @__PURE__ */
|
|
12074
|
+
externalLink ? /* @__PURE__ */ jsx77(
|
|
12033
12075
|
"a",
|
|
12034
12076
|
{
|
|
12035
12077
|
href: externalLink,
|
|
@@ -12037,7 +12079,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
12037
12079
|
title: "Open link in new tab",
|
|
12038
12080
|
target: "_blank",
|
|
12039
12081
|
rel: "noopener noreferrer",
|
|
12040
|
-
children: /* @__PURE__ */
|
|
12082
|
+
children: /* @__PURE__ */ jsx77(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
12041
12083
|
}
|
|
12042
12084
|
) : null
|
|
12043
12085
|
] });
|
|
@@ -12045,7 +12087,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
12045
12087
|
);
|
|
12046
12088
|
|
|
12047
12089
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
12048
|
-
import { Fragment as Fragment11, jsx as
|
|
12090
|
+
import { Fragment as Fragment11, jsx as jsx78, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
12049
12091
|
var ParameterNameAndPublicIdInput = ({
|
|
12050
12092
|
id,
|
|
12051
12093
|
onBlur,
|
|
@@ -12071,8 +12113,8 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
12071
12113
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
12072
12114
|
};
|
|
12073
12115
|
autoFocus == null ? void 0 : autoFocus();
|
|
12074
|
-
return /* @__PURE__ */
|
|
12075
|
-
/* @__PURE__ */
|
|
12116
|
+
return /* @__PURE__ */ jsxs51(Fragment11, { children: [
|
|
12117
|
+
/* @__PURE__ */ jsx78(
|
|
12076
12118
|
ParameterInput,
|
|
12077
12119
|
{
|
|
12078
12120
|
id: nameIdField,
|
|
@@ -12091,7 +12133,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
12091
12133
|
value: values[nameIdField]
|
|
12092
12134
|
}
|
|
12093
12135
|
),
|
|
12094
|
-
/* @__PURE__ */
|
|
12136
|
+
/* @__PURE__ */ jsx78(
|
|
12095
12137
|
ParameterInput,
|
|
12096
12138
|
{
|
|
12097
12139
|
id: publicIdFieldName,
|
|
@@ -12105,11 +12147,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
12105
12147
|
caption: publicIdCaption,
|
|
12106
12148
|
placeholder: publicIdPlaceholderText,
|
|
12107
12149
|
errorMessage: publicIdError,
|
|
12108
|
-
menuItems: /* @__PURE__ */
|
|
12150
|
+
menuItems: /* @__PURE__ */ jsx78(
|
|
12109
12151
|
MenuItem,
|
|
12110
12152
|
{
|
|
12111
12153
|
disabled: !values[publicIdFieldName],
|
|
12112
|
-
icon: /* @__PURE__ */
|
|
12154
|
+
icon: /* @__PURE__ */ jsx78(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
12113
12155
|
onClick: handleCopyPidFieldValue,
|
|
12114
12156
|
children: "Copy"
|
|
12115
12157
|
}
|
|
@@ -12117,13 +12159,13 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
12117
12159
|
value: values[publicIdFieldName]
|
|
12118
12160
|
}
|
|
12119
12161
|
),
|
|
12120
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
12162
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx78(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
12121
12163
|
] });
|
|
12122
12164
|
};
|
|
12123
12165
|
|
|
12124
12166
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
12125
12167
|
import { forwardRef as forwardRef12 } from "react";
|
|
12126
|
-
import { Fragment as Fragment12, jsx as
|
|
12168
|
+
import { Fragment as Fragment12, jsx as jsx79, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
12127
12169
|
var ParameterRichText = forwardRef12(
|
|
12128
12170
|
({
|
|
12129
12171
|
label,
|
|
@@ -12137,7 +12179,7 @@ var ParameterRichText = forwardRef12(
|
|
|
12137
12179
|
menuItems,
|
|
12138
12180
|
...props
|
|
12139
12181
|
}, ref) => {
|
|
12140
|
-
return /* @__PURE__ */
|
|
12182
|
+
return /* @__PURE__ */ jsxs52(
|
|
12141
12183
|
ParameterShell,
|
|
12142
12184
|
{
|
|
12143
12185
|
"data-test-id": "parameter-input",
|
|
@@ -12150,8 +12192,8 @@ var ParameterRichText = forwardRef12(
|
|
|
12150
12192
|
captionTestId,
|
|
12151
12193
|
menuItems,
|
|
12152
12194
|
children: [
|
|
12153
|
-
/* @__PURE__ */
|
|
12154
|
-
menuItems ? /* @__PURE__ */
|
|
12195
|
+
/* @__PURE__ */ jsx79(ParameterRichTextInner, { ref, ...props }),
|
|
12196
|
+
menuItems ? /* @__PURE__ */ jsx79(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx79(Fragment12, { children: menuItems }) }) : null
|
|
12155
12197
|
]
|
|
12156
12198
|
}
|
|
12157
12199
|
);
|
|
@@ -12159,7 +12201,7 @@ var ParameterRichText = forwardRef12(
|
|
|
12159
12201
|
);
|
|
12160
12202
|
var ParameterRichTextInner = forwardRef12(({ ...props }, ref) => {
|
|
12161
12203
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
12162
|
-
return /* @__PURE__ */
|
|
12204
|
+
return /* @__PURE__ */ jsx79(
|
|
12163
12205
|
"textarea",
|
|
12164
12206
|
{
|
|
12165
12207
|
css: [input2, textarea2],
|
|
@@ -12173,17 +12215,17 @@ var ParameterRichTextInner = forwardRef12(({ ...props }, ref) => {
|
|
|
12173
12215
|
|
|
12174
12216
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
12175
12217
|
import { forwardRef as forwardRef13 } from "react";
|
|
12176
|
-
import { jsx as
|
|
12218
|
+
import { jsx as jsx80, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
12177
12219
|
var ParameterSelect = forwardRef13(
|
|
12178
12220
|
({ defaultOption, options, ...props }, ref) => {
|
|
12179
12221
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
12180
|
-
return /* @__PURE__ */
|
|
12222
|
+
return /* @__PURE__ */ jsx80(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx80(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
12181
12223
|
}
|
|
12182
12224
|
);
|
|
12183
12225
|
var ParameterSelectInner = forwardRef13(
|
|
12184
12226
|
({ defaultOption, options, ...props }, ref) => {
|
|
12185
12227
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
12186
|
-
return /* @__PURE__ */
|
|
12228
|
+
return /* @__PURE__ */ jsxs53(
|
|
12187
12229
|
"select",
|
|
12188
12230
|
{
|
|
12189
12231
|
css: [input2, selectInput],
|
|
@@ -12192,10 +12234,10 @@ var ParameterSelectInner = forwardRef13(
|
|
|
12192
12234
|
ref,
|
|
12193
12235
|
...props,
|
|
12194
12236
|
children: [
|
|
12195
|
-
defaultOption ? /* @__PURE__ */
|
|
12237
|
+
defaultOption ? /* @__PURE__ */ jsx80("option", { value: "", children: defaultOption }) : null,
|
|
12196
12238
|
options.map((option) => {
|
|
12197
12239
|
var _a;
|
|
12198
|
-
return /* @__PURE__ */
|
|
12240
|
+
return /* @__PURE__ */ jsx80("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
12199
12241
|
})
|
|
12200
12242
|
]
|
|
12201
12243
|
}
|
|
@@ -12205,14 +12247,14 @@ var ParameterSelectInner = forwardRef13(
|
|
|
12205
12247
|
|
|
12206
12248
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
12207
12249
|
import { forwardRef as forwardRef14 } from "react";
|
|
12208
|
-
import { jsx as
|
|
12250
|
+
import { jsx as jsx81 } from "@emotion/react/jsx-runtime";
|
|
12209
12251
|
var ParameterTextarea = forwardRef14((props, ref) => {
|
|
12210
12252
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
12211
|
-
return /* @__PURE__ */
|
|
12253
|
+
return /* @__PURE__ */ jsx81(ParameterShell, { "data-test-id": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx81(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
12212
12254
|
});
|
|
12213
12255
|
var ParameterTextareaInner = forwardRef14(({ ...props }, ref) => {
|
|
12214
12256
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
12215
|
-
return /* @__PURE__ */
|
|
12257
|
+
return /* @__PURE__ */ jsx81(
|
|
12216
12258
|
"textarea",
|
|
12217
12259
|
{
|
|
12218
12260
|
css: [input2, textarea2],
|
|
@@ -12226,17 +12268,17 @@ var ParameterTextareaInner = forwardRef14(({ ...props }, ref) => {
|
|
|
12226
12268
|
|
|
12227
12269
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
12228
12270
|
import { forwardRef as forwardRef15 } from "react";
|
|
12229
|
-
import { jsx as
|
|
12271
|
+
import { jsx as jsx82, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
12230
12272
|
var ParameterToggle = forwardRef15((props, ref) => {
|
|
12231
12273
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
12232
|
-
return /* @__PURE__ */
|
|
12274
|
+
return /* @__PURE__ */ jsx82(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx82(ParameterToggleInner, { ref, ...innerProps }) });
|
|
12233
12275
|
});
|
|
12234
12276
|
var ParameterToggleInner = forwardRef15(
|
|
12235
12277
|
({ ...props }, ref) => {
|
|
12236
12278
|
const { id, label } = useParameterShell();
|
|
12237
|
-
return /* @__PURE__ */
|
|
12238
|
-
/* @__PURE__ */
|
|
12239
|
-
/* @__PURE__ */
|
|
12279
|
+
return /* @__PURE__ */ jsxs54("label", { css: inputToggleLabel2, children: [
|
|
12280
|
+
/* @__PURE__ */ jsx82("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
12281
|
+
/* @__PURE__ */ jsx82("span", { css: inlineLabel2, children: label })
|
|
12240
12282
|
] });
|
|
12241
12283
|
}
|
|
12242
12284
|
);
|
|
@@ -12250,13 +12292,13 @@ import {
|
|
|
12250
12292
|
import { Portal as Portal2 } from "reakit/Portal";
|
|
12251
12293
|
|
|
12252
12294
|
// src/components/Popover/Popover.styles.ts
|
|
12253
|
-
import { css as
|
|
12254
|
-
var PopoverBtn =
|
|
12295
|
+
import { css as css60 } from "@emotion/react";
|
|
12296
|
+
var PopoverBtn = css60`
|
|
12255
12297
|
border: none;
|
|
12256
12298
|
background: none;
|
|
12257
12299
|
padding: 0;
|
|
12258
12300
|
`;
|
|
12259
|
-
var Popover =
|
|
12301
|
+
var Popover = css60`
|
|
12260
12302
|
border-left: var(--spacing-xs) solid var(--brand-secondary-3);
|
|
12261
12303
|
border-radius: var(--rounded-base);
|
|
12262
12304
|
box-shadow: var(--shadow-base);
|
|
@@ -12269,7 +12311,7 @@ var Popover = css59`
|
|
|
12269
12311
|
`;
|
|
12270
12312
|
|
|
12271
12313
|
// src/components/Popover/Popover.tsx
|
|
12272
|
-
import { Fragment as Fragment13, jsx as
|
|
12314
|
+
import { Fragment as Fragment13, jsx as jsx83, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
12273
12315
|
var Popover2 = ({
|
|
12274
12316
|
iconColor = "green",
|
|
12275
12317
|
buttonText,
|
|
@@ -12278,28 +12320,28 @@ var Popover2 = ({
|
|
|
12278
12320
|
children
|
|
12279
12321
|
}) => {
|
|
12280
12322
|
const popover = usePopoverState({ placement });
|
|
12281
|
-
return /* @__PURE__ */
|
|
12282
|
-
/* @__PURE__ */
|
|
12283
|
-
/* @__PURE__ */
|
|
12284
|
-
/* @__PURE__ */
|
|
12323
|
+
return /* @__PURE__ */ jsxs55(Fragment13, { children: [
|
|
12324
|
+
/* @__PURE__ */ jsxs55(PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, children: [
|
|
12325
|
+
/* @__PURE__ */ jsx83(Icon, { icon: "info", iconColor, size: "1rem" }),
|
|
12326
|
+
/* @__PURE__ */ jsx83("span", { hidden: true, children: buttonText })
|
|
12285
12327
|
] }),
|
|
12286
|
-
/* @__PURE__ */
|
|
12328
|
+
/* @__PURE__ */ jsx83(Portal2, { children: /* @__PURE__ */ jsx83(ReakitPopover, { css: Popover, ...popover, "aria-label": ariaLabel, children }) })
|
|
12287
12329
|
] });
|
|
12288
12330
|
};
|
|
12289
12331
|
|
|
12290
12332
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
12291
|
-
import { css as
|
|
12333
|
+
import { css as css61, keyframes as keyframes4 } from "@emotion/react";
|
|
12292
12334
|
var lightFadingOut = keyframes4`
|
|
12293
12335
|
from { opacity: 0.1; }
|
|
12294
12336
|
to { opacity: 0.025; }
|
|
12295
12337
|
`;
|
|
12296
|
-
var skeletonStyles =
|
|
12338
|
+
var skeletonStyles = css61`
|
|
12297
12339
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
12298
12340
|
background-color: var(--gray-900);
|
|
12299
12341
|
`;
|
|
12300
12342
|
|
|
12301
12343
|
// src/components/Skeleton/Skeleton.tsx
|
|
12302
|
-
import { jsx as
|
|
12344
|
+
import { jsx as jsx84 } from "@emotion/react/jsx-runtime";
|
|
12303
12345
|
var Skeleton = ({
|
|
12304
12346
|
width = "100%",
|
|
12305
12347
|
height = "1.25rem",
|
|
@@ -12307,7 +12349,7 @@ var Skeleton = ({
|
|
|
12307
12349
|
circle = false,
|
|
12308
12350
|
children,
|
|
12309
12351
|
...otherProps
|
|
12310
|
-
}) => /* @__PURE__ */
|
|
12352
|
+
}) => /* @__PURE__ */ jsx84(
|
|
12311
12353
|
"div",
|
|
12312
12354
|
{
|
|
12313
12355
|
css: [
|
|
@@ -12330,8 +12372,8 @@ var Skeleton = ({
|
|
|
12330
12372
|
import * as React15 from "react";
|
|
12331
12373
|
|
|
12332
12374
|
// src/components/Switch/Switch.styles.ts
|
|
12333
|
-
import { css as
|
|
12334
|
-
var SwitchInputContainer =
|
|
12375
|
+
import { css as css62 } from "@emotion/react";
|
|
12376
|
+
var SwitchInputContainer = css62`
|
|
12335
12377
|
cursor: pointer;
|
|
12336
12378
|
display: inline-block;
|
|
12337
12379
|
position: relative;
|
|
@@ -12340,7 +12382,7 @@ var SwitchInputContainer = css61`
|
|
|
12340
12382
|
vertical-align: middle;
|
|
12341
12383
|
user-select: none;
|
|
12342
12384
|
`;
|
|
12343
|
-
var SwitchInput =
|
|
12385
|
+
var SwitchInput = css62`
|
|
12344
12386
|
appearance: none;
|
|
12345
12387
|
border-radius: var(--rounded-full);
|
|
12346
12388
|
background-color: var(--white);
|
|
@@ -12378,7 +12420,7 @@ var SwitchInput = css61`
|
|
|
12378
12420
|
cursor: not-allowed;
|
|
12379
12421
|
}
|
|
12380
12422
|
`;
|
|
12381
|
-
var SwitchInputDisabled =
|
|
12423
|
+
var SwitchInputDisabled = css62`
|
|
12382
12424
|
opacity: var(--opacity-50);
|
|
12383
12425
|
cursor: not-allowed;
|
|
12384
12426
|
|
|
@@ -12386,7 +12428,7 @@ var SwitchInputDisabled = css61`
|
|
|
12386
12428
|
cursor: not-allowed;
|
|
12387
12429
|
}
|
|
12388
12430
|
`;
|
|
12389
|
-
var SwitchInputLabel =
|
|
12431
|
+
var SwitchInputLabel = css62`
|
|
12390
12432
|
align-items: center;
|
|
12391
12433
|
color: var(--brand-secondary-1);
|
|
12392
12434
|
display: inline-flex;
|
|
@@ -12408,26 +12450,26 @@ var SwitchInputLabel = css61`
|
|
|
12408
12450
|
top: 0;
|
|
12409
12451
|
}
|
|
12410
12452
|
`;
|
|
12411
|
-
var SwitchText =
|
|
12453
|
+
var SwitchText = css62`
|
|
12412
12454
|
color: var(--gray-500);
|
|
12413
12455
|
font-size: var(--fs-sm);
|
|
12414
12456
|
padding-inline: var(--spacing-2xl) 0;
|
|
12415
12457
|
`;
|
|
12416
12458
|
|
|
12417
12459
|
// src/components/Switch/Switch.tsx
|
|
12418
|
-
import { Fragment as Fragment14, jsx as
|
|
12460
|
+
import { Fragment as Fragment14, jsx as jsx85, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
12419
12461
|
var Switch = React15.forwardRef(
|
|
12420
12462
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
12421
12463
|
let additionalText = infoText;
|
|
12422
12464
|
if (infoText && toggleText) {
|
|
12423
12465
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
12424
12466
|
}
|
|
12425
|
-
return /* @__PURE__ */
|
|
12426
|
-
/* @__PURE__ */
|
|
12427
|
-
/* @__PURE__ */
|
|
12428
|
-
/* @__PURE__ */
|
|
12467
|
+
return /* @__PURE__ */ jsxs56(Fragment14, { children: [
|
|
12468
|
+
/* @__PURE__ */ jsxs56("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
12469
|
+
/* @__PURE__ */ jsx85("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
12470
|
+
/* @__PURE__ */ jsx85("span", { css: SwitchInputLabel, children: label })
|
|
12429
12471
|
] }),
|
|
12430
|
-
additionalText ? /* @__PURE__ */
|
|
12472
|
+
additionalText ? /* @__PURE__ */ jsx85("p", { css: SwitchText, children: additionalText }) : null,
|
|
12431
12473
|
children
|
|
12432
12474
|
] });
|
|
12433
12475
|
}
|
|
@@ -12437,64 +12479,64 @@ var Switch = React15.forwardRef(
|
|
|
12437
12479
|
import * as React16 from "react";
|
|
12438
12480
|
|
|
12439
12481
|
// src/components/Table/Table.styles.ts
|
|
12440
|
-
import { css as
|
|
12441
|
-
var table =
|
|
12482
|
+
import { css as css63 } from "@emotion/react";
|
|
12483
|
+
var table = css63`
|
|
12442
12484
|
border-bottom: 1px solid var(--gray-400);
|
|
12443
12485
|
border-collapse: collapse;
|
|
12444
12486
|
min-width: 100%;
|
|
12445
12487
|
table-layout: auto;
|
|
12446
12488
|
`;
|
|
12447
|
-
var tableHead =
|
|
12489
|
+
var tableHead = css63`
|
|
12448
12490
|
background: var(--gray-100);
|
|
12449
12491
|
color: var(--brand-secondary-1);
|
|
12450
12492
|
text-align: left;
|
|
12451
12493
|
`;
|
|
12452
|
-
var tableRow =
|
|
12494
|
+
var tableRow = css63`
|
|
12453
12495
|
border-bottom: 1px solid var(--gray-200);
|
|
12454
12496
|
`;
|
|
12455
|
-
var tableCellHead =
|
|
12497
|
+
var tableCellHead = css63`
|
|
12456
12498
|
font-size: var(--fs-sm);
|
|
12457
12499
|
padding: var(--spacing-base) var(--spacing-md);
|
|
12458
12500
|
text-transform: uppercase;
|
|
12459
12501
|
font-weight: var(--fw-bold);
|
|
12460
12502
|
`;
|
|
12461
|
-
var tableCellData =
|
|
12503
|
+
var tableCellData = css63`
|
|
12462
12504
|
padding: var(--spacing-base) var(--spacing-md);
|
|
12463
12505
|
`;
|
|
12464
12506
|
|
|
12465
12507
|
// src/components/Table/Table.tsx
|
|
12466
|
-
import { jsx as
|
|
12508
|
+
import { jsx as jsx86 } from "@emotion/react/jsx-runtime";
|
|
12467
12509
|
var Table = React16.forwardRef(({ children, ...otherProps }, ref) => {
|
|
12468
|
-
return /* @__PURE__ */
|
|
12510
|
+
return /* @__PURE__ */ jsx86("table", { ref, css: table, ...otherProps, children });
|
|
12469
12511
|
});
|
|
12470
12512
|
var TableHead = React16.forwardRef(
|
|
12471
12513
|
({ children, ...otherProps }, ref) => {
|
|
12472
|
-
return /* @__PURE__ */
|
|
12514
|
+
return /* @__PURE__ */ jsx86("thead", { ref, css: tableHead, ...otherProps, children });
|
|
12473
12515
|
}
|
|
12474
12516
|
);
|
|
12475
12517
|
var TableBody = React16.forwardRef(
|
|
12476
12518
|
({ children, ...otherProps }, ref) => {
|
|
12477
|
-
return /* @__PURE__ */
|
|
12519
|
+
return /* @__PURE__ */ jsx86("tbody", { ref, ...otherProps, children });
|
|
12478
12520
|
}
|
|
12479
12521
|
);
|
|
12480
12522
|
var TableFoot = React16.forwardRef(
|
|
12481
12523
|
({ children, ...otherProps }, ref) => {
|
|
12482
|
-
return /* @__PURE__ */
|
|
12524
|
+
return /* @__PURE__ */ jsx86("tfoot", { ref, ...otherProps, children });
|
|
12483
12525
|
}
|
|
12484
12526
|
);
|
|
12485
12527
|
var TableRow = React16.forwardRef(
|
|
12486
12528
|
({ children, ...otherProps }, ref) => {
|
|
12487
|
-
return /* @__PURE__ */
|
|
12529
|
+
return /* @__PURE__ */ jsx86("tr", { ref, css: tableRow, ...otherProps, children });
|
|
12488
12530
|
}
|
|
12489
12531
|
);
|
|
12490
12532
|
var TableCellHead = React16.forwardRef(
|
|
12491
12533
|
({ children, ...otherProps }, ref) => {
|
|
12492
|
-
return /* @__PURE__ */
|
|
12534
|
+
return /* @__PURE__ */ jsx86("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
12493
12535
|
}
|
|
12494
12536
|
);
|
|
12495
12537
|
var TableCellData = React16.forwardRef(
|
|
12496
12538
|
({ children, ...otherProps }, ref) => {
|
|
12497
|
-
return /* @__PURE__ */
|
|
12539
|
+
return /* @__PURE__ */ jsx86("td", { ref, css: tableCellData, ...otherProps, children });
|
|
12498
12540
|
}
|
|
12499
12541
|
);
|
|
12500
12542
|
|
|
@@ -12508,8 +12550,8 @@ import {
|
|
|
12508
12550
|
} from "reakit/Tab";
|
|
12509
12551
|
|
|
12510
12552
|
// src/components/Tabs/Tabs.styles.ts
|
|
12511
|
-
import { css as
|
|
12512
|
-
var tabButtonStyles =
|
|
12553
|
+
import { css as css64 } from "@emotion/react";
|
|
12554
|
+
var tabButtonStyles = css64`
|
|
12513
12555
|
align-items: center;
|
|
12514
12556
|
border: 0;
|
|
12515
12557
|
height: 2.5rem;
|
|
@@ -12526,14 +12568,14 @@ var tabButtonStyles = css63`
|
|
|
12526
12568
|
-webkit-text-stroke-width: thin;
|
|
12527
12569
|
}
|
|
12528
12570
|
`;
|
|
12529
|
-
var tabButtonGroupStyles =
|
|
12571
|
+
var tabButtonGroupStyles = css64`
|
|
12530
12572
|
display: flex;
|
|
12531
12573
|
gap: var(--spacing-base);
|
|
12532
12574
|
border-bottom: 1px solid var(--gray-300);
|
|
12533
12575
|
`;
|
|
12534
12576
|
|
|
12535
12577
|
// src/components/Tabs/Tabs.tsx
|
|
12536
|
-
import { jsx as
|
|
12578
|
+
import { jsx as jsx87 } from "@emotion/react/jsx-runtime";
|
|
12537
12579
|
var CurrentTabContext = createContext6(null);
|
|
12538
12580
|
var useCurrentTab = () => {
|
|
12539
12581
|
const context = useContext7(CurrentTabContext);
|
|
@@ -12562,24 +12604,24 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
12562
12604
|
tab.setSelectedId(selected);
|
|
12563
12605
|
}
|
|
12564
12606
|
}, [selected]);
|
|
12565
|
-
return /* @__PURE__ */
|
|
12607
|
+
return /* @__PURE__ */ jsx87(CurrentTabContext.Provider, { value: tab, children });
|
|
12566
12608
|
};
|
|
12567
12609
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
12568
12610
|
const currentTab = useCurrentTab();
|
|
12569
|
-
return /* @__PURE__ */
|
|
12611
|
+
return /* @__PURE__ */ jsx87(ReakitTabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
12570
12612
|
};
|
|
12571
12613
|
var TabButton = ({ children, id, ...props }) => {
|
|
12572
12614
|
const currentTab = useCurrentTab();
|
|
12573
|
-
return /* @__PURE__ */
|
|
12615
|
+
return /* @__PURE__ */ jsx87(ReakitTab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
12574
12616
|
};
|
|
12575
12617
|
var TabContent = ({ children, ...props }) => {
|
|
12576
12618
|
const currentTab = useCurrentTab();
|
|
12577
|
-
return /* @__PURE__ */
|
|
12619
|
+
return /* @__PURE__ */ jsx87(ReakitTabPanel, { ...props, ...currentTab, children });
|
|
12578
12620
|
};
|
|
12579
12621
|
|
|
12580
12622
|
// src/components/Validation/StatusBullet.styles.ts
|
|
12581
|
-
import { css as
|
|
12582
|
-
var StatusBulletContainer =
|
|
12623
|
+
import { css as css65 } from "@emotion/react";
|
|
12624
|
+
var StatusBulletContainer = css65`
|
|
12583
12625
|
align-items: center;
|
|
12584
12626
|
align-self: center;
|
|
12585
12627
|
color: var(--gray-500);
|
|
@@ -12596,51 +12638,51 @@ var StatusBulletContainer = css64`
|
|
|
12596
12638
|
display: block;
|
|
12597
12639
|
}
|
|
12598
12640
|
`;
|
|
12599
|
-
var StatusBulletBase =
|
|
12641
|
+
var StatusBulletBase = css65`
|
|
12600
12642
|
font-size: var(--fs-sm);
|
|
12601
12643
|
&:before {
|
|
12602
12644
|
width: var(--fs-xs);
|
|
12603
12645
|
height: var(--fs-xs);
|
|
12604
12646
|
}
|
|
12605
12647
|
`;
|
|
12606
|
-
var StatusBulletSmall =
|
|
12648
|
+
var StatusBulletSmall = css65`
|
|
12607
12649
|
font-size: var(--fs-xs);
|
|
12608
12650
|
&:before {
|
|
12609
12651
|
width: var(--fs-xxs);
|
|
12610
12652
|
height: var(--fs-xxs);
|
|
12611
12653
|
}
|
|
12612
12654
|
`;
|
|
12613
|
-
var StatusDraft =
|
|
12655
|
+
var StatusDraft = css65`
|
|
12614
12656
|
&:before {
|
|
12615
12657
|
background: var(--white);
|
|
12616
12658
|
box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
|
|
12617
12659
|
}
|
|
12618
12660
|
`;
|
|
12619
|
-
var StatusModified =
|
|
12661
|
+
var StatusModified = css65`
|
|
12620
12662
|
&:before {
|
|
12621
12663
|
background: linear-gradient(to right, var(--white) 50%, var(--brand-primary-1) 50% 100%);
|
|
12622
12664
|
box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
|
|
12623
12665
|
}
|
|
12624
12666
|
`;
|
|
12625
|
-
var StatusError =
|
|
12667
|
+
var StatusError = css65`
|
|
12626
12668
|
color: var(--error);
|
|
12627
12669
|
&:before {
|
|
12628
12670
|
background: linear-gradient(120deg, var(--error) 40%, var(--white) 50%, var(--error) 60%);
|
|
12629
12671
|
}
|
|
12630
12672
|
`;
|
|
12631
|
-
var StatusPublished =
|
|
12673
|
+
var StatusPublished = css65`
|
|
12632
12674
|
&:before {
|
|
12633
12675
|
background: var(--brand-secondary-3);
|
|
12634
12676
|
}
|
|
12635
12677
|
`;
|
|
12636
|
-
var StatusOrphan =
|
|
12678
|
+
var StatusOrphan = css65`
|
|
12637
12679
|
&:before {
|
|
12638
12680
|
background: var(--brand-secondary-5);
|
|
12639
12681
|
}
|
|
12640
12682
|
`;
|
|
12641
12683
|
|
|
12642
12684
|
// src/components/Validation/StatusBullet.tsx
|
|
12643
|
-
import { jsx as
|
|
12685
|
+
import { jsx as jsx88 } from "@emotion/react/jsx-runtime";
|
|
12644
12686
|
var StatusBullet = ({
|
|
12645
12687
|
status,
|
|
12646
12688
|
hideText = false,
|
|
@@ -12657,7 +12699,7 @@ var StatusBullet = ({
|
|
|
12657
12699
|
Draft: StatusDraft
|
|
12658
12700
|
};
|
|
12659
12701
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
12660
|
-
return /* @__PURE__ */
|
|
12702
|
+
return /* @__PURE__ */ jsx88(
|
|
12661
12703
|
"span",
|
|
12662
12704
|
{
|
|
12663
12705
|
role: "status",
|
|
@@ -12709,6 +12751,7 @@ export {
|
|
|
12709
12751
|
IntegrationModalHeader,
|
|
12710
12752
|
IntegrationModalIcon,
|
|
12711
12753
|
IntegrationTile,
|
|
12754
|
+
JsonEditor,
|
|
12712
12755
|
Label,
|
|
12713
12756
|
Legend,
|
|
12714
12757
|
LimitsBar,
|
|
@@ -12783,6 +12826,7 @@ export {
|
|
|
12783
12826
|
buttonGhost,
|
|
12784
12827
|
buttonGhostDestructive,
|
|
12785
12828
|
buttonPrimary,
|
|
12829
|
+
buttonPrimaryInvert,
|
|
12786
12830
|
buttonRippleEffect,
|
|
12787
12831
|
buttonSecondary,
|
|
12788
12832
|
buttonSecondaryInvert,
|