@uniformdev/design-system 18.23.1-alpha.34 → 18.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +429 -343
- package/dist/index.d.ts +48 -2
- package/dist/index.js +528 -439
- package/package.json +3 -3
package/dist/esm/index.js
CHANGED
|
@@ -9115,6 +9115,9 @@ var summaryIcon = css26`
|
|
|
9115
9115
|
transition: rotate var(--duration-fast) var(--timing-ease-out);
|
|
9116
9116
|
rotate: -90deg;
|
|
9117
9117
|
`;
|
|
9118
|
+
var summaryIconVisiblyHidden = css26`
|
|
9119
|
+
visibility: hidden;
|
|
9120
|
+
`;
|
|
9118
9121
|
|
|
9119
9122
|
// src/components/Details/Details.tsx
|
|
9120
9123
|
import { jsx as jsx29, jsxs as jsxs16 } from "@emotion/react/jsx-runtime";
|
|
@@ -9139,7 +9142,15 @@ var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props
|
|
|
9139
9142
|
}, [detailsRef]);
|
|
9140
9143
|
return /* @__PURE__ */ jsxs16("details", { "data-testid": "details", css: details, open, ref: detailsRef, ...props, children: [
|
|
9141
9144
|
/* @__PURE__ */ jsxs16("summary", { "data-testid": "summary", css: summary, children: [
|
|
9142
|
-
/* @__PURE__ */ jsx29(
|
|
9145
|
+
/* @__PURE__ */ jsx29(
|
|
9146
|
+
Icon,
|
|
9147
|
+
{
|
|
9148
|
+
css: [!children ? summaryIconVisiblyHidden : void 0, summaryIcon],
|
|
9149
|
+
icon: "chevron-down",
|
|
9150
|
+
iconColor: "currentColor",
|
|
9151
|
+
size: "1.25rem"
|
|
9152
|
+
}
|
|
9153
|
+
),
|
|
9143
9154
|
summary2
|
|
9144
9155
|
] }),
|
|
9145
9156
|
open ? /* @__PURE__ */ jsx29("div", { "data-testid": "details-content", css: detailsContent, children }) : null
|
|
@@ -9183,7 +9194,7 @@ var drawerRendererStyles = (position) => css27`
|
|
|
9183
9194
|
`;
|
|
9184
9195
|
var drawerInnerStyles = css27`
|
|
9185
9196
|
height: 100%;
|
|
9186
|
-
padding: var(--spacing-base);
|
|
9197
|
+
padding: 0 var(--spacing-base) var(--spacing-base);
|
|
9187
9198
|
overflow: auto;
|
|
9188
9199
|
${scrollbarStyles}
|
|
9189
9200
|
`;
|
|
@@ -9276,6 +9287,13 @@ var DrawerProvider = ({ children }) => {
|
|
|
9276
9287
|
var useDrawer = () => {
|
|
9277
9288
|
return useContext4(DrawerContext);
|
|
9278
9289
|
};
|
|
9290
|
+
var useCloseCurrentDrawer = () => {
|
|
9291
|
+
const context = useDrawer();
|
|
9292
|
+
if (context.drawersRegistry.length === 0) {
|
|
9293
|
+
return;
|
|
9294
|
+
}
|
|
9295
|
+
return context.drawersRegistry[context.drawersRegistry.length - 1].onRequestClose;
|
|
9296
|
+
};
|
|
9279
9297
|
function isEqualDrawer(a, b) {
|
|
9280
9298
|
return (a == null ? void 0 : a.id) === (b == null ? void 0 : b.id) && (a == null ? void 0 : a.stackId) === (b == null ? void 0 : b.stackId);
|
|
9281
9299
|
}
|
|
@@ -9715,32 +9733,34 @@ var Input = React13.forwardRef(
|
|
|
9715
9733
|
import Select from "react-select";
|
|
9716
9734
|
import { jsx as jsx40 } from "@emotion/react/jsx-runtime";
|
|
9717
9735
|
function InputComboBox(props) {
|
|
9736
|
+
var _a;
|
|
9718
9737
|
return /* @__PURE__ */ jsx40(
|
|
9719
9738
|
Select,
|
|
9720
9739
|
{
|
|
9721
9740
|
...props,
|
|
9741
|
+
isClearable: (_a = props.isClearable) != null ? _a : false,
|
|
9722
9742
|
classNamePrefix: "input-combobox",
|
|
9723
9743
|
styles: {
|
|
9724
9744
|
...props.styles,
|
|
9725
9745
|
singleValue: (base, sProps) => {
|
|
9726
|
-
var
|
|
9746
|
+
var _a2, _b;
|
|
9727
9747
|
return {
|
|
9728
9748
|
...base,
|
|
9729
9749
|
color: "#828282",
|
|
9730
|
-
...(_b = (
|
|
9750
|
+
...(_b = (_a2 = props.styles) == null ? void 0 : _a2.singleValue) == null ? void 0 : _b.call(_a2, base, sProps)
|
|
9731
9751
|
};
|
|
9732
9752
|
},
|
|
9733
9753
|
valueContainer: (base, sProps) => {
|
|
9734
|
-
var
|
|
9754
|
+
var _a2, _b;
|
|
9735
9755
|
return {
|
|
9736
9756
|
...base,
|
|
9737
9757
|
padding: "var(--spacing-base)",
|
|
9738
9758
|
gap: "2px",
|
|
9739
|
-
...(_b = (
|
|
9759
|
+
...(_b = (_a2 = props.styles) == null ? void 0 : _a2.valueContainer) == null ? void 0 : _b.call(_a2, base, sProps)
|
|
9740
9760
|
};
|
|
9741
9761
|
},
|
|
9742
9762
|
input: (base, sProps) => {
|
|
9743
|
-
var
|
|
9763
|
+
var _a2, _b;
|
|
9744
9764
|
return {
|
|
9745
9765
|
...base,
|
|
9746
9766
|
margin: "0",
|
|
@@ -9749,19 +9769,19 @@ function InputComboBox(props) {
|
|
|
9749
9769
|
"& > input": {
|
|
9750
9770
|
boxShadow: "none !important"
|
|
9751
9771
|
},
|
|
9752
|
-
...(_b = (
|
|
9772
|
+
...(_b = (_a2 = props.styles) == null ? void 0 : _a2.input) == null ? void 0 : _b.call(_a2, base, sProps)
|
|
9753
9773
|
};
|
|
9754
9774
|
},
|
|
9755
9775
|
menu: (base, state) => {
|
|
9756
|
-
var
|
|
9776
|
+
var _a2, _b;
|
|
9757
9777
|
return {
|
|
9758
9778
|
...base,
|
|
9759
9779
|
zIndex: "var(--z-20)",
|
|
9760
|
-
...(_b = (
|
|
9780
|
+
...(_b = (_a2 = props.styles) == null ? void 0 : _a2.menu) == null ? void 0 : _b.call(_a2, base, state)
|
|
9761
9781
|
};
|
|
9762
9782
|
},
|
|
9763
9783
|
control: (base, state) => {
|
|
9764
|
-
var
|
|
9784
|
+
var _a2, _b;
|
|
9765
9785
|
return {
|
|
9766
9786
|
...base,
|
|
9767
9787
|
className: "input-combobox-control",
|
|
@@ -9776,11 +9796,11 @@ function InputComboBox(props) {
|
|
|
9776
9796
|
"&:hover": {
|
|
9777
9797
|
boxShadow: "none"
|
|
9778
9798
|
},
|
|
9779
|
-
...(_b = (
|
|
9799
|
+
...(_b = (_a2 = props.styles) == null ? void 0 : _a2.control) == null ? void 0 : _b.call(_a2, base, state)
|
|
9780
9800
|
};
|
|
9781
9801
|
},
|
|
9782
9802
|
indicatorsContainer: (base, state) => {
|
|
9783
|
-
var
|
|
9803
|
+
var _a2, _b;
|
|
9784
9804
|
return {
|
|
9785
9805
|
...base,
|
|
9786
9806
|
backgroundImage: `url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath d='M6.34317 7.75732L4.92896 9.17154L12 16.2426L19.0711 9.17157L17.6569 7.75735L12 13.4142L6.34317 7.75732Z' fill='currentColor' /%3E%3C/svg%3E")`,
|
|
@@ -9791,23 +9811,23 @@ function InputComboBox(props) {
|
|
|
9791
9811
|
"& svg": {
|
|
9792
9812
|
display: "none"
|
|
9793
9813
|
},
|
|
9794
|
-
...(_b = (
|
|
9814
|
+
...(_b = (_a2 = props.styles) == null ? void 0 : _a2.indicatorsContainer) == null ? void 0 : _b.call(_a2, base, state)
|
|
9795
9815
|
};
|
|
9796
9816
|
},
|
|
9797
9817
|
indicatorSeparator: (base, state) => {
|
|
9798
|
-
var
|
|
9818
|
+
var _a2, _b;
|
|
9799
9819
|
return {
|
|
9800
9820
|
display: "none",
|
|
9801
|
-
...(_b = (
|
|
9821
|
+
...(_b = (_a2 = props.styles) == null ? void 0 : _a2.indicatorSeparator) == null ? void 0 : _b.call(_a2, base, state)
|
|
9802
9822
|
};
|
|
9803
9823
|
},
|
|
9804
9824
|
option: (base, state) => {
|
|
9805
|
-
var
|
|
9825
|
+
var _a2, _b;
|
|
9806
9826
|
return {
|
|
9807
9827
|
...base,
|
|
9808
9828
|
color: state.isDisabled ? "var(--gray-500)" : "var(--gray-700)",
|
|
9809
9829
|
backgroundColor: state.isDisabled ? "transparent" : state.isSelected ? "var(--gray-200)" : state.isFocused ? "var(--gray-100)" : "transparent",
|
|
9810
|
-
...(_b = (
|
|
9830
|
+
...(_b = (_a2 = props.styles) == null ? void 0 : _a2.option) == null ? void 0 : _b.call(_a2, base, state)
|
|
9811
9831
|
};
|
|
9812
9832
|
},
|
|
9813
9833
|
multiValue: (styles) => {
|
|
@@ -10165,40 +10185,94 @@ var Textarea = ({
|
|
|
10165
10185
|
] });
|
|
10166
10186
|
};
|
|
10167
10187
|
|
|
10168
|
-
// src/components/
|
|
10188
|
+
// src/components/Layout/styles/Container.styles.ts
|
|
10169
10189
|
import { css as css35 } from "@emotion/react";
|
|
10170
|
-
var
|
|
10190
|
+
var Container = ({ backgroundColor, border, rounded, padding, margin }) => css35`
|
|
10191
|
+
background: var(--${backgroundColor});
|
|
10192
|
+
${border ? "border: 1px solid var(--gray-300)" : void 0};
|
|
10193
|
+
${rounded ? `border-radius: var(--${rounded})` : void 0};
|
|
10194
|
+
${padding ? `padding: ${padding}` : void 0};
|
|
10195
|
+
${margin ? `margin: ${margin}` : void 0};
|
|
10196
|
+
`;
|
|
10197
|
+
|
|
10198
|
+
// src/components/Layout/Container.tsx
|
|
10199
|
+
import { jsx as jsx47 } from "@emotion/react/jsx-runtime";
|
|
10200
|
+
var Container2 = ({
|
|
10201
|
+
tag = "div",
|
|
10202
|
+
backgroundColor = "white",
|
|
10203
|
+
border,
|
|
10204
|
+
rounded,
|
|
10205
|
+
padding,
|
|
10206
|
+
margin,
|
|
10207
|
+
children,
|
|
10208
|
+
...props
|
|
10209
|
+
}) => {
|
|
10210
|
+
const Tag = tag;
|
|
10211
|
+
return /* @__PURE__ */ jsx47(
|
|
10212
|
+
Tag,
|
|
10213
|
+
{
|
|
10214
|
+
css: Container({
|
|
10215
|
+
backgroundColor,
|
|
10216
|
+
border,
|
|
10217
|
+
rounded,
|
|
10218
|
+
padding,
|
|
10219
|
+
margin
|
|
10220
|
+
}),
|
|
10221
|
+
...props,
|
|
10222
|
+
children
|
|
10223
|
+
}
|
|
10224
|
+
);
|
|
10225
|
+
};
|
|
10226
|
+
|
|
10227
|
+
// src/components/Layout/styles/VerticalRhythm.styles.ts
|
|
10228
|
+
import { css as css36 } from "@emotion/react";
|
|
10229
|
+
var VerticalRhythmContainer = (size) => css36`
|
|
10230
|
+
display: flex;
|
|
10231
|
+
flex-direction: column;
|
|
10232
|
+
gap: var(--spacing-${size});
|
|
10233
|
+
`;
|
|
10234
|
+
|
|
10235
|
+
// src/components/Layout/VerticalRhythm.tsx
|
|
10236
|
+
import { jsx as jsx48 } from "@emotion/react/jsx-runtime";
|
|
10237
|
+
var VerticalRhythm = ({ tag = "div", gap = "base", children, ...props }) => {
|
|
10238
|
+
const Tag = tag;
|
|
10239
|
+
return /* @__PURE__ */ jsx48(Tag, { css: VerticalRhythmContainer(gap), ...props, children });
|
|
10240
|
+
};
|
|
10241
|
+
|
|
10242
|
+
// src/components/LimitsBar/LimitsBar.styles.ts
|
|
10243
|
+
import { css as css37 } from "@emotion/react";
|
|
10244
|
+
var LimitsBarContainer = css37`
|
|
10171
10245
|
margin-block: var(--spacing-sm);
|
|
10172
10246
|
`;
|
|
10173
|
-
var LimitsBarProgressBar =
|
|
10247
|
+
var LimitsBarProgressBar = css37`
|
|
10174
10248
|
background: var(--gray-100);
|
|
10175
10249
|
margin-top: var(--spacing-sm);
|
|
10176
10250
|
position: relative;
|
|
10177
10251
|
overflow: hidden;
|
|
10178
10252
|
height: 0.25rem;
|
|
10179
10253
|
`;
|
|
10180
|
-
var LimitsBarProgressBarLine =
|
|
10254
|
+
var LimitsBarProgressBarLine = css37`
|
|
10181
10255
|
position: absolute;
|
|
10182
10256
|
inset: 0;
|
|
10183
10257
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
10184
10258
|
`;
|
|
10185
|
-
var LimitsBarLabelContainer =
|
|
10259
|
+
var LimitsBarLabelContainer = css37`
|
|
10186
10260
|
display: flex;
|
|
10187
10261
|
justify-content: space-between;
|
|
10188
10262
|
font-weight: var(--fw-bold);
|
|
10189
10263
|
`;
|
|
10190
|
-
var LimitsBarLabel =
|
|
10264
|
+
var LimitsBarLabel = css37`
|
|
10191
10265
|
font-size: var(--fs-baase);
|
|
10192
10266
|
`;
|
|
10193
|
-
var LimitsBarBgColor = (statusColor) =>
|
|
10267
|
+
var LimitsBarBgColor = (statusColor) => css37`
|
|
10194
10268
|
background: ${statusColor};
|
|
10195
10269
|
`;
|
|
10196
|
-
var LimitsBarTextColor = (statusColor) =>
|
|
10270
|
+
var LimitsBarTextColor = (statusColor) => css37`
|
|
10197
10271
|
color: ${statusColor};
|
|
10198
10272
|
`;
|
|
10199
10273
|
|
|
10200
10274
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
10201
|
-
import { jsx as
|
|
10275
|
+
import { jsx as jsx49, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
|
|
10202
10276
|
var LimitsBar = ({ current, max, label }) => {
|
|
10203
10277
|
const maxPercentage = 100;
|
|
10204
10278
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -10211,14 +10285,14 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
10211
10285
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
10212
10286
|
return /* @__PURE__ */ jsxs29("div", { css: LimitsBarContainer, children: [
|
|
10213
10287
|
/* @__PURE__ */ jsxs29("div", { css: LimitsBarLabelContainer, children: [
|
|
10214
|
-
/* @__PURE__ */
|
|
10288
|
+
/* @__PURE__ */ jsx49("span", { css: LimitsBarLabel, children: label }),
|
|
10215
10289
|
/* @__PURE__ */ jsxs29("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
10216
10290
|
current,
|
|
10217
10291
|
" of ",
|
|
10218
10292
|
max
|
|
10219
10293
|
] })
|
|
10220
10294
|
] }),
|
|
10221
|
-
/* @__PURE__ */
|
|
10295
|
+
/* @__PURE__ */ jsx49(
|
|
10222
10296
|
"div",
|
|
10223
10297
|
{
|
|
10224
10298
|
role: "progressbar",
|
|
@@ -10227,7 +10301,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
10227
10301
|
"aria-valuemax": max,
|
|
10228
10302
|
"aria-valuetext": `${current} of ${max}`,
|
|
10229
10303
|
css: LimitsBarProgressBar,
|
|
10230
|
-
children: /* @__PURE__ */
|
|
10304
|
+
children: /* @__PURE__ */ jsx49(
|
|
10231
10305
|
"span",
|
|
10232
10306
|
{
|
|
10233
10307
|
role: "presentation",
|
|
@@ -10243,8 +10317,8 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
10243
10317
|
};
|
|
10244
10318
|
|
|
10245
10319
|
// src/components/LinkList/LinkList.styles.ts
|
|
10246
|
-
import { css as
|
|
10247
|
-
var LinkListContainer =
|
|
10320
|
+
import { css as css38 } from "@emotion/react";
|
|
10321
|
+
var LinkListContainer = css38`
|
|
10248
10322
|
padding: var(--spacing-md) var(--spacing-lg) var(--spacing-2xl);
|
|
10249
10323
|
${mq("sm")} {
|
|
10250
10324
|
grid-column: last-col / span 1;
|
|
@@ -10253,23 +10327,23 @@ var LinkListContainer = css36`
|
|
|
10253
10327
|
`;
|
|
10254
10328
|
|
|
10255
10329
|
// src/components/LinkList/LinkList.tsx
|
|
10256
|
-
import { jsx as
|
|
10330
|
+
import { jsx as jsx50, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
|
|
10257
10331
|
var LinkList = ({ title, children, ...props }) => {
|
|
10258
10332
|
return /* @__PURE__ */ jsxs30("div", { css: LinkListContainer, ...props, children: [
|
|
10259
|
-
/* @__PURE__ */
|
|
10333
|
+
/* @__PURE__ */ jsx50(Heading, { level: 3, children: title }),
|
|
10260
10334
|
children
|
|
10261
10335
|
] });
|
|
10262
10336
|
};
|
|
10263
10337
|
|
|
10264
10338
|
// src/components/List/ScrollableList.tsx
|
|
10265
|
-
import { css as
|
|
10339
|
+
import { css as css40 } from "@emotion/react";
|
|
10266
10340
|
|
|
10267
10341
|
// src/components/List/styles/ScrollableList.styles.ts
|
|
10268
|
-
import { css as
|
|
10269
|
-
var ScrollableListContainer =
|
|
10342
|
+
import { css as css39 } from "@emotion/react";
|
|
10343
|
+
var ScrollableListContainer = css39`
|
|
10270
10344
|
position: relative;
|
|
10271
10345
|
`;
|
|
10272
|
-
var ScrollableListInner =
|
|
10346
|
+
var ScrollableListInner = css39`
|
|
10273
10347
|
background: var(--gray-50);
|
|
10274
10348
|
border-top: 1px solid var(--gray-200);
|
|
10275
10349
|
border-bottom: 1px solid var(--gray-200);
|
|
@@ -10287,19 +10361,19 @@ var ScrollableListInner = css37`
|
|
|
10287
10361
|
`;
|
|
10288
10362
|
|
|
10289
10363
|
// src/components/List/ScrollableList.tsx
|
|
10290
|
-
import { jsx as
|
|
10364
|
+
import { jsx as jsx51, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
|
|
10291
10365
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
10292
10366
|
return /* @__PURE__ */ jsxs31("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
10293
|
-
label ? /* @__PURE__ */
|
|
10367
|
+
label ? /* @__PURE__ */ jsx51(
|
|
10294
10368
|
"span",
|
|
10295
10369
|
{
|
|
10296
|
-
css:
|
|
10370
|
+
css: css40`
|
|
10297
10371
|
${labelText}
|
|
10298
10372
|
`,
|
|
10299
10373
|
children: label
|
|
10300
10374
|
}
|
|
10301
10375
|
) : null,
|
|
10302
|
-
/* @__PURE__ */
|
|
10376
|
+
/* @__PURE__ */ jsx51("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
10303
10377
|
] });
|
|
10304
10378
|
};
|
|
10305
10379
|
|
|
@@ -10307,8 +10381,8 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
10307
10381
|
import { CgCheck } from "react-icons/cg";
|
|
10308
10382
|
|
|
10309
10383
|
// src/components/List/styles/ScrollableListItem.styles.ts
|
|
10310
|
-
import { css as
|
|
10311
|
-
var ScrollableListItemContainer =
|
|
10384
|
+
import { css as css41 } from "@emotion/react";
|
|
10385
|
+
var ScrollableListItemContainer = css41`
|
|
10312
10386
|
align-items: center;
|
|
10313
10387
|
background: var(--white);
|
|
10314
10388
|
border-radius: var(--rounded-base);
|
|
@@ -10318,10 +10392,10 @@ var ScrollableListItemContainer = css39`
|
|
|
10318
10392
|
min-height: 52px;
|
|
10319
10393
|
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
10320
10394
|
`;
|
|
10321
|
-
var ScrollableListItemActive =
|
|
10395
|
+
var ScrollableListItemActive = css41`
|
|
10322
10396
|
border-color: var(--brand-secondary-3);
|
|
10323
10397
|
`;
|
|
10324
|
-
var ScrollableListItemBtn =
|
|
10398
|
+
var ScrollableListItemBtn = css41`
|
|
10325
10399
|
align-items: center;
|
|
10326
10400
|
border: none;
|
|
10327
10401
|
background: transparent;
|
|
@@ -10336,26 +10410,26 @@ var ScrollableListItemBtn = css39`
|
|
|
10336
10410
|
outline: none;
|
|
10337
10411
|
}
|
|
10338
10412
|
`;
|
|
10339
|
-
var ScrollableListInputLabel =
|
|
10413
|
+
var ScrollableListInputLabel = css41`
|
|
10340
10414
|
align-items: center;
|
|
10341
10415
|
display: flex;
|
|
10342
10416
|
padding: var(--spacing-xs) var(--spacing-base) var(--spacing-xs);
|
|
10343
10417
|
flex-grow: 1;
|
|
10344
10418
|
`;
|
|
10345
|
-
var ScrollableListInputText =
|
|
10419
|
+
var ScrollableListInputText = css41`
|
|
10346
10420
|
align-items: center;
|
|
10347
10421
|
display: flex;
|
|
10348
10422
|
gap: var(--spacing-sm);
|
|
10349
10423
|
font-weight: var(--fw-bold);
|
|
10350
10424
|
flex-grow: 1;
|
|
10351
10425
|
`;
|
|
10352
|
-
var ScrollableListHiddenInput =
|
|
10426
|
+
var ScrollableListHiddenInput = css41`
|
|
10353
10427
|
position: absolute;
|
|
10354
10428
|
height: 0;
|
|
10355
10429
|
width: 0;
|
|
10356
10430
|
opacity: 0;
|
|
10357
10431
|
`;
|
|
10358
|
-
var ScrollableListIcon =
|
|
10432
|
+
var ScrollableListIcon = css41`
|
|
10359
10433
|
border-radius: var(--rounded-full);
|
|
10360
10434
|
background: var(--brand-secondary-3);
|
|
10361
10435
|
color: var(--white);
|
|
@@ -10364,7 +10438,7 @@ var ScrollableListIcon = css39`
|
|
|
10364
10438
|
`;
|
|
10365
10439
|
|
|
10366
10440
|
// src/components/List/ScrollableListInputItem.tsx
|
|
10367
|
-
import { jsx as
|
|
10441
|
+
import { jsx as jsx52, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
|
|
10368
10442
|
var ScrollableListInputItem = ({
|
|
10369
10443
|
label,
|
|
10370
10444
|
icon,
|
|
@@ -10372,23 +10446,23 @@ var ScrollableListInputItem = ({
|
|
|
10372
10446
|
children,
|
|
10373
10447
|
labelTestId
|
|
10374
10448
|
}) => {
|
|
10375
|
-
return /* @__PURE__ */
|
|
10449
|
+
return /* @__PURE__ */ jsx52("div", { css: [ScrollableListItemContainer, active ? ScrollableListItemActive : void 0], children: /* @__PURE__ */ jsxs32("label", { "data-test-id": labelTestId, css: ScrollableListInputLabel, children: [
|
|
10376
10450
|
/* @__PURE__ */ jsxs32("span", { css: ScrollableListInputText, children: [
|
|
10377
10451
|
icon,
|
|
10378
10452
|
label
|
|
10379
10453
|
] }),
|
|
10380
|
-
/* @__PURE__ */
|
|
10381
|
-
active ? /* @__PURE__ */
|
|
10454
|
+
/* @__PURE__ */ jsx52("div", { css: ScrollableListHiddenInput, children }),
|
|
10455
|
+
active ? /* @__PURE__ */ jsx52(Icon, { icon: CgCheck, iconColor: "currentColor", css: ScrollableListIcon, size: 24 }) : null
|
|
10382
10456
|
] }) });
|
|
10383
10457
|
};
|
|
10384
10458
|
|
|
10385
10459
|
// src/components/List/ScrollableListItem.tsx
|
|
10386
|
-
import { css as
|
|
10387
|
-
import { jsx as
|
|
10460
|
+
import { css as css42 } from "@emotion/react";
|
|
10461
|
+
import { jsx as jsx53, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
|
|
10388
10462
|
var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
10389
|
-
return /* @__PURE__ */
|
|
10390
|
-
/* @__PURE__ */
|
|
10391
|
-
/* @__PURE__ */
|
|
10463
|
+
return /* @__PURE__ */ jsx53("div", { css: [ScrollableListItemContainer, active ? ScrollableListItemActive : void 0], children: /* @__PURE__ */ jsxs33("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
10464
|
+
/* @__PURE__ */ jsx53("span", { children: buttonText }),
|
|
10465
|
+
/* @__PURE__ */ jsx53(
|
|
10392
10466
|
"svg",
|
|
10393
10467
|
{
|
|
10394
10468
|
width: "24",
|
|
@@ -10397,14 +10471,14 @@ var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
|
10397
10471
|
fill: "currentColor",
|
|
10398
10472
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10399
10473
|
"aria-hidden": !active,
|
|
10400
|
-
css:
|
|
10474
|
+
css: css42`
|
|
10401
10475
|
color: var(--brand-secondary-3);
|
|
10402
10476
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
10403
|
-
${active ?
|
|
10477
|
+
${active ? css42`
|
|
10404
10478
|
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
10405
10479
|
` : "opacity: 0;"}
|
|
10406
10480
|
`,
|
|
10407
|
-
children: /* @__PURE__ */
|
|
10481
|
+
children: /* @__PURE__ */ jsx53(
|
|
10408
10482
|
"path",
|
|
10409
10483
|
{
|
|
10410
10484
|
fillRule: "evenodd",
|
|
@@ -10418,7 +10492,7 @@ var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
|
10418
10492
|
};
|
|
10419
10493
|
|
|
10420
10494
|
// src/components/LoadingIndicator/LoadingIndicator.styles.ts
|
|
10421
|
-
import { css as
|
|
10495
|
+
import { css as css43, keyframes as keyframes3 } from "@emotion/react";
|
|
10422
10496
|
var bounceFade = keyframes3`
|
|
10423
10497
|
0%, 100% {
|
|
10424
10498
|
opacity: 1.0;
|
|
@@ -10436,11 +10510,11 @@ var bounceFade = keyframes3`
|
|
|
10436
10510
|
transform: translateY(-5px);
|
|
10437
10511
|
}
|
|
10438
10512
|
`;
|
|
10439
|
-
var loader =
|
|
10513
|
+
var loader = css43`
|
|
10440
10514
|
display: inline-flex;
|
|
10441
10515
|
justify-content: center;
|
|
10442
10516
|
`;
|
|
10443
|
-
var loadingDot =
|
|
10517
|
+
var loadingDot = css43`
|
|
10444
10518
|
background-color: var(--gray-700);
|
|
10445
10519
|
display: block;
|
|
10446
10520
|
border-radius: var(--rounded-full);
|
|
@@ -10464,51 +10538,51 @@ var loadingDot = css41`
|
|
|
10464
10538
|
`;
|
|
10465
10539
|
|
|
10466
10540
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
10467
|
-
import { jsx as
|
|
10541
|
+
import { jsx as jsx54, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
|
|
10468
10542
|
var LoadingIndicator = () => {
|
|
10469
10543
|
return /* @__PURE__ */ jsxs34("div", { css: loader, role: "alert", "data-test-id": "loading-indicator", children: [
|
|
10470
|
-
/* @__PURE__ */
|
|
10471
|
-
/* @__PURE__ */
|
|
10472
|
-
/* @__PURE__ */
|
|
10544
|
+
/* @__PURE__ */ jsx54("span", { css: loadingDot }),
|
|
10545
|
+
/* @__PURE__ */ jsx54("span", { css: loadingDot }),
|
|
10546
|
+
/* @__PURE__ */ jsx54("span", { css: loadingDot })
|
|
10473
10547
|
] });
|
|
10474
10548
|
};
|
|
10475
10549
|
|
|
10476
10550
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
10477
|
-
import { css as
|
|
10551
|
+
import { css as css45 } from "@emotion/react";
|
|
10478
10552
|
|
|
10479
10553
|
// src/components/LoadingOverlay/LoadingOverlay.styles.ts
|
|
10480
|
-
import { css as
|
|
10481
|
-
var loadingOverlayContainer =
|
|
10554
|
+
import { css as css44 } from "@emotion/react";
|
|
10555
|
+
var loadingOverlayContainer = css44`
|
|
10482
10556
|
align-items: center;
|
|
10483
10557
|
position: absolute;
|
|
10484
10558
|
inset: 0;
|
|
10485
10559
|
overflow: hidden;
|
|
10486
10560
|
justify-content: center;
|
|
10487
10561
|
`;
|
|
10488
|
-
var loadingOverlayVisible =
|
|
10562
|
+
var loadingOverlayVisible = css44`
|
|
10489
10563
|
display: flex;
|
|
10490
10564
|
`;
|
|
10491
|
-
var loadingOverlayHidden =
|
|
10565
|
+
var loadingOverlayHidden = css44`
|
|
10492
10566
|
display: none;
|
|
10493
10567
|
`;
|
|
10494
|
-
var loadingOverlayBackground = (bgColor) =>
|
|
10568
|
+
var loadingOverlayBackground = (bgColor) => css44`
|
|
10495
10569
|
background: ${bgColor};
|
|
10496
10570
|
opacity: var(--opacity-75);
|
|
10497
10571
|
position: absolute;
|
|
10498
10572
|
inset: 0 0;
|
|
10499
10573
|
`;
|
|
10500
|
-
var loadingOverlayBody =
|
|
10574
|
+
var loadingOverlayBody = css44`
|
|
10501
10575
|
align-items: center;
|
|
10502
10576
|
display: flex;
|
|
10503
10577
|
flex-direction: column;
|
|
10504
10578
|
`;
|
|
10505
|
-
var loadingOverlayMessage =
|
|
10579
|
+
var loadingOverlayMessage = css44`
|
|
10506
10580
|
color: var(--gray-600);
|
|
10507
10581
|
margin: var(--spacing-base) 0 0;
|
|
10508
10582
|
`;
|
|
10509
10583
|
|
|
10510
10584
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
10511
|
-
import { jsx as
|
|
10585
|
+
import { jsx as jsx55, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
10512
10586
|
var LoadingOverlay = ({
|
|
10513
10587
|
isActive,
|
|
10514
10588
|
statusMessage,
|
|
@@ -10523,16 +10597,16 @@ var LoadingOverlay = ({
|
|
|
10523
10597
|
css: [loadingOverlayContainer, { zIndex }, isActive ? loadingOverlayVisible : loadingOverlayHidden],
|
|
10524
10598
|
"aria-hidden": !isActive,
|
|
10525
10599
|
children: [
|
|
10526
|
-
/* @__PURE__ */
|
|
10527
|
-
/* @__PURE__ */
|
|
10600
|
+
/* @__PURE__ */ jsx55("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
10601
|
+
/* @__PURE__ */ jsx55(
|
|
10528
10602
|
"div",
|
|
10529
10603
|
{
|
|
10530
|
-
css:
|
|
10604
|
+
css: css45`
|
|
10531
10605
|
position: relative;
|
|
10532
10606
|
`,
|
|
10533
10607
|
children: /* @__PURE__ */ jsxs35("div", { css: loadingOverlayBody, children: [
|
|
10534
|
-
/* @__PURE__ */
|
|
10535
|
-
statusMessage ? /* @__PURE__ */
|
|
10608
|
+
/* @__PURE__ */ jsx55(LoadingIcon, { height: size, width: size }),
|
|
10609
|
+
statusMessage ? /* @__PURE__ */ jsx55("div", { css: loadingOverlayMessage, children: statusMessage }) : null
|
|
10536
10610
|
] })
|
|
10537
10611
|
}
|
|
10538
10612
|
)
|
|
@@ -10541,7 +10615,7 @@ var LoadingOverlay = ({
|
|
|
10541
10615
|
);
|
|
10542
10616
|
};
|
|
10543
10617
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
10544
|
-
return /* @__PURE__ */
|
|
10618
|
+
return /* @__PURE__ */ jsx55(
|
|
10545
10619
|
"svg",
|
|
10546
10620
|
{
|
|
10547
10621
|
"data-testid": "svg",
|
|
@@ -10552,9 +10626,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
10552
10626
|
stroke: "currentColor",
|
|
10553
10627
|
...props,
|
|
10554
10628
|
"data-test-id": "loading-icon",
|
|
10555
|
-
children: /* @__PURE__ */
|
|
10556
|
-
/* @__PURE__ */
|
|
10557
|
-
/* @__PURE__ */
|
|
10629
|
+
children: /* @__PURE__ */ jsx55("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs35("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
10630
|
+
/* @__PURE__ */ jsx55("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
10631
|
+
/* @__PURE__ */ jsx55("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ jsx55(
|
|
10558
10632
|
"animateTransform",
|
|
10559
10633
|
{
|
|
10560
10634
|
attributeName: "transform",
|
|
@@ -10571,12 +10645,12 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
10571
10645
|
};
|
|
10572
10646
|
|
|
10573
10647
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
10574
|
-
import { css as
|
|
10648
|
+
import { css as css47 } from "@emotion/react";
|
|
10575
10649
|
import { CgAdd as CgAdd2, CgChevronRight as CgChevronRight2 } from "react-icons/cg";
|
|
10576
10650
|
|
|
10577
10651
|
// src/components/Tiles/styles/IntegrationTile.styles.ts
|
|
10578
|
-
import { css as
|
|
10579
|
-
var IntegrationTileContainer =
|
|
10652
|
+
import { css as css46 } from "@emotion/react";
|
|
10653
|
+
var IntegrationTileContainer = css46`
|
|
10580
10654
|
align-items: center;
|
|
10581
10655
|
box-sizing: border-box;
|
|
10582
10656
|
border-radius: var(--rounded-base);
|
|
@@ -10607,22 +10681,22 @@ var IntegrationTileContainer = css44`
|
|
|
10607
10681
|
}
|
|
10608
10682
|
}
|
|
10609
10683
|
`;
|
|
10610
|
-
var IntegrationTileBtnDashedBorder =
|
|
10684
|
+
var IntegrationTileBtnDashedBorder = css46`
|
|
10611
10685
|
border: 1px dashed var(--brand-secondary-1);
|
|
10612
10686
|
`;
|
|
10613
|
-
var IntegrationTileTitle =
|
|
10687
|
+
var IntegrationTileTitle = css46`
|
|
10614
10688
|
display: block;
|
|
10615
10689
|
font-weight: var(--fw-bold);
|
|
10616
10690
|
margin: 0 0 var(--spacing-base);
|
|
10617
10691
|
max-width: 13rem;
|
|
10618
10692
|
`;
|
|
10619
|
-
var IntegrationTitleLogo =
|
|
10693
|
+
var IntegrationTitleLogo = css46`
|
|
10620
10694
|
display: block;
|
|
10621
10695
|
max-width: 10rem;
|
|
10622
10696
|
max-height: 4rem;
|
|
10623
10697
|
margin: 0 auto;
|
|
10624
10698
|
`;
|
|
10625
|
-
var IntegrationTileName =
|
|
10699
|
+
var IntegrationTileName = css46`
|
|
10626
10700
|
color: var(--gray-500);
|
|
10627
10701
|
display: -webkit-box;
|
|
10628
10702
|
-webkit-line-clamp: 1;
|
|
@@ -10635,7 +10709,7 @@ var IntegrationTileName = css44`
|
|
|
10635
10709
|
position: absolute;
|
|
10636
10710
|
bottom: calc(var(--spacing-base) * 3.8);
|
|
10637
10711
|
`;
|
|
10638
|
-
var IntegrationAddedText =
|
|
10712
|
+
var IntegrationAddedText = css46`
|
|
10639
10713
|
align-items: center;
|
|
10640
10714
|
background: var(--brand-secondary-3);
|
|
10641
10715
|
border-radius: 0 var(--rounded-md) 0 var(--rounded-md);
|
|
@@ -10650,7 +10724,7 @@ var IntegrationAddedText = css44`
|
|
|
10650
10724
|
top: 0;
|
|
10651
10725
|
right: 0;
|
|
10652
10726
|
`;
|
|
10653
|
-
var IntegrationCustomBadgeText = (theme) =>
|
|
10727
|
+
var IntegrationCustomBadgeText = (theme) => css46`
|
|
10654
10728
|
align-items: center;
|
|
10655
10729
|
border-radius: var(--rounded-sm) 0 var(--rounded-sm) 0;
|
|
10656
10730
|
background: ${theme === "gray" ? "var(--brand-secondary-2)" : "var(--brand-secondary-1)"};
|
|
@@ -10664,26 +10738,26 @@ var IntegrationCustomBadgeText = (theme) => css44`
|
|
|
10664
10738
|
top: 0;
|
|
10665
10739
|
left: 0;
|
|
10666
10740
|
`;
|
|
10667
|
-
var IntegrationAuthorBadgeIcon =
|
|
10741
|
+
var IntegrationAuthorBadgeIcon = css46`
|
|
10668
10742
|
position: absolute;
|
|
10669
10743
|
bottom: var(--spacing-sm);
|
|
10670
10744
|
right: var(--spacing-xs);
|
|
10671
10745
|
max-height: 1rem;
|
|
10672
10746
|
`;
|
|
10673
|
-
var IntegrationTitleFakeButton =
|
|
10747
|
+
var IntegrationTitleFakeButton = css46`
|
|
10674
10748
|
font-size: var(--fs-xs);
|
|
10675
10749
|
gap: var(--spacing-sm);
|
|
10676
10750
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
10677
10751
|
text-transform: uppercase;
|
|
10678
10752
|
`;
|
|
10679
|
-
var IntegrationTileFloatingButton =
|
|
10753
|
+
var IntegrationTileFloatingButton = css46`
|
|
10680
10754
|
position: absolute;
|
|
10681
10755
|
bottom: var(--spacing-base);
|
|
10682
10756
|
gap: var(--spacing-sm);
|
|
10683
10757
|
font-size: var(--fs-xs);
|
|
10684
10758
|
overflow: hidden;
|
|
10685
10759
|
`;
|
|
10686
|
-
var IntegrationTileFloatingButtonMessage = (clicked) =>
|
|
10760
|
+
var IntegrationTileFloatingButtonMessage = (clicked) => css46`
|
|
10687
10761
|
strong,
|
|
10688
10762
|
span:first-of-type {
|
|
10689
10763
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
@@ -10704,7 +10778,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => css44`
|
|
|
10704
10778
|
`;
|
|
10705
10779
|
|
|
10706
10780
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
10707
|
-
import { jsx as
|
|
10781
|
+
import { jsx as jsx56, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
10708
10782
|
var CreateTeamIntegrationTile = ({
|
|
10709
10783
|
title = "Create a custom integration for your team",
|
|
10710
10784
|
buttonText = "Add Integration",
|
|
@@ -10713,7 +10787,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
10713
10787
|
...props
|
|
10714
10788
|
}) => {
|
|
10715
10789
|
return /* @__PURE__ */ jsxs36("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
10716
|
-
/* @__PURE__ */
|
|
10790
|
+
/* @__PURE__ */ jsx56("span", { css: IntegrationTileTitle, title, children: title }),
|
|
10717
10791
|
/* @__PURE__ */ jsxs36(
|
|
10718
10792
|
Button,
|
|
10719
10793
|
{
|
|
@@ -10724,23 +10798,23 @@ var CreateTeamIntegrationTile = ({
|
|
|
10724
10798
|
css: IntegrationTitleFakeButton,
|
|
10725
10799
|
children: [
|
|
10726
10800
|
buttonText,
|
|
10727
|
-
asDeepLink ? /* @__PURE__ */
|
|
10801
|
+
asDeepLink ? /* @__PURE__ */ jsx56(
|
|
10728
10802
|
Icon,
|
|
10729
10803
|
{
|
|
10730
10804
|
icon: CgChevronRight2,
|
|
10731
10805
|
iconColor: "currentColor",
|
|
10732
10806
|
size: 20,
|
|
10733
|
-
css:
|
|
10807
|
+
css: css47`
|
|
10734
10808
|
order: 1;
|
|
10735
10809
|
`
|
|
10736
10810
|
}
|
|
10737
|
-
) : /* @__PURE__ */
|
|
10811
|
+
) : /* @__PURE__ */ jsx56(
|
|
10738
10812
|
Icon,
|
|
10739
10813
|
{
|
|
10740
10814
|
icon: CgAdd2,
|
|
10741
10815
|
iconColor: "currentColor",
|
|
10742
10816
|
size: 16,
|
|
10743
|
-
css:
|
|
10817
|
+
css: css47`
|
|
10744
10818
|
order: -1;
|
|
10745
10819
|
`
|
|
10746
10820
|
}
|
|
@@ -10753,31 +10827,31 @@ var CreateTeamIntegrationTile = ({
|
|
|
10753
10827
|
|
|
10754
10828
|
// src/components/Tiles/IntegrationBadges.tsx
|
|
10755
10829
|
import { CgCheck as CgCheck2, CgLock, CgSandClock } from "react-icons/cg";
|
|
10756
|
-
import { jsx as
|
|
10830
|
+
import { jsx as jsx57, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
|
|
10757
10831
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
10758
10832
|
return /* @__PURE__ */ jsxs37("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
10759
|
-
/* @__PURE__ */
|
|
10833
|
+
/* @__PURE__ */ jsx57(Icon, { icon: CgCheck2, iconColor: "currentColor" }),
|
|
10760
10834
|
text
|
|
10761
10835
|
] });
|
|
10762
10836
|
};
|
|
10763
10837
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
10764
|
-
return /* @__PURE__ */
|
|
10838
|
+
return /* @__PURE__ */ jsx57("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
10765
10839
|
};
|
|
10766
10840
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
10767
10841
|
return /* @__PURE__ */ jsxs37("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
10768
|
-
/* @__PURE__ */
|
|
10842
|
+
/* @__PURE__ */ jsx57(Icon, { icon: CgLock, iconColor: "currentColor", size: 12 }),
|
|
10769
10843
|
text
|
|
10770
10844
|
] });
|
|
10771
10845
|
};
|
|
10772
10846
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
10773
10847
|
return /* @__PURE__ */ jsxs37("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
10774
|
-
/* @__PURE__ */
|
|
10848
|
+
/* @__PURE__ */ jsx57(Icon, { icon: CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
10775
10849
|
text
|
|
10776
10850
|
] });
|
|
10777
10851
|
};
|
|
10778
10852
|
|
|
10779
10853
|
// src/components/Tiles/ResolveIcon.tsx
|
|
10780
|
-
import { jsx as
|
|
10854
|
+
import { jsx as jsx58 } from "@emotion/react/jsx-runtime";
|
|
10781
10855
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
10782
10856
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
10783
10857
|
const mapClassName = {
|
|
@@ -10785,13 +10859,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
10785
10859
|
logo: IntegrationTitleLogo
|
|
10786
10860
|
};
|
|
10787
10861
|
if (icon) {
|
|
10788
|
-
return CompIcon ? /* @__PURE__ */
|
|
10862
|
+
return CompIcon ? /* @__PURE__ */ jsx58(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ jsx58("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
10789
10863
|
}
|
|
10790
10864
|
return null;
|
|
10791
10865
|
};
|
|
10792
10866
|
|
|
10793
10867
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
10794
|
-
import { jsx as
|
|
10868
|
+
import { jsx as jsx59, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
|
|
10795
10869
|
var EditTeamIntegrationTile = ({
|
|
10796
10870
|
id,
|
|
10797
10871
|
icon,
|
|
@@ -10807,10 +10881,10 @@ var EditTeamIntegrationTile = ({
|
|
|
10807
10881
|
"data-testid": "configure-integration-container",
|
|
10808
10882
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
10809
10883
|
children: [
|
|
10810
|
-
/* @__PURE__ */
|
|
10811
|
-
/* @__PURE__ */
|
|
10812
|
-
!isPublic ? /* @__PURE__ */
|
|
10813
|
-
canEdit ? /* @__PURE__ */
|
|
10884
|
+
/* @__PURE__ */ jsx59(ResolveIcon, { icon, name, "data-test-id": "integration-logo" }),
|
|
10885
|
+
/* @__PURE__ */ jsx59("span", { css: IntegrationTileName, "data-test-id": "integration-card-name", children: name }),
|
|
10886
|
+
!isPublic ? /* @__PURE__ */ jsx59(IntegrationCustomBadge, {}) : null,
|
|
10887
|
+
canEdit ? /* @__PURE__ */ jsx59(
|
|
10814
10888
|
Button,
|
|
10815
10889
|
{
|
|
10816
10890
|
buttonType: "unimportant",
|
|
@@ -10828,10 +10902,10 @@ var EditTeamIntegrationTile = ({
|
|
|
10828
10902
|
};
|
|
10829
10903
|
|
|
10830
10904
|
// src/components/Tiles/IntegrationComingSoon.tsx
|
|
10831
|
-
import { css as
|
|
10905
|
+
import { css as css48 } from "@emotion/react";
|
|
10832
10906
|
import { useEffect as useEffect6, useState as useState6 } from "react";
|
|
10833
10907
|
import { CgHeart } from "react-icons/cg";
|
|
10834
|
-
import { jsx as
|
|
10908
|
+
import { jsx as jsx60, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
10835
10909
|
var IntegrationComingSoon = ({
|
|
10836
10910
|
name,
|
|
10837
10911
|
icon,
|
|
@@ -10860,9 +10934,9 @@ var IntegrationComingSoon = ({
|
|
|
10860
10934
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
10861
10935
|
...props,
|
|
10862
10936
|
children: [
|
|
10863
|
-
/* @__PURE__ */
|
|
10864
|
-
/* @__PURE__ */
|
|
10865
|
-
/* @__PURE__ */
|
|
10937
|
+
/* @__PURE__ */ jsx60(IntegrationComingSoonBadge, {}),
|
|
10938
|
+
/* @__PURE__ */ jsx60(ResolveIcon, { icon, name }),
|
|
10939
|
+
/* @__PURE__ */ jsx60("span", { css: IntegrationTileName, title: name, children: name }),
|
|
10866
10940
|
/* @__PURE__ */ jsxs39(
|
|
10867
10941
|
Button,
|
|
10868
10942
|
{
|
|
@@ -10873,11 +10947,11 @@ var IntegrationComingSoon = ({
|
|
|
10873
10947
|
role: "link",
|
|
10874
10948
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
10875
10949
|
children: [
|
|
10876
|
-
/* @__PURE__ */
|
|
10877
|
-
/* @__PURE__ */
|
|
10950
|
+
/* @__PURE__ */ jsx60("strong", { children: "+1" }),
|
|
10951
|
+
/* @__PURE__ */ jsx60(
|
|
10878
10952
|
"span",
|
|
10879
10953
|
{
|
|
10880
|
-
css:
|
|
10954
|
+
css: css48`
|
|
10881
10955
|
text-transform: uppercase;
|
|
10882
10956
|
color: var(--gray-500);
|
|
10883
10957
|
`,
|
|
@@ -10885,7 +10959,7 @@ var IntegrationComingSoon = ({
|
|
|
10885
10959
|
}
|
|
10886
10960
|
),
|
|
10887
10961
|
/* @__PURE__ */ jsxs39("span", { "aria-hidden": !upVote, children: [
|
|
10888
|
-
/* @__PURE__ */
|
|
10962
|
+
/* @__PURE__ */ jsx60(Icon, { icon: CgHeart, iconColor: "currentColor", size: 18 }),
|
|
10889
10963
|
"Thanks!"
|
|
10890
10964
|
] })
|
|
10891
10965
|
]
|
|
@@ -10897,8 +10971,8 @@ var IntegrationComingSoon = ({
|
|
|
10897
10971
|
};
|
|
10898
10972
|
|
|
10899
10973
|
// src/components/Tiles/styles/IntegrationLoadingTile.styles.ts
|
|
10900
|
-
import { css as
|
|
10901
|
-
var IntegrationLoadingTileContainer =
|
|
10974
|
+
import { css as css49 } from "@emotion/react";
|
|
10975
|
+
var IntegrationLoadingTileContainer = css49`
|
|
10902
10976
|
align-items: center;
|
|
10903
10977
|
box-sizing: border-box;
|
|
10904
10978
|
border-radius: var(--rounded-base);
|
|
@@ -10925,39 +10999,39 @@ var IntegrationLoadingTileContainer = css47`
|
|
|
10925
10999
|
}
|
|
10926
11000
|
}
|
|
10927
11001
|
`;
|
|
10928
|
-
var IntegrationLoadingTileImg =
|
|
11002
|
+
var IntegrationLoadingTileImg = css49`
|
|
10929
11003
|
width: 10rem;
|
|
10930
11004
|
height: 4rem;
|
|
10931
11005
|
margin: 0 auto;
|
|
10932
11006
|
`;
|
|
10933
|
-
var IntegrationLoadingTileText =
|
|
11007
|
+
var IntegrationLoadingTileText = css49`
|
|
10934
11008
|
width: 5rem;
|
|
10935
11009
|
height: var(--spacing-sm);
|
|
10936
11010
|
margin: var(--spacing-sm) 0;
|
|
10937
11011
|
`;
|
|
10938
|
-
var IntegrationLoadingFrame =
|
|
11012
|
+
var IntegrationLoadingFrame = css49`
|
|
10939
11013
|
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
10940
11014
|
border-radius: var(--rounded-base);
|
|
10941
11015
|
`;
|
|
10942
11016
|
|
|
10943
11017
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
10944
|
-
import { Fragment as Fragment7, jsx as
|
|
11018
|
+
import { Fragment as Fragment7, jsx as jsx61, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
|
|
10945
11019
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
10946
11020
|
const componentCount = Array.from(Array(count).keys());
|
|
10947
|
-
return /* @__PURE__ */
|
|
10948
|
-
/* @__PURE__ */
|
|
10949
|
-
/* @__PURE__ */
|
|
11021
|
+
return /* @__PURE__ */ jsx61(Fragment7, { children: componentCount.map((i) => /* @__PURE__ */ jsxs40("div", { css: IntegrationLoadingTileContainer, children: [
|
|
11022
|
+
/* @__PURE__ */ jsx61("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
11023
|
+
/* @__PURE__ */ jsx61("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
10950
11024
|
] }, i)) });
|
|
10951
11025
|
};
|
|
10952
11026
|
|
|
10953
11027
|
// src/components/Tiles/styles/IntegrationModalIcon.styles.ts
|
|
10954
|
-
import { css as
|
|
10955
|
-
var IntegrationModalIconContainer =
|
|
11028
|
+
import { css as css50 } from "@emotion/react";
|
|
11029
|
+
var IntegrationModalIconContainer = css50`
|
|
10956
11030
|
position: relative;
|
|
10957
11031
|
width: 50px;
|
|
10958
11032
|
margin-bottom: var(--spacing-base);
|
|
10959
11033
|
`;
|
|
10960
|
-
var IntegrationModalImage =
|
|
11034
|
+
var IntegrationModalImage = css50`
|
|
10961
11035
|
position: absolute;
|
|
10962
11036
|
inset: 0;
|
|
10963
11037
|
margin: auto;
|
|
@@ -10966,12 +11040,12 @@ var IntegrationModalImage = css48`
|
|
|
10966
11040
|
`;
|
|
10967
11041
|
|
|
10968
11042
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
10969
|
-
import { jsx as
|
|
11043
|
+
import { jsx as jsx62, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
10970
11044
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
10971
11045
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
10972
11046
|
return /* @__PURE__ */ jsxs41("div", { css: IntegrationModalIconContainer, children: [
|
|
10973
11047
|
/* @__PURE__ */ jsxs41("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
10974
|
-
/* @__PURE__ */
|
|
11048
|
+
/* @__PURE__ */ jsx62(
|
|
10975
11049
|
"path",
|
|
10976
11050
|
{
|
|
10977
11051
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -10980,12 +11054,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
10980
11054
|
strokeWidth: "2"
|
|
10981
11055
|
}
|
|
10982
11056
|
),
|
|
10983
|
-
/* @__PURE__ */
|
|
10984
|
-
/* @__PURE__ */
|
|
10985
|
-
/* @__PURE__ */
|
|
11057
|
+
/* @__PURE__ */ jsx62("defs", { children: /* @__PURE__ */ jsxs41("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
11058
|
+
/* @__PURE__ */ jsx62("stop", { stopColor: "#1768B2" }),
|
|
11059
|
+
/* @__PURE__ */ jsx62("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
10986
11060
|
] }) })
|
|
10987
11061
|
] }),
|
|
10988
|
-
CompIcon ? /* @__PURE__ */
|
|
11062
|
+
CompIcon ? /* @__PURE__ */ jsx62(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : /* @__PURE__ */ jsx62(
|
|
10989
11063
|
"img",
|
|
10990
11064
|
{
|
|
10991
11065
|
src: icon,
|
|
@@ -10999,7 +11073,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
10999
11073
|
};
|
|
11000
11074
|
|
|
11001
11075
|
// src/components/Tiles/IntegrationTile.tsx
|
|
11002
|
-
import { jsx as
|
|
11076
|
+
import { jsx as jsx63, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
11003
11077
|
var IntegrationTile = ({
|
|
11004
11078
|
id,
|
|
11005
11079
|
icon,
|
|
@@ -11021,68 +11095,68 @@ var IntegrationTile = ({
|
|
|
11021
11095
|
"aria-label": name,
|
|
11022
11096
|
...btnProps,
|
|
11023
11097
|
children: [
|
|
11024
|
-
/* @__PURE__ */
|
|
11025
|
-
/* @__PURE__ */
|
|
11026
|
-
isInstalled ? /* @__PURE__ */
|
|
11027
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */
|
|
11028
|
-
!isPublic ? /* @__PURE__ */
|
|
11029
|
-
authorIcon ? /* @__PURE__ */
|
|
11098
|
+
/* @__PURE__ */ jsx63(ResolveIcon, { icon, name }),
|
|
11099
|
+
/* @__PURE__ */ jsx63("span", { css: IntegrationTileName, title: name, children: name }),
|
|
11100
|
+
isInstalled ? /* @__PURE__ */ jsx63(IntegrationedAddedBadge, {}) : null,
|
|
11101
|
+
requiedEntitlement && isPublic ? /* @__PURE__ */ jsx63(IntegrationPremiumBadge, {}) : null,
|
|
11102
|
+
!isPublic ? /* @__PURE__ */ jsx63(IntegrationCustomBadge, {}) : null,
|
|
11103
|
+
authorIcon ? /* @__PURE__ */ jsx63(ResolveIcon, { icon: authorIcon, name }) : null
|
|
11030
11104
|
]
|
|
11031
11105
|
}
|
|
11032
11106
|
);
|
|
11033
11107
|
};
|
|
11034
11108
|
|
|
11035
11109
|
// src/components/Tiles/styles/TileContainer.styles.ts
|
|
11036
|
-
import { css as
|
|
11037
|
-
var TileContainerWrapper =
|
|
11110
|
+
import { css as css51 } from "@emotion/react";
|
|
11111
|
+
var TileContainerWrapper = css51`
|
|
11038
11112
|
background: var(--brand-secondary-2);
|
|
11039
11113
|
padding: var(--spacing-base);
|
|
11040
11114
|
margin-bottom: var(--spacing-lg);
|
|
11041
11115
|
`;
|
|
11042
|
-
var TileContainerInner =
|
|
11116
|
+
var TileContainerInner = css51`
|
|
11043
11117
|
display: grid;
|
|
11044
11118
|
grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
|
|
11045
11119
|
gap: var(--spacing-base);
|
|
11046
11120
|
`;
|
|
11047
11121
|
|
|
11048
11122
|
// src/components/Tiles/TileContainer.tsx
|
|
11049
|
-
import { jsx as
|
|
11123
|
+
import { jsx as jsx64 } from "@emotion/react/jsx-runtime";
|
|
11050
11124
|
var TileContainer = ({ children, ...props }) => {
|
|
11051
|
-
return /* @__PURE__ */
|
|
11125
|
+
return /* @__PURE__ */ jsx64("div", { css: TileContainerWrapper, ...props, children: /* @__PURE__ */ jsx64("div", { css: TileContainerInner, children }) });
|
|
11052
11126
|
};
|
|
11053
11127
|
|
|
11054
11128
|
// src/components/Modal/IntegrationModalHeader.styles.ts
|
|
11055
|
-
import { css as
|
|
11056
|
-
var IntegrationModalHeaderSVGBackground =
|
|
11129
|
+
import { css as css52 } from "@emotion/react";
|
|
11130
|
+
var IntegrationModalHeaderSVGBackground = css52`
|
|
11057
11131
|
position: absolute;
|
|
11058
11132
|
top: 0;
|
|
11059
11133
|
left: 0;
|
|
11060
11134
|
`;
|
|
11061
|
-
var IntegrationModalHeaderGroup =
|
|
11135
|
+
var IntegrationModalHeaderGroup = css52`
|
|
11062
11136
|
align-items: center;
|
|
11063
11137
|
display: flex;
|
|
11064
11138
|
gap: var(--spacing-sm);
|
|
11065
11139
|
margin: 0 0 var(--spacing-md);
|
|
11066
11140
|
position: relative;
|
|
11067
11141
|
`;
|
|
11068
|
-
var IntegrationModalHeaderTitleGroup =
|
|
11142
|
+
var IntegrationModalHeaderTitleGroup = css52`
|
|
11069
11143
|
align-items: center;
|
|
11070
11144
|
display: flex;
|
|
11071
11145
|
gap: var(--spacing-base);
|
|
11072
11146
|
`;
|
|
11073
|
-
var IntegrationModalHeaderTitle =
|
|
11147
|
+
var IntegrationModalHeaderTitle = css52`
|
|
11074
11148
|
margin-top: 0;
|
|
11075
11149
|
`;
|
|
11076
|
-
var IntegrationModalHeaderMenuPlacement =
|
|
11150
|
+
var IntegrationModalHeaderMenuPlacement = css52`
|
|
11077
11151
|
margin-bottom: var(--spacing-base);
|
|
11078
11152
|
`;
|
|
11079
|
-
var IntegrationModalHeaderContentWrapper =
|
|
11153
|
+
var IntegrationModalHeaderContentWrapper = css52`
|
|
11080
11154
|
position: relative;
|
|
11081
11155
|
z-index: var(--z-10);
|
|
11082
11156
|
`;
|
|
11083
11157
|
|
|
11084
11158
|
// src/components/Modal/IntegrationModalHeader.tsx
|
|
11085
|
-
import { Fragment as Fragment8, jsx as
|
|
11159
|
+
import { Fragment as Fragment8, jsx as jsx65, jsxs as jsxs43 } from "@emotion/react/jsx-runtime";
|
|
11086
11160
|
var HexModalBackground = ({ ...props }) => {
|
|
11087
11161
|
return /* @__PURE__ */ jsxs43(
|
|
11088
11162
|
"svg",
|
|
@@ -11094,7 +11168,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
11094
11168
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11095
11169
|
...props,
|
|
11096
11170
|
children: [
|
|
11097
|
-
/* @__PURE__ */
|
|
11171
|
+
/* @__PURE__ */ jsx65(
|
|
11098
11172
|
"path",
|
|
11099
11173
|
{
|
|
11100
11174
|
fillRule: "evenodd",
|
|
@@ -11103,7 +11177,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
11103
11177
|
fill: "url(#paint0_linear_196_2737)"
|
|
11104
11178
|
}
|
|
11105
11179
|
),
|
|
11106
|
-
/* @__PURE__ */
|
|
11180
|
+
/* @__PURE__ */ jsx65("defs", { children: /* @__PURE__ */ jsxs43(
|
|
11107
11181
|
"linearGradient",
|
|
11108
11182
|
{
|
|
11109
11183
|
id: "paint0_linear_196_2737",
|
|
@@ -11113,8 +11187,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
11113
11187
|
y2: "-95.2742",
|
|
11114
11188
|
gradientUnits: "userSpaceOnUse",
|
|
11115
11189
|
children: [
|
|
11116
|
-
/* @__PURE__ */
|
|
11117
|
-
/* @__PURE__ */
|
|
11190
|
+
/* @__PURE__ */ jsx65("stop", { stopColor: "#81DCDE" }),
|
|
11191
|
+
/* @__PURE__ */ jsx65("stop", { offset: "1", stopColor: "#428ED4" })
|
|
11118
11192
|
]
|
|
11119
11193
|
}
|
|
11120
11194
|
) })
|
|
@@ -11124,16 +11198,16 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
11124
11198
|
};
|
|
11125
11199
|
var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
11126
11200
|
return /* @__PURE__ */ jsxs43(Fragment8, { children: [
|
|
11127
|
-
/* @__PURE__ */
|
|
11128
|
-
/* @__PURE__ */
|
|
11129
|
-
icon ? /* @__PURE__ */
|
|
11130
|
-
/* @__PURE__ */
|
|
11201
|
+
/* @__PURE__ */ jsx65(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
11202
|
+
/* @__PURE__ */ jsx65("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs43("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
11203
|
+
icon ? /* @__PURE__ */ jsx65(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
11204
|
+
/* @__PURE__ */ jsx65(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-test-id": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
11131
11205
|
menu2 ? /* @__PURE__ */ jsxs43("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
11132
11206
|
menu2,
|
|
11133
11207
|
" "
|
|
11134
11208
|
] }) : null
|
|
11135
11209
|
] }) }),
|
|
11136
|
-
/* @__PURE__ */
|
|
11210
|
+
/* @__PURE__ */ jsx65("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
11137
11211
|
] });
|
|
11138
11212
|
};
|
|
11139
11213
|
|
|
@@ -11147,8 +11221,8 @@ import {
|
|
|
11147
11221
|
} from "reakit/Tooltip";
|
|
11148
11222
|
|
|
11149
11223
|
// src/components/Tooltip/Tooltip.styles.ts
|
|
11150
|
-
import { css as
|
|
11151
|
-
var TooltipContainer =
|
|
11224
|
+
import { css as css53 } from "@emotion/react";
|
|
11225
|
+
var TooltipContainer = css53`
|
|
11152
11226
|
border: 2px solid var(--gray-300);
|
|
11153
11227
|
border-radius: var(--rounded-base);
|
|
11154
11228
|
padding: var(--spacing-xs) var(--spacing-sm);
|
|
@@ -11156,28 +11230,28 @@ var TooltipContainer = css51`
|
|
|
11156
11230
|
font-size: var(--fs-xs);
|
|
11157
11231
|
background: var(--white);
|
|
11158
11232
|
`;
|
|
11159
|
-
var TooltipArrowStyles =
|
|
11233
|
+
var TooltipArrowStyles = css53`
|
|
11160
11234
|
svg {
|
|
11161
11235
|
fill: var(--gray-300);
|
|
11162
11236
|
}
|
|
11163
11237
|
`;
|
|
11164
11238
|
|
|
11165
11239
|
// src/components/Tooltip/Tooltip.tsx
|
|
11166
|
-
import { Fragment as Fragment9, jsx as
|
|
11240
|
+
import { Fragment as Fragment9, jsx as jsx66, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
11167
11241
|
function Tooltip({ children, title, placement = "bottom", visible, ...props }) {
|
|
11168
11242
|
const tooltip = useTooltipState({ placement });
|
|
11169
11243
|
return /* @__PURE__ */ jsxs44(Fragment9, { children: [
|
|
11170
|
-
/* @__PURE__ */
|
|
11244
|
+
/* @__PURE__ */ jsx66(TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => React14.cloneElement(children, referenceProps) }),
|
|
11171
11245
|
/* @__PURE__ */ jsxs44(ReakitTooltip, { ...tooltip, ...props, css: TooltipContainer, visible: visible != null ? visible : tooltip.visible, children: [
|
|
11172
|
-
/* @__PURE__ */
|
|
11246
|
+
/* @__PURE__ */ jsx66(TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
|
|
11173
11247
|
title
|
|
11174
11248
|
] })
|
|
11175
11249
|
] });
|
|
11176
11250
|
}
|
|
11177
11251
|
|
|
11178
11252
|
// src/components/ParameterInputs/styles/ParameterBindingButton.styles.ts
|
|
11179
|
-
import { css as
|
|
11180
|
-
var inputIconBtn =
|
|
11253
|
+
import { css as css54 } from "@emotion/react";
|
|
11254
|
+
var inputIconBtn = css54`
|
|
11181
11255
|
align-items: center;
|
|
11182
11256
|
border: none;
|
|
11183
11257
|
border-radius: var(--rounded-base);
|
|
@@ -11200,7 +11274,7 @@ var inputIconBtn = css52`
|
|
|
11200
11274
|
`;
|
|
11201
11275
|
|
|
11202
11276
|
// src/components/ParameterInputs/ConnectToDataElementButton.tsx
|
|
11203
|
-
import { jsx as
|
|
11277
|
+
import { jsx as jsx67, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
|
|
11204
11278
|
var ConnectToDataElementButton = ({
|
|
11205
11279
|
icon,
|
|
11206
11280
|
iconColor,
|
|
@@ -11210,7 +11284,7 @@ var ConnectToDataElementButton = ({
|
|
|
11210
11284
|
...props
|
|
11211
11285
|
}) => {
|
|
11212
11286
|
const title = isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
11213
|
-
return /* @__PURE__ */
|
|
11287
|
+
return /* @__PURE__ */ jsx67(Tooltip, { title, children: /* @__PURE__ */ jsxs45(
|
|
11214
11288
|
"button",
|
|
11215
11289
|
{
|
|
11216
11290
|
css: inputIconBtn,
|
|
@@ -11219,7 +11293,7 @@ var ConnectToDataElementButton = ({
|
|
|
11219
11293
|
"aria-disabled": isLocked,
|
|
11220
11294
|
...props,
|
|
11221
11295
|
children: [
|
|
11222
|
-
/* @__PURE__ */
|
|
11296
|
+
/* @__PURE__ */ jsx67(
|
|
11223
11297
|
Icon,
|
|
11224
11298
|
{
|
|
11225
11299
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -11255,8 +11329,8 @@ var useParameterShell = () => {
|
|
|
11255
11329
|
};
|
|
11256
11330
|
|
|
11257
11331
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
11258
|
-
import { css as
|
|
11259
|
-
var inputContainer2 =
|
|
11332
|
+
import { css as css55 } from "@emotion/react";
|
|
11333
|
+
var inputContainer2 = css55`
|
|
11260
11334
|
position: relative;
|
|
11261
11335
|
|
|
11262
11336
|
&:hover,
|
|
@@ -11268,14 +11342,14 @@ var inputContainer2 = css53`
|
|
|
11268
11342
|
}
|
|
11269
11343
|
}
|
|
11270
11344
|
`;
|
|
11271
|
-
var labelText2 =
|
|
11345
|
+
var labelText2 = css55`
|
|
11272
11346
|
align-items: center;
|
|
11273
11347
|
display: flex;
|
|
11274
11348
|
gap: var(--spacing-xs);
|
|
11275
11349
|
font-weight: var(--fw-regular);
|
|
11276
11350
|
margin: 0 0 var(--spacing-xs);
|
|
11277
11351
|
`;
|
|
11278
|
-
var input2 =
|
|
11352
|
+
var input2 = css55`
|
|
11279
11353
|
display: block;
|
|
11280
11354
|
appearance: none;
|
|
11281
11355
|
box-sizing: border-box;
|
|
@@ -11319,18 +11393,18 @@ var input2 = css53`
|
|
|
11319
11393
|
color: var(--gray-400);
|
|
11320
11394
|
}
|
|
11321
11395
|
`;
|
|
11322
|
-
var selectInput =
|
|
11396
|
+
var selectInput = css55`
|
|
11323
11397
|
background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath d='M6.34317 7.75732L4.92896 9.17154L12 16.2426L19.0711 9.17157L17.6569 7.75735L12 13.4142L6.34317 7.75732Z' fill='currentColor' /%3E%3C/svg%3E");
|
|
11324
11398
|
background-position: right var(--spacing-sm) center;
|
|
11325
11399
|
background-repeat: no-repeat;
|
|
11326
11400
|
background-size: 1rem;
|
|
11327
11401
|
padding-right: var(--spacing-xl);
|
|
11328
11402
|
`;
|
|
11329
|
-
var inputWrapper =
|
|
11403
|
+
var inputWrapper = css55`
|
|
11330
11404
|
display: flex; // used to correct overflow with chrome textarea
|
|
11331
11405
|
position: relative;
|
|
11332
11406
|
`;
|
|
11333
|
-
var inputIcon2 =
|
|
11407
|
+
var inputIcon2 = css55`
|
|
11334
11408
|
align-items: center;
|
|
11335
11409
|
background: var(--white);
|
|
11336
11410
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -11346,7 +11420,7 @@ var inputIcon2 = css53`
|
|
|
11346
11420
|
width: var(--spacing-lg);
|
|
11347
11421
|
z-index: var(--z-10);
|
|
11348
11422
|
`;
|
|
11349
|
-
var inputToggleLabel2 =
|
|
11423
|
+
var inputToggleLabel2 = css55`
|
|
11350
11424
|
align-items: center;
|
|
11351
11425
|
background: var(--white);
|
|
11352
11426
|
cursor: pointer;
|
|
@@ -11357,7 +11431,7 @@ var inputToggleLabel2 = css53`
|
|
|
11357
11431
|
min-height: var(--spacing-md);
|
|
11358
11432
|
position: relative;
|
|
11359
11433
|
`;
|
|
11360
|
-
var toggleInput2 =
|
|
11434
|
+
var toggleInput2 = css55`
|
|
11361
11435
|
appearance: none;
|
|
11362
11436
|
border: 1px solid var(--gray-300);
|
|
11363
11437
|
background: var(--white);
|
|
@@ -11396,7 +11470,7 @@ var toggleInput2 = css53`
|
|
|
11396
11470
|
border-color: var(--gray-300);
|
|
11397
11471
|
}
|
|
11398
11472
|
`;
|
|
11399
|
-
var inlineLabel2 =
|
|
11473
|
+
var inlineLabel2 = css55`
|
|
11400
11474
|
padding-left: var(--spacing-lg);
|
|
11401
11475
|
font-size: var(--fs-sm);
|
|
11402
11476
|
font-weight: var(--fw-regular);
|
|
@@ -11412,7 +11486,7 @@ var inlineLabel2 = css53`
|
|
|
11412
11486
|
}
|
|
11413
11487
|
}
|
|
11414
11488
|
`;
|
|
11415
|
-
var inputMenu =
|
|
11489
|
+
var inputMenu = css55`
|
|
11416
11490
|
background: none;
|
|
11417
11491
|
border: none;
|
|
11418
11492
|
padding: 0;
|
|
@@ -11433,14 +11507,14 @@ var inputMenu = css53`
|
|
|
11433
11507
|
|
|
11434
11508
|
}
|
|
11435
11509
|
`;
|
|
11436
|
-
var textarea2 =
|
|
11510
|
+
var textarea2 = css55`
|
|
11437
11511
|
resize: vertical;
|
|
11438
11512
|
min-height: 2rem;
|
|
11439
11513
|
`;
|
|
11440
|
-
var imageWrapper =
|
|
11514
|
+
var imageWrapper = css55`
|
|
11441
11515
|
background: var(--white);
|
|
11442
11516
|
`;
|
|
11443
|
-
var img =
|
|
11517
|
+
var img = css55`
|
|
11444
11518
|
animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
11445
11519
|
object-fit: contain;
|
|
11446
11520
|
max-width: 100%;
|
|
@@ -11448,7 +11522,7 @@ var img = css53`
|
|
|
11448
11522
|
opacity: var(--opacity-0);
|
|
11449
11523
|
margin: var(--spacing-sm) auto 0;
|
|
11450
11524
|
`;
|
|
11451
|
-
var dataConnectButton =
|
|
11525
|
+
var dataConnectButton = css55`
|
|
11452
11526
|
align-items: center;
|
|
11453
11527
|
appearance: none;
|
|
11454
11528
|
box-sizing: border-box;
|
|
@@ -11483,7 +11557,7 @@ var dataConnectButton = css53`
|
|
|
11483
11557
|
pointer-events: none;
|
|
11484
11558
|
}
|
|
11485
11559
|
`;
|
|
11486
|
-
var linkParameterBtn =
|
|
11560
|
+
var linkParameterBtn = css55`
|
|
11487
11561
|
border-radius: var(--rounded-base);
|
|
11488
11562
|
background: var(--white);
|
|
11489
11563
|
border: none;
|
|
@@ -11495,10 +11569,10 @@ var linkParameterBtn = css53`
|
|
|
11495
11569
|
inset: 0 var(--spacing-base) 0 auto;
|
|
11496
11570
|
padding: 0 var(--spacing-base);
|
|
11497
11571
|
`;
|
|
11498
|
-
var linkParameterInput =
|
|
11572
|
+
var linkParameterInput = css55`
|
|
11499
11573
|
padding-right: calc(var(--spacing-2xl) + var(--spacing-base));
|
|
11500
11574
|
`;
|
|
11501
|
-
var linkParameterIcon =
|
|
11575
|
+
var linkParameterIcon = css55`
|
|
11502
11576
|
align-items: center;
|
|
11503
11577
|
color: var(--brand-secondary-3);
|
|
11504
11578
|
display: flex;
|
|
@@ -11513,7 +11587,7 @@ var linkParameterIcon = css53`
|
|
|
11513
11587
|
`;
|
|
11514
11588
|
|
|
11515
11589
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
11516
|
-
import { jsx as
|
|
11590
|
+
import { jsx as jsx68, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
11517
11591
|
function ParameterDataResource({
|
|
11518
11592
|
label,
|
|
11519
11593
|
labelLeadingIcon,
|
|
@@ -11537,30 +11611,30 @@ function ParameterDataResource({
|
|
|
11537
11611
|
disabled,
|
|
11538
11612
|
onClick: onConnectDatasource,
|
|
11539
11613
|
children: [
|
|
11540
|
-
/* @__PURE__ */
|
|
11614
|
+
/* @__PURE__ */ jsx68("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx68(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
11541
11615
|
children
|
|
11542
11616
|
]
|
|
11543
11617
|
}
|
|
11544
11618
|
),
|
|
11545
|
-
caption ? /* @__PURE__ */
|
|
11619
|
+
caption ? /* @__PURE__ */ jsx68(Caption, { children: caption }) : null
|
|
11546
11620
|
] });
|
|
11547
11621
|
}
|
|
11548
11622
|
|
|
11549
11623
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
11550
|
-
import { css as
|
|
11551
|
-
var ParameterDrawerHeaderContainer =
|
|
11624
|
+
import { css as css56 } from "@emotion/react";
|
|
11625
|
+
var ParameterDrawerHeaderContainer = css56`
|
|
11552
11626
|
align-items: center;
|
|
11553
11627
|
display: flex;
|
|
11554
11628
|
gap: var(--spacing-base);
|
|
11555
11629
|
justify-content: space-between;
|
|
11556
11630
|
margin-bottom: var(--spacing-sm);
|
|
11557
11631
|
`;
|
|
11558
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
11632
|
+
var ParameterDrawerHeaderTitleGroup = css56`
|
|
11559
11633
|
align-items: center;
|
|
11560
11634
|
display: flex;
|
|
11561
11635
|
gap: var(--spacing-sm);
|
|
11562
11636
|
`;
|
|
11563
|
-
var ParameterDrawerHeaderTitle =
|
|
11637
|
+
var ParameterDrawerHeaderTitle = css56`
|
|
11564
11638
|
text-overflow: ellipsis;
|
|
11565
11639
|
white-space: nowrap;
|
|
11566
11640
|
overflow: hidden;
|
|
@@ -11568,12 +11642,12 @@ var ParameterDrawerHeaderTitle = css54`
|
|
|
11568
11642
|
`;
|
|
11569
11643
|
|
|
11570
11644
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
11571
|
-
import { jsx as
|
|
11645
|
+
import { jsx as jsx69, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
11572
11646
|
var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
11573
11647
|
return /* @__PURE__ */ jsxs47("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
11574
11648
|
/* @__PURE__ */ jsxs47("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
11575
11649
|
iconBeforeTitle,
|
|
11576
|
-
/* @__PURE__ */
|
|
11650
|
+
/* @__PURE__ */ jsx69(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
|
|
11577
11651
|
] }),
|
|
11578
11652
|
children
|
|
11579
11653
|
] });
|
|
@@ -11583,8 +11657,8 @@ var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
|
11583
11657
|
import { forwardRef as forwardRef7 } from "react";
|
|
11584
11658
|
|
|
11585
11659
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
11586
|
-
import { css as
|
|
11587
|
-
var fieldsetStyles =
|
|
11660
|
+
import { css as css57 } from "@emotion/react";
|
|
11661
|
+
var fieldsetStyles = css57`
|
|
11588
11662
|
&:disabled,
|
|
11589
11663
|
[readonly] {
|
|
11590
11664
|
pointer-events: none;
|
|
@@ -11595,7 +11669,7 @@ var fieldsetStyles = css55`
|
|
|
11595
11669
|
}
|
|
11596
11670
|
}
|
|
11597
11671
|
`;
|
|
11598
|
-
var fieldsetLegend2 =
|
|
11672
|
+
var fieldsetLegend2 = css57`
|
|
11599
11673
|
display: block;
|
|
11600
11674
|
font-weight: var(--fw-medium);
|
|
11601
11675
|
margin-bottom: var(--spacing-sm);
|
|
@@ -11603,11 +11677,11 @@ var fieldsetLegend2 = css55`
|
|
|
11603
11677
|
`;
|
|
11604
11678
|
|
|
11605
11679
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
11606
|
-
import { jsx as
|
|
11680
|
+
import { jsx as jsx70, jsxs as jsxs48 } from "@emotion/react/jsx-runtime";
|
|
11607
11681
|
var ParameterGroup = forwardRef7(
|
|
11608
11682
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
11609
11683
|
return /* @__PURE__ */ jsxs48("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
11610
|
-
/* @__PURE__ */
|
|
11684
|
+
/* @__PURE__ */ jsx70("legend", { css: fieldsetLegend2, children: legend }),
|
|
11611
11685
|
children
|
|
11612
11686
|
] });
|
|
11613
11687
|
}
|
|
@@ -11620,21 +11694,21 @@ import { forwardRef as forwardRef9, useCallback as useCallback2, useDeferredValu
|
|
|
11620
11694
|
import { useState as useState7 } from "react";
|
|
11621
11695
|
|
|
11622
11696
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
11623
|
-
import { jsx as
|
|
11697
|
+
import { jsx as jsx71 } from "@emotion/react/jsx-runtime";
|
|
11624
11698
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
11625
|
-
return !asSpan ? /* @__PURE__ */
|
|
11699
|
+
return !asSpan ? /* @__PURE__ */ jsx71("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx71("span", { "aria-labelledby": id, css: labelText2, children });
|
|
11626
11700
|
};
|
|
11627
11701
|
|
|
11628
11702
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
11629
11703
|
import { forwardRef as forwardRef8 } from "react";
|
|
11630
|
-
import { jsx as
|
|
11704
|
+
import { jsx as jsx72 } from "@emotion/react/jsx-runtime";
|
|
11631
11705
|
var ParameterMenuButton = forwardRef8(
|
|
11632
11706
|
({ label, children }, ref) => {
|
|
11633
|
-
return /* @__PURE__ */
|
|
11707
|
+
return /* @__PURE__ */ jsx72(
|
|
11634
11708
|
Menu,
|
|
11635
11709
|
{
|
|
11636
11710
|
menuLabel: `${label} menu`,
|
|
11637
|
-
menuTrigger: /* @__PURE__ */
|
|
11711
|
+
menuTrigger: /* @__PURE__ */ jsx72(
|
|
11638
11712
|
"button",
|
|
11639
11713
|
{
|
|
11640
11714
|
className: "parameter-menu",
|
|
@@ -11642,7 +11716,7 @@ var ParameterMenuButton = forwardRef8(
|
|
|
11642
11716
|
type: "button",
|
|
11643
11717
|
"aria-label": `${label} options`,
|
|
11644
11718
|
ref,
|
|
11645
|
-
children: /* @__PURE__ */
|
|
11719
|
+
children: /* @__PURE__ */ jsx72(Icon, { icon: "more-alt", iconColor: "currentColor" })
|
|
11646
11720
|
}
|
|
11647
11721
|
),
|
|
11648
11722
|
children
|
|
@@ -11652,15 +11726,15 @@ var ParameterMenuButton = forwardRef8(
|
|
|
11652
11726
|
);
|
|
11653
11727
|
|
|
11654
11728
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
11655
|
-
import { css as
|
|
11656
|
-
var emptyParameterShell =
|
|
11729
|
+
import { css as css58 } from "@emotion/react";
|
|
11730
|
+
var emptyParameterShell = css58`
|
|
11657
11731
|
border-radius: var(--rounded-sm);
|
|
11658
11732
|
background: var(--white);
|
|
11659
11733
|
flex-grow: 1;
|
|
11660
11734
|
padding: var(--spacing-xs);
|
|
11661
11735
|
position: relative;
|
|
11662
11736
|
`;
|
|
11663
|
-
var emptyParameterShellText =
|
|
11737
|
+
var emptyParameterShellText = css58`
|
|
11664
11738
|
background: var(--brand-secondary-6);
|
|
11665
11739
|
border-radius: var(--rounded-sm);
|
|
11666
11740
|
padding: var(--spacing-sm);
|
|
@@ -11668,7 +11742,7 @@ var emptyParameterShellText = css56`
|
|
|
11668
11742
|
font-size: var(--fs-sm);
|
|
11669
11743
|
margin: 0;
|
|
11670
11744
|
`;
|
|
11671
|
-
var overrideMarker =
|
|
11745
|
+
var overrideMarker = css58`
|
|
11672
11746
|
border-radius: var(--rounded-sm);
|
|
11673
11747
|
border: 10px solid var(--gray-300);
|
|
11674
11748
|
border-left-color: transparent;
|
|
@@ -11679,7 +11753,7 @@ var overrideMarker = css56`
|
|
|
11679
11753
|
`;
|
|
11680
11754
|
|
|
11681
11755
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
11682
|
-
import { jsx as
|
|
11756
|
+
import { jsx as jsx73, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
11683
11757
|
var extractParameterProps = (props) => {
|
|
11684
11758
|
const {
|
|
11685
11759
|
id,
|
|
@@ -11745,8 +11819,8 @@ var ParameterShell = ({
|
|
|
11745
11819
|
title
|
|
11746
11820
|
] }),
|
|
11747
11821
|
/* @__PURE__ */ jsxs49("div", { css: inputWrapper, children: [
|
|
11748
|
-
menuItems ? /* @__PURE__ */
|
|
11749
|
-
/* @__PURE__ */
|
|
11822
|
+
menuItems ? /* @__PURE__ */ jsx73(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
11823
|
+
/* @__PURE__ */ jsx73(
|
|
11750
11824
|
ParameterShellContext.Provider,
|
|
11751
11825
|
{
|
|
11752
11826
|
value: {
|
|
@@ -11758,25 +11832,25 @@ var ParameterShell = ({
|
|
|
11758
11832
|
},
|
|
11759
11833
|
children: /* @__PURE__ */ jsxs49(ParameterShellPlaceholder, { children: [
|
|
11760
11834
|
children,
|
|
11761
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
11835
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx73(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
11762
11836
|
] })
|
|
11763
11837
|
}
|
|
11764
11838
|
)
|
|
11765
11839
|
] }),
|
|
11766
|
-
caption ? /* @__PURE__ */
|
|
11767
|
-
errorMessaging ? /* @__PURE__ */
|
|
11840
|
+
caption ? /* @__PURE__ */ jsx73(Caption, { testId: captionTestId, children: caption }) : null,
|
|
11841
|
+
errorMessaging ? /* @__PURE__ */ jsx73(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null
|
|
11768
11842
|
] });
|
|
11769
11843
|
};
|
|
11770
11844
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
11771
|
-
return /* @__PURE__ */
|
|
11845
|
+
return /* @__PURE__ */ jsx73("div", { css: emptyParameterShell, children });
|
|
11772
11846
|
};
|
|
11773
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
11847
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx73(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx73("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx73("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
11774
11848
|
|
|
11775
11849
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
11776
|
-
import { Fragment as Fragment10, jsx as
|
|
11850
|
+
import { Fragment as Fragment10, jsx as jsx74, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
11777
11851
|
var ParameterImage = forwardRef9((props, ref) => {
|
|
11778
11852
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
11779
|
-
return /* @__PURE__ */
|
|
11853
|
+
return /* @__PURE__ */ jsx74(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: /* @__PURE__ */ jsx74(ParameterImageInner, { ref, ...innerProps }) });
|
|
11780
11854
|
});
|
|
11781
11855
|
var BrokenImage = ({ ...props }) => {
|
|
11782
11856
|
return /* @__PURE__ */ jsxs50(
|
|
@@ -11790,11 +11864,11 @@ var BrokenImage = ({ ...props }) => {
|
|
|
11790
11864
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
11791
11865
|
...props,
|
|
11792
11866
|
children: [
|
|
11793
|
-
/* @__PURE__ */
|
|
11794
|
-
/* @__PURE__ */
|
|
11867
|
+
/* @__PURE__ */ jsx74("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
11868
|
+
/* @__PURE__ */ jsx74("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
11795
11869
|
/* @__PURE__ */ jsxs50("defs", { children: [
|
|
11796
|
-
/* @__PURE__ */
|
|
11797
|
-
/* @__PURE__ */
|
|
11870
|
+
/* @__PURE__ */ jsx74("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx74("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
11871
|
+
/* @__PURE__ */ jsx74(
|
|
11798
11872
|
"image",
|
|
11799
11873
|
{
|
|
11800
11874
|
id: "image0_761_4353",
|
|
@@ -11847,7 +11921,7 @@ var ParameterImageInner = forwardRef9(
|
|
|
11847
11921
|
updateImageSrc();
|
|
11848
11922
|
}, [value]);
|
|
11849
11923
|
return /* @__PURE__ */ jsxs50(Fragment10, { children: [
|
|
11850
|
-
/* @__PURE__ */
|
|
11924
|
+
/* @__PURE__ */ jsx74(
|
|
11851
11925
|
"input",
|
|
11852
11926
|
{
|
|
11853
11927
|
css: input2,
|
|
@@ -11860,7 +11934,7 @@ var ParameterImageInner = forwardRef9(
|
|
|
11860
11934
|
}
|
|
11861
11935
|
),
|
|
11862
11936
|
/* @__PURE__ */ jsxs50("div", { css: imageWrapper, children: [
|
|
11863
|
-
deferredValue && !errorMessage ? /* @__PURE__ */
|
|
11937
|
+
deferredValue && !errorMessage ? /* @__PURE__ */ jsx74(
|
|
11864
11938
|
"img",
|
|
11865
11939
|
{
|
|
11866
11940
|
src: deferredValue,
|
|
@@ -11870,24 +11944,24 @@ var ParameterImageInner = forwardRef9(
|
|
|
11870
11944
|
loading: "lazy"
|
|
11871
11945
|
}
|
|
11872
11946
|
) : null,
|
|
11873
|
-
deferredValue && errorMessage ? /* @__PURE__ */
|
|
11947
|
+
deferredValue && errorMessage ? /* @__PURE__ */ jsx74(BrokenImage, { css: img }) : null
|
|
11874
11948
|
] }),
|
|
11875
|
-
loading ? /* @__PURE__ */
|
|
11949
|
+
loading ? /* @__PURE__ */ jsx74(LoadingIcon, {}) : null
|
|
11876
11950
|
] });
|
|
11877
11951
|
}
|
|
11878
11952
|
);
|
|
11879
11953
|
|
|
11880
11954
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
11881
11955
|
import { forwardRef as forwardRef10 } from "react";
|
|
11882
|
-
import { jsx as
|
|
11956
|
+
import { jsx as jsx75 } from "@emotion/react/jsx-runtime";
|
|
11883
11957
|
var ParameterInput = forwardRef10((props, ref) => {
|
|
11884
11958
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
11885
|
-
return /* @__PURE__ */
|
|
11959
|
+
return /* @__PURE__ */ jsx75(ParameterShell, { "data-test-id": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx75(ParameterInputInner, { ref, ...innerProps }) });
|
|
11886
11960
|
});
|
|
11887
11961
|
var ParameterInputInner = forwardRef10(
|
|
11888
11962
|
({ ...props }, ref) => {
|
|
11889
11963
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
11890
|
-
return /* @__PURE__ */
|
|
11964
|
+
return /* @__PURE__ */ jsx75(
|
|
11891
11965
|
"input",
|
|
11892
11966
|
{
|
|
11893
11967
|
css: input2,
|
|
@@ -11904,18 +11978,18 @@ var ParameterInputInner = forwardRef10(
|
|
|
11904
11978
|
|
|
11905
11979
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
11906
11980
|
import { forwardRef as forwardRef11 } from "react";
|
|
11907
|
-
import { jsx as
|
|
11981
|
+
import { jsx as jsx76, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
11908
11982
|
var ParameterLink = forwardRef11(
|
|
11909
11983
|
({ buttonText = "Select project map node", disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
11910
11984
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
11911
|
-
return /* @__PURE__ */
|
|
11985
|
+
return /* @__PURE__ */ jsx76(
|
|
11912
11986
|
ParameterShell,
|
|
11913
11987
|
{
|
|
11914
|
-
"data-test-id": "parameter-
|
|
11988
|
+
"data-test-id": "link-parameter-editor",
|
|
11915
11989
|
...shellProps,
|
|
11916
11990
|
label: innerProps.value ? shellProps.label : "",
|
|
11917
11991
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
11918
|
-
children: !innerProps.value ? /* @__PURE__ */
|
|
11992
|
+
children: !innerProps.value ? /* @__PURE__ */ jsx76("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText }) : /* @__PURE__ */ jsx76(
|
|
11919
11993
|
ParameterLinkInner,
|
|
11920
11994
|
{
|
|
11921
11995
|
onConnectLink,
|
|
@@ -11932,7 +12006,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
11932
12006
|
({ externalLink, onConnectLink, disabled, ...props }, ref) => {
|
|
11933
12007
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
11934
12008
|
return /* @__PURE__ */ jsxs51("div", { css: inputWrapper, children: [
|
|
11935
|
-
/* @__PURE__ */
|
|
12009
|
+
/* @__PURE__ */ jsx76(
|
|
11936
12010
|
"input",
|
|
11937
12011
|
{
|
|
11938
12012
|
type: "text",
|
|
@@ -11944,7 +12018,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
11944
12018
|
...props
|
|
11945
12019
|
}
|
|
11946
12020
|
),
|
|
11947
|
-
/* @__PURE__ */
|
|
12021
|
+
/* @__PURE__ */ jsx76(
|
|
11948
12022
|
"button",
|
|
11949
12023
|
{
|
|
11950
12024
|
type: "button",
|
|
@@ -11955,7 +12029,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
11955
12029
|
children: "edit"
|
|
11956
12030
|
}
|
|
11957
12031
|
),
|
|
11958
|
-
externalLink ? /* @__PURE__ */
|
|
12032
|
+
externalLink ? /* @__PURE__ */ jsx76(
|
|
11959
12033
|
"a",
|
|
11960
12034
|
{
|
|
11961
12035
|
href: externalLink,
|
|
@@ -11963,7 +12037,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
11963
12037
|
title: "Open link in new tab",
|
|
11964
12038
|
target: "_blank",
|
|
11965
12039
|
rel: "noopener noreferrer",
|
|
11966
|
-
children: /* @__PURE__ */
|
|
12040
|
+
children: /* @__PURE__ */ jsx76(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
11967
12041
|
}
|
|
11968
12042
|
) : null
|
|
11969
12043
|
] });
|
|
@@ -11971,7 +12045,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
11971
12045
|
);
|
|
11972
12046
|
|
|
11973
12047
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
11974
|
-
import { Fragment as Fragment11, jsx as
|
|
12048
|
+
import { Fragment as Fragment11, jsx as jsx77, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
11975
12049
|
var ParameterNameAndPublicIdInput = ({
|
|
11976
12050
|
id,
|
|
11977
12051
|
onBlur,
|
|
@@ -11998,7 +12072,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
11998
12072
|
};
|
|
11999
12073
|
autoFocus == null ? void 0 : autoFocus();
|
|
12000
12074
|
return /* @__PURE__ */ jsxs52(Fragment11, { children: [
|
|
12001
|
-
/* @__PURE__ */
|
|
12075
|
+
/* @__PURE__ */ jsx77(
|
|
12002
12076
|
ParameterInput,
|
|
12003
12077
|
{
|
|
12004
12078
|
id: nameIdField,
|
|
@@ -12017,7 +12091,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
12017
12091
|
value: values[nameIdField]
|
|
12018
12092
|
}
|
|
12019
12093
|
),
|
|
12020
|
-
/* @__PURE__ */
|
|
12094
|
+
/* @__PURE__ */ jsx77(
|
|
12021
12095
|
ParameterInput,
|
|
12022
12096
|
{
|
|
12023
12097
|
id: publicIdFieldName,
|
|
@@ -12031,11 +12105,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
12031
12105
|
caption: publicIdCaption,
|
|
12032
12106
|
placeholder: publicIdPlaceholderText,
|
|
12033
12107
|
errorMessage: publicIdError,
|
|
12034
|
-
menuItems: /* @__PURE__ */
|
|
12108
|
+
menuItems: /* @__PURE__ */ jsx77(
|
|
12035
12109
|
MenuItem,
|
|
12036
12110
|
{
|
|
12037
12111
|
disabled: !values[publicIdFieldName],
|
|
12038
|
-
icon: /* @__PURE__ */
|
|
12112
|
+
icon: /* @__PURE__ */ jsx77(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
12039
12113
|
onClick: handleCopyPidFieldValue,
|
|
12040
12114
|
children: "Copy"
|
|
12041
12115
|
}
|
|
@@ -12043,13 +12117,13 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
12043
12117
|
value: values[publicIdFieldName]
|
|
12044
12118
|
}
|
|
12045
12119
|
),
|
|
12046
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
12120
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx77(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
12047
12121
|
] });
|
|
12048
12122
|
};
|
|
12049
12123
|
|
|
12050
12124
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
12051
12125
|
import { forwardRef as forwardRef12 } from "react";
|
|
12052
|
-
import { Fragment as Fragment12, jsx as
|
|
12126
|
+
import { Fragment as Fragment12, jsx as jsx78, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
12053
12127
|
var ParameterRichText = forwardRef12(
|
|
12054
12128
|
({
|
|
12055
12129
|
label,
|
|
@@ -12076,8 +12150,8 @@ var ParameterRichText = forwardRef12(
|
|
|
12076
12150
|
captionTestId,
|
|
12077
12151
|
menuItems,
|
|
12078
12152
|
children: [
|
|
12079
|
-
/* @__PURE__ */
|
|
12080
|
-
menuItems ? /* @__PURE__ */
|
|
12153
|
+
/* @__PURE__ */ jsx78(ParameterRichTextInner, { ref, ...props }),
|
|
12154
|
+
menuItems ? /* @__PURE__ */ jsx78(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx78(Fragment12, { children: menuItems }) }) : null
|
|
12081
12155
|
]
|
|
12082
12156
|
}
|
|
12083
12157
|
);
|
|
@@ -12085,7 +12159,7 @@ var ParameterRichText = forwardRef12(
|
|
|
12085
12159
|
);
|
|
12086
12160
|
var ParameterRichTextInner = forwardRef12(({ ...props }, ref) => {
|
|
12087
12161
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
12088
|
-
return /* @__PURE__ */
|
|
12162
|
+
return /* @__PURE__ */ jsx78(
|
|
12089
12163
|
"textarea",
|
|
12090
12164
|
{
|
|
12091
12165
|
css: [input2, textarea2],
|
|
@@ -12099,11 +12173,11 @@ var ParameterRichTextInner = forwardRef12(({ ...props }, ref) => {
|
|
|
12099
12173
|
|
|
12100
12174
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
12101
12175
|
import { forwardRef as forwardRef13 } from "react";
|
|
12102
|
-
import { jsx as
|
|
12176
|
+
import { jsx as jsx79, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
12103
12177
|
var ParameterSelect = forwardRef13(
|
|
12104
12178
|
({ defaultOption, options, ...props }, ref) => {
|
|
12105
12179
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
12106
|
-
return /* @__PURE__ */
|
|
12180
|
+
return /* @__PURE__ */ jsx79(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx79(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
12107
12181
|
}
|
|
12108
12182
|
);
|
|
12109
12183
|
var ParameterSelectInner = forwardRef13(
|
|
@@ -12118,10 +12192,10 @@ var ParameterSelectInner = forwardRef13(
|
|
|
12118
12192
|
ref,
|
|
12119
12193
|
...props,
|
|
12120
12194
|
children: [
|
|
12121
|
-
defaultOption ? /* @__PURE__ */
|
|
12195
|
+
defaultOption ? /* @__PURE__ */ jsx79("option", { value: "", children: defaultOption }) : null,
|
|
12122
12196
|
options.map((option) => {
|
|
12123
12197
|
var _a;
|
|
12124
|
-
return /* @__PURE__ */
|
|
12198
|
+
return /* @__PURE__ */ jsx79("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
12125
12199
|
})
|
|
12126
12200
|
]
|
|
12127
12201
|
}
|
|
@@ -12131,14 +12205,14 @@ var ParameterSelectInner = forwardRef13(
|
|
|
12131
12205
|
|
|
12132
12206
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
12133
12207
|
import { forwardRef as forwardRef14 } from "react";
|
|
12134
|
-
import { jsx as
|
|
12208
|
+
import { jsx as jsx80 } from "@emotion/react/jsx-runtime";
|
|
12135
12209
|
var ParameterTextarea = forwardRef14((props, ref) => {
|
|
12136
12210
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
12137
|
-
return /* @__PURE__ */
|
|
12211
|
+
return /* @__PURE__ */ jsx80(ParameterShell, { "data-test-id": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx80(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
12138
12212
|
});
|
|
12139
12213
|
var ParameterTextareaInner = forwardRef14(({ ...props }, ref) => {
|
|
12140
12214
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
12141
|
-
return /* @__PURE__ */
|
|
12215
|
+
return /* @__PURE__ */ jsx80(
|
|
12142
12216
|
"textarea",
|
|
12143
12217
|
{
|
|
12144
12218
|
css: [input2, textarea2],
|
|
@@ -12152,17 +12226,17 @@ var ParameterTextareaInner = forwardRef14(({ ...props }, ref) => {
|
|
|
12152
12226
|
|
|
12153
12227
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
12154
12228
|
import { forwardRef as forwardRef15 } from "react";
|
|
12155
|
-
import { jsx as
|
|
12229
|
+
import { jsx as jsx81, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
12156
12230
|
var ParameterToggle = forwardRef15((props, ref) => {
|
|
12157
12231
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
12158
|
-
return /* @__PURE__ */
|
|
12232
|
+
return /* @__PURE__ */ jsx81(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx81(ParameterToggleInner, { ref, ...innerProps }) });
|
|
12159
12233
|
});
|
|
12160
12234
|
var ParameterToggleInner = forwardRef15(
|
|
12161
12235
|
({ ...props }, ref) => {
|
|
12162
12236
|
const { id, label } = useParameterShell();
|
|
12163
12237
|
return /* @__PURE__ */ jsxs55("label", { css: inputToggleLabel2, children: [
|
|
12164
|
-
/* @__PURE__ */
|
|
12165
|
-
/* @__PURE__ */
|
|
12238
|
+
/* @__PURE__ */ jsx81("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
12239
|
+
/* @__PURE__ */ jsx81("span", { css: inlineLabel2, children: label })
|
|
12166
12240
|
] });
|
|
12167
12241
|
}
|
|
12168
12242
|
);
|
|
@@ -12176,13 +12250,13 @@ import {
|
|
|
12176
12250
|
import { Portal as Portal2 } from "reakit/Portal";
|
|
12177
12251
|
|
|
12178
12252
|
// src/components/Popover/Popover.styles.ts
|
|
12179
|
-
import { css as
|
|
12180
|
-
var PopoverBtn =
|
|
12253
|
+
import { css as css59 } from "@emotion/react";
|
|
12254
|
+
var PopoverBtn = css59`
|
|
12181
12255
|
border: none;
|
|
12182
12256
|
background: none;
|
|
12183
12257
|
padding: 0;
|
|
12184
12258
|
`;
|
|
12185
|
-
var Popover =
|
|
12259
|
+
var Popover = css59`
|
|
12186
12260
|
border-left: var(--spacing-xs) solid var(--brand-secondary-3);
|
|
12187
12261
|
border-radius: var(--rounded-base);
|
|
12188
12262
|
box-shadow: var(--shadow-base);
|
|
@@ -12195,7 +12269,7 @@ var Popover = css57`
|
|
|
12195
12269
|
`;
|
|
12196
12270
|
|
|
12197
12271
|
// src/components/Popover/Popover.tsx
|
|
12198
|
-
import { Fragment as Fragment13, jsx as
|
|
12272
|
+
import { Fragment as Fragment13, jsx as jsx82, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
12199
12273
|
var Popover2 = ({
|
|
12200
12274
|
iconColor = "green",
|
|
12201
12275
|
buttonText,
|
|
@@ -12206,26 +12280,26 @@ var Popover2 = ({
|
|
|
12206
12280
|
const popover = usePopoverState({ placement });
|
|
12207
12281
|
return /* @__PURE__ */ jsxs56(Fragment13, { children: [
|
|
12208
12282
|
/* @__PURE__ */ jsxs56(PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, children: [
|
|
12209
|
-
/* @__PURE__ */
|
|
12210
|
-
/* @__PURE__ */
|
|
12283
|
+
/* @__PURE__ */ jsx82(Icon, { icon: "info", iconColor, size: "1rem" }),
|
|
12284
|
+
/* @__PURE__ */ jsx82("span", { hidden: true, children: buttonText })
|
|
12211
12285
|
] }),
|
|
12212
|
-
/* @__PURE__ */
|
|
12286
|
+
/* @__PURE__ */ jsx82(Portal2, { children: /* @__PURE__ */ jsx82(ReakitPopover, { css: Popover, ...popover, "aria-label": ariaLabel, children }) })
|
|
12213
12287
|
] });
|
|
12214
12288
|
};
|
|
12215
12289
|
|
|
12216
12290
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
12217
|
-
import { css as
|
|
12291
|
+
import { css as css60, keyframes as keyframes4 } from "@emotion/react";
|
|
12218
12292
|
var lightFadingOut = keyframes4`
|
|
12219
12293
|
from { opacity: 0.1; }
|
|
12220
12294
|
to { opacity: 0.025; }
|
|
12221
12295
|
`;
|
|
12222
|
-
var skeletonStyles =
|
|
12296
|
+
var skeletonStyles = css60`
|
|
12223
12297
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
12224
12298
|
background-color: var(--gray-900);
|
|
12225
12299
|
`;
|
|
12226
12300
|
|
|
12227
12301
|
// src/components/Skeleton/Skeleton.tsx
|
|
12228
|
-
import { jsx as
|
|
12302
|
+
import { jsx as jsx83 } from "@emotion/react/jsx-runtime";
|
|
12229
12303
|
var Skeleton = ({
|
|
12230
12304
|
width = "100%",
|
|
12231
12305
|
height = "1.25rem",
|
|
@@ -12233,7 +12307,7 @@ var Skeleton = ({
|
|
|
12233
12307
|
circle = false,
|
|
12234
12308
|
children,
|
|
12235
12309
|
...otherProps
|
|
12236
|
-
}) => /* @__PURE__ */
|
|
12310
|
+
}) => /* @__PURE__ */ jsx83(
|
|
12237
12311
|
"div",
|
|
12238
12312
|
{
|
|
12239
12313
|
css: [
|
|
@@ -12256,8 +12330,8 @@ var Skeleton = ({
|
|
|
12256
12330
|
import * as React15 from "react";
|
|
12257
12331
|
|
|
12258
12332
|
// src/components/Switch/Switch.styles.ts
|
|
12259
|
-
import { css as
|
|
12260
|
-
var SwitchInputContainer =
|
|
12333
|
+
import { css as css61 } from "@emotion/react";
|
|
12334
|
+
var SwitchInputContainer = css61`
|
|
12261
12335
|
cursor: pointer;
|
|
12262
12336
|
display: inline-block;
|
|
12263
12337
|
position: relative;
|
|
@@ -12266,7 +12340,7 @@ var SwitchInputContainer = css59`
|
|
|
12266
12340
|
vertical-align: middle;
|
|
12267
12341
|
user-select: none;
|
|
12268
12342
|
`;
|
|
12269
|
-
var SwitchInput =
|
|
12343
|
+
var SwitchInput = css61`
|
|
12270
12344
|
appearance: none;
|
|
12271
12345
|
border-radius: var(--rounded-full);
|
|
12272
12346
|
background-color: var(--white);
|
|
@@ -12304,7 +12378,7 @@ var SwitchInput = css59`
|
|
|
12304
12378
|
cursor: not-allowed;
|
|
12305
12379
|
}
|
|
12306
12380
|
`;
|
|
12307
|
-
var SwitchInputDisabled =
|
|
12381
|
+
var SwitchInputDisabled = css61`
|
|
12308
12382
|
opacity: var(--opacity-50);
|
|
12309
12383
|
cursor: not-allowed;
|
|
12310
12384
|
|
|
@@ -12312,7 +12386,7 @@ var SwitchInputDisabled = css59`
|
|
|
12312
12386
|
cursor: not-allowed;
|
|
12313
12387
|
}
|
|
12314
12388
|
`;
|
|
12315
|
-
var SwitchInputLabel =
|
|
12389
|
+
var SwitchInputLabel = css61`
|
|
12316
12390
|
align-items: center;
|
|
12317
12391
|
color: var(--brand-secondary-1);
|
|
12318
12392
|
display: inline-flex;
|
|
@@ -12334,14 +12408,14 @@ var SwitchInputLabel = css59`
|
|
|
12334
12408
|
top: 0;
|
|
12335
12409
|
}
|
|
12336
12410
|
`;
|
|
12337
|
-
var SwitchText =
|
|
12411
|
+
var SwitchText = css61`
|
|
12338
12412
|
color: var(--gray-500);
|
|
12339
12413
|
font-size: var(--fs-sm);
|
|
12340
12414
|
padding-inline: var(--spacing-2xl) 0;
|
|
12341
12415
|
`;
|
|
12342
12416
|
|
|
12343
12417
|
// src/components/Switch/Switch.tsx
|
|
12344
|
-
import { Fragment as Fragment14, jsx as
|
|
12418
|
+
import { Fragment as Fragment14, jsx as jsx84, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
|
|
12345
12419
|
var Switch = React15.forwardRef(
|
|
12346
12420
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
12347
12421
|
let additionalText = infoText;
|
|
@@ -12350,10 +12424,10 @@ var Switch = React15.forwardRef(
|
|
|
12350
12424
|
}
|
|
12351
12425
|
return /* @__PURE__ */ jsxs57(Fragment14, { children: [
|
|
12352
12426
|
/* @__PURE__ */ jsxs57("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
12353
|
-
/* @__PURE__ */
|
|
12354
|
-
/* @__PURE__ */
|
|
12427
|
+
/* @__PURE__ */ jsx84("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
12428
|
+
/* @__PURE__ */ jsx84("span", { css: SwitchInputLabel, children: label })
|
|
12355
12429
|
] }),
|
|
12356
|
-
additionalText ? /* @__PURE__ */
|
|
12430
|
+
additionalText ? /* @__PURE__ */ jsx84("p", { css: SwitchText, children: additionalText }) : null,
|
|
12357
12431
|
children
|
|
12358
12432
|
] });
|
|
12359
12433
|
}
|
|
@@ -12363,64 +12437,64 @@ var Switch = React15.forwardRef(
|
|
|
12363
12437
|
import * as React16 from "react";
|
|
12364
12438
|
|
|
12365
12439
|
// src/components/Table/Table.styles.ts
|
|
12366
|
-
import { css as
|
|
12367
|
-
var table =
|
|
12440
|
+
import { css as css62 } from "@emotion/react";
|
|
12441
|
+
var table = css62`
|
|
12368
12442
|
border-bottom: 1px solid var(--gray-400);
|
|
12369
12443
|
border-collapse: collapse;
|
|
12370
12444
|
min-width: 100%;
|
|
12371
12445
|
table-layout: auto;
|
|
12372
12446
|
`;
|
|
12373
|
-
var tableHead =
|
|
12447
|
+
var tableHead = css62`
|
|
12374
12448
|
background: var(--gray-100);
|
|
12375
12449
|
color: var(--brand-secondary-1);
|
|
12376
12450
|
text-align: left;
|
|
12377
12451
|
`;
|
|
12378
|
-
var tableRow =
|
|
12452
|
+
var tableRow = css62`
|
|
12379
12453
|
border-bottom: 1px solid var(--gray-200);
|
|
12380
12454
|
`;
|
|
12381
|
-
var tableCellHead =
|
|
12455
|
+
var tableCellHead = css62`
|
|
12382
12456
|
font-size: var(--fs-sm);
|
|
12383
12457
|
padding: var(--spacing-base) var(--spacing-md);
|
|
12384
12458
|
text-transform: uppercase;
|
|
12385
12459
|
font-weight: var(--fw-bold);
|
|
12386
12460
|
`;
|
|
12387
|
-
var tableCellData =
|
|
12461
|
+
var tableCellData = css62`
|
|
12388
12462
|
padding: var(--spacing-base) var(--spacing-md);
|
|
12389
12463
|
`;
|
|
12390
12464
|
|
|
12391
12465
|
// src/components/Table/Table.tsx
|
|
12392
|
-
import { jsx as
|
|
12466
|
+
import { jsx as jsx85 } from "@emotion/react/jsx-runtime";
|
|
12393
12467
|
var Table = React16.forwardRef(({ children, ...otherProps }, ref) => {
|
|
12394
|
-
return /* @__PURE__ */
|
|
12468
|
+
return /* @__PURE__ */ jsx85("table", { ref, css: table, ...otherProps, children });
|
|
12395
12469
|
});
|
|
12396
12470
|
var TableHead = React16.forwardRef(
|
|
12397
12471
|
({ children, ...otherProps }, ref) => {
|
|
12398
|
-
return /* @__PURE__ */
|
|
12472
|
+
return /* @__PURE__ */ jsx85("thead", { ref, css: tableHead, ...otherProps, children });
|
|
12399
12473
|
}
|
|
12400
12474
|
);
|
|
12401
12475
|
var TableBody = React16.forwardRef(
|
|
12402
12476
|
({ children, ...otherProps }, ref) => {
|
|
12403
|
-
return /* @__PURE__ */
|
|
12477
|
+
return /* @__PURE__ */ jsx85("tbody", { ref, ...otherProps, children });
|
|
12404
12478
|
}
|
|
12405
12479
|
);
|
|
12406
12480
|
var TableFoot = React16.forwardRef(
|
|
12407
12481
|
({ children, ...otherProps }, ref) => {
|
|
12408
|
-
return /* @__PURE__ */
|
|
12482
|
+
return /* @__PURE__ */ jsx85("tfoot", { ref, ...otherProps, children });
|
|
12409
12483
|
}
|
|
12410
12484
|
);
|
|
12411
12485
|
var TableRow = React16.forwardRef(
|
|
12412
12486
|
({ children, ...otherProps }, ref) => {
|
|
12413
|
-
return /* @__PURE__ */
|
|
12487
|
+
return /* @__PURE__ */ jsx85("tr", { ref, css: tableRow, ...otherProps, children });
|
|
12414
12488
|
}
|
|
12415
12489
|
);
|
|
12416
12490
|
var TableCellHead = React16.forwardRef(
|
|
12417
12491
|
({ children, ...otherProps }, ref) => {
|
|
12418
|
-
return /* @__PURE__ */
|
|
12492
|
+
return /* @__PURE__ */ jsx85("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
12419
12493
|
}
|
|
12420
12494
|
);
|
|
12421
12495
|
var TableCellData = React16.forwardRef(
|
|
12422
12496
|
({ children, ...otherProps }, ref) => {
|
|
12423
|
-
return /* @__PURE__ */
|
|
12497
|
+
return /* @__PURE__ */ jsx85("td", { ref, css: tableCellData, ...otherProps, children });
|
|
12424
12498
|
}
|
|
12425
12499
|
);
|
|
12426
12500
|
|
|
@@ -12434,8 +12508,8 @@ import {
|
|
|
12434
12508
|
} from "reakit/Tab";
|
|
12435
12509
|
|
|
12436
12510
|
// src/components/Tabs/Tabs.styles.ts
|
|
12437
|
-
import { css as
|
|
12438
|
-
var tabButtonStyles =
|
|
12511
|
+
import { css as css63 } from "@emotion/react";
|
|
12512
|
+
var tabButtonStyles = css63`
|
|
12439
12513
|
align-items: center;
|
|
12440
12514
|
border: 0;
|
|
12441
12515
|
height: 2.5rem;
|
|
@@ -12452,14 +12526,14 @@ var tabButtonStyles = css61`
|
|
|
12452
12526
|
-webkit-text-stroke-width: thin;
|
|
12453
12527
|
}
|
|
12454
12528
|
`;
|
|
12455
|
-
var tabButtonGroupStyles =
|
|
12529
|
+
var tabButtonGroupStyles = css63`
|
|
12456
12530
|
display: flex;
|
|
12457
12531
|
gap: var(--spacing-base);
|
|
12458
12532
|
border-bottom: 1px solid var(--gray-300);
|
|
12459
12533
|
`;
|
|
12460
12534
|
|
|
12461
12535
|
// src/components/Tabs/Tabs.tsx
|
|
12462
|
-
import { jsx as
|
|
12536
|
+
import { jsx as jsx86 } from "@emotion/react/jsx-runtime";
|
|
12463
12537
|
var CurrentTabContext = createContext6(null);
|
|
12464
12538
|
var useCurrentTab = () => {
|
|
12465
12539
|
const context = useContext7(CurrentTabContext);
|
|
@@ -12488,29 +12562,28 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
12488
12562
|
tab.setSelectedId(selected);
|
|
12489
12563
|
}
|
|
12490
12564
|
}, [selected]);
|
|
12491
|
-
return /* @__PURE__ */
|
|
12565
|
+
return /* @__PURE__ */ jsx86(CurrentTabContext.Provider, { value: tab, children });
|
|
12492
12566
|
};
|
|
12493
12567
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
12494
12568
|
const currentTab = useCurrentTab();
|
|
12495
|
-
return /* @__PURE__ */
|
|
12569
|
+
return /* @__PURE__ */ jsx86(ReakitTabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
12496
12570
|
};
|
|
12497
12571
|
var TabButton = ({ children, id, ...props }) => {
|
|
12498
12572
|
const currentTab = useCurrentTab();
|
|
12499
|
-
return /* @__PURE__ */
|
|
12573
|
+
return /* @__PURE__ */ jsx86(ReakitTab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
12500
12574
|
};
|
|
12501
12575
|
var TabContent = ({ children, ...props }) => {
|
|
12502
12576
|
const currentTab = useCurrentTab();
|
|
12503
|
-
return /* @__PURE__ */
|
|
12577
|
+
return /* @__PURE__ */ jsx86(ReakitTabPanel, { ...props, ...currentTab, children });
|
|
12504
12578
|
};
|
|
12505
12579
|
|
|
12506
12580
|
// src/components/Validation/StatusBullet.styles.ts
|
|
12507
|
-
import { css as
|
|
12508
|
-
var StatusBulletContainer =
|
|
12581
|
+
import { css as css64 } from "@emotion/react";
|
|
12582
|
+
var StatusBulletContainer = css64`
|
|
12509
12583
|
align-items: center;
|
|
12510
12584
|
align-self: center;
|
|
12511
12585
|
color: var(--gray-500);
|
|
12512
12586
|
display: inline-flex;
|
|
12513
|
-
font-size: var(--fs-sm);
|
|
12514
12587
|
font-weight: var(--fw-regular);
|
|
12515
12588
|
gap: var(--spacing-xs);
|
|
12516
12589
|
line-height: 1;
|
|
@@ -12521,52 +12594,60 @@ var StatusBulletContainer = css62`
|
|
|
12521
12594
|
border-radius: var(--rounded-full);
|
|
12522
12595
|
content: '';
|
|
12523
12596
|
display: block;
|
|
12597
|
+
}
|
|
12598
|
+
`;
|
|
12599
|
+
var StatusBulletBase = css64`
|
|
12600
|
+
font-size: var(--fs-sm);
|
|
12601
|
+
&:before {
|
|
12524
12602
|
width: var(--fs-xs);
|
|
12525
12603
|
height: var(--fs-xs);
|
|
12526
12604
|
}
|
|
12527
12605
|
`;
|
|
12528
|
-
var
|
|
12606
|
+
var StatusBulletSmall = css64`
|
|
12607
|
+
font-size: var(--fs-xs);
|
|
12608
|
+
&:before {
|
|
12609
|
+
width: var(--fs-xxs);
|
|
12610
|
+
height: var(--fs-xxs);
|
|
12611
|
+
}
|
|
12612
|
+
`;
|
|
12613
|
+
var StatusDraft = css64`
|
|
12529
12614
|
&:before {
|
|
12530
12615
|
background: var(--white);
|
|
12531
12616
|
box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
|
|
12532
12617
|
}
|
|
12533
12618
|
`;
|
|
12534
|
-
var StatusModified =
|
|
12619
|
+
var StatusModified = css64`
|
|
12535
12620
|
&:before {
|
|
12536
12621
|
background: linear-gradient(to right, var(--white) 50%, var(--brand-primary-1) 50% 100%);
|
|
12537
12622
|
box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
|
|
12538
12623
|
}
|
|
12539
12624
|
`;
|
|
12540
|
-
var StatusError =
|
|
12625
|
+
var StatusError = css64`
|
|
12541
12626
|
color: var(--error);
|
|
12542
12627
|
&:before {
|
|
12543
|
-
background: var(--error);
|
|
12544
|
-
}
|
|
12545
|
-
&:after {
|
|
12546
|
-
background: var(--white);
|
|
12547
|
-
content: '';
|
|
12548
|
-
display: block;
|
|
12549
|
-
width: var(--fs-xxs);
|
|
12550
|
-
height: 0.12rem;
|
|
12551
|
-
width: 100%;
|
|
12552
|
-
position: absolute;
|
|
12553
|
-
rotate: -45deg;
|
|
12628
|
+
background: linear-gradient(120deg, var(--error) 40%, var(--white) 50%, var(--error) 60%);
|
|
12554
12629
|
}
|
|
12555
12630
|
`;
|
|
12556
|
-
var StatusPublished =
|
|
12631
|
+
var StatusPublished = css64`
|
|
12557
12632
|
&:before {
|
|
12558
12633
|
background: var(--brand-secondary-3);
|
|
12559
12634
|
}
|
|
12560
12635
|
`;
|
|
12561
|
-
var StatusOrphan =
|
|
12636
|
+
var StatusOrphan = css64`
|
|
12562
12637
|
&:before {
|
|
12563
12638
|
background: var(--brand-secondary-5);
|
|
12564
12639
|
}
|
|
12565
12640
|
`;
|
|
12566
12641
|
|
|
12567
12642
|
// src/components/Validation/StatusBullet.tsx
|
|
12568
|
-
import { jsx as
|
|
12569
|
-
var StatusBullet = ({
|
|
12643
|
+
import { jsx as jsx87 } from "@emotion/react/jsx-runtime";
|
|
12644
|
+
var StatusBullet = ({
|
|
12645
|
+
status,
|
|
12646
|
+
hideText = false,
|
|
12647
|
+
size = "base",
|
|
12648
|
+
message,
|
|
12649
|
+
...props
|
|
12650
|
+
}) => {
|
|
12570
12651
|
const currentStateStyles = {
|
|
12571
12652
|
Error: StatusError,
|
|
12572
12653
|
Modified: StatusModified,
|
|
@@ -12575,10 +12656,12 @@ var StatusBullet = ({ status, hideText = false, message, ...props }) => {
|
|
|
12575
12656
|
Published: StatusPublished,
|
|
12576
12657
|
Draft: StatusDraft
|
|
12577
12658
|
};
|
|
12578
|
-
|
|
12659
|
+
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
12660
|
+
return /* @__PURE__ */ jsx87(
|
|
12579
12661
|
"span",
|
|
12580
12662
|
{
|
|
12581
|
-
|
|
12663
|
+
role: "status",
|
|
12664
|
+
css: [StatusBulletContainer, currentStateStyles[status], statusSize],
|
|
12582
12665
|
title: message != null ? message : status,
|
|
12583
12666
|
...props,
|
|
12584
12667
|
children: hideText ? null : message ? message : status
|
|
@@ -12598,6 +12681,7 @@ export {
|
|
|
12598
12681
|
CardContainer2 as CardContainer,
|
|
12599
12682
|
CheckboxWithInfo,
|
|
12600
12683
|
ConnectToDataElementButton,
|
|
12684
|
+
Container2 as Container,
|
|
12601
12685
|
Counter,
|
|
12602
12686
|
CreateTeamIntegrationTile,
|
|
12603
12687
|
DashedBox,
|
|
@@ -12692,6 +12776,7 @@ export {
|
|
|
12692
12776
|
Tooltip,
|
|
12693
12777
|
UniformBadge,
|
|
12694
12778
|
UniformLogo,
|
|
12779
|
+
VerticalRhythm,
|
|
12695
12780
|
WarningMessage,
|
|
12696
12781
|
breakpoints,
|
|
12697
12782
|
button,
|
|
@@ -12723,6 +12808,7 @@ export {
|
|
|
12723
12808
|
skeletonLoading,
|
|
12724
12809
|
supports,
|
|
12725
12810
|
useBreakpoint,
|
|
12811
|
+
useCloseCurrentDrawer,
|
|
12726
12812
|
useCurrentDrawerRenderer,
|
|
12727
12813
|
useCurrentTab,
|
|
12728
12814
|
useDrawer,
|