@uniformdev/design-system 19.55.1-alpha.8 → 19.55.2-alpha.14
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 +501 -420
- package/dist/index.d.mts +23 -7
- package/dist/index.d.ts +23 -7
- package/dist/index.js +568 -489
- package/package.json +9 -11
package/dist/esm/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import "./chunk-6NI3O2RY.js";
|
|
|
2
2
|
|
|
3
3
|
// src/styles/Theme.tsx
|
|
4
4
|
import { Fragment, jsx as jsx2, jsxs } from "@emotion/react/jsx-runtime";
|
|
5
|
-
var Theme = ({ disableReset = false }) => {
|
|
5
|
+
var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
|
|
6
6
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7
7
|
/* @__PURE__ */ jsx2(
|
|
8
8
|
"link",
|
|
@@ -27,7 +27,7 @@ var Theme = ({ disableReset = false }) => {
|
|
|
27
27
|
{
|
|
28
28
|
dangerouslySetInnerHTML: {
|
|
29
29
|
__html: `
|
|
30
|
-
:root {
|
|
30
|
+
:root, :host {
|
|
31
31
|
--brand-primary-1: #438fd5; /* bright blue */
|
|
32
32
|
--brand-primary-2: #f4220b; /* red */
|
|
33
33
|
--brand-primary-3: #83c6e1; /* slate blue */
|
|
@@ -68,7 +68,7 @@ var Theme = ({ disableReset = false }) => {
|
|
|
68
68
|
--tertiary-action-hover: var(--gray-600);
|
|
69
69
|
--tertiary-action-active: var(--gray-50);
|
|
70
70
|
--tertiary-action-disabled: var(--gray-400);
|
|
71
|
-
|
|
71
|
+
|
|
72
72
|
/* accent dark */
|
|
73
73
|
--accent-dark: var(--purple-rain-500);
|
|
74
74
|
--accent-dark-hover: var(--purple-rain-400);
|
|
@@ -134,10 +134,11 @@ var Theme = ({ disableReset = false }) => {
|
|
|
134
134
|
--prose: 65ch;
|
|
135
135
|
|
|
136
136
|
/* brand shadow styles */
|
|
137
|
-
--shadow-sm: rgba(
|
|
138
|
-
--shadow-base: rgba(
|
|
139
|
-
rgba(
|
|
140
|
-
--shadow-md: 0px 4px 4px rgba(
|
|
137
|
+
--shadow-sm: rgba(31, 43, 52, 0.05) 0px 0px 0px 1px;
|
|
138
|
+
--shadow-base: rgba(31, 43, 52, 0.25) 0 2px 5px -1px,
|
|
139
|
+
rgba(31, 43, 52, 0.3) 0px 1px 3px -1px;
|
|
140
|
+
--shadow-md: 0px 4px 4px rgba(31, 43, 52, 0.25), 0 2px 4px -2px rgba(31, 43, 52, 0.1);
|
|
141
|
+
--shadow-xl: 0px 0px 24px rgba(31, 43, 52, 0.3);
|
|
141
142
|
|
|
142
143
|
/* rounder corners */
|
|
143
144
|
--rounded-sm: 0.125rem; /* 2px */
|
|
@@ -193,64 +194,71 @@ var Theme = ({ disableReset = false }) => {
|
|
|
193
194
|
--duration-fast: 0.25s;
|
|
194
195
|
--duration-xfast: 0.15s;
|
|
195
196
|
}
|
|
196
|
-
|
|
197
|
-
html,
|
|
198
|
-
body {
|
|
199
|
-
color: var(--brand-secondary-1);
|
|
200
|
-
font-family: var(--ff-base);
|
|
201
|
-
scroll-behavior: smooth;
|
|
202
|
-
font-weight: var(--fw-regular);
|
|
203
|
-
line-height: 1.5;
|
|
197
|
+
`
|
|
204
198
|
}
|
|
199
|
+
}
|
|
200
|
+
),
|
|
201
|
+
disableGlobalReset ? null : /* @__PURE__ */ jsx2(
|
|
202
|
+
"style",
|
|
203
|
+
{
|
|
204
|
+
dangerouslySetInnerHTML: {
|
|
205
|
+
__html: `
|
|
206
|
+
html, body, :host {
|
|
207
|
+
color: var(--brand-secondary-1);
|
|
208
|
+
font-family: var(--ff-base);
|
|
209
|
+
scroll-behavior: smooth;
|
|
210
|
+
font-weight: var(--fw-regular);
|
|
211
|
+
line-height: 1.5;
|
|
212
|
+
}
|
|
205
213
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
214
|
+
li {
|
|
215
|
+
line-height: 1.5rem;
|
|
216
|
+
}
|
|
209
217
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
218
|
+
a, button {
|
|
219
|
+
cursor: pointer;
|
|
220
|
+
}
|
|
213
221
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
222
|
+
fieldset {
|
|
223
|
+
border: 0;
|
|
224
|
+
padding: 0;
|
|
225
|
+
margin: 0;
|
|
226
|
+
min-width: 0;
|
|
227
|
+
}
|
|
220
228
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
229
|
+
legend {
|
|
230
|
+
margin: 0;
|
|
231
|
+
padding: 0;
|
|
232
|
+
}
|
|
225
233
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
234
|
+
button, input, optgroup, select, textarea {
|
|
235
|
+
font-family: inherit;
|
|
236
|
+
font-size: inherit;
|
|
237
|
+
color: inherit;
|
|
238
|
+
line-height: 1.25rem;
|
|
239
|
+
}
|
|
232
240
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
241
|
+
[role=button], button {
|
|
242
|
+
cursor: pointer;
|
|
243
|
+
}
|
|
236
244
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
245
|
+
audio, canvas, embed, iframe, img, object, svg, video {
|
|
246
|
+
display: block;
|
|
247
|
+
vertical-align: middle;
|
|
248
|
+
}
|
|
241
249
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
250
|
+
pre {
|
|
251
|
+
white-space: pre;
|
|
252
|
+
}
|
|
245
253
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
254
|
+
*:where(ul, ol) {
|
|
255
|
+
all: unset;
|
|
256
|
+
}
|
|
249
257
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
258
|
+
ul, ol {
|
|
259
|
+
list-style: none;
|
|
260
|
+
}
|
|
261
|
+
`
|
|
254
262
|
}
|
|
255
263
|
}
|
|
256
264
|
)
|
|
@@ -272,7 +280,7 @@ var supports = (cssProp) => `@supports (${cssProp})`;
|
|
|
272
280
|
var cq = (size) => `@container (min-width: ${size})`;
|
|
273
281
|
|
|
274
282
|
// src/utils/replaceUnderscoreInString.ts
|
|
275
|
-
var replaceUnderscoreInString = (
|
|
283
|
+
var replaceUnderscoreInString = (title2) => (title2 == null ? void 0 : title2.includes("_")) ? title2.replaceAll("_", " ") : title2;
|
|
276
284
|
|
|
277
285
|
// src/utils/url.ts
|
|
278
286
|
var isSecureURL = (value = "") => {
|
|
@@ -386,7 +394,7 @@ var buttonAccentAltDarkOutline = css`
|
|
|
386
394
|
transition: box-shadow var(--duration-fast) var(--timing-ease-out);
|
|
387
395
|
|
|
388
396
|
&:hover {
|
|
389
|
-
color: var(--
|
|
397
|
+
color: var(--accent-alt-dark-hover);
|
|
390
398
|
}
|
|
391
399
|
|
|
392
400
|
&:disabled {
|
|
@@ -554,7 +562,7 @@ var buttonGhostUnimportant = css`
|
|
|
554
562
|
color: var(--gray-400);
|
|
555
563
|
}
|
|
556
564
|
|
|
557
|
-
${buttonRippleEffect({ hoverColor: "var(--
|
|
565
|
+
${buttonRippleEffect({ hoverColor: "var(--brand-secondary-2)", activeColor: "var(--gray-100)" })}
|
|
558
566
|
`;
|
|
559
567
|
|
|
560
568
|
// src/components/Input/styles/Inputs.styles.ts
|
|
@@ -2264,7 +2272,7 @@ var IntegrationHeaderSectionHexImage = ({ ...props }) => {
|
|
|
2264
2272
|
] });
|
|
2265
2273
|
};
|
|
2266
2274
|
var IntegrationHeaderSection = ({
|
|
2267
|
-
title,
|
|
2275
|
+
title: title2,
|
|
2268
2276
|
description,
|
|
2269
2277
|
icon,
|
|
2270
2278
|
docsLink,
|
|
@@ -2279,10 +2287,10 @@ var IntegrationHeaderSection = ({
|
|
|
2279
2287
|
/* @__PURE__ */ jsxs5("div", { css: IntegrationHeaderSectionTitleContainer, children: [
|
|
2280
2288
|
icon ? /* @__PURE__ */ jsxs5("div", { css: IntegrationHeaderSectionIconContainer, children: [
|
|
2281
2289
|
/* @__PURE__ */ jsx13(IntegrationHeaderSectionHexImage, { css: IntegrationHeaderSectionHexIcon }),
|
|
2282
|
-
CompIcon ? /* @__PURE__ */ jsx13(CompIcon, { css: IntegrationHeaderSectionIcon }) : icon ? /* @__PURE__ */ jsx13("img", { src: icon, alt:
|
|
2290
|
+
CompIcon ? /* @__PURE__ */ jsx13(CompIcon, { css: IntegrationHeaderSectionIcon }) : icon ? /* @__PURE__ */ jsx13("img", { src: icon, alt: title2, css: IntegrationHeaderSectionIcon }) : null
|
|
2283
2291
|
] }) : null,
|
|
2284
2292
|
/* @__PURE__ */ jsxs5("div", { css: IntegrationHeaderSectionTitleGroup, "data-testid": "integration-header-text", children: [
|
|
2285
|
-
/* @__PURE__ */ jsx13("h1", { css: IntegrationHeaderSectionTitle, children:
|
|
2293
|
+
/* @__PURE__ */ jsx13("h1", { css: IntegrationHeaderSectionTitle, children: title2 }),
|
|
2286
2294
|
badgeText ? /* @__PURE__ */ jsx13(Badge, { text: badgeText }) : null,
|
|
2287
2295
|
menu2 ? /* @__PURE__ */ jsx13("div", { children: menu2 }) : null,
|
|
2288
2296
|
docsLink ? /* @__PURE__ */ jsx13(
|
|
@@ -2382,7 +2390,7 @@ var PageHeaderSectionTitle = css15`
|
|
|
2382
2390
|
// src/components/Typography/PageHeaderSection.tsx
|
|
2383
2391
|
import { jsx as jsx14, jsxs as jsxs6 } from "@emotion/react/jsx-runtime";
|
|
2384
2392
|
var PageHeaderSection = ({
|
|
2385
|
-
title,
|
|
2393
|
+
title: title2,
|
|
2386
2394
|
desc,
|
|
2387
2395
|
children,
|
|
2388
2396
|
linkText,
|
|
@@ -2409,7 +2417,7 @@ var PageHeaderSection = ({
|
|
|
2409
2417
|
}
|
|
2410
2418
|
)
|
|
2411
2419
|
] }) : null,
|
|
2412
|
-
/* @__PURE__ */ jsx14(Heading, { level, css: PageHeaderSectionTitle, ...htmlProps, "data-testid": "page-header-section", children:
|
|
2420
|
+
/* @__PURE__ */ jsx14(Heading, { level, css: PageHeaderSectionTitle, ...htmlProps, "data-testid": "page-header-section", children: title2 }),
|
|
2413
2421
|
desc
|
|
2414
2422
|
] }),
|
|
2415
2423
|
children ? /* @__PURE__ */ jsx14("div", { css: PageHeaderSectionChildContainer, children }) : null
|
|
@@ -2504,7 +2512,7 @@ var InlineAlertParagraph = css16`
|
|
|
2504
2512
|
import { jsx as jsx15, jsxs as jsxs7 } from "@emotion/react/jsx-runtime";
|
|
2505
2513
|
var InlineAlert = ({
|
|
2506
2514
|
id,
|
|
2507
|
-
title,
|
|
2515
|
+
title: title2,
|
|
2508
2516
|
text,
|
|
2509
2517
|
arrowPosition = "left-top",
|
|
2510
2518
|
positionCss,
|
|
@@ -2512,7 +2520,7 @@ var InlineAlert = ({
|
|
|
2512
2520
|
}) => {
|
|
2513
2521
|
return /* @__PURE__ */ jsxs7("div", { role: "alert", id, css: [InlineAlertContainer, InlineAlertTriangle(arrowPosition), positionCss], children: [
|
|
2514
2522
|
/* @__PURE__ */ jsx15("button", { type: "button", "aria-controls": id, title: "close alert", css: InlineAlertCloseBtn, ...btnProps, children: /* @__PURE__ */ jsx15(Icon, { icon: CgClose, iconColor: "currentColor", size: 24 }) }),
|
|
2515
|
-
/* @__PURE__ */ jsx15(Heading, { level: 3, css: InlineAlertTitle, children:
|
|
2523
|
+
/* @__PURE__ */ jsx15(Heading, { level: 3, css: InlineAlertTitle, children: title2 }),
|
|
2516
2524
|
/* @__PURE__ */ jsx15("p", { css: InlineAlertParagraph, children: text })
|
|
2517
2525
|
] });
|
|
2518
2526
|
};
|
|
@@ -11005,14 +11013,31 @@ var TooltipArrowStyles = css17`
|
|
|
11005
11013
|
|
|
11006
11014
|
// src/components/Tooltip/Tooltip.tsx
|
|
11007
11015
|
import { Fragment as Fragment4, jsx as jsx17, jsxs as jsxs8 } from "@emotion/react/jsx-runtime";
|
|
11008
|
-
function Tooltip({
|
|
11016
|
+
function Tooltip({
|
|
11017
|
+
children,
|
|
11018
|
+
title: title2,
|
|
11019
|
+
placement = "bottom",
|
|
11020
|
+
visible,
|
|
11021
|
+
withoutPortal = false,
|
|
11022
|
+
...props
|
|
11023
|
+
}) {
|
|
11009
11024
|
const tooltip = useTooltipState({ placement });
|
|
11010
|
-
return !
|
|
11025
|
+
return !title2 ? children : /* @__PURE__ */ jsxs8(Fragment4, { children: [
|
|
11011
11026
|
/* @__PURE__ */ jsx17(TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => React5.cloneElement(children, referenceProps) }),
|
|
11012
|
-
/* @__PURE__ */ jsxs8(
|
|
11013
|
-
|
|
11014
|
-
|
|
11015
|
-
|
|
11027
|
+
/* @__PURE__ */ jsxs8(
|
|
11028
|
+
ReakitTooltip,
|
|
11029
|
+
{
|
|
11030
|
+
...tooltip,
|
|
11031
|
+
...props,
|
|
11032
|
+
unstable_portal: !withoutPortal,
|
|
11033
|
+
css: TooltipContainer,
|
|
11034
|
+
visible: visible != null ? visible : tooltip.visible,
|
|
11035
|
+
children: [
|
|
11036
|
+
/* @__PURE__ */ jsx17(TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
|
|
11037
|
+
title2
|
|
11038
|
+
]
|
|
11039
|
+
}
|
|
11040
|
+
)
|
|
11016
11041
|
] });
|
|
11017
11042
|
}
|
|
11018
11043
|
|
|
@@ -11453,6 +11478,41 @@ var Button = React6.forwardRef(
|
|
|
11453
11478
|
|
|
11454
11479
|
// src/components/ButtonWithMenu/ButtonWithMenu.tsx
|
|
11455
11480
|
import { CgChevronDown } from "@react-icons/all-files/cg/CgChevronDown";
|
|
11481
|
+
import { CgMathPlus as CgMathPlus2 } from "@react-icons/all-files/cg/CgMathPlus";
|
|
11482
|
+
|
|
11483
|
+
// src/components/Layout/styles/HorizontalRhythm.styles.ts
|
|
11484
|
+
import { css as css23 } from "@emotion/react";
|
|
11485
|
+
var HorizontalRhythmContainer = (size) => css23`
|
|
11486
|
+
display: flex;
|
|
11487
|
+
gap: var(--spacing-${size});
|
|
11488
|
+
`;
|
|
11489
|
+
|
|
11490
|
+
// src/components/Layout/HorizontalRhythm.tsx
|
|
11491
|
+
import { jsx as jsx23 } from "@emotion/react/jsx-runtime";
|
|
11492
|
+
var HorizontalRhythm = ({
|
|
11493
|
+
align,
|
|
11494
|
+
justify,
|
|
11495
|
+
tag = "div",
|
|
11496
|
+
gap = "base",
|
|
11497
|
+
children,
|
|
11498
|
+
...props
|
|
11499
|
+
}) => {
|
|
11500
|
+
const Tag = tag;
|
|
11501
|
+
return /* @__PURE__ */ jsx23(
|
|
11502
|
+
Tag,
|
|
11503
|
+
{
|
|
11504
|
+
css: [
|
|
11505
|
+
HorizontalRhythmContainer(gap),
|
|
11506
|
+
{
|
|
11507
|
+
justifyContent: justify,
|
|
11508
|
+
alignItems: align
|
|
11509
|
+
}
|
|
11510
|
+
],
|
|
11511
|
+
...props,
|
|
11512
|
+
children
|
|
11513
|
+
}
|
|
11514
|
+
);
|
|
11515
|
+
};
|
|
11456
11516
|
|
|
11457
11517
|
// src/components/Menu/Menu.tsx
|
|
11458
11518
|
import * as React8 from "react";
|
|
@@ -11467,13 +11527,13 @@ import { Portal } from "reakit/Portal";
|
|
|
11467
11527
|
import React7, { isValidElement } from "react";
|
|
11468
11528
|
|
|
11469
11529
|
// src/components/Menu/MenuGroup.styles.ts
|
|
11470
|
-
import { css as
|
|
11471
|
-
var MenuGroupContainer = (hasTitle) =>
|
|
11530
|
+
import { css as css24 } from "@emotion/react";
|
|
11531
|
+
var MenuGroupContainer = (hasTitle) => css24`
|
|
11472
11532
|
display: flex;
|
|
11473
11533
|
flex-direction: column;
|
|
11474
11534
|
${hasTitle ? "margin-top: var(--spacing-sm);" : ""}
|
|
11475
11535
|
`;
|
|
11476
|
-
var MenuTitle =
|
|
11536
|
+
var MenuTitle = css24`
|
|
11477
11537
|
color: var(--gray-400);
|
|
11478
11538
|
font-size: var(--fs-xs);
|
|
11479
11539
|
font-weight: var(--fw-bold);
|
|
@@ -11482,22 +11542,22 @@ var MenuTitle = css23`
|
|
|
11482
11542
|
`;
|
|
11483
11543
|
|
|
11484
11544
|
// src/components/Menu/MenuGroup.tsx
|
|
11485
|
-
import { jsx as
|
|
11486
|
-
var MenuGroup = ({ title, children }) => {
|
|
11487
|
-
return /* @__PURE__ */ jsxs14("div", { css: MenuGroupContainer(!!
|
|
11488
|
-
|
|
11545
|
+
import { jsx as jsx24, jsxs as jsxs14 } from "@emotion/react/jsx-runtime";
|
|
11546
|
+
var MenuGroup = ({ title: title2, children }) => {
|
|
11547
|
+
return /* @__PURE__ */ jsxs14("div", { css: MenuGroupContainer(!!title2), "data-testid": "menu-group", children: [
|
|
11548
|
+
title2 ? /* @__PURE__ */ jsx24("span", { css: MenuTitle, children: title2 }) : null,
|
|
11489
11549
|
children
|
|
11490
11550
|
] });
|
|
11491
11551
|
};
|
|
11492
11552
|
|
|
11493
11553
|
// src/components/Menu/MenuItem.styles.ts
|
|
11494
|
-
import { css as
|
|
11495
|
-
var activeMenuItem =
|
|
11554
|
+
import { css as css25 } from "@emotion/react";
|
|
11555
|
+
var activeMenuItem = css25`
|
|
11496
11556
|
box-shadow: none;
|
|
11497
11557
|
background: var(--gray-200);
|
|
11498
11558
|
outline: none;
|
|
11499
11559
|
`;
|
|
11500
|
-
var menuItem = (textTheme, forceActive) =>
|
|
11560
|
+
var menuItem = (textTheme, forceActive) => css25`
|
|
11501
11561
|
align-items: center;
|
|
11502
11562
|
border: none;
|
|
11503
11563
|
border-radius: var(--rounded-base);
|
|
@@ -11522,7 +11582,7 @@ var menuItem = (textTheme, forceActive) => css24`
|
|
|
11522
11582
|
${typeof forceActive === "undefined" ? activeMenuItem : ""}
|
|
11523
11583
|
}
|
|
11524
11584
|
`;
|
|
11525
|
-
var menuItemWithIcon =
|
|
11585
|
+
var menuItemWithIcon = css25`
|
|
11526
11586
|
align-items: center;
|
|
11527
11587
|
display: flex;
|
|
11528
11588
|
justify-content: space-between;
|
|
@@ -11534,15 +11594,15 @@ var menuItemWithIcon = css24`
|
|
|
11534
11594
|
height: var(--spacing-base);
|
|
11535
11595
|
}
|
|
11536
11596
|
`;
|
|
11537
|
-
var menuItemSeparator =
|
|
11597
|
+
var menuItemSeparator = css25`
|
|
11538
11598
|
border-top: 1px solid var(--gray-300);
|
|
11539
11599
|
width: 100%;
|
|
11540
11600
|
margin-block: var(--spacing-sm);
|
|
11541
11601
|
`;
|
|
11542
11602
|
|
|
11543
11603
|
// src/components/Menu/MenuItemSeparator.tsx
|
|
11544
|
-
import { jsx as
|
|
11545
|
-
var MenuItemSeparator = () => /* @__PURE__ */
|
|
11604
|
+
import { jsx as jsx25 } from "@emotion/react/jsx-runtime";
|
|
11605
|
+
var MenuItemSeparator = () => /* @__PURE__ */ jsx25("hr", { css: menuItemSeparator, "data-testid": "menu-separator" });
|
|
11546
11606
|
|
|
11547
11607
|
// src/components/Menu/filterMenuSeparators.ts
|
|
11548
11608
|
function filterMenuSeparators(children, context) {
|
|
@@ -11590,8 +11650,8 @@ function isMenuSeparator(child) {
|
|
|
11590
11650
|
}
|
|
11591
11651
|
|
|
11592
11652
|
// src/components/Menu/Menu.styles.ts
|
|
11593
|
-
import { css as
|
|
11594
|
-
var menu =
|
|
11653
|
+
import { css as css26 } from "@emotion/react";
|
|
11654
|
+
var menu = css26`
|
|
11595
11655
|
box-shadow: var(--shadow-base);
|
|
11596
11656
|
border-radius: var(--rounded-base);
|
|
11597
11657
|
background: var(--gray-50);
|
|
@@ -11620,7 +11680,7 @@ var menu = css25`
|
|
|
11620
11680
|
`;
|
|
11621
11681
|
|
|
11622
11682
|
// src/components/Menu/Menu.tsx
|
|
11623
|
-
import { jsx as
|
|
11683
|
+
import { jsx as jsx26, jsxs as jsxs15 } from "@emotion/react/jsx-runtime";
|
|
11624
11684
|
var MenuContext = React8.createContext({});
|
|
11625
11685
|
var useMenuContext = () => {
|
|
11626
11686
|
return React8.useContext(MenuContext);
|
|
@@ -11649,11 +11709,12 @@ var Menu = ({
|
|
|
11649
11709
|
}, [menuState.visible, setIsRendered]);
|
|
11650
11710
|
const Wrapper = withoutPortal ? React8.Fragment : Portal;
|
|
11651
11711
|
return /* @__PURE__ */ jsxs15(MenuContext.Provider, { value: menuState, children: [
|
|
11652
|
-
/* @__PURE__ */
|
|
11653
|
-
/* @__PURE__ */
|
|
11712
|
+
/* @__PURE__ */ jsx26(MenuButton, { ...menuState, ref: menuTrigger.ref, ...menuTrigger.props, children: (triggerProps) => React8.cloneElement(menuTrigger, triggerProps) }),
|
|
11713
|
+
/* @__PURE__ */ jsx26(Wrapper, { children: /* @__PURE__ */ jsx26(
|
|
11654
11714
|
BaseMenu,
|
|
11655
11715
|
{
|
|
11656
11716
|
...menuState,
|
|
11717
|
+
"data-auto-resize-opt-in": true,
|
|
11657
11718
|
focusable: false,
|
|
11658
11719
|
"aria-label": menuLabel,
|
|
11659
11720
|
...!isRendered ? { unstable_popoverStyles: { position: "absolute", opacity: "0" } } : void 0,
|
|
@@ -11672,7 +11733,7 @@ var Menu = ({
|
|
|
11672
11733
|
// src/components/Menu/MenuItem.tsx
|
|
11673
11734
|
import * as React9 from "react";
|
|
11674
11735
|
import { MenuItem as BaseMenuItem } from "reakit";
|
|
11675
|
-
import { jsx as
|
|
11736
|
+
import { jsx as jsx27, jsxs as jsxs16 } from "@emotion/react/jsx-runtime";
|
|
11676
11737
|
var MenuItem = React9.forwardRef(
|
|
11677
11738
|
({ children, className, hideMenuOnClick = true, icon, textColor = "base", active, ...props }, ref) => {
|
|
11678
11739
|
const menuState = useMenuContext();
|
|
@@ -11690,7 +11751,7 @@ var MenuItem = React9.forwardRef(
|
|
|
11690
11751
|
};
|
|
11691
11752
|
const resolvedProps = hideMenuOnClick ? resolveProps(props) : props;
|
|
11692
11753
|
const resolvedChildren = typeof children === "function" ? children(resolvedProps) : children;
|
|
11693
|
-
return /* @__PURE__ */
|
|
11754
|
+
return /* @__PURE__ */ jsx27(
|
|
11694
11755
|
BaseMenuItem,
|
|
11695
11756
|
{
|
|
11696
11757
|
ref,
|
|
@@ -11714,8 +11775,8 @@ function renderWithIcon(children, icon) {
|
|
|
11714
11775
|
}
|
|
11715
11776
|
|
|
11716
11777
|
// src/components/ButtonWithMenu/ButtonWithMenu.styles.ts
|
|
11717
|
-
import { css as
|
|
11718
|
-
var buttonSizeBase =
|
|
11778
|
+
import { css as css27 } from "@emotion/react";
|
|
11779
|
+
var buttonSizeBase = css27`
|
|
11719
11780
|
--icon-padding: var(--spacing-xs);
|
|
11720
11781
|
--svg-size: 1rem;
|
|
11721
11782
|
--line-offset: -5px;
|
|
@@ -11725,7 +11786,7 @@ var buttonSizeBase = css26`
|
|
|
11725
11786
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
11726
11787
|
}
|
|
11727
11788
|
`;
|
|
11728
|
-
var buttonSizeSmall =
|
|
11789
|
+
var buttonSizeSmall = css27`
|
|
11729
11790
|
--icon-padding: var(--spacing-xs);
|
|
11730
11791
|
--svg-size: 0.85rem;
|
|
11731
11792
|
--line-offset: -1px;
|
|
@@ -11735,10 +11796,10 @@ var buttonSizeSmall = css26`
|
|
|
11735
11796
|
padding: var(--spacing-xs) var(--spacing-base);
|
|
11736
11797
|
}
|
|
11737
11798
|
`;
|
|
11738
|
-
var buttonSizeLarge =
|
|
11799
|
+
var buttonSizeLarge = css27`
|
|
11739
11800
|
--icon-padding: var(--spacing-sm);
|
|
11740
11801
|
--svg-size: 1.5rem;
|
|
11741
|
-
--line-offset: -
|
|
11802
|
+
--line-offset: -1px;
|
|
11742
11803
|
font-size: var(--fs-sm);
|
|
11743
11804
|
line-height: 1.25;
|
|
11744
11805
|
|
|
@@ -11746,7 +11807,7 @@ var buttonSizeLarge = css26`
|
|
|
11746
11807
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
11747
11808
|
}
|
|
11748
11809
|
`;
|
|
11749
|
-
var ButtonWithMenuContainer =
|
|
11810
|
+
var ButtonWithMenuContainer = css27`
|
|
11750
11811
|
align-items: center;
|
|
11751
11812
|
border: 1px solid transparent;
|
|
11752
11813
|
border-radius: var(--rounded-sm);
|
|
@@ -11775,7 +11836,7 @@ var ButtonWithMenuContainer = css26`
|
|
|
11775
11836
|
height: var(--svg-size);
|
|
11776
11837
|
}
|
|
11777
11838
|
`;
|
|
11778
|
-
var ButtonWithMenuBtn =
|
|
11839
|
+
var ButtonWithMenuBtn = css27`
|
|
11779
11840
|
align-items: center;
|
|
11780
11841
|
border: 1px solid transparent;
|
|
11781
11842
|
background: transparent;
|
|
@@ -11797,7 +11858,7 @@ var ButtonWithMenuBtn = css26`
|
|
|
11797
11858
|
pointer-events: none;
|
|
11798
11859
|
}
|
|
11799
11860
|
`;
|
|
11800
|
-
var ButtonWithMenuIcon =
|
|
11861
|
+
var ButtonWithMenuIcon = css27`
|
|
11801
11862
|
padding: var(--icon-padding);
|
|
11802
11863
|
position: relative;
|
|
11803
11864
|
|
|
@@ -11810,15 +11871,15 @@ var ButtonWithMenuIcon = css26`
|
|
|
11810
11871
|
position: absolute;
|
|
11811
11872
|
}
|
|
11812
11873
|
`;
|
|
11813
|
-
var buttonPrimary2 =
|
|
11874
|
+
var buttonPrimary2 = css27`
|
|
11814
11875
|
background: var(--brand-secondary-1);
|
|
11815
11876
|
color: var(--white);
|
|
11816
11877
|
`;
|
|
11817
|
-
var buttonPrimaryDisabled =
|
|
11878
|
+
var buttonPrimaryDisabled = css27`
|
|
11818
11879
|
background: var(--gray-300);
|
|
11819
11880
|
color: var(--white);
|
|
11820
11881
|
`;
|
|
11821
|
-
var buttonSecondary2 =
|
|
11882
|
+
var buttonSecondary2 = css27`
|
|
11822
11883
|
background: var(--primary-action-default);
|
|
11823
11884
|
color: var(--white);
|
|
11824
11885
|
|
|
@@ -11826,17 +11887,17 @@ var buttonSecondary2 = css26`
|
|
|
11826
11887
|
background: var(--primary-action-hover);
|
|
11827
11888
|
}
|
|
11828
11889
|
`;
|
|
11829
|
-
var buttonSecondaryDisabled =
|
|
11890
|
+
var buttonSecondaryDisabled = css27`
|
|
11830
11891
|
${buttonPrimaryDisabled}
|
|
11831
11892
|
`;
|
|
11832
|
-
var buttonUnimportant2 =
|
|
11893
|
+
var buttonUnimportant2 = css27`
|
|
11833
11894
|
background: var(--brand-secondary-2);
|
|
11834
11895
|
color: var(--brand-secondary-1);
|
|
11835
11896
|
`;
|
|
11836
|
-
var buttonUnimportantDisabled =
|
|
11897
|
+
var buttonUnimportantDisabled = css27`
|
|
11837
11898
|
${buttonPrimaryDisabled}
|
|
11838
11899
|
`;
|
|
11839
|
-
var buttonGhost2 =
|
|
11900
|
+
var buttonGhost2 = css27`
|
|
11840
11901
|
background: transparent;
|
|
11841
11902
|
color: var(--brand-secondary-3);
|
|
11842
11903
|
|
|
@@ -11844,11 +11905,11 @@ var buttonGhost2 = css26`
|
|
|
11844
11905
|
border-color: var(--brand-secondary-3);
|
|
11845
11906
|
}
|
|
11846
11907
|
`;
|
|
11847
|
-
var buttonGhostDisabled =
|
|
11908
|
+
var buttonGhostDisabled = css27`
|
|
11848
11909
|
border-color: var(--gray-400);
|
|
11849
11910
|
color: var(--gray-400);
|
|
11850
11911
|
`;
|
|
11851
|
-
var buttonSecondaryOutline =
|
|
11912
|
+
var buttonSecondaryOutline = css27`
|
|
11852
11913
|
background: var(--white);
|
|
11853
11914
|
color: var(--primary-action-default);
|
|
11854
11915
|
border-color: var(--primary-action-default);
|
|
@@ -11858,17 +11919,20 @@ var buttonSecondaryOutline = css26`
|
|
|
11858
11919
|
border-color: var(--primary-action-hover);
|
|
11859
11920
|
}
|
|
11860
11921
|
`;
|
|
11861
|
-
var buttonSecondaryOutlineDisabled =
|
|
11922
|
+
var buttonSecondaryOutlineDisabled = css27`
|
|
11862
11923
|
background: var(--white);
|
|
11863
11924
|
color: var(--gray-400);
|
|
11864
11925
|
border-color: var(--gray-400);
|
|
11865
11926
|
`;
|
|
11866
|
-
var buttonWithMenuIconOffset =
|
|
11927
|
+
var buttonWithMenuIconOffset = css27`
|
|
11867
11928
|
margin-left: -10px;
|
|
11868
11929
|
`;
|
|
11930
|
+
var wholeButtonWithMenuIconOffset = css27`
|
|
11931
|
+
margin: 3px -10px 0 3px;
|
|
11932
|
+
`;
|
|
11869
11933
|
|
|
11870
11934
|
// src/components/ButtonWithMenu/ButtonWithMenu.tsx
|
|
11871
|
-
import { jsx as
|
|
11935
|
+
import { Fragment as Fragment6, jsx as jsx28, jsxs as jsxs17 } from "@emotion/react/jsx-runtime";
|
|
11872
11936
|
var ButtonWithMenu = ({
|
|
11873
11937
|
onButtonClick,
|
|
11874
11938
|
buttonType = "secondary",
|
|
@@ -11899,7 +11963,12 @@ var ButtonWithMenu = ({
|
|
|
11899
11963
|
sm: buttonSizeSmall,
|
|
11900
11964
|
lg: buttonSizeLarge
|
|
11901
11965
|
};
|
|
11902
|
-
|
|
11966
|
+
const clickableButton = /* @__PURE__ */ jsx28("div", { css: ButtonWithMenuIcon, "data-testid": "multioptions-button-call-menu", children: /* @__PURE__ */ jsx28(Icon, { icon: CgChevronDown, iconColor: "currentColor" }) });
|
|
11967
|
+
const dropdownButton = /* @__PURE__ */ jsx28("div", { css: ButtonWithMenuIcon, "data-testid": "multioptions-button-call-menu", children: /* @__PURE__ */ jsxs17(HorizontalRhythm, { justify: "center", children: [
|
|
11968
|
+
/* @__PURE__ */ jsx28(Icon, { icon: CgMathPlus2, iconColor: "currentColor", css: wholeButtonWithMenuIconOffset }),
|
|
11969
|
+
/* @__PURE__ */ jsx28("span", { css: { marginRight: "var(--spacing-xs)", fontSize: "var(--fs-sm)" }, children: buttonText })
|
|
11970
|
+
] }) });
|
|
11971
|
+
return /* @__PURE__ */ jsx28(
|
|
11903
11972
|
"div",
|
|
11904
11973
|
{
|
|
11905
11974
|
css: [
|
|
@@ -11908,7 +11977,7 @@ var ButtonWithMenu = ({
|
|
|
11908
11977
|
disabled ? buttonDisabledTheme[buttonType] : buttonTheme[buttonType]
|
|
11909
11978
|
],
|
|
11910
11979
|
"data-testid": "multioptions-button",
|
|
11911
|
-
children: [
|
|
11980
|
+
children: onButtonClick ? /* @__PURE__ */ jsxs17(Fragment6, { children: [
|
|
11912
11981
|
/* @__PURE__ */ jsxs17(
|
|
11913
11982
|
"button",
|
|
11914
11983
|
{
|
|
@@ -11919,38 +11988,30 @@ var ButtonWithMenu = ({
|
|
|
11919
11988
|
"data-testid": "multioptions-button-main",
|
|
11920
11989
|
...buttonProps,
|
|
11921
11990
|
children: [
|
|
11922
|
-
icon ? /* @__PURE__ */
|
|
11991
|
+
icon ? /* @__PURE__ */ jsx28(Icon, { icon, iconColor: "currentColor", css: buttonWithMenuIconOffset }) : null,
|
|
11923
11992
|
buttonText
|
|
11924
11993
|
]
|
|
11925
11994
|
}
|
|
11926
11995
|
),
|
|
11927
|
-
/* @__PURE__ */
|
|
11928
|
-
|
|
11929
|
-
{
|
|
11930
|
-
menuLabel: "buttonMenu",
|
|
11931
|
-
placement,
|
|
11932
|
-
menuTrigger: /* @__PURE__ */ jsx27("div", { css: ButtonWithMenuIcon, "data-testid": "multioptions-button-call-menu", children: /* @__PURE__ */ jsx27(Icon, { icon: CgChevronDown, iconColor: "currentColor" }) }),
|
|
11933
|
-
children
|
|
11934
|
-
}
|
|
11935
|
-
)
|
|
11936
|
-
]
|
|
11996
|
+
disabled ? clickableButton : /* @__PURE__ */ jsx28(Menu, { menuLabel: "buttonMenu", placement, menuTrigger: clickableButton, children })
|
|
11997
|
+
] }) : /* @__PURE__ */ jsx28(Fragment6, { children: disabled ? dropdownButton : /* @__PURE__ */ jsx28(Menu, { menuLabel: "buttonMenu", placement, menuTrigger: dropdownButton, children }) })
|
|
11937
11998
|
}
|
|
11938
11999
|
);
|
|
11939
12000
|
};
|
|
11940
12001
|
|
|
11941
12002
|
// src/components/Callout/Callout.tsx
|
|
11942
|
-
import { css as
|
|
12003
|
+
import { css as css29 } from "@emotion/react";
|
|
11943
12004
|
|
|
11944
12005
|
// src/components/Callout/Callout.styles.ts
|
|
11945
|
-
import { css as
|
|
11946
|
-
var calloutContainer =
|
|
12006
|
+
import { css as css28 } from "@emotion/react";
|
|
12007
|
+
var calloutContainer = css28`
|
|
11947
12008
|
${functionalColors}
|
|
11948
12009
|
|
|
11949
12010
|
font-size: var(--fs-sm);
|
|
11950
12011
|
border-radius: var(--rounded-base);
|
|
11951
12012
|
padding: var(--spacing-base);
|
|
11952
12013
|
`;
|
|
11953
|
-
var calloutContainerCompact =
|
|
12014
|
+
var calloutContainerCompact = css28`
|
|
11954
12015
|
font-size: var(--fs-xs);
|
|
11955
12016
|
padding: var(--spacing-sm);
|
|
11956
12017
|
border-radius: 0 var(--rounded-base) var(--rounded-base) 0;
|
|
@@ -11962,33 +12023,33 @@ var calloutContainerCompact = css27`
|
|
|
11962
12023
|
--note-desc: var(--brand-secondary-1);
|
|
11963
12024
|
--success-desc: var(--brand-secondary-1);
|
|
11964
12025
|
`;
|
|
11965
|
-
var calloutInner =
|
|
12026
|
+
var calloutInner = css28`
|
|
11966
12027
|
display: flex;
|
|
11967
12028
|
gap: var(--spacing-sm);
|
|
11968
12029
|
`;
|
|
11969
|
-
var calloutBody =
|
|
12030
|
+
var calloutBody = css28`
|
|
11970
12031
|
display: flex;
|
|
11971
12032
|
flex-direction: column;
|
|
11972
12033
|
gap: var(--spacing-base);
|
|
11973
12034
|
flex: 1;
|
|
11974
12035
|
`;
|
|
11975
|
-
var calloutBodyCompact =
|
|
12036
|
+
var calloutBodyCompact = css28`
|
|
11976
12037
|
gap: var(--spacing-xs);
|
|
11977
12038
|
`;
|
|
11978
|
-
var calloutIconWrap =
|
|
12039
|
+
var calloutIconWrap = css28`
|
|
11979
12040
|
flex-shrink: 0;
|
|
11980
12041
|
`;
|
|
11981
|
-
var calloutTitle =
|
|
12042
|
+
var calloutTitle = css28`
|
|
11982
12043
|
font-weight: var(--fw-bold);
|
|
11983
12044
|
`;
|
|
11984
|
-
var calloutIcon =
|
|
12045
|
+
var calloutIcon = css28`
|
|
11985
12046
|
width: 1.25rem;
|
|
11986
12047
|
height: 1.25rem;
|
|
11987
12048
|
`;
|
|
11988
12049
|
|
|
11989
12050
|
// src/components/Callout/CalloutIcons.tsx
|
|
11990
|
-
import { jsx as
|
|
11991
|
-
var InfoIcon = ({ ...props }) => /* @__PURE__ */
|
|
12051
|
+
import { jsx as jsx29 } from "@emotion/react/jsx-runtime";
|
|
12052
|
+
var InfoIcon = ({ ...props }) => /* @__PURE__ */ jsx29(
|
|
11992
12053
|
"svg",
|
|
11993
12054
|
{
|
|
11994
12055
|
role: "img",
|
|
@@ -11999,7 +12060,7 @@ var InfoIcon = ({ ...props }) => /* @__PURE__ */ jsx28(
|
|
|
11999
12060
|
viewBox: "0 0 14 16",
|
|
12000
12061
|
fill: "currentColor",
|
|
12001
12062
|
...props,
|
|
12002
|
-
children: /* @__PURE__ */
|
|
12063
|
+
children: /* @__PURE__ */ jsx29(
|
|
12003
12064
|
"path",
|
|
12004
12065
|
{
|
|
12005
12066
|
fillRule: "evenodd",
|
|
@@ -12008,7 +12069,7 @@ var InfoIcon = ({ ...props }) => /* @__PURE__ */ jsx28(
|
|
|
12008
12069
|
)
|
|
12009
12070
|
}
|
|
12010
12071
|
);
|
|
12011
|
-
var DangerIcon = ({ ...props }) => /* @__PURE__ */
|
|
12072
|
+
var DangerIcon = ({ ...props }) => /* @__PURE__ */ jsx29(
|
|
12012
12073
|
"svg",
|
|
12013
12074
|
{
|
|
12014
12075
|
role: "img",
|
|
@@ -12019,7 +12080,7 @@ var DangerIcon = ({ ...props }) => /* @__PURE__ */ jsx28(
|
|
|
12019
12080
|
viewBox: "0 0 12 16",
|
|
12020
12081
|
fill: "currentColor",
|
|
12021
12082
|
...props,
|
|
12022
|
-
children: /* @__PURE__ */
|
|
12083
|
+
children: /* @__PURE__ */ jsx29(
|
|
12023
12084
|
"path",
|
|
12024
12085
|
{
|
|
12025
12086
|
fillRule: "evenodd",
|
|
@@ -12028,7 +12089,7 @@ var DangerIcon = ({ ...props }) => /* @__PURE__ */ jsx28(
|
|
|
12028
12089
|
)
|
|
12029
12090
|
}
|
|
12030
12091
|
);
|
|
12031
|
-
var NoteIcon = ({ ...props }) => /* @__PURE__ */
|
|
12092
|
+
var NoteIcon = ({ ...props }) => /* @__PURE__ */ jsx29(
|
|
12032
12093
|
"svg",
|
|
12033
12094
|
{
|
|
12034
12095
|
role: "img",
|
|
@@ -12039,7 +12100,7 @@ var NoteIcon = ({ ...props }) => /* @__PURE__ */ jsx28(
|
|
|
12039
12100
|
viewBox: "0 0 14 16",
|
|
12040
12101
|
fill: "currentColor",
|
|
12041
12102
|
...props,
|
|
12042
|
-
children: /* @__PURE__ */
|
|
12103
|
+
children: /* @__PURE__ */ jsx29(
|
|
12043
12104
|
"path",
|
|
12044
12105
|
{
|
|
12045
12106
|
fillRule: "evenodd",
|
|
@@ -12048,7 +12109,7 @@ var NoteIcon = ({ ...props }) => /* @__PURE__ */ jsx28(
|
|
|
12048
12109
|
)
|
|
12049
12110
|
}
|
|
12050
12111
|
);
|
|
12051
|
-
var TipIcon = ({ ...props }) => /* @__PURE__ */
|
|
12112
|
+
var TipIcon = ({ ...props }) => /* @__PURE__ */ jsx29(
|
|
12052
12113
|
"svg",
|
|
12053
12114
|
{
|
|
12054
12115
|
role: "img",
|
|
@@ -12059,7 +12120,7 @@ var TipIcon = ({ ...props }) => /* @__PURE__ */ jsx28(
|
|
|
12059
12120
|
viewBox: "0 0 12 16",
|
|
12060
12121
|
fill: "currentColor",
|
|
12061
12122
|
...props,
|
|
12062
|
-
children: /* @__PURE__ */
|
|
12123
|
+
children: /* @__PURE__ */ jsx29(
|
|
12063
12124
|
"path",
|
|
12064
12125
|
{
|
|
12065
12126
|
fillRule: "evenodd",
|
|
@@ -12068,7 +12129,7 @@ var TipIcon = ({ ...props }) => /* @__PURE__ */ jsx28(
|
|
|
12068
12129
|
)
|
|
12069
12130
|
}
|
|
12070
12131
|
);
|
|
12071
|
-
var CautionIcon = ({ ...props }) => /* @__PURE__ */
|
|
12132
|
+
var CautionIcon = ({ ...props }) => /* @__PURE__ */ jsx29(
|
|
12072
12133
|
"svg",
|
|
12073
12134
|
{
|
|
12074
12135
|
role: "img",
|
|
@@ -12079,7 +12140,7 @@ var CautionIcon = ({ ...props }) => /* @__PURE__ */ jsx28(
|
|
|
12079
12140
|
viewBox: "0 0 16 16",
|
|
12080
12141
|
fill: "currentColor",
|
|
12081
12142
|
...props,
|
|
12082
|
-
children: /* @__PURE__ */
|
|
12143
|
+
children: /* @__PURE__ */ jsx29(
|
|
12083
12144
|
"path",
|
|
12084
12145
|
{
|
|
12085
12146
|
fillRule: "evenodd",
|
|
@@ -12088,7 +12149,7 @@ var CautionIcon = ({ ...props }) => /* @__PURE__ */ jsx28(
|
|
|
12088
12149
|
)
|
|
12089
12150
|
}
|
|
12090
12151
|
);
|
|
12091
|
-
var SuccessIcon = ({ ...props }) => /* @__PURE__ */
|
|
12152
|
+
var SuccessIcon = ({ ...props }) => /* @__PURE__ */ jsx29(
|
|
12092
12153
|
"svg",
|
|
12093
12154
|
{
|
|
12094
12155
|
role: "img",
|
|
@@ -12099,7 +12160,7 @@ var SuccessIcon = ({ ...props }) => /* @__PURE__ */ jsx28(
|
|
|
12099
12160
|
fill: "currentColor",
|
|
12100
12161
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12101
12162
|
...props,
|
|
12102
|
-
children: /* @__PURE__ */
|
|
12163
|
+
children: /* @__PURE__ */ jsx29(
|
|
12103
12164
|
"path",
|
|
12104
12165
|
{
|
|
12105
12166
|
fillRule: "evenodd",
|
|
@@ -12111,95 +12172,95 @@ var SuccessIcon = ({ ...props }) => /* @__PURE__ */ jsx28(
|
|
|
12111
12172
|
);
|
|
12112
12173
|
|
|
12113
12174
|
// src/components/Callout/Callout.tsx
|
|
12114
|
-
import { jsx as
|
|
12175
|
+
import { jsx as jsx30, jsxs as jsxs18 } from "@emotion/react/jsx-runtime";
|
|
12115
12176
|
var calloutTypeDataMap = {
|
|
12116
12177
|
caution: {
|
|
12117
12178
|
icon: CautionIcon,
|
|
12118
|
-
descriptionColor:
|
|
12179
|
+
descriptionColor: css29`
|
|
12119
12180
|
color: var(--caution-desc);
|
|
12120
12181
|
`,
|
|
12121
|
-
iconColor:
|
|
12182
|
+
iconColor: css29`
|
|
12122
12183
|
color: var(--caution-icon);
|
|
12123
12184
|
`,
|
|
12124
|
-
containerStyles:
|
|
12185
|
+
containerStyles: css29`
|
|
12125
12186
|
color: var(--caution-title);
|
|
12126
12187
|
background-color: var(--caution-container);
|
|
12127
12188
|
`
|
|
12128
12189
|
},
|
|
12129
12190
|
danger: {
|
|
12130
12191
|
icon: DangerIcon,
|
|
12131
|
-
descriptionColor:
|
|
12192
|
+
descriptionColor: css29`
|
|
12132
12193
|
color: var(--danger-desc);
|
|
12133
12194
|
`,
|
|
12134
|
-
iconColor:
|
|
12195
|
+
iconColor: css29`
|
|
12135
12196
|
color: var(--danger-icon);
|
|
12136
12197
|
`,
|
|
12137
|
-
containerStyles:
|
|
12198
|
+
containerStyles: css29`
|
|
12138
12199
|
color: var(--danger-title);
|
|
12139
12200
|
background-color: var(--danger-container);
|
|
12140
12201
|
`
|
|
12141
12202
|
},
|
|
12142
12203
|
error: {
|
|
12143
12204
|
icon: CautionIcon,
|
|
12144
|
-
descriptionColor:
|
|
12205
|
+
descriptionColor: css29`
|
|
12145
12206
|
color: var(--danger-desc);
|
|
12146
12207
|
`,
|
|
12147
|
-
iconColor:
|
|
12208
|
+
iconColor: css29`
|
|
12148
12209
|
color: var(--danger-icon);
|
|
12149
12210
|
`,
|
|
12150
|
-
containerStyles:
|
|
12211
|
+
containerStyles: css29`
|
|
12151
12212
|
color: var(--danger-title);
|
|
12152
12213
|
background-color: var(--danger-container);
|
|
12153
12214
|
`
|
|
12154
12215
|
},
|
|
12155
12216
|
info: {
|
|
12156
12217
|
icon: InfoIcon,
|
|
12157
|
-
descriptionColor:
|
|
12218
|
+
descriptionColor: css29`
|
|
12158
12219
|
color: var(--info-desc);
|
|
12159
12220
|
`,
|
|
12160
|
-
iconColor:
|
|
12221
|
+
iconColor: css29`
|
|
12161
12222
|
color: var(--info-icon);
|
|
12162
12223
|
`,
|
|
12163
|
-
containerStyles:
|
|
12224
|
+
containerStyles: css29`
|
|
12164
12225
|
color: var(--info-title);
|
|
12165
12226
|
background-color: var(--info-container);
|
|
12166
12227
|
`
|
|
12167
12228
|
},
|
|
12168
12229
|
note: {
|
|
12169
12230
|
icon: NoteIcon,
|
|
12170
|
-
descriptionColor:
|
|
12231
|
+
descriptionColor: css29`
|
|
12171
12232
|
color: var(--note-desc);
|
|
12172
12233
|
`,
|
|
12173
|
-
iconColor:
|
|
12234
|
+
iconColor: css29`
|
|
12174
12235
|
color: var(--note-icon);
|
|
12175
12236
|
`,
|
|
12176
|
-
containerStyles:
|
|
12237
|
+
containerStyles: css29`
|
|
12177
12238
|
color: var(--note-title);
|
|
12178
12239
|
background-color: var(--note-container);
|
|
12179
12240
|
`
|
|
12180
12241
|
},
|
|
12181
12242
|
success: {
|
|
12182
12243
|
icon: SuccessIcon,
|
|
12183
|
-
descriptionColor:
|
|
12244
|
+
descriptionColor: css29`
|
|
12184
12245
|
color: var(--success-desc);
|
|
12185
12246
|
`,
|
|
12186
|
-
iconColor:
|
|
12247
|
+
iconColor: css29`
|
|
12187
12248
|
color: var(--success-icon);
|
|
12188
12249
|
`,
|
|
12189
|
-
containerStyles:
|
|
12250
|
+
containerStyles: css29`
|
|
12190
12251
|
color: var(--success-title);
|
|
12191
12252
|
background-color: var(--success-container);
|
|
12192
12253
|
`
|
|
12193
12254
|
},
|
|
12194
12255
|
tip: {
|
|
12195
12256
|
icon: TipIcon,
|
|
12196
|
-
descriptionColor:
|
|
12257
|
+
descriptionColor: css29`
|
|
12197
12258
|
color: var(--success-desc);
|
|
12198
12259
|
`,
|
|
12199
|
-
iconColor:
|
|
12260
|
+
iconColor: css29`
|
|
12200
12261
|
color: var(--success-icon);
|
|
12201
12262
|
`,
|
|
12202
|
-
containerStyles:
|
|
12263
|
+
containerStyles: css29`
|
|
12203
12264
|
color: var(--success-title);
|
|
12204
12265
|
background-color: var(--success-container);
|
|
12205
12266
|
`
|
|
@@ -12208,7 +12269,7 @@ var calloutTypeDataMap = {
|
|
|
12208
12269
|
var Callout = ({
|
|
12209
12270
|
type = "info",
|
|
12210
12271
|
compact = false,
|
|
12211
|
-
title,
|
|
12272
|
+
title: title2,
|
|
12212
12273
|
children,
|
|
12213
12274
|
className,
|
|
12214
12275
|
testId
|
|
@@ -12218,7 +12279,7 @@ var Callout = ({
|
|
|
12218
12279
|
return null;
|
|
12219
12280
|
}
|
|
12220
12281
|
const Icon2 = calloutTypeData.icon;
|
|
12221
|
-
return /* @__PURE__ */
|
|
12282
|
+
return /* @__PURE__ */ jsx30(
|
|
12222
12283
|
"div",
|
|
12223
12284
|
{
|
|
12224
12285
|
"data-testid": testId ? testId : "sdk-ui-callout",
|
|
@@ -12230,10 +12291,10 @@ var Callout = ({
|
|
|
12230
12291
|
],
|
|
12231
12292
|
className: `${typeof className === "string" ? className : ""}`,
|
|
12232
12293
|
children: /* @__PURE__ */ jsxs18("div", { css: calloutInner, children: [
|
|
12233
|
-
compact ? null : /* @__PURE__ */
|
|
12294
|
+
compact ? null : /* @__PURE__ */ jsx30("div", { css: calloutIconWrap, children: /* @__PURE__ */ jsx30(Icon2, { css: [calloutIcon, calloutTypeData.iconColor] }) }),
|
|
12234
12295
|
/* @__PURE__ */ jsxs18("div", { css: [calloutBody, compact ? calloutBodyCompact : void 0], children: [
|
|
12235
|
-
|
|
12236
|
-
children ? /* @__PURE__ */
|
|
12296
|
+
title2 ? /* @__PURE__ */ jsx30("div", { css: [calloutTitle], "data-testid": "callout-title", children: title2 }) : null,
|
|
12297
|
+
children ? /* @__PURE__ */ jsx30("div", { css: [calloutTypeData.descriptionColor], "data-testid": "callout-description", children }) : null
|
|
12237
12298
|
] })
|
|
12238
12299
|
] })
|
|
12239
12300
|
}
|
|
@@ -12244,8 +12305,8 @@ var Callout = ({
|
|
|
12244
12305
|
import { CgMoreAlt } from "@react-icons/all-files/cg/CgMoreAlt";
|
|
12245
12306
|
|
|
12246
12307
|
// src/components/Card/Card.styles.ts
|
|
12247
|
-
import { css as
|
|
12248
|
-
var CardContainer =
|
|
12308
|
+
import { css as css30 } from "@emotion/react";
|
|
12309
|
+
var CardContainer = css30`
|
|
12249
12310
|
background: var(--white);
|
|
12250
12311
|
border: 1px solid var(--gray-300);
|
|
12251
12312
|
border-radius: var(--rounded-base);
|
|
@@ -12258,7 +12319,7 @@ var CardContainer = css29`
|
|
|
12258
12319
|
background: var(--gray-50);
|
|
12259
12320
|
}
|
|
12260
12321
|
`;
|
|
12261
|
-
var CardTitle = (marginBottom) =>
|
|
12322
|
+
var CardTitle = (marginBottom) => css30`
|
|
12262
12323
|
display: flex;
|
|
12263
12324
|
margin: ${marginBottom ? "0 0 var(--spacing-base)" : "0"};
|
|
12264
12325
|
padding-right: var(--spacing-lg);
|
|
@@ -12266,7 +12327,7 @@ var CardTitle = (marginBottom) => css29`
|
|
|
12266
12327
|
gap: var(--spacing-xs);
|
|
12267
12328
|
font-weight: var(--fw-regular);
|
|
12268
12329
|
`;
|
|
12269
|
-
var CardMenu =
|
|
12330
|
+
var CardMenu = css30`
|
|
12270
12331
|
align-items: center;
|
|
12271
12332
|
background: transparent;
|
|
12272
12333
|
color: var(--gray-300);
|
|
@@ -12287,9 +12348,9 @@ var CardMenu = css29`
|
|
|
12287
12348
|
`;
|
|
12288
12349
|
|
|
12289
12350
|
// src/components/Card/Card.tsx
|
|
12290
|
-
import { jsx as
|
|
12351
|
+
import { jsx as jsx31, jsxs as jsxs19 } from "@emotion/react/jsx-runtime";
|
|
12291
12352
|
var Card = ({
|
|
12292
|
-
title,
|
|
12353
|
+
title: title2,
|
|
12293
12354
|
menuItems,
|
|
12294
12355
|
children,
|
|
12295
12356
|
titleWithMarginBottom = true,
|
|
@@ -12299,12 +12360,12 @@ var Card = ({
|
|
|
12299
12360
|
...props
|
|
12300
12361
|
}) => {
|
|
12301
12362
|
return /* @__PURE__ */ jsxs19(Tag, { css: CardContainer, ...props, children: [
|
|
12302
|
-
|
|
12303
|
-
menuItems ? /* @__PURE__ */
|
|
12363
|
+
title2 ? /* @__PURE__ */ jsx31(CardTitle2, { title: title2, titleWithMarginBottom }) : null,
|
|
12364
|
+
menuItems ? /* @__PURE__ */ jsx31(
|
|
12304
12365
|
Menu,
|
|
12305
12366
|
{
|
|
12306
12367
|
menuLabel: "More options",
|
|
12307
|
-
menuTrigger: /* @__PURE__ */
|
|
12368
|
+
menuTrigger: /* @__PURE__ */ jsx31(
|
|
12308
12369
|
"button",
|
|
12309
12370
|
{
|
|
12310
12371
|
"aria-label": "More options",
|
|
@@ -12312,7 +12373,7 @@ var Card = ({
|
|
|
12312
12373
|
disabled,
|
|
12313
12374
|
css: CardMenu,
|
|
12314
12375
|
"data-testid": menuButtonTestId != null ? menuButtonTestId : "list-card-menu",
|
|
12315
|
-
children: /* @__PURE__ */
|
|
12376
|
+
children: /* @__PURE__ */ jsx31(Icon, { icon: CgMoreAlt, iconColor: "currentColor", size: 32 })
|
|
12316
12377
|
}
|
|
12317
12378
|
),
|
|
12318
12379
|
children: menuItems
|
|
@@ -12321,8 +12382,8 @@ var Card = ({
|
|
|
12321
12382
|
children
|
|
12322
12383
|
] });
|
|
12323
12384
|
};
|
|
12324
|
-
var CardTitle2 = ({ title, titleWithMarginBottom, children }) => {
|
|
12325
|
-
const normalizeTitle = replaceUnderscoreInString(
|
|
12385
|
+
var CardTitle2 = ({ title: title2, titleWithMarginBottom, children }) => {
|
|
12386
|
+
const normalizeTitle = replaceUnderscoreInString(title2);
|
|
12326
12387
|
return /* @__PURE__ */ jsxs19(Heading, { level: 3, css: CardTitle(titleWithMarginBottom), children: [
|
|
12327
12388
|
normalizeTitle,
|
|
12328
12389
|
children
|
|
@@ -12330,12 +12391,12 @@ var CardTitle2 = ({ title, titleWithMarginBottom, children }) => {
|
|
|
12330
12391
|
};
|
|
12331
12392
|
|
|
12332
12393
|
// src/components/Card/CardContainer.styles.ts
|
|
12333
|
-
import { css as
|
|
12334
|
-
var CardContainerWrapper = (bgColor) =>
|
|
12394
|
+
import { css as css31 } from "@emotion/react";
|
|
12395
|
+
var CardContainerWrapper = (bgColor) => css31`
|
|
12335
12396
|
background: ${bgColor === "gray" ? `var(--gray-50)` : `var(--white)`};
|
|
12336
12397
|
container-type: inline-size;
|
|
12337
12398
|
`;
|
|
12338
|
-
var CardContainerInner = ({ padding, withLastColumn }) =>
|
|
12399
|
+
var CardContainerInner = ({ padding, withLastColumn }) => css31`
|
|
12339
12400
|
display: grid;
|
|
12340
12401
|
gap: var(--spacing-lg);
|
|
12341
12402
|
max-width: var(--site-width);
|
|
@@ -12349,7 +12410,7 @@ var CardContainerInner = ({ padding, withLastColumn }) => css30`
|
|
|
12349
12410
|
`;
|
|
12350
12411
|
|
|
12351
12412
|
// src/components/Card/CardContainer.tsx
|
|
12352
|
-
import { jsx as
|
|
12413
|
+
import { jsx as jsx32 } from "@emotion/react/jsx-runtime";
|
|
12353
12414
|
var CardContainer2 = ({
|
|
12354
12415
|
bgColor = "white",
|
|
12355
12416
|
padding = true,
|
|
@@ -12357,15 +12418,15 @@ var CardContainer2 = ({
|
|
|
12357
12418
|
children,
|
|
12358
12419
|
...props
|
|
12359
12420
|
}) => {
|
|
12360
|
-
return /* @__PURE__ */
|
|
12421
|
+
return /* @__PURE__ */ jsx32("div", { css: CardContainerWrapper(bgColor), ...props, children: /* @__PURE__ */ jsx32("div", { css: CardContainerInner({ padding, withLastColumn }), children }) });
|
|
12361
12422
|
};
|
|
12362
12423
|
|
|
12363
12424
|
// src/components/Card/LoadingCardSkeleton.tsx
|
|
12364
12425
|
import { CgMoreAlt as CgMoreAlt2 } from "@react-icons/all-files/cg/CgMoreAlt";
|
|
12365
12426
|
|
|
12366
12427
|
// src/components/Layout/styles/Container.styles.ts
|
|
12367
|
-
import { css as
|
|
12368
|
-
var Container = ({ backgroundColor, border, rounded, padding, margin }) =>
|
|
12428
|
+
import { css as css32 } from "@emotion/react";
|
|
12429
|
+
var Container = ({ backgroundColor, border, rounded, padding, margin }) => css32`
|
|
12369
12430
|
background: var(--${backgroundColor});
|
|
12370
12431
|
${border ? "border: 1px solid var(--gray-300)" : void 0};
|
|
12371
12432
|
${rounded ? `border-radius: var(--${rounded})` : void 0};
|
|
@@ -12374,7 +12435,7 @@ var Container = ({ backgroundColor, border, rounded, padding, margin }) => css31
|
|
|
12374
12435
|
`;
|
|
12375
12436
|
|
|
12376
12437
|
// src/components/Layout/Container.tsx
|
|
12377
|
-
import { jsx as
|
|
12438
|
+
import { jsx as jsx33 } from "@emotion/react/jsx-runtime";
|
|
12378
12439
|
var Container2 = ({
|
|
12379
12440
|
tag = "div",
|
|
12380
12441
|
backgroundColor = "white",
|
|
@@ -12386,7 +12447,7 @@ var Container2 = ({
|
|
|
12386
12447
|
...props
|
|
12387
12448
|
}) => {
|
|
12388
12449
|
const Tag = tag;
|
|
12389
|
-
return /* @__PURE__ */
|
|
12450
|
+
return /* @__PURE__ */ jsx33(
|
|
12390
12451
|
Tag,
|
|
12391
12452
|
{
|
|
12392
12453
|
css: Container({
|
|
@@ -12402,40 +12463,6 @@ var Container2 = ({
|
|
|
12402
12463
|
);
|
|
12403
12464
|
};
|
|
12404
12465
|
|
|
12405
|
-
// src/components/Layout/styles/HorizontalRhythm.styles.ts
|
|
12406
|
-
import { css as css32 } from "@emotion/react";
|
|
12407
|
-
var HorizontalRhythmContainer = (size) => css32`
|
|
12408
|
-
display: flex;
|
|
12409
|
-
gap: var(--spacing-${size});
|
|
12410
|
-
`;
|
|
12411
|
-
|
|
12412
|
-
// src/components/Layout/HorizontalRhythm.tsx
|
|
12413
|
-
import { jsx as jsx33 } from "@emotion/react/jsx-runtime";
|
|
12414
|
-
var HorizontalRhythm = ({
|
|
12415
|
-
align,
|
|
12416
|
-
justify,
|
|
12417
|
-
tag = "div",
|
|
12418
|
-
gap = "base",
|
|
12419
|
-
children,
|
|
12420
|
-
...props
|
|
12421
|
-
}) => {
|
|
12422
|
-
const Tag = tag;
|
|
12423
|
-
return /* @__PURE__ */ jsx33(
|
|
12424
|
-
Tag,
|
|
12425
|
-
{
|
|
12426
|
-
css: [
|
|
12427
|
-
HorizontalRhythmContainer(gap),
|
|
12428
|
-
{
|
|
12429
|
-
justifyContent: justify,
|
|
12430
|
-
alignItems: align
|
|
12431
|
-
}
|
|
12432
|
-
],
|
|
12433
|
-
...props,
|
|
12434
|
-
children
|
|
12435
|
-
}
|
|
12436
|
-
);
|
|
12437
|
-
};
|
|
12438
|
-
|
|
12439
12466
|
// src/components/Layout/styles/TwoColumnLayout.styles.ts
|
|
12440
12467
|
import { css as css33 } from "@emotion/react";
|
|
12441
12468
|
var TwoColumnLayoutContainer = (bgColor) => css33`
|
|
@@ -12749,7 +12776,7 @@ var ChipActionButton = css36`
|
|
|
12749
12776
|
`;
|
|
12750
12777
|
|
|
12751
12778
|
// src/components/Chip/Chip.tsx
|
|
12752
|
-
import { Fragment as
|
|
12779
|
+
import { Fragment as Fragment7, jsx as jsx37, jsxs as jsxs22 } from "@emotion/react/jsx-runtime";
|
|
12753
12780
|
var chipTheme = {
|
|
12754
12781
|
"accent-light": ChipThemeAccentLight,
|
|
12755
12782
|
"accent-dark": ChipThemeAccentDark,
|
|
@@ -12772,7 +12799,7 @@ var Chip = ({
|
|
|
12772
12799
|
md: ChipMedium
|
|
12773
12800
|
};
|
|
12774
12801
|
return /* @__PURE__ */ jsxs22("span", { css: [ChipContainer, chipSize[size], chipTheme[theme]], ...props, children: [
|
|
12775
|
-
icon ? /* @__PURE__ */ jsxs22(
|
|
12802
|
+
icon ? /* @__PURE__ */ jsxs22(Fragment7, { children: [
|
|
12776
12803
|
/* @__PURE__ */ jsx37("span", { role: "presentation", css: [ChipIcon], children: /* @__PURE__ */ jsx37(Icon, { icon, iconColor: "currentColor", size: "1rem" }) }),
|
|
12777
12804
|
/* @__PURE__ */ jsx37("span", { role: "separator", css: ChipSeparator })
|
|
12778
12805
|
] }) : null,
|
|
@@ -13464,7 +13491,7 @@ var DrawerContent2 = ({ children, buttonGroup, noPadding = false, ...props }) =>
|
|
|
13464
13491
|
|
|
13465
13492
|
// src/components/Drawer/DrawerRenderer.tsx
|
|
13466
13493
|
import { useEffect as useEffect6, useMemo as useMemo2 } from "react";
|
|
13467
|
-
import { Fragment as
|
|
13494
|
+
import { Fragment as Fragment8, jsx as jsx46, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
|
|
13468
13495
|
var drawerWidth = {
|
|
13469
13496
|
narrow: "29rem",
|
|
13470
13497
|
medium: "43rem",
|
|
@@ -13553,7 +13580,7 @@ var DrawerWrapper = ({
|
|
|
13553
13580
|
offsetInPx = Math.round(maxLayeringInPx * relativeLevel);
|
|
13554
13581
|
}
|
|
13555
13582
|
const calculatedWidth = `calc(${width} - ${offsetInPx}px)`;
|
|
13556
|
-
return /* @__PURE__ */ jsxs28(
|
|
13583
|
+
return /* @__PURE__ */ jsxs28(Fragment8, { children: [
|
|
13557
13584
|
/* @__PURE__ */ jsx46("div", { css: drawerWrapperOverlayStyles, onClick: onOverlayClick }),
|
|
13558
13585
|
/* @__PURE__ */ jsx46(
|
|
13559
13586
|
"div",
|
|
@@ -14266,7 +14293,7 @@ var InputKeywordSearch = ({
|
|
|
14266
14293
|
};
|
|
14267
14294
|
|
|
14268
14295
|
// src/components/Input/InputSelect.tsx
|
|
14269
|
-
import { Fragment as
|
|
14296
|
+
import { Fragment as Fragment9, jsx as jsx59, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
14270
14297
|
var InputSelect = ({
|
|
14271
14298
|
label,
|
|
14272
14299
|
defaultOption,
|
|
@@ -14288,7 +14315,7 @@ var InputSelect = ({
|
|
|
14288
14315
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
14289
14316
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
14290
14317
|
children: [
|
|
14291
|
-
showLabel ? /* @__PURE__ */ jsx59(
|
|
14318
|
+
showLabel ? /* @__PURE__ */ jsx59(Fragment9, { children: /* @__PURE__ */ jsxs36(
|
|
14292
14319
|
Label,
|
|
14293
14320
|
{
|
|
14294
14321
|
htmlFor: props.id,
|
|
@@ -14410,10 +14437,10 @@ var SuccessMessage = ({ message, testId, ...props }) => {
|
|
|
14410
14437
|
|
|
14411
14438
|
// src/components/Input/Textarea.tsx
|
|
14412
14439
|
import { forwardRef as forwardRef9 } from "react";
|
|
14413
|
-
import { Fragment as
|
|
14440
|
+
import { Fragment as Fragment10, jsx as jsx63, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
14414
14441
|
var Textarea = forwardRef9(
|
|
14415
14442
|
({ label, icon, id, caption, showLabel = true, errorMessage, warningMessage, ...props }, ref) => {
|
|
14416
|
-
return /* @__PURE__ */ jsxs39(
|
|
14443
|
+
return /* @__PURE__ */ jsxs39(Fragment10, { children: [
|
|
14417
14444
|
showLabel ? /* @__PURE__ */ jsx63("label", { htmlFor: id, css: [labelText], children: label }) : null,
|
|
14418
14445
|
/* @__PURE__ */ jsxs39("div", { css: [inputContainer], children: [
|
|
14419
14446
|
/* @__PURE__ */ jsx63(
|
|
@@ -14517,7 +14544,7 @@ var ImageBroken = ({ width, height, ...props }) => {
|
|
|
14517
14544
|
};
|
|
14518
14545
|
|
|
14519
14546
|
// src/components/Image/Image.tsx
|
|
14520
|
-
import { Fragment as
|
|
14547
|
+
import { Fragment as Fragment11, jsx as jsx65, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
14521
14548
|
var MIN_LOADING_MS = 500;
|
|
14522
14549
|
function Image({
|
|
14523
14550
|
alt,
|
|
@@ -14596,7 +14623,7 @@ function Image({
|
|
|
14596
14623
|
onError: handleErrorEvent
|
|
14597
14624
|
}
|
|
14598
14625
|
) : null,
|
|
14599
|
-
src && loadErrorText ? /* @__PURE__ */ jsxs41(
|
|
14626
|
+
src && loadErrorText ? /* @__PURE__ */ jsxs41(Fragment11, { children: [
|
|
14600
14627
|
/* @__PURE__ */ jsx65(
|
|
14601
14628
|
ImageBroken,
|
|
14602
14629
|
{
|
|
@@ -14750,14 +14777,14 @@ var IntegrationTileFloatingButtonMessage = (clicked) => css55`
|
|
|
14750
14777
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
14751
14778
|
import { jsx as jsx66, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
14752
14779
|
var CreateTeamIntegrationTile = ({
|
|
14753
|
-
title = "Create a custom integration for your team",
|
|
14780
|
+
title: title2 = "Create a custom integration for your team",
|
|
14754
14781
|
buttonText = "Add Integration",
|
|
14755
14782
|
onClick,
|
|
14756
14783
|
asDeepLink = false,
|
|
14757
14784
|
...props
|
|
14758
14785
|
}) => {
|
|
14759
14786
|
return /* @__PURE__ */ jsxs42("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
14760
|
-
/* @__PURE__ */ jsx66("span", { css: IntegrationTileTitle, title, children:
|
|
14787
|
+
/* @__PURE__ */ jsx66("span", { css: IntegrationTileTitle, title: title2, children: title2 }),
|
|
14761
14788
|
/* @__PURE__ */ jsxs42(
|
|
14762
14789
|
Button,
|
|
14763
14790
|
{
|
|
@@ -14987,10 +15014,10 @@ var IntegrationLoadingFrame = css58`
|
|
|
14987
15014
|
`;
|
|
14988
15015
|
|
|
14989
15016
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
14990
|
-
import { Fragment as
|
|
15017
|
+
import { Fragment as Fragment12, jsx as jsx71, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
14991
15018
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
14992
15019
|
const componentCount = Array.from(Array(count).keys());
|
|
14993
|
-
return /* @__PURE__ */ jsx71(
|
|
15020
|
+
return /* @__PURE__ */ jsx71(Fragment12, { children: componentCount.map((i) => /* @__PURE__ */ jsxs46("div", { css: IntegrationLoadingTileContainer, children: [
|
|
14994
15021
|
/* @__PURE__ */ jsx71("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
14995
15022
|
/* @__PURE__ */ jsx71("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
14996
15023
|
] }, i)) });
|
|
@@ -15212,7 +15239,7 @@ var IntegrationModalHeaderContentWrapper = css63`
|
|
|
15212
15239
|
`;
|
|
15213
15240
|
|
|
15214
15241
|
// src/components/IntegrationModalHeader/IntegrationModalHeader.tsx
|
|
15215
|
-
import { Fragment as
|
|
15242
|
+
import { Fragment as Fragment13, jsx as jsx77, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
15216
15243
|
var HexModalBackground = ({ ...props }) => {
|
|
15217
15244
|
return /* @__PURE__ */ jsxs49(
|
|
15218
15245
|
"svg",
|
|
@@ -15253,7 +15280,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
15253
15280
|
);
|
|
15254
15281
|
};
|
|
15255
15282
|
var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
15256
|
-
return /* @__PURE__ */ jsxs49(
|
|
15283
|
+
return /* @__PURE__ */ jsxs49(Fragment13, { children: [
|
|
15257
15284
|
/* @__PURE__ */ jsx77(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
15258
15285
|
/* @__PURE__ */ jsx77("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs49("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
15259
15286
|
icon ? /* @__PURE__ */ jsx77(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
@@ -15410,9 +15437,9 @@ var LinkListTitle = css65`
|
|
|
15410
15437
|
|
|
15411
15438
|
// src/components/LinkList/LinkList.tsx
|
|
15412
15439
|
import { jsx as jsx80, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
15413
|
-
var LinkList = ({ title, padding = "var(--spacing-md)", children, ...props }) => {
|
|
15440
|
+
var LinkList = ({ title: title2, padding = "var(--spacing-md)", children, ...props }) => {
|
|
15414
15441
|
return /* @__PURE__ */ jsxs51("div", { css: LinkListContainer(padding), ...props, children: [
|
|
15415
|
-
/* @__PURE__ */ jsx80(Heading, { level: 3, css: LinkListTitle, children:
|
|
15442
|
+
/* @__PURE__ */ jsx80(Heading, { level: 3, css: LinkListTitle, children: title2 }),
|
|
15416
15443
|
children
|
|
15417
15444
|
] });
|
|
15418
15445
|
};
|
|
@@ -15799,6 +15826,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
15799
15826
|
);
|
|
15800
15827
|
};
|
|
15801
15828
|
|
|
15829
|
+
// src/components/MediaCard/MediaCard.tsx
|
|
15830
|
+
import { useCallback as useCallback4 } from "react";
|
|
15831
|
+
|
|
15802
15832
|
// src/components/Popover/Popover.tsx
|
|
15803
15833
|
import {
|
|
15804
15834
|
Popover as ReakitPopover,
|
|
@@ -15836,7 +15866,7 @@ var Popover = css71`
|
|
|
15836
15866
|
`;
|
|
15837
15867
|
|
|
15838
15868
|
// src/components/Popover/Popover.tsx
|
|
15839
|
-
import { Fragment as
|
|
15869
|
+
import { Fragment as Fragment14, jsx as jsx86, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
|
|
15840
15870
|
var Popover2 = ({
|
|
15841
15871
|
iconColor = "action",
|
|
15842
15872
|
icon = "info",
|
|
@@ -15850,7 +15880,7 @@ var Popover2 = ({
|
|
|
15850
15880
|
...otherProps
|
|
15851
15881
|
}) => {
|
|
15852
15882
|
const popover = usePopoverState({ placement });
|
|
15853
|
-
return /* @__PURE__ */ jsxs57(
|
|
15883
|
+
return /* @__PURE__ */ jsxs57(Fragment14, { children: [
|
|
15854
15884
|
/* @__PURE__ */ jsx86(
|
|
15855
15885
|
PopoverDisclosure,
|
|
15856
15886
|
{
|
|
@@ -15858,7 +15888,7 @@ var Popover2 = ({
|
|
|
15858
15888
|
css: [PopoverBtn, trigger ? void 0 : PopoverDefaulterTriggerBtn],
|
|
15859
15889
|
title: buttonText,
|
|
15860
15890
|
"data-testid": testId,
|
|
15861
|
-
children: trigger ? trigger : /* @__PURE__ */ jsxs57(
|
|
15891
|
+
children: trigger ? trigger : /* @__PURE__ */ jsxs57(Fragment14, { children: [
|
|
15862
15892
|
/* @__PURE__ */ jsx86(Icon, { icon, iconColor, size: iconSize }),
|
|
15863
15893
|
/* @__PURE__ */ jsx86("span", { hidden: true, children: buttonText })
|
|
15864
15894
|
] })
|
|
@@ -15870,7 +15900,7 @@ var Popover2 = ({
|
|
|
15870
15900
|
|
|
15871
15901
|
// src/components/MediaCard/MediaCard.styles.ts
|
|
15872
15902
|
import { css as css72 } from "@emotion/react";
|
|
15873
|
-
var
|
|
15903
|
+
var cardBase = css72`
|
|
15874
15904
|
display: flex;
|
|
15875
15905
|
flex-direction: column;
|
|
15876
15906
|
justify-content: flex-start;
|
|
@@ -15879,12 +15909,9 @@ var cardBaseStyles = css72`
|
|
|
15879
15909
|
padding: 0;
|
|
15880
15910
|
min-height: unset;
|
|
15881
15911
|
outline: none;
|
|
15882
|
-
|
|
15883
|
-
&:focus-visible {
|
|
15884
|
-
outline: 2px solid var(--primary-action-default);
|
|
15885
|
-
}
|
|
15912
|
+
cursor: pointer;
|
|
15886
15913
|
`;
|
|
15887
|
-
var
|
|
15914
|
+
var coverWrapper = css72`
|
|
15888
15915
|
position: relative;
|
|
15889
15916
|
display: flex;
|
|
15890
15917
|
align-items: center;
|
|
@@ -15894,27 +15921,43 @@ var cardBaseCoverIconWrapperStyles = css72`
|
|
|
15894
15921
|
overflow: hidden;
|
|
15895
15922
|
border-radius: 3px 3px 0 0;
|
|
15896
15923
|
padding: var(--spacing-sm);
|
|
15897
|
-
|
|
15924
|
+
outline: none;
|
|
15925
|
+
border: 0;
|
|
15898
15926
|
`;
|
|
15899
|
-
var
|
|
15927
|
+
var contentWrapper = css72`
|
|
15900
15928
|
padding: var(--spacing-sm);
|
|
15901
15929
|
`;
|
|
15902
|
-
var
|
|
15930
|
+
var title = css72`
|
|
15903
15931
|
font-size: var(--fs-sm);
|
|
15904
15932
|
color: var(--gray-500);
|
|
15905
|
-
cursor: pointer;
|
|
15906
15933
|
white-space: nowrap;
|
|
15907
15934
|
overflow: hidden;
|
|
15908
15935
|
text-overflow: ellipsis;
|
|
15936
|
+
outline: none;
|
|
15937
|
+
border: 0;
|
|
15938
|
+
background-color: transparent;
|
|
15939
|
+
|
|
15940
|
+
&:focus-visible {
|
|
15941
|
+
outline: 2px solid var(--primary-action-default);
|
|
15942
|
+
}
|
|
15909
15943
|
`;
|
|
15910
|
-
var
|
|
15944
|
+
var subtitle = css72`
|
|
15911
15945
|
font-size: var(--fs-xs);
|
|
15912
15946
|
color: var(--gray-500);
|
|
15913
15947
|
white-space: nowrap;
|
|
15914
15948
|
overflow: hidden;
|
|
15915
15949
|
text-overflow: ellipsis;
|
|
15950
|
+
outline: none;
|
|
15951
|
+
border: 0;
|
|
15952
|
+
background-color: transparent;
|
|
15953
|
+
`;
|
|
15954
|
+
var sideSection = css72`
|
|
15955
|
+
cursor: default;
|
|
15916
15956
|
`;
|
|
15917
|
-
var
|
|
15957
|
+
var menuSection = css72`
|
|
15958
|
+
cursor: default;
|
|
15959
|
+
`;
|
|
15960
|
+
var menuButton = css72`
|
|
15918
15961
|
padding: var(--spacing-2xs);
|
|
15919
15962
|
border-radius: var(--rounded-sm);
|
|
15920
15963
|
border-width: 0;
|
|
@@ -15928,25 +15971,29 @@ var cardBaseMenuButtonStyles = css72`
|
|
|
15928
15971
|
// src/components/MediaCard/MediaCard.tsx
|
|
15929
15972
|
import { jsx as jsx87, jsxs as jsxs58 } from "@emotion/react/jsx-runtime";
|
|
15930
15973
|
var MediaCard = ({
|
|
15931
|
-
title,
|
|
15932
|
-
subtitle,
|
|
15974
|
+
title: title2,
|
|
15975
|
+
subtitle: subtitle2,
|
|
15933
15976
|
infoPopover,
|
|
15934
15977
|
cover,
|
|
15935
15978
|
menuItems,
|
|
15936
|
-
sideSection,
|
|
15979
|
+
sideSection: sideSection2,
|
|
15937
15980
|
onClick,
|
|
15938
15981
|
...cardProps
|
|
15939
15982
|
}) => {
|
|
15940
|
-
|
|
15941
|
-
|
|
15942
|
-
|
|
15983
|
+
const onStopPropogation = useCallback4((e) => {
|
|
15984
|
+
e.stopPropagation();
|
|
15985
|
+
}, []);
|
|
15986
|
+
const hasMenuItems = Array.isArray(menuItems) ? menuItems.length > 0 : Boolean(menuItems);
|
|
15987
|
+
return /* @__PURE__ */ jsxs58(Card, { css: cardBase, ...cardProps, onClick, children: [
|
|
15988
|
+
/* @__PURE__ */ jsx87("button", { tabIndex: -1, css: coverWrapper, children: cover }),
|
|
15989
|
+
/* @__PURE__ */ jsx87("div", { css: contentWrapper, children: /* @__PURE__ */ jsxs58(HorizontalRhythm, { gap: "sm", justify: "space-between", align: "center", css: { width: "100%" }, children: [
|
|
15943
15990
|
/* @__PURE__ */ jsxs58(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1, minWidth: 0 }, children: [
|
|
15944
15991
|
/* @__PURE__ */ jsxs58(HorizontalRhythm, { gap: "xs", align: "center", css: { maxWidth: "100%" }, children: [
|
|
15945
|
-
/* @__PURE__ */ jsx87("
|
|
15946
|
-
!infoPopover ? null : /* @__PURE__ */ jsx87("div", { css: { display: "flex", cursor: "default" }, onClick:
|
|
15992
|
+
/* @__PURE__ */ jsx87("button", { css: title, "data-testid": "card-title", children: title2 }),
|
|
15993
|
+
!infoPopover ? null : /* @__PURE__ */ jsx87("div", { css: { display: "flex", cursor: "default" }, onClick: onStopPropogation, children: /* @__PURE__ */ jsx87(
|
|
15947
15994
|
Popover2,
|
|
15948
15995
|
{
|
|
15949
|
-
baseId: `info-of-${
|
|
15996
|
+
baseId: `info-of-${title2}`,
|
|
15950
15997
|
buttonText: "Details",
|
|
15951
15998
|
ariaLabel: "Details",
|
|
15952
15999
|
iconColor: "default",
|
|
@@ -15956,17 +16003,26 @@ var MediaCard = ({
|
|
|
15956
16003
|
}
|
|
15957
16004
|
) })
|
|
15958
16005
|
] }),
|
|
15959
|
-
|
|
16006
|
+
subtitle2 ? /* @__PURE__ */ jsx87("button", { tabIndex: -1, css: subtitle, children: subtitle2 }) : null
|
|
15960
16007
|
] }),
|
|
15961
|
-
|
|
15962
|
-
|
|
15963
|
-
|
|
16008
|
+
sideSection2 ? /* @__PURE__ */ jsx87("div", { css: sideSection, onClick: onStopPropogation, children: sideSection2 }) : null,
|
|
16009
|
+
hasMenuItems ? /* @__PURE__ */ jsx87(
|
|
16010
|
+
VerticalRhythm,
|
|
15964
16011
|
{
|
|
15965
|
-
|
|
15966
|
-
|
|
15967
|
-
|
|
16012
|
+
css: menuSection,
|
|
16013
|
+
align: "center",
|
|
16014
|
+
justify: "center",
|
|
16015
|
+
onClick: onStopPropogation,
|
|
16016
|
+
children: /* @__PURE__ */ jsx87(
|
|
16017
|
+
Menu,
|
|
16018
|
+
{
|
|
16019
|
+
menuTrigger: /* @__PURE__ */ jsx87("button", { type: "button", "aria-label": "More options", css: menuButton, children: /* @__PURE__ */ jsx87(Icon, { icon: "more-alt", iconColor: "gray", size: 16 }) }),
|
|
16020
|
+
menuLabel: `Menu of ${title2}`,
|
|
16021
|
+
children: menuItems
|
|
16022
|
+
}
|
|
16023
|
+
)
|
|
15968
16024
|
}
|
|
15969
|
-
)
|
|
16025
|
+
) : null
|
|
15970
16026
|
] }) })
|
|
15971
16027
|
] });
|
|
15972
16028
|
};
|
|
@@ -16131,10 +16187,10 @@ var LabelLeadingIcon = ({
|
|
|
16131
16187
|
isBound,
|
|
16132
16188
|
isActive,
|
|
16133
16189
|
isLocked,
|
|
16134
|
-
title,
|
|
16190
|
+
title: title2,
|
|
16135
16191
|
...props
|
|
16136
16192
|
}) => {
|
|
16137
|
-
const titleFr =
|
|
16193
|
+
const titleFr = title2 != null ? title2 : isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
16138
16194
|
return /* @__PURE__ */ jsx89(Tooltip, { title: titleFr, children: /* @__PURE__ */ jsxs60(
|
|
16139
16195
|
"button",
|
|
16140
16196
|
{
|
|
@@ -16163,6 +16219,7 @@ var ConnectToDataElementButton = LabelLeadingIcon;
|
|
|
16163
16219
|
import { css as css75 } from "@emotion/react";
|
|
16164
16220
|
var inputContainer2 = css75`
|
|
16165
16221
|
position: relative;
|
|
16222
|
+
scroll-margin: var(--spacing-2xl);
|
|
16166
16223
|
|
|
16167
16224
|
&:hover,
|
|
16168
16225
|
&:focus,
|
|
@@ -16474,11 +16531,11 @@ var ParameterDrawerHeaderTitle = css76`
|
|
|
16474
16531
|
|
|
16475
16532
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
16476
16533
|
import { jsx as jsx91, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
|
|
16477
|
-
var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
16534
|
+
var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
|
|
16478
16535
|
return /* @__PURE__ */ jsxs62("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
16479
16536
|
/* @__PURE__ */ jsxs62("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
16480
16537
|
iconBeforeTitle,
|
|
16481
|
-
/* @__PURE__ */ jsx91(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children:
|
|
16538
|
+
/* @__PURE__ */ jsx91(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title: title2, children: title2 })
|
|
16482
16539
|
] }),
|
|
16483
16540
|
children
|
|
16484
16541
|
] });
|
|
@@ -16563,7 +16620,7 @@ var previewModalImage = css78`
|
|
|
16563
16620
|
`;
|
|
16564
16621
|
|
|
16565
16622
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
16566
|
-
import { Fragment as
|
|
16623
|
+
import { Fragment as Fragment15, jsx as jsx93, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
|
|
16567
16624
|
function ParameterImagePreview({ imageSrc }) {
|
|
16568
16625
|
const [showModal, setShowModal] = useState10(false);
|
|
16569
16626
|
return imageSrc ? /* @__PURE__ */ jsxs64("div", { css: previewWrapper, children: [
|
|
@@ -16581,7 +16638,7 @@ function ParameterImagePreview({ imageSrc }) {
|
|
|
16581
16638
|
] }) : null;
|
|
16582
16639
|
}
|
|
16583
16640
|
var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
16584
|
-
return open ? /* @__PURE__ */ jsx93(
|
|
16641
|
+
return open ? /* @__PURE__ */ jsx93(Fragment15, { children: createPortal2(
|
|
16585
16642
|
/* @__PURE__ */ jsx93(
|
|
16586
16643
|
Modal,
|
|
16587
16644
|
{
|
|
@@ -16597,6 +16654,7 @@ var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
|
16597
16654
|
};
|
|
16598
16655
|
|
|
16599
16656
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
16657
|
+
import { css as css80 } from "@emotion/react";
|
|
16600
16658
|
import { useState as useState11 } from "react";
|
|
16601
16659
|
|
|
16602
16660
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
@@ -16674,7 +16732,7 @@ var extractParameterProps = (props) => {
|
|
|
16674
16732
|
hiddenLabel,
|
|
16675
16733
|
labelLeadingIcon,
|
|
16676
16734
|
menuItems,
|
|
16677
|
-
title,
|
|
16735
|
+
title: title2,
|
|
16678
16736
|
hasOverriddenValue,
|
|
16679
16737
|
onResetOverriddenValue,
|
|
16680
16738
|
...innerProps
|
|
@@ -16692,7 +16750,7 @@ var extractParameterProps = (props) => {
|
|
|
16692
16750
|
hiddenLabel,
|
|
16693
16751
|
labelLeadingIcon,
|
|
16694
16752
|
menuItems,
|
|
16695
|
-
title,
|
|
16753
|
+
title: title2,
|
|
16696
16754
|
hasOverriddenValue,
|
|
16697
16755
|
onResetOverriddenValue
|
|
16698
16756
|
},
|
|
@@ -16712,27 +16770,43 @@ var ParameterShell = ({
|
|
|
16712
16770
|
errorTestId,
|
|
16713
16771
|
captionTestId,
|
|
16714
16772
|
menuItems,
|
|
16773
|
+
actionItems,
|
|
16715
16774
|
hasOverriddenValue,
|
|
16716
16775
|
onResetOverriddenValue,
|
|
16717
|
-
title,
|
|
16776
|
+
title: title2,
|
|
16718
16777
|
children,
|
|
16719
16778
|
...props
|
|
16720
16779
|
}) => {
|
|
16721
16780
|
const [manualErrorMessage, setManualErrorMessage] = useState11(void 0);
|
|
16722
16781
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
16723
16782
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
16724
|
-
return /* @__PURE__ */ jsxs65("div", { css: inputContainer2, ...props, children: [
|
|
16725
|
-
hiddenLabel ||
|
|
16783
|
+
return /* @__PURE__ */ jsxs65("div", { css: inputContainer2, ...props, id, children: [
|
|
16784
|
+
hiddenLabel || title2 ? null : /* @__PURE__ */ jsxs65(ParameterLabel, { id, css: labelText2, children: [
|
|
16726
16785
|
labelLeadingIcon != null ? labelLeadingIcon : null,
|
|
16727
16786
|
label,
|
|
16728
16787
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
16729
16788
|
] }),
|
|
16730
|
-
!
|
|
16789
|
+
!title2 ? null : /* @__PURE__ */ jsxs65(ParameterLabel, { id, asSpan: true, children: [
|
|
16731
16790
|
labelLeadingIcon != null ? labelLeadingIcon : null,
|
|
16732
|
-
|
|
16791
|
+
title2,
|
|
16733
16792
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
16734
16793
|
] }),
|
|
16735
16794
|
/* @__PURE__ */ jsxs65("div", { css: inputWrapper, children: [
|
|
16795
|
+
actionItems ? /* @__PURE__ */ jsx96(
|
|
16796
|
+
"div",
|
|
16797
|
+
{
|
|
16798
|
+
css: [
|
|
16799
|
+
inputMenu,
|
|
16800
|
+
css80`
|
|
16801
|
+
opacity: var(--opacity-100);
|
|
16802
|
+
`,
|
|
16803
|
+
menuItems ? css80`
|
|
16804
|
+
right: var(--spacing-md);
|
|
16805
|
+
` : void 0
|
|
16806
|
+
],
|
|
16807
|
+
children: actionItems
|
|
16808
|
+
}
|
|
16809
|
+
) : null,
|
|
16736
16810
|
menuItems ? /* @__PURE__ */ jsx96(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
16737
16811
|
/* @__PURE__ */ jsx96(
|
|
16738
16812
|
ParameterShellContext.Provider,
|
|
@@ -16763,7 +16837,7 @@ var ParameterShellPlaceholder = ({ children }) => {
|
|
|
16763
16837
|
var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx96(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx96("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx96("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
16764
16838
|
|
|
16765
16839
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
16766
|
-
import { Fragment as
|
|
16840
|
+
import { Fragment as Fragment16, jsx as jsx97, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
|
|
16767
16841
|
var ParameterImage = forwardRef12(
|
|
16768
16842
|
({ children, ...props }, ref) => {
|
|
16769
16843
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
@@ -16777,7 +16851,7 @@ var ParameterImageInner = forwardRef12((props, ref) => {
|
|
|
16777
16851
|
const { value } = props;
|
|
16778
16852
|
const { id, label, hiddenLabel, errorMessage } = useParameterShell();
|
|
16779
16853
|
const deferredValue = useDeferredValue(value);
|
|
16780
|
-
return /* @__PURE__ */ jsxs66(
|
|
16854
|
+
return /* @__PURE__ */ jsxs66(Fragment16, { children: [
|
|
16781
16855
|
/* @__PURE__ */ jsx97(
|
|
16782
16856
|
"input",
|
|
16783
16857
|
{
|
|
@@ -16892,7 +16966,7 @@ var ParameterLinkInner = forwardRef14(
|
|
|
16892
16966
|
);
|
|
16893
16967
|
|
|
16894
16968
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
16895
|
-
import { Fragment as
|
|
16969
|
+
import { Fragment as Fragment17, jsx as jsx100, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
|
|
16896
16970
|
var ParameterNameAndPublicIdInput = ({
|
|
16897
16971
|
id,
|
|
16898
16972
|
onBlur,
|
|
@@ -16918,7 +16992,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16918
16992
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
16919
16993
|
};
|
|
16920
16994
|
autoFocus == null ? void 0 : autoFocus();
|
|
16921
|
-
return /* @__PURE__ */ jsxs68(
|
|
16995
|
+
return /* @__PURE__ */ jsxs68(Fragment17, { children: [
|
|
16922
16996
|
/* @__PURE__ */ jsx100(
|
|
16923
16997
|
ParameterInput,
|
|
16924
16998
|
{
|
|
@@ -16969,7 +17043,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16969
17043
|
};
|
|
16970
17044
|
|
|
16971
17045
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
16972
|
-
import { css as
|
|
17046
|
+
import { css as css84 } from "@emotion/react";
|
|
16973
17047
|
import { ListItemNode, ListNode as ListNode2 } from "@lexical/list";
|
|
16974
17048
|
import {
|
|
16975
17049
|
CODE,
|
|
@@ -17121,23 +17195,23 @@ function DisableStylesPlugin() {
|
|
|
17121
17195
|
}
|
|
17122
17196
|
|
|
17123
17197
|
// src/components/ParameterInputs/rich-text/editorStyles.ts
|
|
17124
|
-
import { css as
|
|
17125
|
-
var textBold =
|
|
17198
|
+
import { css as css81 } from "@emotion/css";
|
|
17199
|
+
var textBold = css81`
|
|
17126
17200
|
font-weight: 700;
|
|
17127
17201
|
`;
|
|
17128
|
-
var textItalic =
|
|
17202
|
+
var textItalic = css81`
|
|
17129
17203
|
font-style: italic;
|
|
17130
17204
|
`;
|
|
17131
|
-
var textUnderline =
|
|
17205
|
+
var textUnderline = css81`
|
|
17132
17206
|
text-decoration: underline;
|
|
17133
17207
|
`;
|
|
17134
|
-
var textStrikethrough =
|
|
17208
|
+
var textStrikethrough = css81`
|
|
17135
17209
|
text-decoration: line-through;
|
|
17136
17210
|
`;
|
|
17137
|
-
var textUnderlineStrikethrough =
|
|
17211
|
+
var textUnderlineStrikethrough = css81`
|
|
17138
17212
|
text-decoration: underline line-through;
|
|
17139
17213
|
`;
|
|
17140
|
-
var textCode =
|
|
17214
|
+
var textCode = css81`
|
|
17141
17215
|
background-color: var(--gray-100);
|
|
17142
17216
|
border-radius: var(--rounded-sm);
|
|
17143
17217
|
display: inline-block;
|
|
@@ -17148,68 +17222,68 @@ var textCode = css80`
|
|
|
17148
17222
|
padding-left: var(--spacing-xs);
|
|
17149
17223
|
padding-right: var(--spacing-xs);
|
|
17150
17224
|
`;
|
|
17151
|
-
var textSuperscript =
|
|
17225
|
+
var textSuperscript = css81`
|
|
17152
17226
|
vertical-align: super;
|
|
17153
17227
|
font-size: smaller;
|
|
17154
17228
|
`;
|
|
17155
|
-
var textSubscript =
|
|
17229
|
+
var textSubscript = css81`
|
|
17156
17230
|
vertical-align: sub;
|
|
17157
17231
|
font-size: smaller;
|
|
17158
17232
|
`;
|
|
17159
|
-
var linkElement =
|
|
17233
|
+
var linkElement = css81`
|
|
17160
17234
|
${link}
|
|
17161
17235
|
${linkColorDefault}
|
|
17162
17236
|
text-decoration: underline;
|
|
17163
17237
|
`;
|
|
17164
|
-
var h12 =
|
|
17238
|
+
var h12 = css81`
|
|
17165
17239
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.7rem);
|
|
17166
17240
|
`;
|
|
17167
|
-
var h22 =
|
|
17241
|
+
var h22 = css81`
|
|
17168
17242
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.6rem);
|
|
17169
17243
|
`;
|
|
17170
|
-
var h32 =
|
|
17244
|
+
var h32 = css81`
|
|
17171
17245
|
font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
|
|
17172
17246
|
`;
|
|
17173
|
-
var h42 =
|
|
17247
|
+
var h42 = css81`
|
|
17174
17248
|
font-size: clamp(1.15rem, var(--fluid-font-base), 1.25rem);
|
|
17175
17249
|
`;
|
|
17176
|
-
var h52 =
|
|
17250
|
+
var h52 = css81`
|
|
17177
17251
|
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
17178
17252
|
`;
|
|
17179
|
-
var h62 =
|
|
17253
|
+
var h62 = css81`
|
|
17180
17254
|
font-size: var(--fs-base);
|
|
17181
17255
|
`;
|
|
17182
|
-
var heading1Element =
|
|
17256
|
+
var heading1Element = css81`
|
|
17183
17257
|
${h12}
|
|
17184
17258
|
${commonHeadingAttr(true)}
|
|
17185
17259
|
${commonLineHeight}
|
|
17186
17260
|
`;
|
|
17187
|
-
var heading2Element =
|
|
17261
|
+
var heading2Element = css81`
|
|
17188
17262
|
${h22}
|
|
17189
17263
|
${commonHeadingAttr(true)}
|
|
17190
17264
|
${commonLineHeight}
|
|
17191
17265
|
`;
|
|
17192
|
-
var heading3Element =
|
|
17266
|
+
var heading3Element = css81`
|
|
17193
17267
|
${h32}
|
|
17194
17268
|
${commonHeadingAttr(true)}
|
|
17195
17269
|
${commonLineHeight}
|
|
17196
17270
|
`;
|
|
17197
|
-
var heading4Element =
|
|
17271
|
+
var heading4Element = css81`
|
|
17198
17272
|
${h42}
|
|
17199
17273
|
${commonHeadingAttr(true)}
|
|
17200
17274
|
${commonLineHeight}
|
|
17201
17275
|
`;
|
|
17202
|
-
var heading5Element =
|
|
17276
|
+
var heading5Element = css81`
|
|
17203
17277
|
${h52}
|
|
17204
17278
|
${commonHeadingAttr(true)}
|
|
17205
17279
|
${commonLineHeight}
|
|
17206
17280
|
`;
|
|
17207
|
-
var heading6Element =
|
|
17281
|
+
var heading6Element = css81`
|
|
17208
17282
|
${h62}
|
|
17209
17283
|
${commonHeadingAttr(true)}
|
|
17210
17284
|
${commonLineHeight}
|
|
17211
17285
|
`;
|
|
17212
|
-
var paragraphElement =
|
|
17286
|
+
var paragraphElement = css81`
|
|
17213
17287
|
line-height: 1.5;
|
|
17214
17288
|
margin-bottom: var(--spacing-base);
|
|
17215
17289
|
|
|
@@ -17217,7 +17291,7 @@ var paragraphElement = css80`
|
|
|
17217
17291
|
margin-bottom: 0;
|
|
17218
17292
|
}
|
|
17219
17293
|
`;
|
|
17220
|
-
var orderedListElement =
|
|
17294
|
+
var orderedListElement = css81`
|
|
17221
17295
|
${commonLineHeight}
|
|
17222
17296
|
display: block;
|
|
17223
17297
|
list-style: decimal;
|
|
@@ -17246,7 +17320,7 @@ var orderedListElement = css80`
|
|
|
17246
17320
|
}
|
|
17247
17321
|
}
|
|
17248
17322
|
`;
|
|
17249
|
-
var unorderedListElement =
|
|
17323
|
+
var unorderedListElement = css81`
|
|
17250
17324
|
${commonLineHeight}
|
|
17251
17325
|
display: block;
|
|
17252
17326
|
list-style: disc;
|
|
@@ -17267,13 +17341,13 @@ var unorderedListElement = css80`
|
|
|
17267
17341
|
}
|
|
17268
17342
|
}
|
|
17269
17343
|
`;
|
|
17270
|
-
var listItemElement =
|
|
17344
|
+
var listItemElement = css81`
|
|
17271
17345
|
margin-left: var(--spacing-md);
|
|
17272
17346
|
`;
|
|
17273
|
-
var nestedListItemElement =
|
|
17347
|
+
var nestedListItemElement = css81`
|
|
17274
17348
|
list-style-type: none;
|
|
17275
17349
|
`;
|
|
17276
|
-
var blockquoteElement =
|
|
17350
|
+
var blockquoteElement = css81`
|
|
17277
17351
|
border-left: 0.25rem solid var(--gray-300);
|
|
17278
17352
|
color: var(--gray-600);
|
|
17279
17353
|
margin-bottom: var(--spacing-base);
|
|
@@ -17283,7 +17357,7 @@ var blockquoteElement = css80`
|
|
|
17283
17357
|
margin-bottom: 0;
|
|
17284
17358
|
}
|
|
17285
17359
|
`;
|
|
17286
|
-
var codeElement =
|
|
17360
|
+
var codeElement = css81`
|
|
17287
17361
|
background-color: var(--gray-100);
|
|
17288
17362
|
border-radius: var(--rounded-sm);
|
|
17289
17363
|
display: block;
|
|
@@ -17300,7 +17374,7 @@ var codeElement = css80`
|
|
|
17300
17374
|
`;
|
|
17301
17375
|
|
|
17302
17376
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
17303
|
-
import { css as
|
|
17377
|
+
import { css as css82 } from "@emotion/react";
|
|
17304
17378
|
import { useLexicalComposerContext as useLexicalComposerContext2 } from "@lexical/react/LexicalComposerContext";
|
|
17305
17379
|
import { NodeEventPlugin } from "@lexical/react/LexicalNodeEventPlugin";
|
|
17306
17380
|
import { addClassNamesToElement, isHTMLAnchorElement, mergeRegister as mergeRegister2 } from "@lexical/utils";
|
|
@@ -17316,7 +17390,7 @@ import {
|
|
|
17316
17390
|
ElementNode as ElementNode2,
|
|
17317
17391
|
FOCUS_COMMAND
|
|
17318
17392
|
} from "lexical";
|
|
17319
|
-
import { useCallback as
|
|
17393
|
+
import { useCallback as useCallback5, useEffect as useEffect11, useRef as useRef6, useState as useState12 } from "react";
|
|
17320
17394
|
|
|
17321
17395
|
// src/components/ParameterInputs/rich-text/utils.ts
|
|
17322
17396
|
import { $isAtNodeEnd } from "@lexical/selection";
|
|
@@ -17354,7 +17428,7 @@ var getSelectedNode = (selection) => {
|
|
|
17354
17428
|
};
|
|
17355
17429
|
|
|
17356
17430
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
17357
|
-
import { Fragment as
|
|
17431
|
+
import { Fragment as Fragment18, jsx as jsx101, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
|
|
17358
17432
|
var isProjectMapLinkValue = (value) => {
|
|
17359
17433
|
return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
|
|
17360
17434
|
value.nodeId && value.path && value.projectMapId
|
|
@@ -17641,16 +17715,16 @@ var OPEN_LINK_NODE_MODAL_COMMAND = createCommand(
|
|
|
17641
17715
|
);
|
|
17642
17716
|
var LINK_POPOVER_OFFSET_X = 0;
|
|
17643
17717
|
var LINK_POPOVER_OFFSET_Y = 8;
|
|
17644
|
-
var linkPopover =
|
|
17718
|
+
var linkPopover = css82`
|
|
17645
17719
|
position: absolute;
|
|
17646
17720
|
z-index: 5;
|
|
17647
17721
|
`;
|
|
17648
|
-
var linkPopoverContainer =
|
|
17722
|
+
var linkPopoverContainer = css82`
|
|
17649
17723
|
${Popover};
|
|
17650
17724
|
align-items: center;
|
|
17651
17725
|
display: flex;
|
|
17652
17726
|
`;
|
|
17653
|
-
var linkPopoverAnchor =
|
|
17727
|
+
var linkPopoverAnchor = css82`
|
|
17654
17728
|
${link}
|
|
17655
17729
|
${linkColorDefault}
|
|
17656
17730
|
`;
|
|
@@ -17738,7 +17812,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17738
17812
|
)
|
|
17739
17813
|
);
|
|
17740
17814
|
}, [editor, onConnectLink]);
|
|
17741
|
-
const maybeShowLinkToolbar =
|
|
17815
|
+
const maybeShowLinkToolbar = useCallback5(() => {
|
|
17742
17816
|
if (!editor.isEditable()) {
|
|
17743
17817
|
return;
|
|
17744
17818
|
}
|
|
@@ -17797,7 +17871,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17797
17871
|
});
|
|
17798
17872
|
});
|
|
17799
17873
|
};
|
|
17800
|
-
return /* @__PURE__ */ jsxs69(
|
|
17874
|
+
return /* @__PURE__ */ jsxs69(Fragment18, { children: [
|
|
17801
17875
|
/* @__PURE__ */ jsx101(
|
|
17802
17876
|
NodeEventPlugin,
|
|
17803
17877
|
{
|
|
@@ -17897,7 +17971,7 @@ function ListIndentPlugin({ maxDepth }) {
|
|
|
17897
17971
|
}
|
|
17898
17972
|
|
|
17899
17973
|
// src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
|
|
17900
|
-
import { css as
|
|
17974
|
+
import { css as css83 } from "@emotion/react";
|
|
17901
17975
|
import { $createCodeNode } from "@lexical/code";
|
|
17902
17976
|
import {
|
|
17903
17977
|
$isListNode as $isListNode2,
|
|
@@ -17919,9 +17993,9 @@ import {
|
|
|
17919
17993
|
FORMAT_TEXT_COMMAND,
|
|
17920
17994
|
SELECTION_CHANGE_COMMAND
|
|
17921
17995
|
} from "lexical";
|
|
17922
|
-
import { useCallback as
|
|
17923
|
-
import { Fragment as
|
|
17924
|
-
var toolbar =
|
|
17996
|
+
import { useCallback as useCallback6, useEffect as useEffect13, useMemo as useMemo3, useState as useState13 } from "react";
|
|
17997
|
+
import { Fragment as Fragment19, jsx as jsx103, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
17998
|
+
var toolbar = css83`
|
|
17925
17999
|
background: var(--gray-50);
|
|
17926
18000
|
border-radius: var(--rounded-base);
|
|
17927
18001
|
display: flex;
|
|
@@ -17933,7 +18007,7 @@ var toolbar = css82`
|
|
|
17933
18007
|
top: calc(var(--spacing-sm) * -2);
|
|
17934
18008
|
z-index: 10;
|
|
17935
18009
|
`;
|
|
17936
|
-
var toolbarGroup =
|
|
18010
|
+
var toolbarGroup = css83`
|
|
17937
18011
|
display: flex;
|
|
17938
18012
|
gap: var(--spacing-xs);
|
|
17939
18013
|
position: relative;
|
|
@@ -17949,7 +18023,7 @@ var toolbarGroup = css82`
|
|
|
17949
18023
|
width: 1px;
|
|
17950
18024
|
}
|
|
17951
18025
|
`;
|
|
17952
|
-
var richTextToolbarButton =
|
|
18026
|
+
var richTextToolbarButton = css83`
|
|
17953
18027
|
align-items: center;
|
|
17954
18028
|
appearance: none;
|
|
17955
18029
|
border: 0;
|
|
@@ -17962,13 +18036,13 @@ var richTextToolbarButton = css82`
|
|
|
17962
18036
|
min-width: 32px;
|
|
17963
18037
|
padding: 0 var(--spacing-sm);
|
|
17964
18038
|
`;
|
|
17965
|
-
var richTextToolbarButtonActive =
|
|
18039
|
+
var richTextToolbarButtonActive = css83`
|
|
17966
18040
|
background: var(--gray-200);
|
|
17967
18041
|
`;
|
|
17968
|
-
var toolbarIcon =
|
|
18042
|
+
var toolbarIcon = css83`
|
|
17969
18043
|
color: inherit;
|
|
17970
18044
|
`;
|
|
17971
|
-
var toolbarChevron =
|
|
18045
|
+
var toolbarChevron = css83`
|
|
17972
18046
|
margin-left: var(--spacing-xs);
|
|
17973
18047
|
`;
|
|
17974
18048
|
var RichTextToolbarIcon = ({ icon }) => {
|
|
@@ -18023,7 +18097,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18023
18097
|
}
|
|
18024
18098
|
});
|
|
18025
18099
|
};
|
|
18026
|
-
const updateToolbar =
|
|
18100
|
+
const updateToolbar = useCallback6(() => {
|
|
18027
18101
|
const selection = $getSelection3();
|
|
18028
18102
|
if (!$isRangeSelection3(selection)) {
|
|
18029
18103
|
return;
|
|
@@ -18157,7 +18231,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18157
18231
|
children: /* @__PURE__ */ jsx103(RichTextToolbarIcon, { icon: "link" })
|
|
18158
18232
|
}
|
|
18159
18233
|
) }) : null,
|
|
18160
|
-
visibleLists.size > 0 ? /* @__PURE__ */ jsxs70(
|
|
18234
|
+
visibleLists.size > 0 ? /* @__PURE__ */ jsxs70(Fragment19, { children: [
|
|
18161
18235
|
visibleLists.has("unorderedList") ? /* @__PURE__ */ jsx103(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ jsx103(
|
|
18162
18236
|
"button",
|
|
18163
18237
|
{
|
|
@@ -18320,7 +18394,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
18320
18394
|
};
|
|
18321
18395
|
|
|
18322
18396
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
18323
|
-
import { Fragment as
|
|
18397
|
+
import { Fragment as Fragment20, jsx as jsx104, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
|
|
18324
18398
|
var ParameterRichText = ({
|
|
18325
18399
|
label,
|
|
18326
18400
|
labelLeadingIcon,
|
|
@@ -18348,7 +18422,7 @@ var ParameterRichText = ({
|
|
|
18348
18422
|
return /* @__PURE__ */ jsxs71(
|
|
18349
18423
|
ParameterShell,
|
|
18350
18424
|
{
|
|
18351
|
-
"data-testid": "parameter-
|
|
18425
|
+
"data-testid": "parameter-richtext",
|
|
18352
18426
|
label,
|
|
18353
18427
|
hiddenLabel,
|
|
18354
18428
|
labelLeadingIcon,
|
|
@@ -18377,23 +18451,23 @@ var ParameterRichText = ({
|
|
|
18377
18451
|
children
|
|
18378
18452
|
}
|
|
18379
18453
|
),
|
|
18380
|
-
menuItems ? /* @__PURE__ */ jsx104(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx104(
|
|
18454
|
+
menuItems ? /* @__PURE__ */ jsx104(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx104(Fragment20, { children: menuItems }) }) : null
|
|
18381
18455
|
]
|
|
18382
18456
|
}
|
|
18383
18457
|
);
|
|
18384
18458
|
};
|
|
18385
|
-
var editorWrapper =
|
|
18459
|
+
var editorWrapper = css84`
|
|
18386
18460
|
display: flex;
|
|
18387
18461
|
flex-flow: column;
|
|
18388
18462
|
flex-grow: 1;
|
|
18389
18463
|
`;
|
|
18390
|
-
var editorContainer =
|
|
18464
|
+
var editorContainer = css84`
|
|
18391
18465
|
display: flex;
|
|
18392
18466
|
flex-flow: column;
|
|
18393
18467
|
flex-grow: 1;
|
|
18394
18468
|
position: relative;
|
|
18395
18469
|
`;
|
|
18396
|
-
var editorPlaceholder =
|
|
18470
|
+
var editorPlaceholder = css84`
|
|
18397
18471
|
color: var(--gray-500);
|
|
18398
18472
|
font-style: italic;
|
|
18399
18473
|
/* 1px is added to make sure caret is clearly visible when field is focused
|
|
@@ -18404,7 +18478,7 @@ var editorPlaceholder = css83`
|
|
|
18404
18478
|
top: var(--spacing-xs);
|
|
18405
18479
|
user-select: none;
|
|
18406
18480
|
`;
|
|
18407
|
-
var editorInput =
|
|
18481
|
+
var editorInput = css84`
|
|
18408
18482
|
background: var(--white);
|
|
18409
18483
|
border: 1px solid var(--white);
|
|
18410
18484
|
border-radius: var(--rounded-sm);
|
|
@@ -18488,7 +18562,7 @@ var ParameterRichTextInner = ({
|
|
|
18488
18562
|
},
|
|
18489
18563
|
editable: !readOnly
|
|
18490
18564
|
};
|
|
18491
|
-
return /* @__PURE__ */ jsxs71(
|
|
18565
|
+
return /* @__PURE__ */ jsxs71(Fragment20, { children: [
|
|
18492
18566
|
/* @__PURE__ */ jsx104("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx104(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx104(
|
|
18493
18567
|
RichText,
|
|
18494
18568
|
{
|
|
@@ -18545,7 +18619,7 @@ var RichText = ({
|
|
|
18545
18619
|
removeUpdateListener();
|
|
18546
18620
|
};
|
|
18547
18621
|
}, []);
|
|
18548
|
-
return /* @__PURE__ */ jsxs71(
|
|
18622
|
+
return /* @__PURE__ */ jsxs71(Fragment20, { children: [
|
|
18549
18623
|
readOnly ? null : /* @__PURE__ */ jsx104(RichTextToolbar_default, { config, customControls }),
|
|
18550
18624
|
/* @__PURE__ */ jsxs71("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
|
|
18551
18625
|
/* @__PURE__ */ jsx104(
|
|
@@ -18571,7 +18645,7 @@ var RichText = ({
|
|
|
18571
18645
|
/* @__PURE__ */ jsx104(ListIndentPlugin, { maxDepth: 4 }),
|
|
18572
18646
|
/* @__PURE__ */ jsx104(DisableStylesPlugin, {}),
|
|
18573
18647
|
/* @__PURE__ */ jsx104(MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
|
|
18574
|
-
/* @__PURE__ */ jsx104(
|
|
18648
|
+
/* @__PURE__ */ jsx104(Fragment20, { children })
|
|
18575
18649
|
] })
|
|
18576
18650
|
] });
|
|
18577
18651
|
};
|
|
@@ -18647,8 +18721,8 @@ var ParameterToggleInner = forwardRef17(
|
|
|
18647
18721
|
);
|
|
18648
18722
|
|
|
18649
18723
|
// src/components/ProgressBar/ProgressBar.styles.ts
|
|
18650
|
-
import { css as
|
|
18651
|
-
var container =
|
|
18724
|
+
import { css as css85 } from "@emotion/react";
|
|
18725
|
+
var container = css85`
|
|
18652
18726
|
background: var(--gray-50);
|
|
18653
18727
|
margin-block: var(--spacing-sm);
|
|
18654
18728
|
position: relative;
|
|
@@ -18658,14 +18732,14 @@ var container = css84`
|
|
|
18658
18732
|
border: solid 1px var(--gray-300);
|
|
18659
18733
|
`;
|
|
18660
18734
|
var themeMap = {
|
|
18661
|
-
primary:
|
|
18735
|
+
primary: css85`
|
|
18662
18736
|
background-color: var(--accent-light);
|
|
18663
18737
|
`,
|
|
18664
|
-
secondary:
|
|
18738
|
+
secondary: css85`
|
|
18665
18739
|
background-color: var(--brand-secondary-5);
|
|
18666
18740
|
`
|
|
18667
18741
|
};
|
|
18668
|
-
var bar =
|
|
18742
|
+
var bar = css85`
|
|
18669
18743
|
position: absolute;
|
|
18670
18744
|
inset: 0;
|
|
18671
18745
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
@@ -18703,21 +18777,21 @@ function ProgressBar({ className, current, max, theme = "primary" }) {
|
|
|
18703
18777
|
}
|
|
18704
18778
|
|
|
18705
18779
|
// src/components/ProgressList/ProgressList.tsx
|
|
18706
|
-
import { css as
|
|
18780
|
+
import { css as css87 } from "@emotion/react";
|
|
18707
18781
|
import { CgCheckO as CgCheckO2 } from "@react-icons/all-files/cg/CgCheckO";
|
|
18708
18782
|
import { CgRadioCheck } from "@react-icons/all-files/cg/CgRadioCheck";
|
|
18709
18783
|
import { CgRecord } from "@react-icons/all-files/cg/CgRecord";
|
|
18710
18784
|
import { useMemo as useMemo4 } from "react";
|
|
18711
18785
|
|
|
18712
18786
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
18713
|
-
import { css as
|
|
18714
|
-
var progressListStyles =
|
|
18787
|
+
import { css as css86 } from "@emotion/react";
|
|
18788
|
+
var progressListStyles = css86`
|
|
18715
18789
|
display: flex;
|
|
18716
18790
|
flex-direction: column;
|
|
18717
18791
|
gap: var(--spacing-sm);
|
|
18718
18792
|
list-style-type: none;
|
|
18719
18793
|
`;
|
|
18720
|
-
var progressListItemStyles =
|
|
18794
|
+
var progressListItemStyles = css86`
|
|
18721
18795
|
display: flex;
|
|
18722
18796
|
gap: var(--spacing-base);
|
|
18723
18797
|
align-items: center;
|
|
@@ -18772,12 +18846,12 @@ var ProgressListItem = ({
|
|
|
18772
18846
|
}, [status, error]);
|
|
18773
18847
|
const statusStyles = useMemo4(() => {
|
|
18774
18848
|
if (error) {
|
|
18775
|
-
return errorLevel === "caution" ?
|
|
18849
|
+
return errorLevel === "caution" ? css87`
|
|
18776
18850
|
color: rgb(161, 98, 7);
|
|
18777
18851
|
& svg {
|
|
18778
18852
|
color: rgb(250, 204, 21);
|
|
18779
18853
|
}
|
|
18780
|
-
` :
|
|
18854
|
+
` : css87`
|
|
18781
18855
|
color: rgb(185, 28, 28);
|
|
18782
18856
|
& svg {
|
|
18783
18857
|
color: var(--brand-primary-2);
|
|
@@ -18785,13 +18859,13 @@ var ProgressListItem = ({
|
|
|
18785
18859
|
`;
|
|
18786
18860
|
}
|
|
18787
18861
|
const colorPerStatus = {
|
|
18788
|
-
completed:
|
|
18862
|
+
completed: css87`
|
|
18789
18863
|
opacity: 0.75;
|
|
18790
18864
|
`,
|
|
18791
|
-
inProgress:
|
|
18865
|
+
inProgress: css87`
|
|
18792
18866
|
-webkit-text-stroke-width: thin;
|
|
18793
18867
|
`,
|
|
18794
|
-
queued:
|
|
18868
|
+
queued: css87`
|
|
18795
18869
|
opacity: 0.5;
|
|
18796
18870
|
`
|
|
18797
18871
|
};
|
|
@@ -18807,13 +18881,13 @@ var ProgressListItem = ({
|
|
|
18807
18881
|
};
|
|
18808
18882
|
|
|
18809
18883
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
18810
|
-
import { css as
|
|
18884
|
+
import { css as css89 } from "@emotion/react";
|
|
18811
18885
|
import { CgCheck as CgCheck4 } from "@react-icons/all-files/cg/CgCheck";
|
|
18812
|
-
import { useCallback as
|
|
18886
|
+
import { useCallback as useCallback7, useMemo as useMemo5 } from "react";
|
|
18813
18887
|
|
|
18814
18888
|
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
18815
|
-
import { css as
|
|
18816
|
-
var segmentedControlStyles =
|
|
18889
|
+
import { css as css88 } from "@emotion/react";
|
|
18890
|
+
var segmentedControlStyles = css88`
|
|
18817
18891
|
--segmented-control-rounded-value: var(--rounded-base);
|
|
18818
18892
|
--segmented-control-border-width: 1px;
|
|
18819
18893
|
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
@@ -18832,14 +18906,14 @@ var segmentedControlStyles = css87`
|
|
|
18832
18906
|
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
18833
18907
|
font-size: var(--fs-xs);
|
|
18834
18908
|
`;
|
|
18835
|
-
var segmentedControlVerticalStyles =
|
|
18909
|
+
var segmentedControlVerticalStyles = css88`
|
|
18836
18910
|
flex-direction: column;
|
|
18837
18911
|
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
18838
18912
|
var(--segmented-control-rounded-value) 0 0;
|
|
18839
18913
|
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
18840
18914
|
var(--segmented-control-rounded-value);
|
|
18841
18915
|
`;
|
|
18842
|
-
var segmentedControlItemStyles =
|
|
18916
|
+
var segmentedControlItemStyles = css88`
|
|
18843
18917
|
&:first-of-type label {
|
|
18844
18918
|
border-radius: var(--segmented-control-first-border-radius);
|
|
18845
18919
|
}
|
|
@@ -18847,10 +18921,10 @@ var segmentedControlItemStyles = css87`
|
|
|
18847
18921
|
border-radius: var(--segmented-control-last-border-radius);
|
|
18848
18922
|
}
|
|
18849
18923
|
`;
|
|
18850
|
-
var segmentedControlInputStyles =
|
|
18924
|
+
var segmentedControlInputStyles = css88`
|
|
18851
18925
|
${accessibleHidden}
|
|
18852
18926
|
`;
|
|
18853
|
-
var segmentedControlLabelStyles = (checked, disabled) =>
|
|
18927
|
+
var segmentedControlLabelStyles = (checked, disabled) => css88`
|
|
18854
18928
|
position: relative;
|
|
18855
18929
|
display: flex;
|
|
18856
18930
|
align-items: center;
|
|
@@ -18917,20 +18991,20 @@ var segmentedControlLabelStyles = (checked, disabled) => css87`
|
|
|
18917
18991
|
`}
|
|
18918
18992
|
}
|
|
18919
18993
|
`;
|
|
18920
|
-
var segmentedControlLabelIconOnlyStyles =
|
|
18994
|
+
var segmentedControlLabelIconOnlyStyles = css88`
|
|
18921
18995
|
padding-inline: 0.5em;
|
|
18922
18996
|
`;
|
|
18923
|
-
var segmentedControlLabelCheckStyles =
|
|
18997
|
+
var segmentedControlLabelCheckStyles = css88`
|
|
18924
18998
|
opacity: 0.5;
|
|
18925
18999
|
`;
|
|
18926
|
-
var segmentedControlLabelContentStyles =
|
|
19000
|
+
var segmentedControlLabelContentStyles = css88`
|
|
18927
19001
|
display: flex;
|
|
18928
19002
|
align-items: center;
|
|
18929
19003
|
justify-content: center;
|
|
18930
19004
|
gap: var(--spacing-sm);
|
|
18931
19005
|
height: 100%;
|
|
18932
19006
|
`;
|
|
18933
|
-
var segmentedControlLabelTextStyles =
|
|
19007
|
+
var segmentedControlLabelTextStyles = css88``;
|
|
18934
19008
|
|
|
18935
19009
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
18936
19010
|
import { jsx as jsx110, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
|
|
@@ -18945,7 +19019,7 @@ var SegmentedControl = ({
|
|
|
18945
19019
|
size = "md",
|
|
18946
19020
|
...props
|
|
18947
19021
|
}) => {
|
|
18948
|
-
const onOptionChange =
|
|
19022
|
+
const onOptionChange = useCallback7(
|
|
18949
19023
|
(event) => {
|
|
18950
19024
|
if (event.target.checked) {
|
|
18951
19025
|
onChange == null ? void 0 : onChange(options[parseInt(event.target.value)].value);
|
|
@@ -18955,9 +19029,9 @@ var SegmentedControl = ({
|
|
|
18955
19029
|
);
|
|
18956
19030
|
const sizeStyles = useMemo5(() => {
|
|
18957
19031
|
const map = {
|
|
18958
|
-
sm:
|
|
18959
|
-
md:
|
|
18960
|
-
lg:
|
|
19032
|
+
sm: css89({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
19033
|
+
md: css89({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
19034
|
+
lg: css89({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
|
|
18961
19035
|
};
|
|
18962
19036
|
return map[size];
|
|
18963
19037
|
}, [size]);
|
|
@@ -19014,12 +19088,12 @@ var SegmentedControl = ({
|
|
|
19014
19088
|
};
|
|
19015
19089
|
|
|
19016
19090
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
19017
|
-
import { css as
|
|
19091
|
+
import { css as css90, keyframes as keyframes4 } from "@emotion/react";
|
|
19018
19092
|
var lightFadingOut = keyframes4`
|
|
19019
19093
|
from { opacity: 0.1; }
|
|
19020
19094
|
to { opacity: 0.025; }
|
|
19021
19095
|
`;
|
|
19022
|
-
var skeletonStyles =
|
|
19096
|
+
var skeletonStyles = css90`
|
|
19023
19097
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
19024
19098
|
background-color: var(--gray-900);
|
|
19025
19099
|
`;
|
|
@@ -19056,8 +19130,8 @@ var Skeleton = ({
|
|
|
19056
19130
|
import * as React23 from "react";
|
|
19057
19131
|
|
|
19058
19132
|
// src/components/Switch/Switch.styles.ts
|
|
19059
|
-
import { css as
|
|
19060
|
-
var SwitchInputContainer =
|
|
19133
|
+
import { css as css91 } from "@emotion/react";
|
|
19134
|
+
var SwitchInputContainer = css91`
|
|
19061
19135
|
cursor: pointer;
|
|
19062
19136
|
display: inline-block;
|
|
19063
19137
|
position: relative;
|
|
@@ -19066,7 +19140,7 @@ var SwitchInputContainer = css90`
|
|
|
19066
19140
|
vertical-align: middle;
|
|
19067
19141
|
user-select: none;
|
|
19068
19142
|
`;
|
|
19069
|
-
var SwitchInput =
|
|
19143
|
+
var SwitchInput = css91`
|
|
19070
19144
|
appearance: none;
|
|
19071
19145
|
border-radius: var(--rounded-full);
|
|
19072
19146
|
background-color: var(--white);
|
|
@@ -19104,7 +19178,7 @@ var SwitchInput = css90`
|
|
|
19104
19178
|
cursor: not-allowed;
|
|
19105
19179
|
}
|
|
19106
19180
|
`;
|
|
19107
|
-
var SwitchInputDisabled =
|
|
19181
|
+
var SwitchInputDisabled = css91`
|
|
19108
19182
|
opacity: var(--opacity-50);
|
|
19109
19183
|
cursor: not-allowed;
|
|
19110
19184
|
|
|
@@ -19112,7 +19186,7 @@ var SwitchInputDisabled = css90`
|
|
|
19112
19186
|
cursor: not-allowed;
|
|
19113
19187
|
}
|
|
19114
19188
|
`;
|
|
19115
|
-
var SwitchInputLabel =
|
|
19189
|
+
var SwitchInputLabel = css91`
|
|
19116
19190
|
align-items: center;
|
|
19117
19191
|
color: var(--brand-secondary-1);
|
|
19118
19192
|
display: inline-flex;
|
|
@@ -19134,21 +19208,21 @@ var SwitchInputLabel = css90`
|
|
|
19134
19208
|
top: 0;
|
|
19135
19209
|
}
|
|
19136
19210
|
`;
|
|
19137
|
-
var SwitchText =
|
|
19211
|
+
var SwitchText = css91`
|
|
19138
19212
|
color: var(--gray-500);
|
|
19139
19213
|
font-size: var(--fs-sm);
|
|
19140
19214
|
padding-inline: var(--spacing-2xl) 0;
|
|
19141
19215
|
`;
|
|
19142
19216
|
|
|
19143
19217
|
// src/components/Switch/Switch.tsx
|
|
19144
|
-
import { Fragment as
|
|
19218
|
+
import { Fragment as Fragment21, jsx as jsx112, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
|
|
19145
19219
|
var Switch = React23.forwardRef(
|
|
19146
19220
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
19147
19221
|
let additionalText = infoText;
|
|
19148
19222
|
if (infoText && toggleText) {
|
|
19149
19223
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
19150
19224
|
}
|
|
19151
|
-
return /* @__PURE__ */ jsxs76(
|
|
19225
|
+
return /* @__PURE__ */ jsxs76(Fragment21, { children: [
|
|
19152
19226
|
/* @__PURE__ */ jsxs76("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
19153
19227
|
/* @__PURE__ */ jsx112("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
19154
19228
|
/* @__PURE__ */ jsx112("span", { css: SwitchInputLabel, children: label })
|
|
@@ -19163,8 +19237,8 @@ var Switch = React23.forwardRef(
|
|
|
19163
19237
|
import * as React24 from "react";
|
|
19164
19238
|
|
|
19165
19239
|
// src/components/Table/Table.styles.ts
|
|
19166
|
-
import { css as
|
|
19167
|
-
var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) =>
|
|
19240
|
+
import { css as css92 } from "@emotion/react";
|
|
19241
|
+
var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css92`
|
|
19168
19242
|
border-bottom: 1px solid var(--gray-400);
|
|
19169
19243
|
border-collapse: collapse;
|
|
19170
19244
|
min-width: 100%;
|
|
@@ -19175,15 +19249,15 @@ var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css91
|
|
|
19175
19249
|
padding: ${cellPadding};
|
|
19176
19250
|
}
|
|
19177
19251
|
`;
|
|
19178
|
-
var tableHead =
|
|
19252
|
+
var tableHead = css92`
|
|
19179
19253
|
background: var(--gray-100);
|
|
19180
19254
|
color: var(--brand-secondary-1);
|
|
19181
19255
|
text-align: left;
|
|
19182
19256
|
`;
|
|
19183
|
-
var tableRow =
|
|
19257
|
+
var tableRow = css92`
|
|
19184
19258
|
border-bottom: 1px solid var(--gray-200);
|
|
19185
19259
|
`;
|
|
19186
|
-
var tableCellHead =
|
|
19260
|
+
var tableCellHead = css92`
|
|
19187
19261
|
font-size: var(--fs-sm);
|
|
19188
19262
|
text-transform: uppercase;
|
|
19189
19263
|
font-weight: var(--fw-bold);
|
|
@@ -19237,8 +19311,8 @@ import {
|
|
|
19237
19311
|
} from "reakit/Tab";
|
|
19238
19312
|
|
|
19239
19313
|
// src/components/Tabs/Tabs.styles.ts
|
|
19240
|
-
import { css as
|
|
19241
|
-
var tabButtonStyles =
|
|
19314
|
+
import { css as css93 } from "@emotion/react";
|
|
19315
|
+
var tabButtonStyles = css93`
|
|
19242
19316
|
align-items: center;
|
|
19243
19317
|
border: 0;
|
|
19244
19318
|
height: 2.5rem;
|
|
@@ -19255,7 +19329,7 @@ var tabButtonStyles = css92`
|
|
|
19255
19329
|
box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
|
|
19256
19330
|
}
|
|
19257
19331
|
`;
|
|
19258
|
-
var tabButtonGroupStyles =
|
|
19332
|
+
var tabButtonGroupStyles = css93`
|
|
19259
19333
|
display: flex;
|
|
19260
19334
|
gap: var(--spacing-base);
|
|
19261
19335
|
border-bottom: 1px solid var(--gray-300);
|
|
@@ -19282,8 +19356,9 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
19282
19356
|
var _a;
|
|
19283
19357
|
const selectedValueWithoutNull = (_a = tab.selectedId) != null ? _a : void 0;
|
|
19284
19358
|
onSelectedIdChange == null ? void 0 : onSelectedIdChange(selectedValueWithoutNull);
|
|
19285
|
-
if (useHashForState && typeof window !== "undefined") {
|
|
19286
|
-
|
|
19359
|
+
if (useHashForState && typeof window !== "undefined" && window.history) {
|
|
19360
|
+
const hashValue = selectedValueWithoutNull ? `#${selectedValueWithoutNull}` : "";
|
|
19361
|
+
window.history.pushState(null, "", hashValue);
|
|
19287
19362
|
}
|
|
19288
19363
|
}, [tab.selectedId, onSelectedIdChange, useHashForState]);
|
|
19289
19364
|
useEffect15(() => {
|
|
@@ -19307,8 +19382,8 @@ var TabContent = ({ children, ...props }) => {
|
|
|
19307
19382
|
};
|
|
19308
19383
|
|
|
19309
19384
|
// src/components/Validation/StatusBullet.styles.ts
|
|
19310
|
-
import { css as
|
|
19311
|
-
var StatusBulletContainer =
|
|
19385
|
+
import { css as css94 } from "@emotion/react";
|
|
19386
|
+
var StatusBulletContainer = css94`
|
|
19312
19387
|
align-items: center;
|
|
19313
19388
|
align-self: center;
|
|
19314
19389
|
color: var(--gray-500);
|
|
@@ -19325,55 +19400,60 @@ var StatusBulletContainer = css93`
|
|
|
19325
19400
|
display: block;
|
|
19326
19401
|
}
|
|
19327
19402
|
`;
|
|
19328
|
-
var StatusBulletBase =
|
|
19403
|
+
var StatusBulletBase = css94`
|
|
19329
19404
|
font-size: var(--fs-sm);
|
|
19330
19405
|
&:before {
|
|
19331
19406
|
width: var(--fs-xs);
|
|
19332
19407
|
height: var(--fs-xs);
|
|
19333
19408
|
}
|
|
19334
19409
|
`;
|
|
19335
|
-
var StatusBulletSmall =
|
|
19410
|
+
var StatusBulletSmall = css94`
|
|
19336
19411
|
font-size: var(--fs-xs);
|
|
19337
19412
|
&:before {
|
|
19338
19413
|
width: var(--fs-xxs);
|
|
19339
19414
|
height: var(--fs-xxs);
|
|
19340
19415
|
}
|
|
19341
19416
|
`;
|
|
19342
|
-
var StatusDraft =
|
|
19417
|
+
var StatusDraft = css94`
|
|
19343
19418
|
&:before {
|
|
19344
19419
|
background: var(--white);
|
|
19345
19420
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
19346
19421
|
}
|
|
19347
19422
|
`;
|
|
19348
|
-
var StatusModified =
|
|
19423
|
+
var StatusModified = css94`
|
|
19349
19424
|
&:before {
|
|
19350
19425
|
background: linear-gradient(to right, var(--white) 50%, var(--primary-action-default) 50% 100%);
|
|
19351
19426
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
19352
19427
|
}
|
|
19353
19428
|
`;
|
|
19354
|
-
var StatusError =
|
|
19429
|
+
var StatusError = css94`
|
|
19355
19430
|
color: var(--error);
|
|
19356
19431
|
&:before {
|
|
19357
19432
|
/* TODO: replace this with an svg icon */
|
|
19358
19433
|
background: linear-gradient(
|
|
19359
|
-
|
|
19360
|
-
var(--error)
|
|
19361
|
-
var(--white)
|
|
19362
|
-
var(--white)
|
|
19363
|
-
var(--error)
|
|
19434
|
+
133deg,
|
|
19435
|
+
var(--error) 41%,
|
|
19436
|
+
var(--white) 42%,
|
|
19437
|
+
var(--white) 58%,
|
|
19438
|
+
var(--error) 59%
|
|
19364
19439
|
);
|
|
19365
19440
|
}
|
|
19366
19441
|
`;
|
|
19367
|
-
var StatusPublished =
|
|
19442
|
+
var StatusPublished = css94`
|
|
19368
19443
|
&:before {
|
|
19369
19444
|
background: var(--primary-action-default);
|
|
19370
19445
|
}
|
|
19371
19446
|
`;
|
|
19372
|
-
var StatusOrphan =
|
|
19447
|
+
var StatusOrphan = css94`
|
|
19373
19448
|
&:before {
|
|
19374
19449
|
background: var(--brand-secondary-5);
|
|
19375
19450
|
}
|
|
19376
19451
|
`;
|
|
19452
|
+
var StatusUnknown = css94`
|
|
19453
|
+
&:before {
|
|
19454
|
+
background: var(--brand-secondary-1);
|
|
19455
|
+
}
|
|
19456
|
+
`;
|
|
19377
19457
|
|
|
19378
19458
|
// src/components/Validation/StatusBullet.tsx
|
|
19379
19459
|
import { jsx as jsx115 } from "@emotion/react/jsx-runtime";
|
|
@@ -19391,7 +19471,8 @@ var StatusBullet = ({
|
|
|
19391
19471
|
Orphan: StatusOrphan,
|
|
19392
19472
|
Published: StatusPublished,
|
|
19393
19473
|
Draft: StatusDraft,
|
|
19394
|
-
Previous: StatusDraft
|
|
19474
|
+
Previous: StatusDraft,
|
|
19475
|
+
Unknown: StatusUnknown
|
|
19395
19476
|
};
|
|
19396
19477
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
19397
19478
|
return /* @__PURE__ */ jsx115(
|