@uniformdev/design-system 19.94.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 +680 -379
- package/dist/index.d.mts +25 -10
- package/dist/index.d.ts +25 -10
- package/dist/index.js +767 -459
- package/package.json +5 -4
package/dist/index.js
CHANGED
|
@@ -1481,6 +1481,7 @@ __export(src_exports, {
|
|
|
1481
1481
|
Tile: () => Tile2,
|
|
1482
1482
|
TileContainer: () => TileContainer,
|
|
1483
1483
|
TileText: () => TileText2,
|
|
1484
|
+
ToastContainer: () => ToastContainer,
|
|
1484
1485
|
Tooltip: () => Tooltip,
|
|
1485
1486
|
TwoColumnLayout: () => TwoColumnLayout,
|
|
1486
1487
|
UniformBadge: () => UniformBadge,
|
|
@@ -1554,6 +1555,7 @@ __export(src_exports, {
|
|
|
1554
1555
|
structurePanelIcon: () => structurePanelIcon,
|
|
1555
1556
|
supports: () => supports,
|
|
1556
1557
|
textInput: () => textInput,
|
|
1558
|
+
toast: () => import_react_toastify.toast,
|
|
1557
1559
|
useBreakpoint: () => useBreakpoint,
|
|
1558
1560
|
useCloseCurrentDrawer: () => useCloseCurrentDrawer,
|
|
1559
1561
|
useCurrentDrawer: () => useCurrentDrawer,
|
|
@@ -15687,21 +15689,8 @@ var InfoMessage = ({ message, testId, ...props }) => {
|
|
|
15687
15689
|
init_emotion_jsx_shim();
|
|
15688
15690
|
var React16 = __toESM(require("react"));
|
|
15689
15691
|
|
|
15690
|
-
// src/components/Input/
|
|
15692
|
+
// src/components/Input/FieldMessage.tsx
|
|
15691
15693
|
init_emotion_jsx_shim();
|
|
15692
|
-
var import_jsx_runtime54 = require("@emotion/react/jsx-runtime");
|
|
15693
|
-
var Label = ({ children, className, testId, ...props }) => {
|
|
15694
|
-
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
15695
|
-
"label",
|
|
15696
|
-
{
|
|
15697
|
-
css: [labelText, typeof className === "object" ? className : void 0],
|
|
15698
|
-
className: typeof className === "string" ? className : "",
|
|
15699
|
-
"data-testid": testId,
|
|
15700
|
-
...props,
|
|
15701
|
-
children
|
|
15702
|
-
}
|
|
15703
|
-
);
|
|
15704
|
-
};
|
|
15705
15694
|
|
|
15706
15695
|
// src/components/Input/WarningMessage.tsx
|
|
15707
15696
|
init_emotion_jsx_shim();
|
|
@@ -15721,16 +15710,57 @@ var WarningIcon = import_react68.css`
|
|
|
15721
15710
|
`;
|
|
15722
15711
|
|
|
15723
15712
|
// src/components/Input/WarningMessage.tsx
|
|
15724
|
-
var
|
|
15713
|
+
var import_jsx_runtime54 = require("@emotion/react/jsx-runtime");
|
|
15725
15714
|
var WarningMessage = ({ message, testId, ...props }) => {
|
|
15726
|
-
return message ? /* @__PURE__ */ (0,
|
|
15727
|
-
/* @__PURE__ */ (0,
|
|
15715
|
+
return message ? /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("span", { role: "status", css: WarningText, "data-testid": testId != null ? testId : "message-text", ...props, children: [
|
|
15716
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { css: WarningIcon, icon: import_MdWarning2.MdWarning, size: "1rem", iconColor: "currentColor" }) }),
|
|
15728
15717
|
message
|
|
15729
15718
|
] }) : null;
|
|
15730
15719
|
};
|
|
15731
15720
|
|
|
15732
|
-
// src/components/Input/
|
|
15721
|
+
// src/components/Input/FieldMessage.tsx
|
|
15722
|
+
var import_jsx_runtime55 = require("@emotion/react/jsx-runtime");
|
|
15723
|
+
var FieldMessage = ({
|
|
15724
|
+
helperMessage,
|
|
15725
|
+
warningMessage,
|
|
15726
|
+
errorMessage,
|
|
15727
|
+
infoMessage,
|
|
15728
|
+
errorTestId,
|
|
15729
|
+
helperMessageTestId
|
|
15730
|
+
}) => {
|
|
15731
|
+
if (errorMessage) {
|
|
15732
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ErrorMessage, { message: errorMessage, testId: errorTestId });
|
|
15733
|
+
}
|
|
15734
|
+
if (warningMessage) {
|
|
15735
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(WarningMessage, { message: warningMessage });
|
|
15736
|
+
}
|
|
15737
|
+
if (infoMessage) {
|
|
15738
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(InfoMessage, { message: infoMessage });
|
|
15739
|
+
}
|
|
15740
|
+
if (helperMessage) {
|
|
15741
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Caption, { testId: helperMessageTestId, children: helperMessage });
|
|
15742
|
+
}
|
|
15743
|
+
return null;
|
|
15744
|
+
};
|
|
15745
|
+
|
|
15746
|
+
// src/components/Input/Label.tsx
|
|
15747
|
+
init_emotion_jsx_shim();
|
|
15733
15748
|
var import_jsx_runtime56 = require("@emotion/react/jsx-runtime");
|
|
15749
|
+
var Label = ({ children, className, testId, ...props }) => {
|
|
15750
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
15751
|
+
"label",
|
|
15752
|
+
{
|
|
15753
|
+
css: [labelText, typeof className === "object" ? className : void 0],
|
|
15754
|
+
className: typeof className === "string" ? className : "",
|
|
15755
|
+
"data-testid": testId,
|
|
15756
|
+
...props,
|
|
15757
|
+
children
|
|
15758
|
+
}
|
|
15759
|
+
);
|
|
15760
|
+
};
|
|
15761
|
+
|
|
15762
|
+
// src/components/Input/Input.tsx
|
|
15763
|
+
var import_jsx_runtime57 = require("@emotion/react/jsx-runtime");
|
|
15734
15764
|
var Input = React16.forwardRef(
|
|
15735
15765
|
({
|
|
15736
15766
|
label,
|
|
@@ -15750,13 +15780,13 @@ var Input = React16.forwardRef(
|
|
|
15750
15780
|
classNameLabel,
|
|
15751
15781
|
...props
|
|
15752
15782
|
}, ref) => {
|
|
15753
|
-
return /* @__PURE__ */ (0,
|
|
15783
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
15754
15784
|
"div",
|
|
15755
15785
|
{
|
|
15756
15786
|
css: [inputContainer, typeof classNameRoot === "object" ? classNameRoot : void 0],
|
|
15757
15787
|
"data-testid": containerTestId ? containerTestId : "input-container",
|
|
15758
15788
|
children: [
|
|
15759
|
-
showLabel ? /* @__PURE__ */ (0,
|
|
15789
|
+
showLabel ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
15760
15790
|
Label,
|
|
15761
15791
|
{
|
|
15762
15792
|
htmlFor: id,
|
|
@@ -15766,13 +15796,13 @@ var Input = React16.forwardRef(
|
|
|
15766
15796
|
children: label
|
|
15767
15797
|
}
|
|
15768
15798
|
) : null,
|
|
15769
|
-
/* @__PURE__ */ (0,
|
|
15799
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
15770
15800
|
"div",
|
|
15771
15801
|
{
|
|
15772
15802
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
15773
15803
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
15774
15804
|
children: [
|
|
15775
|
-
/* @__PURE__ */ (0,
|
|
15805
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
15776
15806
|
"input",
|
|
15777
15807
|
{
|
|
15778
15808
|
id,
|
|
@@ -15788,13 +15818,20 @@ var Input = React16.forwardRef(
|
|
|
15788
15818
|
ref
|
|
15789
15819
|
}
|
|
15790
15820
|
),
|
|
15791
|
-
icon ? /* @__PURE__ */ (0,
|
|
15821
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { css: inputIcon, children: icon }) : null
|
|
15792
15822
|
]
|
|
15793
15823
|
}
|
|
15794
15824
|
),
|
|
15795
|
-
|
|
15796
|
-
|
|
15797
|
-
|
|
15825
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
15826
|
+
FieldMessage,
|
|
15827
|
+
{
|
|
15828
|
+
helperMessage: caption,
|
|
15829
|
+
errorMessage,
|
|
15830
|
+
warningMessage,
|
|
15831
|
+
helperMessageTestId: captionTestId,
|
|
15832
|
+
errorTestId
|
|
15833
|
+
}
|
|
15834
|
+
)
|
|
15798
15835
|
]
|
|
15799
15836
|
}
|
|
15800
15837
|
);
|
|
@@ -15804,10 +15841,10 @@ var Input = React16.forwardRef(
|
|
|
15804
15841
|
// src/components/Input/InputComboBox.tsx
|
|
15805
15842
|
init_emotion_jsx_shim();
|
|
15806
15843
|
var import_react_select = __toESM(require("react-select"));
|
|
15807
|
-
var
|
|
15844
|
+
var import_jsx_runtime58 = require("@emotion/react/jsx-runtime");
|
|
15808
15845
|
function InputComboBox(props) {
|
|
15809
15846
|
var _a;
|
|
15810
|
-
return /* @__PURE__ */ (0,
|
|
15847
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
15811
15848
|
import_react_select.default,
|
|
15812
15849
|
{
|
|
15813
15850
|
...props,
|
|
@@ -16009,7 +16046,7 @@ var inlineSelectMenuClosed = import_react69.css`
|
|
|
16009
16046
|
`;
|
|
16010
16047
|
|
|
16011
16048
|
// src/components/Input/InputInlineSelect.tsx
|
|
16012
|
-
var
|
|
16049
|
+
var import_jsx_runtime59 = require("@emotion/react/jsx-runtime");
|
|
16013
16050
|
var InputInlineSelect = ({
|
|
16014
16051
|
classNameContainer,
|
|
16015
16052
|
options,
|
|
@@ -16023,7 +16060,7 @@ var InputInlineSelect = ({
|
|
|
16023
16060
|
const divRef = (0, import_react71.useRef)(null);
|
|
16024
16061
|
useOutsideClick(divRef, () => setMenuVisible(false));
|
|
16025
16062
|
const selected = options.find((option) => option.value === value);
|
|
16026
|
-
return /* @__PURE__ */ (0,
|
|
16063
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
16027
16064
|
"div",
|
|
16028
16065
|
{
|
|
16029
16066
|
ref: divRef,
|
|
@@ -16033,7 +16070,7 @@ var InputInlineSelect = ({
|
|
|
16033
16070
|
`,
|
|
16034
16071
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
16035
16072
|
children: [
|
|
16036
|
-
/* @__PURE__ */ (0,
|
|
16073
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
16037
16074
|
"button",
|
|
16038
16075
|
{
|
|
16039
16076
|
type: "button",
|
|
@@ -16047,18 +16084,18 @@ var InputInlineSelect = ({
|
|
|
16047
16084
|
disabled: disabled2,
|
|
16048
16085
|
...props,
|
|
16049
16086
|
children: [
|
|
16050
|
-
/* @__PURE__ */ (0,
|
|
16051
|
-
disabled2 ? null : /* @__PURE__ */ (0,
|
|
16087
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { children: (_a = selected == null ? void 0 : selected.label) != null ? _a : value }),
|
|
16088
|
+
disabled2 ? null : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { icon: import_CgChevronDown3.CgChevronDown, iconColor: "currentColor", size: 24 })
|
|
16052
16089
|
]
|
|
16053
16090
|
}
|
|
16054
16091
|
),
|
|
16055
|
-
/* @__PURE__ */ (0,
|
|
16092
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
16056
16093
|
"div",
|
|
16057
16094
|
{
|
|
16058
16095
|
id: `and-or-${props.id}`,
|
|
16059
16096
|
css: [inlineSelectMenu, menuVisible ? void 0 : inlineSelectMenuClosed],
|
|
16060
16097
|
"aria-hidden": !menuVisible,
|
|
16061
|
-
children: options.map((opt) => /* @__PURE__ */ (0,
|
|
16098
|
+
children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
16062
16099
|
"button",
|
|
16063
16100
|
{
|
|
16064
16101
|
type: "button",
|
|
@@ -16082,7 +16119,7 @@ var InputInlineSelect = ({
|
|
|
16082
16119
|
init_emotion_jsx_shim();
|
|
16083
16120
|
var import_CgClose5 = require("@react-icons/all-files/cg/CgClose");
|
|
16084
16121
|
var import_CgSearch2 = require("@react-icons/all-files/cg/CgSearch");
|
|
16085
|
-
var
|
|
16122
|
+
var import_jsx_runtime60 = require("@emotion/react/jsx-runtime");
|
|
16086
16123
|
var InputKeywordSearch = ({
|
|
16087
16124
|
onSearchTextChanged,
|
|
16088
16125
|
disabled: disabled2 = false,
|
|
@@ -16103,7 +16140,7 @@ var InputKeywordSearch = ({
|
|
|
16103
16140
|
e.preventDefault();
|
|
16104
16141
|
}
|
|
16105
16142
|
};
|
|
16106
|
-
return /* @__PURE__ */ (0,
|
|
16143
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
16107
16144
|
Input,
|
|
16108
16145
|
{
|
|
16109
16146
|
type: "text",
|
|
@@ -16111,7 +16148,7 @@ var InputKeywordSearch = ({
|
|
|
16111
16148
|
placeholder,
|
|
16112
16149
|
showLabel: false,
|
|
16113
16150
|
value,
|
|
16114
|
-
icon: value ? /* @__PURE__ */ (0,
|
|
16151
|
+
icon: value ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("button", { css: inputSearchCloseBtn, onClick: onClear, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icon, { icon: import_CgClose5.CgClose, iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icon, { icon: import_CgSearch2.CgSearch, iconColor: "gray", size: "1rem" }),
|
|
16115
16152
|
onChange: handleSearchTextChanged,
|
|
16116
16153
|
onKeyPress: preventSubmitOnField,
|
|
16117
16154
|
disabled: disabled2,
|
|
@@ -16131,7 +16168,7 @@ var InputKeywordSearch = ({
|
|
|
16131
16168
|
|
|
16132
16169
|
// src/components/Input/InputSelect.tsx
|
|
16133
16170
|
init_emotion_jsx_shim();
|
|
16134
|
-
var
|
|
16171
|
+
var import_jsx_runtime61 = require("@emotion/react/jsx-runtime");
|
|
16135
16172
|
var InputSelect = ({
|
|
16136
16173
|
label,
|
|
16137
16174
|
defaultOption,
|
|
@@ -16147,13 +16184,13 @@ var InputSelect = ({
|
|
|
16147
16184
|
classNameLabel,
|
|
16148
16185
|
...props
|
|
16149
16186
|
}) => {
|
|
16150
|
-
return /* @__PURE__ */ (0,
|
|
16187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
16151
16188
|
"div",
|
|
16152
16189
|
{
|
|
16153
16190
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
16154
16191
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
16155
16192
|
children: [
|
|
16156
|
-
showLabel ? /* @__PURE__ */ (0,
|
|
16193
|
+
showLabel ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_jsx_runtime61.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
16157
16194
|
Label,
|
|
16158
16195
|
{
|
|
16159
16196
|
htmlFor: props.id,
|
|
@@ -16165,7 +16202,7 @@ var InputSelect = ({
|
|
|
16165
16202
|
]
|
|
16166
16203
|
}
|
|
16167
16204
|
) }) : null,
|
|
16168
|
-
/* @__PURE__ */ (0,
|
|
16205
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
16169
16206
|
"select",
|
|
16170
16207
|
{
|
|
16171
16208
|
title: label,
|
|
@@ -16180,14 +16217,12 @@ var InputSelect = ({
|
|
|
16180
16217
|
className: typeof classNameControl === "string" ? classNameControl : "",
|
|
16181
16218
|
...props,
|
|
16182
16219
|
children: [
|
|
16183
|
-
defaultOption ? /* @__PURE__ */ (0,
|
|
16184
|
-
options.map((opt, index) => /* @__PURE__ */ (0,
|
|
16220
|
+
defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("option", { value: "", children: defaultOption }) : null,
|
|
16221
|
+
options.map((opt, index) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("option", { value: opt.label, ...opt }, index))
|
|
16185
16222
|
]
|
|
16186
16223
|
}
|
|
16187
16224
|
),
|
|
16188
|
-
|
|
16189
|
-
errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ErrorMessage, { message: errorMessage }) : null,
|
|
16190
|
-
warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(WarningMessage, { message: warningMessage }) : null
|
|
16225
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(FieldMessage, { helperMessage: caption, errorMessage, warningMessage })
|
|
16191
16226
|
]
|
|
16192
16227
|
}
|
|
16193
16228
|
);
|
|
@@ -16196,7 +16231,7 @@ var InputSelect = ({
|
|
|
16196
16231
|
// src/components/Input/InputToggle.tsx
|
|
16197
16232
|
init_emotion_jsx_shim();
|
|
16198
16233
|
var React17 = __toESM(require("react"));
|
|
16199
|
-
var
|
|
16234
|
+
var import_jsx_runtime62 = require("@emotion/react/jsx-runtime");
|
|
16200
16235
|
var InputToggle = React17.forwardRef(
|
|
16201
16236
|
({
|
|
16202
16237
|
label,
|
|
@@ -16216,13 +16251,13 @@ var InputToggle = React17.forwardRef(
|
|
|
16216
16251
|
medium: labelMedium,
|
|
16217
16252
|
bold: labelBold
|
|
16218
16253
|
};
|
|
16219
|
-
return /* @__PURE__ */ (0,
|
|
16254
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
16220
16255
|
Label,
|
|
16221
16256
|
{
|
|
16222
16257
|
css: [inputToggleLabel, disabled2 ? inputDisabled : void 0],
|
|
16223
16258
|
"data-testid": testId ? testId : "input-toggle",
|
|
16224
16259
|
children: [
|
|
16225
|
-
/* @__PURE__ */ (0,
|
|
16260
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
16226
16261
|
"input",
|
|
16227
16262
|
{
|
|
16228
16263
|
ref,
|
|
@@ -16234,12 +16269,15 @@ var InputToggle = React17.forwardRef(
|
|
|
16234
16269
|
...props
|
|
16235
16270
|
}
|
|
16236
16271
|
),
|
|
16237
|
-
/* @__PURE__ */ (0,
|
|
16238
|
-
caption || errorMessage ? /* @__PURE__ */ (0,
|
|
16239
|
-
|
|
16240
|
-
|
|
16241
|
-
|
|
16242
|
-
|
|
16272
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { css: [inlineLabel, fontWeightStyles[fontWeight]], children: label }),
|
|
16273
|
+
caption || errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { css: inputToggleMessageContainer, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
16274
|
+
FieldMessage,
|
|
16275
|
+
{
|
|
16276
|
+
helperMessage: caption,
|
|
16277
|
+
errorMessage,
|
|
16278
|
+
warningMessage
|
|
16279
|
+
}
|
|
16280
|
+
) }) : null
|
|
16243
16281
|
]
|
|
16244
16282
|
}
|
|
16245
16283
|
);
|
|
@@ -16248,9 +16286,9 @@ var InputToggle = React17.forwardRef(
|
|
|
16248
16286
|
|
|
16249
16287
|
// src/components/Input/Legend.tsx
|
|
16250
16288
|
init_emotion_jsx_shim();
|
|
16251
|
-
var
|
|
16289
|
+
var import_jsx_runtime63 = require("@emotion/react/jsx-runtime");
|
|
16252
16290
|
var Legend = ({ children }) => {
|
|
16253
|
-
return /* @__PURE__ */ (0,
|
|
16291
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("legend", { css: fieldsetLegend, children });
|
|
16254
16292
|
};
|
|
16255
16293
|
|
|
16256
16294
|
// src/components/Input/SuccessMessage.tsx
|
|
@@ -16274,10 +16312,10 @@ var SuccessIcon2 = import_react72.css`
|
|
|
16274
16312
|
`;
|
|
16275
16313
|
|
|
16276
16314
|
// src/components/Input/SuccessMessage.tsx
|
|
16277
|
-
var
|
|
16315
|
+
var import_jsx_runtime64 = require("@emotion/react/jsx-runtime");
|
|
16278
16316
|
var SuccessMessage = ({ message, testId, ...props }) => {
|
|
16279
|
-
return message ? /* @__PURE__ */ (0,
|
|
16280
|
-
/* @__PURE__ */ (0,
|
|
16317
|
+
return message ? /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("span", { role: "status", css: SuccessText, "data-testid": testId, ...props, children: [
|
|
16318
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon, { css: SuccessIcon2, icon: import_CgCheckO2.CgCheckO, size: "1rem", iconColor: "currentColor" }) }),
|
|
16281
16319
|
message
|
|
16282
16320
|
] }) : null;
|
|
16283
16321
|
};
|
|
@@ -16285,13 +16323,13 @@ var SuccessMessage = ({ message, testId, ...props }) => {
|
|
|
16285
16323
|
// src/components/Input/Textarea.tsx
|
|
16286
16324
|
init_emotion_jsx_shim();
|
|
16287
16325
|
var import_react73 = require("react");
|
|
16288
|
-
var
|
|
16326
|
+
var import_jsx_runtime65 = require("@emotion/react/jsx-runtime");
|
|
16289
16327
|
var Textarea = (0, import_react73.forwardRef)(
|
|
16290
16328
|
({ label, icon, id, caption, showLabel = true, errorMessage, warningMessage, ...props }, ref) => {
|
|
16291
|
-
return /* @__PURE__ */ (0,
|
|
16292
|
-
showLabel ? /* @__PURE__ */ (0,
|
|
16293
|
-
/* @__PURE__ */ (0,
|
|
16294
|
-
/* @__PURE__ */ (0,
|
|
16329
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
|
|
16330
|
+
showLabel ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("label", { htmlFor: id, css: [labelText], children: label }) : null,
|
|
16331
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { css: [inputContainer], children: [
|
|
16332
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
16295
16333
|
"textarea",
|
|
16296
16334
|
{
|
|
16297
16335
|
ref,
|
|
@@ -16306,11 +16344,9 @@ var Textarea = (0, import_react73.forwardRef)(
|
|
|
16306
16344
|
...props
|
|
16307
16345
|
}
|
|
16308
16346
|
),
|
|
16309
|
-
icon ? /* @__PURE__ */ (0,
|
|
16347
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { css: inputIcon, children: icon }) : null
|
|
16310
16348
|
] }),
|
|
16311
|
-
|
|
16312
|
-
errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ErrorMessage, { message: errorMessage }) : null,
|
|
16313
|
-
warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(WarningMessage, { message: warningMessage }) : null
|
|
16349
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(FieldMessage, { helperMessage: caption, errorMessage, warningMessage })
|
|
16314
16350
|
] });
|
|
16315
16351
|
}
|
|
16316
16352
|
);
|
|
@@ -16369,9 +16405,9 @@ var variantFillImageImg = import_react74.css`
|
|
|
16369
16405
|
|
|
16370
16406
|
// src/components/Image/ImageBroken.tsx
|
|
16371
16407
|
init_emotion_jsx_shim();
|
|
16372
|
-
var
|
|
16408
|
+
var import_jsx_runtime66 = require("@emotion/react/jsx-runtime");
|
|
16373
16409
|
var ImageBroken = ({ width, height, ...props }) => {
|
|
16374
|
-
return /* @__PURE__ */ (0,
|
|
16410
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
16375
16411
|
"svg",
|
|
16376
16412
|
{
|
|
16377
16413
|
role: "img",
|
|
@@ -16384,11 +16420,11 @@ var ImageBroken = ({ width, height, ...props }) => {
|
|
|
16384
16420
|
"data-testid": "broken-image",
|
|
16385
16421
|
...props,
|
|
16386
16422
|
children: [
|
|
16387
|
-
/* @__PURE__ */ (0,
|
|
16388
|
-
/* @__PURE__ */ (0,
|
|
16389
|
-
/* @__PURE__ */ (0,
|
|
16390
|
-
/* @__PURE__ */ (0,
|
|
16391
|
-
/* @__PURE__ */ (0,
|
|
16423
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
16424
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
16425
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("defs", { children: [
|
|
16426
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
16427
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
16392
16428
|
"image",
|
|
16393
16429
|
{
|
|
16394
16430
|
id: "image0_761_4353",
|
|
@@ -16404,7 +16440,7 @@ var ImageBroken = ({ width, height, ...props }) => {
|
|
|
16404
16440
|
};
|
|
16405
16441
|
|
|
16406
16442
|
// src/components/Image/Image.tsx
|
|
16407
|
-
var
|
|
16443
|
+
var import_jsx_runtime67 = require("@emotion/react/jsx-runtime");
|
|
16408
16444
|
var MIN_LOADING_MS = 100;
|
|
16409
16445
|
function Image({
|
|
16410
16446
|
alt,
|
|
@@ -16454,7 +16490,7 @@ function Image({
|
|
|
16454
16490
|
setLoadErrorText("The value you provided is not a valid image URL");
|
|
16455
16491
|
setLoading(false);
|
|
16456
16492
|
};
|
|
16457
|
-
return /* @__PURE__ */ (0,
|
|
16493
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
16458
16494
|
"span",
|
|
16459
16495
|
{
|
|
16460
16496
|
className,
|
|
@@ -16464,7 +16500,7 @@ function Image({
|
|
|
16464
16500
|
variant === "fill-container" ? variantFillImageWrapper : null
|
|
16465
16501
|
],
|
|
16466
16502
|
children: [
|
|
16467
|
-
src && !loadErrorText ? /* @__PURE__ */ (0,
|
|
16503
|
+
src && !loadErrorText ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
16468
16504
|
"img",
|
|
16469
16505
|
{
|
|
16470
16506
|
...imgAttribs,
|
|
@@ -16483,7 +16519,7 @@ function Image({
|
|
|
16483
16519
|
onError: handleErrorEvent
|
|
16484
16520
|
}
|
|
16485
16521
|
) : null,
|
|
16486
|
-
src && loadErrorText ? /* @__PURE__ */ (0,
|
|
16522
|
+
src && loadErrorText ? /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
16487
16523
|
"span",
|
|
16488
16524
|
{
|
|
16489
16525
|
style: {
|
|
@@ -16492,14 +16528,14 @@ function Image({
|
|
|
16492
16528
|
...variant === "fill-container" ? {} : { width, height }
|
|
16493
16529
|
},
|
|
16494
16530
|
children: [
|
|
16495
|
-
/* @__PURE__ */ (0,
|
|
16531
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
16496
16532
|
ImageBroken,
|
|
16497
16533
|
{
|
|
16498
16534
|
css: [brokenImage, img, imgLoaded],
|
|
16499
16535
|
"data-testid": "broken-image"
|
|
16500
16536
|
}
|
|
16501
16537
|
),
|
|
16502
|
-
/* @__PURE__ */ (0,
|
|
16538
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(ErrorMessage, { message: loadErrorText, css: brokenImageMessage, truncated: true })
|
|
16503
16539
|
]
|
|
16504
16540
|
}
|
|
16505
16541
|
) : null
|
|
@@ -16648,7 +16684,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => import_react76.css`
|
|
|
16648
16684
|
`;
|
|
16649
16685
|
|
|
16650
16686
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
16651
|
-
var
|
|
16687
|
+
var import_jsx_runtime68 = require("@emotion/react/jsx-runtime");
|
|
16652
16688
|
var CreateTeamIntegrationTile = ({
|
|
16653
16689
|
title: title2 = "Create a custom integration for your team",
|
|
16654
16690
|
buttonText = "Add Integration",
|
|
@@ -16656,9 +16692,9 @@ var CreateTeamIntegrationTile = ({
|
|
|
16656
16692
|
asDeepLink = false,
|
|
16657
16693
|
...props
|
|
16658
16694
|
}) => {
|
|
16659
|
-
return /* @__PURE__ */ (0,
|
|
16660
|
-
/* @__PURE__ */ (0,
|
|
16661
|
-
/* @__PURE__ */ (0,
|
|
16695
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
16696
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { css: IntegrationTileTitle, title: title2, children: title2 }),
|
|
16697
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
16662
16698
|
Button,
|
|
16663
16699
|
{
|
|
16664
16700
|
buttonType: "tertiary",
|
|
@@ -16668,7 +16704,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
16668
16704
|
css: IntegrationTitleFakeButton,
|
|
16669
16705
|
children: [
|
|
16670
16706
|
buttonText,
|
|
16671
|
-
asDeepLink ? /* @__PURE__ */ (0,
|
|
16707
|
+
asDeepLink ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
16672
16708
|
Icon,
|
|
16673
16709
|
{
|
|
16674
16710
|
icon: import_CgChevronRight3.CgChevronRight,
|
|
@@ -16678,7 +16714,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
16678
16714
|
order: 1;
|
|
16679
16715
|
`
|
|
16680
16716
|
}
|
|
16681
|
-
) : /* @__PURE__ */ (0,
|
|
16717
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
16682
16718
|
Icon,
|
|
16683
16719
|
{
|
|
16684
16720
|
icon: import_CgAdd3.CgAdd,
|
|
@@ -16703,32 +16739,32 @@ init_emotion_jsx_shim();
|
|
|
16703
16739
|
var import_CgCheck2 = require("@react-icons/all-files/cg/CgCheck");
|
|
16704
16740
|
var import_CgLock2 = require("@react-icons/all-files/cg/CgLock");
|
|
16705
16741
|
var import_CgSandClock2 = require("@react-icons/all-files/cg/CgSandClock");
|
|
16706
|
-
var
|
|
16742
|
+
var import_jsx_runtime69 = require("@emotion/react/jsx-runtime");
|
|
16707
16743
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
16708
|
-
return /* @__PURE__ */ (0,
|
|
16709
|
-
/* @__PURE__ */ (0,
|
|
16744
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
16745
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Icon, { icon: import_CgCheck2.CgCheck, iconColor: "currentColor" }),
|
|
16710
16746
|
text
|
|
16711
16747
|
] });
|
|
16712
16748
|
};
|
|
16713
16749
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
16714
|
-
return /* @__PURE__ */ (0,
|
|
16750
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
16715
16751
|
};
|
|
16716
16752
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
16717
|
-
return /* @__PURE__ */ (0,
|
|
16718
|
-
/* @__PURE__ */ (0,
|
|
16753
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
16754
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Icon, { icon: import_CgLock2.CgLock, iconColor: "currentColor", size: 12 }),
|
|
16719
16755
|
text
|
|
16720
16756
|
] });
|
|
16721
16757
|
};
|
|
16722
16758
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
16723
|
-
return /* @__PURE__ */ (0,
|
|
16724
|
-
/* @__PURE__ */ (0,
|
|
16759
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
16760
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Icon, { icon: import_CgSandClock2.CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
16725
16761
|
text
|
|
16726
16762
|
] });
|
|
16727
16763
|
};
|
|
16728
16764
|
|
|
16729
16765
|
// src/components/Tiles/ResolveIcon.tsx
|
|
16730
16766
|
init_emotion_jsx_shim();
|
|
16731
|
-
var
|
|
16767
|
+
var import_jsx_runtime70 = require("@emotion/react/jsx-runtime");
|
|
16732
16768
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
16733
16769
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
16734
16770
|
const mapClassName = {
|
|
@@ -16736,13 +16772,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
16736
16772
|
logo: IntegrationTitleLogo
|
|
16737
16773
|
};
|
|
16738
16774
|
if (icon) {
|
|
16739
|
-
return CompIcon ? /* @__PURE__ */ (0,
|
|
16775
|
+
return CompIcon ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
16740
16776
|
}
|
|
16741
16777
|
return null;
|
|
16742
16778
|
};
|
|
16743
16779
|
|
|
16744
16780
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
16745
|
-
var
|
|
16781
|
+
var import_jsx_runtime71 = require("@emotion/react/jsx-runtime");
|
|
16746
16782
|
var EditTeamIntegrationTile = ({
|
|
16747
16783
|
id,
|
|
16748
16784
|
icon,
|
|
@@ -16751,17 +16787,17 @@ var EditTeamIntegrationTile = ({
|
|
|
16751
16787
|
isPublic,
|
|
16752
16788
|
canEdit = false
|
|
16753
16789
|
}) => {
|
|
16754
|
-
return /* @__PURE__ */ (0,
|
|
16790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
16755
16791
|
"div",
|
|
16756
16792
|
{
|
|
16757
16793
|
css: IntegrationTileContainer,
|
|
16758
16794
|
"data-testid": "configure-integration-container",
|
|
16759
16795
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
16760
16796
|
children: [
|
|
16761
|
-
/* @__PURE__ */ (0,
|
|
16762
|
-
/* @__PURE__ */ (0,
|
|
16763
|
-
!isPublic ? /* @__PURE__ */ (0,
|
|
16764
|
-
canEdit ? /* @__PURE__ */ (0,
|
|
16797
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(ResolveIcon, { icon, name, "data-testid": "integration-logo" }),
|
|
16798
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { css: IntegrationTileName, "data-testid": "integration-card-name", children: name }),
|
|
16799
|
+
!isPublic ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(IntegrationCustomBadge, {}) : null,
|
|
16800
|
+
canEdit ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
16765
16801
|
Button,
|
|
16766
16802
|
{
|
|
16767
16803
|
buttonType: "unimportant",
|
|
@@ -16783,7 +16819,7 @@ init_emotion_jsx_shim();
|
|
|
16783
16819
|
var import_react78 = require("@emotion/react");
|
|
16784
16820
|
var import_CgHeart2 = require("@react-icons/all-files/cg/CgHeart");
|
|
16785
16821
|
var import_react79 = require("react");
|
|
16786
|
-
var
|
|
16822
|
+
var import_jsx_runtime72 = require("@emotion/react/jsx-runtime");
|
|
16787
16823
|
var IntegrationComingSoon = ({
|
|
16788
16824
|
name,
|
|
16789
16825
|
icon,
|
|
@@ -16805,17 +16841,17 @@ var IntegrationComingSoon = ({
|
|
|
16805
16841
|
};
|
|
16806
16842
|
}
|
|
16807
16843
|
}, [upVote, setUpVote, timing]);
|
|
16808
|
-
return /* @__PURE__ */ (0,
|
|
16844
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
16809
16845
|
"div",
|
|
16810
16846
|
{
|
|
16811
16847
|
css: IntegrationTileContainer,
|
|
16812
16848
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
16813
16849
|
...props,
|
|
16814
16850
|
children: [
|
|
16815
|
-
/* @__PURE__ */ (0,
|
|
16816
|
-
/* @__PURE__ */ (0,
|
|
16817
|
-
/* @__PURE__ */ (0,
|
|
16818
|
-
/* @__PURE__ */ (0,
|
|
16851
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(IntegrationComingSoonBadge, {}),
|
|
16852
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(ResolveIcon, { icon, name }),
|
|
16853
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { css: IntegrationTileName, title: name, children: name }),
|
|
16854
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
16819
16855
|
Button,
|
|
16820
16856
|
{
|
|
16821
16857
|
buttonType: "unimportant",
|
|
@@ -16825,8 +16861,8 @@ var IntegrationComingSoon = ({
|
|
|
16825
16861
|
role: "link",
|
|
16826
16862
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
16827
16863
|
children: [
|
|
16828
|
-
/* @__PURE__ */ (0,
|
|
16829
|
-
/* @__PURE__ */ (0,
|
|
16864
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("strong", { children: "+1" }),
|
|
16865
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
16830
16866
|
"span",
|
|
16831
16867
|
{
|
|
16832
16868
|
css: import_react78.css`
|
|
@@ -16836,8 +16872,8 @@ var IntegrationComingSoon = ({
|
|
|
16836
16872
|
children: "(I want this)"
|
|
16837
16873
|
}
|
|
16838
16874
|
),
|
|
16839
|
-
/* @__PURE__ */ (0,
|
|
16840
|
-
/* @__PURE__ */ (0,
|
|
16875
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("span", { "aria-hidden": !upVote, children: [
|
|
16876
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Icon, { icon: import_CgHeart2.CgHeart, iconColor: "currentColor", size: 18 }),
|
|
16841
16877
|
"Thanks!"
|
|
16842
16878
|
] })
|
|
16843
16879
|
]
|
|
@@ -16897,12 +16933,12 @@ var IntegrationLoadingFrame = import_react80.css`
|
|
|
16897
16933
|
`;
|
|
16898
16934
|
|
|
16899
16935
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
16900
|
-
var
|
|
16936
|
+
var import_jsx_runtime73 = require("@emotion/react/jsx-runtime");
|
|
16901
16937
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
16902
16938
|
const componentCount = Array.from(Array(count).keys());
|
|
16903
|
-
return /* @__PURE__ */ (0,
|
|
16904
|
-
/* @__PURE__ */ (0,
|
|
16905
|
-
/* @__PURE__ */ (0,
|
|
16939
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_jsx_runtime73.Fragment, { children: componentCount.map((i) => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { css: IntegrationLoadingTileContainer, children: [
|
|
16940
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
16941
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
16906
16942
|
] }, i)) });
|
|
16907
16943
|
};
|
|
16908
16944
|
|
|
@@ -16926,7 +16962,7 @@ var IntegrationModalImage = import_react81.css`
|
|
|
16926
16962
|
`;
|
|
16927
16963
|
|
|
16928
16964
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
16929
|
-
var
|
|
16965
|
+
var import_jsx_runtime74 = require("@emotion/react/jsx-runtime");
|
|
16930
16966
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
16931
16967
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
16932
16968
|
let iconSrc = void 0;
|
|
@@ -16942,9 +16978,9 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
16942
16978
|
}
|
|
16943
16979
|
}
|
|
16944
16980
|
}
|
|
16945
|
-
return /* @__PURE__ */ (0,
|
|
16946
|
-
/* @__PURE__ */ (0,
|
|
16947
|
-
/* @__PURE__ */ (0,
|
|
16981
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { css: IntegrationModalIconContainer, children: [
|
|
16982
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
16983
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
16948
16984
|
"path",
|
|
16949
16985
|
{
|
|
16950
16986
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -16953,12 +16989,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
16953
16989
|
strokeWidth: "2"
|
|
16954
16990
|
}
|
|
16955
16991
|
),
|
|
16956
|
-
/* @__PURE__ */ (0,
|
|
16957
|
-
/* @__PURE__ */ (0,
|
|
16958
|
-
/* @__PURE__ */ (0,
|
|
16992
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
16993
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("stop", { stopColor: "#1768B2" }),
|
|
16994
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
16959
16995
|
] }) })
|
|
16960
16996
|
] }),
|
|
16961
|
-
CompIcon ? /* @__PURE__ */ (0,
|
|
16997
|
+
CompIcon ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : iconSrc ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
16962
16998
|
"img",
|
|
16963
16999
|
{
|
|
16964
17000
|
src: iconSrc,
|
|
@@ -16973,7 +17009,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
16973
17009
|
|
|
16974
17010
|
// src/components/Tiles/IntegrationTile.tsx
|
|
16975
17011
|
init_emotion_jsx_shim();
|
|
16976
|
-
var
|
|
17012
|
+
var import_jsx_runtime75 = require("@emotion/react/jsx-runtime");
|
|
16977
17013
|
var IntegrationTile = ({
|
|
16978
17014
|
id,
|
|
16979
17015
|
icon,
|
|
@@ -16985,7 +17021,7 @@ var IntegrationTile = ({
|
|
|
16985
17021
|
authorIcon,
|
|
16986
17022
|
...btnProps
|
|
16987
17023
|
}) => {
|
|
16988
|
-
return /* @__PURE__ */ (0,
|
|
17024
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
16989
17025
|
"button",
|
|
16990
17026
|
{
|
|
16991
17027
|
type: "button",
|
|
@@ -16995,12 +17031,12 @@ var IntegrationTile = ({
|
|
|
16995
17031
|
"aria-label": name,
|
|
16996
17032
|
...btnProps,
|
|
16997
17033
|
children: [
|
|
16998
|
-
/* @__PURE__ */ (0,
|
|
16999
|
-
/* @__PURE__ */ (0,
|
|
17000
|
-
isInstalled ? /* @__PURE__ */ (0,
|
|
17001
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */ (0,
|
|
17002
|
-
!isPublic ? /* @__PURE__ */ (0,
|
|
17003
|
-
authorIcon ? /* @__PURE__ */ (0,
|
|
17034
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ResolveIcon, { icon, name }),
|
|
17035
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { css: IntegrationTileName, title: name, children: name }),
|
|
17036
|
+
isInstalled ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(IntegrationedAddedBadge, {}) : null,
|
|
17037
|
+
requiedEntitlement && isPublic ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(IntegrationPremiumBadge, {}) : null,
|
|
17038
|
+
!isPublic ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(IntegrationCustomBadge, {}) : null,
|
|
17039
|
+
authorIcon ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ResolveIcon, { icon: authorIcon, name }) : null
|
|
17004
17040
|
]
|
|
17005
17041
|
}
|
|
17006
17042
|
);
|
|
@@ -17041,9 +17077,9 @@ var TileIsSelected = import_react82.css`
|
|
|
17041
17077
|
`;
|
|
17042
17078
|
|
|
17043
17079
|
// src/components/Tiles/Tile.tsx
|
|
17044
|
-
var
|
|
17080
|
+
var import_jsx_runtime76 = require("@emotion/react/jsx-runtime");
|
|
17045
17081
|
var Tile2 = ({ children, disabled: disabled2, isSelected, ...props }) => {
|
|
17046
|
-
return /* @__PURE__ */ (0,
|
|
17082
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
17047
17083
|
"button",
|
|
17048
17084
|
{
|
|
17049
17085
|
type: "button",
|
|
@@ -17079,7 +17115,7 @@ var TileContainerInner = (gap, templateColumns) => import_react83.css`
|
|
|
17079
17115
|
`;
|
|
17080
17116
|
|
|
17081
17117
|
// src/components/Tiles/TileContainer.tsx
|
|
17082
|
-
var
|
|
17118
|
+
var import_jsx_runtime77 = require("@emotion/react/jsx-runtime");
|
|
17083
17119
|
var TileContainer = ({
|
|
17084
17120
|
bgColor = "var(--brand-secondary-2)",
|
|
17085
17121
|
containerPadding = "base",
|
|
@@ -17088,7 +17124,7 @@ var TileContainer = ({
|
|
|
17088
17124
|
children,
|
|
17089
17125
|
...props
|
|
17090
17126
|
}) => {
|
|
17091
|
-
return /* @__PURE__ */ (0,
|
|
17127
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { css: TileContainerWrapper(bgColor, containerPadding), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { css: TileContainerInner(gap, gridTemplateColumns), children }) });
|
|
17092
17128
|
};
|
|
17093
17129
|
|
|
17094
17130
|
// src/components/Tiles/TileText.tsx
|
|
@@ -17107,10 +17143,10 @@ var TileText = import_react84.css`
|
|
|
17107
17143
|
`;
|
|
17108
17144
|
|
|
17109
17145
|
// src/components/Tiles/TileText.tsx
|
|
17110
|
-
var
|
|
17146
|
+
var import_jsx_runtime78 = require("@emotion/react/jsx-runtime");
|
|
17111
17147
|
var TileText2 = ({ as = "heading", children, ...props }) => {
|
|
17112
17148
|
const isHeading = as === "heading";
|
|
17113
|
-
return /* @__PURE__ */ (0,
|
|
17149
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
17114
17150
|
"span",
|
|
17115
17151
|
{
|
|
17116
17152
|
role: isHeading ? "heading" : void 0,
|
|
@@ -17160,9 +17196,9 @@ var IntegrationModalHeaderContentWrapper = import_react85.css`
|
|
|
17160
17196
|
`;
|
|
17161
17197
|
|
|
17162
17198
|
// src/components/IntegrationModalHeader/IntegrationModalHeader.tsx
|
|
17163
|
-
var
|
|
17199
|
+
var import_jsx_runtime79 = require("@emotion/react/jsx-runtime");
|
|
17164
17200
|
var HexModalBackground = ({ ...props }) => {
|
|
17165
|
-
return /* @__PURE__ */ (0,
|
|
17201
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
17166
17202
|
"svg",
|
|
17167
17203
|
{
|
|
17168
17204
|
width: "236",
|
|
@@ -17172,7 +17208,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
17172
17208
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17173
17209
|
...props,
|
|
17174
17210
|
children: [
|
|
17175
|
-
/* @__PURE__ */ (0,
|
|
17211
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
17176
17212
|
"path",
|
|
17177
17213
|
{
|
|
17178
17214
|
fillRule: "evenodd",
|
|
@@ -17181,7 +17217,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
17181
17217
|
fill: "url(#paint0_linear_196_2737)"
|
|
17182
17218
|
}
|
|
17183
17219
|
),
|
|
17184
|
-
/* @__PURE__ */ (0,
|
|
17220
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
17185
17221
|
"linearGradient",
|
|
17186
17222
|
{
|
|
17187
17223
|
id: "paint0_linear_196_2737",
|
|
@@ -17191,8 +17227,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
17191
17227
|
y2: "-95.2742",
|
|
17192
17228
|
gradientUnits: "userSpaceOnUse",
|
|
17193
17229
|
children: [
|
|
17194
|
-
/* @__PURE__ */ (0,
|
|
17195
|
-
/* @__PURE__ */ (0,
|
|
17230
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("stop", { stopColor: "#81DCDE" }),
|
|
17231
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("stop", { offset: "1", stopColor: "#428ED4" })
|
|
17196
17232
|
]
|
|
17197
17233
|
}
|
|
17198
17234
|
) })
|
|
@@ -17201,24 +17237,24 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
17201
17237
|
);
|
|
17202
17238
|
};
|
|
17203
17239
|
var IntegrationModalHeader = ({ icon, name, menu, children }) => {
|
|
17204
|
-
return /* @__PURE__ */ (0,
|
|
17205
|
-
/* @__PURE__ */ (0,
|
|
17206
|
-
/* @__PURE__ */ (0,
|
|
17207
|
-
icon ? /* @__PURE__ */ (0,
|
|
17208
|
-
/* @__PURE__ */ (0,
|
|
17209
|
-
menu ? /* @__PURE__ */ (0,
|
|
17240
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
|
|
17241
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
17242
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
17243
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
17244
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-testid": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
17245
|
+
menu ? /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
17210
17246
|
menu,
|
|
17211
17247
|
" "
|
|
17212
17248
|
] }) : null
|
|
17213
17249
|
] }) }),
|
|
17214
|
-
/* @__PURE__ */ (0,
|
|
17250
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
17215
17251
|
] });
|
|
17216
17252
|
};
|
|
17217
17253
|
|
|
17218
17254
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
17219
17255
|
init_emotion_jsx_shim();
|
|
17220
17256
|
var import_react86 = __toESM(require("@monaco-editor/react"));
|
|
17221
|
-
var
|
|
17257
|
+
var import_jsx_runtime80 = require("@emotion/react/jsx-runtime");
|
|
17222
17258
|
var minEditorHeightPx = 150;
|
|
17223
17259
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
17224
17260
|
let effectiveHeight = height;
|
|
@@ -17228,7 +17264,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
17228
17264
|
if (typeof effectiveHeight === "number" && effectiveHeight < minEditorHeightPx) {
|
|
17229
17265
|
effectiveHeight = minEditorHeightPx;
|
|
17230
17266
|
}
|
|
17231
|
-
return /* @__PURE__ */ (0,
|
|
17267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
17232
17268
|
import_react86.default,
|
|
17233
17269
|
{
|
|
17234
17270
|
height: effectiveHeight,
|
|
@@ -17301,7 +17337,7 @@ var LimitsBarTextColor = (statusColor) => import_react87.css`
|
|
|
17301
17337
|
`;
|
|
17302
17338
|
|
|
17303
17339
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
17304
|
-
var
|
|
17340
|
+
var import_jsx_runtime81 = require("@emotion/react/jsx-runtime");
|
|
17305
17341
|
var LimitsBar = ({ current, max, label }) => {
|
|
17306
17342
|
const maxPercentage = 100;
|
|
17307
17343
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -17312,16 +17348,16 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
17312
17348
|
danger: "var(--brand-secondary-5)"
|
|
17313
17349
|
};
|
|
17314
17350
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
17315
|
-
return /* @__PURE__ */ (0,
|
|
17316
|
-
/* @__PURE__ */ (0,
|
|
17317
|
-
/* @__PURE__ */ (0,
|
|
17318
|
-
/* @__PURE__ */ (0,
|
|
17351
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { css: LimitsBarContainer, children: [
|
|
17352
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { css: LimitsBarLabelContainer, children: [
|
|
17353
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { css: LimitsBarLabel, children: label }),
|
|
17354
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
17319
17355
|
current,
|
|
17320
17356
|
" of ",
|
|
17321
17357
|
max
|
|
17322
17358
|
] })
|
|
17323
17359
|
] }),
|
|
17324
|
-
/* @__PURE__ */ (0,
|
|
17360
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
17325
17361
|
"div",
|
|
17326
17362
|
{
|
|
17327
17363
|
role: "progressbar",
|
|
@@ -17330,7 +17366,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
17330
17366
|
"aria-valuemax": max,
|
|
17331
17367
|
"aria-valuetext": `${current} of ${max}`,
|
|
17332
17368
|
css: LimitsBarProgressBar,
|
|
17333
|
-
children: /* @__PURE__ */ (0,
|
|
17369
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
17334
17370
|
"span",
|
|
17335
17371
|
{
|
|
17336
17372
|
role: "presentation",
|
|
@@ -17366,10 +17402,10 @@ var LinkListTitle = import_react88.css`
|
|
|
17366
17402
|
`;
|
|
17367
17403
|
|
|
17368
17404
|
// src/components/LinkList/LinkList.tsx
|
|
17369
|
-
var
|
|
17405
|
+
var import_jsx_runtime82 = require("@emotion/react/jsx-runtime");
|
|
17370
17406
|
var LinkList = ({ title: title2, padding = "var(--spacing-md)", children, ...props }) => {
|
|
17371
|
-
return /* @__PURE__ */ (0,
|
|
17372
|
-
/* @__PURE__ */ (0,
|
|
17407
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { css: LinkListContainer(padding), ...props, children: [
|
|
17408
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Heading, { level: 3, css: LinkListTitle, children: title2 }),
|
|
17373
17409
|
children
|
|
17374
17410
|
] });
|
|
17375
17411
|
};
|
|
@@ -17407,10 +17443,10 @@ var ScrollableListInner = import_react89.css`
|
|
|
17407
17443
|
`;
|
|
17408
17444
|
|
|
17409
17445
|
// src/components/List/ScrollableList.tsx
|
|
17410
|
-
var
|
|
17446
|
+
var import_jsx_runtime83 = require("@emotion/react/jsx-runtime");
|
|
17411
17447
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
17412
|
-
return /* @__PURE__ */ (0,
|
|
17413
|
-
label ? /* @__PURE__ */ (0,
|
|
17448
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
17449
|
+
label ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
17414
17450
|
"span",
|
|
17415
17451
|
{
|
|
17416
17452
|
css: import_react90.css`
|
|
@@ -17419,7 +17455,7 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
17419
17455
|
children: label
|
|
17420
17456
|
}
|
|
17421
17457
|
) : null,
|
|
17422
|
-
/* @__PURE__ */ (0,
|
|
17458
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
17423
17459
|
] });
|
|
17424
17460
|
};
|
|
17425
17461
|
|
|
@@ -17493,7 +17529,7 @@ var ScrollableListIconVisible = import_react91.css`
|
|
|
17493
17529
|
`;
|
|
17494
17530
|
|
|
17495
17531
|
// src/components/List/ScrollableListInputItem.tsx
|
|
17496
|
-
var
|
|
17532
|
+
var import_jsx_runtime84 = require("@emotion/react/jsx-runtime");
|
|
17497
17533
|
var ScrollableListInputItem = ({
|
|
17498
17534
|
label,
|
|
17499
17535
|
icon,
|
|
@@ -17503,7 +17539,7 @@ var ScrollableListInputItem = ({
|
|
|
17503
17539
|
labelTestId,
|
|
17504
17540
|
...props
|
|
17505
17541
|
}) => {
|
|
17506
|
-
return /* @__PURE__ */ (0,
|
|
17542
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
17507
17543
|
"div",
|
|
17508
17544
|
{
|
|
17509
17545
|
css: [
|
|
@@ -17512,13 +17548,13 @@ var ScrollableListInputItem = ({
|
|
|
17512
17548
|
active2 ? ScrollableListItemActive : void 0
|
|
17513
17549
|
],
|
|
17514
17550
|
...props,
|
|
17515
|
-
children: /* @__PURE__ */ (0,
|
|
17516
|
-
/* @__PURE__ */ (0,
|
|
17551
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("label", { "data-testid": labelTestId, css: ScrollableListInputLabel, children: [
|
|
17552
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("span", { css: ScrollableListInputText, children: [
|
|
17517
17553
|
icon,
|
|
17518
17554
|
label
|
|
17519
17555
|
] }),
|
|
17520
|
-
/* @__PURE__ */ (0,
|
|
17521
|
-
/* @__PURE__ */ (0,
|
|
17556
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { css: ScrollableListHiddenInput, children }),
|
|
17557
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
17522
17558
|
Icon,
|
|
17523
17559
|
{
|
|
17524
17560
|
icon: import_CgCheck3.CgCheck,
|
|
@@ -17537,7 +17573,7 @@ var ScrollableListInputItem = ({
|
|
|
17537
17573
|
// src/components/List/ScrollableListItem.tsx
|
|
17538
17574
|
init_emotion_jsx_shim();
|
|
17539
17575
|
var import_CgCheck4 = require("@react-icons/all-files/cg/CgCheck");
|
|
17540
|
-
var
|
|
17576
|
+
var import_jsx_runtime85 = require("@emotion/react/jsx-runtime");
|
|
17541
17577
|
var ScrollableListItem = ({
|
|
17542
17578
|
buttonText,
|
|
17543
17579
|
icon,
|
|
@@ -17545,7 +17581,7 @@ var ScrollableListItem = ({
|
|
|
17545
17581
|
disableShadow,
|
|
17546
17582
|
...props
|
|
17547
17583
|
}) => {
|
|
17548
|
-
return /* @__PURE__ */ (0,
|
|
17584
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
17549
17585
|
"div",
|
|
17550
17586
|
{
|
|
17551
17587
|
css: [
|
|
@@ -17553,12 +17589,12 @@ var ScrollableListItem = ({
|
|
|
17553
17589
|
disableShadow ? void 0 : ScrollableListItemShadow,
|
|
17554
17590
|
active2 ? ScrollableListItemActive : void 0
|
|
17555
17591
|
],
|
|
17556
|
-
children: /* @__PURE__ */ (0,
|
|
17557
|
-
/* @__PURE__ */ (0,
|
|
17592
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
17593
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(HorizontalRhythm, { gap: "xs", align: "center", children: [
|
|
17558
17594
|
icon,
|
|
17559
|
-
/* @__PURE__ */ (0,
|
|
17595
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { children: buttonText })
|
|
17560
17596
|
] }),
|
|
17561
|
-
/* @__PURE__ */ (0,
|
|
17597
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
17562
17598
|
Icon,
|
|
17563
17599
|
{
|
|
17564
17600
|
icon: import_CgCheck4.CgCheck,
|
|
@@ -17629,16 +17665,16 @@ function loadingDot(size) {
|
|
|
17629
17665
|
}
|
|
17630
17666
|
|
|
17631
17667
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
17632
|
-
var
|
|
17668
|
+
var import_jsx_runtime86 = require("@emotion/react/jsx-runtime");
|
|
17633
17669
|
var LoadingIndicator = ({
|
|
17634
17670
|
size = "lg",
|
|
17635
17671
|
...props
|
|
17636
17672
|
}) => {
|
|
17637
17673
|
const dotStyle = loadingDot(size);
|
|
17638
|
-
return /* @__PURE__ */ (0,
|
|
17639
|
-
/* @__PURE__ */ (0,
|
|
17640
|
-
/* @__PURE__ */ (0,
|
|
17641
|
-
/* @__PURE__ */ (0,
|
|
17674
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { role: "alert", css: loader, "data-testid": "loading-indicator", ...props, children: [
|
|
17675
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { css: dotStyle }),
|
|
17676
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { css: dotStyle }),
|
|
17677
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { css: dotStyle })
|
|
17642
17678
|
] });
|
|
17643
17679
|
};
|
|
17644
17680
|
|
|
@@ -17680,7 +17716,7 @@ var loadingOverlayMessage = import_react93.css`
|
|
|
17680
17716
|
`;
|
|
17681
17717
|
|
|
17682
17718
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
17683
|
-
var
|
|
17719
|
+
var import_jsx_runtime87 = require("@emotion/react/jsx-runtime");
|
|
17684
17720
|
var LoadingOverlay = ({
|
|
17685
17721
|
isActive,
|
|
17686
17722
|
statusMessage,
|
|
@@ -17706,7 +17742,7 @@ var LoadingOverlay = ({
|
|
|
17706
17742
|
(_f = lottieRef.current) == null ? void 0 : _f.stop();
|
|
17707
17743
|
}
|
|
17708
17744
|
}, [isPaused]);
|
|
17709
|
-
return /* @__PURE__ */ (0,
|
|
17745
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
17710
17746
|
"div",
|
|
17711
17747
|
{
|
|
17712
17748
|
role: "alert",
|
|
@@ -17714,9 +17750,9 @@ var LoadingOverlay = ({
|
|
|
17714
17750
|
"aria-hidden": !isActive,
|
|
17715
17751
|
"aria-busy": isActive && !isPaused,
|
|
17716
17752
|
children: [
|
|
17717
|
-
/* @__PURE__ */ (0,
|
|
17718
|
-
/* @__PURE__ */ (0,
|
|
17719
|
-
/* @__PURE__ */ (0,
|
|
17753
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
17754
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { css: loadingOverlayBody, children: [
|
|
17755
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
17720
17756
|
AnimationFile,
|
|
17721
17757
|
{
|
|
17722
17758
|
lottieRef,
|
|
@@ -17731,15 +17767,15 @@ var LoadingOverlay = ({
|
|
|
17731
17767
|
}
|
|
17732
17768
|
}
|
|
17733
17769
|
),
|
|
17734
|
-
statusMessage ? /* @__PURE__ */ (0,
|
|
17735
|
-
/* @__PURE__ */ (0,
|
|
17770
|
+
statusMessage ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
|
|
17771
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
|
|
17736
17772
|
] }) })
|
|
17737
17773
|
]
|
|
17738
17774
|
}
|
|
17739
17775
|
);
|
|
17740
17776
|
};
|
|
17741
17777
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
17742
|
-
return /* @__PURE__ */ (0,
|
|
17778
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
17743
17779
|
"svg",
|
|
17744
17780
|
{
|
|
17745
17781
|
viewBox: "0 0 38 38",
|
|
@@ -17749,9 +17785,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
17749
17785
|
stroke: "currentColor",
|
|
17750
17786
|
...props,
|
|
17751
17787
|
"data-testid": "loading-icon",
|
|
17752
|
-
children: /* @__PURE__ */ (0,
|
|
17753
|
-
/* @__PURE__ */ (0,
|
|
17754
|
-
/* @__PURE__ */ (0,
|
|
17788
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
17789
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
17790
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
17755
17791
|
"animateTransform",
|
|
17756
17792
|
{
|
|
17757
17793
|
attributeName: "transform",
|
|
@@ -17809,7 +17845,7 @@ var Popover = import_react95.css`
|
|
|
17809
17845
|
`;
|
|
17810
17846
|
|
|
17811
17847
|
// src/components/Popover/Popover.tsx
|
|
17812
|
-
var
|
|
17848
|
+
var import_jsx_runtime88 = require("@emotion/react/jsx-runtime");
|
|
17813
17849
|
var Popover2 = ({
|
|
17814
17850
|
iconColor = "action",
|
|
17815
17851
|
icon = "info",
|
|
@@ -17823,21 +17859,21 @@ var Popover2 = ({
|
|
|
17823
17859
|
...otherProps
|
|
17824
17860
|
}) => {
|
|
17825
17861
|
const popover = (0, import_Popover.usePopoverState)({ placement });
|
|
17826
|
-
return /* @__PURE__ */ (0,
|
|
17827
|
-
/* @__PURE__ */ (0,
|
|
17862
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_jsx_runtime88.Fragment, { children: [
|
|
17863
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
17828
17864
|
import_Popover.PopoverDisclosure,
|
|
17829
17865
|
{
|
|
17830
17866
|
...popover,
|
|
17831
17867
|
css: [PopoverBtn, trigger ? void 0 : PopoverDefaulterTriggerBtn],
|
|
17832
17868
|
title: buttonText,
|
|
17833
17869
|
"data-testid": testId,
|
|
17834
|
-
children: trigger ? trigger : /* @__PURE__ */ (0,
|
|
17835
|
-
/* @__PURE__ */ (0,
|
|
17836
|
-
/* @__PURE__ */ (0,
|
|
17870
|
+
children: trigger ? trigger : /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_jsx_runtime88.Fragment, { children: [
|
|
17871
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Icon, { icon, iconColor, size: iconSize }),
|
|
17872
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { hidden: true, children: buttonText })
|
|
17837
17873
|
] })
|
|
17838
17874
|
}
|
|
17839
17875
|
),
|
|
17840
|
-
/* @__PURE__ */ (0,
|
|
17876
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_Popover.Popover, { css: Popover, ...otherProps, ...popover, role: "tooltip", "aria-label": ariaLabel, children })
|
|
17841
17877
|
] });
|
|
17842
17878
|
};
|
|
17843
17879
|
|
|
@@ -17921,7 +17957,7 @@ var menuButton = import_react96.css`
|
|
|
17921
17957
|
`;
|
|
17922
17958
|
|
|
17923
17959
|
// src/components/MediaCard/MediaCard.tsx
|
|
17924
|
-
var
|
|
17960
|
+
var import_jsx_runtime89 = require("@emotion/react/jsx-runtime");
|
|
17925
17961
|
var MediaCard = ({
|
|
17926
17962
|
title: title2,
|
|
17927
17963
|
subtitle: subtitle2,
|
|
@@ -17936,13 +17972,13 @@ var MediaCard = ({
|
|
|
17936
17972
|
e.stopPropagation();
|
|
17937
17973
|
}, []);
|
|
17938
17974
|
const hasMenuItems = Array.isArray(menuItems) ? menuItems.length > 0 : Boolean(menuItems);
|
|
17939
|
-
return /* @__PURE__ */ (0,
|
|
17940
|
-
/* @__PURE__ */ (0,
|
|
17941
|
-
/* @__PURE__ */ (0,
|
|
17942
|
-
/* @__PURE__ */ (0,
|
|
17943
|
-
/* @__PURE__ */ (0,
|
|
17944
|
-
/* @__PURE__ */ (0,
|
|
17945
|
-
!infoPopover ? null : /* @__PURE__ */ (0,
|
|
17975
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Card, { css: cardBase, ...cardProps, onClick, "data-testid": "card-item", children: [
|
|
17976
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("button", { tabIndex: -1, css: coverWrapper, children: cover }),
|
|
17977
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { css: contentWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(HorizontalRhythm, { gap: "sm", justify: "space-between", align: "center", css: { width: "100%" }, children: [
|
|
17978
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1, minWidth: 0 }, children: [
|
|
17979
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(HorizontalRhythm, { gap: "xs", align: "center", css: { maxWidth: "100%" }, children: [
|
|
17980
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("button", { css: title, "data-testid": "card-title", children: title2 }),
|
|
17981
|
+
!infoPopover ? null : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { css: { display: "flex", cursor: "default" }, onClick: onStopPropogation, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
17946
17982
|
Popover2,
|
|
17947
17983
|
{
|
|
17948
17984
|
baseId: `info-of-${title2}`,
|
|
@@ -17951,31 +17987,31 @@ var MediaCard = ({
|
|
|
17951
17987
|
iconColor: "default",
|
|
17952
17988
|
tabIndex: 0,
|
|
17953
17989
|
css: { display: "block" },
|
|
17954
|
-
children: /* @__PURE__ */ (0,
|
|
17990
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { children: infoPopover })
|
|
17955
17991
|
}
|
|
17956
17992
|
) })
|
|
17957
17993
|
] }),
|
|
17958
|
-
subtitle2 ? /* @__PURE__ */ (0,
|
|
17994
|
+
subtitle2 ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("button", { tabIndex: -1, css: subtitle, children: subtitle2 }) : null
|
|
17959
17995
|
] }),
|
|
17960
|
-
sideSection2 ? /* @__PURE__ */ (0,
|
|
17961
|
-
hasMenuItems ? /* @__PURE__ */ (0,
|
|
17996
|
+
sideSection2 ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { css: sideSection, onClick: onStopPropogation, children: sideSection2 }) : null,
|
|
17997
|
+
hasMenuItems ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
17962
17998
|
VerticalRhythm,
|
|
17963
17999
|
{
|
|
17964
18000
|
css: menuSection,
|
|
17965
18001
|
align: "center",
|
|
17966
18002
|
justify: "center",
|
|
17967
18003
|
onClick: onStopPropogation,
|
|
17968
|
-
children: /* @__PURE__ */ (0,
|
|
18004
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
17969
18005
|
Menu,
|
|
17970
18006
|
{
|
|
17971
|
-
menuTrigger: /* @__PURE__ */ (0,
|
|
18007
|
+
menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
17972
18008
|
"button",
|
|
17973
18009
|
{
|
|
17974
18010
|
type: "button",
|
|
17975
18011
|
"aria-label": "More options",
|
|
17976
18012
|
css: menuButton,
|
|
17977
18013
|
"data-testid": "button-more",
|
|
17978
|
-
children: /* @__PURE__ */ (0,
|
|
18014
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Icon, { icon: "more-alt", iconColor: "gray", size: 16 })
|
|
17979
18015
|
}
|
|
17980
18016
|
),
|
|
17981
18017
|
menuLabel: `Menu of ${title2}`,
|
|
@@ -17996,15 +18032,8 @@ var import_react99 = __toESM(require("react"));
|
|
|
17996
18032
|
// src/components/Modal/Modal.styles.ts
|
|
17997
18033
|
init_emotion_jsx_shim();
|
|
17998
18034
|
var import_react98 = require("@emotion/react");
|
|
17999
|
-
var modalWrapperStyles = import_react98.css`
|
|
18000
|
-
position: fixed;
|
|
18001
|
-
inset: 0;
|
|
18002
|
-
display: flex;
|
|
18003
|
-
align-items: center;
|
|
18004
|
-
justify-content: center;
|
|
18005
|
-
z-index: var(--z-drawer);
|
|
18006
|
-
`;
|
|
18007
18035
|
var modalStyles = import_react98.css`
|
|
18036
|
+
border: none;
|
|
18008
18037
|
position: relative;
|
|
18009
18038
|
max-width: calc(100% - var(--spacing-base) * 2);
|
|
18010
18039
|
max-height: calc(100% - var(--spacing-base) * 2);
|
|
@@ -18017,63 +18046,82 @@ var modalStyles = import_react98.css`
|
|
|
18017
18046
|
opacity: 0.4;
|
|
18018
18047
|
}
|
|
18019
18048
|
`;
|
|
18049
|
+
var modalSizeSmall = import_react98.css`
|
|
18050
|
+
width: clamp(280px, 100vw, 400px);
|
|
18051
|
+
`;
|
|
18052
|
+
var modalSizeMedium = import_react98.css`
|
|
18053
|
+
width: clamp(280px, 100vw, 600px);
|
|
18054
|
+
`;
|
|
18055
|
+
var modalSizeLarge = import_react98.css`
|
|
18056
|
+
width: clamp(280px, 100vw, 800px);
|
|
18057
|
+
`;
|
|
18020
18058
|
var modalInnerStyles = import_react98.css`
|
|
18021
18059
|
position: relative;
|
|
18022
18060
|
width: 100%;
|
|
18023
|
-
height: 100%;
|
|
18024
18061
|
display: flex;
|
|
18025
18062
|
flex-direction: column;
|
|
18026
18063
|
justify-content: stretch;
|
|
18027
18064
|
gap: var(--spacing-base);
|
|
18028
18065
|
background: var(--gray-50);
|
|
18029
18066
|
color: unset;
|
|
18030
|
-
padding: var(--spacing-
|
|
18067
|
+
padding: calc(var(--spacing-2xl) - 2px);
|
|
18031
18068
|
box-shadow: var(--elevation-500);
|
|
18032
18069
|
border-radius: var(--rounded-base);
|
|
18033
|
-
border: 1px solid var(--gray-300);
|
|
18034
18070
|
`;
|
|
18035
18071
|
var modalHeaderStyles = import_react98.css`
|
|
18036
18072
|
display: flex;
|
|
18037
18073
|
align-items: flex-start;
|
|
18038
18074
|
gap: var(--spacing-base);
|
|
18039
18075
|
font-size: var(--fs-md);
|
|
18076
|
+
font-family: var(--ff-base);
|
|
18040
18077
|
line-height: 1.2;
|
|
18041
18078
|
`;
|
|
18042
18079
|
var modalHeaderHeaderStyles = import_react98.css`
|
|
18043
18080
|
max-width: calc(100% - 3rem);
|
|
18044
18081
|
`;
|
|
18045
18082
|
var modalCloseButtonStyles = import_react98.css`
|
|
18046
|
-
display: block;
|
|
18047
|
-
padding: 0;
|
|
18048
18083
|
background: transparent;
|
|
18049
18084
|
border: none;
|
|
18085
|
+
color: var(--gray-300);
|
|
18086
|
+
display: block;
|
|
18087
|
+
padding: 0;
|
|
18050
18088
|
margin-left: auto;
|
|
18089
|
+
translate: calc(var(--spacing-base)) calc(var(--spacing-base) * -1);
|
|
18090
|
+
transition: color var(--duration-fast) var(--timing-ease-out);
|
|
18091
|
+
|
|
18092
|
+
&:hover,
|
|
18093
|
+
&:focus {
|
|
18094
|
+
background: transparent;
|
|
18095
|
+
color: var(--gray-400);
|
|
18096
|
+
}
|
|
18051
18097
|
`;
|
|
18052
18098
|
var modalContentStyles = import_react98.css`
|
|
18053
18099
|
position: relative;
|
|
18054
18100
|
flex: 1;
|
|
18055
|
-
background-color: white;
|
|
18056
|
-
padding: var(--spacing-md);
|
|
18057
18101
|
overflow: auto;
|
|
18058
18102
|
${scrollbarStyles}
|
|
18059
18103
|
`;
|
|
18060
18104
|
|
|
18061
18105
|
// src/components/Modal/Modal.tsx
|
|
18062
|
-
var
|
|
18063
|
-
var defaultModalWidth = "75rem";
|
|
18106
|
+
var import_jsx_runtime90 = require("@emotion/react/jsx-runtime");
|
|
18064
18107
|
var defaultModalHeight = "51rem";
|
|
18065
18108
|
var Modal = import_react99.default.forwardRef(
|
|
18066
18109
|
({
|
|
18067
18110
|
header,
|
|
18068
18111
|
children,
|
|
18069
18112
|
onRequestClose,
|
|
18070
|
-
width
|
|
18113
|
+
width,
|
|
18071
18114
|
height = defaultModalHeight,
|
|
18072
|
-
withoutContentPadding = false,
|
|
18073
18115
|
buttonGroup,
|
|
18116
|
+
modalSize = "lg",
|
|
18074
18117
|
...modalProps
|
|
18075
18118
|
}, ref) => {
|
|
18076
18119
|
const dialogRef = (0, import_react99.useRef)(null);
|
|
18120
|
+
const size = {
|
|
18121
|
+
sm: modalSizeSmall,
|
|
18122
|
+
md: modalSizeMedium,
|
|
18123
|
+
lg: modalSizeLarge
|
|
18124
|
+
};
|
|
18077
18125
|
useShortcut({
|
|
18078
18126
|
handler: onRequestClose,
|
|
18079
18127
|
shortcut: "escape"
|
|
@@ -18092,7 +18140,7 @@ var Modal = import_react99.default.forwardRef(
|
|
|
18092
18140
|
return (_a2 = dialogRef.current) == null ? void 0 : _a2.close();
|
|
18093
18141
|
};
|
|
18094
18142
|
}, []);
|
|
18095
|
-
return /* @__PURE__ */ (0,
|
|
18143
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
18096
18144
|
"dialog",
|
|
18097
18145
|
{
|
|
18098
18146
|
ref: (element) => {
|
|
@@ -18106,7 +18154,7 @@ var Modal = import_react99.default.forwardRef(
|
|
|
18106
18154
|
ref.current = element;
|
|
18107
18155
|
}
|
|
18108
18156
|
},
|
|
18109
|
-
css: modalStyles,
|
|
18157
|
+
css: [modalStyles, width ? void 0 : size[modalSize]],
|
|
18110
18158
|
style: { width, height: height === "auto" ? "min-content" : height },
|
|
18111
18159
|
"data-testid": "side-dialog",
|
|
18112
18160
|
onClick: onRequestClose,
|
|
@@ -18114,25 +18162,32 @@ var Modal = import_react99.default.forwardRef(
|
|
|
18114
18162
|
e.preventDefault();
|
|
18115
18163
|
},
|
|
18116
18164
|
...modalProps,
|
|
18117
|
-
children: /* @__PURE__ */ (0,
|
|
18118
|
-
|
|
18119
|
-
|
|
18120
|
-
|
|
18121
|
-
|
|
18122
|
-
|
|
18123
|
-
|
|
18124
|
-
|
|
18125
|
-
|
|
18126
|
-
|
|
18127
|
-
|
|
18128
|
-
|
|
18129
|
-
|
|
18130
|
-
|
|
18131
|
-
|
|
18132
|
-
|
|
18133
|
-
|
|
18134
|
-
|
|
18135
|
-
|
|
18165
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
18166
|
+
"div",
|
|
18167
|
+
{
|
|
18168
|
+
css: [modalInnerStyles, { height: height === "auto" ? "auto" : "100%" }],
|
|
18169
|
+
onClick: (e) => e.stopPropagation(),
|
|
18170
|
+
children: [
|
|
18171
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { css: modalHeaderStyles, children: [
|
|
18172
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { css: modalHeaderHeaderStyles, children: header }),
|
|
18173
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
18174
|
+
Button,
|
|
18175
|
+
{
|
|
18176
|
+
type: "button",
|
|
18177
|
+
onClick: onRequestClose,
|
|
18178
|
+
css: modalCloseButtonStyles,
|
|
18179
|
+
title: "Close dialog",
|
|
18180
|
+
buttonType: "ghost",
|
|
18181
|
+
"data-testid": "close-dialog",
|
|
18182
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Icon, { icon: import_CgClose6.CgClose, iconColor: "currentColor", size: 24 })
|
|
18183
|
+
}
|
|
18184
|
+
)
|
|
18185
|
+
] }),
|
|
18186
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { css: modalContentStyles, children }),
|
|
18187
|
+
buttonGroup ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(HorizontalRhythm, { children: buttonGroup }) : null
|
|
18188
|
+
]
|
|
18189
|
+
}
|
|
18190
|
+
)
|
|
18136
18191
|
}
|
|
18137
18192
|
);
|
|
18138
18193
|
}
|
|
@@ -18173,7 +18228,7 @@ var page = import_css.css`
|
|
|
18173
18228
|
`;
|
|
18174
18229
|
|
|
18175
18230
|
// src/components/Pagination/Pagination.tsx
|
|
18176
|
-
var
|
|
18231
|
+
var import_jsx_runtime91 = require("@emotion/react/jsx-runtime");
|
|
18177
18232
|
function Pagination({
|
|
18178
18233
|
limit,
|
|
18179
18234
|
offset,
|
|
@@ -18188,12 +18243,12 @@ function Pagination({
|
|
|
18188
18243
|
if (pageCount <= 1) {
|
|
18189
18244
|
return null;
|
|
18190
18245
|
}
|
|
18191
|
-
return /* @__PURE__ */ (0,
|
|
18246
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
18192
18247
|
import_react_paginate.default,
|
|
18193
18248
|
{
|
|
18194
18249
|
forcePage: currentPage,
|
|
18195
|
-
previousLabel: /* @__PURE__ */ (0,
|
|
18196
|
-
nextLabel: /* @__PURE__ */ (0,
|
|
18250
|
+
previousLabel: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: prevNextControls, children: "<" }),
|
|
18251
|
+
nextLabel: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: prevNextControls, children: ">" }),
|
|
18197
18252
|
breakLabel: "...",
|
|
18198
18253
|
pageCount,
|
|
18199
18254
|
marginPagesDisplayed: 2,
|
|
@@ -18265,7 +18320,7 @@ var inputIconBtn = import_react101.css`
|
|
|
18265
18320
|
`;
|
|
18266
18321
|
|
|
18267
18322
|
// src/components/ParameterInputs/LabelLeadingIcon.tsx
|
|
18268
|
-
var
|
|
18323
|
+
var import_jsx_runtime92 = require("@emotion/react/jsx-runtime");
|
|
18269
18324
|
var LabelLeadingIcon = ({
|
|
18270
18325
|
icon,
|
|
18271
18326
|
iconColor,
|
|
@@ -18277,7 +18332,7 @@ var LabelLeadingIcon = ({
|
|
|
18277
18332
|
...props
|
|
18278
18333
|
}) => {
|
|
18279
18334
|
const titleFr = title2 != null ? title2 : isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
18280
|
-
return /* @__PURE__ */ (0,
|
|
18335
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Tooltip, { title: titleFr, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
|
|
18281
18336
|
"button",
|
|
18282
18337
|
{
|
|
18283
18338
|
css: inputIconBtn,
|
|
@@ -18285,8 +18340,9 @@ var LabelLeadingIcon = ({
|
|
|
18285
18340
|
"aria-pressed": isActive || isBound,
|
|
18286
18341
|
"aria-disabled": isLocked,
|
|
18287
18342
|
...props,
|
|
18343
|
+
"data-testid": "lock-button",
|
|
18288
18344
|
children: [
|
|
18289
|
-
/* @__PURE__ */ (0,
|
|
18345
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
18290
18346
|
Icon,
|
|
18291
18347
|
{
|
|
18292
18348
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -18577,7 +18633,7 @@ var linkParameterIcon = import_react102.css`
|
|
|
18577
18633
|
`;
|
|
18578
18634
|
|
|
18579
18635
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
18580
|
-
var
|
|
18636
|
+
var import_jsx_runtime93 = require("@emotion/react/jsx-runtime");
|
|
18581
18637
|
function ParameterDataResource({
|
|
18582
18638
|
label,
|
|
18583
18639
|
labelLeadingIcon,
|
|
@@ -18587,12 +18643,12 @@ function ParameterDataResource({
|
|
|
18587
18643
|
disabled: disabled2,
|
|
18588
18644
|
children
|
|
18589
18645
|
}) {
|
|
18590
|
-
return /* @__PURE__ */ (0,
|
|
18591
|
-
/* @__PURE__ */ (0,
|
|
18646
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { "data-testid": "parameter-data-connect-button", children: [
|
|
18647
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("span", { css: labelText2, children: [
|
|
18592
18648
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
18593
18649
|
label
|
|
18594
18650
|
] }),
|
|
18595
|
-
/* @__PURE__ */ (0,
|
|
18651
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
|
|
18596
18652
|
"button",
|
|
18597
18653
|
{
|
|
18598
18654
|
type: "button",
|
|
@@ -18601,12 +18657,12 @@ function ParameterDataResource({
|
|
|
18601
18657
|
disabled: disabled2,
|
|
18602
18658
|
onClick: onConnectDatasource,
|
|
18603
18659
|
children: [
|
|
18604
|
-
/* @__PURE__ */ (0,
|
|
18660
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
18605
18661
|
children
|
|
18606
18662
|
]
|
|
18607
18663
|
}
|
|
18608
18664
|
),
|
|
18609
|
-
caption ? /* @__PURE__ */ (0,
|
|
18665
|
+
caption ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Caption, { children: caption }) : null
|
|
18610
18666
|
] });
|
|
18611
18667
|
}
|
|
18612
18668
|
|
|
@@ -18636,12 +18692,12 @@ var ParameterDrawerHeaderTitle = import_react103.css`
|
|
|
18636
18692
|
`;
|
|
18637
18693
|
|
|
18638
18694
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
18639
|
-
var
|
|
18695
|
+
var import_jsx_runtime94 = require("@emotion/react/jsx-runtime");
|
|
18640
18696
|
var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
|
|
18641
|
-
return /* @__PURE__ */ (0,
|
|
18642
|
-
/* @__PURE__ */ (0,
|
|
18697
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
18698
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
18643
18699
|
iconBeforeTitle,
|
|
18644
|
-
/* @__PURE__ */ (0,
|
|
18700
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title: title2, children: title2 })
|
|
18645
18701
|
] }),
|
|
18646
18702
|
children
|
|
18647
18703
|
] });
|
|
@@ -18673,11 +18729,11 @@ var fieldsetLegend2 = import_react104.css`
|
|
|
18673
18729
|
`;
|
|
18674
18730
|
|
|
18675
18731
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
18676
|
-
var
|
|
18732
|
+
var import_jsx_runtime95 = require("@emotion/react/jsx-runtime");
|
|
18677
18733
|
var ParameterGroup = (0, import_react105.forwardRef)(
|
|
18678
18734
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
18679
|
-
return /* @__PURE__ */ (0,
|
|
18680
|
-
/* @__PURE__ */ (0,
|
|
18735
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
18736
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("legend", { css: fieldsetLegend2, children: legend }),
|
|
18681
18737
|
children
|
|
18682
18738
|
] });
|
|
18683
18739
|
}
|
|
@@ -18731,33 +18787,32 @@ var previewModalImage = import_react106.css`
|
|
|
18731
18787
|
`;
|
|
18732
18788
|
|
|
18733
18789
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
18734
|
-
var
|
|
18790
|
+
var import_jsx_runtime96 = require("@emotion/react/jsx-runtime");
|
|
18735
18791
|
function ParameterImagePreview({ imageSrc }) {
|
|
18736
18792
|
const [showModal, setShowModal] = (0, import_react107.useState)(false);
|
|
18737
|
-
return imageSrc ? /* @__PURE__ */ (0,
|
|
18738
|
-
/* @__PURE__ */ (0,
|
|
18739
|
-
/* @__PURE__ */ (0,
|
|
18793
|
+
return imageSrc ? /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { css: previewWrapper, children: [
|
|
18794
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
|
|
18795
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
18740
18796
|
"button",
|
|
18741
18797
|
{
|
|
18742
18798
|
css: previewLink,
|
|
18743
18799
|
onClick: () => {
|
|
18744
18800
|
setShowModal(true);
|
|
18745
18801
|
},
|
|
18746
|
-
children: /* @__PURE__ */ (0,
|
|
18802
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Image, { src: imageSrc, "data-testid": "parameter-image-preview" })
|
|
18747
18803
|
}
|
|
18748
18804
|
)
|
|
18749
18805
|
] }) : null;
|
|
18750
18806
|
}
|
|
18751
18807
|
var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
18752
|
-
return open ? /* @__PURE__ */ (0,
|
|
18753
|
-
/* @__PURE__ */ (0,
|
|
18808
|
+
return open ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_jsx_runtime96.Fragment, { children: (0, import_react_dom2.createPortal)(
|
|
18809
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
18754
18810
|
Modal,
|
|
18755
18811
|
{
|
|
18756
18812
|
header: "Image Preview",
|
|
18757
18813
|
onRequestClose,
|
|
18758
|
-
|
|
18759
|
-
|
|
18760
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { css: previewModalWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
|
|
18814
|
+
buttonGroup: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
|
|
18815
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { css: previewModalWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
|
|
18761
18816
|
}
|
|
18762
18817
|
),
|
|
18763
18818
|
document.body
|
|
@@ -18771,22 +18826,22 @@ var import_react111 = require("react");
|
|
|
18771
18826
|
|
|
18772
18827
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
18773
18828
|
init_emotion_jsx_shim();
|
|
18774
|
-
var
|
|
18829
|
+
var import_jsx_runtime97 = require("@emotion/react/jsx-runtime");
|
|
18775
18830
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
18776
|
-
return !asSpan ? /* @__PURE__ */ (0,
|
|
18831
|
+
return !asSpan ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { "aria-labelledby": id, css: labelText2, children });
|
|
18777
18832
|
};
|
|
18778
18833
|
|
|
18779
18834
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
18780
18835
|
init_emotion_jsx_shim();
|
|
18781
18836
|
var import_react108 = require("react");
|
|
18782
|
-
var
|
|
18837
|
+
var import_jsx_runtime98 = require("@emotion/react/jsx-runtime");
|
|
18783
18838
|
var ParameterMenuButton = (0, import_react108.forwardRef)(
|
|
18784
18839
|
({ label, children }, ref) => {
|
|
18785
|
-
return /* @__PURE__ */ (0,
|
|
18840
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
18786
18841
|
Menu,
|
|
18787
18842
|
{
|
|
18788
18843
|
menuLabel: `${label} menu`,
|
|
18789
|
-
menuTrigger: /* @__PURE__ */ (0,
|
|
18844
|
+
menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
18790
18845
|
"button",
|
|
18791
18846
|
{
|
|
18792
18847
|
className: "parameter-menu",
|
|
@@ -18794,7 +18849,7 @@ var ParameterMenuButton = (0, import_react108.forwardRef)(
|
|
|
18794
18849
|
type: "button",
|
|
18795
18850
|
"aria-label": `${label} options`,
|
|
18796
18851
|
ref,
|
|
18797
|
-
children: /* @__PURE__ */ (0,
|
|
18852
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
18798
18853
|
}
|
|
18799
18854
|
),
|
|
18800
18855
|
children
|
|
@@ -18831,7 +18886,7 @@ var overrideMarker = import_react109.css`
|
|
|
18831
18886
|
`;
|
|
18832
18887
|
|
|
18833
18888
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
18834
|
-
var
|
|
18889
|
+
var import_jsx_runtime99 = require("@emotion/react/jsx-runtime");
|
|
18835
18890
|
var extractParameterProps = (props) => {
|
|
18836
18891
|
const {
|
|
18837
18892
|
id,
|
|
@@ -18894,19 +18949,19 @@ var ParameterShell = ({
|
|
|
18894
18949
|
const [manualErrorMessage, setManualErrorMessage] = (0, import_react111.useState)(void 0);
|
|
18895
18950
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
18896
18951
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
18897
|
-
return /* @__PURE__ */ (0,
|
|
18898
|
-
hiddenLabel || title2 ? null : /* @__PURE__ */ (0,
|
|
18952
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { css: inputContainer2, ...props, id, children: [
|
|
18953
|
+
hiddenLabel || title2 ? null : /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(ParameterLabel, { id, css: labelText2, children: [
|
|
18899
18954
|
labelLeadingIcon != null ? labelLeadingIcon : null,
|
|
18900
18955
|
label,
|
|
18901
18956
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
18902
18957
|
] }),
|
|
18903
|
-
!title2 ? null : /* @__PURE__ */ (0,
|
|
18958
|
+
!title2 ? null : /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(ParameterLabel, { id, asSpan: true, children: [
|
|
18904
18959
|
labelLeadingIcon != null ? labelLeadingIcon : null,
|
|
18905
18960
|
title2,
|
|
18906
18961
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
18907
18962
|
] }),
|
|
18908
|
-
/* @__PURE__ */ (0,
|
|
18909
|
-
actionItems ? /* @__PURE__ */ (0,
|
|
18963
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { css: inputWrapper, children: [
|
|
18964
|
+
actionItems ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
18910
18965
|
"div",
|
|
18911
18966
|
{
|
|
18912
18967
|
css: [
|
|
@@ -18919,8 +18974,8 @@ var ParameterShell = ({
|
|
|
18919
18974
|
children: actionItems
|
|
18920
18975
|
}
|
|
18921
18976
|
) : null,
|
|
18922
|
-
menuItems ? /* @__PURE__ */ (0,
|
|
18923
|
-
/* @__PURE__ */ (0,
|
|
18977
|
+
menuItems ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
18978
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
18924
18979
|
ParameterShellContext.Provider,
|
|
18925
18980
|
{
|
|
18926
18981
|
value: {
|
|
@@ -18930,31 +18985,38 @@ var ParameterShell = ({
|
|
|
18930
18985
|
errorMessage: errorMessaging,
|
|
18931
18986
|
handleManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
18932
18987
|
},
|
|
18933
|
-
children: isParameterGroup ? /* @__PURE__ */ (0,
|
|
18988
|
+
children: isParameterGroup ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { style: { flexGrow: 1 }, children }) : /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(ParameterShellPlaceholder, { children: [
|
|
18934
18989
|
children,
|
|
18935
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0,
|
|
18990
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
18936
18991
|
] })
|
|
18937
18992
|
}
|
|
18938
18993
|
)
|
|
18939
18994
|
] }),
|
|
18940
|
-
|
|
18941
|
-
|
|
18942
|
-
|
|
18943
|
-
|
|
18995
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
18996
|
+
FieldMessage,
|
|
18997
|
+
{
|
|
18998
|
+
helperMessageTestId: captionTestId,
|
|
18999
|
+
helperMessage: caption,
|
|
19000
|
+
errorTestId,
|
|
19001
|
+
errorMessage: errorMessaging,
|
|
19002
|
+
warningMessage,
|
|
19003
|
+
infoMessage
|
|
19004
|
+
}
|
|
19005
|
+
)
|
|
18944
19006
|
] });
|
|
18945
19007
|
};
|
|
18946
19008
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
18947
|
-
return /* @__PURE__ */ (0,
|
|
19009
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { css: emptyParameterShell, children });
|
|
18948
19010
|
};
|
|
18949
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0,
|
|
19011
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
18950
19012
|
|
|
18951
19013
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
18952
|
-
var
|
|
19014
|
+
var import_jsx_runtime100 = require("@emotion/react/jsx-runtime");
|
|
18953
19015
|
var ParameterImage = (0, import_react112.forwardRef)(
|
|
18954
19016
|
({ children, ...props }, ref) => {
|
|
18955
19017
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18956
|
-
return /* @__PURE__ */ (0,
|
|
18957
|
-
/* @__PURE__ */ (0,
|
|
19018
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
|
|
19019
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(ParameterImageInner, { ref, ...innerProps }),
|
|
18958
19020
|
children
|
|
18959
19021
|
] });
|
|
18960
19022
|
}
|
|
@@ -18963,8 +19025,8 @@ var ParameterImageInner = (0, import_react112.forwardRef)((props, ref) => {
|
|
|
18963
19025
|
const { value } = props;
|
|
18964
19026
|
const { id, label, hiddenLabel, errorMessage } = useParameterShell();
|
|
18965
19027
|
const deferredValue = (0, import_react112.useDeferredValue)(value);
|
|
18966
|
-
return /* @__PURE__ */ (0,
|
|
18967
|
-
/* @__PURE__ */ (0,
|
|
19028
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_jsx_runtime100.Fragment, { children: [
|
|
19029
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
18968
19030
|
"input",
|
|
18969
19031
|
{
|
|
18970
19032
|
css: input2,
|
|
@@ -18976,22 +19038,22 @@ var ParameterImageInner = (0, import_react112.forwardRef)((props, ref) => {
|
|
|
18976
19038
|
...props
|
|
18977
19039
|
}
|
|
18978
19040
|
),
|
|
18979
|
-
errorMessage || props.disablePreview ? null : /* @__PURE__ */ (0,
|
|
19041
|
+
errorMessage || props.disablePreview ? null : /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(ParameterImagePreview, { imageSrc: deferredValue })
|
|
18980
19042
|
] });
|
|
18981
19043
|
});
|
|
18982
19044
|
|
|
18983
19045
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
18984
19046
|
init_emotion_jsx_shim();
|
|
18985
19047
|
var import_react113 = require("react");
|
|
18986
|
-
var
|
|
19048
|
+
var import_jsx_runtime101 = require("@emotion/react/jsx-runtime");
|
|
18987
19049
|
var ParameterInput = (0, import_react113.forwardRef)((props, ref) => {
|
|
18988
19050
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18989
|
-
return /* @__PURE__ */ (0,
|
|
19051
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(ParameterInputInner, { ref, ...innerProps }) });
|
|
18990
19052
|
});
|
|
18991
19053
|
var ParameterInputInner = (0, import_react113.forwardRef)(
|
|
18992
19054
|
({ ...props }, ref) => {
|
|
18993
19055
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
18994
|
-
return /* @__PURE__ */ (0,
|
|
19056
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
18995
19057
|
"input",
|
|
18996
19058
|
{
|
|
18997
19059
|
css: input2,
|
|
@@ -19009,18 +19071,18 @@ var ParameterInputInner = (0, import_react113.forwardRef)(
|
|
|
19009
19071
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
19010
19072
|
init_emotion_jsx_shim();
|
|
19011
19073
|
var import_react114 = require("react");
|
|
19012
|
-
var
|
|
19074
|
+
var import_jsx_runtime102 = require("@emotion/react/jsx-runtime");
|
|
19013
19075
|
var ParameterLink = (0, import_react114.forwardRef)(
|
|
19014
19076
|
({ disabled: disabled2, onConnectLink, externalLink, ...props }, ref) => {
|
|
19015
19077
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
19016
|
-
return /* @__PURE__ */ (0,
|
|
19078
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
19017
19079
|
ParameterShell,
|
|
19018
19080
|
{
|
|
19019
19081
|
"data-testid": "link-parameter-editor",
|
|
19020
19082
|
...shellProps,
|
|
19021
19083
|
label: innerProps.value ? shellProps.label : "",
|
|
19022
19084
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
19023
|
-
children: /* @__PURE__ */ (0,
|
|
19085
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
19024
19086
|
ParameterLinkInner,
|
|
19025
19087
|
{
|
|
19026
19088
|
onConnectLink,
|
|
@@ -19037,9 +19099,9 @@ var ParameterLinkInner = (0, import_react114.forwardRef)(
|
|
|
19037
19099
|
({ externalLink, onConnectLink, disabled: disabled2, buttonText = "Select link", ...props }, ref) => {
|
|
19038
19100
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
19039
19101
|
if (!props.value)
|
|
19040
|
-
return /* @__PURE__ */ (0,
|
|
19041
|
-
return /* @__PURE__ */ (0,
|
|
19042
|
-
/* @__PURE__ */ (0,
|
|
19102
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("button", { type: "button", css: dataConnectButton, disabled: disabled2, onClick: onConnectLink, children: buttonText });
|
|
19103
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { css: inputWrapper, children: [
|
|
19104
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
19043
19105
|
"input",
|
|
19044
19106
|
{
|
|
19045
19107
|
type: "text",
|
|
@@ -19051,8 +19113,8 @@ var ParameterLinkInner = (0, import_react114.forwardRef)(
|
|
|
19051
19113
|
...props
|
|
19052
19114
|
}
|
|
19053
19115
|
),
|
|
19054
|
-
/* @__PURE__ */ (0,
|
|
19055
|
-
/* @__PURE__ */ (0,
|
|
19116
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { css: linkParameterControls, children: [
|
|
19117
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
19056
19118
|
"button",
|
|
19057
19119
|
{
|
|
19058
19120
|
type: "button",
|
|
@@ -19063,7 +19125,7 @@ var ParameterLinkInner = (0, import_react114.forwardRef)(
|
|
|
19063
19125
|
children: "edit"
|
|
19064
19126
|
}
|
|
19065
19127
|
),
|
|
19066
|
-
externalLink ? /* @__PURE__ */ (0,
|
|
19128
|
+
externalLink ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
19067
19129
|
"a",
|
|
19068
19130
|
{
|
|
19069
19131
|
href: externalLink,
|
|
@@ -19071,7 +19133,7 @@ var ParameterLinkInner = (0, import_react114.forwardRef)(
|
|
|
19071
19133
|
title: "Open link in new tab",
|
|
19072
19134
|
target: "_blank",
|
|
19073
19135
|
rel: "noopener noreferrer",
|
|
19074
|
-
children: /* @__PURE__ */ (0,
|
|
19136
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
19075
19137
|
}
|
|
19076
19138
|
) : null
|
|
19077
19139
|
] })
|
|
@@ -19081,7 +19143,7 @@ var ParameterLinkInner = (0, import_react114.forwardRef)(
|
|
|
19081
19143
|
|
|
19082
19144
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
19083
19145
|
init_emotion_jsx_shim();
|
|
19084
|
-
var
|
|
19146
|
+
var import_jsx_runtime103 = require("@emotion/react/jsx-runtime");
|
|
19085
19147
|
var ParameterNameAndPublicIdInput = ({
|
|
19086
19148
|
id,
|
|
19087
19149
|
onBlur,
|
|
@@ -19107,8 +19169,8 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
19107
19169
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
19108
19170
|
};
|
|
19109
19171
|
autoFocus == null ? void 0 : autoFocus();
|
|
19110
|
-
return /* @__PURE__ */ (0,
|
|
19111
|
-
/* @__PURE__ */ (0,
|
|
19172
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_jsx_runtime103.Fragment, { children: [
|
|
19173
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
19112
19174
|
ParameterInput,
|
|
19113
19175
|
{
|
|
19114
19176
|
id: nameIdField,
|
|
@@ -19127,7 +19189,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
19127
19189
|
value: values[nameIdField]
|
|
19128
19190
|
}
|
|
19129
19191
|
),
|
|
19130
|
-
/* @__PURE__ */ (0,
|
|
19192
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
19131
19193
|
ParameterInput,
|
|
19132
19194
|
{
|
|
19133
19195
|
id: publicIdFieldName,
|
|
@@ -19141,11 +19203,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
19141
19203
|
caption: !publicIdError ? publicIdCaption : void 0,
|
|
19142
19204
|
placeholder: publicIdPlaceholderText,
|
|
19143
19205
|
errorMessage: publicIdError,
|
|
19144
|
-
menuItems: /* @__PURE__ */ (0,
|
|
19206
|
+
menuItems: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
19145
19207
|
MenuItem,
|
|
19146
19208
|
{
|
|
19147
19209
|
disabled: !values[publicIdFieldName],
|
|
19148
|
-
icon: /* @__PURE__ */ (0,
|
|
19210
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
19149
19211
|
onClick: handleCopyPidFieldValue,
|
|
19150
19212
|
children: "Copy"
|
|
19151
19213
|
}
|
|
@@ -19153,7 +19215,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
19153
19215
|
value: values[publicIdFieldName]
|
|
19154
19216
|
}
|
|
19155
19217
|
),
|
|
19156
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ (0,
|
|
19218
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
19157
19219
|
] });
|
|
19158
19220
|
};
|
|
19159
19221
|
|
|
@@ -19532,7 +19594,7 @@ var getSelectedNode = (selection) => {
|
|
|
19532
19594
|
};
|
|
19533
19595
|
|
|
19534
19596
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
19535
|
-
var
|
|
19597
|
+
var import_jsx_runtime104 = require("@emotion/react/jsx-runtime");
|
|
19536
19598
|
var isProjectMapLinkValue = (value) => {
|
|
19537
19599
|
return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
|
|
19538
19600
|
value.nodeId && value.path && value.projectMapId
|
|
@@ -19975,8 +20037,8 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
19975
20037
|
});
|
|
19976
20038
|
});
|
|
19977
20039
|
};
|
|
19978
|
-
return /* @__PURE__ */ (0,
|
|
19979
|
-
/* @__PURE__ */ (0,
|
|
20040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_jsx_runtime104.Fragment, { children: [
|
|
20041
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
19980
20042
|
import_LexicalNodeEventPlugin.NodeEventPlugin,
|
|
19981
20043
|
{
|
|
19982
20044
|
nodeType: LinkNode,
|
|
@@ -19986,7 +20048,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
19986
20048
|
}
|
|
19987
20049
|
}
|
|
19988
20050
|
),
|
|
19989
|
-
linkPopoverState ? /* @__PURE__ */ (0,
|
|
20051
|
+
linkPopoverState ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
19990
20052
|
"div",
|
|
19991
20053
|
{
|
|
19992
20054
|
css: linkPopover,
|
|
@@ -19995,8 +20057,8 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
19995
20057
|
top: linkPopoverState.position.y
|
|
19996
20058
|
},
|
|
19997
20059
|
ref: linkPopoverElRef,
|
|
19998
|
-
children: /* @__PURE__ */ (0,
|
|
19999
|
-
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ (0,
|
|
20060
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { css: linkPopoverContainer, children: [
|
|
20061
|
+
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
20000
20062
|
"a",
|
|
20001
20063
|
{
|
|
20002
20064
|
href: parsePath(
|
|
@@ -20008,7 +20070,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
20008
20070
|
children: parsePath(linkPopoverState.node.__link.path)
|
|
20009
20071
|
}
|
|
20010
20072
|
),
|
|
20011
|
-
/* @__PURE__ */ (0,
|
|
20073
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
20012
20074
|
Button,
|
|
20013
20075
|
{
|
|
20014
20076
|
size: "xs",
|
|
@@ -20016,7 +20078,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
20016
20078
|
onEditLinkNode(linkPopoverState.node);
|
|
20017
20079
|
},
|
|
20018
20080
|
buttonType: "ghost",
|
|
20019
|
-
children: /* @__PURE__ */ (0,
|
|
20081
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
|
|
20020
20082
|
}
|
|
20021
20083
|
)
|
|
20022
20084
|
] })
|
|
@@ -20037,7 +20099,7 @@ var import_LexicalComposerContext3 = require("@lexical/react/LexicalComposerCont
|
|
|
20037
20099
|
var import_LexicalTabIndentationPlugin = require("@lexical/react/LexicalTabIndentationPlugin");
|
|
20038
20100
|
var import_lexical4 = require("lexical");
|
|
20039
20101
|
var import_react118 = require("react");
|
|
20040
|
-
var
|
|
20102
|
+
var import_jsx_runtime105 = require("@emotion/react/jsx-runtime");
|
|
20041
20103
|
function isIndentPermitted(maxDepth) {
|
|
20042
20104
|
const selection = (0, import_lexical4.$getSelection)();
|
|
20043
20105
|
if (!(0, import_lexical4.$isRangeSelection)(selection)) {
|
|
@@ -20067,7 +20129,7 @@ function ListIndentPlugin({ maxDepth }) {
|
|
|
20067
20129
|
import_lexical4.COMMAND_PRIORITY_CRITICAL
|
|
20068
20130
|
);
|
|
20069
20131
|
}, [editor, maxDepth]);
|
|
20070
|
-
return /* @__PURE__ */ (0,
|
|
20132
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_LexicalTabIndentationPlugin.TabIndentationPlugin, {});
|
|
20071
20133
|
}
|
|
20072
20134
|
|
|
20073
20135
|
// src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
|
|
@@ -20081,7 +20143,7 @@ var import_selection2 = require("@lexical/selection");
|
|
|
20081
20143
|
var import_utils6 = require("@lexical/utils");
|
|
20082
20144
|
var import_lexical5 = require("lexical");
|
|
20083
20145
|
var import_react120 = require("react");
|
|
20084
|
-
var
|
|
20146
|
+
var import_jsx_runtime106 = require("@emotion/react/jsx-runtime");
|
|
20085
20147
|
var toolbar = import_react119.css`
|
|
20086
20148
|
background: var(--gray-50);
|
|
20087
20149
|
border-radius: var(--rounded-base);
|
|
@@ -20133,7 +20195,7 @@ var toolbarChevron = import_react119.css`
|
|
|
20133
20195
|
margin-left: var(--spacing-xs);
|
|
20134
20196
|
`;
|
|
20135
20197
|
var RichTextToolbarIcon = ({ icon }) => {
|
|
20136
|
-
return /* @__PURE__ */ (0,
|
|
20198
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Icon, { icon, css: toolbarIcon, size: "1rem" });
|
|
20137
20199
|
};
|
|
20138
20200
|
var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
|
|
20139
20201
|
["bold", "format-bold"],
|
|
@@ -20242,15 +20304,15 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
20242
20304
|
});
|
|
20243
20305
|
});
|
|
20244
20306
|
}, [editor, updateToolbar]);
|
|
20245
|
-
return /* @__PURE__ */ (0,
|
|
20246
|
-
/* @__PURE__ */ (0,
|
|
20307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { css: toolbar, children: [
|
|
20308
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
|
|
20247
20309
|
Menu,
|
|
20248
20310
|
{
|
|
20249
20311
|
menuLabel: "Elements",
|
|
20250
|
-
menuTrigger: /* @__PURE__ */ (0,
|
|
20312
|
+
menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("button", { css: richTextToolbarButton, title: "Text styles", children: [
|
|
20251
20313
|
visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
|
|
20252
20314
|
" ",
|
|
20253
|
-
/* @__PURE__ */ (0,
|
|
20315
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
|
|
20254
20316
|
] }),
|
|
20255
20317
|
placement: "bottom-start",
|
|
20256
20318
|
children: [
|
|
@@ -20260,7 +20322,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
20260
20322
|
type: "paragraph"
|
|
20261
20323
|
},
|
|
20262
20324
|
...visibleTextualElements
|
|
20263
|
-
].map((element) => /* @__PURE__ */ (0,
|
|
20325
|
+
].map((element) => /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
20264
20326
|
MenuItem,
|
|
20265
20327
|
{
|
|
20266
20328
|
onClick: () => {
|
|
@@ -20270,12 +20332,12 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
20270
20332
|
},
|
|
20271
20333
|
element.type
|
|
20272
20334
|
)),
|
|
20273
|
-
visibleTextualElements.length === 0 ? /* @__PURE__ */ (0,
|
|
20335
|
+
visibleTextualElements.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
|
|
20274
20336
|
]
|
|
20275
20337
|
}
|
|
20276
20338
|
),
|
|
20277
|
-
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0,
|
|
20278
|
-
visibleFormatsWithIcon.map((format) => /* @__PURE__ */ (0,
|
|
20339
|
+
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { css: toolbarGroup, children: [
|
|
20340
|
+
visibleFormatsWithIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
20279
20341
|
"button",
|
|
20280
20342
|
{
|
|
20281
20343
|
onClick: () => {
|
|
@@ -20285,16 +20347,16 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
20285
20347
|
richTextToolbarButton,
|
|
20286
20348
|
activeFormats.includes(format.type) ? richTextToolbarButtonActive : null
|
|
20287
20349
|
],
|
|
20288
|
-
children: /* @__PURE__ */ (0,
|
|
20350
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
|
|
20289
20351
|
}
|
|
20290
20352
|
) }, format.type)),
|
|
20291
|
-
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0,
|
|
20353
|
+
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
20292
20354
|
Menu,
|
|
20293
20355
|
{
|
|
20294
20356
|
menuLabel: "Alternative text styles",
|
|
20295
|
-
menuTrigger: /* @__PURE__ */ (0,
|
|
20357
|
+
menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("button", { css: richTextToolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Icon, { icon: "more-alt", css: toolbarIcon }) }),
|
|
20296
20358
|
placement: "bottom-start",
|
|
20297
|
-
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ (0,
|
|
20359
|
+
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
20298
20360
|
MenuItem,
|
|
20299
20361
|
{
|
|
20300
20362
|
onClick: () => {
|
|
@@ -20307,19 +20369,19 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
20307
20369
|
}
|
|
20308
20370
|
) : null
|
|
20309
20371
|
] }) : null,
|
|
20310
|
-
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ (0,
|
|
20311
|
-
linkElementVisible ? /* @__PURE__ */ (0,
|
|
20372
|
+
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { css: toolbarGroup, children: [
|
|
20373
|
+
linkElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
20312
20374
|
"button",
|
|
20313
20375
|
{
|
|
20314
20376
|
onClick: () => {
|
|
20315
20377
|
isLink ? editor.dispatchCommand(REMOVE_LINK_NODE_COMMAND, {}) : editor.dispatchCommand(OPEN_LINK_NODE_MODAL_COMMAND, {});
|
|
20316
20378
|
},
|
|
20317
20379
|
css: [richTextToolbarButton, isLink ? richTextToolbarButtonActive : null],
|
|
20318
|
-
children: /* @__PURE__ */ (0,
|
|
20380
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(RichTextToolbarIcon, { icon: "link" })
|
|
20319
20381
|
}
|
|
20320
20382
|
) }) : null,
|
|
20321
|
-
visibleLists.size > 0 ? /* @__PURE__ */ (0,
|
|
20322
|
-
visibleLists.has("unorderedList") ? /* @__PURE__ */ (0,
|
|
20383
|
+
visibleLists.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_jsx_runtime106.Fragment, { children: [
|
|
20384
|
+
visibleLists.has("unorderedList") ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
20323
20385
|
"button",
|
|
20324
20386
|
{
|
|
20325
20387
|
onClick: () => {
|
|
@@ -20329,10 +20391,10 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
20329
20391
|
richTextToolbarButton,
|
|
20330
20392
|
activeElement === "unorderedList" ? richTextToolbarButtonActive : null
|
|
20331
20393
|
],
|
|
20332
|
-
children: /* @__PURE__ */ (0,
|
|
20394
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(RichTextToolbarIcon, { icon: "layout-list" })
|
|
20333
20395
|
}
|
|
20334
20396
|
) }) : null,
|
|
20335
|
-
visibleLists.has("orderedList") ? /* @__PURE__ */ (0,
|
|
20397
|
+
visibleLists.has("orderedList") ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
20336
20398
|
"button",
|
|
20337
20399
|
{
|
|
20338
20400
|
onClick: () => {
|
|
@@ -20342,32 +20404,32 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
20342
20404
|
richTextToolbarButton,
|
|
20343
20405
|
activeElement === "orderedList" ? richTextToolbarButtonActive : null
|
|
20344
20406
|
],
|
|
20345
|
-
children: /* @__PURE__ */ (0,
|
|
20407
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(RichTextToolbarIcon, { icon: "layout-list-numbered" })
|
|
20346
20408
|
}
|
|
20347
20409
|
) }) : null
|
|
20348
20410
|
] }) : null,
|
|
20349
|
-
quoteElementVisible ? /* @__PURE__ */ (0,
|
|
20411
|
+
quoteElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
20350
20412
|
"button",
|
|
20351
20413
|
{
|
|
20352
20414
|
onClick: () => {
|
|
20353
20415
|
activeElement === "quote" ? onSelectElement("paragraph") : onSelectElement("quote");
|
|
20354
20416
|
},
|
|
20355
20417
|
css: [richTextToolbarButton, activeElement === "quote" ? richTextToolbarButtonActive : null],
|
|
20356
|
-
children: /* @__PURE__ */ (0,
|
|
20418
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(RichTextToolbarIcon, { icon: "quote" })
|
|
20357
20419
|
}
|
|
20358
20420
|
) }) : null,
|
|
20359
|
-
codeElementVisible ? /* @__PURE__ */ (0,
|
|
20421
|
+
codeElementVisible ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
20360
20422
|
"button",
|
|
20361
20423
|
{
|
|
20362
20424
|
onClick: () => {
|
|
20363
20425
|
activeElement === "code" ? onSelectElement("paragraph") : onSelectElement("code");
|
|
20364
20426
|
},
|
|
20365
20427
|
css: [richTextToolbarButton, activeElement === "code" ? richTextToolbarButtonActive : null],
|
|
20366
|
-
children: /* @__PURE__ */ (0,
|
|
20428
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(RichTextToolbarIcon, { icon: "code-slash" })
|
|
20367
20429
|
}
|
|
20368
20430
|
) }) : null
|
|
20369
20431
|
] }) : null,
|
|
20370
|
-
customControls ? /* @__PURE__ */ (0,
|
|
20432
|
+
customControls ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { css: toolbarGroup, children: customControls }) : null
|
|
20371
20433
|
] });
|
|
20372
20434
|
};
|
|
20373
20435
|
var RichTextToolbar_default = RichTextToolbar;
|
|
@@ -20481,7 +20543,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
20481
20543
|
};
|
|
20482
20544
|
|
|
20483
20545
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
20484
|
-
var
|
|
20546
|
+
var import_jsx_runtime107 = require("@emotion/react/jsx-runtime");
|
|
20485
20547
|
var ParameterRichText = ({
|
|
20486
20548
|
label,
|
|
20487
20549
|
labelLeadingIcon,
|
|
@@ -20506,7 +20568,7 @@ var ParameterRichText = ({
|
|
|
20506
20568
|
variables,
|
|
20507
20569
|
customControls
|
|
20508
20570
|
}) => {
|
|
20509
|
-
return /* @__PURE__ */ (0,
|
|
20571
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
|
|
20510
20572
|
ParameterShell,
|
|
20511
20573
|
{
|
|
20512
20574
|
"data-testid": "parameter-richtext",
|
|
@@ -20520,7 +20582,7 @@ var ParameterRichText = ({
|
|
|
20520
20582
|
captionTestId,
|
|
20521
20583
|
menuItems,
|
|
20522
20584
|
children: [
|
|
20523
|
-
/* @__PURE__ */ (0,
|
|
20585
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
20524
20586
|
ParameterRichTextInner,
|
|
20525
20587
|
{
|
|
20526
20588
|
value,
|
|
@@ -20538,7 +20600,7 @@ var ParameterRichText = ({
|
|
|
20538
20600
|
children
|
|
20539
20601
|
}
|
|
20540
20602
|
),
|
|
20541
|
-
menuItems ? /* @__PURE__ */ (0,
|
|
20603
|
+
menuItems ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_jsx_runtime107.Fragment, { children: menuItems }) }) : null
|
|
20542
20604
|
]
|
|
20543
20605
|
}
|
|
20544
20606
|
);
|
|
@@ -20649,8 +20711,8 @@ var ParameterRichTextInner = ({
|
|
|
20649
20711
|
},
|
|
20650
20712
|
editable: !readOnly
|
|
20651
20713
|
};
|
|
20652
|
-
return /* @__PURE__ */ (0,
|
|
20653
|
-
/* @__PURE__ */ (0,
|
|
20714
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_jsx_runtime107.Fragment, { children: [
|
|
20715
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_LexicalComposer.LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
20654
20716
|
RichText,
|
|
20655
20717
|
{
|
|
20656
20718
|
onChange,
|
|
@@ -20709,20 +20771,20 @@ var RichText = ({
|
|
|
20709
20771
|
(0, import_react122.useEffect)(() => {
|
|
20710
20772
|
editor.setEditable(!readOnly);
|
|
20711
20773
|
}, [editor, readOnly]);
|
|
20712
|
-
return /* @__PURE__ */ (0,
|
|
20713
|
-
readOnly ? null : /* @__PURE__ */ (0,
|
|
20714
|
-
/* @__PURE__ */ (0,
|
|
20715
|
-
/* @__PURE__ */ (0,
|
|
20774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_jsx_runtime107.Fragment, { children: [
|
|
20775
|
+
readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(RichTextToolbar_default, { config, customControls }),
|
|
20776
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
|
|
20777
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
20716
20778
|
import_LexicalRichTextPlugin.RichTextPlugin,
|
|
20717
20779
|
{
|
|
20718
|
-
contentEditable: /* @__PURE__ */ (0,
|
|
20719
|
-
placeholder: /* @__PURE__ */ (0,
|
|
20780
|
+
contentEditable: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_LexicalContentEditable.ContentEditable, { css: editorInput, className: editorInputClassName }),
|
|
20781
|
+
placeholder: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
|
|
20720
20782
|
ErrorBoundary: import_LexicalErrorBoundary.default
|
|
20721
20783
|
}
|
|
20722
20784
|
),
|
|
20723
|
-
/* @__PURE__ */ (0,
|
|
20724
|
-
readOnly ? null : /* @__PURE__ */ (0,
|
|
20725
|
-
/* @__PURE__ */ (0,
|
|
20785
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_LexicalListPlugin.ListPlugin, {}),
|
|
20786
|
+
readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_LexicalHistoryPlugin.HistoryPlugin, {}),
|
|
20787
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
20726
20788
|
LinkNodePlugin,
|
|
20727
20789
|
{
|
|
20728
20790
|
onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve(),
|
|
@@ -20732,10 +20794,10 @@ var RichText = ({
|
|
|
20732
20794
|
} : void 0
|
|
20733
20795
|
}
|
|
20734
20796
|
),
|
|
20735
|
-
/* @__PURE__ */ (0,
|
|
20736
|
-
/* @__PURE__ */ (0,
|
|
20737
|
-
/* @__PURE__ */ (0,
|
|
20738
|
-
/* @__PURE__ */ (0,
|
|
20797
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(ListIndentPlugin, { maxDepth: 4 }),
|
|
20798
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(DisableStylesPlugin, {}),
|
|
20799
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_LexicalMarkdownShortcutPlugin.MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
|
|
20800
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_jsx_runtime107.Fragment, { children })
|
|
20739
20801
|
] })
|
|
20740
20802
|
] });
|
|
20741
20803
|
};
|
|
@@ -20743,17 +20805,17 @@ var RichText = ({
|
|
|
20743
20805
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
20744
20806
|
init_emotion_jsx_shim();
|
|
20745
20807
|
var import_react123 = require("react");
|
|
20746
|
-
var
|
|
20808
|
+
var import_jsx_runtime108 = require("@emotion/react/jsx-runtime");
|
|
20747
20809
|
var ParameterSelect = (0, import_react123.forwardRef)(
|
|
20748
20810
|
({ defaultOption, options, ...props }, ref) => {
|
|
20749
20811
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
20750
|
-
return /* @__PURE__ */ (0,
|
|
20812
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
20751
20813
|
}
|
|
20752
20814
|
);
|
|
20753
20815
|
var ParameterSelectInner = (0, import_react123.forwardRef)(
|
|
20754
20816
|
({ defaultOption, options, ...props }, ref) => {
|
|
20755
20817
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
20756
|
-
return /* @__PURE__ */ (0,
|
|
20818
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
|
|
20757
20819
|
"select",
|
|
20758
20820
|
{
|
|
20759
20821
|
css: [input2, selectInput],
|
|
@@ -20762,10 +20824,10 @@ var ParameterSelectInner = (0, import_react123.forwardRef)(
|
|
|
20762
20824
|
ref,
|
|
20763
20825
|
...props,
|
|
20764
20826
|
children: [
|
|
20765
|
-
defaultOption ? /* @__PURE__ */ (0,
|
|
20827
|
+
defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("option", { value: "", children: defaultOption }) : null,
|
|
20766
20828
|
options.map((option) => {
|
|
20767
20829
|
var _a;
|
|
20768
|
-
return /* @__PURE__ */ (0,
|
|
20830
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
20769
20831
|
})
|
|
20770
20832
|
]
|
|
20771
20833
|
}
|
|
@@ -20776,14 +20838,14 @@ var ParameterSelectInner = (0, import_react123.forwardRef)(
|
|
|
20776
20838
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
20777
20839
|
init_emotion_jsx_shim();
|
|
20778
20840
|
var import_react124 = require("react");
|
|
20779
|
-
var
|
|
20841
|
+
var import_jsx_runtime109 = require("@emotion/react/jsx-runtime");
|
|
20780
20842
|
var ParameterTextarea = (0, import_react124.forwardRef)((props, ref) => {
|
|
20781
20843
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
20782
|
-
return /* @__PURE__ */ (0,
|
|
20844
|
+
return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
20783
20845
|
});
|
|
20784
20846
|
var ParameterTextareaInner = (0, import_react124.forwardRef)(({ ...props }, ref) => {
|
|
20785
20847
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
20786
|
-
return /* @__PURE__ */ (0,
|
|
20848
|
+
return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
20787
20849
|
"textarea",
|
|
20788
20850
|
{
|
|
20789
20851
|
css: [input2, textarea2],
|
|
@@ -20798,17 +20860,17 @@ var ParameterTextareaInner = (0, import_react124.forwardRef)(({ ...props }, ref)
|
|
|
20798
20860
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
20799
20861
|
init_emotion_jsx_shim();
|
|
20800
20862
|
var import_react125 = require("react");
|
|
20801
|
-
var
|
|
20863
|
+
var import_jsx_runtime110 = require("@emotion/react/jsx-runtime");
|
|
20802
20864
|
var ParameterToggle = (0, import_react125.forwardRef)((props, ref) => {
|
|
20803
20865
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
20804
|
-
return /* @__PURE__ */ (0,
|
|
20866
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(ParameterToggleInner, { ref, ...innerProps }) });
|
|
20805
20867
|
});
|
|
20806
20868
|
var ParameterToggleInner = (0, import_react125.forwardRef)(
|
|
20807
20869
|
({ ...props }, ref) => {
|
|
20808
20870
|
const { id, label } = useParameterShell();
|
|
20809
|
-
return /* @__PURE__ */ (0,
|
|
20810
|
-
/* @__PURE__ */ (0,
|
|
20811
|
-
/* @__PURE__ */ (0,
|
|
20871
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("label", { css: inputToggleLabel2, children: [
|
|
20872
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
20873
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { css: inlineLabel2, children: label })
|
|
20812
20874
|
] });
|
|
20813
20875
|
}
|
|
20814
20876
|
);
|
|
@@ -20872,7 +20934,7 @@ var bar = import_react126.css`
|
|
|
20872
20934
|
`;
|
|
20873
20935
|
|
|
20874
20936
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
20875
|
-
var
|
|
20937
|
+
var import_jsx_runtime111 = require("@emotion/react/jsx-runtime");
|
|
20876
20938
|
function ProgressBar({
|
|
20877
20939
|
current,
|
|
20878
20940
|
max,
|
|
@@ -20882,7 +20944,7 @@ function ProgressBar({
|
|
|
20882
20944
|
}) {
|
|
20883
20945
|
const valueNow = Math.min(current, max);
|
|
20884
20946
|
const valuePercentage = max > 0 ? Math.ceil(100 / max * valueNow) : 0;
|
|
20885
|
-
return /* @__PURE__ */ (0,
|
|
20947
|
+
return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
20886
20948
|
"div",
|
|
20887
20949
|
{
|
|
20888
20950
|
css: container2,
|
|
@@ -20893,7 +20955,7 @@ function ProgressBar({
|
|
|
20893
20955
|
"aria-valuemax": max,
|
|
20894
20956
|
"aria-valuenow": valueNow,
|
|
20895
20957
|
...props,
|
|
20896
|
-
children: /* @__PURE__ */ (0,
|
|
20958
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
20897
20959
|
"div",
|
|
20898
20960
|
{
|
|
20899
20961
|
css: [
|
|
@@ -20935,7 +20997,7 @@ var progressListItemStyles = import_react127.css`
|
|
|
20935
20997
|
`;
|
|
20936
20998
|
|
|
20937
20999
|
// src/components/ProgressList/ProgressList.tsx
|
|
20938
|
-
var
|
|
21000
|
+
var import_jsx_runtime112 = require("@emotion/react/jsx-runtime");
|
|
20939
21001
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
20940
21002
|
const itemsWithStatus = (0, import_react129.useMemo)(() => {
|
|
20941
21003
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -20949,8 +21011,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
20949
21011
|
return { ...item, status };
|
|
20950
21012
|
});
|
|
20951
21013
|
}, [items, inProgressId]);
|
|
20952
|
-
return /* @__PURE__ */ (0,
|
|
20953
|
-
return /* @__PURE__ */ (0,
|
|
21014
|
+
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
21015
|
+
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
20954
21016
|
ProgressListItem,
|
|
20955
21017
|
{
|
|
20956
21018
|
status,
|
|
@@ -21008,11 +21070,11 @@ var ProgressListItem = ({
|
|
|
21008
21070
|
};
|
|
21009
21071
|
return colorPerStatus[status];
|
|
21010
21072
|
}, [status, error, errorLevel]);
|
|
21011
|
-
return /* @__PURE__ */ (0,
|
|
21012
|
-
/* @__PURE__ */ (0,
|
|
21013
|
-
/* @__PURE__ */ (0,
|
|
21073
|
+
return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
21074
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
|
|
21075
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { children: [
|
|
21014
21076
|
children,
|
|
21015
|
-
/* @__PURE__ */ (0,
|
|
21077
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
21016
21078
|
] })
|
|
21017
21079
|
] });
|
|
21018
21080
|
};
|
|
@@ -21146,7 +21208,7 @@ var segmentedControlLabelContentStyles = import_react130.css`
|
|
|
21146
21208
|
var segmentedControlLabelTextStyles = import_react130.css``;
|
|
21147
21209
|
|
|
21148
21210
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
21149
|
-
var
|
|
21211
|
+
var import_jsx_runtime113 = require("@emotion/react/jsx-runtime");
|
|
21150
21212
|
var SegmentedControl = ({
|
|
21151
21213
|
name,
|
|
21152
21214
|
options,
|
|
@@ -21177,7 +21239,7 @@ var SegmentedControl = ({
|
|
|
21177
21239
|
const isIconOnly = (0, import_react132.useMemo)(() => {
|
|
21178
21240
|
return options.every((option) => option && option.icon && !option.label);
|
|
21179
21241
|
}, [options]);
|
|
21180
|
-
return /* @__PURE__ */ (0,
|
|
21242
|
+
return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
21181
21243
|
"div",
|
|
21182
21244
|
{
|
|
21183
21245
|
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
@@ -21188,11 +21250,11 @@ var SegmentedControl = ({
|
|
|
21188
21250
|
}
|
|
21189
21251
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
21190
21252
|
const isDisabled = disabled2 || option.disabled;
|
|
21191
|
-
return /* @__PURE__ */ (0,
|
|
21253
|
+
return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
21192
21254
|
Tooltip,
|
|
21193
21255
|
{
|
|
21194
21256
|
title: isDisabled || !option.tooltip ? "" : option.tooltip,
|
|
21195
|
-
children: /* @__PURE__ */ (0,
|
|
21257
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
|
|
21196
21258
|
"label",
|
|
21197
21259
|
{
|
|
21198
21260
|
css: [
|
|
@@ -21201,7 +21263,7 @@ var SegmentedControl = ({
|
|
|
21201
21263
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
21202
21264
|
],
|
|
21203
21265
|
children: [
|
|
21204
|
-
/* @__PURE__ */ (0,
|
|
21266
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
21205
21267
|
"input",
|
|
21206
21268
|
{
|
|
21207
21269
|
css: segmentedControlInputStyles,
|
|
@@ -21213,10 +21275,10 @@ var SegmentedControl = ({
|
|
|
21213
21275
|
disabled: isDisabled
|
|
21214
21276
|
}
|
|
21215
21277
|
),
|
|
21216
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */ (0,
|
|
21217
|
-
/* @__PURE__ */ (0,
|
|
21218
|
-
!option.icon ? null : /* @__PURE__ */ (0,
|
|
21219
|
-
!text ? null : /* @__PURE__ */ (0,
|
|
21278
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_CgCheck5.CgCheck, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
21279
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("span", { css: segmentedControlLabelContentStyles, children: [
|
|
21280
|
+
!option.icon ? null : /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Icon, { icon: option.icon, size: "1.5em", iconColor: "currentColor" }),
|
|
21281
|
+
!text ? null : /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
21220
21282
|
] })
|
|
21221
21283
|
]
|
|
21222
21284
|
}
|
|
@@ -21245,7 +21307,7 @@ var skeletonStyles = import_react133.css`
|
|
|
21245
21307
|
`;
|
|
21246
21308
|
|
|
21247
21309
|
// src/components/Skeleton/Skeleton.tsx
|
|
21248
|
-
var
|
|
21310
|
+
var import_jsx_runtime114 = require("@emotion/react/jsx-runtime");
|
|
21249
21311
|
var Skeleton = ({
|
|
21250
21312
|
width = "100%",
|
|
21251
21313
|
height = "1.25rem",
|
|
@@ -21253,7 +21315,7 @@ var Skeleton = ({
|
|
|
21253
21315
|
circle = false,
|
|
21254
21316
|
children,
|
|
21255
21317
|
...otherProps
|
|
21256
|
-
}) => /* @__PURE__ */ (0,
|
|
21318
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
21257
21319
|
"div",
|
|
21258
21320
|
{
|
|
21259
21321
|
css: [
|
|
@@ -21362,19 +21424,19 @@ var SwitchText = import_react134.css`
|
|
|
21362
21424
|
`;
|
|
21363
21425
|
|
|
21364
21426
|
// src/components/Switch/Switch.tsx
|
|
21365
|
-
var
|
|
21427
|
+
var import_jsx_runtime115 = require("@emotion/react/jsx-runtime");
|
|
21366
21428
|
var Switch = React23.forwardRef(
|
|
21367
21429
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
21368
21430
|
let additionalText = infoText;
|
|
21369
21431
|
if (infoText && toggleText) {
|
|
21370
21432
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
21371
21433
|
}
|
|
21372
|
-
return /* @__PURE__ */ (0,
|
|
21373
|
-
/* @__PURE__ */ (0,
|
|
21374
|
-
/* @__PURE__ */ (0,
|
|
21375
|
-
/* @__PURE__ */ (0,
|
|
21434
|
+
return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_jsx_runtime115.Fragment, { children: [
|
|
21435
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
21436
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
21437
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { css: SwitchInputLabel, children: label })
|
|
21376
21438
|
] }),
|
|
21377
|
-
additionalText ? /* @__PURE__ */ (0,
|
|
21439
|
+
additionalText ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { css: SwitchText, children: additionalText }) : null,
|
|
21378
21440
|
children
|
|
21379
21441
|
] });
|
|
21380
21442
|
}
|
|
@@ -21413,40 +21475,40 @@ var tableCellHead = import_react135.css`
|
|
|
21413
21475
|
`;
|
|
21414
21476
|
|
|
21415
21477
|
// src/components/Table/Table.tsx
|
|
21416
|
-
var
|
|
21478
|
+
var import_jsx_runtime116 = require("@emotion/react/jsx-runtime");
|
|
21417
21479
|
var Table = React24.forwardRef(
|
|
21418
21480
|
({ children, cellPadding, ...otherProps }, ref) => {
|
|
21419
|
-
return /* @__PURE__ */ (0,
|
|
21481
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("table", { ref, css: table({ cellPadding }), ...otherProps, children });
|
|
21420
21482
|
}
|
|
21421
21483
|
);
|
|
21422
21484
|
var TableHead = React24.forwardRef(
|
|
21423
21485
|
({ children, ...otherProps }, ref) => {
|
|
21424
|
-
return /* @__PURE__ */ (0,
|
|
21486
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
|
|
21425
21487
|
}
|
|
21426
21488
|
);
|
|
21427
21489
|
var TableBody = React24.forwardRef(
|
|
21428
21490
|
({ children, ...otherProps }, ref) => {
|
|
21429
|
-
return /* @__PURE__ */ (0,
|
|
21491
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("tbody", { ref, ...otherProps, children });
|
|
21430
21492
|
}
|
|
21431
21493
|
);
|
|
21432
21494
|
var TableFoot = React24.forwardRef(
|
|
21433
21495
|
({ children, ...otherProps }, ref) => {
|
|
21434
|
-
return /* @__PURE__ */ (0,
|
|
21496
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("tfoot", { ref, ...otherProps, children });
|
|
21435
21497
|
}
|
|
21436
21498
|
);
|
|
21437
21499
|
var TableRow = React24.forwardRef(
|
|
21438
21500
|
({ children, ...otherProps }, ref) => {
|
|
21439
|
-
return /* @__PURE__ */ (0,
|
|
21501
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
|
|
21440
21502
|
}
|
|
21441
21503
|
);
|
|
21442
21504
|
var TableCellHead = React24.forwardRef(
|
|
21443
21505
|
({ children, ...otherProps }, ref) => {
|
|
21444
|
-
return /* @__PURE__ */ (0,
|
|
21506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
21445
21507
|
}
|
|
21446
21508
|
);
|
|
21447
21509
|
var TableCellData = React24.forwardRef(
|
|
21448
21510
|
({ children, ...otherProps }, ref) => {
|
|
21449
|
-
return /* @__PURE__ */ (0,
|
|
21511
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("td", { ref, ...otherProps, children });
|
|
21450
21512
|
}
|
|
21451
21513
|
);
|
|
21452
21514
|
|
|
@@ -21482,7 +21544,7 @@ var tabButtonGroupStyles = import_react136.css`
|
|
|
21482
21544
|
`;
|
|
21483
21545
|
|
|
21484
21546
|
// src/components/Tabs/Tabs.tsx
|
|
21485
|
-
var
|
|
21547
|
+
var import_jsx_runtime117 = require("@emotion/react/jsx-runtime");
|
|
21486
21548
|
var useCurrentTab = () => {
|
|
21487
21549
|
const context = (0, import_react137.useTabStore)();
|
|
21488
21550
|
if (!context) {
|
|
@@ -21520,23 +21582,267 @@ var Tabs = ({
|
|
|
21520
21582
|
tab.setSelectedId(selected);
|
|
21521
21583
|
}
|
|
21522
21584
|
}, [selected, tab]);
|
|
21523
|
-
return /* @__PURE__ */ (0,
|
|
21585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_react137.TabProvider, { store: tab, setSelectedId: onTabSelect, children });
|
|
21524
21586
|
};
|
|
21525
21587
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
21526
|
-
return /* @__PURE__ */ (0,
|
|
21588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_react137.TabList, { ...props, css: tabButtonGroupStyles, children });
|
|
21527
21589
|
};
|
|
21528
21590
|
var TabButton = ({
|
|
21529
21591
|
children,
|
|
21530
21592
|
id,
|
|
21531
21593
|
...props
|
|
21532
21594
|
}) => {
|
|
21533
|
-
return /* @__PURE__ */ (0,
|
|
21595
|
+
return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_react137.Tab, { type: "button", id, ...props, css: tabButtonStyles, children });
|
|
21534
21596
|
};
|
|
21535
21597
|
var TabContent = ({
|
|
21536
21598
|
children,
|
|
21537
21599
|
...props
|
|
21538
21600
|
}) => {
|
|
21539
|
-
return /* @__PURE__ */ (0,
|
|
21601
|
+
return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_react137.TabPanel, { ...props, children });
|
|
21602
|
+
};
|
|
21603
|
+
|
|
21604
|
+
// src/components/Toast/Toast.tsx
|
|
21605
|
+
init_emotion_jsx_shim();
|
|
21606
|
+
var import_react_toastify = require("react-toastify");
|
|
21607
|
+
|
|
21608
|
+
// src/components/Toast/Toast.styles.ts
|
|
21609
|
+
init_emotion_jsx_shim();
|
|
21610
|
+
var import_react139 = require("@emotion/react");
|
|
21611
|
+
var toastContainerStyles = import_react139.css`
|
|
21612
|
+
${functionalColors}
|
|
21613
|
+
|
|
21614
|
+
--toastify-color-light: white;
|
|
21615
|
+
--toastify-color-info: var(--info-icon);
|
|
21616
|
+
--toastify-color-success: var(--success-icon);
|
|
21617
|
+
--toastify-color-warning: var(--caution-icon);
|
|
21618
|
+
--toastify-color-error: var(--danger-icon);
|
|
21619
|
+
--toastify-color-transparent: rgba(255, 255, 255, 0.7);
|
|
21620
|
+
--toastify-icon-color-info: var(--toastify-color-info);
|
|
21621
|
+
--toastify-icon-color-success: var(--toastify-color-success);
|
|
21622
|
+
--toastify-icon-color-warning: var(--toastify-color-warning);
|
|
21623
|
+
--toastify-icon-color-error: var(--toastify-color-error);
|
|
21624
|
+
--toastify-toast-width: 24rem;
|
|
21625
|
+
--toastify-toast-background: white;
|
|
21626
|
+
--toastify-toast-min-height: 4rem;
|
|
21627
|
+
--toastify-toast-max-height: 50rem;
|
|
21628
|
+
--toastify-z-index: 9999;
|
|
21629
|
+
--toastify-text-color-info: white;
|
|
21630
|
+
--toastify-text-color-success: white;
|
|
21631
|
+
--toastify-text-color-warning: white;
|
|
21632
|
+
--toastify-text-color-error: white;
|
|
21633
|
+
--toastify-spinner-color: var(--gray-600);
|
|
21634
|
+
--toastify-spinner-color-empty-area: var(--gray-200);
|
|
21635
|
+
--toastify-color-progress-light: var(--accent-light);
|
|
21636
|
+
--toastify-color-progress-info: var(--toastify-color-info);
|
|
21637
|
+
--toastify-color-progress-success: var(--toastify-color-success);
|
|
21638
|
+
--toastify-color-progress-warning: var(--toastify-color-warning);
|
|
21639
|
+
--toastify-color-progress-error: var(--toastify-color-error);
|
|
21640
|
+
|
|
21641
|
+
&.Toastify__toast-container {
|
|
21642
|
+
z-index: var(--toastify-z-index);
|
|
21643
|
+
transform: translate3d(0, 0, var(--toastify-z-index));
|
|
21644
|
+
position: fixed;
|
|
21645
|
+
padding: var(--spacing-xs);
|
|
21646
|
+
width: var(--toastify-toast-width);
|
|
21647
|
+
color: white;
|
|
21648
|
+
}
|
|
21649
|
+
&.Toastify__toast-container--bottom-right {
|
|
21650
|
+
bottom: var(--spacing-base);
|
|
21651
|
+
right: var(--spacing-base);
|
|
21652
|
+
}
|
|
21653
|
+
|
|
21654
|
+
@media only screen and (max-width: 480px) {
|
|
21655
|
+
&.Toastify__toast-container {
|
|
21656
|
+
width: 100vw;
|
|
21657
|
+
padding: 0;
|
|
21658
|
+
left: 0;
|
|
21659
|
+
margin: 0;
|
|
21660
|
+
}
|
|
21661
|
+
&.Toastify__toast-container--bottom-right {
|
|
21662
|
+
bottom: 0;
|
|
21663
|
+
transform: translateX(0);
|
|
21664
|
+
}
|
|
21665
|
+
}
|
|
21666
|
+
.Toastify__toast {
|
|
21667
|
+
position: relative;
|
|
21668
|
+
display: flex;
|
|
21669
|
+
justify-content: space-between;
|
|
21670
|
+
min-height: var(--toastify-toast-min-height);
|
|
21671
|
+
max-height: var(--toastify-toast-max-height);
|
|
21672
|
+
font-size: var(--fs-sm);
|
|
21673
|
+
margin-bottom: var(--spacing-base);
|
|
21674
|
+
padding: var(--spacing-sm);
|
|
21675
|
+
border-radius: var(--rounded-md);
|
|
21676
|
+
box-shadow: var(--elevation-200);
|
|
21677
|
+
overflow: hidden;
|
|
21678
|
+
cursor: default;
|
|
21679
|
+
/* webkit only issue #791 */
|
|
21680
|
+
z-index: 0;
|
|
21681
|
+
}
|
|
21682
|
+
.Toastify__toast--close-on-click {
|
|
21683
|
+
cursor: pointer;
|
|
21684
|
+
}
|
|
21685
|
+
.Toastify__toast-body {
|
|
21686
|
+
margin: auto 0;
|
|
21687
|
+
flex: 1 1 auto;
|
|
21688
|
+
padding: var(--spacing-sm);
|
|
21689
|
+
display: flex;
|
|
21690
|
+
align-items: center;
|
|
21691
|
+
}
|
|
21692
|
+
.Toastify__toast-body > div:last-child {
|
|
21693
|
+
word-break: break-word;
|
|
21694
|
+
flex: 1;
|
|
21695
|
+
}
|
|
21696
|
+
.Toastify__toast-icon {
|
|
21697
|
+
margin-inline-end: var(--spacing-base);
|
|
21698
|
+
width: 16px;
|
|
21699
|
+
flex-shrink: 0;
|
|
21700
|
+
display: flex;
|
|
21701
|
+
}
|
|
21702
|
+
|
|
21703
|
+
.Toastify--animate {
|
|
21704
|
+
animation-fill-mode: both;
|
|
21705
|
+
animation-duration: var(--duration-slow);
|
|
21706
|
+
}
|
|
21707
|
+
|
|
21708
|
+
.Toastify--animate-icon {
|
|
21709
|
+
animation-fill-mode: both;
|
|
21710
|
+
animation-duration: var(--duration-fast);
|
|
21711
|
+
}
|
|
21712
|
+
|
|
21713
|
+
@media only screen and (max-width: 480px) {
|
|
21714
|
+
.Toastify__toast {
|
|
21715
|
+
margin-bottom: 0;
|
|
21716
|
+
border-radius: 0;
|
|
21717
|
+
}
|
|
21718
|
+
}
|
|
21719
|
+
.Toastify__toast-theme--light {
|
|
21720
|
+
background: var(--toastify-color-light);
|
|
21721
|
+
color: var(--brand-secondary-1);
|
|
21722
|
+
}
|
|
21723
|
+
|
|
21724
|
+
.Toastify__progress-bar-theme--light {
|
|
21725
|
+
background: var(--toastify-color-progress-light);
|
|
21726
|
+
}
|
|
21727
|
+
.Toastify__progress-bar--info {
|
|
21728
|
+
background: var(--toastify-color-progress-info);
|
|
21729
|
+
}
|
|
21730
|
+
.Toastify__progress-bar--success {
|
|
21731
|
+
background: var(--toastify-color-progress-success);
|
|
21732
|
+
}
|
|
21733
|
+
.Toastify__progress-bar--warning {
|
|
21734
|
+
background: var(--toastify-color-progress-warning);
|
|
21735
|
+
}
|
|
21736
|
+
.Toastify__progress-bar--error {
|
|
21737
|
+
background: var(--toastify-color-progress-error);
|
|
21738
|
+
}
|
|
21739
|
+
|
|
21740
|
+
.Toastify__close-button {
|
|
21741
|
+
background: transparent;
|
|
21742
|
+
outline: none;
|
|
21743
|
+
border: none;
|
|
21744
|
+
padding: 0;
|
|
21745
|
+
cursor: pointer;
|
|
21746
|
+
opacity: 0.5;
|
|
21747
|
+
transition: var(--spacing-base) ease-in-out;
|
|
21748
|
+
align-self: flex-start;
|
|
21749
|
+
}
|
|
21750
|
+
.Toastify__close-button > svg {
|
|
21751
|
+
fill: currentColor;
|
|
21752
|
+
height: 16px;
|
|
21753
|
+
width: 14px;
|
|
21754
|
+
}
|
|
21755
|
+
.Toastify__close-button:hover,
|
|
21756
|
+
.Toastify__close-button:focus {
|
|
21757
|
+
opacity: 1;
|
|
21758
|
+
}
|
|
21759
|
+
|
|
21760
|
+
.Toastify__progress-bar {
|
|
21761
|
+
position: absolute;
|
|
21762
|
+
bottom: 0;
|
|
21763
|
+
left: 0;
|
|
21764
|
+
width: 100%;
|
|
21765
|
+
height: var(--spacing-2xs);
|
|
21766
|
+
z-index: var(--toastify-z-index);
|
|
21767
|
+
transform-origin: left;
|
|
21768
|
+
}
|
|
21769
|
+
.Toastify__progress-bar--animated {
|
|
21770
|
+
animation: Toastify__trackProgress linear 1 forwards;
|
|
21771
|
+
}
|
|
21772
|
+
.Toastify__progress-bar--controlled {
|
|
21773
|
+
transition: transform var(--duration-fast);
|
|
21774
|
+
}
|
|
21775
|
+
|
|
21776
|
+
.Toastify__spinner {
|
|
21777
|
+
width: 16px;
|
|
21778
|
+
height: 16px;
|
|
21779
|
+
border: 2px solid;
|
|
21780
|
+
border-radius: 100%;
|
|
21781
|
+
border-color: var(--toastify-spinner-color-empty-area);
|
|
21782
|
+
border-right-color: var(--toastify-spinner-color);
|
|
21783
|
+
animation: Toastify__spin var(--duration-slow) linear infinite;
|
|
21784
|
+
}
|
|
21785
|
+
|
|
21786
|
+
.Toastify__bounce-enter--bottom-right {
|
|
21787
|
+
animation-name: Toastify__slideInRight;
|
|
21788
|
+
}
|
|
21789
|
+
|
|
21790
|
+
.Toastify__bounce-exit--bottom-right {
|
|
21791
|
+
animation-name: Toastify__slideOutRight;
|
|
21792
|
+
}
|
|
21793
|
+
|
|
21794
|
+
@keyframes Toastify__slideInRight {
|
|
21795
|
+
from {
|
|
21796
|
+
transform: translate3d(110%, 0, 0);
|
|
21797
|
+
visibility: visible;
|
|
21798
|
+
}
|
|
21799
|
+
to {
|
|
21800
|
+
transform: translate3d(0, 0, 0);
|
|
21801
|
+
}
|
|
21802
|
+
}
|
|
21803
|
+
@keyframes Toastify__slideOutRight {
|
|
21804
|
+
from {
|
|
21805
|
+
transform: translate3d(0, 0, 0);
|
|
21806
|
+
}
|
|
21807
|
+
to {
|
|
21808
|
+
visibility: hidden;
|
|
21809
|
+
transform: translate3d(110%, 0, 0);
|
|
21810
|
+
}
|
|
21811
|
+
}
|
|
21812
|
+
|
|
21813
|
+
@keyframes Toastify__spin {
|
|
21814
|
+
from {
|
|
21815
|
+
transform: rotate(0deg);
|
|
21816
|
+
}
|
|
21817
|
+
to {
|
|
21818
|
+
transform: rotate(360deg);
|
|
21819
|
+
}
|
|
21820
|
+
}
|
|
21821
|
+
|
|
21822
|
+
@keyframes Toastify__trackProgress {
|
|
21823
|
+
0% {
|
|
21824
|
+
transform: scaleX(1);
|
|
21825
|
+
}
|
|
21826
|
+
100% {
|
|
21827
|
+
transform: scaleX(0);
|
|
21828
|
+
}
|
|
21829
|
+
}
|
|
21830
|
+
`;
|
|
21831
|
+
|
|
21832
|
+
// src/components/Toast/Toast.tsx
|
|
21833
|
+
var import_jsx_runtime118 = require("@emotion/react/jsx-runtime");
|
|
21834
|
+
var ToastContainer = ({ limit = 4 }) => {
|
|
21835
|
+
return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
21836
|
+
import_react_toastify.ToastContainer,
|
|
21837
|
+
{
|
|
21838
|
+
css: toastContainerStyles,
|
|
21839
|
+
autoClose: 1e4,
|
|
21840
|
+
limit,
|
|
21841
|
+
theme: "light",
|
|
21842
|
+
position: "bottom-right",
|
|
21843
|
+
closeOnClick: false
|
|
21844
|
+
}
|
|
21845
|
+
);
|
|
21540
21846
|
};
|
|
21541
21847
|
|
|
21542
21848
|
// src/components/Validation/StatusBullet.tsx
|
|
@@ -21544,8 +21850,8 @@ init_emotion_jsx_shim();
|
|
|
21544
21850
|
|
|
21545
21851
|
// src/components/Validation/StatusBullet.styles.ts
|
|
21546
21852
|
init_emotion_jsx_shim();
|
|
21547
|
-
var
|
|
21548
|
-
var StatusBulletContainer =
|
|
21853
|
+
var import_react140 = require("@emotion/react");
|
|
21854
|
+
var StatusBulletContainer = import_react140.css`
|
|
21549
21855
|
align-items: center;
|
|
21550
21856
|
align-self: center;
|
|
21551
21857
|
color: var(--gray-500);
|
|
@@ -21562,33 +21868,33 @@ var StatusBulletContainer = import_react139.css`
|
|
|
21562
21868
|
display: block;
|
|
21563
21869
|
}
|
|
21564
21870
|
`;
|
|
21565
|
-
var StatusBulletBase =
|
|
21871
|
+
var StatusBulletBase = import_react140.css`
|
|
21566
21872
|
font-size: var(--fs-sm);
|
|
21567
21873
|
&:before {
|
|
21568
21874
|
width: var(--fs-xs);
|
|
21569
21875
|
height: var(--fs-xs);
|
|
21570
21876
|
}
|
|
21571
21877
|
`;
|
|
21572
|
-
var StatusBulletSmall =
|
|
21878
|
+
var StatusBulletSmall = import_react140.css`
|
|
21573
21879
|
font-size: var(--fs-xs);
|
|
21574
21880
|
&:before {
|
|
21575
21881
|
width: var(--fs-xxs);
|
|
21576
21882
|
height: var(--fs-xxs);
|
|
21577
21883
|
}
|
|
21578
21884
|
`;
|
|
21579
|
-
var StatusDraft =
|
|
21885
|
+
var StatusDraft = import_react140.css`
|
|
21580
21886
|
&:before {
|
|
21581
21887
|
background: var(--white);
|
|
21582
21888
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
21583
21889
|
}
|
|
21584
21890
|
`;
|
|
21585
|
-
var StatusModified =
|
|
21891
|
+
var StatusModified = import_react140.css`
|
|
21586
21892
|
&:before {
|
|
21587
21893
|
background: linear-gradient(to right, var(--white) 50%, var(--primary-action-default) 50% 100%);
|
|
21588
21894
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
21589
21895
|
}
|
|
21590
21896
|
`;
|
|
21591
|
-
var StatusError =
|
|
21897
|
+
var StatusError = import_react140.css`
|
|
21592
21898
|
color: var(--error);
|
|
21593
21899
|
&:before {
|
|
21594
21900
|
/* TODO: replace this with an svg icon */
|
|
@@ -21601,24 +21907,24 @@ var StatusError = import_react139.css`
|
|
|
21601
21907
|
);
|
|
21602
21908
|
}
|
|
21603
21909
|
`;
|
|
21604
|
-
var StatusPublished =
|
|
21910
|
+
var StatusPublished = import_react140.css`
|
|
21605
21911
|
&:before {
|
|
21606
21912
|
background: var(--primary-action-default);
|
|
21607
21913
|
}
|
|
21608
21914
|
`;
|
|
21609
|
-
var StatusOrphan =
|
|
21915
|
+
var StatusOrphan = import_react140.css`
|
|
21610
21916
|
&:before {
|
|
21611
21917
|
background: var(--brand-secondary-5);
|
|
21612
21918
|
}
|
|
21613
21919
|
`;
|
|
21614
|
-
var StatusUnknown =
|
|
21920
|
+
var StatusUnknown = import_react140.css`
|
|
21615
21921
|
&:before {
|
|
21616
21922
|
background: var(--brand-secondary-1);
|
|
21617
21923
|
}
|
|
21618
21924
|
`;
|
|
21619
21925
|
|
|
21620
21926
|
// src/components/Validation/StatusBullet.tsx
|
|
21621
|
-
var
|
|
21927
|
+
var import_jsx_runtime119 = require("@emotion/react/jsx-runtime");
|
|
21622
21928
|
var StatusBullet = ({
|
|
21623
21929
|
status,
|
|
21624
21930
|
hideText = false,
|
|
@@ -21637,7 +21943,7 @@ var StatusBullet = ({
|
|
|
21637
21943
|
Unknown: StatusUnknown
|
|
21638
21944
|
};
|
|
21639
21945
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
21640
|
-
return /* @__PURE__ */ (0,
|
|
21946
|
+
return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
21641
21947
|
"span",
|
|
21642
21948
|
{
|
|
21643
21949
|
role: "status",
|
|
@@ -21787,6 +22093,7 @@ var StatusBullet = ({
|
|
|
21787
22093
|
Tile,
|
|
21788
22094
|
TileContainer,
|
|
21789
22095
|
TileText,
|
|
22096
|
+
ToastContainer,
|
|
21790
22097
|
Tooltip,
|
|
21791
22098
|
TwoColumnLayout,
|
|
21792
22099
|
UniformBadge,
|
|
@@ -21860,6 +22167,7 @@ var StatusBullet = ({
|
|
|
21860
22167
|
structurePanelIcon,
|
|
21861
22168
|
supports,
|
|
21862
22169
|
textInput,
|
|
22170
|
+
toast,
|
|
21863
22171
|
useBreakpoint,
|
|
21864
22172
|
useCloseCurrentDrawer,
|
|
21865
22173
|
useCurrentDrawer,
|