@uniformdev/design-system 19.95.0 → 19.96.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +659 -356
- package/dist/index.d.mts +25 -10
- package/dist/index.d.ts +25 -10
- package/dist/index.js +748 -438
- package/package.json +5 -4
package/dist/esm/index.js
CHANGED
|
@@ -13966,21 +13966,6 @@ var InfoMessage = ({ message, testId, ...props }) => {
|
|
|
13966
13966
|
// src/components/Input/Input.tsx
|
|
13967
13967
|
import * as React16 from "react";
|
|
13968
13968
|
|
|
13969
|
-
// src/components/Input/Label.tsx
|
|
13970
|
-
import { jsx as jsx54 } from "@emotion/react/jsx-runtime";
|
|
13971
|
-
var Label = ({ children, className, testId, ...props }) => {
|
|
13972
|
-
return /* @__PURE__ */ jsx54(
|
|
13973
|
-
"label",
|
|
13974
|
-
{
|
|
13975
|
-
css: [labelText, typeof className === "object" ? className : void 0],
|
|
13976
|
-
className: typeof className === "string" ? className : "",
|
|
13977
|
-
"data-testid": testId,
|
|
13978
|
-
...props,
|
|
13979
|
-
children
|
|
13980
|
-
}
|
|
13981
|
-
);
|
|
13982
|
-
};
|
|
13983
|
-
|
|
13984
13969
|
// src/components/Input/WarningMessage.tsx
|
|
13985
13970
|
import { MdWarning as MdWarning2 } from "@react-icons/all-files/md/MdWarning";
|
|
13986
13971
|
|
|
@@ -13997,16 +13982,56 @@ var WarningIcon = css50`
|
|
|
13997
13982
|
`;
|
|
13998
13983
|
|
|
13999
13984
|
// src/components/Input/WarningMessage.tsx
|
|
14000
|
-
import { jsx as
|
|
13985
|
+
import { jsx as jsx54, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
|
|
14001
13986
|
var WarningMessage = ({ message, testId, ...props }) => {
|
|
14002
13987
|
return message ? /* @__PURE__ */ jsxs33("span", { role: "status", css: WarningText, "data-testid": testId != null ? testId : "message-text", ...props, children: [
|
|
14003
|
-
/* @__PURE__ */
|
|
13988
|
+
/* @__PURE__ */ jsx54("span", { children: /* @__PURE__ */ jsx54(Icon, { css: WarningIcon, icon: MdWarning2, size: "1rem", iconColor: "currentColor" }) }),
|
|
14004
13989
|
message
|
|
14005
13990
|
] }) : null;
|
|
14006
13991
|
};
|
|
14007
13992
|
|
|
13993
|
+
// src/components/Input/FieldMessage.tsx
|
|
13994
|
+
import { jsx as jsx55 } from "@emotion/react/jsx-runtime";
|
|
13995
|
+
var FieldMessage = ({
|
|
13996
|
+
helperMessage,
|
|
13997
|
+
warningMessage,
|
|
13998
|
+
errorMessage,
|
|
13999
|
+
infoMessage,
|
|
14000
|
+
errorTestId,
|
|
14001
|
+
helperMessageTestId
|
|
14002
|
+
}) => {
|
|
14003
|
+
if (errorMessage) {
|
|
14004
|
+
return /* @__PURE__ */ jsx55(ErrorMessage, { message: errorMessage, testId: errorTestId });
|
|
14005
|
+
}
|
|
14006
|
+
if (warningMessage) {
|
|
14007
|
+
return /* @__PURE__ */ jsx55(WarningMessage, { message: warningMessage });
|
|
14008
|
+
}
|
|
14009
|
+
if (infoMessage) {
|
|
14010
|
+
return /* @__PURE__ */ jsx55(InfoMessage, { message: infoMessage });
|
|
14011
|
+
}
|
|
14012
|
+
if (helperMessage) {
|
|
14013
|
+
return /* @__PURE__ */ jsx55(Caption, { testId: helperMessageTestId, children: helperMessage });
|
|
14014
|
+
}
|
|
14015
|
+
return null;
|
|
14016
|
+
};
|
|
14017
|
+
|
|
14018
|
+
// src/components/Input/Label.tsx
|
|
14019
|
+
import { jsx as jsx56 } from "@emotion/react/jsx-runtime";
|
|
14020
|
+
var Label = ({ children, className, testId, ...props }) => {
|
|
14021
|
+
return /* @__PURE__ */ jsx56(
|
|
14022
|
+
"label",
|
|
14023
|
+
{
|
|
14024
|
+
css: [labelText, typeof className === "object" ? className : void 0],
|
|
14025
|
+
className: typeof className === "string" ? className : "",
|
|
14026
|
+
"data-testid": testId,
|
|
14027
|
+
...props,
|
|
14028
|
+
children
|
|
14029
|
+
}
|
|
14030
|
+
);
|
|
14031
|
+
};
|
|
14032
|
+
|
|
14008
14033
|
// src/components/Input/Input.tsx
|
|
14009
|
-
import { jsx as
|
|
14034
|
+
import { jsx as jsx57, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
|
|
14010
14035
|
var Input = React16.forwardRef(
|
|
14011
14036
|
({
|
|
14012
14037
|
label,
|
|
@@ -14032,7 +14057,7 @@ var Input = React16.forwardRef(
|
|
|
14032
14057
|
css: [inputContainer, typeof classNameRoot === "object" ? classNameRoot : void 0],
|
|
14033
14058
|
"data-testid": containerTestId ? containerTestId : "input-container",
|
|
14034
14059
|
children: [
|
|
14035
|
-
showLabel ? /* @__PURE__ */
|
|
14060
|
+
showLabel ? /* @__PURE__ */ jsx57(
|
|
14036
14061
|
Label,
|
|
14037
14062
|
{
|
|
14038
14063
|
htmlFor: id,
|
|
@@ -14048,7 +14073,7 @@ var Input = React16.forwardRef(
|
|
|
14048
14073
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
14049
14074
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
14050
14075
|
children: [
|
|
14051
|
-
/* @__PURE__ */
|
|
14076
|
+
/* @__PURE__ */ jsx57(
|
|
14052
14077
|
"input",
|
|
14053
14078
|
{
|
|
14054
14079
|
id,
|
|
@@ -14064,13 +14089,20 @@ var Input = React16.forwardRef(
|
|
|
14064
14089
|
ref
|
|
14065
14090
|
}
|
|
14066
14091
|
),
|
|
14067
|
-
icon ? /* @__PURE__ */
|
|
14092
|
+
icon ? /* @__PURE__ */ jsx57("div", { css: inputIcon, children: icon }) : null
|
|
14068
14093
|
]
|
|
14069
14094
|
}
|
|
14070
14095
|
),
|
|
14071
|
-
|
|
14072
|
-
|
|
14073
|
-
|
|
14096
|
+
/* @__PURE__ */ jsx57(
|
|
14097
|
+
FieldMessage,
|
|
14098
|
+
{
|
|
14099
|
+
helperMessage: caption,
|
|
14100
|
+
errorMessage,
|
|
14101
|
+
warningMessage,
|
|
14102
|
+
helperMessageTestId: captionTestId,
|
|
14103
|
+
errorTestId
|
|
14104
|
+
}
|
|
14105
|
+
)
|
|
14074
14106
|
]
|
|
14075
14107
|
}
|
|
14076
14108
|
);
|
|
@@ -14079,10 +14111,10 @@ var Input = React16.forwardRef(
|
|
|
14079
14111
|
|
|
14080
14112
|
// src/components/Input/InputComboBox.tsx
|
|
14081
14113
|
import Select from "react-select";
|
|
14082
|
-
import { jsx as
|
|
14114
|
+
import { jsx as jsx58 } from "@emotion/react/jsx-runtime";
|
|
14083
14115
|
function InputComboBox(props) {
|
|
14084
14116
|
var _a;
|
|
14085
|
-
return /* @__PURE__ */
|
|
14117
|
+
return /* @__PURE__ */ jsx58(
|
|
14086
14118
|
Select,
|
|
14087
14119
|
{
|
|
14088
14120
|
...props,
|
|
@@ -14282,7 +14314,7 @@ var inlineSelectMenuClosed = css51`
|
|
|
14282
14314
|
`;
|
|
14283
14315
|
|
|
14284
14316
|
// src/components/Input/InputInlineSelect.tsx
|
|
14285
|
-
import { jsx as
|
|
14317
|
+
import { jsx as jsx59, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
14286
14318
|
var InputInlineSelect = ({
|
|
14287
14319
|
classNameContainer,
|
|
14288
14320
|
options,
|
|
@@ -14320,18 +14352,18 @@ var InputInlineSelect = ({
|
|
|
14320
14352
|
disabled: disabled2,
|
|
14321
14353
|
...props,
|
|
14322
14354
|
children: [
|
|
14323
|
-
/* @__PURE__ */
|
|
14324
|
-
disabled2 ? null : /* @__PURE__ */
|
|
14355
|
+
/* @__PURE__ */ jsx59("span", { children: (_a = selected == null ? void 0 : selected.label) != null ? _a : value }),
|
|
14356
|
+
disabled2 ? null : /* @__PURE__ */ jsx59(Icon, { icon: CgChevronDown2, iconColor: "currentColor", size: 24 })
|
|
14325
14357
|
]
|
|
14326
14358
|
}
|
|
14327
14359
|
),
|
|
14328
|
-
/* @__PURE__ */
|
|
14360
|
+
/* @__PURE__ */ jsx59(
|
|
14329
14361
|
"div",
|
|
14330
14362
|
{
|
|
14331
14363
|
id: `and-or-${props.id}`,
|
|
14332
14364
|
css: [inlineSelectMenu, menuVisible ? void 0 : inlineSelectMenuClosed],
|
|
14333
14365
|
"aria-hidden": !menuVisible,
|
|
14334
|
-
children: options.map((opt) => /* @__PURE__ */
|
|
14366
|
+
children: options.map((opt) => /* @__PURE__ */ jsx59(
|
|
14335
14367
|
"button",
|
|
14336
14368
|
{
|
|
14337
14369
|
type: "button",
|
|
@@ -14354,7 +14386,7 @@ var InputInlineSelect = ({
|
|
|
14354
14386
|
// src/components/Input/InputKeywordSearch.tsx
|
|
14355
14387
|
import { CgClose as CgClose4 } from "@react-icons/all-files/cg/CgClose";
|
|
14356
14388
|
import { CgSearch } from "@react-icons/all-files/cg/CgSearch";
|
|
14357
|
-
import { jsx as
|
|
14389
|
+
import { jsx as jsx60 } from "@emotion/react/jsx-runtime";
|
|
14358
14390
|
var InputKeywordSearch = ({
|
|
14359
14391
|
onSearchTextChanged,
|
|
14360
14392
|
disabled: disabled2 = false,
|
|
@@ -14375,7 +14407,7 @@ var InputKeywordSearch = ({
|
|
|
14375
14407
|
e.preventDefault();
|
|
14376
14408
|
}
|
|
14377
14409
|
};
|
|
14378
|
-
return /* @__PURE__ */
|
|
14410
|
+
return /* @__PURE__ */ jsx60(
|
|
14379
14411
|
Input,
|
|
14380
14412
|
{
|
|
14381
14413
|
type: "text",
|
|
@@ -14383,7 +14415,7 @@ var InputKeywordSearch = ({
|
|
|
14383
14415
|
placeholder,
|
|
14384
14416
|
showLabel: false,
|
|
14385
14417
|
value,
|
|
14386
|
-
icon: value ? /* @__PURE__ */
|
|
14418
|
+
icon: value ? /* @__PURE__ */ jsx60("button", { css: inputSearchCloseBtn, onClick: onClear, type: "button", children: /* @__PURE__ */ jsx60(Icon, { icon: CgClose4, iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ jsx60(Icon, { icon: CgSearch, iconColor: "gray", size: "1rem" }),
|
|
14387
14419
|
onChange: handleSearchTextChanged,
|
|
14388
14420
|
onKeyPress: preventSubmitOnField,
|
|
14389
14421
|
disabled: disabled2,
|
|
@@ -14402,7 +14434,7 @@ var InputKeywordSearch = ({
|
|
|
14402
14434
|
};
|
|
14403
14435
|
|
|
14404
14436
|
// src/components/Input/InputSelect.tsx
|
|
14405
|
-
import { Fragment as Fragment8, jsx as
|
|
14437
|
+
import { Fragment as Fragment8, jsx as jsx61, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
14406
14438
|
var InputSelect = ({
|
|
14407
14439
|
label,
|
|
14408
14440
|
defaultOption,
|
|
@@ -14424,7 +14456,7 @@ var InputSelect = ({
|
|
|
14424
14456
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
14425
14457
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
14426
14458
|
children: [
|
|
14427
|
-
showLabel ? /* @__PURE__ */
|
|
14459
|
+
showLabel ? /* @__PURE__ */ jsx61(Fragment8, { children: /* @__PURE__ */ jsxs36(
|
|
14428
14460
|
Label,
|
|
14429
14461
|
{
|
|
14430
14462
|
htmlFor: props.id,
|
|
@@ -14451,14 +14483,12 @@ var InputSelect = ({
|
|
|
14451
14483
|
className: typeof classNameControl === "string" ? classNameControl : "",
|
|
14452
14484
|
...props,
|
|
14453
14485
|
children: [
|
|
14454
|
-
defaultOption ? /* @__PURE__ */
|
|
14455
|
-
options.map((opt, index) => /* @__PURE__ */
|
|
14486
|
+
defaultOption ? /* @__PURE__ */ jsx61("option", { value: "", children: defaultOption }) : null,
|
|
14487
|
+
options.map((opt, index) => /* @__PURE__ */ jsx61("option", { value: opt.label, ...opt }, index))
|
|
14456
14488
|
]
|
|
14457
14489
|
}
|
|
14458
14490
|
),
|
|
14459
|
-
|
|
14460
|
-
errorMessage ? /* @__PURE__ */ jsx60(ErrorMessage, { message: errorMessage }) : null,
|
|
14461
|
-
warningMessage && !errorMessage ? /* @__PURE__ */ jsx60(WarningMessage, { message: warningMessage }) : null
|
|
14491
|
+
/* @__PURE__ */ jsx61(FieldMessage, { helperMessage: caption, errorMessage, warningMessage })
|
|
14462
14492
|
]
|
|
14463
14493
|
}
|
|
14464
14494
|
);
|
|
@@ -14466,7 +14496,7 @@ var InputSelect = ({
|
|
|
14466
14496
|
|
|
14467
14497
|
// src/components/Input/InputToggle.tsx
|
|
14468
14498
|
import * as React17 from "react";
|
|
14469
|
-
import { jsx as
|
|
14499
|
+
import { jsx as jsx62, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
|
|
14470
14500
|
var InputToggle = React17.forwardRef(
|
|
14471
14501
|
({
|
|
14472
14502
|
label,
|
|
@@ -14492,7 +14522,7 @@ var InputToggle = React17.forwardRef(
|
|
|
14492
14522
|
css: [inputToggleLabel, disabled2 ? inputDisabled : void 0],
|
|
14493
14523
|
"data-testid": testId ? testId : "input-toggle",
|
|
14494
14524
|
children: [
|
|
14495
|
-
/* @__PURE__ */
|
|
14525
|
+
/* @__PURE__ */ jsx62(
|
|
14496
14526
|
"input",
|
|
14497
14527
|
{
|
|
14498
14528
|
ref,
|
|
@@ -14504,12 +14534,15 @@ var InputToggle = React17.forwardRef(
|
|
|
14504
14534
|
...props
|
|
14505
14535
|
}
|
|
14506
14536
|
),
|
|
14507
|
-
/* @__PURE__ */
|
|
14508
|
-
caption || errorMessage ? /* @__PURE__ */
|
|
14509
|
-
|
|
14510
|
-
|
|
14511
|
-
|
|
14512
|
-
|
|
14537
|
+
/* @__PURE__ */ jsx62("span", { css: [inlineLabel, fontWeightStyles[fontWeight]], children: label }),
|
|
14538
|
+
caption || errorMessage ? /* @__PURE__ */ jsx62("span", { css: inputToggleMessageContainer, children: /* @__PURE__ */ jsx62(
|
|
14539
|
+
FieldMessage,
|
|
14540
|
+
{
|
|
14541
|
+
helperMessage: caption,
|
|
14542
|
+
errorMessage,
|
|
14543
|
+
warningMessage
|
|
14544
|
+
}
|
|
14545
|
+
) }) : null
|
|
14513
14546
|
]
|
|
14514
14547
|
}
|
|
14515
14548
|
);
|
|
@@ -14517,9 +14550,9 @@ var InputToggle = React17.forwardRef(
|
|
|
14517
14550
|
);
|
|
14518
14551
|
|
|
14519
14552
|
// src/components/Input/Legend.tsx
|
|
14520
|
-
import { jsx as
|
|
14553
|
+
import { jsx as jsx63 } from "@emotion/react/jsx-runtime";
|
|
14521
14554
|
var Legend = ({ children }) => {
|
|
14522
|
-
return /* @__PURE__ */
|
|
14555
|
+
return /* @__PURE__ */ jsx63("legend", { css: fieldsetLegend, children });
|
|
14523
14556
|
};
|
|
14524
14557
|
|
|
14525
14558
|
// src/components/Input/SuccessMessage.tsx
|
|
@@ -14541,23 +14574,23 @@ var SuccessIcon2 = css53`
|
|
|
14541
14574
|
`;
|
|
14542
14575
|
|
|
14543
14576
|
// src/components/Input/SuccessMessage.tsx
|
|
14544
|
-
import { jsx as
|
|
14577
|
+
import { jsx as jsx64, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
|
|
14545
14578
|
var SuccessMessage = ({ message, testId, ...props }) => {
|
|
14546
14579
|
return message ? /* @__PURE__ */ jsxs38("span", { role: "status", css: SuccessText, "data-testid": testId, ...props, children: [
|
|
14547
|
-
/* @__PURE__ */
|
|
14580
|
+
/* @__PURE__ */ jsx64("span", { children: /* @__PURE__ */ jsx64(Icon, { css: SuccessIcon2, icon: CgCheckO, size: "1rem", iconColor: "currentColor" }) }),
|
|
14548
14581
|
message
|
|
14549
14582
|
] }) : null;
|
|
14550
14583
|
};
|
|
14551
14584
|
|
|
14552
14585
|
// src/components/Input/Textarea.tsx
|
|
14553
14586
|
import { forwardRef as forwardRef10 } from "react";
|
|
14554
|
-
import { Fragment as Fragment9, jsx as
|
|
14587
|
+
import { Fragment as Fragment9, jsx as jsx65, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
14555
14588
|
var Textarea = forwardRef10(
|
|
14556
14589
|
({ label, icon, id, caption, showLabel = true, errorMessage, warningMessage, ...props }, ref) => {
|
|
14557
14590
|
return /* @__PURE__ */ jsxs39(Fragment9, { children: [
|
|
14558
|
-
showLabel ? /* @__PURE__ */
|
|
14591
|
+
showLabel ? /* @__PURE__ */ jsx65("label", { htmlFor: id, css: [labelText], children: label }) : null,
|
|
14559
14592
|
/* @__PURE__ */ jsxs39("div", { css: [inputContainer], children: [
|
|
14560
|
-
/* @__PURE__ */
|
|
14593
|
+
/* @__PURE__ */ jsx65(
|
|
14561
14594
|
"textarea",
|
|
14562
14595
|
{
|
|
14563
14596
|
ref,
|
|
@@ -14572,11 +14605,9 @@ var Textarea = forwardRef10(
|
|
|
14572
14605
|
...props
|
|
14573
14606
|
}
|
|
14574
14607
|
),
|
|
14575
|
-
icon ? /* @__PURE__ */
|
|
14608
|
+
icon ? /* @__PURE__ */ jsx65("div", { css: inputIcon, children: icon }) : null
|
|
14576
14609
|
] }),
|
|
14577
|
-
|
|
14578
|
-
errorMessage ? /* @__PURE__ */ jsx64(ErrorMessage, { message: errorMessage }) : null,
|
|
14579
|
-
warningMessage && !errorMessage ? /* @__PURE__ */ jsx64(WarningMessage, { message: warningMessage }) : null
|
|
14610
|
+
/* @__PURE__ */ jsx65(FieldMessage, { helperMessage: caption, errorMessage, warningMessage })
|
|
14580
14611
|
] });
|
|
14581
14612
|
}
|
|
14582
14613
|
);
|
|
@@ -14633,7 +14664,7 @@ var variantFillImageImg = css54`
|
|
|
14633
14664
|
`;
|
|
14634
14665
|
|
|
14635
14666
|
// src/components/Image/ImageBroken.tsx
|
|
14636
|
-
import { jsx as
|
|
14667
|
+
import { jsx as jsx66, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
|
|
14637
14668
|
var ImageBroken = ({ width, height, ...props }) => {
|
|
14638
14669
|
return /* @__PURE__ */ jsxs40(
|
|
14639
14670
|
"svg",
|
|
@@ -14648,11 +14679,11 @@ var ImageBroken = ({ width, height, ...props }) => {
|
|
|
14648
14679
|
"data-testid": "broken-image",
|
|
14649
14680
|
...props,
|
|
14650
14681
|
children: [
|
|
14651
|
-
/* @__PURE__ */
|
|
14652
|
-
/* @__PURE__ */
|
|
14682
|
+
/* @__PURE__ */ jsx66("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
14683
|
+
/* @__PURE__ */ jsx66("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
14653
14684
|
/* @__PURE__ */ jsxs40("defs", { children: [
|
|
14654
|
-
/* @__PURE__ */
|
|
14655
|
-
/* @__PURE__ */
|
|
14685
|
+
/* @__PURE__ */ jsx66("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx66("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
14686
|
+
/* @__PURE__ */ jsx66(
|
|
14656
14687
|
"image",
|
|
14657
14688
|
{
|
|
14658
14689
|
id: "image0_761_4353",
|
|
@@ -14668,7 +14699,7 @@ var ImageBroken = ({ width, height, ...props }) => {
|
|
|
14668
14699
|
};
|
|
14669
14700
|
|
|
14670
14701
|
// src/components/Image/Image.tsx
|
|
14671
|
-
import { jsx as
|
|
14702
|
+
import { jsx as jsx67, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
14672
14703
|
var MIN_LOADING_MS = 100;
|
|
14673
14704
|
function Image({
|
|
14674
14705
|
alt,
|
|
@@ -14728,7 +14759,7 @@ function Image({
|
|
|
14728
14759
|
variant === "fill-container" ? variantFillImageWrapper : null
|
|
14729
14760
|
],
|
|
14730
14761
|
children: [
|
|
14731
|
-
src && !loadErrorText ? /* @__PURE__ */
|
|
14762
|
+
src && !loadErrorText ? /* @__PURE__ */ jsx67(
|
|
14732
14763
|
"img",
|
|
14733
14764
|
{
|
|
14734
14765
|
...imgAttribs,
|
|
@@ -14756,14 +14787,14 @@ function Image({
|
|
|
14756
14787
|
...variant === "fill-container" ? {} : { width, height }
|
|
14757
14788
|
},
|
|
14758
14789
|
children: [
|
|
14759
|
-
/* @__PURE__ */
|
|
14790
|
+
/* @__PURE__ */ jsx67(
|
|
14760
14791
|
ImageBroken,
|
|
14761
14792
|
{
|
|
14762
14793
|
css: [brokenImage, img, imgLoaded],
|
|
14763
14794
|
"data-testid": "broken-image"
|
|
14764
14795
|
}
|
|
14765
14796
|
),
|
|
14766
|
-
/* @__PURE__ */
|
|
14797
|
+
/* @__PURE__ */ jsx67(ErrorMessage, { message: loadErrorText, css: brokenImageMessage, truncated: true })
|
|
14767
14798
|
]
|
|
14768
14799
|
}
|
|
14769
14800
|
) : null
|
|
@@ -14907,7 +14938,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => css55`
|
|
|
14907
14938
|
`;
|
|
14908
14939
|
|
|
14909
14940
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
14910
|
-
import { jsx as
|
|
14941
|
+
import { jsx as jsx68, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
14911
14942
|
var CreateTeamIntegrationTile = ({
|
|
14912
14943
|
title: title2 = "Create a custom integration for your team",
|
|
14913
14944
|
buttonText = "Add Integration",
|
|
@@ -14916,7 +14947,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
14916
14947
|
...props
|
|
14917
14948
|
}) => {
|
|
14918
14949
|
return /* @__PURE__ */ jsxs42("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
14919
|
-
/* @__PURE__ */
|
|
14950
|
+
/* @__PURE__ */ jsx68("span", { css: IntegrationTileTitle, title: title2, children: title2 }),
|
|
14920
14951
|
/* @__PURE__ */ jsxs42(
|
|
14921
14952
|
Button,
|
|
14922
14953
|
{
|
|
@@ -14927,7 +14958,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
14927
14958
|
css: IntegrationTitleFakeButton,
|
|
14928
14959
|
children: [
|
|
14929
14960
|
buttonText,
|
|
14930
|
-
asDeepLink ? /* @__PURE__ */
|
|
14961
|
+
asDeepLink ? /* @__PURE__ */ jsx68(
|
|
14931
14962
|
Icon,
|
|
14932
14963
|
{
|
|
14933
14964
|
icon: CgChevronRight2,
|
|
@@ -14937,7 +14968,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
14937
14968
|
order: 1;
|
|
14938
14969
|
`
|
|
14939
14970
|
}
|
|
14940
|
-
) : /* @__PURE__ */
|
|
14971
|
+
) : /* @__PURE__ */ jsx68(
|
|
14941
14972
|
Icon,
|
|
14942
14973
|
{
|
|
14943
14974
|
icon: CgAdd2,
|
|
@@ -14958,31 +14989,31 @@ var CreateTeamIntegrationTile = ({
|
|
|
14958
14989
|
import { CgCheck } from "@react-icons/all-files/cg/CgCheck";
|
|
14959
14990
|
import { CgLock } from "@react-icons/all-files/cg/CgLock";
|
|
14960
14991
|
import { CgSandClock } from "@react-icons/all-files/cg/CgSandClock";
|
|
14961
|
-
import { jsx as
|
|
14992
|
+
import { jsx as jsx69, jsxs as jsxs43 } from "@emotion/react/jsx-runtime";
|
|
14962
14993
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
14963
14994
|
return /* @__PURE__ */ jsxs43("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
14964
|
-
/* @__PURE__ */
|
|
14995
|
+
/* @__PURE__ */ jsx69(Icon, { icon: CgCheck, iconColor: "currentColor" }),
|
|
14965
14996
|
text
|
|
14966
14997
|
] });
|
|
14967
14998
|
};
|
|
14968
14999
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
14969
|
-
return /* @__PURE__ */
|
|
15000
|
+
return /* @__PURE__ */ jsx69("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
14970
15001
|
};
|
|
14971
15002
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
14972
15003
|
return /* @__PURE__ */ jsxs43("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
14973
|
-
/* @__PURE__ */
|
|
15004
|
+
/* @__PURE__ */ jsx69(Icon, { icon: CgLock, iconColor: "currentColor", size: 12 }),
|
|
14974
15005
|
text
|
|
14975
15006
|
] });
|
|
14976
15007
|
};
|
|
14977
15008
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
14978
15009
|
return /* @__PURE__ */ jsxs43("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
14979
|
-
/* @__PURE__ */
|
|
15010
|
+
/* @__PURE__ */ jsx69(Icon, { icon: CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
14980
15011
|
text
|
|
14981
15012
|
] });
|
|
14982
15013
|
};
|
|
14983
15014
|
|
|
14984
15015
|
// src/components/Tiles/ResolveIcon.tsx
|
|
14985
|
-
import { jsx as
|
|
15016
|
+
import { jsx as jsx70 } from "@emotion/react/jsx-runtime";
|
|
14986
15017
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
14987
15018
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
14988
15019
|
const mapClassName = {
|
|
@@ -14990,13 +15021,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
14990
15021
|
logo: IntegrationTitleLogo
|
|
14991
15022
|
};
|
|
14992
15023
|
if (icon) {
|
|
14993
|
-
return CompIcon ? /* @__PURE__ */
|
|
15024
|
+
return CompIcon ? /* @__PURE__ */ jsx70(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ jsx70("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
14994
15025
|
}
|
|
14995
15026
|
return null;
|
|
14996
15027
|
};
|
|
14997
15028
|
|
|
14998
15029
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
14999
|
-
import { jsx as
|
|
15030
|
+
import { jsx as jsx71, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
15000
15031
|
var EditTeamIntegrationTile = ({
|
|
15001
15032
|
id,
|
|
15002
15033
|
icon,
|
|
@@ -15012,10 +15043,10 @@ var EditTeamIntegrationTile = ({
|
|
|
15012
15043
|
"data-testid": "configure-integration-container",
|
|
15013
15044
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
15014
15045
|
children: [
|
|
15015
|
-
/* @__PURE__ */
|
|
15016
|
-
/* @__PURE__ */
|
|
15017
|
-
!isPublic ? /* @__PURE__ */
|
|
15018
|
-
canEdit ? /* @__PURE__ */
|
|
15046
|
+
/* @__PURE__ */ jsx71(ResolveIcon, { icon, name, "data-testid": "integration-logo" }),
|
|
15047
|
+
/* @__PURE__ */ jsx71("span", { css: IntegrationTileName, "data-testid": "integration-card-name", children: name }),
|
|
15048
|
+
!isPublic ? /* @__PURE__ */ jsx71(IntegrationCustomBadge, {}) : null,
|
|
15049
|
+
canEdit ? /* @__PURE__ */ jsx71(
|
|
15019
15050
|
Button,
|
|
15020
15051
|
{
|
|
15021
15052
|
buttonType: "unimportant",
|
|
@@ -15036,7 +15067,7 @@ var EditTeamIntegrationTile = ({
|
|
|
15036
15067
|
import { css as css57 } from "@emotion/react";
|
|
15037
15068
|
import { CgHeart } from "@react-icons/all-files/cg/CgHeart";
|
|
15038
15069
|
import { useEffect as useEffect8, useState as useState8 } from "react";
|
|
15039
|
-
import { jsx as
|
|
15070
|
+
import { jsx as jsx72, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
|
|
15040
15071
|
var IntegrationComingSoon = ({
|
|
15041
15072
|
name,
|
|
15042
15073
|
icon,
|
|
@@ -15065,9 +15096,9 @@ var IntegrationComingSoon = ({
|
|
|
15065
15096
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
15066
15097
|
...props,
|
|
15067
15098
|
children: [
|
|
15068
|
-
/* @__PURE__ */
|
|
15069
|
-
/* @__PURE__ */
|
|
15070
|
-
/* @__PURE__ */
|
|
15099
|
+
/* @__PURE__ */ jsx72(IntegrationComingSoonBadge, {}),
|
|
15100
|
+
/* @__PURE__ */ jsx72(ResolveIcon, { icon, name }),
|
|
15101
|
+
/* @__PURE__ */ jsx72("span", { css: IntegrationTileName, title: name, children: name }),
|
|
15071
15102
|
/* @__PURE__ */ jsxs45(
|
|
15072
15103
|
Button,
|
|
15073
15104
|
{
|
|
@@ -15078,8 +15109,8 @@ var IntegrationComingSoon = ({
|
|
|
15078
15109
|
role: "link",
|
|
15079
15110
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
15080
15111
|
children: [
|
|
15081
|
-
/* @__PURE__ */
|
|
15082
|
-
/* @__PURE__ */
|
|
15112
|
+
/* @__PURE__ */ jsx72("strong", { children: "+1" }),
|
|
15113
|
+
/* @__PURE__ */ jsx72(
|
|
15083
15114
|
"span",
|
|
15084
15115
|
{
|
|
15085
15116
|
css: css57`
|
|
@@ -15090,7 +15121,7 @@ var IntegrationComingSoon = ({
|
|
|
15090
15121
|
}
|
|
15091
15122
|
),
|
|
15092
15123
|
/* @__PURE__ */ jsxs45("span", { "aria-hidden": !upVote, children: [
|
|
15093
|
-
/* @__PURE__ */
|
|
15124
|
+
/* @__PURE__ */ jsx72(Icon, { icon: CgHeart, iconColor: "currentColor", size: 18 }),
|
|
15094
15125
|
"Thanks!"
|
|
15095
15126
|
] })
|
|
15096
15127
|
]
|
|
@@ -15146,12 +15177,12 @@ var IntegrationLoadingFrame = css58`
|
|
|
15146
15177
|
`;
|
|
15147
15178
|
|
|
15148
15179
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
15149
|
-
import { Fragment as Fragment10, jsx as
|
|
15180
|
+
import { Fragment as Fragment10, jsx as jsx73, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
15150
15181
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
15151
15182
|
const componentCount = Array.from(Array(count).keys());
|
|
15152
|
-
return /* @__PURE__ */
|
|
15153
|
-
/* @__PURE__ */
|
|
15154
|
-
/* @__PURE__ */
|
|
15183
|
+
return /* @__PURE__ */ jsx73(Fragment10, { children: componentCount.map((i) => /* @__PURE__ */ jsxs46("div", { css: IntegrationLoadingTileContainer, children: [
|
|
15184
|
+
/* @__PURE__ */ jsx73("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
15185
|
+
/* @__PURE__ */ jsx73("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
15155
15186
|
] }, i)) });
|
|
15156
15187
|
};
|
|
15157
15188
|
|
|
@@ -15171,7 +15202,7 @@ var IntegrationModalImage = css59`
|
|
|
15171
15202
|
`;
|
|
15172
15203
|
|
|
15173
15204
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
15174
|
-
import { jsx as
|
|
15205
|
+
import { jsx as jsx74, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
15175
15206
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
15176
15207
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
15177
15208
|
let iconSrc = void 0;
|
|
@@ -15189,7 +15220,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
15189
15220
|
}
|
|
15190
15221
|
return /* @__PURE__ */ jsxs47("div", { css: IntegrationModalIconContainer, children: [
|
|
15191
15222
|
/* @__PURE__ */ jsxs47("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
15192
|
-
/* @__PURE__ */
|
|
15223
|
+
/* @__PURE__ */ jsx74(
|
|
15193
15224
|
"path",
|
|
15194
15225
|
{
|
|
15195
15226
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -15198,12 +15229,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
15198
15229
|
strokeWidth: "2"
|
|
15199
15230
|
}
|
|
15200
15231
|
),
|
|
15201
|
-
/* @__PURE__ */
|
|
15202
|
-
/* @__PURE__ */
|
|
15203
|
-
/* @__PURE__ */
|
|
15232
|
+
/* @__PURE__ */ jsx74("defs", { children: /* @__PURE__ */ jsxs47("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
15233
|
+
/* @__PURE__ */ jsx74("stop", { stopColor: "#1768B2" }),
|
|
15234
|
+
/* @__PURE__ */ jsx74("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
15204
15235
|
] }) })
|
|
15205
15236
|
] }),
|
|
15206
|
-
CompIcon ? /* @__PURE__ */
|
|
15237
|
+
CompIcon ? /* @__PURE__ */ jsx74(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : iconSrc ? /* @__PURE__ */ jsx74(
|
|
15207
15238
|
"img",
|
|
15208
15239
|
{
|
|
15209
15240
|
src: iconSrc,
|
|
@@ -15217,7 +15248,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
15217
15248
|
};
|
|
15218
15249
|
|
|
15219
15250
|
// src/components/Tiles/IntegrationTile.tsx
|
|
15220
|
-
import { jsx as
|
|
15251
|
+
import { jsx as jsx75, jsxs as jsxs48 } from "@emotion/react/jsx-runtime";
|
|
15221
15252
|
var IntegrationTile = ({
|
|
15222
15253
|
id,
|
|
15223
15254
|
icon,
|
|
@@ -15239,12 +15270,12 @@ var IntegrationTile = ({
|
|
|
15239
15270
|
"aria-label": name,
|
|
15240
15271
|
...btnProps,
|
|
15241
15272
|
children: [
|
|
15242
|
-
/* @__PURE__ */
|
|
15243
|
-
/* @__PURE__ */
|
|
15244
|
-
isInstalled ? /* @__PURE__ */
|
|
15245
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */
|
|
15246
|
-
!isPublic ? /* @__PURE__ */
|
|
15247
|
-
authorIcon ? /* @__PURE__ */
|
|
15273
|
+
/* @__PURE__ */ jsx75(ResolveIcon, { icon, name }),
|
|
15274
|
+
/* @__PURE__ */ jsx75("span", { css: IntegrationTileName, title: name, children: name }),
|
|
15275
|
+
isInstalled ? /* @__PURE__ */ jsx75(IntegrationedAddedBadge, {}) : null,
|
|
15276
|
+
requiedEntitlement && isPublic ? /* @__PURE__ */ jsx75(IntegrationPremiumBadge, {}) : null,
|
|
15277
|
+
!isPublic ? /* @__PURE__ */ jsx75(IntegrationCustomBadge, {}) : null,
|
|
15278
|
+
authorIcon ? /* @__PURE__ */ jsx75(ResolveIcon, { icon: authorIcon, name }) : null
|
|
15248
15279
|
]
|
|
15249
15280
|
}
|
|
15250
15281
|
);
|
|
@@ -15281,9 +15312,9 @@ var TileIsSelected = css60`
|
|
|
15281
15312
|
`;
|
|
15282
15313
|
|
|
15283
15314
|
// src/components/Tiles/Tile.tsx
|
|
15284
|
-
import { jsx as
|
|
15315
|
+
import { jsx as jsx76 } from "@emotion/react/jsx-runtime";
|
|
15285
15316
|
var Tile2 = ({ children, disabled: disabled2, isSelected, ...props }) => {
|
|
15286
|
-
return /* @__PURE__ */
|
|
15317
|
+
return /* @__PURE__ */ jsx76(
|
|
15287
15318
|
"button",
|
|
15288
15319
|
{
|
|
15289
15320
|
type: "button",
|
|
@@ -15315,7 +15346,7 @@ var TileContainerInner = (gap, templateColumns) => css61`
|
|
|
15315
15346
|
`;
|
|
15316
15347
|
|
|
15317
15348
|
// src/components/Tiles/TileContainer.tsx
|
|
15318
|
-
import { jsx as
|
|
15349
|
+
import { jsx as jsx77 } from "@emotion/react/jsx-runtime";
|
|
15319
15350
|
var TileContainer = ({
|
|
15320
15351
|
bgColor = "var(--brand-secondary-2)",
|
|
15321
15352
|
containerPadding = "base",
|
|
@@ -15324,7 +15355,7 @@ var TileContainer = ({
|
|
|
15324
15355
|
children,
|
|
15325
15356
|
...props
|
|
15326
15357
|
}) => {
|
|
15327
|
-
return /* @__PURE__ */
|
|
15358
|
+
return /* @__PURE__ */ jsx77("div", { css: TileContainerWrapper(bgColor, containerPadding), ...props, children: /* @__PURE__ */ jsx77("div", { css: TileContainerInner(gap, gridTemplateColumns), children }) });
|
|
15328
15359
|
};
|
|
15329
15360
|
|
|
15330
15361
|
// src/components/Tiles/styles/TileText.styles.ts
|
|
@@ -15339,10 +15370,10 @@ var TileText = css62`
|
|
|
15339
15370
|
`;
|
|
15340
15371
|
|
|
15341
15372
|
// src/components/Tiles/TileText.tsx
|
|
15342
|
-
import { jsx as
|
|
15373
|
+
import { jsx as jsx78 } from "@emotion/react/jsx-runtime";
|
|
15343
15374
|
var TileText2 = ({ as = "heading", children, ...props }) => {
|
|
15344
15375
|
const isHeading = as === "heading";
|
|
15345
|
-
return /* @__PURE__ */
|
|
15376
|
+
return /* @__PURE__ */ jsx78(
|
|
15346
15377
|
"span",
|
|
15347
15378
|
{
|
|
15348
15379
|
role: isHeading ? "heading" : void 0,
|
|
@@ -15391,7 +15422,7 @@ var IntegrationModalHeaderContentWrapper = css63`
|
|
|
15391
15422
|
`;
|
|
15392
15423
|
|
|
15393
15424
|
// src/components/IntegrationModalHeader/IntegrationModalHeader.tsx
|
|
15394
|
-
import { Fragment as Fragment11, jsx as
|
|
15425
|
+
import { Fragment as Fragment11, jsx as jsx79, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
15395
15426
|
var HexModalBackground = ({ ...props }) => {
|
|
15396
15427
|
return /* @__PURE__ */ jsxs49(
|
|
15397
15428
|
"svg",
|
|
@@ -15403,7 +15434,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
15403
15434
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15404
15435
|
...props,
|
|
15405
15436
|
children: [
|
|
15406
|
-
/* @__PURE__ */
|
|
15437
|
+
/* @__PURE__ */ jsx79(
|
|
15407
15438
|
"path",
|
|
15408
15439
|
{
|
|
15409
15440
|
fillRule: "evenodd",
|
|
@@ -15412,7 +15443,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
15412
15443
|
fill: "url(#paint0_linear_196_2737)"
|
|
15413
15444
|
}
|
|
15414
15445
|
),
|
|
15415
|
-
/* @__PURE__ */
|
|
15446
|
+
/* @__PURE__ */ jsx79("defs", { children: /* @__PURE__ */ jsxs49(
|
|
15416
15447
|
"linearGradient",
|
|
15417
15448
|
{
|
|
15418
15449
|
id: "paint0_linear_196_2737",
|
|
@@ -15422,8 +15453,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
15422
15453
|
y2: "-95.2742",
|
|
15423
15454
|
gradientUnits: "userSpaceOnUse",
|
|
15424
15455
|
children: [
|
|
15425
|
-
/* @__PURE__ */
|
|
15426
|
-
/* @__PURE__ */
|
|
15456
|
+
/* @__PURE__ */ jsx79("stop", { stopColor: "#81DCDE" }),
|
|
15457
|
+
/* @__PURE__ */ jsx79("stop", { offset: "1", stopColor: "#428ED4" })
|
|
15427
15458
|
]
|
|
15428
15459
|
}
|
|
15429
15460
|
) })
|
|
@@ -15433,22 +15464,22 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
15433
15464
|
};
|
|
15434
15465
|
var IntegrationModalHeader = ({ icon, name, menu, children }) => {
|
|
15435
15466
|
return /* @__PURE__ */ jsxs49(Fragment11, { children: [
|
|
15436
|
-
/* @__PURE__ */
|
|
15437
|
-
/* @__PURE__ */
|
|
15438
|
-
icon ? /* @__PURE__ */
|
|
15439
|
-
/* @__PURE__ */
|
|
15467
|
+
/* @__PURE__ */ jsx79(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
15468
|
+
/* @__PURE__ */ jsx79("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs49("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
15469
|
+
icon ? /* @__PURE__ */ jsx79(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
15470
|
+
/* @__PURE__ */ jsx79(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-testid": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
15440
15471
|
menu ? /* @__PURE__ */ jsxs49("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
15441
15472
|
menu,
|
|
15442
15473
|
" "
|
|
15443
15474
|
] }) : null
|
|
15444
15475
|
] }) }),
|
|
15445
|
-
/* @__PURE__ */
|
|
15476
|
+
/* @__PURE__ */ jsx79("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
15446
15477
|
] });
|
|
15447
15478
|
};
|
|
15448
15479
|
|
|
15449
15480
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
15450
15481
|
import MonacoEditor from "@monaco-editor/react";
|
|
15451
|
-
import { jsx as
|
|
15482
|
+
import { jsx as jsx80 } from "@emotion/react/jsx-runtime";
|
|
15452
15483
|
var minEditorHeightPx = 150;
|
|
15453
15484
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
15454
15485
|
let effectiveHeight = height;
|
|
@@ -15458,7 +15489,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
15458
15489
|
if (typeof effectiveHeight === "number" && effectiveHeight < minEditorHeightPx) {
|
|
15459
15490
|
effectiveHeight = minEditorHeightPx;
|
|
15460
15491
|
}
|
|
15461
|
-
return /* @__PURE__ */
|
|
15492
|
+
return /* @__PURE__ */ jsx80(
|
|
15462
15493
|
MonacoEditor,
|
|
15463
15494
|
{
|
|
15464
15495
|
height: effectiveHeight,
|
|
@@ -15527,7 +15558,7 @@ var LimitsBarTextColor = (statusColor) => css64`
|
|
|
15527
15558
|
`;
|
|
15528
15559
|
|
|
15529
15560
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
15530
|
-
import { jsx as
|
|
15561
|
+
import { jsx as jsx81, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
15531
15562
|
var LimitsBar = ({ current, max, label }) => {
|
|
15532
15563
|
const maxPercentage = 100;
|
|
15533
15564
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -15540,14 +15571,14 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
15540
15571
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
15541
15572
|
return /* @__PURE__ */ jsxs50("div", { css: LimitsBarContainer, children: [
|
|
15542
15573
|
/* @__PURE__ */ jsxs50("div", { css: LimitsBarLabelContainer, children: [
|
|
15543
|
-
/* @__PURE__ */
|
|
15574
|
+
/* @__PURE__ */ jsx81("span", { css: LimitsBarLabel, children: label }),
|
|
15544
15575
|
/* @__PURE__ */ jsxs50("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
15545
15576
|
current,
|
|
15546
15577
|
" of ",
|
|
15547
15578
|
max
|
|
15548
15579
|
] })
|
|
15549
15580
|
] }),
|
|
15550
|
-
/* @__PURE__ */
|
|
15581
|
+
/* @__PURE__ */ jsx81(
|
|
15551
15582
|
"div",
|
|
15552
15583
|
{
|
|
15553
15584
|
role: "progressbar",
|
|
@@ -15556,7 +15587,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
15556
15587
|
"aria-valuemax": max,
|
|
15557
15588
|
"aria-valuetext": `${current} of ${max}`,
|
|
15558
15589
|
css: LimitsBarProgressBar,
|
|
15559
|
-
children: /* @__PURE__ */
|
|
15590
|
+
children: /* @__PURE__ */ jsx81(
|
|
15560
15591
|
"span",
|
|
15561
15592
|
{
|
|
15562
15593
|
role: "presentation",
|
|
@@ -15588,10 +15619,10 @@ var LinkListTitle = css65`
|
|
|
15588
15619
|
`;
|
|
15589
15620
|
|
|
15590
15621
|
// src/components/LinkList/LinkList.tsx
|
|
15591
|
-
import { jsx as
|
|
15622
|
+
import { jsx as jsx82, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
15592
15623
|
var LinkList = ({ title: title2, padding = "var(--spacing-md)", children, ...props }) => {
|
|
15593
15624
|
return /* @__PURE__ */ jsxs51("div", { css: LinkListContainer(padding), ...props, children: [
|
|
15594
|
-
/* @__PURE__ */
|
|
15625
|
+
/* @__PURE__ */ jsx82(Heading, { level: 3, css: LinkListTitle, children: title2 }),
|
|
15595
15626
|
children
|
|
15596
15627
|
] });
|
|
15597
15628
|
};
|
|
@@ -15627,10 +15658,10 @@ var ScrollableListInner = css66`
|
|
|
15627
15658
|
`;
|
|
15628
15659
|
|
|
15629
15660
|
// src/components/List/ScrollableList.tsx
|
|
15630
|
-
import { jsx as
|
|
15661
|
+
import { jsx as jsx83, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
15631
15662
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
15632
15663
|
return /* @__PURE__ */ jsxs52("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
15633
|
-
label ? /* @__PURE__ */
|
|
15664
|
+
label ? /* @__PURE__ */ jsx83(
|
|
15634
15665
|
"span",
|
|
15635
15666
|
{
|
|
15636
15667
|
css: css67`
|
|
@@ -15639,7 +15670,7 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
15639
15670
|
children: label
|
|
15640
15671
|
}
|
|
15641
15672
|
) : null,
|
|
15642
|
-
/* @__PURE__ */
|
|
15673
|
+
/* @__PURE__ */ jsx83("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
15643
15674
|
] });
|
|
15644
15675
|
};
|
|
15645
15676
|
|
|
@@ -15711,7 +15742,7 @@ var ScrollableListIconVisible = css68`
|
|
|
15711
15742
|
`;
|
|
15712
15743
|
|
|
15713
15744
|
// src/components/List/ScrollableListInputItem.tsx
|
|
15714
|
-
import { jsx as
|
|
15745
|
+
import { jsx as jsx84, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
15715
15746
|
var ScrollableListInputItem = ({
|
|
15716
15747
|
label,
|
|
15717
15748
|
icon,
|
|
@@ -15721,7 +15752,7 @@ var ScrollableListInputItem = ({
|
|
|
15721
15752
|
labelTestId,
|
|
15722
15753
|
...props
|
|
15723
15754
|
}) => {
|
|
15724
|
-
return /* @__PURE__ */
|
|
15755
|
+
return /* @__PURE__ */ jsx84(
|
|
15725
15756
|
"div",
|
|
15726
15757
|
{
|
|
15727
15758
|
css: [
|
|
@@ -15735,8 +15766,8 @@ var ScrollableListInputItem = ({
|
|
|
15735
15766
|
icon,
|
|
15736
15767
|
label
|
|
15737
15768
|
] }),
|
|
15738
|
-
/* @__PURE__ */
|
|
15739
|
-
/* @__PURE__ */
|
|
15769
|
+
/* @__PURE__ */ jsx84("div", { css: ScrollableListHiddenInput, children }),
|
|
15770
|
+
/* @__PURE__ */ jsx84(
|
|
15740
15771
|
Icon,
|
|
15741
15772
|
{
|
|
15742
15773
|
icon: CgCheck2,
|
|
@@ -15754,7 +15785,7 @@ var ScrollableListInputItem = ({
|
|
|
15754
15785
|
|
|
15755
15786
|
// src/components/List/ScrollableListItem.tsx
|
|
15756
15787
|
import { CgCheck as CgCheck3 } from "@react-icons/all-files/cg/CgCheck";
|
|
15757
|
-
import { jsx as
|
|
15788
|
+
import { jsx as jsx85, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
15758
15789
|
var ScrollableListItem = ({
|
|
15759
15790
|
buttonText,
|
|
15760
15791
|
icon,
|
|
@@ -15762,7 +15793,7 @@ var ScrollableListItem = ({
|
|
|
15762
15793
|
disableShadow,
|
|
15763
15794
|
...props
|
|
15764
15795
|
}) => {
|
|
15765
|
-
return /* @__PURE__ */
|
|
15796
|
+
return /* @__PURE__ */ jsx85(
|
|
15766
15797
|
"div",
|
|
15767
15798
|
{
|
|
15768
15799
|
css: [
|
|
@@ -15773,9 +15804,9 @@ var ScrollableListItem = ({
|
|
|
15773
15804
|
children: /* @__PURE__ */ jsxs54("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
15774
15805
|
/* @__PURE__ */ jsxs54(HorizontalRhythm, { gap: "xs", align: "center", children: [
|
|
15775
15806
|
icon,
|
|
15776
|
-
/* @__PURE__ */
|
|
15807
|
+
/* @__PURE__ */ jsx85("span", { children: buttonText })
|
|
15777
15808
|
] }),
|
|
15778
|
-
/* @__PURE__ */
|
|
15809
|
+
/* @__PURE__ */ jsx85(
|
|
15779
15810
|
Icon,
|
|
15780
15811
|
{
|
|
15781
15812
|
icon: CgCheck3,
|
|
@@ -15842,16 +15873,16 @@ function loadingDot(size) {
|
|
|
15842
15873
|
}
|
|
15843
15874
|
|
|
15844
15875
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
15845
|
-
import { jsx as
|
|
15876
|
+
import { jsx as jsx86, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
15846
15877
|
var LoadingIndicator = ({
|
|
15847
15878
|
size = "lg",
|
|
15848
15879
|
...props
|
|
15849
15880
|
}) => {
|
|
15850
15881
|
const dotStyle = loadingDot(size);
|
|
15851
15882
|
return /* @__PURE__ */ jsxs55("div", { role: "alert", css: loader, "data-testid": "loading-indicator", ...props, children: [
|
|
15852
|
-
/* @__PURE__ */
|
|
15853
|
-
/* @__PURE__ */
|
|
15854
|
-
/* @__PURE__ */
|
|
15883
|
+
/* @__PURE__ */ jsx86("span", { css: dotStyle }),
|
|
15884
|
+
/* @__PURE__ */ jsx86("span", { css: dotStyle }),
|
|
15885
|
+
/* @__PURE__ */ jsx86("span", { css: dotStyle })
|
|
15855
15886
|
] });
|
|
15856
15887
|
};
|
|
15857
15888
|
|
|
@@ -15891,7 +15922,7 @@ var loadingOverlayMessage = css70`
|
|
|
15891
15922
|
`;
|
|
15892
15923
|
|
|
15893
15924
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
15894
|
-
import { jsx as
|
|
15925
|
+
import { jsx as jsx87, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
15895
15926
|
var LoadingOverlay = ({
|
|
15896
15927
|
isActive,
|
|
15897
15928
|
statusMessage,
|
|
@@ -15925,9 +15956,9 @@ var LoadingOverlay = ({
|
|
|
15925
15956
|
"aria-hidden": !isActive,
|
|
15926
15957
|
"aria-busy": isActive && !isPaused,
|
|
15927
15958
|
children: [
|
|
15928
|
-
/* @__PURE__ */
|
|
15929
|
-
/* @__PURE__ */
|
|
15930
|
-
/* @__PURE__ */
|
|
15959
|
+
/* @__PURE__ */ jsx87("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
15960
|
+
/* @__PURE__ */ jsx87("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ jsxs56("div", { css: loadingOverlayBody, children: [
|
|
15961
|
+
/* @__PURE__ */ jsx87(
|
|
15931
15962
|
AnimationFile,
|
|
15932
15963
|
{
|
|
15933
15964
|
lottieRef,
|
|
@@ -15942,15 +15973,15 @@ var LoadingOverlay = ({
|
|
|
15942
15973
|
}
|
|
15943
15974
|
}
|
|
15944
15975
|
),
|
|
15945
|
-
statusMessage ? /* @__PURE__ */
|
|
15946
|
-
/* @__PURE__ */
|
|
15976
|
+
statusMessage ? /* @__PURE__ */ jsx87("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
|
|
15977
|
+
/* @__PURE__ */ jsx87("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
|
|
15947
15978
|
] }) })
|
|
15948
15979
|
]
|
|
15949
15980
|
}
|
|
15950
15981
|
);
|
|
15951
15982
|
};
|
|
15952
15983
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
15953
|
-
return /* @__PURE__ */
|
|
15984
|
+
return /* @__PURE__ */ jsx87(
|
|
15954
15985
|
"svg",
|
|
15955
15986
|
{
|
|
15956
15987
|
viewBox: "0 0 38 38",
|
|
@@ -15960,9 +15991,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
15960
15991
|
stroke: "currentColor",
|
|
15961
15992
|
...props,
|
|
15962
15993
|
"data-testid": "loading-icon",
|
|
15963
|
-
children: /* @__PURE__ */
|
|
15964
|
-
/* @__PURE__ */
|
|
15965
|
-
/* @__PURE__ */
|
|
15994
|
+
children: /* @__PURE__ */ jsx87("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs56("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
15995
|
+
/* @__PURE__ */ jsx87("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
15996
|
+
/* @__PURE__ */ jsx87("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ jsx87(
|
|
15966
15997
|
"animateTransform",
|
|
15967
15998
|
{
|
|
15968
15999
|
attributeName: "transform",
|
|
@@ -16018,7 +16049,7 @@ var Popover = css71`
|
|
|
16018
16049
|
`;
|
|
16019
16050
|
|
|
16020
16051
|
// src/components/Popover/Popover.tsx
|
|
16021
|
-
import { Fragment as Fragment12, jsx as
|
|
16052
|
+
import { Fragment as Fragment12, jsx as jsx88, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
|
|
16022
16053
|
var Popover2 = ({
|
|
16023
16054
|
iconColor = "action",
|
|
16024
16055
|
icon = "info",
|
|
@@ -16033,7 +16064,7 @@ var Popover2 = ({
|
|
|
16033
16064
|
}) => {
|
|
16034
16065
|
const popover = usePopoverState({ placement });
|
|
16035
16066
|
return /* @__PURE__ */ jsxs57(Fragment12, { children: [
|
|
16036
|
-
/* @__PURE__ */
|
|
16067
|
+
/* @__PURE__ */ jsx88(
|
|
16037
16068
|
PopoverDisclosure,
|
|
16038
16069
|
{
|
|
16039
16070
|
...popover,
|
|
@@ -16041,12 +16072,12 @@ var Popover2 = ({
|
|
|
16041
16072
|
title: buttonText,
|
|
16042
16073
|
"data-testid": testId,
|
|
16043
16074
|
children: trigger ? trigger : /* @__PURE__ */ jsxs57(Fragment12, { children: [
|
|
16044
|
-
/* @__PURE__ */
|
|
16045
|
-
/* @__PURE__ */
|
|
16075
|
+
/* @__PURE__ */ jsx88(Icon, { icon, iconColor, size: iconSize }),
|
|
16076
|
+
/* @__PURE__ */ jsx88("span", { hidden: true, children: buttonText })
|
|
16046
16077
|
] })
|
|
16047
16078
|
}
|
|
16048
16079
|
),
|
|
16049
|
-
/* @__PURE__ */
|
|
16080
|
+
/* @__PURE__ */ jsx88(ReakitPopover, { css: Popover, ...otherProps, ...popover, role: "tooltip", "aria-label": ariaLabel, children })
|
|
16050
16081
|
] });
|
|
16051
16082
|
};
|
|
16052
16083
|
|
|
@@ -16129,7 +16160,7 @@ var menuButton = css72`
|
|
|
16129
16160
|
`;
|
|
16130
16161
|
|
|
16131
16162
|
// src/components/MediaCard/MediaCard.tsx
|
|
16132
|
-
import { jsx as
|
|
16163
|
+
import { jsx as jsx89, jsxs as jsxs58 } from "@emotion/react/jsx-runtime";
|
|
16133
16164
|
var MediaCard = ({
|
|
16134
16165
|
title: title2,
|
|
16135
16166
|
subtitle: subtitle2,
|
|
@@ -16145,12 +16176,12 @@ var MediaCard = ({
|
|
|
16145
16176
|
}, []);
|
|
16146
16177
|
const hasMenuItems = Array.isArray(menuItems) ? menuItems.length > 0 : Boolean(menuItems);
|
|
16147
16178
|
return /* @__PURE__ */ jsxs58(Card, { css: cardBase, ...cardProps, onClick, "data-testid": "card-item", children: [
|
|
16148
|
-
/* @__PURE__ */
|
|
16149
|
-
/* @__PURE__ */
|
|
16179
|
+
/* @__PURE__ */ jsx89("button", { tabIndex: -1, css: coverWrapper, children: cover }),
|
|
16180
|
+
/* @__PURE__ */ jsx89("div", { css: contentWrapper, children: /* @__PURE__ */ jsxs58(HorizontalRhythm, { gap: "sm", justify: "space-between", align: "center", css: { width: "100%" }, children: [
|
|
16150
16181
|
/* @__PURE__ */ jsxs58(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1, minWidth: 0 }, children: [
|
|
16151
16182
|
/* @__PURE__ */ jsxs58(HorizontalRhythm, { gap: "xs", align: "center", css: { maxWidth: "100%" }, children: [
|
|
16152
|
-
/* @__PURE__ */
|
|
16153
|
-
!infoPopover ? null : /* @__PURE__ */
|
|
16183
|
+
/* @__PURE__ */ jsx89("button", { css: title, "data-testid": "card-title", children: title2 }),
|
|
16184
|
+
!infoPopover ? null : /* @__PURE__ */ jsx89("div", { css: { display: "flex", cursor: "default" }, onClick: onStopPropogation, children: /* @__PURE__ */ jsx89(
|
|
16154
16185
|
Popover2,
|
|
16155
16186
|
{
|
|
16156
16187
|
baseId: `info-of-${title2}`,
|
|
@@ -16159,31 +16190,31 @@ var MediaCard = ({
|
|
|
16159
16190
|
iconColor: "default",
|
|
16160
16191
|
tabIndex: 0,
|
|
16161
16192
|
css: { display: "block" },
|
|
16162
|
-
children: /* @__PURE__ */
|
|
16193
|
+
children: /* @__PURE__ */ jsx89("div", { children: infoPopover })
|
|
16163
16194
|
}
|
|
16164
16195
|
) })
|
|
16165
16196
|
] }),
|
|
16166
|
-
subtitle2 ? /* @__PURE__ */
|
|
16197
|
+
subtitle2 ? /* @__PURE__ */ jsx89("button", { tabIndex: -1, css: subtitle, children: subtitle2 }) : null
|
|
16167
16198
|
] }),
|
|
16168
|
-
sideSection2 ? /* @__PURE__ */
|
|
16169
|
-
hasMenuItems ? /* @__PURE__ */
|
|
16199
|
+
sideSection2 ? /* @__PURE__ */ jsx89("div", { css: sideSection, onClick: onStopPropogation, children: sideSection2 }) : null,
|
|
16200
|
+
hasMenuItems ? /* @__PURE__ */ jsx89(
|
|
16170
16201
|
VerticalRhythm,
|
|
16171
16202
|
{
|
|
16172
16203
|
css: menuSection,
|
|
16173
16204
|
align: "center",
|
|
16174
16205
|
justify: "center",
|
|
16175
16206
|
onClick: onStopPropogation,
|
|
16176
|
-
children: /* @__PURE__ */
|
|
16207
|
+
children: /* @__PURE__ */ jsx89(
|
|
16177
16208
|
Menu,
|
|
16178
16209
|
{
|
|
16179
|
-
menuTrigger: /* @__PURE__ */
|
|
16210
|
+
menuTrigger: /* @__PURE__ */ jsx89(
|
|
16180
16211
|
"button",
|
|
16181
16212
|
{
|
|
16182
16213
|
type: "button",
|
|
16183
16214
|
"aria-label": "More options",
|
|
16184
16215
|
css: menuButton,
|
|
16185
16216
|
"data-testid": "button-more",
|
|
16186
|
-
children: /* @__PURE__ */
|
|
16217
|
+
children: /* @__PURE__ */ jsx89(Icon, { icon: "more-alt", iconColor: "gray", size: 16 })
|
|
16187
16218
|
}
|
|
16188
16219
|
),
|
|
16189
16220
|
menuLabel: `Menu of ${title2}`,
|
|
@@ -16203,6 +16234,7 @@ import React19, { useEffect as useEffect10, useRef as useRef6 } from "react";
|
|
|
16203
16234
|
// src/components/Modal/Modal.styles.ts
|
|
16204
16235
|
import { css as css73 } from "@emotion/react";
|
|
16205
16236
|
var modalStyles = css73`
|
|
16237
|
+
border: none;
|
|
16206
16238
|
position: relative;
|
|
16207
16239
|
max-width: calc(100% - var(--spacing-base) * 2);
|
|
16208
16240
|
max-height: calc(100% - var(--spacing-base) * 2);
|
|
@@ -16215,6 +16247,15 @@ var modalStyles = css73`
|
|
|
16215
16247
|
opacity: 0.4;
|
|
16216
16248
|
}
|
|
16217
16249
|
`;
|
|
16250
|
+
var modalSizeSmall = css73`
|
|
16251
|
+
width: clamp(280px, 100vw, 400px);
|
|
16252
|
+
`;
|
|
16253
|
+
var modalSizeMedium = css73`
|
|
16254
|
+
width: clamp(280px, 100vw, 600px);
|
|
16255
|
+
`;
|
|
16256
|
+
var modalSizeLarge = css73`
|
|
16257
|
+
width: clamp(280px, 100vw, 800px);
|
|
16258
|
+
`;
|
|
16218
16259
|
var modalInnerStyles = css73`
|
|
16219
16260
|
position: relative;
|
|
16220
16261
|
width: 100%;
|
|
@@ -16224,53 +16265,64 @@ var modalInnerStyles = css73`
|
|
|
16224
16265
|
gap: var(--spacing-base);
|
|
16225
16266
|
background: var(--gray-50);
|
|
16226
16267
|
color: unset;
|
|
16227
|
-
padding: var(--spacing-
|
|
16268
|
+
padding: calc(var(--spacing-2xl) - 2px);
|
|
16228
16269
|
box-shadow: var(--elevation-500);
|
|
16229
16270
|
border-radius: var(--rounded-base);
|
|
16230
|
-
border: 1px solid var(--gray-300);
|
|
16231
16271
|
`;
|
|
16232
16272
|
var modalHeaderStyles = css73`
|
|
16233
16273
|
display: flex;
|
|
16234
16274
|
align-items: flex-start;
|
|
16235
16275
|
gap: var(--spacing-base);
|
|
16236
16276
|
font-size: var(--fs-md);
|
|
16277
|
+
font-family: var(--ff-base);
|
|
16237
16278
|
line-height: 1.2;
|
|
16238
16279
|
`;
|
|
16239
16280
|
var modalHeaderHeaderStyles = css73`
|
|
16240
16281
|
max-width: calc(100% - 3rem);
|
|
16241
16282
|
`;
|
|
16242
16283
|
var modalCloseButtonStyles = css73`
|
|
16243
|
-
display: block;
|
|
16244
|
-
padding: 0;
|
|
16245
16284
|
background: transparent;
|
|
16246
16285
|
border: none;
|
|
16286
|
+
color: var(--gray-300);
|
|
16287
|
+
display: block;
|
|
16288
|
+
padding: 0;
|
|
16247
16289
|
margin-left: auto;
|
|
16290
|
+
translate: calc(var(--spacing-base)) calc(var(--spacing-base) * -1);
|
|
16291
|
+
transition: color var(--duration-fast) var(--timing-ease-out);
|
|
16292
|
+
|
|
16293
|
+
&:hover,
|
|
16294
|
+
&:focus {
|
|
16295
|
+
background: transparent;
|
|
16296
|
+
color: var(--gray-400);
|
|
16297
|
+
}
|
|
16248
16298
|
`;
|
|
16249
16299
|
var modalContentStyles = css73`
|
|
16250
16300
|
position: relative;
|
|
16251
16301
|
flex: 1;
|
|
16252
|
-
background-color: white;
|
|
16253
|
-
padding: var(--spacing-md);
|
|
16254
16302
|
overflow: auto;
|
|
16255
16303
|
${scrollbarStyles}
|
|
16256
16304
|
`;
|
|
16257
16305
|
|
|
16258
16306
|
// src/components/Modal/Modal.tsx
|
|
16259
|
-
import { jsx as
|
|
16260
|
-
var defaultModalWidth = "75rem";
|
|
16307
|
+
import { jsx as jsx90, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
|
|
16261
16308
|
var defaultModalHeight = "51rem";
|
|
16262
16309
|
var Modal = React19.forwardRef(
|
|
16263
16310
|
({
|
|
16264
16311
|
header,
|
|
16265
16312
|
children,
|
|
16266
16313
|
onRequestClose,
|
|
16267
|
-
width
|
|
16314
|
+
width,
|
|
16268
16315
|
height = defaultModalHeight,
|
|
16269
|
-
withoutContentPadding = false,
|
|
16270
16316
|
buttonGroup,
|
|
16317
|
+
modalSize = "lg",
|
|
16271
16318
|
...modalProps
|
|
16272
16319
|
}, ref) => {
|
|
16273
16320
|
const dialogRef = useRef6(null);
|
|
16321
|
+
const size = {
|
|
16322
|
+
sm: modalSizeSmall,
|
|
16323
|
+
md: modalSizeMedium,
|
|
16324
|
+
lg: modalSizeLarge
|
|
16325
|
+
};
|
|
16274
16326
|
useShortcut({
|
|
16275
16327
|
handler: onRequestClose,
|
|
16276
16328
|
shortcut: "escape"
|
|
@@ -16289,7 +16341,7 @@ var Modal = React19.forwardRef(
|
|
|
16289
16341
|
return (_a2 = dialogRef.current) == null ? void 0 : _a2.close();
|
|
16290
16342
|
};
|
|
16291
16343
|
}, []);
|
|
16292
|
-
return /* @__PURE__ */
|
|
16344
|
+
return /* @__PURE__ */ jsx90(
|
|
16293
16345
|
"dialog",
|
|
16294
16346
|
{
|
|
16295
16347
|
ref: (element) => {
|
|
@@ -16303,7 +16355,7 @@ var Modal = React19.forwardRef(
|
|
|
16303
16355
|
ref.current = element;
|
|
16304
16356
|
}
|
|
16305
16357
|
},
|
|
16306
|
-
css: modalStyles,
|
|
16358
|
+
css: [modalStyles, width ? void 0 : size[modalSize]],
|
|
16307
16359
|
style: { width, height: height === "auto" ? "min-content" : height },
|
|
16308
16360
|
"data-testid": "side-dialog",
|
|
16309
16361
|
onClick: onRequestClose,
|
|
@@ -16318,8 +16370,8 @@ var Modal = React19.forwardRef(
|
|
|
16318
16370
|
onClick: (e) => e.stopPropagation(),
|
|
16319
16371
|
children: [
|
|
16320
16372
|
/* @__PURE__ */ jsxs59("div", { css: modalHeaderStyles, children: [
|
|
16321
|
-
/* @__PURE__ */
|
|
16322
|
-
/* @__PURE__ */
|
|
16373
|
+
/* @__PURE__ */ jsx90("div", { css: modalHeaderHeaderStyles, children: header }),
|
|
16374
|
+
/* @__PURE__ */ jsx90(
|
|
16323
16375
|
Button,
|
|
16324
16376
|
{
|
|
16325
16377
|
type: "button",
|
|
@@ -16328,12 +16380,12 @@ var Modal = React19.forwardRef(
|
|
|
16328
16380
|
title: "Close dialog",
|
|
16329
16381
|
buttonType: "ghost",
|
|
16330
16382
|
"data-testid": "close-dialog",
|
|
16331
|
-
children: /* @__PURE__ */
|
|
16383
|
+
children: /* @__PURE__ */ jsx90(Icon, { icon: CgClose5, iconColor: "currentColor", size: 24 })
|
|
16332
16384
|
}
|
|
16333
16385
|
)
|
|
16334
16386
|
] }),
|
|
16335
|
-
/* @__PURE__ */
|
|
16336
|
-
buttonGroup ? /* @__PURE__ */
|
|
16387
|
+
/* @__PURE__ */ jsx90("div", { css: modalContentStyles, children }),
|
|
16388
|
+
buttonGroup ? /* @__PURE__ */ jsx90(HorizontalRhythm, { children: buttonGroup }) : null
|
|
16337
16389
|
]
|
|
16338
16390
|
}
|
|
16339
16391
|
)
|
|
@@ -16375,7 +16427,7 @@ var page = css74`
|
|
|
16375
16427
|
`;
|
|
16376
16428
|
|
|
16377
16429
|
// src/components/Pagination/Pagination.tsx
|
|
16378
|
-
import { jsx as
|
|
16430
|
+
import { jsx as jsx91 } from "@emotion/react/jsx-runtime";
|
|
16379
16431
|
function Pagination({
|
|
16380
16432
|
limit,
|
|
16381
16433
|
offset,
|
|
@@ -16390,12 +16442,12 @@ function Pagination({
|
|
|
16390
16442
|
if (pageCount <= 1) {
|
|
16391
16443
|
return null;
|
|
16392
16444
|
}
|
|
16393
|
-
return /* @__PURE__ */
|
|
16445
|
+
return /* @__PURE__ */ jsx91(
|
|
16394
16446
|
Paginate,
|
|
16395
16447
|
{
|
|
16396
16448
|
forcePage: currentPage,
|
|
16397
|
-
previousLabel: /* @__PURE__ */
|
|
16398
|
-
nextLabel: /* @__PURE__ */
|
|
16449
|
+
previousLabel: /* @__PURE__ */ jsx91("div", { className: prevNextControls, children: "<" }),
|
|
16450
|
+
nextLabel: /* @__PURE__ */ jsx91("div", { className: prevNextControls, children: ">" }),
|
|
16399
16451
|
breakLabel: "...",
|
|
16400
16452
|
pageCount,
|
|
16401
16453
|
marginPagesDisplayed: 2,
|
|
@@ -16462,7 +16514,7 @@ var inputIconBtn = css75`
|
|
|
16462
16514
|
`;
|
|
16463
16515
|
|
|
16464
16516
|
// src/components/ParameterInputs/LabelLeadingIcon.tsx
|
|
16465
|
-
import { jsx as
|
|
16517
|
+
import { jsx as jsx92, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
|
|
16466
16518
|
var LabelLeadingIcon = ({
|
|
16467
16519
|
icon,
|
|
16468
16520
|
iconColor,
|
|
@@ -16474,7 +16526,7 @@ var LabelLeadingIcon = ({
|
|
|
16474
16526
|
...props
|
|
16475
16527
|
}) => {
|
|
16476
16528
|
const titleFr = title2 != null ? title2 : isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
16477
|
-
return /* @__PURE__ */
|
|
16529
|
+
return /* @__PURE__ */ jsx92(Tooltip, { title: titleFr, children: /* @__PURE__ */ jsxs60(
|
|
16478
16530
|
"button",
|
|
16479
16531
|
{
|
|
16480
16532
|
css: inputIconBtn,
|
|
@@ -16482,8 +16534,9 @@ var LabelLeadingIcon = ({
|
|
|
16482
16534
|
"aria-pressed": isActive || isBound,
|
|
16483
16535
|
"aria-disabled": isLocked,
|
|
16484
16536
|
...props,
|
|
16537
|
+
"data-testid": "lock-button",
|
|
16485
16538
|
children: [
|
|
16486
|
-
/* @__PURE__ */
|
|
16539
|
+
/* @__PURE__ */ jsx92(
|
|
16487
16540
|
Icon,
|
|
16488
16541
|
{
|
|
16489
16542
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -16770,7 +16823,7 @@ var linkParameterIcon = css76`
|
|
|
16770
16823
|
`;
|
|
16771
16824
|
|
|
16772
16825
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
16773
|
-
import { jsx as
|
|
16826
|
+
import { jsx as jsx93, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
|
|
16774
16827
|
function ParameterDataResource({
|
|
16775
16828
|
label,
|
|
16776
16829
|
labelLeadingIcon,
|
|
@@ -16794,12 +16847,12 @@ function ParameterDataResource({
|
|
|
16794
16847
|
disabled: disabled2,
|
|
16795
16848
|
onClick: onConnectDatasource,
|
|
16796
16849
|
children: [
|
|
16797
|
-
/* @__PURE__ */
|
|
16850
|
+
/* @__PURE__ */ jsx93("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx93(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
16798
16851
|
children
|
|
16799
16852
|
]
|
|
16800
16853
|
}
|
|
16801
16854
|
),
|
|
16802
|
-
caption ? /* @__PURE__ */
|
|
16855
|
+
caption ? /* @__PURE__ */ jsx93(Caption, { children: caption }) : null
|
|
16803
16856
|
] });
|
|
16804
16857
|
}
|
|
16805
16858
|
|
|
@@ -16825,12 +16878,12 @@ var ParameterDrawerHeaderTitle = css77`
|
|
|
16825
16878
|
`;
|
|
16826
16879
|
|
|
16827
16880
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
16828
|
-
import { jsx as
|
|
16881
|
+
import { jsx as jsx94, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
|
|
16829
16882
|
var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
|
|
16830
16883
|
return /* @__PURE__ */ jsxs62("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
16831
16884
|
/* @__PURE__ */ jsxs62("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
16832
16885
|
iconBeforeTitle,
|
|
16833
|
-
/* @__PURE__ */
|
|
16886
|
+
/* @__PURE__ */ jsx94(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title: title2, children: title2 })
|
|
16834
16887
|
] }),
|
|
16835
16888
|
children
|
|
16836
16889
|
] });
|
|
@@ -16860,11 +16913,11 @@ var fieldsetLegend2 = css78`
|
|
|
16860
16913
|
`;
|
|
16861
16914
|
|
|
16862
16915
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
16863
|
-
import { jsx as
|
|
16916
|
+
import { jsx as jsx95, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
|
|
16864
16917
|
var ParameterGroup = forwardRef11(
|
|
16865
16918
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
16866
16919
|
return /* @__PURE__ */ jsxs63("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
16867
|
-
/* @__PURE__ */
|
|
16920
|
+
/* @__PURE__ */ jsx95("legend", { css: fieldsetLegend2, children: legend }),
|
|
16868
16921
|
children
|
|
16869
16922
|
] });
|
|
16870
16923
|
}
|
|
@@ -16915,33 +16968,32 @@ var previewModalImage = css79`
|
|
|
16915
16968
|
`;
|
|
16916
16969
|
|
|
16917
16970
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
16918
|
-
import { Fragment as Fragment13, jsx as
|
|
16971
|
+
import { Fragment as Fragment13, jsx as jsx96, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
|
|
16919
16972
|
function ParameterImagePreview({ imageSrc }) {
|
|
16920
16973
|
const [showModal, setShowModal] = useState9(false);
|
|
16921
16974
|
return imageSrc ? /* @__PURE__ */ jsxs64("div", { css: previewWrapper, children: [
|
|
16922
|
-
/* @__PURE__ */
|
|
16923
|
-
/* @__PURE__ */
|
|
16975
|
+
/* @__PURE__ */ jsx96(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
|
|
16976
|
+
/* @__PURE__ */ jsx96(
|
|
16924
16977
|
"button",
|
|
16925
16978
|
{
|
|
16926
16979
|
css: previewLink,
|
|
16927
16980
|
onClick: () => {
|
|
16928
16981
|
setShowModal(true);
|
|
16929
16982
|
},
|
|
16930
|
-
children: /* @__PURE__ */
|
|
16983
|
+
children: /* @__PURE__ */ jsx96(Image, { src: imageSrc, "data-testid": "parameter-image-preview" })
|
|
16931
16984
|
}
|
|
16932
16985
|
)
|
|
16933
16986
|
] }) : null;
|
|
16934
16987
|
}
|
|
16935
16988
|
var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
16936
|
-
return open ? /* @__PURE__ */
|
|
16937
|
-
/* @__PURE__ */
|
|
16989
|
+
return open ? /* @__PURE__ */ jsx96(Fragment13, { children: createPortal2(
|
|
16990
|
+
/* @__PURE__ */ jsx96(
|
|
16938
16991
|
Modal,
|
|
16939
16992
|
{
|
|
16940
16993
|
header: "Image Preview",
|
|
16941
16994
|
onRequestClose,
|
|
16942
|
-
|
|
16943
|
-
|
|
16944
|
-
children: /* @__PURE__ */ jsx95("div", { css: previewModalWrapper, children: /* @__PURE__ */ jsx95(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
|
|
16995
|
+
buttonGroup: /* @__PURE__ */ jsx96(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
|
|
16996
|
+
children: /* @__PURE__ */ jsx96("div", { css: previewModalWrapper, children: /* @__PURE__ */ jsx96(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
|
|
16945
16997
|
}
|
|
16946
16998
|
),
|
|
16947
16999
|
document.body
|
|
@@ -16953,21 +17005,21 @@ import { css as css81 } from "@emotion/react";
|
|
|
16953
17005
|
import { useState as useState10 } from "react";
|
|
16954
17006
|
|
|
16955
17007
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
16956
|
-
import { jsx as
|
|
17008
|
+
import { jsx as jsx97 } from "@emotion/react/jsx-runtime";
|
|
16957
17009
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
16958
|
-
return !asSpan ? /* @__PURE__ */
|
|
17010
|
+
return !asSpan ? /* @__PURE__ */ jsx97("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx97("span", { "aria-labelledby": id, css: labelText2, children });
|
|
16959
17011
|
};
|
|
16960
17012
|
|
|
16961
17013
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
16962
17014
|
import { forwardRef as forwardRef12 } from "react";
|
|
16963
|
-
import { jsx as
|
|
17015
|
+
import { jsx as jsx98 } from "@emotion/react/jsx-runtime";
|
|
16964
17016
|
var ParameterMenuButton = forwardRef12(
|
|
16965
17017
|
({ label, children }, ref) => {
|
|
16966
|
-
return /* @__PURE__ */
|
|
17018
|
+
return /* @__PURE__ */ jsx98(
|
|
16967
17019
|
Menu,
|
|
16968
17020
|
{
|
|
16969
17021
|
menuLabel: `${label} menu`,
|
|
16970
|
-
menuTrigger: /* @__PURE__ */
|
|
17022
|
+
menuTrigger: /* @__PURE__ */ jsx98(
|
|
16971
17023
|
"button",
|
|
16972
17024
|
{
|
|
16973
17025
|
className: "parameter-menu",
|
|
@@ -16975,7 +17027,7 @@ var ParameterMenuButton = forwardRef12(
|
|
|
16975
17027
|
type: "button",
|
|
16976
17028
|
"aria-label": `${label} options`,
|
|
16977
17029
|
ref,
|
|
16978
|
-
children: /* @__PURE__ */
|
|
17030
|
+
children: /* @__PURE__ */ jsx98(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
16979
17031
|
}
|
|
16980
17032
|
),
|
|
16981
17033
|
children
|
|
@@ -17011,7 +17063,7 @@ var overrideMarker = css80`
|
|
|
17011
17063
|
`;
|
|
17012
17064
|
|
|
17013
17065
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
17014
|
-
import { jsx as
|
|
17066
|
+
import { jsx as jsx99, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
|
|
17015
17067
|
var extractParameterProps = (props) => {
|
|
17016
17068
|
const {
|
|
17017
17069
|
id,
|
|
@@ -17086,7 +17138,7 @@ var ParameterShell = ({
|
|
|
17086
17138
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
17087
17139
|
] }),
|
|
17088
17140
|
/* @__PURE__ */ jsxs65("div", { css: inputWrapper, children: [
|
|
17089
|
-
actionItems ? /* @__PURE__ */
|
|
17141
|
+
actionItems ? /* @__PURE__ */ jsx99(
|
|
17090
17142
|
"div",
|
|
17091
17143
|
{
|
|
17092
17144
|
css: [
|
|
@@ -17099,8 +17151,8 @@ var ParameterShell = ({
|
|
|
17099
17151
|
children: actionItems
|
|
17100
17152
|
}
|
|
17101
17153
|
) : null,
|
|
17102
|
-
menuItems ? /* @__PURE__ */
|
|
17103
|
-
/* @__PURE__ */
|
|
17154
|
+
menuItems ? /* @__PURE__ */ jsx99(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
17155
|
+
/* @__PURE__ */ jsx99(
|
|
17104
17156
|
ParameterShellContext.Provider,
|
|
17105
17157
|
{
|
|
17106
17158
|
value: {
|
|
@@ -17110,31 +17162,38 @@ var ParameterShell = ({
|
|
|
17110
17162
|
errorMessage: errorMessaging,
|
|
17111
17163
|
handleManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
17112
17164
|
},
|
|
17113
|
-
children: isParameterGroup ? /* @__PURE__ */
|
|
17165
|
+
children: isParameterGroup ? /* @__PURE__ */ jsx99("div", { style: { flexGrow: 1 }, children }) : /* @__PURE__ */ jsxs65(ParameterShellPlaceholder, { children: [
|
|
17114
17166
|
children,
|
|
17115
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
17167
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx99(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
17116
17168
|
] })
|
|
17117
17169
|
}
|
|
17118
17170
|
)
|
|
17119
17171
|
] }),
|
|
17120
|
-
|
|
17121
|
-
|
|
17122
|
-
|
|
17123
|
-
|
|
17172
|
+
/* @__PURE__ */ jsx99(
|
|
17173
|
+
FieldMessage,
|
|
17174
|
+
{
|
|
17175
|
+
helperMessageTestId: captionTestId,
|
|
17176
|
+
helperMessage: caption,
|
|
17177
|
+
errorTestId,
|
|
17178
|
+
errorMessage: errorMessaging,
|
|
17179
|
+
warningMessage,
|
|
17180
|
+
infoMessage
|
|
17181
|
+
}
|
|
17182
|
+
)
|
|
17124
17183
|
] });
|
|
17125
17184
|
};
|
|
17126
17185
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
17127
|
-
return /* @__PURE__ */
|
|
17186
|
+
return /* @__PURE__ */ jsx99("div", { css: emptyParameterShell, children });
|
|
17128
17187
|
};
|
|
17129
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
17188
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx99(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx99("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx99("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
17130
17189
|
|
|
17131
17190
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
17132
|
-
import { Fragment as Fragment14, jsx as
|
|
17191
|
+
import { Fragment as Fragment14, jsx as jsx100, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
|
|
17133
17192
|
var ParameterImage = forwardRef13(
|
|
17134
17193
|
({ children, ...props }, ref) => {
|
|
17135
17194
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
17136
17195
|
return /* @__PURE__ */ jsxs66(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
|
|
17137
|
-
/* @__PURE__ */
|
|
17196
|
+
/* @__PURE__ */ jsx100(ParameterImageInner, { ref, ...innerProps }),
|
|
17138
17197
|
children
|
|
17139
17198
|
] });
|
|
17140
17199
|
}
|
|
@@ -17144,7 +17203,7 @@ var ParameterImageInner = forwardRef13((props, ref) => {
|
|
|
17144
17203
|
const { id, label, hiddenLabel, errorMessage } = useParameterShell();
|
|
17145
17204
|
const deferredValue = useDeferredValue(value);
|
|
17146
17205
|
return /* @__PURE__ */ jsxs66(Fragment14, { children: [
|
|
17147
|
-
/* @__PURE__ */
|
|
17206
|
+
/* @__PURE__ */ jsx100(
|
|
17148
17207
|
"input",
|
|
17149
17208
|
{
|
|
17150
17209
|
css: input2,
|
|
@@ -17156,21 +17215,21 @@ var ParameterImageInner = forwardRef13((props, ref) => {
|
|
|
17156
17215
|
...props
|
|
17157
17216
|
}
|
|
17158
17217
|
),
|
|
17159
|
-
errorMessage || props.disablePreview ? null : /* @__PURE__ */
|
|
17218
|
+
errorMessage || props.disablePreview ? null : /* @__PURE__ */ jsx100(ParameterImagePreview, { imageSrc: deferredValue })
|
|
17160
17219
|
] });
|
|
17161
17220
|
});
|
|
17162
17221
|
|
|
17163
17222
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
17164
17223
|
import { forwardRef as forwardRef14 } from "react";
|
|
17165
|
-
import { jsx as
|
|
17224
|
+
import { jsx as jsx101 } from "@emotion/react/jsx-runtime";
|
|
17166
17225
|
var ParameterInput = forwardRef14((props, ref) => {
|
|
17167
17226
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
17168
|
-
return /* @__PURE__ */
|
|
17227
|
+
return /* @__PURE__ */ jsx101(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx101(ParameterInputInner, { ref, ...innerProps }) });
|
|
17169
17228
|
});
|
|
17170
17229
|
var ParameterInputInner = forwardRef14(
|
|
17171
17230
|
({ ...props }, ref) => {
|
|
17172
17231
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
17173
|
-
return /* @__PURE__ */
|
|
17232
|
+
return /* @__PURE__ */ jsx101(
|
|
17174
17233
|
"input",
|
|
17175
17234
|
{
|
|
17176
17235
|
css: input2,
|
|
@@ -17187,18 +17246,18 @@ var ParameterInputInner = forwardRef14(
|
|
|
17187
17246
|
|
|
17188
17247
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
17189
17248
|
import { forwardRef as forwardRef15 } from "react";
|
|
17190
|
-
import { jsx as
|
|
17249
|
+
import { jsx as jsx102, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
|
|
17191
17250
|
var ParameterLink = forwardRef15(
|
|
17192
17251
|
({ disabled: disabled2, onConnectLink, externalLink, ...props }, ref) => {
|
|
17193
17252
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
17194
|
-
return /* @__PURE__ */
|
|
17253
|
+
return /* @__PURE__ */ jsx102(
|
|
17195
17254
|
ParameterShell,
|
|
17196
17255
|
{
|
|
17197
17256
|
"data-testid": "link-parameter-editor",
|
|
17198
17257
|
...shellProps,
|
|
17199
17258
|
label: innerProps.value ? shellProps.label : "",
|
|
17200
17259
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
17201
|
-
children: /* @__PURE__ */
|
|
17260
|
+
children: /* @__PURE__ */ jsx102(
|
|
17202
17261
|
ParameterLinkInner,
|
|
17203
17262
|
{
|
|
17204
17263
|
onConnectLink,
|
|
@@ -17215,9 +17274,9 @@ var ParameterLinkInner = forwardRef15(
|
|
|
17215
17274
|
({ externalLink, onConnectLink, disabled: disabled2, buttonText = "Select link", ...props }, ref) => {
|
|
17216
17275
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
17217
17276
|
if (!props.value)
|
|
17218
|
-
return /* @__PURE__ */
|
|
17277
|
+
return /* @__PURE__ */ jsx102("button", { type: "button", css: dataConnectButton, disabled: disabled2, onClick: onConnectLink, children: buttonText });
|
|
17219
17278
|
return /* @__PURE__ */ jsxs67("div", { css: inputWrapper, children: [
|
|
17220
|
-
/* @__PURE__ */
|
|
17279
|
+
/* @__PURE__ */ jsx102(
|
|
17221
17280
|
"input",
|
|
17222
17281
|
{
|
|
17223
17282
|
type: "text",
|
|
@@ -17230,7 +17289,7 @@ var ParameterLinkInner = forwardRef15(
|
|
|
17230
17289
|
}
|
|
17231
17290
|
),
|
|
17232
17291
|
/* @__PURE__ */ jsxs67("div", { css: linkParameterControls, children: [
|
|
17233
|
-
/* @__PURE__ */
|
|
17292
|
+
/* @__PURE__ */ jsx102(
|
|
17234
17293
|
"button",
|
|
17235
17294
|
{
|
|
17236
17295
|
type: "button",
|
|
@@ -17241,7 +17300,7 @@ var ParameterLinkInner = forwardRef15(
|
|
|
17241
17300
|
children: "edit"
|
|
17242
17301
|
}
|
|
17243
17302
|
),
|
|
17244
|
-
externalLink ? /* @__PURE__ */
|
|
17303
|
+
externalLink ? /* @__PURE__ */ jsx102(
|
|
17245
17304
|
"a",
|
|
17246
17305
|
{
|
|
17247
17306
|
href: externalLink,
|
|
@@ -17249,7 +17308,7 @@ var ParameterLinkInner = forwardRef15(
|
|
|
17249
17308
|
title: "Open link in new tab",
|
|
17250
17309
|
target: "_blank",
|
|
17251
17310
|
rel: "noopener noreferrer",
|
|
17252
|
-
children: /* @__PURE__ */
|
|
17311
|
+
children: /* @__PURE__ */ jsx102(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
17253
17312
|
}
|
|
17254
17313
|
) : null
|
|
17255
17314
|
] })
|
|
@@ -17258,7 +17317,7 @@ var ParameterLinkInner = forwardRef15(
|
|
|
17258
17317
|
);
|
|
17259
17318
|
|
|
17260
17319
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
17261
|
-
import { Fragment as Fragment15, jsx as
|
|
17320
|
+
import { Fragment as Fragment15, jsx as jsx103, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
|
|
17262
17321
|
var ParameterNameAndPublicIdInput = ({
|
|
17263
17322
|
id,
|
|
17264
17323
|
onBlur,
|
|
@@ -17285,7 +17344,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17285
17344
|
};
|
|
17286
17345
|
autoFocus == null ? void 0 : autoFocus();
|
|
17287
17346
|
return /* @__PURE__ */ jsxs68(Fragment15, { children: [
|
|
17288
|
-
/* @__PURE__ */
|
|
17347
|
+
/* @__PURE__ */ jsx103(
|
|
17289
17348
|
ParameterInput,
|
|
17290
17349
|
{
|
|
17291
17350
|
id: nameIdField,
|
|
@@ -17304,7 +17363,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17304
17363
|
value: values[nameIdField]
|
|
17305
17364
|
}
|
|
17306
17365
|
),
|
|
17307
|
-
/* @__PURE__ */
|
|
17366
|
+
/* @__PURE__ */ jsx103(
|
|
17308
17367
|
ParameterInput,
|
|
17309
17368
|
{
|
|
17310
17369
|
id: publicIdFieldName,
|
|
@@ -17318,11 +17377,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17318
17377
|
caption: !publicIdError ? publicIdCaption : void 0,
|
|
17319
17378
|
placeholder: publicIdPlaceholderText,
|
|
17320
17379
|
errorMessage: publicIdError,
|
|
17321
|
-
menuItems: /* @__PURE__ */
|
|
17380
|
+
menuItems: /* @__PURE__ */ jsx103(
|
|
17322
17381
|
MenuItem,
|
|
17323
17382
|
{
|
|
17324
17383
|
disabled: !values[publicIdFieldName],
|
|
17325
|
-
icon: /* @__PURE__ */
|
|
17384
|
+
icon: /* @__PURE__ */ jsx103(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
17326
17385
|
onClick: handleCopyPidFieldValue,
|
|
17327
17386
|
children: "Copy"
|
|
17328
17387
|
}
|
|
@@ -17330,7 +17389,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17330
17389
|
value: values[publicIdFieldName]
|
|
17331
17390
|
}
|
|
17332
17391
|
),
|
|
17333
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
17392
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx103(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
17334
17393
|
] });
|
|
17335
17394
|
};
|
|
17336
17395
|
|
|
@@ -17720,7 +17779,7 @@ var getSelectedNode = (selection) => {
|
|
|
17720
17779
|
};
|
|
17721
17780
|
|
|
17722
17781
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
17723
|
-
import { Fragment as Fragment16, jsx as
|
|
17782
|
+
import { Fragment as Fragment16, jsx as jsx104, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
|
|
17724
17783
|
var isProjectMapLinkValue = (value) => {
|
|
17725
17784
|
return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
|
|
17726
17785
|
value.nodeId && value.path && value.projectMapId
|
|
@@ -18164,7 +18223,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
18164
18223
|
});
|
|
18165
18224
|
};
|
|
18166
18225
|
return /* @__PURE__ */ jsxs69(Fragment16, { children: [
|
|
18167
|
-
/* @__PURE__ */
|
|
18226
|
+
/* @__PURE__ */ jsx104(
|
|
18168
18227
|
NodeEventPlugin,
|
|
18169
18228
|
{
|
|
18170
18229
|
nodeType: LinkNode,
|
|
@@ -18174,7 +18233,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
18174
18233
|
}
|
|
18175
18234
|
}
|
|
18176
18235
|
),
|
|
18177
|
-
linkPopoverState ? /* @__PURE__ */
|
|
18236
|
+
linkPopoverState ? /* @__PURE__ */ jsx104(
|
|
18178
18237
|
"div",
|
|
18179
18238
|
{
|
|
18180
18239
|
css: linkPopover,
|
|
@@ -18184,7 +18243,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
18184
18243
|
},
|
|
18185
18244
|
ref: linkPopoverElRef,
|
|
18186
18245
|
children: /* @__PURE__ */ jsxs69("div", { css: linkPopoverContainer, children: [
|
|
18187
|
-
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */
|
|
18246
|
+
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ jsx104(
|
|
18188
18247
|
"a",
|
|
18189
18248
|
{
|
|
18190
18249
|
href: parsePath(
|
|
@@ -18196,7 +18255,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
18196
18255
|
children: parsePath(linkPopoverState.node.__link.path)
|
|
18197
18256
|
}
|
|
18198
18257
|
),
|
|
18199
|
-
/* @__PURE__ */
|
|
18258
|
+
/* @__PURE__ */ jsx104(
|
|
18200
18259
|
Button,
|
|
18201
18260
|
{
|
|
18202
18261
|
size: "xs",
|
|
@@ -18204,7 +18263,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
18204
18263
|
onEditLinkNode(linkPopoverState.node);
|
|
18205
18264
|
},
|
|
18206
18265
|
buttonType: "ghost",
|
|
18207
|
-
children: /* @__PURE__ */
|
|
18266
|
+
children: /* @__PURE__ */ jsx104(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
|
|
18208
18267
|
}
|
|
18209
18268
|
)
|
|
18210
18269
|
] })
|
|
@@ -18229,7 +18288,7 @@ import {
|
|
|
18229
18288
|
INDENT_CONTENT_COMMAND
|
|
18230
18289
|
} from "lexical";
|
|
18231
18290
|
import { useEffect as useEffect13 } from "react";
|
|
18232
|
-
import { jsx as
|
|
18291
|
+
import { jsx as jsx105 } from "@emotion/react/jsx-runtime";
|
|
18233
18292
|
function isIndentPermitted(maxDepth) {
|
|
18234
18293
|
const selection = $getSelection2();
|
|
18235
18294
|
if (!$isRangeSelection2(selection)) {
|
|
@@ -18259,7 +18318,7 @@ function ListIndentPlugin({ maxDepth }) {
|
|
|
18259
18318
|
COMMAND_PRIORITY_CRITICAL
|
|
18260
18319
|
);
|
|
18261
18320
|
}, [editor, maxDepth]);
|
|
18262
|
-
return /* @__PURE__ */
|
|
18321
|
+
return /* @__PURE__ */ jsx105(TabIndentationPlugin, {});
|
|
18263
18322
|
}
|
|
18264
18323
|
|
|
18265
18324
|
// src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
|
|
@@ -18286,7 +18345,7 @@ import {
|
|
|
18286
18345
|
SELECTION_CHANGE_COMMAND
|
|
18287
18346
|
} from "lexical";
|
|
18288
18347
|
import { useCallback as useCallback6, useEffect as useEffect14, useMemo as useMemo3, useState as useState12 } from "react";
|
|
18289
|
-
import { Fragment as Fragment17, jsx as
|
|
18348
|
+
import { Fragment as Fragment17, jsx as jsx106, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
18290
18349
|
var toolbar = css84`
|
|
18291
18350
|
background: var(--gray-50);
|
|
18292
18351
|
border-radius: var(--rounded-base);
|
|
@@ -18338,7 +18397,7 @@ var toolbarChevron = css84`
|
|
|
18338
18397
|
margin-left: var(--spacing-xs);
|
|
18339
18398
|
`;
|
|
18340
18399
|
var RichTextToolbarIcon = ({ icon }) => {
|
|
18341
|
-
return /* @__PURE__ */
|
|
18400
|
+
return /* @__PURE__ */ jsx106(Icon, { icon, css: toolbarIcon, size: "1rem" });
|
|
18342
18401
|
};
|
|
18343
18402
|
var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
|
|
18344
18403
|
["bold", "format-bold"],
|
|
@@ -18455,7 +18514,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18455
18514
|
menuTrigger: /* @__PURE__ */ jsxs70("button", { css: richTextToolbarButton, title: "Text styles", children: [
|
|
18456
18515
|
visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
|
|
18457
18516
|
" ",
|
|
18458
|
-
/* @__PURE__ */
|
|
18517
|
+
/* @__PURE__ */ jsx106(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
|
|
18459
18518
|
] }),
|
|
18460
18519
|
placement: "bottom-start",
|
|
18461
18520
|
children: [
|
|
@@ -18465,7 +18524,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18465
18524
|
type: "paragraph"
|
|
18466
18525
|
},
|
|
18467
18526
|
...visibleTextualElements
|
|
18468
|
-
].map((element) => /* @__PURE__ */
|
|
18527
|
+
].map((element) => /* @__PURE__ */ jsx106(
|
|
18469
18528
|
MenuItem,
|
|
18470
18529
|
{
|
|
18471
18530
|
onClick: () => {
|
|
@@ -18475,12 +18534,12 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18475
18534
|
},
|
|
18476
18535
|
element.type
|
|
18477
18536
|
)),
|
|
18478
|
-
visibleTextualElements.length === 0 ? /* @__PURE__ */
|
|
18537
|
+
visibleTextualElements.length === 0 ? /* @__PURE__ */ jsx106(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
|
|
18479
18538
|
]
|
|
18480
18539
|
}
|
|
18481
18540
|
),
|
|
18482
18541
|
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsxs70("div", { css: toolbarGroup, children: [
|
|
18483
|
-
visibleFormatsWithIcon.map((format) => /* @__PURE__ */
|
|
18542
|
+
visibleFormatsWithIcon.map((format) => /* @__PURE__ */ jsx106(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ jsx106(
|
|
18484
18543
|
"button",
|
|
18485
18544
|
{
|
|
18486
18545
|
onClick: () => {
|
|
@@ -18490,16 +18549,16 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18490
18549
|
richTextToolbarButton,
|
|
18491
18550
|
activeFormats.includes(format.type) ? richTextToolbarButtonActive : null
|
|
18492
18551
|
],
|
|
18493
|
-
children: /* @__PURE__ */
|
|
18552
|
+
children: /* @__PURE__ */ jsx106(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
|
|
18494
18553
|
}
|
|
18495
18554
|
) }, format.type)),
|
|
18496
|
-
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
18555
|
+
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsx106(
|
|
18497
18556
|
Menu,
|
|
18498
18557
|
{
|
|
18499
18558
|
menuLabel: "Alternative text styles",
|
|
18500
|
-
menuTrigger: /* @__PURE__ */
|
|
18559
|
+
menuTrigger: /* @__PURE__ */ jsx106("button", { css: richTextToolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ jsx106(Icon, { icon: "more-alt", css: toolbarIcon }) }),
|
|
18501
18560
|
placement: "bottom-start",
|
|
18502
|
-
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */
|
|
18561
|
+
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ jsx106(
|
|
18503
18562
|
MenuItem,
|
|
18504
18563
|
{
|
|
18505
18564
|
onClick: () => {
|
|
@@ -18513,18 +18572,18 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18513
18572
|
) : null
|
|
18514
18573
|
] }) : null,
|
|
18515
18574
|
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ jsxs70("div", { css: toolbarGroup, children: [
|
|
18516
|
-
linkElementVisible ? /* @__PURE__ */
|
|
18575
|
+
linkElementVisible ? /* @__PURE__ */ jsx106(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ jsx106(
|
|
18517
18576
|
"button",
|
|
18518
18577
|
{
|
|
18519
18578
|
onClick: () => {
|
|
18520
18579
|
isLink ? editor.dispatchCommand(REMOVE_LINK_NODE_COMMAND, {}) : editor.dispatchCommand(OPEN_LINK_NODE_MODAL_COMMAND, {});
|
|
18521
18580
|
},
|
|
18522
18581
|
css: [richTextToolbarButton, isLink ? richTextToolbarButtonActive : null],
|
|
18523
|
-
children: /* @__PURE__ */
|
|
18582
|
+
children: /* @__PURE__ */ jsx106(RichTextToolbarIcon, { icon: "link" })
|
|
18524
18583
|
}
|
|
18525
18584
|
) }) : null,
|
|
18526
18585
|
visibleLists.size > 0 ? /* @__PURE__ */ jsxs70(Fragment17, { children: [
|
|
18527
|
-
visibleLists.has("unorderedList") ? /* @__PURE__ */
|
|
18586
|
+
visibleLists.has("unorderedList") ? /* @__PURE__ */ jsx106(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ jsx106(
|
|
18528
18587
|
"button",
|
|
18529
18588
|
{
|
|
18530
18589
|
onClick: () => {
|
|
@@ -18534,10 +18593,10 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18534
18593
|
richTextToolbarButton,
|
|
18535
18594
|
activeElement === "unorderedList" ? richTextToolbarButtonActive : null
|
|
18536
18595
|
],
|
|
18537
|
-
children: /* @__PURE__ */
|
|
18596
|
+
children: /* @__PURE__ */ jsx106(RichTextToolbarIcon, { icon: "layout-list" })
|
|
18538
18597
|
}
|
|
18539
18598
|
) }) : null,
|
|
18540
|
-
visibleLists.has("orderedList") ? /* @__PURE__ */
|
|
18599
|
+
visibleLists.has("orderedList") ? /* @__PURE__ */ jsx106(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ jsx106(
|
|
18541
18600
|
"button",
|
|
18542
18601
|
{
|
|
18543
18602
|
onClick: () => {
|
|
@@ -18547,32 +18606,32 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18547
18606
|
richTextToolbarButton,
|
|
18548
18607
|
activeElement === "orderedList" ? richTextToolbarButtonActive : null
|
|
18549
18608
|
],
|
|
18550
|
-
children: /* @__PURE__ */
|
|
18609
|
+
children: /* @__PURE__ */ jsx106(RichTextToolbarIcon, { icon: "layout-list-numbered" })
|
|
18551
18610
|
}
|
|
18552
18611
|
) }) : null
|
|
18553
18612
|
] }) : null,
|
|
18554
|
-
quoteElementVisible ? /* @__PURE__ */
|
|
18613
|
+
quoteElementVisible ? /* @__PURE__ */ jsx106(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ jsx106(
|
|
18555
18614
|
"button",
|
|
18556
18615
|
{
|
|
18557
18616
|
onClick: () => {
|
|
18558
18617
|
activeElement === "quote" ? onSelectElement("paragraph") : onSelectElement("quote");
|
|
18559
18618
|
},
|
|
18560
18619
|
css: [richTextToolbarButton, activeElement === "quote" ? richTextToolbarButtonActive : null],
|
|
18561
|
-
children: /* @__PURE__ */
|
|
18620
|
+
children: /* @__PURE__ */ jsx106(RichTextToolbarIcon, { icon: "quote" })
|
|
18562
18621
|
}
|
|
18563
18622
|
) }) : null,
|
|
18564
|
-
codeElementVisible ? /* @__PURE__ */
|
|
18623
|
+
codeElementVisible ? /* @__PURE__ */ jsx106(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ jsx106(
|
|
18565
18624
|
"button",
|
|
18566
18625
|
{
|
|
18567
18626
|
onClick: () => {
|
|
18568
18627
|
activeElement === "code" ? onSelectElement("paragraph") : onSelectElement("code");
|
|
18569
18628
|
},
|
|
18570
18629
|
css: [richTextToolbarButton, activeElement === "code" ? richTextToolbarButtonActive : null],
|
|
18571
|
-
children: /* @__PURE__ */
|
|
18630
|
+
children: /* @__PURE__ */ jsx106(RichTextToolbarIcon, { icon: "code-slash" })
|
|
18572
18631
|
}
|
|
18573
18632
|
) }) : null
|
|
18574
18633
|
] }) : null,
|
|
18575
|
-
customControls ? /* @__PURE__ */
|
|
18634
|
+
customControls ? /* @__PURE__ */ jsx106("div", { css: toolbarGroup, children: customControls }) : null
|
|
18576
18635
|
] });
|
|
18577
18636
|
};
|
|
18578
18637
|
var RichTextToolbar_default = RichTextToolbar;
|
|
@@ -18686,7 +18745,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
18686
18745
|
};
|
|
18687
18746
|
|
|
18688
18747
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
18689
|
-
import { Fragment as Fragment18, jsx as
|
|
18748
|
+
import { Fragment as Fragment18, jsx as jsx107, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
|
|
18690
18749
|
var ParameterRichText = ({
|
|
18691
18750
|
label,
|
|
18692
18751
|
labelLeadingIcon,
|
|
@@ -18725,7 +18784,7 @@ var ParameterRichText = ({
|
|
|
18725
18784
|
captionTestId,
|
|
18726
18785
|
menuItems,
|
|
18727
18786
|
children: [
|
|
18728
|
-
/* @__PURE__ */
|
|
18787
|
+
/* @__PURE__ */ jsx107(
|
|
18729
18788
|
ParameterRichTextInner,
|
|
18730
18789
|
{
|
|
18731
18790
|
value,
|
|
@@ -18743,7 +18802,7 @@ var ParameterRichText = ({
|
|
|
18743
18802
|
children
|
|
18744
18803
|
}
|
|
18745
18804
|
),
|
|
18746
|
-
menuItems ? /* @__PURE__ */
|
|
18805
|
+
menuItems ? /* @__PURE__ */ jsx107(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx107(Fragment18, { children: menuItems }) }) : null
|
|
18747
18806
|
]
|
|
18748
18807
|
}
|
|
18749
18808
|
);
|
|
@@ -18855,7 +18914,7 @@ var ParameterRichTextInner = ({
|
|
|
18855
18914
|
editable: !readOnly
|
|
18856
18915
|
};
|
|
18857
18916
|
return /* @__PURE__ */ jsxs71(Fragment18, { children: [
|
|
18858
|
-
/* @__PURE__ */
|
|
18917
|
+
/* @__PURE__ */ jsx107("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx107(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx107(
|
|
18859
18918
|
RichText,
|
|
18860
18919
|
{
|
|
18861
18920
|
onChange,
|
|
@@ -18915,19 +18974,19 @@ var RichText = ({
|
|
|
18915
18974
|
editor.setEditable(!readOnly);
|
|
18916
18975
|
}, [editor, readOnly]);
|
|
18917
18976
|
return /* @__PURE__ */ jsxs71(Fragment18, { children: [
|
|
18918
|
-
readOnly ? null : /* @__PURE__ */
|
|
18977
|
+
readOnly ? null : /* @__PURE__ */ jsx107(RichTextToolbar_default, { config, customControls }),
|
|
18919
18978
|
/* @__PURE__ */ jsxs71("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
|
|
18920
|
-
/* @__PURE__ */
|
|
18979
|
+
/* @__PURE__ */ jsx107(
|
|
18921
18980
|
RichTextPlugin,
|
|
18922
18981
|
{
|
|
18923
|
-
contentEditable: /* @__PURE__ */
|
|
18924
|
-
placeholder: /* @__PURE__ */
|
|
18982
|
+
contentEditable: /* @__PURE__ */ jsx107(ContentEditable, { css: editorInput, className: editorInputClassName }),
|
|
18983
|
+
placeholder: /* @__PURE__ */ jsx107("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
|
|
18925
18984
|
ErrorBoundary: LexicalErrorBoundary
|
|
18926
18985
|
}
|
|
18927
18986
|
),
|
|
18928
|
-
/* @__PURE__ */
|
|
18929
|
-
readOnly ? null : /* @__PURE__ */
|
|
18930
|
-
/* @__PURE__ */
|
|
18987
|
+
/* @__PURE__ */ jsx107(ListPlugin, {}),
|
|
18988
|
+
readOnly ? null : /* @__PURE__ */ jsx107(HistoryPlugin, {}),
|
|
18989
|
+
/* @__PURE__ */ jsx107(
|
|
18931
18990
|
LinkNodePlugin,
|
|
18932
18991
|
{
|
|
18933
18992
|
onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve(),
|
|
@@ -18937,21 +18996,21 @@ var RichText = ({
|
|
|
18937
18996
|
} : void 0
|
|
18938
18997
|
}
|
|
18939
18998
|
),
|
|
18940
|
-
/* @__PURE__ */
|
|
18941
|
-
/* @__PURE__ */
|
|
18942
|
-
/* @__PURE__ */
|
|
18943
|
-
/* @__PURE__ */
|
|
18999
|
+
/* @__PURE__ */ jsx107(ListIndentPlugin, { maxDepth: 4 }),
|
|
19000
|
+
/* @__PURE__ */ jsx107(DisableStylesPlugin, {}),
|
|
19001
|
+
/* @__PURE__ */ jsx107(MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
|
|
19002
|
+
/* @__PURE__ */ jsx107(Fragment18, { children })
|
|
18944
19003
|
] })
|
|
18945
19004
|
] });
|
|
18946
19005
|
};
|
|
18947
19006
|
|
|
18948
19007
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
18949
19008
|
import { forwardRef as forwardRef16 } from "react";
|
|
18950
|
-
import { jsx as
|
|
19009
|
+
import { jsx as jsx108, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
|
|
18951
19010
|
var ParameterSelect = forwardRef16(
|
|
18952
19011
|
({ defaultOption, options, ...props }, ref) => {
|
|
18953
19012
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18954
|
-
return /* @__PURE__ */
|
|
19013
|
+
return /* @__PURE__ */ jsx108(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx108(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
18955
19014
|
}
|
|
18956
19015
|
);
|
|
18957
19016
|
var ParameterSelectInner = forwardRef16(
|
|
@@ -18966,10 +19025,10 @@ var ParameterSelectInner = forwardRef16(
|
|
|
18966
19025
|
ref,
|
|
18967
19026
|
...props,
|
|
18968
19027
|
children: [
|
|
18969
|
-
defaultOption ? /* @__PURE__ */
|
|
19028
|
+
defaultOption ? /* @__PURE__ */ jsx108("option", { value: "", children: defaultOption }) : null,
|
|
18970
19029
|
options.map((option) => {
|
|
18971
19030
|
var _a;
|
|
18972
|
-
return /* @__PURE__ */
|
|
19031
|
+
return /* @__PURE__ */ jsx108("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
18973
19032
|
})
|
|
18974
19033
|
]
|
|
18975
19034
|
}
|
|
@@ -18979,14 +19038,14 @@ var ParameterSelectInner = forwardRef16(
|
|
|
18979
19038
|
|
|
18980
19039
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
18981
19040
|
import { forwardRef as forwardRef17 } from "react";
|
|
18982
|
-
import { jsx as
|
|
19041
|
+
import { jsx as jsx109 } from "@emotion/react/jsx-runtime";
|
|
18983
19042
|
var ParameterTextarea = forwardRef17((props, ref) => {
|
|
18984
19043
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18985
|
-
return /* @__PURE__ */
|
|
19044
|
+
return /* @__PURE__ */ jsx109(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx109(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
18986
19045
|
});
|
|
18987
19046
|
var ParameterTextareaInner = forwardRef17(({ ...props }, ref) => {
|
|
18988
19047
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
18989
|
-
return /* @__PURE__ */
|
|
19048
|
+
return /* @__PURE__ */ jsx109(
|
|
18990
19049
|
"textarea",
|
|
18991
19050
|
{
|
|
18992
19051
|
css: [input2, textarea2],
|
|
@@ -19000,17 +19059,17 @@ var ParameterTextareaInner = forwardRef17(({ ...props }, ref) => {
|
|
|
19000
19059
|
|
|
19001
19060
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
19002
19061
|
import { forwardRef as forwardRef18 } from "react";
|
|
19003
|
-
import { jsx as
|
|
19062
|
+
import { jsx as jsx110, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
|
|
19004
19063
|
var ParameterToggle = forwardRef18((props, ref) => {
|
|
19005
19064
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
19006
|
-
return /* @__PURE__ */
|
|
19065
|
+
return /* @__PURE__ */ jsx110(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx110(ParameterToggleInner, { ref, ...innerProps }) });
|
|
19007
19066
|
});
|
|
19008
19067
|
var ParameterToggleInner = forwardRef18(
|
|
19009
19068
|
({ ...props }, ref) => {
|
|
19010
19069
|
const { id, label } = useParameterShell();
|
|
19011
19070
|
return /* @__PURE__ */ jsxs73("label", { css: inputToggleLabel2, children: [
|
|
19012
|
-
/* @__PURE__ */
|
|
19013
|
-
/* @__PURE__ */
|
|
19071
|
+
/* @__PURE__ */ jsx110("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
19072
|
+
/* @__PURE__ */ jsx110("span", { css: inlineLabel2, children: label })
|
|
19014
19073
|
] });
|
|
19015
19074
|
}
|
|
19016
19075
|
);
|
|
@@ -19070,7 +19129,7 @@ var bar = css86`
|
|
|
19070
19129
|
`;
|
|
19071
19130
|
|
|
19072
19131
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
19073
|
-
import { jsx as
|
|
19132
|
+
import { jsx as jsx111 } from "@emotion/react/jsx-runtime";
|
|
19074
19133
|
function ProgressBar({
|
|
19075
19134
|
current,
|
|
19076
19135
|
max,
|
|
@@ -19080,7 +19139,7 @@ function ProgressBar({
|
|
|
19080
19139
|
}) {
|
|
19081
19140
|
const valueNow = Math.min(current, max);
|
|
19082
19141
|
const valuePercentage = max > 0 ? Math.ceil(100 / max * valueNow) : 0;
|
|
19083
|
-
return /* @__PURE__ */
|
|
19142
|
+
return /* @__PURE__ */ jsx111(
|
|
19084
19143
|
"div",
|
|
19085
19144
|
{
|
|
19086
19145
|
css: container2,
|
|
@@ -19091,7 +19150,7 @@ function ProgressBar({
|
|
|
19091
19150
|
"aria-valuemax": max,
|
|
19092
19151
|
"aria-valuenow": valueNow,
|
|
19093
19152
|
...props,
|
|
19094
|
-
children: /* @__PURE__ */
|
|
19153
|
+
children: /* @__PURE__ */ jsx111(
|
|
19095
19154
|
"div",
|
|
19096
19155
|
{
|
|
19097
19156
|
css: [
|
|
@@ -19131,7 +19190,7 @@ var progressListItemStyles = css87`
|
|
|
19131
19190
|
`;
|
|
19132
19191
|
|
|
19133
19192
|
// src/components/ProgressList/ProgressList.tsx
|
|
19134
|
-
import { jsx as
|
|
19193
|
+
import { jsx as jsx112, jsxs as jsxs74 } from "@emotion/react/jsx-runtime";
|
|
19135
19194
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
19136
19195
|
const itemsWithStatus = useMemo4(() => {
|
|
19137
19196
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -19145,8 +19204,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
19145
19204
|
return { ...item, status };
|
|
19146
19205
|
});
|
|
19147
19206
|
}, [items, inProgressId]);
|
|
19148
|
-
return /* @__PURE__ */
|
|
19149
|
-
return /* @__PURE__ */
|
|
19207
|
+
return /* @__PURE__ */ jsx112("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
19208
|
+
return /* @__PURE__ */ jsx112(
|
|
19150
19209
|
ProgressListItem,
|
|
19151
19210
|
{
|
|
19152
19211
|
status,
|
|
@@ -19205,10 +19264,10 @@ var ProgressListItem = ({
|
|
|
19205
19264
|
return colorPerStatus[status];
|
|
19206
19265
|
}, [status, error, errorLevel]);
|
|
19207
19266
|
return /* @__PURE__ */ jsxs74("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
19208
|
-
/* @__PURE__ */
|
|
19267
|
+
/* @__PURE__ */ jsx112(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx112("div", { children: /* @__PURE__ */ jsx112(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
|
|
19209
19268
|
/* @__PURE__ */ jsxs74("div", { children: [
|
|
19210
19269
|
children,
|
|
19211
|
-
/* @__PURE__ */
|
|
19270
|
+
/* @__PURE__ */ jsx112("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
19212
19271
|
] })
|
|
19213
19272
|
] });
|
|
19214
19273
|
};
|
|
@@ -19340,7 +19399,7 @@ var segmentedControlLabelContentStyles = css89`
|
|
|
19340
19399
|
var segmentedControlLabelTextStyles = css89``;
|
|
19341
19400
|
|
|
19342
19401
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
19343
|
-
import { jsx as
|
|
19402
|
+
import { jsx as jsx113, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
|
|
19344
19403
|
var SegmentedControl = ({
|
|
19345
19404
|
name,
|
|
19346
19405
|
options,
|
|
@@ -19371,7 +19430,7 @@ var SegmentedControl = ({
|
|
|
19371
19430
|
const isIconOnly = useMemo5(() => {
|
|
19372
19431
|
return options.every((option) => option && option.icon && !option.label);
|
|
19373
19432
|
}, [options]);
|
|
19374
|
-
return /* @__PURE__ */
|
|
19433
|
+
return /* @__PURE__ */ jsx113(
|
|
19375
19434
|
"div",
|
|
19376
19435
|
{
|
|
19377
19436
|
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
@@ -19382,11 +19441,11 @@ var SegmentedControl = ({
|
|
|
19382
19441
|
}
|
|
19383
19442
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
19384
19443
|
const isDisabled = disabled2 || option.disabled;
|
|
19385
|
-
return /* @__PURE__ */
|
|
19444
|
+
return /* @__PURE__ */ jsx113(
|
|
19386
19445
|
Tooltip,
|
|
19387
19446
|
{
|
|
19388
19447
|
title: isDisabled || !option.tooltip ? "" : option.tooltip,
|
|
19389
|
-
children: /* @__PURE__ */
|
|
19448
|
+
children: /* @__PURE__ */ jsx113("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ jsxs75(
|
|
19390
19449
|
"label",
|
|
19391
19450
|
{
|
|
19392
19451
|
css: [
|
|
@@ -19395,7 +19454,7 @@ var SegmentedControl = ({
|
|
|
19395
19454
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
19396
19455
|
],
|
|
19397
19456
|
children: [
|
|
19398
|
-
/* @__PURE__ */
|
|
19457
|
+
/* @__PURE__ */ jsx113(
|
|
19399
19458
|
"input",
|
|
19400
19459
|
{
|
|
19401
19460
|
css: segmentedControlInputStyles,
|
|
@@ -19407,10 +19466,10 @@ var SegmentedControl = ({
|
|
|
19407
19466
|
disabled: isDisabled
|
|
19408
19467
|
}
|
|
19409
19468
|
),
|
|
19410
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */
|
|
19469
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx113(CgCheck4, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
19411
19470
|
/* @__PURE__ */ jsxs75("span", { css: segmentedControlLabelContentStyles, children: [
|
|
19412
|
-
!option.icon ? null : /* @__PURE__ */
|
|
19413
|
-
!text ? null : /* @__PURE__ */
|
|
19471
|
+
!option.icon ? null : /* @__PURE__ */ jsx113(Icon, { icon: option.icon, size: "1.5em", iconColor: "currentColor" }),
|
|
19472
|
+
!text ? null : /* @__PURE__ */ jsx113("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
19414
19473
|
] })
|
|
19415
19474
|
]
|
|
19416
19475
|
}
|
|
@@ -19435,7 +19494,7 @@ var skeletonStyles = css91`
|
|
|
19435
19494
|
`;
|
|
19436
19495
|
|
|
19437
19496
|
// src/components/Skeleton/Skeleton.tsx
|
|
19438
|
-
import { jsx as
|
|
19497
|
+
import { jsx as jsx114 } from "@emotion/react/jsx-runtime";
|
|
19439
19498
|
var Skeleton = ({
|
|
19440
19499
|
width = "100%",
|
|
19441
19500
|
height = "1.25rem",
|
|
@@ -19443,7 +19502,7 @@ var Skeleton = ({
|
|
|
19443
19502
|
circle = false,
|
|
19444
19503
|
children,
|
|
19445
19504
|
...otherProps
|
|
19446
|
-
}) => /* @__PURE__ */
|
|
19505
|
+
}) => /* @__PURE__ */ jsx114(
|
|
19447
19506
|
"div",
|
|
19448
19507
|
{
|
|
19449
19508
|
css: [
|
|
@@ -19550,7 +19609,7 @@ var SwitchText = css92`
|
|
|
19550
19609
|
`;
|
|
19551
19610
|
|
|
19552
19611
|
// src/components/Switch/Switch.tsx
|
|
19553
|
-
import { Fragment as Fragment19, jsx as
|
|
19612
|
+
import { Fragment as Fragment19, jsx as jsx115, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
|
|
19554
19613
|
var Switch = React23.forwardRef(
|
|
19555
19614
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
19556
19615
|
let additionalText = infoText;
|
|
@@ -19559,10 +19618,10 @@ var Switch = React23.forwardRef(
|
|
|
19559
19618
|
}
|
|
19560
19619
|
return /* @__PURE__ */ jsxs76(Fragment19, { children: [
|
|
19561
19620
|
/* @__PURE__ */ jsxs76("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
19562
|
-
/* @__PURE__ */
|
|
19563
|
-
/* @__PURE__ */
|
|
19621
|
+
/* @__PURE__ */ jsx115("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
19622
|
+
/* @__PURE__ */ jsx115("span", { css: SwitchInputLabel, children: label })
|
|
19564
19623
|
] }),
|
|
19565
|
-
additionalText ? /* @__PURE__ */
|
|
19624
|
+
additionalText ? /* @__PURE__ */ jsx115("p", { css: SwitchText, children: additionalText }) : null,
|
|
19566
19625
|
children
|
|
19567
19626
|
] });
|
|
19568
19627
|
}
|
|
@@ -19599,40 +19658,40 @@ var tableCellHead = css93`
|
|
|
19599
19658
|
`;
|
|
19600
19659
|
|
|
19601
19660
|
// src/components/Table/Table.tsx
|
|
19602
|
-
import { jsx as
|
|
19661
|
+
import { jsx as jsx116 } from "@emotion/react/jsx-runtime";
|
|
19603
19662
|
var Table = React24.forwardRef(
|
|
19604
19663
|
({ children, cellPadding, ...otherProps }, ref) => {
|
|
19605
|
-
return /* @__PURE__ */
|
|
19664
|
+
return /* @__PURE__ */ jsx116("table", { ref, css: table({ cellPadding }), ...otherProps, children });
|
|
19606
19665
|
}
|
|
19607
19666
|
);
|
|
19608
19667
|
var TableHead = React24.forwardRef(
|
|
19609
19668
|
({ children, ...otherProps }, ref) => {
|
|
19610
|
-
return /* @__PURE__ */
|
|
19669
|
+
return /* @__PURE__ */ jsx116("thead", { ref, css: tableHead, ...otherProps, children });
|
|
19611
19670
|
}
|
|
19612
19671
|
);
|
|
19613
19672
|
var TableBody = React24.forwardRef(
|
|
19614
19673
|
({ children, ...otherProps }, ref) => {
|
|
19615
|
-
return /* @__PURE__ */
|
|
19674
|
+
return /* @__PURE__ */ jsx116("tbody", { ref, ...otherProps, children });
|
|
19616
19675
|
}
|
|
19617
19676
|
);
|
|
19618
19677
|
var TableFoot = React24.forwardRef(
|
|
19619
19678
|
({ children, ...otherProps }, ref) => {
|
|
19620
|
-
return /* @__PURE__ */
|
|
19679
|
+
return /* @__PURE__ */ jsx116("tfoot", { ref, ...otherProps, children });
|
|
19621
19680
|
}
|
|
19622
19681
|
);
|
|
19623
19682
|
var TableRow = React24.forwardRef(
|
|
19624
19683
|
({ children, ...otherProps }, ref) => {
|
|
19625
|
-
return /* @__PURE__ */
|
|
19684
|
+
return /* @__PURE__ */ jsx116("tr", { ref, css: tableRow, ...otherProps, children });
|
|
19626
19685
|
}
|
|
19627
19686
|
);
|
|
19628
19687
|
var TableCellHead = React24.forwardRef(
|
|
19629
19688
|
({ children, ...otherProps }, ref) => {
|
|
19630
|
-
return /* @__PURE__ */
|
|
19689
|
+
return /* @__PURE__ */ jsx116("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
19631
19690
|
}
|
|
19632
19691
|
);
|
|
19633
19692
|
var TableCellData = React24.forwardRef(
|
|
19634
19693
|
({ children, ...otherProps }, ref) => {
|
|
19635
|
-
return /* @__PURE__ */
|
|
19694
|
+
return /* @__PURE__ */ jsx116("td", { ref, ...otherProps, children });
|
|
19636
19695
|
}
|
|
19637
19696
|
);
|
|
19638
19697
|
|
|
@@ -19672,7 +19731,7 @@ var tabButtonGroupStyles = css94`
|
|
|
19672
19731
|
`;
|
|
19673
19732
|
|
|
19674
19733
|
// src/components/Tabs/Tabs.tsx
|
|
19675
|
-
import { jsx as
|
|
19734
|
+
import { jsx as jsx117 } from "@emotion/react/jsx-runtime";
|
|
19676
19735
|
var useCurrentTab = () => {
|
|
19677
19736
|
const context = useAriakitTabStore();
|
|
19678
19737
|
if (!context) {
|
|
@@ -19710,28 +19769,270 @@ var Tabs = ({
|
|
|
19710
19769
|
tab.setSelectedId(selected);
|
|
19711
19770
|
}
|
|
19712
19771
|
}, [selected, tab]);
|
|
19713
|
-
return /* @__PURE__ */
|
|
19772
|
+
return /* @__PURE__ */ jsx117(AriakitTabProvider, { store: tab, setSelectedId: onTabSelect, children });
|
|
19714
19773
|
};
|
|
19715
19774
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
19716
|
-
return /* @__PURE__ */
|
|
19775
|
+
return /* @__PURE__ */ jsx117(AriakitTabList, { ...props, css: tabButtonGroupStyles, children });
|
|
19717
19776
|
};
|
|
19718
19777
|
var TabButton = ({
|
|
19719
19778
|
children,
|
|
19720
19779
|
id,
|
|
19721
19780
|
...props
|
|
19722
19781
|
}) => {
|
|
19723
|
-
return /* @__PURE__ */
|
|
19782
|
+
return /* @__PURE__ */ jsx117(AriakitTab, { type: "button", id, ...props, css: tabButtonStyles, children });
|
|
19724
19783
|
};
|
|
19725
19784
|
var TabContent = ({
|
|
19726
19785
|
children,
|
|
19727
19786
|
...props
|
|
19728
19787
|
}) => {
|
|
19729
|
-
return /* @__PURE__ */
|
|
19788
|
+
return /* @__PURE__ */ jsx117(AriakitTabPanel, { ...props, children });
|
|
19730
19789
|
};
|
|
19731
19790
|
|
|
19732
|
-
// src/components/
|
|
19791
|
+
// src/components/Toast/Toast.tsx
|
|
19792
|
+
import { toast, ToastContainer as ToastifyContainer } from "react-toastify";
|
|
19793
|
+
|
|
19794
|
+
// src/components/Toast/Toast.styles.ts
|
|
19733
19795
|
import { css as css95 } from "@emotion/react";
|
|
19734
|
-
var
|
|
19796
|
+
var toastContainerStyles = css95`
|
|
19797
|
+
${functionalColors}
|
|
19798
|
+
|
|
19799
|
+
--toastify-color-light: white;
|
|
19800
|
+
--toastify-color-info: var(--info-icon);
|
|
19801
|
+
--toastify-color-success: var(--success-icon);
|
|
19802
|
+
--toastify-color-warning: var(--caution-icon);
|
|
19803
|
+
--toastify-color-error: var(--danger-icon);
|
|
19804
|
+
--toastify-color-transparent: rgba(255, 255, 255, 0.7);
|
|
19805
|
+
--toastify-icon-color-info: var(--toastify-color-info);
|
|
19806
|
+
--toastify-icon-color-success: var(--toastify-color-success);
|
|
19807
|
+
--toastify-icon-color-warning: var(--toastify-color-warning);
|
|
19808
|
+
--toastify-icon-color-error: var(--toastify-color-error);
|
|
19809
|
+
--toastify-toast-width: 24rem;
|
|
19810
|
+
--toastify-toast-background: white;
|
|
19811
|
+
--toastify-toast-min-height: 4rem;
|
|
19812
|
+
--toastify-toast-max-height: 50rem;
|
|
19813
|
+
--toastify-z-index: 9999;
|
|
19814
|
+
--toastify-text-color-info: white;
|
|
19815
|
+
--toastify-text-color-success: white;
|
|
19816
|
+
--toastify-text-color-warning: white;
|
|
19817
|
+
--toastify-text-color-error: white;
|
|
19818
|
+
--toastify-spinner-color: var(--gray-600);
|
|
19819
|
+
--toastify-spinner-color-empty-area: var(--gray-200);
|
|
19820
|
+
--toastify-color-progress-light: var(--accent-light);
|
|
19821
|
+
--toastify-color-progress-info: var(--toastify-color-info);
|
|
19822
|
+
--toastify-color-progress-success: var(--toastify-color-success);
|
|
19823
|
+
--toastify-color-progress-warning: var(--toastify-color-warning);
|
|
19824
|
+
--toastify-color-progress-error: var(--toastify-color-error);
|
|
19825
|
+
|
|
19826
|
+
&.Toastify__toast-container {
|
|
19827
|
+
z-index: var(--toastify-z-index);
|
|
19828
|
+
transform: translate3d(0, 0, var(--toastify-z-index));
|
|
19829
|
+
position: fixed;
|
|
19830
|
+
padding: var(--spacing-xs);
|
|
19831
|
+
width: var(--toastify-toast-width);
|
|
19832
|
+
color: white;
|
|
19833
|
+
}
|
|
19834
|
+
&.Toastify__toast-container--bottom-right {
|
|
19835
|
+
bottom: var(--spacing-base);
|
|
19836
|
+
right: var(--spacing-base);
|
|
19837
|
+
}
|
|
19838
|
+
|
|
19839
|
+
@media only screen and (max-width: 480px) {
|
|
19840
|
+
&.Toastify__toast-container {
|
|
19841
|
+
width: 100vw;
|
|
19842
|
+
padding: 0;
|
|
19843
|
+
left: 0;
|
|
19844
|
+
margin: 0;
|
|
19845
|
+
}
|
|
19846
|
+
&.Toastify__toast-container--bottom-right {
|
|
19847
|
+
bottom: 0;
|
|
19848
|
+
transform: translateX(0);
|
|
19849
|
+
}
|
|
19850
|
+
}
|
|
19851
|
+
.Toastify__toast {
|
|
19852
|
+
position: relative;
|
|
19853
|
+
display: flex;
|
|
19854
|
+
justify-content: space-between;
|
|
19855
|
+
min-height: var(--toastify-toast-min-height);
|
|
19856
|
+
max-height: var(--toastify-toast-max-height);
|
|
19857
|
+
font-size: var(--fs-sm);
|
|
19858
|
+
margin-bottom: var(--spacing-base);
|
|
19859
|
+
padding: var(--spacing-sm);
|
|
19860
|
+
border-radius: var(--rounded-md);
|
|
19861
|
+
box-shadow: var(--elevation-200);
|
|
19862
|
+
overflow: hidden;
|
|
19863
|
+
cursor: default;
|
|
19864
|
+
/* webkit only issue #791 */
|
|
19865
|
+
z-index: 0;
|
|
19866
|
+
}
|
|
19867
|
+
.Toastify__toast--close-on-click {
|
|
19868
|
+
cursor: pointer;
|
|
19869
|
+
}
|
|
19870
|
+
.Toastify__toast-body {
|
|
19871
|
+
margin: auto 0;
|
|
19872
|
+
flex: 1 1 auto;
|
|
19873
|
+
padding: var(--spacing-sm);
|
|
19874
|
+
display: flex;
|
|
19875
|
+
align-items: center;
|
|
19876
|
+
}
|
|
19877
|
+
.Toastify__toast-body > div:last-child {
|
|
19878
|
+
word-break: break-word;
|
|
19879
|
+
flex: 1;
|
|
19880
|
+
}
|
|
19881
|
+
.Toastify__toast-icon {
|
|
19882
|
+
margin-inline-end: var(--spacing-base);
|
|
19883
|
+
width: 16px;
|
|
19884
|
+
flex-shrink: 0;
|
|
19885
|
+
display: flex;
|
|
19886
|
+
}
|
|
19887
|
+
|
|
19888
|
+
.Toastify--animate {
|
|
19889
|
+
animation-fill-mode: both;
|
|
19890
|
+
animation-duration: var(--duration-slow);
|
|
19891
|
+
}
|
|
19892
|
+
|
|
19893
|
+
.Toastify--animate-icon {
|
|
19894
|
+
animation-fill-mode: both;
|
|
19895
|
+
animation-duration: var(--duration-fast);
|
|
19896
|
+
}
|
|
19897
|
+
|
|
19898
|
+
@media only screen and (max-width: 480px) {
|
|
19899
|
+
.Toastify__toast {
|
|
19900
|
+
margin-bottom: 0;
|
|
19901
|
+
border-radius: 0;
|
|
19902
|
+
}
|
|
19903
|
+
}
|
|
19904
|
+
.Toastify__toast-theme--light {
|
|
19905
|
+
background: var(--toastify-color-light);
|
|
19906
|
+
color: var(--brand-secondary-1);
|
|
19907
|
+
}
|
|
19908
|
+
|
|
19909
|
+
.Toastify__progress-bar-theme--light {
|
|
19910
|
+
background: var(--toastify-color-progress-light);
|
|
19911
|
+
}
|
|
19912
|
+
.Toastify__progress-bar--info {
|
|
19913
|
+
background: var(--toastify-color-progress-info);
|
|
19914
|
+
}
|
|
19915
|
+
.Toastify__progress-bar--success {
|
|
19916
|
+
background: var(--toastify-color-progress-success);
|
|
19917
|
+
}
|
|
19918
|
+
.Toastify__progress-bar--warning {
|
|
19919
|
+
background: var(--toastify-color-progress-warning);
|
|
19920
|
+
}
|
|
19921
|
+
.Toastify__progress-bar--error {
|
|
19922
|
+
background: var(--toastify-color-progress-error);
|
|
19923
|
+
}
|
|
19924
|
+
|
|
19925
|
+
.Toastify__close-button {
|
|
19926
|
+
background: transparent;
|
|
19927
|
+
outline: none;
|
|
19928
|
+
border: none;
|
|
19929
|
+
padding: 0;
|
|
19930
|
+
cursor: pointer;
|
|
19931
|
+
opacity: 0.5;
|
|
19932
|
+
transition: var(--spacing-base) ease-in-out;
|
|
19933
|
+
align-self: flex-start;
|
|
19934
|
+
}
|
|
19935
|
+
.Toastify__close-button > svg {
|
|
19936
|
+
fill: currentColor;
|
|
19937
|
+
height: 16px;
|
|
19938
|
+
width: 14px;
|
|
19939
|
+
}
|
|
19940
|
+
.Toastify__close-button:hover,
|
|
19941
|
+
.Toastify__close-button:focus {
|
|
19942
|
+
opacity: 1;
|
|
19943
|
+
}
|
|
19944
|
+
|
|
19945
|
+
.Toastify__progress-bar {
|
|
19946
|
+
position: absolute;
|
|
19947
|
+
bottom: 0;
|
|
19948
|
+
left: 0;
|
|
19949
|
+
width: 100%;
|
|
19950
|
+
height: var(--spacing-2xs);
|
|
19951
|
+
z-index: var(--toastify-z-index);
|
|
19952
|
+
transform-origin: left;
|
|
19953
|
+
}
|
|
19954
|
+
.Toastify__progress-bar--animated {
|
|
19955
|
+
animation: Toastify__trackProgress linear 1 forwards;
|
|
19956
|
+
}
|
|
19957
|
+
.Toastify__progress-bar--controlled {
|
|
19958
|
+
transition: transform var(--duration-fast);
|
|
19959
|
+
}
|
|
19960
|
+
|
|
19961
|
+
.Toastify__spinner {
|
|
19962
|
+
width: 16px;
|
|
19963
|
+
height: 16px;
|
|
19964
|
+
border: 2px solid;
|
|
19965
|
+
border-radius: 100%;
|
|
19966
|
+
border-color: var(--toastify-spinner-color-empty-area);
|
|
19967
|
+
border-right-color: var(--toastify-spinner-color);
|
|
19968
|
+
animation: Toastify__spin var(--duration-slow) linear infinite;
|
|
19969
|
+
}
|
|
19970
|
+
|
|
19971
|
+
.Toastify__bounce-enter--bottom-right {
|
|
19972
|
+
animation-name: Toastify__slideInRight;
|
|
19973
|
+
}
|
|
19974
|
+
|
|
19975
|
+
.Toastify__bounce-exit--bottom-right {
|
|
19976
|
+
animation-name: Toastify__slideOutRight;
|
|
19977
|
+
}
|
|
19978
|
+
|
|
19979
|
+
@keyframes Toastify__slideInRight {
|
|
19980
|
+
from {
|
|
19981
|
+
transform: translate3d(110%, 0, 0);
|
|
19982
|
+
visibility: visible;
|
|
19983
|
+
}
|
|
19984
|
+
to {
|
|
19985
|
+
transform: translate3d(0, 0, 0);
|
|
19986
|
+
}
|
|
19987
|
+
}
|
|
19988
|
+
@keyframes Toastify__slideOutRight {
|
|
19989
|
+
from {
|
|
19990
|
+
transform: translate3d(0, 0, 0);
|
|
19991
|
+
}
|
|
19992
|
+
to {
|
|
19993
|
+
visibility: hidden;
|
|
19994
|
+
transform: translate3d(110%, 0, 0);
|
|
19995
|
+
}
|
|
19996
|
+
}
|
|
19997
|
+
|
|
19998
|
+
@keyframes Toastify__spin {
|
|
19999
|
+
from {
|
|
20000
|
+
transform: rotate(0deg);
|
|
20001
|
+
}
|
|
20002
|
+
to {
|
|
20003
|
+
transform: rotate(360deg);
|
|
20004
|
+
}
|
|
20005
|
+
}
|
|
20006
|
+
|
|
20007
|
+
@keyframes Toastify__trackProgress {
|
|
20008
|
+
0% {
|
|
20009
|
+
transform: scaleX(1);
|
|
20010
|
+
}
|
|
20011
|
+
100% {
|
|
20012
|
+
transform: scaleX(0);
|
|
20013
|
+
}
|
|
20014
|
+
}
|
|
20015
|
+
`;
|
|
20016
|
+
|
|
20017
|
+
// src/components/Toast/Toast.tsx
|
|
20018
|
+
import { jsx as jsx118 } from "@emotion/react/jsx-runtime";
|
|
20019
|
+
var ToastContainer = ({ limit = 4 }) => {
|
|
20020
|
+
return /* @__PURE__ */ jsx118(
|
|
20021
|
+
ToastifyContainer,
|
|
20022
|
+
{
|
|
20023
|
+
css: toastContainerStyles,
|
|
20024
|
+
autoClose: 1e4,
|
|
20025
|
+
limit,
|
|
20026
|
+
theme: "light",
|
|
20027
|
+
position: "bottom-right",
|
|
20028
|
+
closeOnClick: false
|
|
20029
|
+
}
|
|
20030
|
+
);
|
|
20031
|
+
};
|
|
20032
|
+
|
|
20033
|
+
// src/components/Validation/StatusBullet.styles.ts
|
|
20034
|
+
import { css as css96 } from "@emotion/react";
|
|
20035
|
+
var StatusBulletContainer = css96`
|
|
19735
20036
|
align-items: center;
|
|
19736
20037
|
align-self: center;
|
|
19737
20038
|
color: var(--gray-500);
|
|
@@ -19748,33 +20049,33 @@ var StatusBulletContainer = css95`
|
|
|
19748
20049
|
display: block;
|
|
19749
20050
|
}
|
|
19750
20051
|
`;
|
|
19751
|
-
var StatusBulletBase =
|
|
20052
|
+
var StatusBulletBase = css96`
|
|
19752
20053
|
font-size: var(--fs-sm);
|
|
19753
20054
|
&:before {
|
|
19754
20055
|
width: var(--fs-xs);
|
|
19755
20056
|
height: var(--fs-xs);
|
|
19756
20057
|
}
|
|
19757
20058
|
`;
|
|
19758
|
-
var StatusBulletSmall =
|
|
20059
|
+
var StatusBulletSmall = css96`
|
|
19759
20060
|
font-size: var(--fs-xs);
|
|
19760
20061
|
&:before {
|
|
19761
20062
|
width: var(--fs-xxs);
|
|
19762
20063
|
height: var(--fs-xxs);
|
|
19763
20064
|
}
|
|
19764
20065
|
`;
|
|
19765
|
-
var StatusDraft =
|
|
20066
|
+
var StatusDraft = css96`
|
|
19766
20067
|
&:before {
|
|
19767
20068
|
background: var(--white);
|
|
19768
20069
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
19769
20070
|
}
|
|
19770
20071
|
`;
|
|
19771
|
-
var StatusModified =
|
|
20072
|
+
var StatusModified = css96`
|
|
19772
20073
|
&:before {
|
|
19773
20074
|
background: linear-gradient(to right, var(--white) 50%, var(--primary-action-default) 50% 100%);
|
|
19774
20075
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
19775
20076
|
}
|
|
19776
20077
|
`;
|
|
19777
|
-
var StatusError =
|
|
20078
|
+
var StatusError = css96`
|
|
19778
20079
|
color: var(--error);
|
|
19779
20080
|
&:before {
|
|
19780
20081
|
/* TODO: replace this with an svg icon */
|
|
@@ -19787,24 +20088,24 @@ var StatusError = css95`
|
|
|
19787
20088
|
);
|
|
19788
20089
|
}
|
|
19789
20090
|
`;
|
|
19790
|
-
var StatusPublished =
|
|
20091
|
+
var StatusPublished = css96`
|
|
19791
20092
|
&:before {
|
|
19792
20093
|
background: var(--primary-action-default);
|
|
19793
20094
|
}
|
|
19794
20095
|
`;
|
|
19795
|
-
var StatusOrphan =
|
|
20096
|
+
var StatusOrphan = css96`
|
|
19796
20097
|
&:before {
|
|
19797
20098
|
background: var(--brand-secondary-5);
|
|
19798
20099
|
}
|
|
19799
20100
|
`;
|
|
19800
|
-
var StatusUnknown =
|
|
20101
|
+
var StatusUnknown = css96`
|
|
19801
20102
|
&:before {
|
|
19802
20103
|
background: var(--brand-secondary-1);
|
|
19803
20104
|
}
|
|
19804
20105
|
`;
|
|
19805
20106
|
|
|
19806
20107
|
// src/components/Validation/StatusBullet.tsx
|
|
19807
|
-
import { jsx as
|
|
20108
|
+
import { jsx as jsx119 } from "@emotion/react/jsx-runtime";
|
|
19808
20109
|
var StatusBullet = ({
|
|
19809
20110
|
status,
|
|
19810
20111
|
hideText = false,
|
|
@@ -19823,7 +20124,7 @@ var StatusBullet = ({
|
|
|
19823
20124
|
Unknown: StatusUnknown
|
|
19824
20125
|
};
|
|
19825
20126
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
19826
|
-
return /* @__PURE__ */
|
|
20127
|
+
return /* @__PURE__ */ jsx119(
|
|
19827
20128
|
"span",
|
|
19828
20129
|
{
|
|
19829
20130
|
role: "status",
|
|
@@ -19972,6 +20273,7 @@ export {
|
|
|
19972
20273
|
Tile2 as Tile,
|
|
19973
20274
|
TileContainer,
|
|
19974
20275
|
TileText2 as TileText,
|
|
20276
|
+
ToastContainer,
|
|
19975
20277
|
Tooltip,
|
|
19976
20278
|
TwoColumnLayout,
|
|
19977
20279
|
UniformBadge,
|
|
@@ -20045,6 +20347,7 @@ export {
|
|
|
20045
20347
|
structurePanelIcon,
|
|
20046
20348
|
supports,
|
|
20047
20349
|
textInput,
|
|
20350
|
+
toast,
|
|
20048
20351
|
useBreakpoint,
|
|
20049
20352
|
useCloseCurrentDrawer,
|
|
20050
20353
|
useCurrentDrawer,
|