@uniformdev/design-system 19.37.1 → 19.38.3-alpha.70
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 +1074 -840
- package/dist/index.d.mts +116 -40
- package/dist/index.d.ts +116 -40
- package/dist/index.js +1211 -973
- package/package.json +20 -20
package/dist/esm/index.js
CHANGED
|
@@ -357,7 +357,7 @@ var buttonSecondary = css`
|
|
|
357
357
|
color: var(--white);
|
|
358
358
|
|
|
359
359
|
&:disabled {
|
|
360
|
-
background: var(--gray-300);
|
|
360
|
+
background: var(--gray-300);
|
|
361
361
|
color: var(--white);
|
|
362
362
|
}
|
|
363
363
|
|
|
@@ -1043,6 +1043,9 @@ var IconColorAction = css8`
|
|
|
1043
1043
|
var IconColorAccent = css8`
|
|
1044
1044
|
color: var(--accent-alt-dark);
|
|
1045
1045
|
`;
|
|
1046
|
+
var IconColorAccentLight = css8`
|
|
1047
|
+
color: var(--accent-light);
|
|
1048
|
+
`;
|
|
1046
1049
|
|
|
1047
1050
|
// src/components/Icons/IconsProvider.tsx
|
|
1048
1051
|
import { paramCase } from "param-case";
|
|
@@ -1093,7 +1096,8 @@ var IconInner = ({ icon, iconColor = "default", size = "1.5rem", ...otherProps }
|
|
|
1093
1096
|
gray: IconColorGray,
|
|
1094
1097
|
red: IconColorRed,
|
|
1095
1098
|
accent: IconColorAccent,
|
|
1096
|
-
currentColor: IconColorCurrent
|
|
1099
|
+
currentColor: IconColorCurrent,
|
|
1100
|
+
"accent-light": IconColorAccentLight
|
|
1097
1101
|
};
|
|
1098
1102
|
if (isIconName && isLoading) {
|
|
1099
1103
|
return null;
|
|
@@ -1658,6 +1662,44 @@ var yesNoIcon = GenIcon({
|
|
|
1658
1662
|
}
|
|
1659
1663
|
]
|
|
1660
1664
|
});
|
|
1665
|
+
var diamondOutline = GenIcon({
|
|
1666
|
+
tag: "svg",
|
|
1667
|
+
attr: {
|
|
1668
|
+
role: "img",
|
|
1669
|
+
viewBox: "0 0 16 16"
|
|
1670
|
+
},
|
|
1671
|
+
child: [
|
|
1672
|
+
{
|
|
1673
|
+
tag: "path",
|
|
1674
|
+
attr: {
|
|
1675
|
+
fill: "currentColor",
|
|
1676
|
+
fillRule: "evenodd",
|
|
1677
|
+
clipRule: "evenodd",
|
|
1678
|
+
d: "M7.99979 5.64298L5.64277 8L7.99979 10.357L10.3568 8L7.99979 5.64298ZM3.875 8L7.99979 12.1248L12.1246 8L7.99979 3.87521L3.875 8Z"
|
|
1679
|
+
},
|
|
1680
|
+
child: []
|
|
1681
|
+
}
|
|
1682
|
+
]
|
|
1683
|
+
});
|
|
1684
|
+
var diamondFill = GenIcon({
|
|
1685
|
+
tag: "svg",
|
|
1686
|
+
attr: {
|
|
1687
|
+
role: "img",
|
|
1688
|
+
viewBox: "0 0 16 16"
|
|
1689
|
+
},
|
|
1690
|
+
child: [
|
|
1691
|
+
{
|
|
1692
|
+
tag: "path",
|
|
1693
|
+
attr: {
|
|
1694
|
+
fill: "currentColor",
|
|
1695
|
+
fillRule: "evenodd",
|
|
1696
|
+
clipRule: "evenodd",
|
|
1697
|
+
d: "M3.875 8L7.99979 12.1248L12.1246 8L7.99979 3.87521L3.875 8Z"
|
|
1698
|
+
},
|
|
1699
|
+
child: []
|
|
1700
|
+
}
|
|
1701
|
+
]
|
|
1702
|
+
});
|
|
1661
1703
|
var customIcons = {
|
|
1662
1704
|
"rectangle-rounded": rectangleRoundedIcon,
|
|
1663
1705
|
card: cardIcon,
|
|
@@ -1679,7 +1721,9 @@ var customIcons = {
|
|
|
1679
1721
|
"format-subscript": formatSubscript,
|
|
1680
1722
|
"layout-list-numbered": layoutListNumberedIcon,
|
|
1681
1723
|
"clear-formatting": clearFormatting,
|
|
1682
|
-
"yes-no": yesNoIcon
|
|
1724
|
+
"yes-no": yesNoIcon,
|
|
1725
|
+
"diamond-outline": diamondOutline,
|
|
1726
|
+
"diamond-fill": diamondFill
|
|
1683
1727
|
};
|
|
1684
1728
|
|
|
1685
1729
|
// src/components/AddListButton/AddListButton.styles.ts
|
|
@@ -2122,7 +2166,7 @@ var IntegrationHeaderSection = ({
|
|
|
2122
2166
|
/* @__PURE__ */ jsx13(IntegrationHeaderSectionHexImage, { css: IntegrationHeaderSectionHexIcon }),
|
|
2123
2167
|
CompIcon ? /* @__PURE__ */ jsx13(CompIcon, { css: IntegrationHeaderSectionIcon }) : icon ? /* @__PURE__ */ jsx13("img", { src: icon, alt: title, css: IntegrationHeaderSectionIcon }) : null
|
|
2124
2168
|
] }) : null,
|
|
2125
|
-
/* @__PURE__ */ jsxs5("div", { css: IntegrationHeaderSectionTitleGroup, "data-
|
|
2169
|
+
/* @__PURE__ */ jsxs5("div", { css: IntegrationHeaderSectionTitleGroup, "data-testid": "integration-header-text", children: [
|
|
2126
2170
|
/* @__PURE__ */ jsx13("h1", { css: IntegrationHeaderSectionTitle, children: title }),
|
|
2127
2171
|
badgeText ? /* @__PURE__ */ jsx13(Badge, { text: badgeText }) : null,
|
|
2128
2172
|
menu2 ? /* @__PURE__ */ jsx13("div", { children: menu2 }) : null,
|
|
@@ -2144,7 +2188,7 @@ var IntegrationHeaderSection = ({
|
|
|
2144
2188
|
{
|
|
2145
2189
|
css: IntegrationHeaderSectionText,
|
|
2146
2190
|
htmlContent: description,
|
|
2147
|
-
"data-
|
|
2191
|
+
"data-testid": "integration-description"
|
|
2148
2192
|
}
|
|
2149
2193
|
) : null
|
|
2150
2194
|
] }),
|
|
@@ -2249,7 +2293,7 @@ var PageHeaderSection = ({
|
|
|
2249
2293
|
}
|
|
2250
2294
|
)
|
|
2251
2295
|
] }) : null,
|
|
2252
|
-
/* @__PURE__ */ jsx14(Heading, { level, css: PageHeaderSectionTitle, ...htmlProps, "data-
|
|
2296
|
+
/* @__PURE__ */ jsx14(Heading, { level, css: PageHeaderSectionTitle, ...htmlProps, "data-testid": "page-header-section", children: title }),
|
|
2253
2297
|
desc
|
|
2254
2298
|
] }),
|
|
2255
2299
|
children ? /* @__PURE__ */ jsx14("div", { css: PageHeaderSectionChildContainer, children }) : null
|
|
@@ -10804,7 +10848,7 @@ var AnimationFile = ({
|
|
|
10804
10848
|
Lottie,
|
|
10805
10849
|
{
|
|
10806
10850
|
role: "graphics-symbol",
|
|
10807
|
-
"data-
|
|
10851
|
+
"data-testid": "graphic-loader",
|
|
10808
10852
|
"aria-label": label,
|
|
10809
10853
|
autoPlay: autoplay,
|
|
10810
10854
|
loop,
|
|
@@ -11113,7 +11157,7 @@ var UniformBadge = ({
|
|
|
11113
11157
|
viewBox: "0 0 51 52",
|
|
11114
11158
|
fill: "none",
|
|
11115
11159
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11116
|
-
"data-
|
|
11160
|
+
"data-testid": "uniform-Badge",
|
|
11117
11161
|
css: [SVG, theme === "dark" ? SVGDark : SVGLight],
|
|
11118
11162
|
...props,
|
|
11119
11163
|
children: [
|
|
@@ -11149,7 +11193,7 @@ var UniformLogo = ({
|
|
|
11149
11193
|
theme = "light",
|
|
11150
11194
|
...props
|
|
11151
11195
|
}) => {
|
|
11152
|
-
return /* @__PURE__ */ jsx21("div", { "data-
|
|
11196
|
+
return /* @__PURE__ */ jsx21("div", { "data-testid": "uniform-Logo", children: /* @__PURE__ */ jsxs13(
|
|
11153
11197
|
"svg",
|
|
11154
11198
|
{
|
|
11155
11199
|
width: "153",
|
|
@@ -11306,10 +11350,10 @@ import React7, { isValidElement } from "react";
|
|
|
11306
11350
|
|
|
11307
11351
|
// src/components/Menu/MenuGroup.styles.ts
|
|
11308
11352
|
import { css as css23 } from "@emotion/react";
|
|
11309
|
-
var MenuGroupContainer = css23`
|
|
11353
|
+
var MenuGroupContainer = (hasTitle) => css23`
|
|
11310
11354
|
display: flex;
|
|
11311
11355
|
flex-direction: column;
|
|
11312
|
-
margin-top: var(--spacing-sm);
|
|
11356
|
+
${hasTitle ? "margin-top: var(--spacing-sm);" : ""}
|
|
11313
11357
|
`;
|
|
11314
11358
|
var MenuTitle = css23`
|
|
11315
11359
|
color: var(--gray-400);
|
|
@@ -11322,8 +11366,8 @@ var MenuTitle = css23`
|
|
|
11322
11366
|
// src/components/Menu/MenuGroup.tsx
|
|
11323
11367
|
import { jsx as jsx23, jsxs as jsxs14 } from "@emotion/react/jsx-runtime";
|
|
11324
11368
|
var MenuGroup = ({ title, children }) => {
|
|
11325
|
-
return /* @__PURE__ */ jsxs14("div", { css: MenuGroupContainer, "data-
|
|
11326
|
-
/* @__PURE__ */ jsx23("span", { css: MenuTitle, children: title }),
|
|
11369
|
+
return /* @__PURE__ */ jsxs14("div", { css: MenuGroupContainer(!!title), "data-testid": "menu-group", children: [
|
|
11370
|
+
title ? /* @__PURE__ */ jsx23("span", { css: MenuTitle, children: title }) : null,
|
|
11327
11371
|
children
|
|
11328
11372
|
] });
|
|
11329
11373
|
};
|
|
@@ -11437,9 +11481,24 @@ var menu = css25`
|
|
|
11437
11481
|
flex-direction: column;
|
|
11438
11482
|
padding: var(--spacing-sm);
|
|
11439
11483
|
outline: none;
|
|
11440
|
-
overflow: hidden;
|
|
11484
|
+
overflow-x: hidden;
|
|
11485
|
+
overflow-y: auto;
|
|
11441
11486
|
position: relative;
|
|
11442
11487
|
z-index: var(--z-50);
|
|
11488
|
+
|
|
11489
|
+
// work around for smaller screens not being able to access large menus
|
|
11490
|
+
// see uni-2997
|
|
11491
|
+
max-height: 55vh; // firefox support
|
|
11492
|
+
|
|
11493
|
+
${supports("max-height: 60dvh")} {
|
|
11494
|
+
max-height: 55dvh; // modern browser support
|
|
11495
|
+
}
|
|
11496
|
+
|
|
11497
|
+
${scrollbarStyles}
|
|
11498
|
+
|
|
11499
|
+
&:focus {
|
|
11500
|
+
outline: none;
|
|
11501
|
+
}
|
|
11443
11502
|
`;
|
|
11444
11503
|
|
|
11445
11504
|
// src/components/Menu/Menu.tsx
|
|
@@ -11507,7 +11566,7 @@ var MenuItem = React9.forwardRef(
|
|
|
11507
11566
|
{
|
|
11508
11567
|
ref,
|
|
11509
11568
|
type: "button",
|
|
11510
|
-
"data-
|
|
11569
|
+
"data-testid": "button-menu",
|
|
11511
11570
|
...menuState,
|
|
11512
11571
|
...resolvedProps,
|
|
11513
11572
|
css: [menuItem(textColor, active), typeof className === "object" ? className : void 0],
|
|
@@ -11641,7 +11700,7 @@ var ButtonWithMenu = ({
|
|
|
11641
11700
|
"div",
|
|
11642
11701
|
{
|
|
11643
11702
|
css: [ButtonWithMenuContainer, disabled ? buttonDisabledTheme[buttonType] : buttonTheme[buttonType]],
|
|
11644
|
-
"data-
|
|
11703
|
+
"data-testid": "multioptions-button",
|
|
11645
11704
|
children: [
|
|
11646
11705
|
/* @__PURE__ */ jsx27(
|
|
11647
11706
|
"button",
|
|
@@ -11650,7 +11709,7 @@ var ButtonWithMenu = ({
|
|
|
11650
11709
|
css: ButtonWithMenuBtn,
|
|
11651
11710
|
disabled,
|
|
11652
11711
|
onClick: onButtonClick,
|
|
11653
|
-
"data-
|
|
11712
|
+
"data-testid": "multioptions-button-main",
|
|
11654
11713
|
...buttonProps,
|
|
11655
11714
|
children: buttonText
|
|
11656
11715
|
}
|
|
@@ -11660,7 +11719,7 @@ var ButtonWithMenu = ({
|
|
|
11660
11719
|
{
|
|
11661
11720
|
menuLabel: "buttonMenu",
|
|
11662
11721
|
placement,
|
|
11663
|
-
menuTrigger: /* @__PURE__ */ jsx27("div", { css: ButtonWithMenuIcon, "data-
|
|
11722
|
+
menuTrigger: /* @__PURE__ */ jsx27("div", { css: ButtonWithMenuIcon, "data-testid": "multioptions-button-call-menu", children: /* @__PURE__ */ jsx27(Icon, { icon: CgChevronDown, size: 24, iconColor: "currentColor" }) }),
|
|
11664
11723
|
children
|
|
11665
11724
|
}
|
|
11666
11725
|
)
|
|
@@ -11963,8 +12022,8 @@ var Callout = ({
|
|
|
11963
12022
|
children: /* @__PURE__ */ jsxs18("div", { css: calloutInner, children: [
|
|
11964
12023
|
compact ? null : /* @__PURE__ */ jsx29("div", { css: calloutIconWrap, children: /* @__PURE__ */ jsx29(Icon2, { css: [calloutIcon, calloutTypeData.iconColor] }) }),
|
|
11965
12024
|
/* @__PURE__ */ jsxs18("div", { css: [calloutBody, compact ? calloutBodyCompact : void 0], children: [
|
|
11966
|
-
title ? /* @__PURE__ */ jsx29("div", { css: [calloutTitle], "data-
|
|
11967
|
-
children ? /* @__PURE__ */ jsx29("div", { css: [calloutTypeData.descriptionColor], "data-
|
|
12025
|
+
title ? /* @__PURE__ */ jsx29("div", { css: [calloutTitle], "data-testid": "callout-title", children: title }) : null,
|
|
12026
|
+
children ? /* @__PURE__ */ jsx29("div", { css: [calloutTypeData.descriptionColor], "data-testid": "callout-description", children }) : null
|
|
11968
12027
|
] })
|
|
11969
12028
|
] })
|
|
11970
12029
|
}
|
|
@@ -12042,7 +12101,7 @@ var Card = ({
|
|
|
12042
12101
|
type: "button",
|
|
12043
12102
|
disabled,
|
|
12044
12103
|
css: CardMenu,
|
|
12045
|
-
"data-
|
|
12104
|
+
"data-testid": menuButtonTestId != null ? menuButtonTestId : "list-card-menu",
|
|
12046
12105
|
children: /* @__PURE__ */ jsx30(Icon, { icon: CgMoreAlt, iconColor: "currentColor", size: 32 })
|
|
12047
12106
|
}
|
|
12048
12107
|
),
|
|
@@ -12292,7 +12351,6 @@ import { CgClose as CgClose3 } from "react-icons/cg";
|
|
|
12292
12351
|
import { css as css36 } from "@emotion/react";
|
|
12293
12352
|
var ChipContainer = css36`
|
|
12294
12353
|
border-radius: var(--rounded-full);
|
|
12295
|
-
background: lime;
|
|
12296
12354
|
display: inline-flex;
|
|
12297
12355
|
transition: background var(--duration-fast) var(--timing-ease-out),
|
|
12298
12356
|
color var(--duration-fast) var(--timing-ease-out);
|
|
@@ -12354,6 +12412,9 @@ var ChipMedium = css36`
|
|
|
12354
12412
|
padding: var(--spacing-sm) var(--spacing-xs);
|
|
12355
12413
|
}
|
|
12356
12414
|
`;
|
|
12415
|
+
var ChipMultiline = css36`
|
|
12416
|
+
padding-inline: var(--spacing-sm);
|
|
12417
|
+
`;
|
|
12357
12418
|
var ChipThemeAccentLight = css36`
|
|
12358
12419
|
background: var(--accent-light);
|
|
12359
12420
|
color: var(--brand-secondary-1);
|
|
@@ -12479,6 +12540,14 @@ var ChipActionButton = css36`
|
|
|
12479
12540
|
|
|
12480
12541
|
// src/components/Chip/Chip.tsx
|
|
12481
12542
|
import { Fragment as Fragment5, jsx as jsx37, jsxs as jsxs22 } from "@emotion/react/jsx-runtime";
|
|
12543
|
+
var chipTheme = {
|
|
12544
|
+
"accent-light": ChipThemeAccentLight,
|
|
12545
|
+
"accent-dark": ChipThemeAccentDark,
|
|
12546
|
+
"accent-alt-light": ChipAltThemeAccentLight,
|
|
12547
|
+
"accent-alt-dark": ChipAltThemeAccentDark,
|
|
12548
|
+
"neutral-light": ChipThemeNeutralLight,
|
|
12549
|
+
"neutral-dark": ChipThemeNeutralDark
|
|
12550
|
+
};
|
|
12482
12551
|
var Chip = ({
|
|
12483
12552
|
icon,
|
|
12484
12553
|
text,
|
|
@@ -12492,14 +12561,6 @@ var Chip = ({
|
|
|
12492
12561
|
sm: ChipSmall,
|
|
12493
12562
|
md: ChipMedium
|
|
12494
12563
|
};
|
|
12495
|
-
const chipTheme = {
|
|
12496
|
-
"accent-light": ChipThemeAccentLight,
|
|
12497
|
-
"accent-dark": ChipThemeAccentDark,
|
|
12498
|
-
"accent-alt-light": ChipAltThemeAccentLight,
|
|
12499
|
-
"accent-alt-dark": ChipAltThemeAccentDark,
|
|
12500
|
-
"neutral-light": ChipThemeNeutralLight,
|
|
12501
|
-
"neutral-dark": ChipThemeNeutralDark
|
|
12502
|
-
};
|
|
12503
12564
|
return /* @__PURE__ */ jsxs22("span", { css: [ChipContainer, chipSize[size], chipTheme[theme]], ...props, children: [
|
|
12504
12565
|
icon ? /* @__PURE__ */ jsxs22(Fragment5, { children: [
|
|
12505
12566
|
/* @__PURE__ */ jsx37("span", { role: "presentation", css: [ChipIcon], children: /* @__PURE__ */ jsx37(Icon, { icon, iconColor: "currentColor", size: "1rem" }) }),
|
|
@@ -12523,9 +12584,101 @@ var DismissibleChipAction = ({ onDismiss, ...props }) => {
|
|
|
12523
12584
|
);
|
|
12524
12585
|
};
|
|
12525
12586
|
|
|
12526
|
-
// src/components/
|
|
12587
|
+
// src/components/Chip/MultilineChip.styles.ts
|
|
12527
12588
|
import { css as css37 } from "@emotion/react";
|
|
12528
|
-
var
|
|
12589
|
+
var MultilineChipContainer = css37`
|
|
12590
|
+
--accent-primary-dark-rgb: 121, 83, 198; /* #7953C6 --purple-rain-400 */
|
|
12591
|
+
--accent-primary-dark-hover-rgb: 144, 104, 227; /* #9068E3 --purple-rain-400 */
|
|
12592
|
+
--gradient-rgb: var(--accent-primary-dark-rgb);
|
|
12593
|
+
--gradient-rgb-hover: var(--accent-primary-dark-hover-rgb);
|
|
12594
|
+
border-radius: var(--rounded-full);
|
|
12595
|
+
background: radial-gradient(
|
|
12596
|
+
farthest-side at 100%,
|
|
12597
|
+
rgba(var(--gradient-rgb), 0) 0%,
|
|
12598
|
+
rgba(var(--gradient-rgb), 0.2) 80%,
|
|
12599
|
+
rgba(var(--gradient-rgb), 0.4) 100%
|
|
12600
|
+
)
|
|
12601
|
+
no-repeat center left,
|
|
12602
|
+
linear-gradient(
|
|
12603
|
+
180deg,
|
|
12604
|
+
rgba(var(--gradient-rgb), 0.4) 0%,
|
|
12605
|
+
rgba(var(--gradient-rgb), 0.2) 10%,
|
|
12606
|
+
rgba(var(--gradient-rgb), 0) 50%,
|
|
12607
|
+
rgba(var(--gradient-rgb), 0.2) 90%,
|
|
12608
|
+
rgba(var(--gradient-rgb), 0.4) 100%
|
|
12609
|
+
)
|
|
12610
|
+
no-repeat var(--spacing-sm),
|
|
12611
|
+
radial-gradient(
|
|
12612
|
+
farthest-side at 0%,
|
|
12613
|
+
rgba(var(--gradient-rgb), 0) 0%,
|
|
12614
|
+
rgba(var(--gradient-rgb), 0.2) 80%,
|
|
12615
|
+
rgba(var(--gradient-rgb), 0.4) 100%
|
|
12616
|
+
)
|
|
12617
|
+
no-repeat center right;
|
|
12618
|
+
background-size: var(--spacing-sm), calc(100% - var(--spacing-base)), var(--spacing-sm);
|
|
12619
|
+
color: var(--purple-rain-600);
|
|
12620
|
+
padding-inline: calc(var(--spacing-sm) * 1.4);
|
|
12621
|
+
transition: background 200ms ease-out;
|
|
12622
|
+
user-select: none;
|
|
12623
|
+
|
|
12624
|
+
&[role='button'] {
|
|
12625
|
+
border: none;
|
|
12626
|
+
&:hover,
|
|
12627
|
+
&:focus {
|
|
12628
|
+
background: radial-gradient(
|
|
12629
|
+
farthest-side at 100%,
|
|
12630
|
+
rgba(var(--gradient-rgb-hover), 0) 0%,
|
|
12631
|
+
rgba(var(--gradient-rgb-hover), 0.2) 80%,
|
|
12632
|
+
rgba(var(--gradient-rgb-hover), 0.4) 100%
|
|
12633
|
+
)
|
|
12634
|
+
no-repeat center left,
|
|
12635
|
+
linear-gradient(
|
|
12636
|
+
180deg,
|
|
12637
|
+
rgba(var(--gradient-rgb-hover), 0.4) 0%,
|
|
12638
|
+
rgba(var(--gradient-rgb-hover), 0.2) 20%,
|
|
12639
|
+
rgba(var(--gradient-rgb-hover), 0) 50%,
|
|
12640
|
+
rgba(var(--gradient-rgb-hover), 0.2) 80%,
|
|
12641
|
+
rgba(var(--gradient-rgb-hover), 0.4) 100%
|
|
12642
|
+
)
|
|
12643
|
+
no-repeat var(--spacing-sm),
|
|
12644
|
+
radial-gradient(
|
|
12645
|
+
farthest-side at 0%,
|
|
12646
|
+
rgba(var(--gradient-rgb-hover), 0) 0%,
|
|
12647
|
+
rgba(var(--gradient-rgb-hover), 0.2) 80%,
|
|
12648
|
+
rgba(var(--gradient-rgb-hover), 0.4) 100%
|
|
12649
|
+
)
|
|
12650
|
+
no-repeat center right;
|
|
12651
|
+
background-size: var(--spacing-sm), calc(100% - var(--spacing-base)), var(--spacing-sm);
|
|
12652
|
+
color: var(--purple-rain-400);
|
|
12653
|
+
}
|
|
12654
|
+
}
|
|
12655
|
+
|
|
12656
|
+
&[aria-selected] {
|
|
12657
|
+
box-shadow: 0 0 0 1px var(--accent-dark-hover);
|
|
12658
|
+
}
|
|
12659
|
+
`;
|
|
12660
|
+
|
|
12661
|
+
// src/components/Chip/MultilineChip.tsx
|
|
12662
|
+
import { jsx as jsx38 } from "@emotion/react/jsx-runtime";
|
|
12663
|
+
var MultilineChip = ({ children, onClick, ...props }) => {
|
|
12664
|
+
const handleKeyboardEvent = (e) => {
|
|
12665
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
12666
|
+
return onClick == null ? void 0 : onClick();
|
|
12667
|
+
}
|
|
12668
|
+
return;
|
|
12669
|
+
};
|
|
12670
|
+
const buttonProps = onClick ? {
|
|
12671
|
+
role: "button",
|
|
12672
|
+
onClick,
|
|
12673
|
+
onKeyDown: handleKeyboardEvent,
|
|
12674
|
+
tabIndex: 0
|
|
12675
|
+
} : {};
|
|
12676
|
+
return /* @__PURE__ */ jsx38("span", { css: MultilineChipContainer, "data-testid": "chip-value", ...props, ...buttonProps, children });
|
|
12677
|
+
};
|
|
12678
|
+
|
|
12679
|
+
// src/components/Counter/Counter.styles.ts
|
|
12680
|
+
import { css as css38 } from "@emotion/react";
|
|
12681
|
+
var counterContainer = (bgColor) => css38`
|
|
12529
12682
|
align-items: center;
|
|
12530
12683
|
border-radius: var(--rounded-full);
|
|
12531
12684
|
border: 1px solid var(--gray-300);
|
|
@@ -12538,16 +12691,16 @@ var counterContainer = (bgColor) => css37`
|
|
|
12538
12691
|
width: var(--spacing-base);
|
|
12539
12692
|
height: var(--spacing-base);
|
|
12540
12693
|
`;
|
|
12541
|
-
var counterZeroValue =
|
|
12694
|
+
var counterZeroValue = css38`
|
|
12542
12695
|
background: var(--brand-secondary-1);
|
|
12543
12696
|
border-radius: var(--rounded-full);
|
|
12544
12697
|
width: 2px;
|
|
12545
12698
|
height: 2px;
|
|
12546
12699
|
`;
|
|
12547
|
-
var counterTripleValue =
|
|
12700
|
+
var counterTripleValue = css38`
|
|
12548
12701
|
position: relative;
|
|
12549
12702
|
`;
|
|
12550
|
-
var counterIcon =
|
|
12703
|
+
var counterIcon = css38`
|
|
12551
12704
|
border-radius: var(--rounded-full);
|
|
12552
12705
|
background: var(--white);
|
|
12553
12706
|
color: var(--brand-secondary-3);
|
|
@@ -12558,21 +12711,21 @@ var counterIcon = css37`
|
|
|
12558
12711
|
`;
|
|
12559
12712
|
|
|
12560
12713
|
// src/components/Counter/Counter.tsx
|
|
12561
|
-
import { jsx as
|
|
12714
|
+
import { jsx as jsx39, jsxs as jsxs23 } from "@emotion/react/jsx-runtime";
|
|
12562
12715
|
var Counter = ({ count, bgColor = "transparent", ...props }) => {
|
|
12563
12716
|
if (typeof count === "undefined") {
|
|
12564
12717
|
return null;
|
|
12565
12718
|
}
|
|
12566
12719
|
const isTripleDigits = count > 99 ? /* @__PURE__ */ jsxs23("span", { css: counterTripleValue, title: `${count}`, children: [
|
|
12567
12720
|
"99",
|
|
12568
|
-
/* @__PURE__ */
|
|
12721
|
+
/* @__PURE__ */ jsx39(Icon, { icon: "math-plus", iconColor: "currentColor", size: "0.5rem", css: counterIcon })
|
|
12569
12722
|
] }) : count;
|
|
12570
|
-
const formatCount = count === 0 ? /* @__PURE__ */
|
|
12571
|
-
return /* @__PURE__ */
|
|
12723
|
+
const formatCount = count === 0 ? /* @__PURE__ */ jsx39("span", { css: counterZeroValue, title: `${count}` }) : isTripleDigits;
|
|
12724
|
+
return /* @__PURE__ */ jsx39("div", { css: counterContainer(bgColor), ...props, children: formatCount });
|
|
12572
12725
|
};
|
|
12573
12726
|
|
|
12574
12727
|
// src/components/DashedBox/DashedBox.styles.ts
|
|
12575
|
-
import { css as
|
|
12728
|
+
import { css as css39 } from "@emotion/react";
|
|
12576
12729
|
var minHeight = (prop) => {
|
|
12577
12730
|
const values = {
|
|
12578
12731
|
auto: "auto",
|
|
@@ -12591,7 +12744,7 @@ var alignItemsConvert = (props) => {
|
|
|
12591
12744
|
};
|
|
12592
12745
|
return alignment[props];
|
|
12593
12746
|
};
|
|
12594
|
-
var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) =>
|
|
12747
|
+
var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) => css39`
|
|
12595
12748
|
align-items: ${alignItemsConvert(textAlign)};
|
|
12596
12749
|
border: 2px dashed var(--gray-300);
|
|
12597
12750
|
border-radius: var(--rounded-base);
|
|
@@ -12606,7 +12759,7 @@ var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) => css38`
|
|
|
12606
12759
|
`;
|
|
12607
12760
|
|
|
12608
12761
|
// src/components/DashedBox/DashedBox.tsx
|
|
12609
|
-
import { jsx as
|
|
12762
|
+
import { jsx as jsx40 } from "@emotion/react/jsx-runtime";
|
|
12610
12763
|
var DashedBox = ({
|
|
12611
12764
|
bgColor = "transparent",
|
|
12612
12765
|
textAlign = "center",
|
|
@@ -12614,7 +12767,7 @@ var DashedBox = ({
|
|
|
12614
12767
|
children,
|
|
12615
12768
|
...props
|
|
12616
12769
|
}) => {
|
|
12617
|
-
return /* @__PURE__ */
|
|
12770
|
+
return /* @__PURE__ */ jsx40("div", { css: DashedBoxContainer({ bgColor, boxHeight, textAlign }), ...props, children });
|
|
12618
12771
|
};
|
|
12619
12772
|
|
|
12620
12773
|
// src/components/DescriptionList/DescriptionList.tsx
|
|
@@ -12622,33 +12775,33 @@ import React10 from "react";
|
|
|
12622
12775
|
import { TbCheck, TbMinus } from "react-icons/tb";
|
|
12623
12776
|
|
|
12624
12777
|
// src/components/DescriptionList/DescriptionList.styles.ts
|
|
12625
|
-
import { css as
|
|
12626
|
-
var descriptionListStyles =
|
|
12778
|
+
import { css as css40 } from "@emotion/react";
|
|
12779
|
+
var descriptionListStyles = css40`
|
|
12627
12780
|
display: grid;
|
|
12628
12781
|
grid-template-columns: max-content auto;
|
|
12629
12782
|
gap: var(--spacing-xs) var(--spacing-md);
|
|
12630
12783
|
`;
|
|
12631
|
-
var descriptionListLabelStyles =
|
|
12784
|
+
var descriptionListLabelStyles = css40`
|
|
12632
12785
|
display: flex;
|
|
12633
12786
|
align-items: center;
|
|
12634
12787
|
color: var(--gray-500);
|
|
12635
12788
|
`;
|
|
12636
|
-
var descriptionListValueStyles =
|
|
12789
|
+
var descriptionListValueStyles = css40`
|
|
12637
12790
|
display: flex;
|
|
12638
12791
|
align-items: center;
|
|
12639
12792
|
margin: 0;
|
|
12640
12793
|
`;
|
|
12641
12794
|
|
|
12642
12795
|
// src/components/DescriptionList/DescriptionList.tsx
|
|
12643
|
-
import { jsx as
|
|
12796
|
+
import { jsx as jsx41, jsxs as jsxs24 } from "@emotion/react/jsx-runtime";
|
|
12644
12797
|
var DescriptionList = React10.forwardRef(
|
|
12645
12798
|
({ items, ...listProps }, ref) => {
|
|
12646
12799
|
if (!(items == null ? void 0 : items.length)) {
|
|
12647
12800
|
return null;
|
|
12648
12801
|
}
|
|
12649
|
-
return /* @__PURE__ */
|
|
12650
|
-
/* @__PURE__ */
|
|
12651
|
-
/* @__PURE__ */
|
|
12802
|
+
return /* @__PURE__ */ jsx41("dl", { ref, css: descriptionListStyles, ...listProps, children: items == null ? void 0 : items.map(({ label, value }) => /* @__PURE__ */ jsxs24(React10.Fragment, { children: [
|
|
12803
|
+
/* @__PURE__ */ jsx41("dt", { css: descriptionListLabelStyles, children: label }),
|
|
12804
|
+
/* @__PURE__ */ jsx41("dd", { css: descriptionListValueStyles, children: typeof value === "boolean" ? /* @__PURE__ */ jsx41(DescriptionListValueBoolean, { value }) : value })
|
|
12652
12805
|
] }, label)) });
|
|
12653
12806
|
}
|
|
12654
12807
|
);
|
|
@@ -12656,15 +12809,15 @@ DescriptionList.displayName = "DescriptionList";
|
|
|
12656
12809
|
var DescriptionListValueBoolean = ({ value }) => {
|
|
12657
12810
|
const Icon2 = value ? TbCheck : TbMinus;
|
|
12658
12811
|
const color = value ? "var(--accent-dark)" : "var(--gray-500)";
|
|
12659
|
-
return /* @__PURE__ */
|
|
12812
|
+
return /* @__PURE__ */ jsx41(Icon2, { style: { color }, strokeWidth: 3 });
|
|
12660
12813
|
};
|
|
12661
12814
|
|
|
12662
12815
|
// src/components/Details/Details.tsx
|
|
12663
12816
|
import * as React11 from "react";
|
|
12664
12817
|
|
|
12665
12818
|
// src/components/Details/Details.styles.ts
|
|
12666
|
-
import { css as
|
|
12667
|
-
var details =
|
|
12819
|
+
import { css as css41 } from "@emotion/react";
|
|
12820
|
+
var details = css41`
|
|
12668
12821
|
cursor: pointer;
|
|
12669
12822
|
&[open] {
|
|
12670
12823
|
& > summary svg {
|
|
@@ -12672,11 +12825,11 @@ var details = css40`
|
|
|
12672
12825
|
}
|
|
12673
12826
|
}
|
|
12674
12827
|
`;
|
|
12675
|
-
var detailsContent =
|
|
12828
|
+
var detailsContent = css41`
|
|
12676
12829
|
animation: ${fadeInRtl} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
12677
12830
|
will-change: height;
|
|
12678
12831
|
`;
|
|
12679
|
-
var summary =
|
|
12832
|
+
var summary = css41`
|
|
12680
12833
|
align-items: center;
|
|
12681
12834
|
display: grid;
|
|
12682
12835
|
grid-template-columns: 1.25rem 1fr;
|
|
@@ -12689,16 +12842,16 @@ var summary = css40`
|
|
|
12689
12842
|
display: none;
|
|
12690
12843
|
}
|
|
12691
12844
|
`;
|
|
12692
|
-
var summaryIcon =
|
|
12845
|
+
var summaryIcon = css41`
|
|
12693
12846
|
transition: rotate var(--duration-fast) var(--timing-ease-out);
|
|
12694
12847
|
rotate: -90deg;
|
|
12695
12848
|
`;
|
|
12696
|
-
var summaryIconVisiblyHidden =
|
|
12849
|
+
var summaryIconVisiblyHidden = css41`
|
|
12697
12850
|
visibility: hidden;
|
|
12698
12851
|
`;
|
|
12699
12852
|
|
|
12700
12853
|
// src/components/Details/Details.tsx
|
|
12701
|
-
import { jsx as
|
|
12854
|
+
import { jsx as jsx42, jsxs as jsxs25 } from "@emotion/react/jsx-runtime";
|
|
12702
12855
|
var Details = ({
|
|
12703
12856
|
summary: summary2,
|
|
12704
12857
|
children,
|
|
@@ -12726,7 +12879,7 @@ var Details = ({
|
|
|
12726
12879
|
...props,
|
|
12727
12880
|
children: [
|
|
12728
12881
|
/* @__PURE__ */ jsxs25("summary", { "data-testid": "summary", css: summary, children: [
|
|
12729
|
-
/* @__PURE__ */
|
|
12882
|
+
/* @__PURE__ */ jsx42(
|
|
12730
12883
|
Icon,
|
|
12731
12884
|
{
|
|
12732
12885
|
css: [!children ? summaryIconVisiblyHidden : void 0, summaryIcon],
|
|
@@ -12737,7 +12890,7 @@ var Details = ({
|
|
|
12737
12890
|
),
|
|
12738
12891
|
summary2
|
|
12739
12892
|
] }),
|
|
12740
|
-
memoizedIsOpen ? /* @__PURE__ */
|
|
12893
|
+
memoizedIsOpen ? /* @__PURE__ */ jsx42("div", { "data-testid": "details-content", css: detailsContent, children }) : null
|
|
12741
12894
|
]
|
|
12742
12895
|
}
|
|
12743
12896
|
);
|
|
@@ -12749,8 +12902,8 @@ import { createPortal } from "react-dom";
|
|
|
12749
12902
|
import { CgChevronRight } from "react-icons/cg";
|
|
12750
12903
|
|
|
12751
12904
|
// src/components/Drawer/Drawer.styles.ts
|
|
12752
|
-
import { css as
|
|
12753
|
-
var drawerStyles = (bgColor = "var(--white)") =>
|
|
12905
|
+
import { css as css42, keyframes as keyframes2 } from "@emotion/react";
|
|
12906
|
+
var drawerStyles = (bgColor = "var(--white)") => css42`
|
|
12754
12907
|
background-color: ${bgColor};
|
|
12755
12908
|
display: flex;
|
|
12756
12909
|
gap: var(--spacing-sm);
|
|
@@ -12760,20 +12913,20 @@ var drawerStyles = (bgColor = "var(--white)") => css41`
|
|
|
12760
12913
|
padding-top: var(--spacing-sm);
|
|
12761
12914
|
height: 100%;
|
|
12762
12915
|
`;
|
|
12763
|
-
var drawerCloseButtonStyles =
|
|
12916
|
+
var drawerCloseButtonStyles = css42`
|
|
12764
12917
|
display: block;
|
|
12765
12918
|
padding: 0;
|
|
12766
12919
|
background: transparent;
|
|
12767
12920
|
border: none;
|
|
12768
12921
|
`;
|
|
12769
|
-
var headerWrapperStyles =
|
|
12922
|
+
var headerWrapperStyles = css42`
|
|
12770
12923
|
display: flex;
|
|
12771
12924
|
justify-content: flex-end;
|
|
12772
12925
|
align-items: center;
|
|
12773
12926
|
flex: 1;
|
|
12774
12927
|
margin-right: var(--spacing-sm);
|
|
12775
12928
|
`;
|
|
12776
|
-
var drawerHeaderStyles =
|
|
12929
|
+
var drawerHeaderStyles = css42`
|
|
12777
12930
|
align-items: center;
|
|
12778
12931
|
display: flex;
|
|
12779
12932
|
gap: var(--spacing-sm);
|
|
@@ -12781,18 +12934,18 @@ var drawerHeaderStyles = css41`
|
|
|
12781
12934
|
padding-inline: var(--spacing-base);
|
|
12782
12935
|
flex: 1;
|
|
12783
12936
|
`;
|
|
12784
|
-
var drawerRendererStyles =
|
|
12937
|
+
var drawerRendererStyles = css42`
|
|
12785
12938
|
inset: 0;
|
|
12786
12939
|
overflow: hidden;
|
|
12787
12940
|
z-index: var(--z-drawer);
|
|
12788
12941
|
`;
|
|
12789
|
-
var drawerInnerStyles =
|
|
12942
|
+
var drawerInnerStyles = css42`
|
|
12790
12943
|
height: 100%;
|
|
12791
12944
|
overflow: auto;
|
|
12792
12945
|
padding: 0 var(--spacing-md) var(--spacing-base) var(--spacing-sm);
|
|
12793
12946
|
${scrollbarStyles}
|
|
12794
12947
|
`;
|
|
12795
|
-
var drawerHeading =
|
|
12948
|
+
var drawerHeading = css42`
|
|
12796
12949
|
font-size: var(--fs-base);
|
|
12797
12950
|
`;
|
|
12798
12951
|
var slideDrawerIn = keyframes2`
|
|
@@ -12825,7 +12978,7 @@ var slideDrawerInLeftAligned = keyframes2`
|
|
|
12825
12978
|
transform: translate(0);
|
|
12826
12979
|
}
|
|
12827
12980
|
`;
|
|
12828
|
-
var drawerWrapperStyles =
|
|
12981
|
+
var drawerWrapperStyles = css42`
|
|
12829
12982
|
position: absolute;
|
|
12830
12983
|
inset-block: 0;
|
|
12831
12984
|
right: 0;
|
|
@@ -12838,14 +12991,14 @@ var drawerWrapperStyles = css41`
|
|
|
12838
12991
|
|
|
12839
12992
|
--drawer-close-icon-rotation: 0deg;
|
|
12840
12993
|
`;
|
|
12841
|
-
var drawerWrapperLeftAlignedStyles =
|
|
12994
|
+
var drawerWrapperLeftAlignedStyles = css42`
|
|
12842
12995
|
animation-name: ${slideDrawerInLeftAligned};
|
|
12843
12996
|
left: 0;
|
|
12844
12997
|
right: auto;
|
|
12845
12998
|
|
|
12846
12999
|
--drawer-close-icon-rotation: 180deg;
|
|
12847
13000
|
`;
|
|
12848
|
-
var drawerWrapperOverlayStyles =
|
|
13001
|
+
var drawerWrapperOverlayStyles = css42`
|
|
12849
13002
|
position: absolute;
|
|
12850
13003
|
inset: 0;
|
|
12851
13004
|
animation: ${fadeIn} var(--duration-fast) ease-out;
|
|
@@ -12857,7 +13010,7 @@ var drawerWrapperOverlayStyles = css41`
|
|
|
12857
13010
|
|
|
12858
13011
|
// src/components/Drawer/DrawerProvider.tsx
|
|
12859
13012
|
import { createContext as createContext3, useCallback, useContext as useContext4, useRef as useRef2, useState as useState4 } from "react";
|
|
12860
|
-
import { jsx as
|
|
13013
|
+
import { jsx as jsx43 } from "@emotion/react/jsx-runtime";
|
|
12861
13014
|
var DrawerContext = createContext3({
|
|
12862
13015
|
providerId: "",
|
|
12863
13016
|
drawersRegistry: [],
|
|
@@ -12866,6 +13019,9 @@ var DrawerContext = createContext3({
|
|
|
12866
13019
|
unregisterDrawer: () => {
|
|
12867
13020
|
}
|
|
12868
13021
|
});
|
|
13022
|
+
function renderDrawerId(drawer) {
|
|
13023
|
+
return `${drawer.stackId ? `\u{1F95E} ${drawer.stackId} ` : ""}\u{1F194} ${drawer.id}${drawer.instanceKey ? ` \u{1F511} ${drawer.instanceKey}` : ""}`;
|
|
13024
|
+
}
|
|
12869
13025
|
var DrawerProvider = ({ children }) => {
|
|
12870
13026
|
const [drawersRegistry, setDrawersRegistry] = useState4([]);
|
|
12871
13027
|
const providerId = useRef2(crypto.randomUUID());
|
|
@@ -12904,6 +13060,9 @@ var DrawerProvider = ({ children }) => {
|
|
|
12904
13060
|
var _a2, _b2;
|
|
12905
13061
|
return ((_a2 = a.registeredAt) != null ? _a2 : 0) - ((_b2 = b.registeredAt) != null ? _b2 : 0);
|
|
12906
13062
|
});
|
|
13063
|
+
console.debug(
|
|
13064
|
+
`\u{1F5C3}\uFE0F + ${renderDrawerId(drawer)}${shouldReplaceCurrent ? ` \u{1F504} Replacing ${renderDrawerId(alreadyRegisteredDrawer)}` : ""} (${currentValue.length + 1} open)`
|
|
13065
|
+
);
|
|
12907
13066
|
return newDrawersRegistry;
|
|
12908
13067
|
});
|
|
12909
13068
|
},
|
|
@@ -12913,13 +13072,17 @@ var DrawerProvider = ({ children }) => {
|
|
|
12913
13072
|
(drawer) => {
|
|
12914
13073
|
setDrawersRegistry((currentValue) => {
|
|
12915
13074
|
return currentValue.filter((d) => {
|
|
12916
|
-
|
|
13075
|
+
const include = !isEqualDrawerInstance(drawer, d);
|
|
13076
|
+
if (!include) {
|
|
13077
|
+
console.debug(`\u{1F5C3}\uFE0F - ${renderDrawerId(d)} (${currentValue.length} open)`);
|
|
13078
|
+
}
|
|
13079
|
+
return include;
|
|
12917
13080
|
});
|
|
12918
13081
|
});
|
|
12919
13082
|
},
|
|
12920
13083
|
[setDrawersRegistry]
|
|
12921
13084
|
);
|
|
12922
|
-
return /* @__PURE__ */
|
|
13085
|
+
return /* @__PURE__ */ jsx43(
|
|
12923
13086
|
DrawerContext.Provider,
|
|
12924
13087
|
{
|
|
12925
13088
|
value: {
|
|
@@ -12950,7 +13113,7 @@ function isEqualDrawerInstance(a, b) {
|
|
|
12950
13113
|
}
|
|
12951
13114
|
|
|
12952
13115
|
// src/components/Drawer/Drawer.tsx
|
|
12953
|
-
import { jsx as
|
|
13116
|
+
import { jsx as jsx44, jsxs as jsxs26 } from "@emotion/react/jsx-runtime";
|
|
12954
13117
|
var defaultSackId = "_default";
|
|
12955
13118
|
var CurrentDrawerContext = createContext4({});
|
|
12956
13119
|
var useCurrentDrawer = () => {
|
|
@@ -12960,9 +13123,9 @@ var Drawer = React13.forwardRef(
|
|
|
12960
13123
|
({ width, minWidth, maxWidth, position, leftAligned, ...drawerProps }, ref) => {
|
|
12961
13124
|
const { stackId: inheritedStackId } = useCurrentDrawer();
|
|
12962
13125
|
const drawerRendererProps = { width, minWidth, maxWidth, position, leftAligned };
|
|
12963
|
-
return drawerProps.stackId ? /* @__PURE__ */
|
|
12964
|
-
/* @__PURE__ */
|
|
12965
|
-
/* @__PURE__ */
|
|
13126
|
+
return drawerProps.stackId ? /* @__PURE__ */ jsx44(DrawerInner, { ref, ...drawerProps }) : inheritedStackId ? /* @__PURE__ */ jsx44(DrawerInner, { ref, ...drawerProps, stackId: inheritedStackId }) : /* @__PURE__ */ jsxs26(DrawerProvider, { children: [
|
|
13127
|
+
/* @__PURE__ */ jsx44(DrawerInner, { ref, ...drawerProps }),
|
|
13128
|
+
/* @__PURE__ */ jsx44(DrawerRenderer, { stackId: defaultSackId, ...drawerRendererProps })
|
|
12966
13129
|
] });
|
|
12967
13130
|
}
|
|
12968
13131
|
);
|
|
@@ -13005,7 +13168,7 @@ var DrawerInner = ({
|
|
|
13005
13168
|
return null;
|
|
13006
13169
|
}
|
|
13007
13170
|
const headerId = `dialog-header-${providerId}-${stackId}-${id}`;
|
|
13008
|
-
return /* @__PURE__ */
|
|
13171
|
+
return /* @__PURE__ */ jsx44(CurrentDrawerContext.Provider, { value: { id, stackId, leftAligned }, children: createPortal(
|
|
13009
13172
|
/* @__PURE__ */ jsxs26(
|
|
13010
13173
|
"div",
|
|
13011
13174
|
{
|
|
@@ -13015,11 +13178,11 @@ var DrawerInner = ({
|
|
|
13015
13178
|
tabIndex: -1,
|
|
13016
13179
|
"aria-labelledby": headerId,
|
|
13017
13180
|
css: drawerStyles(bgColor),
|
|
13018
|
-
"data-
|
|
13181
|
+
"data-testid": testId,
|
|
13019
13182
|
children: [
|
|
13020
13183
|
/* @__PURE__ */ jsxs26("div", { css: headerWrapperStyles, children: [
|
|
13021
|
-
header ? /* @__PURE__ */
|
|
13022
|
-
/* @__PURE__ */
|
|
13184
|
+
header ? /* @__PURE__ */ jsx44("div", { id: headerId, css: drawerHeaderStyles, "data-testid": "header", children: header }) : null,
|
|
13185
|
+
/* @__PURE__ */ jsx44(
|
|
13023
13186
|
Button,
|
|
13024
13187
|
{
|
|
13025
13188
|
ref: closeButtonRef,
|
|
@@ -13028,7 +13191,8 @@ var DrawerInner = ({
|
|
|
13028
13191
|
css: drawerCloseButtonStyles,
|
|
13029
13192
|
title: "Close dialog",
|
|
13030
13193
|
buttonType: "ghost",
|
|
13031
|
-
|
|
13194
|
+
"data-testid": "close-button",
|
|
13195
|
+
children: /* @__PURE__ */ jsx44(
|
|
13032
13196
|
Icon,
|
|
13033
13197
|
{
|
|
13034
13198
|
icon: CgChevronRight,
|
|
@@ -13040,7 +13204,7 @@ var DrawerInner = ({
|
|
|
13040
13204
|
}
|
|
13041
13205
|
)
|
|
13042
13206
|
] }),
|
|
13043
|
-
/* @__PURE__ */
|
|
13207
|
+
/* @__PURE__ */ jsx44("div", { css: drawerInnerStyles, children })
|
|
13044
13208
|
]
|
|
13045
13209
|
}
|
|
13046
13210
|
),
|
|
@@ -13054,15 +13218,15 @@ var findDrawerRenderer = (params) => {
|
|
|
13054
13218
|
};
|
|
13055
13219
|
|
|
13056
13220
|
// src/components/Drawer/DrawerContent.styles.ts
|
|
13057
|
-
import { css as
|
|
13058
|
-
var DrawerContent =
|
|
13221
|
+
import { css as css43 } from "@emotion/react";
|
|
13222
|
+
var DrawerContent = css43`
|
|
13059
13223
|
background: var(--gray-50);
|
|
13060
13224
|
display: flex;
|
|
13061
13225
|
flex-direction: column;
|
|
13062
13226
|
gap: var(--spacing-base);
|
|
13063
13227
|
height: 100%;
|
|
13064
13228
|
`;
|
|
13065
|
-
var DrawerContentInner =
|
|
13229
|
+
var DrawerContentInner = css43`
|
|
13066
13230
|
background: var(--white);
|
|
13067
13231
|
padding: var(--spacing-base);
|
|
13068
13232
|
flex: 1;
|
|
@@ -13070,24 +13234,24 @@ var DrawerContentInner = css42`
|
|
|
13070
13234
|
overflow-y: auto;
|
|
13071
13235
|
${scrollbarStyles}
|
|
13072
13236
|
`;
|
|
13073
|
-
var DrawerContentBtnGroup =
|
|
13237
|
+
var DrawerContentBtnGroup = css43`
|
|
13074
13238
|
display: flex;
|
|
13075
13239
|
gap: var(--spacing-sm);
|
|
13076
13240
|
padding: 0 var(--spacing-base) var(--spacing-base);
|
|
13077
13241
|
`;
|
|
13078
13242
|
|
|
13079
13243
|
// src/components/Drawer/DrawerContent.tsx
|
|
13080
|
-
import { jsx as
|
|
13244
|
+
import { jsx as jsx45, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
|
|
13081
13245
|
var DrawerContent2 = ({ children, buttonGroup, noPadding = false, ...props }) => {
|
|
13082
13246
|
return /* @__PURE__ */ jsxs27("div", { css: DrawerContent, ...props, children: [
|
|
13083
|
-
/* @__PURE__ */
|
|
13084
|
-
buttonGroup ? /* @__PURE__ */
|
|
13247
|
+
/* @__PURE__ */ jsx45("div", { css: [DrawerContentInner, noPadding ? { padding: 0 } : null], children }),
|
|
13248
|
+
buttonGroup ? /* @__PURE__ */ jsx45("div", { css: DrawerContentBtnGroup, children: buttonGroup }) : null
|
|
13085
13249
|
] });
|
|
13086
13250
|
};
|
|
13087
13251
|
|
|
13088
13252
|
// src/components/Drawer/DrawerRenderer.tsx
|
|
13089
13253
|
import { useEffect as useEffect6 } from "react";
|
|
13090
|
-
import { Fragment as Fragment6, jsx as
|
|
13254
|
+
import { Fragment as Fragment6, jsx as jsx46, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
|
|
13091
13255
|
var maxLayeringInPx = 64;
|
|
13092
13256
|
var idealDistanceBetweenLayersInPx = 16;
|
|
13093
13257
|
var DrawerRenderer = ({
|
|
@@ -13116,7 +13280,7 @@ var DrawerRenderer = ({
|
|
|
13116
13280
|
if (drawersToRender.length === 0) {
|
|
13117
13281
|
return null;
|
|
13118
13282
|
}
|
|
13119
|
-
return /* @__PURE__ */
|
|
13283
|
+
return /* @__PURE__ */ jsx46(
|
|
13120
13284
|
"div",
|
|
13121
13285
|
{
|
|
13122
13286
|
css: [
|
|
@@ -13127,7 +13291,7 @@ var DrawerRenderer = ({
|
|
|
13127
13291
|
...otherProps,
|
|
13128
13292
|
children: drawersToRender.map(({ id, stackId: stackId2, onRequestClose }, index) => {
|
|
13129
13293
|
var _a;
|
|
13130
|
-
return /* @__PURE__ */
|
|
13294
|
+
return /* @__PURE__ */ jsx46(
|
|
13131
13295
|
DrawerWrapper,
|
|
13132
13296
|
{
|
|
13133
13297
|
index,
|
|
@@ -13137,7 +13301,7 @@ var DrawerRenderer = ({
|
|
|
13137
13301
|
maxWidth,
|
|
13138
13302
|
onOverlayClick: onRequestClose,
|
|
13139
13303
|
leftAligned,
|
|
13140
|
-
children: /* @__PURE__ */
|
|
13304
|
+
children: /* @__PURE__ */ jsx46(
|
|
13141
13305
|
"div",
|
|
13142
13306
|
{
|
|
13143
13307
|
...getDrawerAttributes({ providerId, stackId: stackId2, id }),
|
|
@@ -13168,8 +13332,8 @@ var DrawerWrapper = ({
|
|
|
13168
13332
|
}
|
|
13169
13333
|
const calculatedWidth = `calc(${width} - ${offsetInPx}px)`;
|
|
13170
13334
|
return /* @__PURE__ */ jsxs28(Fragment6, { children: [
|
|
13171
|
-
/* @__PURE__ */
|
|
13172
|
-
/* @__PURE__ */
|
|
13335
|
+
/* @__PURE__ */ jsx46("div", { css: drawerWrapperOverlayStyles, onClick: onOverlayClick }),
|
|
13336
|
+
/* @__PURE__ */ jsx46(
|
|
13173
13337
|
"div",
|
|
13174
13338
|
{
|
|
13175
13339
|
css: [drawerWrapperStyles, leftAligned ? drawerWrapperLeftAlignedStyles : null],
|
|
@@ -13184,12 +13348,12 @@ var getDrawerAttributes = ({
|
|
|
13184
13348
|
stackId,
|
|
13185
13349
|
id
|
|
13186
13350
|
}) => {
|
|
13187
|
-
return { "data-drawer-id": `${providerId}-${stackId}-${id}
|
|
13351
|
+
return { "data-drawer-id": `${providerId}-${stackId}-${id}`, "data-testid": "container-drawer" };
|
|
13188
13352
|
};
|
|
13189
13353
|
|
|
13190
13354
|
// src/components/Input/styles/CaptionText.styles.ts
|
|
13191
|
-
import { css as
|
|
13192
|
-
var CaptionText = (dynamicSize) =>
|
|
13355
|
+
import { css as css44 } from "@emotion/react";
|
|
13356
|
+
var CaptionText = (dynamicSize) => css44`
|
|
13193
13357
|
color: var(--gray-500);
|
|
13194
13358
|
display: block;
|
|
13195
13359
|
font-size: ${dynamicSize ? "clamp(var(--fs-xs), 87.5%,var(--fs-sm))" : "var(--fs-sm)"};
|
|
@@ -13198,29 +13362,29 @@ var CaptionText = (dynamicSize) => css43`
|
|
|
13198
13362
|
`;
|
|
13199
13363
|
|
|
13200
13364
|
// src/components/Input/Caption.tsx
|
|
13201
|
-
import { jsx as
|
|
13365
|
+
import { jsx as jsx47 } from "@emotion/react/jsx-runtime";
|
|
13202
13366
|
var Caption = ({ children, testId, dynamicSize = false, ...props }) => {
|
|
13203
|
-
return /* @__PURE__ */
|
|
13367
|
+
return /* @__PURE__ */ jsx47("small", { css: CaptionText(dynamicSize), "data-testid": testId, ...props, children });
|
|
13204
13368
|
};
|
|
13205
13369
|
|
|
13206
13370
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
13207
13371
|
import { forwardRef as forwardRef4 } from "react";
|
|
13208
13372
|
|
|
13209
13373
|
// src/components/Input/styles/CheckboxWithInfo.styles.ts
|
|
13210
|
-
import { css as
|
|
13211
|
-
var CheckboxWithInfoContainer =
|
|
13374
|
+
import { css as css45 } from "@emotion/react";
|
|
13375
|
+
var CheckboxWithInfoContainer = css45`
|
|
13212
13376
|
align-items: center;
|
|
13213
13377
|
display: flex;
|
|
13214
13378
|
gap: var(--spacing-sm);
|
|
13215
13379
|
`;
|
|
13216
|
-
var CheckboxWithInfoLabel =
|
|
13380
|
+
var CheckboxWithInfoLabel = css45`
|
|
13217
13381
|
align-items: center;
|
|
13218
13382
|
color: var(--gray-500);
|
|
13219
13383
|
display: flex;
|
|
13220
13384
|
font-size: var(--fs-xs);
|
|
13221
13385
|
gap: var(--spacing-sm);
|
|
13222
13386
|
`;
|
|
13223
|
-
var CheckboxWithInfoInput =
|
|
13387
|
+
var CheckboxWithInfoInput = css45`
|
|
13224
13388
|
appearance: none;
|
|
13225
13389
|
border: 1px solid var(--gray-300);
|
|
13226
13390
|
background: var(--white) no-repeat bottom center;
|
|
@@ -13253,7 +13417,7 @@ var CheckboxWithInfoInput = css44`
|
|
|
13253
13417
|
border-color: var(--gray-200);
|
|
13254
13418
|
}
|
|
13255
13419
|
`;
|
|
13256
|
-
var InfoDialogContainer =
|
|
13420
|
+
var InfoDialogContainer = css45`
|
|
13257
13421
|
position: relative;
|
|
13258
13422
|
|
|
13259
13423
|
&:hover {
|
|
@@ -13262,7 +13426,7 @@ var InfoDialogContainer = css44`
|
|
|
13262
13426
|
}
|
|
13263
13427
|
}
|
|
13264
13428
|
`;
|
|
13265
|
-
var InfoDialogMessage =
|
|
13429
|
+
var InfoDialogMessage = css45`
|
|
13266
13430
|
background: var(--white);
|
|
13267
13431
|
box-shadow: var(--shadow-base);
|
|
13268
13432
|
border-radius: var(--rounded-md);
|
|
@@ -13279,21 +13443,21 @@ var InfoDialogMessage = css44`
|
|
|
13279
13443
|
`;
|
|
13280
13444
|
|
|
13281
13445
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
13282
|
-
import { jsx as
|
|
13446
|
+
import { jsx as jsx48, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
|
|
13283
13447
|
var InfoDialog = ({ message }) => {
|
|
13284
13448
|
return /* @__PURE__ */ jsxs29("div", { "data-testid": "info-dialog", css: InfoDialogContainer, children: [
|
|
13285
|
-
/* @__PURE__ */
|
|
13286
|
-
/* @__PURE__ */
|
|
13449
|
+
/* @__PURE__ */ jsx48(Icon, { icon: "info", iconColor: "action", size: "0.9rem" }),
|
|
13450
|
+
/* @__PURE__ */ jsx48("div", { role: "paragraph", css: InfoDialogMessage, className: "info-message", children: message })
|
|
13287
13451
|
] });
|
|
13288
13452
|
};
|
|
13289
13453
|
var CheckboxWithInfo = forwardRef4(
|
|
13290
13454
|
({ label, name, info, ...props }, ref) => {
|
|
13291
13455
|
return /* @__PURE__ */ jsxs29("div", { css: CheckboxWithInfoContainer, children: [
|
|
13292
13456
|
/* @__PURE__ */ jsxs29("label", { css: CheckboxWithInfoLabel, children: [
|
|
13293
|
-
/* @__PURE__ */
|
|
13294
|
-
/* @__PURE__ */
|
|
13457
|
+
/* @__PURE__ */ jsx48("input", { type: "checkbox", name, ref, css: CheckboxWithInfoInput, ...props }),
|
|
13458
|
+
/* @__PURE__ */ jsx48("span", { children: label })
|
|
13295
13459
|
] }),
|
|
13296
|
-
info ? /* @__PURE__ */
|
|
13460
|
+
info ? /* @__PURE__ */ jsx48(InfoDialog, { message: info }) : null
|
|
13297
13461
|
] });
|
|
13298
13462
|
}
|
|
13299
13463
|
);
|
|
@@ -13302,8 +13466,8 @@ var CheckboxWithInfo = forwardRef4(
|
|
|
13302
13466
|
import { MdWarning } from "react-icons/md";
|
|
13303
13467
|
|
|
13304
13468
|
// src/components/Input/styles/ErrorMessage.styles.ts
|
|
13305
|
-
import { css as
|
|
13306
|
-
var ErrorText =
|
|
13469
|
+
import { css as css46 } from "@emotion/react";
|
|
13470
|
+
var ErrorText = css46`
|
|
13307
13471
|
align-items: center;
|
|
13308
13472
|
color: var(--brand-secondary-5);
|
|
13309
13473
|
display: flex;
|
|
@@ -13311,10 +13475,10 @@ var ErrorText = css45`
|
|
|
13311
13475
|
`;
|
|
13312
13476
|
|
|
13313
13477
|
// src/components/Input/ErrorMessage.tsx
|
|
13314
|
-
import { jsx as
|
|
13478
|
+
import { jsx as jsx49, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
|
|
13315
13479
|
var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
13316
|
-
return message ? /* @__PURE__ */ jsxs30("span", { role: "alert", css: ErrorText, "data-
|
|
13317
|
-
/* @__PURE__ */
|
|
13480
|
+
return message ? /* @__PURE__ */ jsxs30("span", { role: "alert", css: ErrorText, "data-testid": testId, ...otherProps, children: [
|
|
13481
|
+
/* @__PURE__ */ jsx49("span", { children: /* @__PURE__ */ jsx49(Icon, { icon: MdWarning, size: "1rem", iconColor: "currentColor" }) }),
|
|
13318
13482
|
message
|
|
13319
13483
|
] }) : null;
|
|
13320
13484
|
};
|
|
@@ -13323,9 +13487,9 @@ var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
|
13323
13487
|
import * as React15 from "react";
|
|
13324
13488
|
|
|
13325
13489
|
// src/components/Input/styles/Fieldset.styles.ts
|
|
13326
|
-
import { css as
|
|
13490
|
+
import { css as css47 } from "@emotion/react";
|
|
13327
13491
|
function fieldsetContainer(invert) {
|
|
13328
|
-
const base =
|
|
13492
|
+
const base = css47`
|
|
13329
13493
|
border-radius: var(--rounded-base);
|
|
13330
13494
|
border: 1px solid var(--gray-300);
|
|
13331
13495
|
|
|
@@ -13337,18 +13501,18 @@ function fieldsetContainer(invert) {
|
|
|
13337
13501
|
}
|
|
13338
13502
|
`;
|
|
13339
13503
|
return invert ? [
|
|
13340
|
-
|
|
13504
|
+
css47`
|
|
13341
13505
|
background: white;
|
|
13342
13506
|
`,
|
|
13343
13507
|
base
|
|
13344
13508
|
] : [
|
|
13345
|
-
|
|
13509
|
+
css47`
|
|
13346
13510
|
background: var(--gray-50);
|
|
13347
13511
|
`,
|
|
13348
13512
|
base
|
|
13349
13513
|
];
|
|
13350
13514
|
}
|
|
13351
|
-
var fieldsetLegend =
|
|
13515
|
+
var fieldsetLegend = css47`
|
|
13352
13516
|
align-items: center;
|
|
13353
13517
|
color: var(--brand-secondary-1);
|
|
13354
13518
|
display: flex;
|
|
@@ -13358,17 +13522,17 @@ var fieldsetLegend = css46`
|
|
|
13358
13522
|
margin-bottom: var(--spacing-base);
|
|
13359
13523
|
float: left; // allows the legend to be inside the fieldset and not sat on the border line
|
|
13360
13524
|
`;
|
|
13361
|
-
var fieldsetBody =
|
|
13525
|
+
var fieldsetBody = css47`
|
|
13362
13526
|
clear: left;
|
|
13363
13527
|
`;
|
|
13364
13528
|
|
|
13365
13529
|
// src/components/Input/Fieldset.tsx
|
|
13366
|
-
import { jsx as
|
|
13530
|
+
import { jsx as jsx50, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
|
|
13367
13531
|
var Fieldset = React15.forwardRef(
|
|
13368
13532
|
({ legend, disabled, children, invert, ...props }, ref) => {
|
|
13369
13533
|
return /* @__PURE__ */ jsxs31("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled, ...props, children: [
|
|
13370
13534
|
legend,
|
|
13371
|
-
/* @__PURE__ */
|
|
13535
|
+
/* @__PURE__ */ jsx50("div", { css: fieldsetBody, children })
|
|
13372
13536
|
] });
|
|
13373
13537
|
}
|
|
13374
13538
|
);
|
|
@@ -13377,8 +13541,8 @@ var Fieldset = React15.forwardRef(
|
|
|
13377
13541
|
import { MdInfoOutline } from "react-icons/md";
|
|
13378
13542
|
|
|
13379
13543
|
// src/components/Input/styles/InfoMessage.styles.tsx
|
|
13380
|
-
import { css as
|
|
13381
|
-
var InfoText =
|
|
13544
|
+
import { css as css48 } from "@emotion/react";
|
|
13545
|
+
var InfoText = css48`
|
|
13382
13546
|
--info-desc: rgb(29, 78, 216);
|
|
13383
13547
|
--info-icon: rgb(96, 165, 250);
|
|
13384
13548
|
|
|
@@ -13387,15 +13551,15 @@ var InfoText = css47`
|
|
|
13387
13551
|
display: flex;
|
|
13388
13552
|
gap: var(--spacing-sm);
|
|
13389
13553
|
`;
|
|
13390
|
-
var InfoIcon2 =
|
|
13554
|
+
var InfoIcon2 = css48`
|
|
13391
13555
|
color: var(--info-icon);
|
|
13392
13556
|
`;
|
|
13393
13557
|
|
|
13394
13558
|
// src/components/Input/InfoMessage.tsx
|
|
13395
|
-
import { jsx as
|
|
13559
|
+
import { jsx as jsx51, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
|
|
13396
13560
|
var InfoMessage = ({ message, testId, ...props }) => {
|
|
13397
|
-
return message ? /* @__PURE__ */ jsxs32("span", { role: "status", css: InfoText, "data-
|
|
13398
|
-
/* @__PURE__ */
|
|
13561
|
+
return message ? /* @__PURE__ */ jsxs32("span", { role: "status", css: InfoText, "data-testid": testId, ...props, children: [
|
|
13562
|
+
/* @__PURE__ */ jsx51("span", { children: /* @__PURE__ */ jsx51(Icon, { css: InfoIcon2, icon: MdInfoOutline, size: "1rem", iconColor: "currentColor" }) }),
|
|
13399
13563
|
message
|
|
13400
13564
|
] }) : null;
|
|
13401
13565
|
};
|
|
@@ -13404,14 +13568,14 @@ var InfoMessage = ({ message, testId, ...props }) => {
|
|
|
13404
13568
|
import * as React16 from "react";
|
|
13405
13569
|
|
|
13406
13570
|
// src/components/Input/Label.tsx
|
|
13407
|
-
import { jsx as
|
|
13571
|
+
import { jsx as jsx52 } from "@emotion/react/jsx-runtime";
|
|
13408
13572
|
var Label = ({ children, className, testId, ...props }) => {
|
|
13409
|
-
return /* @__PURE__ */
|
|
13573
|
+
return /* @__PURE__ */ jsx52(
|
|
13410
13574
|
"label",
|
|
13411
13575
|
{
|
|
13412
13576
|
css: [labelText, typeof className === "object" ? className : void 0],
|
|
13413
13577
|
className: typeof className === "string" ? className : "",
|
|
13414
|
-
"data-
|
|
13578
|
+
"data-testid": testId,
|
|
13415
13579
|
...props,
|
|
13416
13580
|
children
|
|
13417
13581
|
}
|
|
@@ -13422,28 +13586,28 @@ var Label = ({ children, className, testId, ...props }) => {
|
|
|
13422
13586
|
import { MdWarning as MdWarning2 } from "react-icons/md";
|
|
13423
13587
|
|
|
13424
13588
|
// src/components/Input/styles/WarningMessage.styles.tsx
|
|
13425
|
-
import { css as
|
|
13426
|
-
var WarningText =
|
|
13589
|
+
import { css as css49 } from "@emotion/react";
|
|
13590
|
+
var WarningText = css49`
|
|
13427
13591
|
align-items: center;
|
|
13428
13592
|
color: var(--alert-text);
|
|
13429
13593
|
display: flex;
|
|
13430
13594
|
gap: var(--spacing-sm);
|
|
13431
13595
|
`;
|
|
13432
|
-
var WarningIcon =
|
|
13596
|
+
var WarningIcon = css49`
|
|
13433
13597
|
color: var(--alert);
|
|
13434
13598
|
`;
|
|
13435
13599
|
|
|
13436
13600
|
// src/components/Input/WarningMessage.tsx
|
|
13437
|
-
import { jsx as
|
|
13601
|
+
import { jsx as jsx53, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
|
|
13438
13602
|
var WarningMessage = ({ message, testId, ...props }) => {
|
|
13439
|
-
return message ? /* @__PURE__ */ jsxs33("span", { role: "status", css: WarningText, "data-
|
|
13440
|
-
/* @__PURE__ */
|
|
13603
|
+
return message ? /* @__PURE__ */ jsxs33("span", { role: "status", css: WarningText, "data-testid": testId, ...props, children: [
|
|
13604
|
+
/* @__PURE__ */ jsx53("span", { children: /* @__PURE__ */ jsx53(Icon, { css: WarningIcon, icon: MdWarning2, size: "1rem", iconColor: "currentColor" }) }),
|
|
13441
13605
|
message
|
|
13442
13606
|
] }) : null;
|
|
13443
13607
|
};
|
|
13444
13608
|
|
|
13445
13609
|
// src/components/Input/Input.tsx
|
|
13446
|
-
import { jsx as
|
|
13610
|
+
import { jsx as jsx54, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
|
|
13447
13611
|
var Input = React16.forwardRef(
|
|
13448
13612
|
({
|
|
13449
13613
|
label,
|
|
@@ -13462,8 +13626,8 @@ var Input = React16.forwardRef(
|
|
|
13462
13626
|
classNameLabel,
|
|
13463
13627
|
...props
|
|
13464
13628
|
}, ref) => {
|
|
13465
|
-
return /* @__PURE__ */ jsxs34("div", { css: inputContainer, "data-
|
|
13466
|
-
showLabel ? /* @__PURE__ */
|
|
13629
|
+
return /* @__PURE__ */ jsxs34("div", { css: inputContainer, "data-testid": containerTestId ? containerTestId : "container-input-field", children: [
|
|
13630
|
+
showLabel ? /* @__PURE__ */ jsx54(
|
|
13467
13631
|
Label,
|
|
13468
13632
|
{
|
|
13469
13633
|
htmlFor: id,
|
|
@@ -13479,7 +13643,7 @@ var Input = React16.forwardRef(
|
|
|
13479
13643
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
13480
13644
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
13481
13645
|
children: [
|
|
13482
|
-
/* @__PURE__ */
|
|
13646
|
+
/* @__PURE__ */ jsx54(
|
|
13483
13647
|
"input",
|
|
13484
13648
|
{
|
|
13485
13649
|
id,
|
|
@@ -13495,23 +13659,23 @@ var Input = React16.forwardRef(
|
|
|
13495
13659
|
ref
|
|
13496
13660
|
}
|
|
13497
13661
|
),
|
|
13498
|
-
icon ? /* @__PURE__ */
|
|
13662
|
+
icon ? /* @__PURE__ */ jsx54("div", { css: inputIcon, children: icon }) : null
|
|
13499
13663
|
]
|
|
13500
13664
|
}
|
|
13501
13665
|
),
|
|
13502
|
-
caption ? /* @__PURE__ */
|
|
13503
|
-
errorMessage ? /* @__PURE__ */
|
|
13504
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
13666
|
+
caption ? /* @__PURE__ */ jsx54(Caption, { testId: captionTestId, children: caption }) : null,
|
|
13667
|
+
errorMessage ? /* @__PURE__ */ jsx54(ErrorMessage, { message: errorMessage, testId: errorTestId }) : null,
|
|
13668
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx54(WarningMessage, { message: warningMessage }) : null
|
|
13505
13669
|
] });
|
|
13506
13670
|
}
|
|
13507
13671
|
);
|
|
13508
13672
|
|
|
13509
13673
|
// src/components/Input/InputComboBox.tsx
|
|
13510
13674
|
import Select from "react-select";
|
|
13511
|
-
import { jsx as
|
|
13675
|
+
import { jsx as jsx55 } from "@emotion/react/jsx-runtime";
|
|
13512
13676
|
function InputComboBox(props) {
|
|
13513
13677
|
var _a;
|
|
13514
|
-
return /* @__PURE__ */
|
|
13678
|
+
return /* @__PURE__ */ jsx55(
|
|
13515
13679
|
Select,
|
|
13516
13680
|
{
|
|
13517
13681
|
...props,
|
|
@@ -13640,17 +13804,17 @@ function InputComboBox(props) {
|
|
|
13640
13804
|
}
|
|
13641
13805
|
|
|
13642
13806
|
// src/components/Input/InputInlineSelect.tsx
|
|
13643
|
-
import { css as
|
|
13807
|
+
import { css as css51 } from "@emotion/react";
|
|
13644
13808
|
import { useRef as useRef4, useState as useState6 } from "react";
|
|
13645
13809
|
import { CgChevronDown as CgChevronDown2 } from "react-icons/cg";
|
|
13646
13810
|
|
|
13647
13811
|
// src/components/Input/styles/InputInlineSelect.styles.ts
|
|
13648
|
-
import { css as
|
|
13649
|
-
var inlineSelectContainer =
|
|
13812
|
+
import { css as css50 } from "@emotion/react";
|
|
13813
|
+
var inlineSelectContainer = css50`
|
|
13650
13814
|
margin-inline: auto;
|
|
13651
13815
|
max-width: fit-content;
|
|
13652
13816
|
`;
|
|
13653
|
-
var inlineSelectBtn =
|
|
13817
|
+
var inlineSelectBtn = css50`
|
|
13654
13818
|
align-items: center;
|
|
13655
13819
|
background: var(--brand-secondary-3);
|
|
13656
13820
|
border: 2px solid var(--brand-secondary-3);
|
|
@@ -13674,7 +13838,7 @@ var inlineSelectBtn = css49`
|
|
|
13674
13838
|
outline: 2px solid var(--brand-secondary-1);
|
|
13675
13839
|
}
|
|
13676
13840
|
`;
|
|
13677
|
-
var inlineSelectMenu =
|
|
13841
|
+
var inlineSelectMenu = css50`
|
|
13678
13842
|
background: var(--white);
|
|
13679
13843
|
border: 1px solid var(--brand-secondary-3);
|
|
13680
13844
|
border-top: none;
|
|
@@ -13685,7 +13849,7 @@ var inlineSelectMenu = css49`
|
|
|
13685
13849
|
inset: auto 0;
|
|
13686
13850
|
transform: translateY(-0.2rem);
|
|
13687
13851
|
`;
|
|
13688
|
-
var inlineSelectBtnOptions =
|
|
13852
|
+
var inlineSelectBtnOptions = css50`
|
|
13689
13853
|
cursor: pointer;
|
|
13690
13854
|
display: block;
|
|
13691
13855
|
font-size: var(--fs-sm);
|
|
@@ -13701,7 +13865,7 @@ var inlineSelectBtnOptions = css49`
|
|
|
13701
13865
|
background: var(--gray-50);
|
|
13702
13866
|
}
|
|
13703
13867
|
`;
|
|
13704
|
-
var inlineSelectMenuClosed =
|
|
13868
|
+
var inlineSelectMenuClosed = css50`
|
|
13705
13869
|
position: absolute;
|
|
13706
13870
|
overflow: hidden;
|
|
13707
13871
|
height: 1px;
|
|
@@ -13711,7 +13875,7 @@ var inlineSelectMenuClosed = css49`
|
|
|
13711
13875
|
`;
|
|
13712
13876
|
|
|
13713
13877
|
// src/components/Input/InputInlineSelect.tsx
|
|
13714
|
-
import { jsx as
|
|
13878
|
+
import { jsx as jsx56, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
13715
13879
|
var InputInlineSelect = ({
|
|
13716
13880
|
classNameContainer,
|
|
13717
13881
|
options,
|
|
@@ -13729,7 +13893,7 @@ var InputInlineSelect = ({
|
|
|
13729
13893
|
"div",
|
|
13730
13894
|
{
|
|
13731
13895
|
ref: divRef,
|
|
13732
|
-
css: !classNameContainer ? inlineSelectContainer :
|
|
13896
|
+
css: !classNameContainer ? inlineSelectContainer : css51`
|
|
13733
13897
|
max-width: fit-content;
|
|
13734
13898
|
${typeof classNameContainer === "object" ? classNameContainer : void 0}
|
|
13735
13899
|
`,
|
|
@@ -13749,18 +13913,18 @@ var InputInlineSelect = ({
|
|
|
13749
13913
|
disabled,
|
|
13750
13914
|
...props,
|
|
13751
13915
|
children: [
|
|
13752
|
-
/* @__PURE__ */
|
|
13753
|
-
disabled ? null : /* @__PURE__ */
|
|
13916
|
+
/* @__PURE__ */ jsx56("span", { children: (_a = selected == null ? void 0 : selected.label) != null ? _a : value }),
|
|
13917
|
+
disabled ? null : /* @__PURE__ */ jsx56(Icon, { icon: CgChevronDown2, iconColor: "currentColor", size: 24 })
|
|
13754
13918
|
]
|
|
13755
13919
|
}
|
|
13756
13920
|
),
|
|
13757
|
-
/* @__PURE__ */
|
|
13921
|
+
/* @__PURE__ */ jsx56(
|
|
13758
13922
|
"div",
|
|
13759
13923
|
{
|
|
13760
13924
|
id: `and-or-${props.id}`,
|
|
13761
13925
|
css: [inlineSelectMenu, menuVisible ? void 0 : inlineSelectMenuClosed],
|
|
13762
13926
|
"aria-hidden": !menuVisible,
|
|
13763
|
-
children: options.map((opt) => /* @__PURE__ */
|
|
13927
|
+
children: options.map((opt) => /* @__PURE__ */ jsx56(
|
|
13764
13928
|
"button",
|
|
13765
13929
|
{
|
|
13766
13930
|
type: "button",
|
|
@@ -13782,7 +13946,7 @@ var InputInlineSelect = ({
|
|
|
13782
13946
|
|
|
13783
13947
|
// src/components/Input/InputKeywordSearch.tsx
|
|
13784
13948
|
import { CgClose as CgClose4, CgSearch } from "react-icons/cg";
|
|
13785
|
-
import { jsx as
|
|
13949
|
+
import { jsx as jsx57 } from "@emotion/react/jsx-runtime";
|
|
13786
13950
|
var InputKeywordSearch = ({
|
|
13787
13951
|
onSearchTextChanged,
|
|
13788
13952
|
disabled = false,
|
|
@@ -13803,7 +13967,7 @@ var InputKeywordSearch = ({
|
|
|
13803
13967
|
e.preventDefault();
|
|
13804
13968
|
}
|
|
13805
13969
|
};
|
|
13806
|
-
return /* @__PURE__ */
|
|
13970
|
+
return /* @__PURE__ */ jsx57(
|
|
13807
13971
|
Input,
|
|
13808
13972
|
{
|
|
13809
13973
|
type: "text",
|
|
@@ -13811,7 +13975,7 @@ var InputKeywordSearch = ({
|
|
|
13811
13975
|
placeholder,
|
|
13812
13976
|
showLabel: false,
|
|
13813
13977
|
value,
|
|
13814
|
-
icon: value ? /* @__PURE__ */
|
|
13978
|
+
icon: value ? /* @__PURE__ */ jsx57("button", { css: inputSearchCloseBtn, onClick: onClear, type: "button", children: /* @__PURE__ */ jsx57(Icon, { icon: CgClose4, iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ jsx57(Icon, { icon: CgSearch, iconColor: "gray", size: "1rem" }),
|
|
13815
13979
|
onChange: handleSearchTextChanged,
|
|
13816
13980
|
onKeyPress: preventSubmitOnField,
|
|
13817
13981
|
disabled,
|
|
@@ -13829,7 +13993,7 @@ var InputKeywordSearch = ({
|
|
|
13829
13993
|
};
|
|
13830
13994
|
|
|
13831
13995
|
// src/components/Input/InputSelect.tsx
|
|
13832
|
-
import { Fragment as Fragment7, jsx as
|
|
13996
|
+
import { Fragment as Fragment7, jsx as jsx58, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
13833
13997
|
var InputSelect = ({
|
|
13834
13998
|
label,
|
|
13835
13999
|
defaultOption,
|
|
@@ -13851,7 +14015,7 @@ var InputSelect = ({
|
|
|
13851
14015
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
13852
14016
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
13853
14017
|
children: [
|
|
13854
|
-
showLabel ? /* @__PURE__ */
|
|
14018
|
+
showLabel ? /* @__PURE__ */ jsx58(Fragment7, { children: /* @__PURE__ */ jsxs36(
|
|
13855
14019
|
Label,
|
|
13856
14020
|
{
|
|
13857
14021
|
htmlFor: props.id,
|
|
@@ -13878,14 +14042,14 @@ var InputSelect = ({
|
|
|
13878
14042
|
className: typeof classNameControl === "string" ? classNameControl : "",
|
|
13879
14043
|
...props,
|
|
13880
14044
|
children: [
|
|
13881
|
-
defaultOption ? /* @__PURE__ */
|
|
13882
|
-
options.map((opt, index) => /* @__PURE__ */
|
|
14045
|
+
defaultOption ? /* @__PURE__ */ jsx58("option", { value: "", children: defaultOption }) : null,
|
|
14046
|
+
options.map((opt, index) => /* @__PURE__ */ jsx58("option", { value: opt.label, ...opt }, index))
|
|
13883
14047
|
]
|
|
13884
14048
|
}
|
|
13885
14049
|
),
|
|
13886
|
-
caption ? /* @__PURE__ */
|
|
13887
|
-
errorMessage ? /* @__PURE__ */
|
|
13888
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14050
|
+
caption ? /* @__PURE__ */ jsx58(Caption, { children: caption }) : null,
|
|
14051
|
+
errorMessage ? /* @__PURE__ */ jsx58(ErrorMessage, { message: errorMessage }) : null,
|
|
14052
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx58(WarningMessage, { message: warningMessage }) : null
|
|
13889
14053
|
]
|
|
13890
14054
|
}
|
|
13891
14055
|
);
|
|
@@ -13893,7 +14057,7 @@ var InputSelect = ({
|
|
|
13893
14057
|
|
|
13894
14058
|
// src/components/Input/InputToggle.tsx
|
|
13895
14059
|
import * as React17 from "react";
|
|
13896
|
-
import { jsx as
|
|
14060
|
+
import { jsx as jsx59, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
|
|
13897
14061
|
var InputToggle = React17.forwardRef(
|
|
13898
14062
|
({
|
|
13899
14063
|
label,
|
|
@@ -13912,9 +14076,9 @@ var InputToggle = React17.forwardRef(
|
|
|
13912
14076
|
Label,
|
|
13913
14077
|
{
|
|
13914
14078
|
css: [inputToggleLabel, disabled ? inputDisabled : void 0],
|
|
13915
|
-
"data-
|
|
14079
|
+
"data-testid": testId ? testId : "input-toggle",
|
|
13916
14080
|
children: [
|
|
13917
|
-
/* @__PURE__ */
|
|
14081
|
+
/* @__PURE__ */ jsx59(
|
|
13918
14082
|
"input",
|
|
13919
14083
|
{
|
|
13920
14084
|
ref,
|
|
@@ -13926,11 +14090,11 @@ var InputToggle = React17.forwardRef(
|
|
|
13926
14090
|
...props
|
|
13927
14091
|
}
|
|
13928
14092
|
),
|
|
13929
|
-
/* @__PURE__ */
|
|
14093
|
+
/* @__PURE__ */ jsx59("span", { css: inlineLabel(fontWeight), children: label }),
|
|
13930
14094
|
caption || errorMessage ? /* @__PURE__ */ jsxs37("span", { css: inputToggleMessageContainer, children: [
|
|
13931
|
-
caption ? /* @__PURE__ */
|
|
13932
|
-
errorMessage ? /* @__PURE__ */
|
|
13933
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14095
|
+
caption ? /* @__PURE__ */ jsx59(Caption, { children: caption }) : null,
|
|
14096
|
+
errorMessage ? /* @__PURE__ */ jsx59(ErrorMessage, { message: errorMessage }) : null,
|
|
14097
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx59(WarningMessage, { message: warningMessage }) : null
|
|
13934
14098
|
] }) : null
|
|
13935
14099
|
]
|
|
13936
14100
|
}
|
|
@@ -13939,17 +14103,17 @@ var InputToggle = React17.forwardRef(
|
|
|
13939
14103
|
);
|
|
13940
14104
|
|
|
13941
14105
|
// src/components/Input/Legend.tsx
|
|
13942
|
-
import { jsx as
|
|
14106
|
+
import { jsx as jsx60 } from "@emotion/react/jsx-runtime";
|
|
13943
14107
|
var Legend = ({ children }) => {
|
|
13944
|
-
return /* @__PURE__ */
|
|
14108
|
+
return /* @__PURE__ */ jsx60("legend", { css: fieldsetLegend, children });
|
|
13945
14109
|
};
|
|
13946
14110
|
|
|
13947
14111
|
// src/components/Input/SuccessMessage.tsx
|
|
13948
14112
|
import { CgCheckO } from "react-icons/cg";
|
|
13949
14113
|
|
|
13950
14114
|
// src/components/Input/styles/SuccessMessage.styles.ts
|
|
13951
|
-
import { css as
|
|
13952
|
-
var SuccessText =
|
|
14115
|
+
import { css as css52 } from "@emotion/react";
|
|
14116
|
+
var SuccessText = css52`
|
|
13953
14117
|
--info-desc: var(--brand-secondary-3);
|
|
13954
14118
|
--info-icon: var(--brand-secondary-3);
|
|
13955
14119
|
|
|
@@ -13958,28 +14122,28 @@ var SuccessText = css51`
|
|
|
13958
14122
|
display: flex;
|
|
13959
14123
|
gap: var(--spacing-sm);
|
|
13960
14124
|
`;
|
|
13961
|
-
var SuccessIcon2 =
|
|
14125
|
+
var SuccessIcon2 = css52`
|
|
13962
14126
|
color: var(--info-icon);
|
|
13963
14127
|
`;
|
|
13964
14128
|
|
|
13965
14129
|
// src/components/Input/SuccessMessage.tsx
|
|
13966
|
-
import { jsx as
|
|
14130
|
+
import { jsx as jsx61, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
|
|
13967
14131
|
var SuccessMessage = ({ message, testId, ...props }) => {
|
|
13968
|
-
return message ? /* @__PURE__ */ jsxs38("span", { role: "status", css: SuccessText, "data-
|
|
13969
|
-
/* @__PURE__ */
|
|
14132
|
+
return message ? /* @__PURE__ */ jsxs38("span", { role: "status", css: SuccessText, "data-testid": testId, ...props, children: [
|
|
14133
|
+
/* @__PURE__ */ jsx61("span", { children: /* @__PURE__ */ jsx61(Icon, { css: SuccessIcon2, icon: CgCheckO, size: "1rem", iconColor: "currentColor" }) }),
|
|
13970
14134
|
message
|
|
13971
14135
|
] }) : null;
|
|
13972
14136
|
};
|
|
13973
14137
|
|
|
13974
14138
|
// src/components/Input/Textarea.tsx
|
|
13975
14139
|
import { forwardRef as forwardRef8 } from "react";
|
|
13976
|
-
import { Fragment as Fragment8, jsx as
|
|
14140
|
+
import { Fragment as Fragment8, jsx as jsx62, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
13977
14141
|
var Textarea = forwardRef8(
|
|
13978
14142
|
({ label, icon, id, caption, showLabel = true, errorMessage, warningMessage, ...props }, ref) => {
|
|
13979
14143
|
return /* @__PURE__ */ jsxs39(Fragment8, { children: [
|
|
13980
|
-
showLabel ? /* @__PURE__ */
|
|
14144
|
+
showLabel ? /* @__PURE__ */ jsx62("label", { htmlFor: id, css: [labelText], children: label }) : null,
|
|
13981
14145
|
/* @__PURE__ */ jsxs39("div", { css: [inputContainer], children: [
|
|
13982
|
-
/* @__PURE__ */
|
|
14146
|
+
/* @__PURE__ */ jsx62(
|
|
13983
14147
|
"textarea",
|
|
13984
14148
|
{
|
|
13985
14149
|
ref,
|
|
@@ -13994,22 +14158,22 @@ var Textarea = forwardRef8(
|
|
|
13994
14158
|
...props
|
|
13995
14159
|
}
|
|
13996
14160
|
),
|
|
13997
|
-
icon ? /* @__PURE__ */
|
|
14161
|
+
icon ? /* @__PURE__ */ jsx62("div", { css: inputIcon, children: icon }) : null
|
|
13998
14162
|
] }),
|
|
13999
|
-
caption ? /* @__PURE__ */
|
|
14000
|
-
errorMessage ? /* @__PURE__ */
|
|
14001
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14163
|
+
caption ? /* @__PURE__ */ jsx62(Caption, { children: caption }) : null,
|
|
14164
|
+
errorMessage ? /* @__PURE__ */ jsx62(ErrorMessage, { message: errorMessage }) : null,
|
|
14165
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx62(WarningMessage, { message: warningMessage }) : null
|
|
14002
14166
|
] });
|
|
14003
14167
|
}
|
|
14004
14168
|
);
|
|
14005
14169
|
|
|
14006
14170
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
14007
|
-
import { css as
|
|
14171
|
+
import { css as css54 } from "@emotion/react";
|
|
14008
14172
|
import { CgAdd as CgAdd2, CgChevronRight as CgChevronRight2 } from "react-icons/cg";
|
|
14009
14173
|
|
|
14010
14174
|
// src/components/Tiles/styles/IntegrationTile.styles.ts
|
|
14011
|
-
import { css as
|
|
14012
|
-
var IntegrationTileContainer =
|
|
14175
|
+
import { css as css53 } from "@emotion/react";
|
|
14176
|
+
var IntegrationTileContainer = css53`
|
|
14013
14177
|
align-items: center;
|
|
14014
14178
|
box-sizing: border-box;
|
|
14015
14179
|
border-radius: var(--rounded-base);
|
|
@@ -14040,22 +14204,22 @@ var IntegrationTileContainer = css52`
|
|
|
14040
14204
|
}
|
|
14041
14205
|
}
|
|
14042
14206
|
`;
|
|
14043
|
-
var IntegrationTileBtnDashedBorder =
|
|
14207
|
+
var IntegrationTileBtnDashedBorder = css53`
|
|
14044
14208
|
border: 1px dashed var(--brand-secondary-1);
|
|
14045
14209
|
`;
|
|
14046
|
-
var IntegrationTileTitle =
|
|
14210
|
+
var IntegrationTileTitle = css53`
|
|
14047
14211
|
display: block;
|
|
14048
14212
|
font-weight: var(--fw-bold);
|
|
14049
14213
|
margin: 0 0 var(--spacing-base);
|
|
14050
14214
|
max-width: 13rem;
|
|
14051
14215
|
`;
|
|
14052
|
-
var IntegrationTitleLogo =
|
|
14216
|
+
var IntegrationTitleLogo = css53`
|
|
14053
14217
|
display: block;
|
|
14054
14218
|
max-width: 10rem;
|
|
14055
14219
|
max-height: 4rem;
|
|
14056
14220
|
margin: 0 auto;
|
|
14057
14221
|
`;
|
|
14058
|
-
var IntegrationTileName =
|
|
14222
|
+
var IntegrationTileName = css53`
|
|
14059
14223
|
color: var(--gray-500);
|
|
14060
14224
|
display: -webkit-box;
|
|
14061
14225
|
-webkit-line-clamp: 1;
|
|
@@ -14068,7 +14232,7 @@ var IntegrationTileName = css52`
|
|
|
14068
14232
|
position: absolute;
|
|
14069
14233
|
bottom: calc(var(--spacing-base) * 3.8);
|
|
14070
14234
|
`;
|
|
14071
|
-
var IntegrationAddedText =
|
|
14235
|
+
var IntegrationAddedText = css53`
|
|
14072
14236
|
align-items: center;
|
|
14073
14237
|
background: var(--brand-secondary-3);
|
|
14074
14238
|
border-radius: 0 var(--rounded-md) 0 var(--rounded-md);
|
|
@@ -14083,7 +14247,7 @@ var IntegrationAddedText = css52`
|
|
|
14083
14247
|
top: 0;
|
|
14084
14248
|
right: 0;
|
|
14085
14249
|
`;
|
|
14086
|
-
var IntegrationCustomBadgeText = (theme) =>
|
|
14250
|
+
var IntegrationCustomBadgeText = (theme) => css53`
|
|
14087
14251
|
align-items: center;
|
|
14088
14252
|
border-radius: var(--rounded-sm) 0 var(--rounded-sm) 0;
|
|
14089
14253
|
background: ${theme === "gray" ? "var(--brand-secondary-2)" : "var(--brand-secondary-1)"};
|
|
@@ -14097,26 +14261,26 @@ var IntegrationCustomBadgeText = (theme) => css52`
|
|
|
14097
14261
|
top: 0;
|
|
14098
14262
|
left: 0;
|
|
14099
14263
|
`;
|
|
14100
|
-
var IntegrationAuthorBadgeIcon =
|
|
14264
|
+
var IntegrationAuthorBadgeIcon = css53`
|
|
14101
14265
|
position: absolute;
|
|
14102
14266
|
bottom: var(--spacing-sm);
|
|
14103
14267
|
right: var(--spacing-xs);
|
|
14104
14268
|
max-height: 1rem;
|
|
14105
14269
|
`;
|
|
14106
|
-
var IntegrationTitleFakeButton =
|
|
14270
|
+
var IntegrationTitleFakeButton = css53`
|
|
14107
14271
|
font-size: var(--fs-xs);
|
|
14108
14272
|
gap: var(--spacing-sm);
|
|
14109
14273
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
14110
14274
|
text-transform: uppercase;
|
|
14111
14275
|
`;
|
|
14112
|
-
var IntegrationTileFloatingButton =
|
|
14276
|
+
var IntegrationTileFloatingButton = css53`
|
|
14113
14277
|
position: absolute;
|
|
14114
14278
|
bottom: var(--spacing-base);
|
|
14115
14279
|
gap: var(--spacing-sm);
|
|
14116
14280
|
font-size: var(--fs-xs);
|
|
14117
14281
|
overflow: hidden;
|
|
14118
14282
|
`;
|
|
14119
|
-
var IntegrationTileFloatingButtonMessage = (clicked) =>
|
|
14283
|
+
var IntegrationTileFloatingButtonMessage = (clicked) => css53`
|
|
14120
14284
|
strong,
|
|
14121
14285
|
span:first-of-type {
|
|
14122
14286
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
@@ -14137,7 +14301,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => css52`
|
|
|
14137
14301
|
`;
|
|
14138
14302
|
|
|
14139
14303
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
14140
|
-
import { jsx as
|
|
14304
|
+
import { jsx as jsx63, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
|
|
14141
14305
|
var CreateTeamIntegrationTile = ({
|
|
14142
14306
|
title = "Create a custom integration for your team",
|
|
14143
14307
|
buttonText = "Add Integration",
|
|
@@ -14146,7 +14310,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
14146
14310
|
...props
|
|
14147
14311
|
}) => {
|
|
14148
14312
|
return /* @__PURE__ */ jsxs40("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
14149
|
-
/* @__PURE__ */
|
|
14313
|
+
/* @__PURE__ */ jsx63("span", { css: IntegrationTileTitle, title, children: title }),
|
|
14150
14314
|
/* @__PURE__ */ jsxs40(
|
|
14151
14315
|
Button,
|
|
14152
14316
|
{
|
|
@@ -14157,23 +14321,23 @@ var CreateTeamIntegrationTile = ({
|
|
|
14157
14321
|
css: IntegrationTitleFakeButton,
|
|
14158
14322
|
children: [
|
|
14159
14323
|
buttonText,
|
|
14160
|
-
asDeepLink ? /* @__PURE__ */
|
|
14324
|
+
asDeepLink ? /* @__PURE__ */ jsx63(
|
|
14161
14325
|
Icon,
|
|
14162
14326
|
{
|
|
14163
14327
|
icon: CgChevronRight2,
|
|
14164
14328
|
iconColor: "currentColor",
|
|
14165
14329
|
size: 20,
|
|
14166
|
-
css:
|
|
14330
|
+
css: css54`
|
|
14167
14331
|
order: 1;
|
|
14168
14332
|
`
|
|
14169
14333
|
}
|
|
14170
|
-
) : /* @__PURE__ */
|
|
14334
|
+
) : /* @__PURE__ */ jsx63(
|
|
14171
14335
|
Icon,
|
|
14172
14336
|
{
|
|
14173
14337
|
icon: CgAdd2,
|
|
14174
14338
|
iconColor: "currentColor",
|
|
14175
14339
|
size: 16,
|
|
14176
|
-
css:
|
|
14340
|
+
css: css54`
|
|
14177
14341
|
order: -1;
|
|
14178
14342
|
`
|
|
14179
14343
|
}
|
|
@@ -14186,31 +14350,31 @@ var CreateTeamIntegrationTile = ({
|
|
|
14186
14350
|
|
|
14187
14351
|
// src/components/Tiles/IntegrationBadges.tsx
|
|
14188
14352
|
import { CgCheck, CgLock, CgSandClock } from "react-icons/cg";
|
|
14189
|
-
import { jsx as
|
|
14353
|
+
import { jsx as jsx64, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
14190
14354
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
14191
14355
|
return /* @__PURE__ */ jsxs41("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
14192
|
-
/* @__PURE__ */
|
|
14356
|
+
/* @__PURE__ */ jsx64(Icon, { icon: CgCheck, iconColor: "currentColor" }),
|
|
14193
14357
|
text
|
|
14194
14358
|
] });
|
|
14195
14359
|
};
|
|
14196
14360
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
14197
|
-
return /* @__PURE__ */
|
|
14361
|
+
return /* @__PURE__ */ jsx64("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
14198
14362
|
};
|
|
14199
14363
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
14200
14364
|
return /* @__PURE__ */ jsxs41("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
14201
|
-
/* @__PURE__ */
|
|
14365
|
+
/* @__PURE__ */ jsx64(Icon, { icon: CgLock, iconColor: "currentColor", size: 12 }),
|
|
14202
14366
|
text
|
|
14203
14367
|
] });
|
|
14204
14368
|
};
|
|
14205
14369
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
14206
14370
|
return /* @__PURE__ */ jsxs41("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
14207
|
-
/* @__PURE__ */
|
|
14371
|
+
/* @__PURE__ */ jsx64(Icon, { icon: CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
14208
14372
|
text
|
|
14209
14373
|
] });
|
|
14210
14374
|
};
|
|
14211
14375
|
|
|
14212
14376
|
// src/components/Tiles/ResolveIcon.tsx
|
|
14213
|
-
import { jsx as
|
|
14377
|
+
import { jsx as jsx65 } from "@emotion/react/jsx-runtime";
|
|
14214
14378
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
14215
14379
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
14216
14380
|
const mapClassName = {
|
|
@@ -14218,13 +14382,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
14218
14382
|
logo: IntegrationTitleLogo
|
|
14219
14383
|
};
|
|
14220
14384
|
if (icon) {
|
|
14221
|
-
return CompIcon ? /* @__PURE__ */
|
|
14385
|
+
return CompIcon ? /* @__PURE__ */ jsx65(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ jsx65("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
14222
14386
|
}
|
|
14223
14387
|
return null;
|
|
14224
14388
|
};
|
|
14225
14389
|
|
|
14226
14390
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
14227
|
-
import { jsx as
|
|
14391
|
+
import { jsx as jsx66, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
14228
14392
|
var EditTeamIntegrationTile = ({
|
|
14229
14393
|
id,
|
|
14230
14394
|
icon,
|
|
@@ -14240,10 +14404,10 @@ var EditTeamIntegrationTile = ({
|
|
|
14240
14404
|
"data-testid": "configure-integration-container",
|
|
14241
14405
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
14242
14406
|
children: [
|
|
14243
|
-
/* @__PURE__ */
|
|
14244
|
-
/* @__PURE__ */
|
|
14245
|
-
!isPublic ? /* @__PURE__ */
|
|
14246
|
-
canEdit ? /* @__PURE__ */
|
|
14407
|
+
/* @__PURE__ */ jsx66(ResolveIcon, { icon, name, "data-testid": "integration-logo" }),
|
|
14408
|
+
/* @__PURE__ */ jsx66("span", { css: IntegrationTileName, "data-testid": "integration-card-name", children: name }),
|
|
14409
|
+
!isPublic ? /* @__PURE__ */ jsx66(IntegrationCustomBadge, {}) : null,
|
|
14410
|
+
canEdit ? /* @__PURE__ */ jsx66(
|
|
14247
14411
|
Button,
|
|
14248
14412
|
{
|
|
14249
14413
|
buttonType: "unimportant",
|
|
@@ -14261,10 +14425,10 @@ var EditTeamIntegrationTile = ({
|
|
|
14261
14425
|
};
|
|
14262
14426
|
|
|
14263
14427
|
// src/components/Tiles/IntegrationComingSoon.tsx
|
|
14264
|
-
import { css as
|
|
14428
|
+
import { css as css55 } from "@emotion/react";
|
|
14265
14429
|
import { useEffect as useEffect7, useState as useState7 } from "react";
|
|
14266
14430
|
import { CgHeart } from "react-icons/cg";
|
|
14267
|
-
import { jsx as
|
|
14431
|
+
import { jsx as jsx67, jsxs as jsxs43 } from "@emotion/react/jsx-runtime";
|
|
14268
14432
|
var IntegrationComingSoon = ({
|
|
14269
14433
|
name,
|
|
14270
14434
|
icon,
|
|
@@ -14293,9 +14457,9 @@ var IntegrationComingSoon = ({
|
|
|
14293
14457
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
14294
14458
|
...props,
|
|
14295
14459
|
children: [
|
|
14296
|
-
/* @__PURE__ */
|
|
14297
|
-
/* @__PURE__ */
|
|
14298
|
-
/* @__PURE__ */
|
|
14460
|
+
/* @__PURE__ */ jsx67(IntegrationComingSoonBadge, {}),
|
|
14461
|
+
/* @__PURE__ */ jsx67(ResolveIcon, { icon, name }),
|
|
14462
|
+
/* @__PURE__ */ jsx67("span", { css: IntegrationTileName, title: name, children: name }),
|
|
14299
14463
|
/* @__PURE__ */ jsxs43(
|
|
14300
14464
|
Button,
|
|
14301
14465
|
{
|
|
@@ -14306,11 +14470,11 @@ var IntegrationComingSoon = ({
|
|
|
14306
14470
|
role: "link",
|
|
14307
14471
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
14308
14472
|
children: [
|
|
14309
|
-
/* @__PURE__ */
|
|
14310
|
-
/* @__PURE__ */
|
|
14473
|
+
/* @__PURE__ */ jsx67("strong", { children: "+1" }),
|
|
14474
|
+
/* @__PURE__ */ jsx67(
|
|
14311
14475
|
"span",
|
|
14312
14476
|
{
|
|
14313
|
-
css:
|
|
14477
|
+
css: css55`
|
|
14314
14478
|
text-transform: uppercase;
|
|
14315
14479
|
color: var(--gray-500);
|
|
14316
14480
|
`,
|
|
@@ -14318,7 +14482,7 @@ var IntegrationComingSoon = ({
|
|
|
14318
14482
|
}
|
|
14319
14483
|
),
|
|
14320
14484
|
/* @__PURE__ */ jsxs43("span", { "aria-hidden": !upVote, children: [
|
|
14321
|
-
/* @__PURE__ */
|
|
14485
|
+
/* @__PURE__ */ jsx67(Icon, { icon: CgHeart, iconColor: "currentColor", size: 18 }),
|
|
14322
14486
|
"Thanks!"
|
|
14323
14487
|
] })
|
|
14324
14488
|
]
|
|
@@ -14330,8 +14494,8 @@ var IntegrationComingSoon = ({
|
|
|
14330
14494
|
};
|
|
14331
14495
|
|
|
14332
14496
|
// src/components/Tiles/styles/IntegrationLoadingTile.styles.ts
|
|
14333
|
-
import { css as
|
|
14334
|
-
var IntegrationLoadingTileContainer =
|
|
14497
|
+
import { css as css56 } from "@emotion/react";
|
|
14498
|
+
var IntegrationLoadingTileContainer = css56`
|
|
14335
14499
|
align-items: center;
|
|
14336
14500
|
box-sizing: border-box;
|
|
14337
14501
|
border-radius: var(--rounded-base);
|
|
@@ -14358,39 +14522,39 @@ var IntegrationLoadingTileContainer = css55`
|
|
|
14358
14522
|
}
|
|
14359
14523
|
}
|
|
14360
14524
|
`;
|
|
14361
|
-
var IntegrationLoadingTileImg =
|
|
14525
|
+
var IntegrationLoadingTileImg = css56`
|
|
14362
14526
|
width: 10rem;
|
|
14363
14527
|
height: 4rem;
|
|
14364
14528
|
margin: 0 auto;
|
|
14365
14529
|
`;
|
|
14366
|
-
var IntegrationLoadingTileText =
|
|
14530
|
+
var IntegrationLoadingTileText = css56`
|
|
14367
14531
|
width: 5rem;
|
|
14368
14532
|
height: var(--spacing-sm);
|
|
14369
14533
|
margin: var(--spacing-sm) 0;
|
|
14370
14534
|
`;
|
|
14371
|
-
var IntegrationLoadingFrame =
|
|
14535
|
+
var IntegrationLoadingFrame = css56`
|
|
14372
14536
|
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
14373
14537
|
border-radius: var(--rounded-base);
|
|
14374
14538
|
`;
|
|
14375
14539
|
|
|
14376
14540
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
14377
|
-
import { Fragment as Fragment9, jsx as
|
|
14541
|
+
import { Fragment as Fragment9, jsx as jsx68, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
14378
14542
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
14379
14543
|
const componentCount = Array.from(Array(count).keys());
|
|
14380
|
-
return /* @__PURE__ */
|
|
14381
|
-
/* @__PURE__ */
|
|
14382
|
-
/* @__PURE__ */
|
|
14544
|
+
return /* @__PURE__ */ jsx68(Fragment9, { children: componentCount.map((i) => /* @__PURE__ */ jsxs44("div", { css: IntegrationLoadingTileContainer, children: [
|
|
14545
|
+
/* @__PURE__ */ jsx68("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
14546
|
+
/* @__PURE__ */ jsx68("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
14383
14547
|
] }, i)) });
|
|
14384
14548
|
};
|
|
14385
14549
|
|
|
14386
14550
|
// src/components/Tiles/styles/IntegrationModalIcon.styles.ts
|
|
14387
|
-
import { css as
|
|
14388
|
-
var IntegrationModalIconContainer =
|
|
14551
|
+
import { css as css57 } from "@emotion/react";
|
|
14552
|
+
var IntegrationModalIconContainer = css57`
|
|
14389
14553
|
position: relative;
|
|
14390
14554
|
width: 50px;
|
|
14391
14555
|
margin-bottom: var(--spacing-base);
|
|
14392
14556
|
`;
|
|
14393
|
-
var IntegrationModalImage =
|
|
14557
|
+
var IntegrationModalImage = css57`
|
|
14394
14558
|
position: absolute;
|
|
14395
14559
|
inset: 0;
|
|
14396
14560
|
margin: auto;
|
|
@@ -14399,7 +14563,7 @@ var IntegrationModalImage = css56`
|
|
|
14399
14563
|
`;
|
|
14400
14564
|
|
|
14401
14565
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
14402
|
-
import { jsx as
|
|
14566
|
+
import { jsx as jsx69, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
|
|
14403
14567
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
14404
14568
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
14405
14569
|
let iconSrc = void 0;
|
|
@@ -14417,7 +14581,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
14417
14581
|
}
|
|
14418
14582
|
return /* @__PURE__ */ jsxs45("div", { css: IntegrationModalIconContainer, children: [
|
|
14419
14583
|
/* @__PURE__ */ jsxs45("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
14420
|
-
/* @__PURE__ */
|
|
14584
|
+
/* @__PURE__ */ jsx69(
|
|
14421
14585
|
"path",
|
|
14422
14586
|
{
|
|
14423
14587
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -14426,17 +14590,17 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
14426
14590
|
strokeWidth: "2"
|
|
14427
14591
|
}
|
|
14428
14592
|
),
|
|
14429
|
-
/* @__PURE__ */
|
|
14430
|
-
/* @__PURE__ */
|
|
14431
|
-
/* @__PURE__ */
|
|
14593
|
+
/* @__PURE__ */ jsx69("defs", { children: /* @__PURE__ */ jsxs45("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
14594
|
+
/* @__PURE__ */ jsx69("stop", { stopColor: "#1768B2" }),
|
|
14595
|
+
/* @__PURE__ */ jsx69("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
14432
14596
|
] }) })
|
|
14433
14597
|
] }),
|
|
14434
|
-
CompIcon ? /* @__PURE__ */
|
|
14598
|
+
CompIcon ? /* @__PURE__ */ jsx69(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : iconSrc ? /* @__PURE__ */ jsx69(
|
|
14435
14599
|
"img",
|
|
14436
14600
|
{
|
|
14437
14601
|
src: iconSrc,
|
|
14438
14602
|
alt: name,
|
|
14439
|
-
"data-
|
|
14603
|
+
"data-testid": "integration-modal-icon",
|
|
14440
14604
|
css: IntegrationModalImage,
|
|
14441
14605
|
...imgProps
|
|
14442
14606
|
}
|
|
@@ -14445,7 +14609,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
14445
14609
|
};
|
|
14446
14610
|
|
|
14447
14611
|
// src/components/Tiles/IntegrationTile.tsx
|
|
14448
|
-
import { jsx as
|
|
14612
|
+
import { jsx as jsx70, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
14449
14613
|
var IntegrationTile = ({
|
|
14450
14614
|
id,
|
|
14451
14615
|
icon,
|
|
@@ -14467,21 +14631,21 @@ var IntegrationTile = ({
|
|
|
14467
14631
|
"aria-label": name,
|
|
14468
14632
|
...btnProps,
|
|
14469
14633
|
children: [
|
|
14470
|
-
/* @__PURE__ */
|
|
14471
|
-
/* @__PURE__ */
|
|
14472
|
-
isInstalled ? /* @__PURE__ */
|
|
14473
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */
|
|
14474
|
-
!isPublic ? /* @__PURE__ */
|
|
14475
|
-
authorIcon ? /* @__PURE__ */
|
|
14634
|
+
/* @__PURE__ */ jsx70(ResolveIcon, { icon, name }),
|
|
14635
|
+
/* @__PURE__ */ jsx70("span", { css: IntegrationTileName, title: name, children: name }),
|
|
14636
|
+
isInstalled ? /* @__PURE__ */ jsx70(IntegrationedAddedBadge, {}) : null,
|
|
14637
|
+
requiedEntitlement && isPublic ? /* @__PURE__ */ jsx70(IntegrationPremiumBadge, {}) : null,
|
|
14638
|
+
!isPublic ? /* @__PURE__ */ jsx70(IntegrationCustomBadge, {}) : null,
|
|
14639
|
+
authorIcon ? /* @__PURE__ */ jsx70(ResolveIcon, { icon: authorIcon, name }) : null
|
|
14476
14640
|
]
|
|
14477
14641
|
}
|
|
14478
14642
|
);
|
|
14479
14643
|
};
|
|
14480
14644
|
|
|
14481
14645
|
// src/components/Tiles/styles/Tile.styles.ts
|
|
14482
|
-
import { css as
|
|
14646
|
+
import { css as css58 } from "@emotion/react";
|
|
14483
14647
|
var tileBorderSize = "1px";
|
|
14484
|
-
var Tile =
|
|
14648
|
+
var Tile = css58`
|
|
14485
14649
|
background: var(--white);
|
|
14486
14650
|
cursor: pointer;
|
|
14487
14651
|
border: ${tileBorderSize} solid var(--gray-300);
|
|
@@ -14505,18 +14669,18 @@ var Tile = css57`
|
|
|
14505
14669
|
`;
|
|
14506
14670
|
|
|
14507
14671
|
// src/components/Tiles/Tile.tsx
|
|
14508
|
-
import { jsx as
|
|
14672
|
+
import { jsx as jsx71 } from "@emotion/react/jsx-runtime";
|
|
14509
14673
|
var Tile2 = ({ children, disabled, ...props }) => {
|
|
14510
|
-
return /* @__PURE__ */
|
|
14674
|
+
return /* @__PURE__ */ jsx71("button", { type: "button", css: Tile, disabled, ...props, children });
|
|
14511
14675
|
};
|
|
14512
14676
|
|
|
14513
14677
|
// src/components/Tiles/styles/TileContainer.styles.ts
|
|
14514
|
-
import { css as
|
|
14515
|
-
var TileContainerWrapper = (theme, padding) =>
|
|
14678
|
+
import { css as css59 } from "@emotion/react";
|
|
14679
|
+
var TileContainerWrapper = (theme, padding) => css59`
|
|
14516
14680
|
background: ${theme};
|
|
14517
14681
|
padding: ${padding != "none" ? `var(--spacing-${padding})` : "0"};
|
|
14518
14682
|
`;
|
|
14519
|
-
var TileContainerInner = (gap, templateColumns) =>
|
|
14683
|
+
var TileContainerInner = (gap, templateColumns) => css59`
|
|
14520
14684
|
display: grid;
|
|
14521
14685
|
grid-template-columns: ${templateColumns};
|
|
14522
14686
|
gap: var(--spacing-${gap});
|
|
@@ -14530,7 +14694,7 @@ var TileContainerInner = (gap, templateColumns) => css58`
|
|
|
14530
14694
|
`;
|
|
14531
14695
|
|
|
14532
14696
|
// src/components/Tiles/TileContainer.tsx
|
|
14533
|
-
import { jsx as
|
|
14697
|
+
import { jsx as jsx72 } from "@emotion/react/jsx-runtime";
|
|
14534
14698
|
var TileContainer = ({
|
|
14535
14699
|
bgColor = "var(--brand-secondary-2)",
|
|
14536
14700
|
containerPadding = "base",
|
|
@@ -14539,25 +14703,25 @@ var TileContainer = ({
|
|
|
14539
14703
|
children,
|
|
14540
14704
|
...props
|
|
14541
14705
|
}) => {
|
|
14542
|
-
return /* @__PURE__ */
|
|
14706
|
+
return /* @__PURE__ */ jsx72("div", { css: TileContainerWrapper(bgColor, containerPadding), ...props, children: /* @__PURE__ */ jsx72("div", { css: TileContainerInner(gap, gridTemplateColumns), children }) });
|
|
14543
14707
|
};
|
|
14544
14708
|
|
|
14545
14709
|
// src/components/Tiles/styles/TileText.styles.ts
|
|
14546
|
-
import { css as
|
|
14547
|
-
var TileHeading =
|
|
14710
|
+
import { css as css60 } from "@emotion/react";
|
|
14711
|
+
var TileHeading = css60`
|
|
14548
14712
|
font-size: var(--fs-base);
|
|
14549
14713
|
`;
|
|
14550
|
-
var TileText =
|
|
14714
|
+
var TileText = css60`
|
|
14551
14715
|
color: var(--gray-500);
|
|
14552
14716
|
font-size: var(--fs-sm);
|
|
14553
14717
|
line-height: 1.2;
|
|
14554
14718
|
`;
|
|
14555
14719
|
|
|
14556
14720
|
// src/components/Tiles/TileText.tsx
|
|
14557
|
-
import { jsx as
|
|
14721
|
+
import { jsx as jsx73 } from "@emotion/react/jsx-runtime";
|
|
14558
14722
|
var TileText2 = ({ as = "heading", children, ...props }) => {
|
|
14559
14723
|
const isHeading = as === "heading";
|
|
14560
|
-
return /* @__PURE__ */
|
|
14724
|
+
return /* @__PURE__ */ jsx73(
|
|
14561
14725
|
"span",
|
|
14562
14726
|
{
|
|
14563
14727
|
role: isHeading ? "heading" : void 0,
|
|
@@ -14569,37 +14733,37 @@ var TileText2 = ({ as = "heading", children, ...props }) => {
|
|
|
14569
14733
|
};
|
|
14570
14734
|
|
|
14571
14735
|
// src/components/IntegrationModalHeader/IntegrationModalHeader.styles.ts
|
|
14572
|
-
import { css as
|
|
14573
|
-
var IntegrationModalHeaderSVGBackground =
|
|
14736
|
+
import { css as css61 } from "@emotion/react";
|
|
14737
|
+
var IntegrationModalHeaderSVGBackground = css61`
|
|
14574
14738
|
position: absolute;
|
|
14575
14739
|
top: 0;
|
|
14576
14740
|
left: 0;
|
|
14577
14741
|
`;
|
|
14578
|
-
var IntegrationModalHeaderGroup =
|
|
14742
|
+
var IntegrationModalHeaderGroup = css61`
|
|
14579
14743
|
align-items: center;
|
|
14580
14744
|
display: flex;
|
|
14581
14745
|
gap: var(--spacing-sm);
|
|
14582
14746
|
margin: 0 0 var(--spacing-md);
|
|
14583
14747
|
position: relative;
|
|
14584
14748
|
`;
|
|
14585
|
-
var IntegrationModalHeaderTitleGroup =
|
|
14749
|
+
var IntegrationModalHeaderTitleGroup = css61`
|
|
14586
14750
|
align-items: center;
|
|
14587
14751
|
display: flex;
|
|
14588
14752
|
gap: var(--spacing-base);
|
|
14589
14753
|
`;
|
|
14590
|
-
var IntegrationModalHeaderTitle =
|
|
14754
|
+
var IntegrationModalHeaderTitle = css61`
|
|
14591
14755
|
margin-top: 0;
|
|
14592
14756
|
`;
|
|
14593
|
-
var IntegrationModalHeaderMenuPlacement =
|
|
14757
|
+
var IntegrationModalHeaderMenuPlacement = css61`
|
|
14594
14758
|
margin-bottom: var(--spacing-base);
|
|
14595
14759
|
`;
|
|
14596
|
-
var IntegrationModalHeaderContentWrapper =
|
|
14760
|
+
var IntegrationModalHeaderContentWrapper = css61`
|
|
14597
14761
|
position: relative;
|
|
14598
14762
|
z-index: var(--z-10);
|
|
14599
14763
|
`;
|
|
14600
14764
|
|
|
14601
14765
|
// src/components/IntegrationModalHeader/IntegrationModalHeader.tsx
|
|
14602
|
-
import { Fragment as Fragment10, jsx as
|
|
14766
|
+
import { Fragment as Fragment10, jsx as jsx74, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
14603
14767
|
var HexModalBackground = ({ ...props }) => {
|
|
14604
14768
|
return /* @__PURE__ */ jsxs47(
|
|
14605
14769
|
"svg",
|
|
@@ -14611,7 +14775,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14611
14775
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14612
14776
|
...props,
|
|
14613
14777
|
children: [
|
|
14614
|
-
/* @__PURE__ */
|
|
14778
|
+
/* @__PURE__ */ jsx74(
|
|
14615
14779
|
"path",
|
|
14616
14780
|
{
|
|
14617
14781
|
fillRule: "evenodd",
|
|
@@ -14620,7 +14784,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14620
14784
|
fill: "url(#paint0_linear_196_2737)"
|
|
14621
14785
|
}
|
|
14622
14786
|
),
|
|
14623
|
-
/* @__PURE__ */
|
|
14787
|
+
/* @__PURE__ */ jsx74("defs", { children: /* @__PURE__ */ jsxs47(
|
|
14624
14788
|
"linearGradient",
|
|
14625
14789
|
{
|
|
14626
14790
|
id: "paint0_linear_196_2737",
|
|
@@ -14630,8 +14794,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14630
14794
|
y2: "-95.2742",
|
|
14631
14795
|
gradientUnits: "userSpaceOnUse",
|
|
14632
14796
|
children: [
|
|
14633
|
-
/* @__PURE__ */
|
|
14634
|
-
/* @__PURE__ */
|
|
14797
|
+
/* @__PURE__ */ jsx74("stop", { stopColor: "#81DCDE" }),
|
|
14798
|
+
/* @__PURE__ */ jsx74("stop", { offset: "1", stopColor: "#428ED4" })
|
|
14635
14799
|
]
|
|
14636
14800
|
}
|
|
14637
14801
|
) })
|
|
@@ -14641,22 +14805,22 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14641
14805
|
};
|
|
14642
14806
|
var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
14643
14807
|
return /* @__PURE__ */ jsxs47(Fragment10, { children: [
|
|
14644
|
-
/* @__PURE__ */
|
|
14645
|
-
/* @__PURE__ */
|
|
14646
|
-
icon ? /* @__PURE__ */
|
|
14647
|
-
/* @__PURE__ */
|
|
14808
|
+
/* @__PURE__ */ jsx74(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
14809
|
+
/* @__PURE__ */ jsx74("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs47("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
14810
|
+
icon ? /* @__PURE__ */ jsx74(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
14811
|
+
/* @__PURE__ */ jsx74(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-testid": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
14648
14812
|
menu2 ? /* @__PURE__ */ jsxs47("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
14649
14813
|
menu2,
|
|
14650
14814
|
" "
|
|
14651
14815
|
] }) : null
|
|
14652
14816
|
] }) }),
|
|
14653
|
-
/* @__PURE__ */
|
|
14817
|
+
/* @__PURE__ */ jsx74("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
14654
14818
|
] });
|
|
14655
14819
|
};
|
|
14656
14820
|
|
|
14657
14821
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
14658
14822
|
import MonacoEditor from "@monaco-editor/react";
|
|
14659
|
-
import { jsx as
|
|
14823
|
+
import { jsx as jsx75 } from "@emotion/react/jsx-runtime";
|
|
14660
14824
|
var minEditorHeightPx = 150;
|
|
14661
14825
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
14662
14826
|
let effectiveHeight = height;
|
|
@@ -14666,7 +14830,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
14666
14830
|
if (typeof effectiveHeight === "number" && effectiveHeight < minEditorHeightPx) {
|
|
14667
14831
|
effectiveHeight = minEditorHeightPx;
|
|
14668
14832
|
}
|
|
14669
|
-
return /* @__PURE__ */
|
|
14833
|
+
return /* @__PURE__ */ jsx75(
|
|
14670
14834
|
MonacoEditor,
|
|
14671
14835
|
{
|
|
14672
14836
|
height: effectiveHeight,
|
|
@@ -14703,39 +14867,39 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
14703
14867
|
};
|
|
14704
14868
|
|
|
14705
14869
|
// src/components/LimitsBar/LimitsBar.styles.ts
|
|
14706
|
-
import { css as
|
|
14707
|
-
var LimitsBarContainer =
|
|
14870
|
+
import { css as css62 } from "@emotion/react";
|
|
14871
|
+
var LimitsBarContainer = css62`
|
|
14708
14872
|
margin-block: var(--spacing-sm);
|
|
14709
14873
|
`;
|
|
14710
|
-
var LimitsBarProgressBar =
|
|
14874
|
+
var LimitsBarProgressBar = css62`
|
|
14711
14875
|
background: var(--gray-100);
|
|
14712
14876
|
margin-top: var(--spacing-sm);
|
|
14713
14877
|
position: relative;
|
|
14714
14878
|
overflow: hidden;
|
|
14715
14879
|
height: 0.25rem;
|
|
14716
14880
|
`;
|
|
14717
|
-
var LimitsBarProgressBarLine =
|
|
14881
|
+
var LimitsBarProgressBarLine = css62`
|
|
14718
14882
|
position: absolute;
|
|
14719
14883
|
inset: 0;
|
|
14720
14884
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
14721
14885
|
`;
|
|
14722
|
-
var LimitsBarLabelContainer =
|
|
14886
|
+
var LimitsBarLabelContainer = css62`
|
|
14723
14887
|
display: flex;
|
|
14724
14888
|
justify-content: space-between;
|
|
14725
14889
|
font-weight: var(--fw-bold);
|
|
14726
14890
|
`;
|
|
14727
|
-
var LimitsBarLabel =
|
|
14891
|
+
var LimitsBarLabel = css62`
|
|
14728
14892
|
font-size: var(--fs-baase);
|
|
14729
14893
|
`;
|
|
14730
|
-
var LimitsBarBgColor = (statusColor) =>
|
|
14894
|
+
var LimitsBarBgColor = (statusColor) => css62`
|
|
14731
14895
|
background: ${statusColor};
|
|
14732
14896
|
`;
|
|
14733
|
-
var LimitsBarTextColor = (statusColor) =>
|
|
14897
|
+
var LimitsBarTextColor = (statusColor) => css62`
|
|
14734
14898
|
color: ${statusColor};
|
|
14735
14899
|
`;
|
|
14736
14900
|
|
|
14737
14901
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
14738
|
-
import { jsx as
|
|
14902
|
+
import { jsx as jsx76, jsxs as jsxs48 } from "@emotion/react/jsx-runtime";
|
|
14739
14903
|
var LimitsBar = ({ current, max, label }) => {
|
|
14740
14904
|
const maxPercentage = 100;
|
|
14741
14905
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -14748,14 +14912,14 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
14748
14912
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
14749
14913
|
return /* @__PURE__ */ jsxs48("div", { css: LimitsBarContainer, children: [
|
|
14750
14914
|
/* @__PURE__ */ jsxs48("div", { css: LimitsBarLabelContainer, children: [
|
|
14751
|
-
/* @__PURE__ */
|
|
14915
|
+
/* @__PURE__ */ jsx76("span", { css: LimitsBarLabel, children: label }),
|
|
14752
14916
|
/* @__PURE__ */ jsxs48("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
14753
14917
|
current,
|
|
14754
14918
|
" of ",
|
|
14755
14919
|
max
|
|
14756
14920
|
] })
|
|
14757
14921
|
] }),
|
|
14758
|
-
/* @__PURE__ */
|
|
14922
|
+
/* @__PURE__ */ jsx76(
|
|
14759
14923
|
"div",
|
|
14760
14924
|
{
|
|
14761
14925
|
role: "progressbar",
|
|
@@ -14764,7 +14928,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
14764
14928
|
"aria-valuemax": max,
|
|
14765
14929
|
"aria-valuetext": `${current} of ${max}`,
|
|
14766
14930
|
css: LimitsBarProgressBar,
|
|
14767
|
-
children: /* @__PURE__ */
|
|
14931
|
+
children: /* @__PURE__ */ jsx76(
|
|
14768
14932
|
"span",
|
|
14769
14933
|
{
|
|
14770
14934
|
role: "presentation",
|
|
@@ -14780,8 +14944,8 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
14780
14944
|
};
|
|
14781
14945
|
|
|
14782
14946
|
// src/components/LinkList/LinkList.styles.ts
|
|
14783
|
-
import { css as
|
|
14784
|
-
var LinkListContainer = (padding) =>
|
|
14947
|
+
import { css as css63 } from "@emotion/react";
|
|
14948
|
+
var LinkListContainer = (padding) => css63`
|
|
14785
14949
|
padding: ${padding};
|
|
14786
14950
|
|
|
14787
14951
|
${mq("sm")} {
|
|
@@ -14789,30 +14953,30 @@ var LinkListContainer = (padding) => css62`
|
|
|
14789
14953
|
grid-row: 1 / last-line;
|
|
14790
14954
|
}
|
|
14791
14955
|
`;
|
|
14792
|
-
var LinkListTitle =
|
|
14956
|
+
var LinkListTitle = css63`
|
|
14793
14957
|
font-weight: var(--fw-bold);
|
|
14794
14958
|
font-size: var(--fs-sm);
|
|
14795
14959
|
text-transform: uppercase;
|
|
14796
14960
|
`;
|
|
14797
14961
|
|
|
14798
14962
|
// src/components/LinkList/LinkList.tsx
|
|
14799
|
-
import { jsx as
|
|
14963
|
+
import { jsx as jsx77, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
14800
14964
|
var LinkList = ({ title, padding = "var(--spacing-md)", children, ...props }) => {
|
|
14801
14965
|
return /* @__PURE__ */ jsxs49("div", { css: LinkListContainer(padding), ...props, children: [
|
|
14802
|
-
/* @__PURE__ */
|
|
14966
|
+
/* @__PURE__ */ jsx77(Heading, { level: 3, css: LinkListTitle, children: title }),
|
|
14803
14967
|
children
|
|
14804
14968
|
] });
|
|
14805
14969
|
};
|
|
14806
14970
|
|
|
14807
14971
|
// src/components/List/ScrollableList.tsx
|
|
14808
|
-
import { css as
|
|
14972
|
+
import { css as css65 } from "@emotion/react";
|
|
14809
14973
|
|
|
14810
14974
|
// src/components/List/styles/ScrollableList.styles.ts
|
|
14811
|
-
import { css as
|
|
14812
|
-
var ScrollableListContainer =
|
|
14975
|
+
import { css as css64 } from "@emotion/react";
|
|
14976
|
+
var ScrollableListContainer = css64`
|
|
14813
14977
|
position: relative;
|
|
14814
14978
|
`;
|
|
14815
|
-
var ScrollableListInner =
|
|
14979
|
+
var ScrollableListInner = css64`
|
|
14816
14980
|
background: var(--gray-50);
|
|
14817
14981
|
border-top: 1px solid var(--gray-200);
|
|
14818
14982
|
border-bottom: 1px solid var(--gray-200);
|
|
@@ -14835,19 +14999,19 @@ var ScrollableListInner = css63`
|
|
|
14835
14999
|
`;
|
|
14836
15000
|
|
|
14837
15001
|
// src/components/List/ScrollableList.tsx
|
|
14838
|
-
import { jsx as
|
|
15002
|
+
import { jsx as jsx78, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
14839
15003
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
14840
15004
|
return /* @__PURE__ */ jsxs50("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
14841
|
-
label ? /* @__PURE__ */
|
|
15005
|
+
label ? /* @__PURE__ */ jsx78(
|
|
14842
15006
|
"span",
|
|
14843
15007
|
{
|
|
14844
|
-
css:
|
|
15008
|
+
css: css65`
|
|
14845
15009
|
${labelText}
|
|
14846
15010
|
`,
|
|
14847
15011
|
children: label
|
|
14848
15012
|
}
|
|
14849
15013
|
) : null,
|
|
14850
|
-
/* @__PURE__ */
|
|
15014
|
+
/* @__PURE__ */ jsx78("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
14851
15015
|
] });
|
|
14852
15016
|
};
|
|
14853
15017
|
|
|
@@ -14855,8 +15019,8 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
14855
15019
|
import { CgCheck as CgCheck2 } from "react-icons/cg";
|
|
14856
15020
|
|
|
14857
15021
|
// src/components/List/styles/ScrollableListItem.styles.ts
|
|
14858
|
-
import { css as
|
|
14859
|
-
var ScrollableListItemContainer =
|
|
15022
|
+
import { css as css66 } from "@emotion/react";
|
|
15023
|
+
var ScrollableListItemContainer = css66`
|
|
14860
15024
|
align-items: center;
|
|
14861
15025
|
background: var(--white);
|
|
14862
15026
|
border-radius: var(--rounded-base);
|
|
@@ -14865,13 +15029,13 @@ var ScrollableListItemContainer = css65`
|
|
|
14865
15029
|
min-height: 52px;
|
|
14866
15030
|
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
14867
15031
|
`;
|
|
14868
|
-
var ScrollableListItemShadow =
|
|
15032
|
+
var ScrollableListItemShadow = css66`
|
|
14869
15033
|
box-shadow: var(--shadow-base);
|
|
14870
15034
|
`;
|
|
14871
|
-
var ScrollableListItemActive =
|
|
15035
|
+
var ScrollableListItemActive = css66`
|
|
14872
15036
|
border-color: var(--brand-secondary-3);
|
|
14873
15037
|
`;
|
|
14874
|
-
var ScrollableListItemBtn =
|
|
15038
|
+
var ScrollableListItemBtn = css66`
|
|
14875
15039
|
align-items: center;
|
|
14876
15040
|
border: none;
|
|
14877
15041
|
background: transparent;
|
|
@@ -14886,27 +15050,27 @@ var ScrollableListItemBtn = css65`
|
|
|
14886
15050
|
outline: none;
|
|
14887
15051
|
}
|
|
14888
15052
|
`;
|
|
14889
|
-
var ScrollableListInputLabel =
|
|
15053
|
+
var ScrollableListInputLabel = css66`
|
|
14890
15054
|
align-items: center;
|
|
14891
15055
|
cursor: pointer;
|
|
14892
15056
|
display: flex;
|
|
14893
15057
|
padding: var(--spacing-xs) var(--spacing-base) var(--spacing-xs);
|
|
14894
15058
|
flex-grow: 1;
|
|
14895
15059
|
`;
|
|
14896
|
-
var ScrollableListInputText =
|
|
15060
|
+
var ScrollableListInputText = css66`
|
|
14897
15061
|
align-items: center;
|
|
14898
15062
|
display: flex;
|
|
14899
15063
|
gap: var(--spacing-sm);
|
|
14900
15064
|
flex-grow: 1;
|
|
14901
15065
|
flex-wrap: wrap;
|
|
14902
15066
|
`;
|
|
14903
|
-
var ScrollableListHiddenInput =
|
|
15067
|
+
var ScrollableListHiddenInput = css66`
|
|
14904
15068
|
position: absolute;
|
|
14905
15069
|
height: 0;
|
|
14906
15070
|
width: 0;
|
|
14907
15071
|
opacity: 0;
|
|
14908
15072
|
`;
|
|
14909
|
-
var ScrollableListIcon =
|
|
15073
|
+
var ScrollableListIcon = css66`
|
|
14910
15074
|
border-radius: var(--rounded-full);
|
|
14911
15075
|
background: var(--brand-secondary-3);
|
|
14912
15076
|
color: var(--white);
|
|
@@ -14914,12 +15078,12 @@ var ScrollableListIcon = css65`
|
|
|
14914
15078
|
min-width: 24px;
|
|
14915
15079
|
opacity: 0;
|
|
14916
15080
|
`;
|
|
14917
|
-
var ScrollableListIconVisible =
|
|
15081
|
+
var ScrollableListIconVisible = css66`
|
|
14918
15082
|
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
14919
15083
|
`;
|
|
14920
15084
|
|
|
14921
15085
|
// src/components/List/ScrollableListInputItem.tsx
|
|
14922
|
-
import { jsx as
|
|
15086
|
+
import { jsx as jsx79, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
14923
15087
|
var ScrollableListInputItem = ({
|
|
14924
15088
|
label,
|
|
14925
15089
|
icon,
|
|
@@ -14929,7 +15093,7 @@ var ScrollableListInputItem = ({
|
|
|
14929
15093
|
labelTestId,
|
|
14930
15094
|
...props
|
|
14931
15095
|
}) => {
|
|
14932
|
-
return /* @__PURE__ */
|
|
15096
|
+
return /* @__PURE__ */ jsx79(
|
|
14933
15097
|
"div",
|
|
14934
15098
|
{
|
|
14935
15099
|
css: [
|
|
@@ -14938,20 +15102,20 @@ var ScrollableListInputItem = ({
|
|
|
14938
15102
|
active ? ScrollableListItemActive : void 0
|
|
14939
15103
|
],
|
|
14940
15104
|
...props,
|
|
14941
|
-
children: /* @__PURE__ */ jsxs51("label", { "data-
|
|
15105
|
+
children: /* @__PURE__ */ jsxs51("label", { "data-testid": labelTestId, css: ScrollableListInputLabel, children: [
|
|
14942
15106
|
/* @__PURE__ */ jsxs51("span", { css: ScrollableListInputText, children: [
|
|
14943
15107
|
icon,
|
|
14944
15108
|
label
|
|
14945
15109
|
] }),
|
|
14946
|
-
/* @__PURE__ */
|
|
14947
|
-
/* @__PURE__ */
|
|
15110
|
+
/* @__PURE__ */ jsx79("div", { css: ScrollableListHiddenInput, children }),
|
|
15111
|
+
/* @__PURE__ */ jsx79(
|
|
14948
15112
|
Icon,
|
|
14949
15113
|
{
|
|
14950
15114
|
icon: CgCheck2,
|
|
14951
15115
|
iconColor: "currentColor",
|
|
14952
15116
|
css: [ScrollableListIcon, active ? ScrollableListIconVisible : void 0],
|
|
14953
15117
|
size: 24,
|
|
14954
|
-
"data-
|
|
15118
|
+
"data-testid": "check-mark",
|
|
14955
15119
|
"data-test-active": active
|
|
14956
15120
|
}
|
|
14957
15121
|
)
|
|
@@ -14962,14 +15126,14 @@ var ScrollableListInputItem = ({
|
|
|
14962
15126
|
|
|
14963
15127
|
// src/components/List/ScrollableListItem.tsx
|
|
14964
15128
|
import { CgCheck as CgCheck3 } from "react-icons/cg";
|
|
14965
|
-
import { jsx as
|
|
15129
|
+
import { jsx as jsx80, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
14966
15130
|
var ScrollableListItem = ({
|
|
14967
15131
|
buttonText,
|
|
14968
15132
|
active,
|
|
14969
15133
|
disableShadow,
|
|
14970
15134
|
...props
|
|
14971
15135
|
}) => {
|
|
14972
|
-
return /* @__PURE__ */
|
|
15136
|
+
return /* @__PURE__ */ jsx80(
|
|
14973
15137
|
"div",
|
|
14974
15138
|
{
|
|
14975
15139
|
css: [
|
|
@@ -14978,8 +15142,8 @@ var ScrollableListItem = ({
|
|
|
14978
15142
|
active ? ScrollableListItemActive : void 0
|
|
14979
15143
|
],
|
|
14980
15144
|
children: /* @__PURE__ */ jsxs52("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
14981
|
-
/* @__PURE__ */
|
|
14982
|
-
/* @__PURE__ */
|
|
15145
|
+
/* @__PURE__ */ jsx80("span", { children: buttonText }),
|
|
15146
|
+
/* @__PURE__ */ jsx80(
|
|
14983
15147
|
Icon,
|
|
14984
15148
|
{
|
|
14985
15149
|
icon: CgCheck3,
|
|
@@ -14994,7 +15158,7 @@ var ScrollableListItem = ({
|
|
|
14994
15158
|
};
|
|
14995
15159
|
|
|
14996
15160
|
// src/components/LoadingIndicator/LoadingIndicator.styles.ts
|
|
14997
|
-
import { css as
|
|
15161
|
+
import { css as css67, keyframes as keyframes3 } from "@emotion/react";
|
|
14998
15162
|
var bounceFade = keyframes3`
|
|
14999
15163
|
0%, 100% {
|
|
15000
15164
|
opacity: 1.0;
|
|
@@ -15012,11 +15176,11 @@ var bounceFade = keyframes3`
|
|
|
15012
15176
|
transform: translateY(-5px);
|
|
15013
15177
|
}
|
|
15014
15178
|
`;
|
|
15015
|
-
var loader =
|
|
15179
|
+
var loader = css67`
|
|
15016
15180
|
display: inline-flex;
|
|
15017
15181
|
justify-content: center;
|
|
15018
15182
|
`;
|
|
15019
|
-
var loadingDot =
|
|
15183
|
+
var loadingDot = css67`
|
|
15020
15184
|
background-color: var(--gray-700);
|
|
15021
15185
|
display: block;
|
|
15022
15186
|
border-radius: var(--rounded-full);
|
|
@@ -15040,12 +15204,12 @@ var loadingDot = css66`
|
|
|
15040
15204
|
`;
|
|
15041
15205
|
|
|
15042
15206
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
15043
|
-
import { jsx as
|
|
15207
|
+
import { jsx as jsx81, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
15044
15208
|
var LoadingIndicator = ({ ...props }) => {
|
|
15045
|
-
return /* @__PURE__ */ jsxs53("div", { role: "alert", css: loader, "data-
|
|
15046
|
-
/* @__PURE__ */
|
|
15047
|
-
/* @__PURE__ */
|
|
15048
|
-
/* @__PURE__ */
|
|
15209
|
+
return /* @__PURE__ */ jsxs53("div", { role: "alert", css: loader, "data-testid": "loading-indicator", ...props, children: [
|
|
15210
|
+
/* @__PURE__ */ jsx81("span", { css: loadingDot }),
|
|
15211
|
+
/* @__PURE__ */ jsx81("span", { css: loadingDot }),
|
|
15212
|
+
/* @__PURE__ */ jsx81("span", { css: loadingDot })
|
|
15049
15213
|
] });
|
|
15050
15214
|
};
|
|
15051
15215
|
|
|
@@ -15053,8 +15217,8 @@ var LoadingIndicator = ({ ...props }) => {
|
|
|
15053
15217
|
import { useCallback as useCallback2, useEffect as useEffect8, useRef as useRef5 } from "react";
|
|
15054
15218
|
|
|
15055
15219
|
// src/components/LoadingOverlay/LoadingOverlay.styles.ts
|
|
15056
|
-
import { css as
|
|
15057
|
-
var loadingOverlayContainer =
|
|
15220
|
+
import { css as css68 } from "@emotion/react";
|
|
15221
|
+
var loadingOverlayContainer = css68`
|
|
15058
15222
|
position: absolute;
|
|
15059
15223
|
inset: 0;
|
|
15060
15224
|
overflow: hidden;
|
|
@@ -15062,30 +15226,30 @@ var loadingOverlayContainer = css67`
|
|
|
15062
15226
|
padding: var(--spacing-xl);
|
|
15063
15227
|
overflow-y: auto;
|
|
15064
15228
|
`;
|
|
15065
|
-
var loadingOverlayVisible =
|
|
15229
|
+
var loadingOverlayVisible = css68`
|
|
15066
15230
|
display: flex;
|
|
15067
15231
|
`;
|
|
15068
|
-
var loadingOverlayHidden =
|
|
15232
|
+
var loadingOverlayHidden = css68`
|
|
15069
15233
|
display: none;
|
|
15070
15234
|
`;
|
|
15071
|
-
var loadingOverlayBackground = (bgColor) =>
|
|
15235
|
+
var loadingOverlayBackground = (bgColor) => css68`
|
|
15072
15236
|
background: ${bgColor};
|
|
15073
15237
|
opacity: 0.92;
|
|
15074
15238
|
position: absolute;
|
|
15075
15239
|
inset: 0 0;
|
|
15076
15240
|
`;
|
|
15077
|
-
var loadingOverlayBody =
|
|
15241
|
+
var loadingOverlayBody = css68`
|
|
15078
15242
|
align-items: center;
|
|
15079
15243
|
display: flex;
|
|
15080
15244
|
flex-direction: column;
|
|
15081
15245
|
`;
|
|
15082
|
-
var loadingOverlayMessage =
|
|
15246
|
+
var loadingOverlayMessage = css68`
|
|
15083
15247
|
color: var(--gray-600);
|
|
15084
15248
|
margin: var(--spacing-base) 0 0;
|
|
15085
15249
|
`;
|
|
15086
15250
|
|
|
15087
15251
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
15088
|
-
import { jsx as
|
|
15252
|
+
import { jsx as jsx82, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
15089
15253
|
var LoadingOverlay = ({
|
|
15090
15254
|
isActive,
|
|
15091
15255
|
statusMessage,
|
|
@@ -15119,9 +15283,9 @@ var LoadingOverlay = ({
|
|
|
15119
15283
|
"aria-hidden": !isActive,
|
|
15120
15284
|
"aria-busy": isActive && !isPaused,
|
|
15121
15285
|
children: [
|
|
15122
|
-
/* @__PURE__ */
|
|
15123
|
-
/* @__PURE__ */
|
|
15124
|
-
/* @__PURE__ */
|
|
15286
|
+
/* @__PURE__ */ jsx82("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
15287
|
+
/* @__PURE__ */ jsx82("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ jsxs54("div", { css: loadingOverlayBody, children: [
|
|
15288
|
+
/* @__PURE__ */ jsx82(
|
|
15125
15289
|
AnimationFile,
|
|
15126
15290
|
{
|
|
15127
15291
|
lottieRef,
|
|
@@ -15136,28 +15300,27 @@ var LoadingOverlay = ({
|
|
|
15136
15300
|
}
|
|
15137
15301
|
}
|
|
15138
15302
|
),
|
|
15139
|
-
statusMessage ? /* @__PURE__ */
|
|
15140
|
-
/* @__PURE__ */
|
|
15303
|
+
statusMessage ? /* @__PURE__ */ jsx82("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
|
|
15304
|
+
/* @__PURE__ */ jsx82("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
|
|
15141
15305
|
] }) })
|
|
15142
15306
|
]
|
|
15143
15307
|
}
|
|
15144
15308
|
);
|
|
15145
15309
|
};
|
|
15146
15310
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
15147
|
-
return /* @__PURE__ */
|
|
15311
|
+
return /* @__PURE__ */ jsx82(
|
|
15148
15312
|
"svg",
|
|
15149
15313
|
{
|
|
15150
|
-
"data-testid": "svg",
|
|
15151
15314
|
viewBox: "0 0 38 38",
|
|
15152
15315
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15153
15316
|
width: width != null ? width : 40,
|
|
15154
15317
|
height: height != null ? height : 40,
|
|
15155
15318
|
stroke: "currentColor",
|
|
15156
15319
|
...props,
|
|
15157
|
-
"data-
|
|
15158
|
-
children: /* @__PURE__ */
|
|
15159
|
-
/* @__PURE__ */
|
|
15160
|
-
/* @__PURE__ */
|
|
15320
|
+
"data-testid": "loading-icon",
|
|
15321
|
+
children: /* @__PURE__ */ jsx82("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs54("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
15322
|
+
/* @__PURE__ */ jsx82("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
15323
|
+
/* @__PURE__ */ jsx82("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ jsx82(
|
|
15161
15324
|
"animateTransform",
|
|
15162
15325
|
{
|
|
15163
15326
|
attributeName: "transform",
|
|
@@ -15178,8 +15341,8 @@ import React19 from "react";
|
|
|
15178
15341
|
import { CgClose as CgClose5 } from "react-icons/cg";
|
|
15179
15342
|
|
|
15180
15343
|
// src/components/Modal/Modal.styles.ts
|
|
15181
|
-
import { css as
|
|
15182
|
-
var modalWrapperStyles =
|
|
15344
|
+
import { css as css69 } from "@emotion/react";
|
|
15345
|
+
var modalWrapperStyles = css69`
|
|
15183
15346
|
position: fixed;
|
|
15184
15347
|
inset: 0;
|
|
15185
15348
|
display: flex;
|
|
@@ -15187,13 +15350,13 @@ var modalWrapperStyles = css68`
|
|
|
15187
15350
|
justify-content: center;
|
|
15188
15351
|
z-index: var(--z-drawer);
|
|
15189
15352
|
`;
|
|
15190
|
-
var modalBackdropStyles =
|
|
15353
|
+
var modalBackdropStyles = css69`
|
|
15191
15354
|
position: absolute;
|
|
15192
15355
|
inset: 0;
|
|
15193
15356
|
background-color: var(--brand-secondary-1);
|
|
15194
15357
|
opacity: 0.4;
|
|
15195
15358
|
`;
|
|
15196
|
-
var modalStyles =
|
|
15359
|
+
var modalStyles = css69`
|
|
15197
15360
|
position: relative;
|
|
15198
15361
|
display: flex;
|
|
15199
15362
|
flex-direction: column;
|
|
@@ -15208,21 +15371,21 @@ var modalStyles = css68`
|
|
|
15208
15371
|
color: unset;
|
|
15209
15372
|
z-index: 1;
|
|
15210
15373
|
`;
|
|
15211
|
-
var modalHeaderStyles =
|
|
15374
|
+
var modalHeaderStyles = css69`
|
|
15212
15375
|
display: flex;
|
|
15213
15376
|
align-items: flex-start;
|
|
15214
15377
|
gap: var(--spacing-base);
|
|
15215
15378
|
font-size: var(--fs-md);
|
|
15216
15379
|
line-height: 1.2;
|
|
15217
15380
|
`;
|
|
15218
|
-
var modalCloseButtonStyles =
|
|
15381
|
+
var modalCloseButtonStyles = css69`
|
|
15219
15382
|
display: block;
|
|
15220
15383
|
padding: 0;
|
|
15221
15384
|
background: transparent;
|
|
15222
15385
|
border: none;
|
|
15223
15386
|
margin-left: auto;
|
|
15224
15387
|
`;
|
|
15225
|
-
var modalContentStyles =
|
|
15388
|
+
var modalContentStyles = css69`
|
|
15226
15389
|
flex: 1;
|
|
15227
15390
|
background-color: white;
|
|
15228
15391
|
padding: var(--spacing-md);
|
|
@@ -15231,7 +15394,7 @@ var modalContentStyles = css68`
|
|
|
15231
15394
|
`;
|
|
15232
15395
|
|
|
15233
15396
|
// src/components/Modal/Modal.tsx
|
|
15234
|
-
import { jsx as
|
|
15397
|
+
import { jsx as jsx83, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
15235
15398
|
var defaultModalWidth = "75rem";
|
|
15236
15399
|
var defaultModalHeight = "51rem";
|
|
15237
15400
|
var Modal = React19.forwardRef(
|
|
@@ -15251,11 +15414,11 @@ var Modal = React19.forwardRef(
|
|
|
15251
15414
|
shortcut: "escape"
|
|
15252
15415
|
});
|
|
15253
15416
|
return /* @__PURE__ */ jsxs55("div", { css: [modalWrapperStyles, wrapperClassName], children: [
|
|
15254
|
-
/* @__PURE__ */
|
|
15417
|
+
/* @__PURE__ */ jsx83("div", { onClick: onRequestClose, css: modalBackdropStyles }),
|
|
15255
15418
|
/* @__PURE__ */ jsxs55("dialog", { ref, css: modalStyles, style: { width, height }, ...modalProps, children: [
|
|
15256
15419
|
/* @__PURE__ */ jsxs55("div", { css: modalHeaderStyles, children: [
|
|
15257
|
-
/* @__PURE__ */
|
|
15258
|
-
/* @__PURE__ */
|
|
15420
|
+
/* @__PURE__ */ jsx83("div", { children: header }),
|
|
15421
|
+
/* @__PURE__ */ jsx83(
|
|
15259
15422
|
Button,
|
|
15260
15423
|
{
|
|
15261
15424
|
type: "button",
|
|
@@ -15263,64 +15426,89 @@ var Modal = React19.forwardRef(
|
|
|
15263
15426
|
css: modalCloseButtonStyles,
|
|
15264
15427
|
title: "Close dialog",
|
|
15265
15428
|
buttonType: "ghost",
|
|
15266
|
-
children: /* @__PURE__ */
|
|
15429
|
+
children: /* @__PURE__ */ jsx83(Icon, { icon: CgClose5, iconColor: "gray", size: 24 })
|
|
15267
15430
|
}
|
|
15268
15431
|
)
|
|
15269
15432
|
] }),
|
|
15270
|
-
/* @__PURE__ */
|
|
15271
|
-
buttonGroup ? /* @__PURE__ */
|
|
15433
|
+
/* @__PURE__ */ jsx83("div", { css: [modalContentStyles, !withoutContentPadding ? null : { padding: 0 }], children }),
|
|
15434
|
+
buttonGroup ? /* @__PURE__ */ jsx83(HorizontalRhythm, { children: buttonGroup }) : null
|
|
15272
15435
|
] })
|
|
15273
15436
|
] });
|
|
15274
15437
|
}
|
|
15275
15438
|
);
|
|
15276
15439
|
Modal.displayName = "Modal";
|
|
15277
15440
|
|
|
15278
|
-
// src/components/ParameterInputs/
|
|
15279
|
-
import {
|
|
15280
|
-
var
|
|
15441
|
+
// src/components/ParameterInputs/hooks/ParameterShellContext.tsx
|
|
15442
|
+
import { createContext as createContext5, useContext as useContext6 } from "react";
|
|
15443
|
+
var ParameterShellContext = createContext5({
|
|
15444
|
+
id: "",
|
|
15445
|
+
label: "",
|
|
15446
|
+
hiddenLabel: void 0,
|
|
15447
|
+
errorMessage: void 0,
|
|
15448
|
+
handleManuallySetErrorMessage: () => {
|
|
15449
|
+
}
|
|
15450
|
+
});
|
|
15451
|
+
var useParameterShell = () => {
|
|
15452
|
+
const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } = useContext6(ParameterShellContext);
|
|
15453
|
+
return {
|
|
15454
|
+
id,
|
|
15455
|
+
label,
|
|
15456
|
+
hiddenLabel,
|
|
15457
|
+
errorMessage,
|
|
15458
|
+
handleManuallySetErrorMessage
|
|
15459
|
+
};
|
|
15460
|
+
};
|
|
15461
|
+
|
|
15462
|
+
// src/components/ParameterInputs/styles/LabelLeadingIcon.styles.ts
|
|
15463
|
+
import { css as css70 } from "@emotion/react";
|
|
15464
|
+
var inputIconBtn = css70`
|
|
15281
15465
|
align-items: center;
|
|
15282
15466
|
border: none;
|
|
15283
15467
|
border-radius: var(--rounded-base);
|
|
15284
15468
|
color: var(--gray-500);
|
|
15285
15469
|
background: none;
|
|
15286
15470
|
display: flex;
|
|
15287
|
-
padding: var(--spacing-2xs);
|
|
15288
15471
|
transition: background var(--duration-fast) var(--timing-ease-out),
|
|
15289
15472
|
color var(--duration-fast) var(--timing-ease-out);
|
|
15290
15473
|
|
|
15291
15474
|
&:hover,
|
|
15292
15475
|
&[aria-pressed='true']:not(:disabled) {
|
|
15293
|
-
|
|
15294
|
-
color: var(--white);
|
|
15476
|
+
color: var(--accent-light-active);
|
|
15295
15477
|
}
|
|
15296
15478
|
|
|
15297
15479
|
&[aria-disabled='true'] {
|
|
15298
15480
|
background: none;
|
|
15299
15481
|
color: currentColor;
|
|
15300
15482
|
}
|
|
15483
|
+
|
|
15484
|
+
&:focus {
|
|
15485
|
+
outline: none;
|
|
15486
|
+
}
|
|
15301
15487
|
`;
|
|
15302
15488
|
|
|
15303
|
-
// src/components/ParameterInputs/
|
|
15304
|
-
import { jsx as
|
|
15305
|
-
var
|
|
15489
|
+
// src/components/ParameterInputs/LabelLeadingIcon.tsx
|
|
15490
|
+
import { jsx as jsx84, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
15491
|
+
var LabelLeadingIcon = ({
|
|
15306
15492
|
icon,
|
|
15307
15493
|
iconColor,
|
|
15308
15494
|
children,
|
|
15309
15495
|
isBound,
|
|
15496
|
+
isActive,
|
|
15310
15497
|
isLocked,
|
|
15498
|
+
title,
|
|
15311
15499
|
...props
|
|
15312
15500
|
}) => {
|
|
15313
|
-
const
|
|
15314
|
-
return /* @__PURE__ */
|
|
15501
|
+
const titleFr = title != null ? title : isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
15502
|
+
return /* @__PURE__ */ jsx84(Tooltip, { title: titleFr, children: /* @__PURE__ */ jsxs56(
|
|
15315
15503
|
"button",
|
|
15316
15504
|
{
|
|
15317
15505
|
css: inputIconBtn,
|
|
15318
15506
|
type: "button",
|
|
15319
|
-
"aria-pressed": isBound,
|
|
15507
|
+
"aria-pressed": isActive || isBound,
|
|
15320
15508
|
"aria-disabled": isLocked,
|
|
15321
15509
|
...props,
|
|
15322
15510
|
children: [
|
|
15323
|
-
/* @__PURE__ */
|
|
15511
|
+
/* @__PURE__ */ jsx84(
|
|
15324
15512
|
Icon,
|
|
15325
15513
|
{
|
|
15326
15514
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -15333,31 +15521,11 @@ var ConnectToDataElementButton = ({
|
|
|
15333
15521
|
}
|
|
15334
15522
|
) });
|
|
15335
15523
|
};
|
|
15336
|
-
|
|
15337
|
-
// src/components/ParameterInputs/hooks/ParameterShellContext.tsx
|
|
15338
|
-
import { createContext as createContext5, useContext as useContext6 } from "react";
|
|
15339
|
-
var ParameterShellContext = createContext5({
|
|
15340
|
-
id: "",
|
|
15341
|
-
label: "",
|
|
15342
|
-
hiddenLabel: void 0,
|
|
15343
|
-
errorMessage: void 0,
|
|
15344
|
-
handleManuallySetErrorMessage: () => {
|
|
15345
|
-
}
|
|
15346
|
-
});
|
|
15347
|
-
var useParameterShell = () => {
|
|
15348
|
-
const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } = useContext6(ParameterShellContext);
|
|
15349
|
-
return {
|
|
15350
|
-
id,
|
|
15351
|
-
label,
|
|
15352
|
-
hiddenLabel,
|
|
15353
|
-
errorMessage,
|
|
15354
|
-
handleManuallySetErrorMessage
|
|
15355
|
-
};
|
|
15356
|
-
};
|
|
15524
|
+
var ConnectToDataElementButton = LabelLeadingIcon;
|
|
15357
15525
|
|
|
15358
15526
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
15359
|
-
import { css as
|
|
15360
|
-
var inputContainer2 =
|
|
15527
|
+
import { css as css71 } from "@emotion/react";
|
|
15528
|
+
var inputContainer2 = css71`
|
|
15361
15529
|
position: relative;
|
|
15362
15530
|
|
|
15363
15531
|
&:hover,
|
|
@@ -15369,14 +15537,14 @@ var inputContainer2 = css70`
|
|
|
15369
15537
|
}
|
|
15370
15538
|
}
|
|
15371
15539
|
`;
|
|
15372
|
-
var labelText2 =
|
|
15540
|
+
var labelText2 = css71`
|
|
15373
15541
|
align-items: center;
|
|
15374
15542
|
display: flex;
|
|
15375
15543
|
gap: var(--spacing-xs);
|
|
15376
15544
|
font-weight: var(--fw-regular);
|
|
15377
15545
|
margin: 0 0 var(--spacing-xs);
|
|
15378
15546
|
`;
|
|
15379
|
-
var input2 =
|
|
15547
|
+
var input2 = css71`
|
|
15380
15548
|
display: block;
|
|
15381
15549
|
appearance: none;
|
|
15382
15550
|
box-sizing: border-box;
|
|
@@ -15420,18 +15588,18 @@ var input2 = css70`
|
|
|
15420
15588
|
color: var(--gray-400);
|
|
15421
15589
|
}
|
|
15422
15590
|
`;
|
|
15423
|
-
var selectInput =
|
|
15591
|
+
var selectInput = css71`
|
|
15424
15592
|
background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath d='M6.34317 7.75732L4.92896 9.17154L12 16.2426L19.0711 9.17157L17.6569 7.75735L12 13.4142L6.34317 7.75732Z' fill='currentColor' /%3E%3C/svg%3E");
|
|
15425
15593
|
background-position: right var(--spacing-sm) center;
|
|
15426
15594
|
background-repeat: no-repeat;
|
|
15427
15595
|
background-size: 1rem;
|
|
15428
15596
|
padding-right: var(--spacing-xl);
|
|
15429
15597
|
`;
|
|
15430
|
-
var inputWrapper =
|
|
15598
|
+
var inputWrapper = css71`
|
|
15431
15599
|
display: flex; // used to correct overflow with chrome textarea
|
|
15432
15600
|
position: relative;
|
|
15433
15601
|
`;
|
|
15434
|
-
var inputIcon2 =
|
|
15602
|
+
var inputIcon2 = css71`
|
|
15435
15603
|
align-items: center;
|
|
15436
15604
|
background: var(--white);
|
|
15437
15605
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -15447,7 +15615,7 @@ var inputIcon2 = css70`
|
|
|
15447
15615
|
width: var(--spacing-lg);
|
|
15448
15616
|
z-index: var(--z-10);
|
|
15449
15617
|
`;
|
|
15450
|
-
var inputToggleLabel2 =
|
|
15618
|
+
var inputToggleLabel2 = css71`
|
|
15451
15619
|
align-items: center;
|
|
15452
15620
|
background: var(--white);
|
|
15453
15621
|
cursor: pointer;
|
|
@@ -15458,7 +15626,7 @@ var inputToggleLabel2 = css70`
|
|
|
15458
15626
|
min-height: var(--spacing-md);
|
|
15459
15627
|
position: relative;
|
|
15460
15628
|
`;
|
|
15461
|
-
var toggleInput2 =
|
|
15629
|
+
var toggleInput2 = css71`
|
|
15462
15630
|
appearance: none;
|
|
15463
15631
|
border: 1px solid var(--gray-300);
|
|
15464
15632
|
background: var(--white);
|
|
@@ -15497,7 +15665,7 @@ var toggleInput2 = css70`
|
|
|
15497
15665
|
border-color: var(--gray-300);
|
|
15498
15666
|
}
|
|
15499
15667
|
`;
|
|
15500
|
-
var inlineLabel2 =
|
|
15668
|
+
var inlineLabel2 = css71`
|
|
15501
15669
|
padding-left: var(--spacing-lg);
|
|
15502
15670
|
font-size: var(--fs-sm);
|
|
15503
15671
|
font-weight: var(--fw-regular);
|
|
@@ -15513,7 +15681,7 @@ var inlineLabel2 = css70`
|
|
|
15513
15681
|
}
|
|
15514
15682
|
}
|
|
15515
15683
|
`;
|
|
15516
|
-
var inputMenu =
|
|
15684
|
+
var inputMenu = css71`
|
|
15517
15685
|
background: none;
|
|
15518
15686
|
border: none;
|
|
15519
15687
|
padding: var(--spacing-2xs);
|
|
@@ -15529,14 +15697,14 @@ var inputMenu = css70`
|
|
|
15529
15697
|
background-color: var(--gray-200);
|
|
15530
15698
|
}
|
|
15531
15699
|
`;
|
|
15532
|
-
var textarea2 =
|
|
15700
|
+
var textarea2 = css71`
|
|
15533
15701
|
resize: vertical;
|
|
15534
15702
|
min-height: 2rem;
|
|
15535
15703
|
`;
|
|
15536
|
-
var imageWrapper =
|
|
15704
|
+
var imageWrapper = css71`
|
|
15537
15705
|
background: var(--white);
|
|
15538
15706
|
`;
|
|
15539
|
-
var img =
|
|
15707
|
+
var img = css71`
|
|
15540
15708
|
animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
15541
15709
|
object-fit: contain;
|
|
15542
15710
|
max-width: 100%;
|
|
@@ -15544,7 +15712,7 @@ var img = css70`
|
|
|
15544
15712
|
opacity: var(--opacity-0);
|
|
15545
15713
|
margin: var(--spacing-sm) auto 0;
|
|
15546
15714
|
`;
|
|
15547
|
-
var dataConnectButton =
|
|
15715
|
+
var dataConnectButton = css71`
|
|
15548
15716
|
align-items: center;
|
|
15549
15717
|
appearance: none;
|
|
15550
15718
|
box-sizing: border-box;
|
|
@@ -15579,7 +15747,7 @@ var dataConnectButton = css70`
|
|
|
15579
15747
|
pointer-events: none;
|
|
15580
15748
|
}
|
|
15581
15749
|
`;
|
|
15582
|
-
var linkParameterBtn =
|
|
15750
|
+
var linkParameterBtn = css71`
|
|
15583
15751
|
border-radius: var(--rounded-base);
|
|
15584
15752
|
background: var(--white);
|
|
15585
15753
|
border: none;
|
|
@@ -15588,7 +15756,7 @@ var linkParameterBtn = css70`
|
|
|
15588
15756
|
font-size: var(--fs-sm);
|
|
15589
15757
|
line-height: 1;
|
|
15590
15758
|
`;
|
|
15591
|
-
var linkParameterControls =
|
|
15759
|
+
var linkParameterControls = css71`
|
|
15592
15760
|
position: absolute;
|
|
15593
15761
|
inset: 0 0 0 auto;
|
|
15594
15762
|
padding: 0 var(--spacing-base);
|
|
@@ -15597,7 +15765,7 @@ var linkParameterControls = css70`
|
|
|
15597
15765
|
justify-content: center;
|
|
15598
15766
|
gap: var(--spacing-base);
|
|
15599
15767
|
`;
|
|
15600
|
-
var linkParameterInput = (withExternalLinkIcon) =>
|
|
15768
|
+
var linkParameterInput = (withExternalLinkIcon) => css71`
|
|
15601
15769
|
padding-right: calc(
|
|
15602
15770
|
${withExternalLinkIcon ? "calc(var(--spacing-lg) * 2 + var(--spacing-xs))" : "var(--spacing-xl)"} +
|
|
15603
15771
|
var(--spacing-base)
|
|
@@ -15610,7 +15778,7 @@ var linkParameterInput = (withExternalLinkIcon) => css70`
|
|
|
15610
15778
|
}
|
|
15611
15779
|
}
|
|
15612
15780
|
`;
|
|
15613
|
-
var linkParameterIcon =
|
|
15781
|
+
var linkParameterIcon = css71`
|
|
15614
15782
|
align-items: center;
|
|
15615
15783
|
color: var(--brand-secondary-3);
|
|
15616
15784
|
display: flex;
|
|
@@ -15625,7 +15793,7 @@ var linkParameterIcon = css70`
|
|
|
15625
15793
|
`;
|
|
15626
15794
|
|
|
15627
15795
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
15628
|
-
import { jsx as
|
|
15796
|
+
import { jsx as jsx85, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
|
|
15629
15797
|
function ParameterDataResource({
|
|
15630
15798
|
label,
|
|
15631
15799
|
labelLeadingIcon,
|
|
@@ -15649,30 +15817,30 @@ function ParameterDataResource({
|
|
|
15649
15817
|
disabled,
|
|
15650
15818
|
onClick: onConnectDatasource,
|
|
15651
15819
|
children: [
|
|
15652
|
-
/* @__PURE__ */
|
|
15820
|
+
/* @__PURE__ */ jsx85("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx85(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
15653
15821
|
children
|
|
15654
15822
|
]
|
|
15655
15823
|
}
|
|
15656
15824
|
),
|
|
15657
|
-
caption ? /* @__PURE__ */
|
|
15825
|
+
caption ? /* @__PURE__ */ jsx85(Caption, { children: caption }) : null
|
|
15658
15826
|
] });
|
|
15659
15827
|
}
|
|
15660
15828
|
|
|
15661
15829
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
15662
|
-
import { css as
|
|
15663
|
-
var ParameterDrawerHeaderContainer =
|
|
15830
|
+
import { css as css72 } from "@emotion/react";
|
|
15831
|
+
var ParameterDrawerHeaderContainer = css72`
|
|
15664
15832
|
align-items: center;
|
|
15665
15833
|
display: flex;
|
|
15666
15834
|
gap: var(--spacing-base);
|
|
15667
15835
|
justify-content: space-between;
|
|
15668
15836
|
margin-bottom: var(--spacing-sm);
|
|
15669
15837
|
`;
|
|
15670
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
15838
|
+
var ParameterDrawerHeaderTitleGroup = css72`
|
|
15671
15839
|
align-items: center;
|
|
15672
15840
|
display: flex;
|
|
15673
15841
|
gap: var(--spacing-sm);
|
|
15674
15842
|
`;
|
|
15675
|
-
var ParameterDrawerHeaderTitle =
|
|
15843
|
+
var ParameterDrawerHeaderTitle = css72`
|
|
15676
15844
|
text-overflow: ellipsis;
|
|
15677
15845
|
white-space: nowrap;
|
|
15678
15846
|
overflow: hidden;
|
|
@@ -15680,12 +15848,12 @@ var ParameterDrawerHeaderTitle = css71`
|
|
|
15680
15848
|
`;
|
|
15681
15849
|
|
|
15682
15850
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
15683
|
-
import { jsx as
|
|
15851
|
+
import { jsx as jsx86, jsxs as jsxs58 } from "@emotion/react/jsx-runtime";
|
|
15684
15852
|
var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
15685
15853
|
return /* @__PURE__ */ jsxs58("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
15686
15854
|
/* @__PURE__ */ jsxs58("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
15687
15855
|
iconBeforeTitle,
|
|
15688
|
-
/* @__PURE__ */
|
|
15856
|
+
/* @__PURE__ */ jsx86(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
|
|
15689
15857
|
] }),
|
|
15690
15858
|
children
|
|
15691
15859
|
] });
|
|
@@ -15695,8 +15863,8 @@ var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
|
15695
15863
|
import { forwardRef as forwardRef9 } from "react";
|
|
15696
15864
|
|
|
15697
15865
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
15698
|
-
import { css as
|
|
15699
|
-
var fieldsetStyles =
|
|
15866
|
+
import { css as css73 } from "@emotion/react";
|
|
15867
|
+
var fieldsetStyles = css73`
|
|
15700
15868
|
&:disabled,
|
|
15701
15869
|
[readonly] {
|
|
15702
15870
|
pointer-events: none;
|
|
@@ -15707,7 +15875,7 @@ var fieldsetStyles = css72`
|
|
|
15707
15875
|
}
|
|
15708
15876
|
}
|
|
15709
15877
|
`;
|
|
15710
|
-
var fieldsetLegend2 =
|
|
15878
|
+
var fieldsetLegend2 = css73`
|
|
15711
15879
|
display: block;
|
|
15712
15880
|
font-weight: var(--fw-medium);
|
|
15713
15881
|
margin-bottom: var(--spacing-sm);
|
|
@@ -15715,18 +15883,21 @@ var fieldsetLegend2 = css72`
|
|
|
15715
15883
|
`;
|
|
15716
15884
|
|
|
15717
15885
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
15718
|
-
import { jsx as
|
|
15886
|
+
import { jsx as jsx87, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
|
|
15719
15887
|
var ParameterGroup = forwardRef9(
|
|
15720
15888
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
15721
15889
|
return /* @__PURE__ */ jsxs59("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
15722
|
-
/* @__PURE__ */
|
|
15890
|
+
/* @__PURE__ */ jsx87("legend", { css: fieldsetLegend2, children: legend }),
|
|
15723
15891
|
children
|
|
15724
15892
|
] });
|
|
15725
15893
|
}
|
|
15726
15894
|
);
|
|
15727
15895
|
|
|
15728
15896
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
15729
|
-
import { forwardRef as forwardRef11,
|
|
15897
|
+
import { forwardRef as forwardRef11, useDeferredValue } from "react";
|
|
15898
|
+
|
|
15899
|
+
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
15900
|
+
import { useCallback as useCallback3, useEffect as useEffect9, useState as useState8 } from "react";
|
|
15730
15901
|
|
|
15731
15902
|
// src/utils/url.ts
|
|
15732
15903
|
var isValidUrl = (url, options = {}) => {
|
|
@@ -15738,25 +15909,115 @@ var isValidUrl = (url, options = {}) => {
|
|
|
15738
15909
|
}
|
|
15739
15910
|
};
|
|
15740
15911
|
|
|
15912
|
+
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
15913
|
+
import { Fragment as Fragment11, jsx as jsx88, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
|
|
15914
|
+
function ParameterImagePreview({ imageSrc }) {
|
|
15915
|
+
const [loading, setLoading] = useState8(false);
|
|
15916
|
+
const [loadErrorText, setLoadErrorText] = useState8("");
|
|
15917
|
+
const errorText = "The text you provided is not a valid URL";
|
|
15918
|
+
const updateImageSrc = useCallback3(() => {
|
|
15919
|
+
let message = "";
|
|
15920
|
+
try {
|
|
15921
|
+
if (imageSrc !== "") {
|
|
15922
|
+
const url = String(imageSrc).startsWith("//") ? `${location.protocol}${imageSrc}` : String(imageSrc);
|
|
15923
|
+
if (!isValidUrl(url) || !url.startsWith("https")) {
|
|
15924
|
+
throw Error(errorText);
|
|
15925
|
+
}
|
|
15926
|
+
}
|
|
15927
|
+
message = "";
|
|
15928
|
+
} catch (e) {
|
|
15929
|
+
message = errorText;
|
|
15930
|
+
}
|
|
15931
|
+
setLoadErrorText(message);
|
|
15932
|
+
}, [setLoadErrorText, imageSrc]);
|
|
15933
|
+
useEffect9(() => {
|
|
15934
|
+
updateImageSrc();
|
|
15935
|
+
}, [imageSrc]);
|
|
15936
|
+
const handleLoadEvent = () => {
|
|
15937
|
+
setLoadErrorText("");
|
|
15938
|
+
if (imageSrc) {
|
|
15939
|
+
setLoading(true);
|
|
15940
|
+
}
|
|
15941
|
+
const timer = setTimeout(() => {
|
|
15942
|
+
setLoading(false);
|
|
15943
|
+
}, 200);
|
|
15944
|
+
return () => clearTimeout(timer);
|
|
15945
|
+
};
|
|
15946
|
+
const handleErrorEvent = () => {
|
|
15947
|
+
setLoadErrorText("The value you provided is not a valid image URL");
|
|
15948
|
+
};
|
|
15949
|
+
return /* @__PURE__ */ jsxs60("div", { css: imageWrapper, children: [
|
|
15950
|
+
imageSrc && !loadErrorText ? /* @__PURE__ */ jsx88(
|
|
15951
|
+
"img",
|
|
15952
|
+
{
|
|
15953
|
+
src: imageSrc,
|
|
15954
|
+
css: img,
|
|
15955
|
+
alt: "image preview",
|
|
15956
|
+
onLoad: handleLoadEvent,
|
|
15957
|
+
onError: handleErrorEvent,
|
|
15958
|
+
loading: "lazy",
|
|
15959
|
+
"data-testid": "parameter-image-preview"
|
|
15960
|
+
}
|
|
15961
|
+
) : null,
|
|
15962
|
+
imageSrc && loadErrorText ? /* @__PURE__ */ jsxs60(Fragment11, { children: [
|
|
15963
|
+
/* @__PURE__ */ jsx88(BrokenImage, { css: img }),
|
|
15964
|
+
/* @__PURE__ */ jsx88(ErrorMessage, { message: loadErrorText })
|
|
15965
|
+
] }) : null,
|
|
15966
|
+
loading && /* @__PURE__ */ jsx88(LoadingIcon, {})
|
|
15967
|
+
] });
|
|
15968
|
+
}
|
|
15969
|
+
var BrokenImage = ({ ...props }) => {
|
|
15970
|
+
return /* @__PURE__ */ jsxs60(
|
|
15971
|
+
"svg",
|
|
15972
|
+
{
|
|
15973
|
+
role: "img",
|
|
15974
|
+
width: "214",
|
|
15975
|
+
height: "214",
|
|
15976
|
+
viewBox: "0 0 214 214",
|
|
15977
|
+
fill: "none",
|
|
15978
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15979
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
15980
|
+
"data-testid": "broken-image",
|
|
15981
|
+
...props,
|
|
15982
|
+
children: [
|
|
15983
|
+
/* @__PURE__ */ jsx88("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
15984
|
+
/* @__PURE__ */ jsx88("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
15985
|
+
/* @__PURE__ */ jsxs60("defs", { children: [
|
|
15986
|
+
/* @__PURE__ */ jsx88("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx88("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
15987
|
+
/* @__PURE__ */ jsx88(
|
|
15988
|
+
"image",
|
|
15989
|
+
{
|
|
15990
|
+
id: "image0_761_4353",
|
|
15991
|
+
width: "400",
|
|
15992
|
+
height: "400",
|
|
15993
|
+
xlinkHref: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAABX2lDQ1BJQ0MgUHJvZmlsZQAAKJFtkMFLAlEQxj/NEFIyQaJDhz1EEFiYdupmRhp5WCyxhA7rc3ODdXvsrkSn+ge6RATRPTpGBF46CP0DQVDQqVu3LoGXkm2eW61W8xjmx8fMvOED/GGFcz0AoG7YZiG7IK1vlKXgC/wYQ4ReVGEWT8tynlrwXfuj/QCfqPfTYlertBTZv3o9W8mdhmcblxN/+/tiqKpajOoHZZJx0wZ8CWJ51+aCD4hjJh1FfCy45vKF4IrLN92etUKG+I54hGlKlfiZOF7p0Ws9XNcb7OsGc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BgDEBDMtYXFKDgBuB/we75KcVO2CRagAAAABJRU5ErkJggg=="
|
|
15994
|
+
}
|
|
15995
|
+
)
|
|
15996
|
+
] })
|
|
15997
|
+
]
|
|
15998
|
+
}
|
|
15999
|
+
);
|
|
16000
|
+
};
|
|
16001
|
+
|
|
15741
16002
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
15742
|
-
import { useState as
|
|
16003
|
+
import { useState as useState9 } from "react";
|
|
15743
16004
|
|
|
15744
16005
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
15745
|
-
import { jsx as
|
|
16006
|
+
import { jsx as jsx89 } from "@emotion/react/jsx-runtime";
|
|
15746
16007
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
15747
|
-
return !asSpan ? /* @__PURE__ */
|
|
16008
|
+
return !asSpan ? /* @__PURE__ */ jsx89("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx89("span", { "aria-labelledby": id, css: labelText2, children });
|
|
15748
16009
|
};
|
|
15749
16010
|
|
|
15750
16011
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
15751
16012
|
import { forwardRef as forwardRef10 } from "react";
|
|
15752
|
-
import { jsx as
|
|
16013
|
+
import { jsx as jsx90 } from "@emotion/react/jsx-runtime";
|
|
15753
16014
|
var ParameterMenuButton = forwardRef10(
|
|
15754
16015
|
({ label, children }, ref) => {
|
|
15755
|
-
return /* @__PURE__ */
|
|
16016
|
+
return /* @__PURE__ */ jsx90(
|
|
15756
16017
|
Menu,
|
|
15757
16018
|
{
|
|
15758
16019
|
menuLabel: `${label} menu`,
|
|
15759
|
-
menuTrigger: /* @__PURE__ */
|
|
16020
|
+
menuTrigger: /* @__PURE__ */ jsx90(
|
|
15760
16021
|
"button",
|
|
15761
16022
|
{
|
|
15762
16023
|
className: "parameter-menu",
|
|
@@ -15764,7 +16025,7 @@ var ParameterMenuButton = forwardRef10(
|
|
|
15764
16025
|
type: "button",
|
|
15765
16026
|
"aria-label": `${label} options`,
|
|
15766
16027
|
ref,
|
|
15767
|
-
children: /* @__PURE__ */
|
|
16028
|
+
children: /* @__PURE__ */ jsx90(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
15768
16029
|
}
|
|
15769
16030
|
),
|
|
15770
16031
|
children
|
|
@@ -15774,15 +16035,15 @@ var ParameterMenuButton = forwardRef10(
|
|
|
15774
16035
|
);
|
|
15775
16036
|
|
|
15776
16037
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
15777
|
-
import { css as
|
|
15778
|
-
var emptyParameterShell =
|
|
16038
|
+
import { css as css74 } from "@emotion/react";
|
|
16039
|
+
var emptyParameterShell = css74`
|
|
15779
16040
|
border-radius: var(--rounded-sm);
|
|
15780
16041
|
background: var(--white);
|
|
15781
16042
|
flex-grow: 1;
|
|
15782
16043
|
padding: var(--spacing-xs);
|
|
15783
16044
|
position: relative;
|
|
15784
16045
|
`;
|
|
15785
|
-
var emptyParameterShellText =
|
|
16046
|
+
var emptyParameterShellText = css74`
|
|
15786
16047
|
background: var(--brand-secondary-6);
|
|
15787
16048
|
border-radius: var(--rounded-sm);
|
|
15788
16049
|
padding: var(--spacing-sm);
|
|
@@ -15790,7 +16051,7 @@ var emptyParameterShellText = css73`
|
|
|
15790
16051
|
font-size: var(--fs-sm);
|
|
15791
16052
|
margin: 0;
|
|
15792
16053
|
`;
|
|
15793
|
-
var overrideMarker =
|
|
16054
|
+
var overrideMarker = css74`
|
|
15794
16055
|
border-radius: var(--rounded-sm);
|
|
15795
16056
|
border: 10px solid var(--gray-300);
|
|
15796
16057
|
border-left-color: transparent;
|
|
@@ -15801,7 +16062,7 @@ var overrideMarker = css73`
|
|
|
15801
16062
|
`;
|
|
15802
16063
|
|
|
15803
16064
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
15804
|
-
import { jsx as
|
|
16065
|
+
import { jsx as jsx91, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
|
|
15805
16066
|
var extractParameterProps = (props) => {
|
|
15806
16067
|
const {
|
|
15807
16068
|
id,
|
|
@@ -15858,21 +16119,21 @@ var ParameterShell = ({
|
|
|
15858
16119
|
children,
|
|
15859
16120
|
...props
|
|
15860
16121
|
}) => {
|
|
15861
|
-
const [manualErrorMessage, setManualErrorMessage] =
|
|
16122
|
+
const [manualErrorMessage, setManualErrorMessage] = useState9(void 0);
|
|
15862
16123
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
15863
16124
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
15864
|
-
return /* @__PURE__ */
|
|
15865
|
-
hiddenLabel || title ? null : /* @__PURE__ */
|
|
16125
|
+
return /* @__PURE__ */ jsxs61("div", { css: inputContainer2, ...props, children: [
|
|
16126
|
+
hiddenLabel || title ? null : /* @__PURE__ */ jsxs61(ParameterLabel, { id, css: labelText2, children: [
|
|
15866
16127
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
15867
16128
|
label
|
|
15868
16129
|
] }),
|
|
15869
|
-
!title ? null : /* @__PURE__ */
|
|
16130
|
+
!title ? null : /* @__PURE__ */ jsxs61(ParameterLabel, { id, asSpan: true, children: [
|
|
15870
16131
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
15871
16132
|
title
|
|
15872
16133
|
] }),
|
|
15873
|
-
/* @__PURE__ */
|
|
15874
|
-
menuItems ? /* @__PURE__ */
|
|
15875
|
-
/* @__PURE__ */
|
|
16134
|
+
/* @__PURE__ */ jsxs61("div", { css: inputWrapper, children: [
|
|
16135
|
+
menuItems ? /* @__PURE__ */ jsx91(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
16136
|
+
/* @__PURE__ */ jsx91(
|
|
15876
16137
|
ParameterShellContext.Provider,
|
|
15877
16138
|
{
|
|
15878
16139
|
value: {
|
|
@@ -15882,151 +16143,62 @@ var ParameterShell = ({
|
|
|
15882
16143
|
errorMessage: errorMessaging,
|
|
15883
16144
|
handleManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
15884
16145
|
},
|
|
15885
|
-
children: /* @__PURE__ */
|
|
16146
|
+
children: /* @__PURE__ */ jsxs61(ParameterShellPlaceholder, { children: [
|
|
15886
16147
|
children,
|
|
15887
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
16148
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx91(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
15888
16149
|
] })
|
|
15889
16150
|
}
|
|
15890
16151
|
)
|
|
15891
16152
|
] }),
|
|
15892
|
-
caption ? /* @__PURE__ */
|
|
15893
|
-
errorMessaging ? /* @__PURE__ */
|
|
15894
|
-
warningMessage ? /* @__PURE__ */
|
|
15895
|
-
infoMessage ? /* @__PURE__ */
|
|
16153
|
+
caption ? /* @__PURE__ */ jsx91(Caption, { testId: captionTestId, children: caption }) : null,
|
|
16154
|
+
errorMessaging ? /* @__PURE__ */ jsx91(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null,
|
|
16155
|
+
warningMessage ? /* @__PURE__ */ jsx91(WarningMessage, { message: warningMessage }) : null,
|
|
16156
|
+
infoMessage ? /* @__PURE__ */ jsx91(InfoMessage, { message: infoMessage }) : null
|
|
15896
16157
|
] });
|
|
15897
16158
|
};
|
|
15898
16159
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
15899
|
-
return /* @__PURE__ */
|
|
16160
|
+
return /* @__PURE__ */ jsx91("div", { css: emptyParameterShell, children });
|
|
15900
16161
|
};
|
|
15901
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
16162
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx91(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx91("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx91("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
15902
16163
|
|
|
15903
16164
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
15904
|
-
import { Fragment as
|
|
16165
|
+
import { Fragment as Fragment12, jsx as jsx92, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
|
|
15905
16166
|
var ParameterImage = forwardRef11((props, ref) => {
|
|
15906
16167
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
15907
|
-
return /* @__PURE__ */
|
|
16168
|
+
return /* @__PURE__ */ jsx92(ParameterShell, { "data-testid": "parameter-image", ...shellProps, children: /* @__PURE__ */ jsx92(ParameterImageInner, { ref, ...innerProps, disablePreview: props.disablePreview }) });
|
|
15908
16169
|
});
|
|
15909
|
-
var
|
|
15910
|
-
|
|
15911
|
-
|
|
15912
|
-
|
|
15913
|
-
|
|
15914
|
-
|
|
15915
|
-
|
|
15916
|
-
height: "214",
|
|
15917
|
-
viewBox: "0 0 214 214",
|
|
15918
|
-
fill: "none",
|
|
15919
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
15920
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
15921
|
-
...props,
|
|
15922
|
-
children: [
|
|
15923
|
-
/* @__PURE__ */ jsx90("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
15924
|
-
/* @__PURE__ */ jsx90("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
15925
|
-
/* @__PURE__ */ jsxs61("defs", { children: [
|
|
15926
|
-
/* @__PURE__ */ jsx90("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx90("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
15927
|
-
/* @__PURE__ */ jsx90(
|
|
15928
|
-
"image",
|
|
15929
|
-
{
|
|
15930
|
-
id: "image0_761_4353",
|
|
15931
|
-
width: "400",
|
|
15932
|
-
height: "400",
|
|
15933
|
-
xlinkHref: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAABX2lDQ1BJQ0MgUHJvZmlsZQAAKJFtkMFL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MtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBuB/we75KcVO2CRagAAAABJRU5ErkJggg=="
|
|
15934
|
-
}
|
|
15935
|
-
)
|
|
15936
|
-
] })
|
|
15937
|
-
]
|
|
15938
|
-
}
|
|
15939
|
-
);
|
|
15940
|
-
};
|
|
15941
|
-
var ParameterImageInner = forwardRef11(
|
|
15942
|
-
({ ...props }, ref) => {
|
|
15943
|
-
const { value } = props;
|
|
15944
|
-
const { id, label, hiddenLabel, errorMessage } = useParameterShell();
|
|
15945
|
-
const deferredValue = useDeferredValue(value);
|
|
15946
|
-
return /* @__PURE__ */ jsxs61(Fragment11, { children: [
|
|
15947
|
-
/* @__PURE__ */ jsx90(
|
|
15948
|
-
"input",
|
|
15949
|
-
{
|
|
15950
|
-
css: input2,
|
|
15951
|
-
type: "text",
|
|
15952
|
-
id,
|
|
15953
|
-
ref,
|
|
15954
|
-
"aria-label": hiddenLabel ? label : void 0,
|
|
15955
|
-
autoComplete: "off",
|
|
15956
|
-
...props
|
|
15957
|
-
}
|
|
15958
|
-
),
|
|
15959
|
-
errorMessage ? null : /* @__PURE__ */ jsx90(ParameterImagePreview, { imageSrc: deferredValue })
|
|
15960
|
-
] });
|
|
15961
|
-
}
|
|
15962
|
-
);
|
|
15963
|
-
var ParameterImagePreview = ({ imageSrc }) => {
|
|
15964
|
-
const [loading, setLoading] = useState9(false);
|
|
15965
|
-
const [loadErrorText, setLoadErrorText] = useState9("");
|
|
15966
|
-
const errorText = "The text you provided is not a valid URL";
|
|
15967
|
-
const updateImageSrc = useCallback3(() => {
|
|
15968
|
-
let message = "";
|
|
15969
|
-
try {
|
|
15970
|
-
if (imageSrc !== "") {
|
|
15971
|
-
const url = String(imageSrc).startsWith("//") ? `${location.protocol}${imageSrc}` : String(imageSrc);
|
|
15972
|
-
if (!isValidUrl(url) || !url.startsWith("https")) {
|
|
15973
|
-
throw Error(errorText);
|
|
15974
|
-
}
|
|
15975
|
-
}
|
|
15976
|
-
message = "";
|
|
15977
|
-
} catch (e) {
|
|
15978
|
-
message = errorText;
|
|
15979
|
-
}
|
|
15980
|
-
setLoadErrorText(message);
|
|
15981
|
-
}, [setLoadErrorText, imageSrc]);
|
|
15982
|
-
useEffect9(() => {
|
|
15983
|
-
updateImageSrc();
|
|
15984
|
-
}, [imageSrc]);
|
|
15985
|
-
const handleLoadEvent = () => {
|
|
15986
|
-
setLoadErrorText("");
|
|
15987
|
-
if (imageSrc) {
|
|
15988
|
-
setLoading(true);
|
|
15989
|
-
}
|
|
15990
|
-
const timer = setTimeout(() => {
|
|
15991
|
-
setLoading(false);
|
|
15992
|
-
}, 200);
|
|
15993
|
-
return () => clearTimeout(timer);
|
|
15994
|
-
};
|
|
15995
|
-
const handleErrorEvent = () => {
|
|
15996
|
-
setLoadErrorText("The value you provided is not a valid image URL");
|
|
15997
|
-
};
|
|
15998
|
-
return /* @__PURE__ */ jsxs61("div", { css: imageWrapper, children: [
|
|
15999
|
-
imageSrc && !loadErrorText ? /* @__PURE__ */ jsx90(
|
|
16000
|
-
"img",
|
|
16170
|
+
var ParameterImageInner = forwardRef11((props, ref) => {
|
|
16171
|
+
const { value } = props;
|
|
16172
|
+
const { id, label, hiddenLabel, errorMessage } = useParameterShell();
|
|
16173
|
+
const deferredValue = useDeferredValue(value);
|
|
16174
|
+
return /* @__PURE__ */ jsxs62(Fragment12, { children: [
|
|
16175
|
+
/* @__PURE__ */ jsx92(
|
|
16176
|
+
"input",
|
|
16001
16177
|
{
|
|
16002
|
-
|
|
16003
|
-
|
|
16004
|
-
|
|
16005
|
-
|
|
16006
|
-
|
|
16007
|
-
|
|
16008
|
-
|
|
16178
|
+
css: input2,
|
|
16179
|
+
type: "text",
|
|
16180
|
+
id,
|
|
16181
|
+
ref,
|
|
16182
|
+
"aria-label": hiddenLabel ? label : void 0,
|
|
16183
|
+
autoComplete: "off",
|
|
16184
|
+
...props
|
|
16009
16185
|
}
|
|
16010
|
-
)
|
|
16011
|
-
|
|
16012
|
-
/* @__PURE__ */ jsx90(BrokenImage, { css: img }),
|
|
16013
|
-
/* @__PURE__ */ jsx90(ErrorMessage, { message: loadErrorText })
|
|
16014
|
-
] }) : null,
|
|
16015
|
-
loading && /* @__PURE__ */ jsx90(LoadingIcon, {})
|
|
16186
|
+
),
|
|
16187
|
+
errorMessage || props.disablePreview ? null : /* @__PURE__ */ jsx92(ParameterImagePreview, { imageSrc: deferredValue })
|
|
16016
16188
|
] });
|
|
16017
|
-
};
|
|
16189
|
+
});
|
|
16018
16190
|
|
|
16019
16191
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
16020
16192
|
import { forwardRef as forwardRef12 } from "react";
|
|
16021
|
-
import { jsx as
|
|
16193
|
+
import { jsx as jsx93 } from "@emotion/react/jsx-runtime";
|
|
16022
16194
|
var ParameterInput = forwardRef12((props, ref) => {
|
|
16023
16195
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16024
|
-
return /* @__PURE__ */
|
|
16196
|
+
return /* @__PURE__ */ jsx93(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx93(ParameterInputInner, { ref, ...innerProps }) });
|
|
16025
16197
|
});
|
|
16026
16198
|
var ParameterInputInner = forwardRef12(
|
|
16027
16199
|
({ ...props }, ref) => {
|
|
16028
16200
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
16029
|
-
return /* @__PURE__ */
|
|
16201
|
+
return /* @__PURE__ */ jsx93(
|
|
16030
16202
|
"input",
|
|
16031
16203
|
{
|
|
16032
16204
|
css: input2,
|
|
@@ -16043,18 +16215,18 @@ var ParameterInputInner = forwardRef12(
|
|
|
16043
16215
|
|
|
16044
16216
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
16045
16217
|
import { forwardRef as forwardRef13 } from "react";
|
|
16046
|
-
import { jsx as
|
|
16218
|
+
import { jsx as jsx94, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
|
|
16047
16219
|
var ParameterLink = forwardRef13(
|
|
16048
|
-
({
|
|
16220
|
+
({ disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
16049
16221
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16050
|
-
return /* @__PURE__ */
|
|
16222
|
+
return /* @__PURE__ */ jsx94(
|
|
16051
16223
|
ParameterShell,
|
|
16052
16224
|
{
|
|
16053
|
-
"data-
|
|
16225
|
+
"data-testid": "link-parameter-editor",
|
|
16054
16226
|
...shellProps,
|
|
16055
16227
|
label: innerProps.value ? shellProps.label : "",
|
|
16056
16228
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
16057
|
-
children:
|
|
16229
|
+
children: /* @__PURE__ */ jsx94(
|
|
16058
16230
|
ParameterLinkInner,
|
|
16059
16231
|
{
|
|
16060
16232
|
onConnectLink,
|
|
@@ -16068,10 +16240,12 @@ var ParameterLink = forwardRef13(
|
|
|
16068
16240
|
}
|
|
16069
16241
|
);
|
|
16070
16242
|
var ParameterLinkInner = forwardRef13(
|
|
16071
|
-
({ externalLink, onConnectLink, disabled, ...props }, ref) => {
|
|
16243
|
+
({ externalLink, onConnectLink, disabled, buttonText = "Select link", ...props }, ref) => {
|
|
16072
16244
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
16073
|
-
|
|
16074
|
-
/* @__PURE__ */
|
|
16245
|
+
if (!props.value)
|
|
16246
|
+
return /* @__PURE__ */ jsx94("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText });
|
|
16247
|
+
return /* @__PURE__ */ jsxs63("div", { css: inputWrapper, children: [
|
|
16248
|
+
/* @__PURE__ */ jsx94(
|
|
16075
16249
|
"input",
|
|
16076
16250
|
{
|
|
16077
16251
|
type: "text",
|
|
@@ -16083,8 +16257,8 @@ var ParameterLinkInner = forwardRef13(
|
|
|
16083
16257
|
...props
|
|
16084
16258
|
}
|
|
16085
16259
|
),
|
|
16086
|
-
/* @__PURE__ */
|
|
16087
|
-
/* @__PURE__ */
|
|
16260
|
+
/* @__PURE__ */ jsxs63("div", { css: linkParameterControls, children: [
|
|
16261
|
+
/* @__PURE__ */ jsx94(
|
|
16088
16262
|
"button",
|
|
16089
16263
|
{
|
|
16090
16264
|
type: "button",
|
|
@@ -16095,7 +16269,7 @@ var ParameterLinkInner = forwardRef13(
|
|
|
16095
16269
|
children: "edit"
|
|
16096
16270
|
}
|
|
16097
16271
|
),
|
|
16098
|
-
externalLink ? /* @__PURE__ */
|
|
16272
|
+
externalLink ? /* @__PURE__ */ jsx94(
|
|
16099
16273
|
"a",
|
|
16100
16274
|
{
|
|
16101
16275
|
href: externalLink,
|
|
@@ -16103,7 +16277,7 @@ var ParameterLinkInner = forwardRef13(
|
|
|
16103
16277
|
title: "Open link in new tab",
|
|
16104
16278
|
target: "_blank",
|
|
16105
16279
|
rel: "noopener noreferrer",
|
|
16106
|
-
children: /* @__PURE__ */
|
|
16280
|
+
children: /* @__PURE__ */ jsx94(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
16107
16281
|
}
|
|
16108
16282
|
) : null
|
|
16109
16283
|
] })
|
|
@@ -16112,7 +16286,7 @@ var ParameterLinkInner = forwardRef13(
|
|
|
16112
16286
|
);
|
|
16113
16287
|
|
|
16114
16288
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
16115
|
-
import { Fragment as
|
|
16289
|
+
import { Fragment as Fragment13, jsx as jsx95, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
|
|
16116
16290
|
var ParameterNameAndPublicIdInput = ({
|
|
16117
16291
|
id,
|
|
16118
16292
|
onBlur,
|
|
@@ -16138,14 +16312,14 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16138
16312
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
16139
16313
|
};
|
|
16140
16314
|
autoFocus == null ? void 0 : autoFocus();
|
|
16141
|
-
return /* @__PURE__ */
|
|
16142
|
-
/* @__PURE__ */
|
|
16315
|
+
return /* @__PURE__ */ jsxs64(Fragment13, { children: [
|
|
16316
|
+
/* @__PURE__ */ jsx95(
|
|
16143
16317
|
ParameterInput,
|
|
16144
16318
|
{
|
|
16145
16319
|
id: nameIdField,
|
|
16146
16320
|
name: nameIdField,
|
|
16147
16321
|
label,
|
|
16148
|
-
"data-
|
|
16322
|
+
"data-testid": "name-field",
|
|
16149
16323
|
autoComplete: "off",
|
|
16150
16324
|
"data-af": "true",
|
|
16151
16325
|
onBlur,
|
|
@@ -16158,25 +16332,25 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16158
16332
|
value: values[nameIdField]
|
|
16159
16333
|
}
|
|
16160
16334
|
),
|
|
16161
|
-
/* @__PURE__ */
|
|
16335
|
+
/* @__PURE__ */ jsx95(
|
|
16162
16336
|
ParameterInput,
|
|
16163
16337
|
{
|
|
16164
16338
|
id: publicIdFieldName,
|
|
16165
16339
|
name: publicIdFieldName,
|
|
16166
16340
|
label: "Public ID",
|
|
16167
16341
|
disabled: Boolean(id) || isReadonly,
|
|
16168
|
-
"data-
|
|
16342
|
+
"data-testid": "public-id-field",
|
|
16169
16343
|
autoComplete: "off",
|
|
16170
16344
|
onBlur,
|
|
16171
16345
|
onChange: onPublicIdChange,
|
|
16172
16346
|
caption: publicIdCaption,
|
|
16173
16347
|
placeholder: publicIdPlaceholderText,
|
|
16174
16348
|
errorMessage: publicIdError,
|
|
16175
|
-
menuItems: /* @__PURE__ */
|
|
16349
|
+
menuItems: /* @__PURE__ */ jsx95(
|
|
16176
16350
|
MenuItem,
|
|
16177
16351
|
{
|
|
16178
16352
|
disabled: !values[publicIdFieldName],
|
|
16179
|
-
icon: /* @__PURE__ */
|
|
16353
|
+
icon: /* @__PURE__ */ jsx95(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
16180
16354
|
onClick: handleCopyPidFieldValue,
|
|
16181
16355
|
children: "Copy"
|
|
16182
16356
|
}
|
|
@@ -16184,12 +16358,12 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16184
16358
|
value: values[publicIdFieldName]
|
|
16185
16359
|
}
|
|
16186
16360
|
),
|
|
16187
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
16361
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx95(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
16188
16362
|
] });
|
|
16189
16363
|
};
|
|
16190
16364
|
|
|
16191
16365
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
16192
|
-
import { css as
|
|
16366
|
+
import { css as css79 } from "@emotion/react";
|
|
16193
16367
|
import { ListItemNode, ListNode as ListNode2 } from "@lexical/list";
|
|
16194
16368
|
import {
|
|
16195
16369
|
CODE,
|
|
@@ -16255,6 +16429,10 @@ var richTextBuiltInElements = [
|
|
|
16255
16429
|
{
|
|
16256
16430
|
label: "Code Block",
|
|
16257
16431
|
type: "code"
|
|
16432
|
+
},
|
|
16433
|
+
{
|
|
16434
|
+
label: "Dynamic Token",
|
|
16435
|
+
type: "variable"
|
|
16258
16436
|
}
|
|
16259
16437
|
];
|
|
16260
16438
|
var richTextBuiltInFormats = [
|
|
@@ -16337,23 +16515,23 @@ function DisableStylesPlugin() {
|
|
|
16337
16515
|
}
|
|
16338
16516
|
|
|
16339
16517
|
// src/components/ParameterInputs/rich-text/editorStyles.ts
|
|
16340
|
-
import { css as
|
|
16341
|
-
var textBold =
|
|
16518
|
+
import { css as css75 } from "@emotion/css";
|
|
16519
|
+
var textBold = css75`
|
|
16342
16520
|
font-weight: 700;
|
|
16343
16521
|
`;
|
|
16344
|
-
var textItalic =
|
|
16522
|
+
var textItalic = css75`
|
|
16345
16523
|
font-style: italic;
|
|
16346
16524
|
`;
|
|
16347
|
-
var textUnderline =
|
|
16525
|
+
var textUnderline = css75`
|
|
16348
16526
|
text-decoration: underline;
|
|
16349
16527
|
`;
|
|
16350
|
-
var textStrikethrough =
|
|
16528
|
+
var textStrikethrough = css75`
|
|
16351
16529
|
text-decoration: line-through;
|
|
16352
16530
|
`;
|
|
16353
|
-
var textUnderlineStrikethrough =
|
|
16531
|
+
var textUnderlineStrikethrough = css75`
|
|
16354
16532
|
text-decoration: underline line-through;
|
|
16355
16533
|
`;
|
|
16356
|
-
var textCode =
|
|
16534
|
+
var textCode = css75`
|
|
16357
16535
|
background-color: var(--gray-100);
|
|
16358
16536
|
border-radius: var(--rounded-sm);
|
|
16359
16537
|
display: inline-block;
|
|
@@ -16364,68 +16542,68 @@ var textCode = css74`
|
|
|
16364
16542
|
padding-left: var(--spacing-xs);
|
|
16365
16543
|
padding-right: var(--spacing-xs);
|
|
16366
16544
|
`;
|
|
16367
|
-
var textSuperscript =
|
|
16545
|
+
var textSuperscript = css75`
|
|
16368
16546
|
vertical-align: super;
|
|
16369
16547
|
font-size: smaller;
|
|
16370
16548
|
`;
|
|
16371
|
-
var textSubscript =
|
|
16549
|
+
var textSubscript = css75`
|
|
16372
16550
|
vertical-align: sub;
|
|
16373
16551
|
font-size: smaller;
|
|
16374
16552
|
`;
|
|
16375
|
-
var linkElement =
|
|
16553
|
+
var linkElement = css75`
|
|
16376
16554
|
${link}
|
|
16377
16555
|
${linkColorDefault}
|
|
16378
16556
|
text-decoration: underline;
|
|
16379
16557
|
`;
|
|
16380
|
-
var h12 =
|
|
16558
|
+
var h12 = css75`
|
|
16381
16559
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.7rem);
|
|
16382
16560
|
`;
|
|
16383
|
-
var h22 =
|
|
16561
|
+
var h22 = css75`
|
|
16384
16562
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.6rem);
|
|
16385
16563
|
`;
|
|
16386
|
-
var h32 =
|
|
16564
|
+
var h32 = css75`
|
|
16387
16565
|
font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
|
|
16388
16566
|
`;
|
|
16389
|
-
var h42 =
|
|
16567
|
+
var h42 = css75`
|
|
16390
16568
|
font-size: clamp(1.15rem, var(--fluid-font-base), 1.25rem);
|
|
16391
16569
|
`;
|
|
16392
|
-
var h52 =
|
|
16570
|
+
var h52 = css75`
|
|
16393
16571
|
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
16394
16572
|
`;
|
|
16395
|
-
var h62 =
|
|
16573
|
+
var h62 = css75`
|
|
16396
16574
|
font-size: var(--fs-base);
|
|
16397
16575
|
`;
|
|
16398
|
-
var heading1Element =
|
|
16576
|
+
var heading1Element = css75`
|
|
16399
16577
|
${h12}
|
|
16400
16578
|
${commonHeadingAttr(true)}
|
|
16401
16579
|
${commonLineHeight}
|
|
16402
16580
|
`;
|
|
16403
|
-
var heading2Element =
|
|
16581
|
+
var heading2Element = css75`
|
|
16404
16582
|
${h22}
|
|
16405
16583
|
${commonHeadingAttr(true)}
|
|
16406
16584
|
${commonLineHeight}
|
|
16407
16585
|
`;
|
|
16408
|
-
var heading3Element =
|
|
16586
|
+
var heading3Element = css75`
|
|
16409
16587
|
${h32}
|
|
16410
16588
|
${commonHeadingAttr(true)}
|
|
16411
16589
|
${commonLineHeight}
|
|
16412
16590
|
`;
|
|
16413
|
-
var heading4Element =
|
|
16591
|
+
var heading4Element = css75`
|
|
16414
16592
|
${h42}
|
|
16415
16593
|
${commonHeadingAttr(true)}
|
|
16416
16594
|
${commonLineHeight}
|
|
16417
16595
|
`;
|
|
16418
|
-
var heading5Element =
|
|
16596
|
+
var heading5Element = css75`
|
|
16419
16597
|
${h52}
|
|
16420
16598
|
${commonHeadingAttr(true)}
|
|
16421
16599
|
${commonLineHeight}
|
|
16422
16600
|
`;
|
|
16423
|
-
var heading6Element =
|
|
16601
|
+
var heading6Element = css75`
|
|
16424
16602
|
${h62}
|
|
16425
16603
|
${commonHeadingAttr(true)}
|
|
16426
16604
|
${commonLineHeight}
|
|
16427
16605
|
`;
|
|
16428
|
-
var paragraphElement =
|
|
16606
|
+
var paragraphElement = css75`
|
|
16429
16607
|
line-height: 1.5;
|
|
16430
16608
|
margin-bottom: var(--spacing-base);
|
|
16431
16609
|
|
|
@@ -16433,7 +16611,7 @@ var paragraphElement = css74`
|
|
|
16433
16611
|
margin-bottom: 0;
|
|
16434
16612
|
}
|
|
16435
16613
|
`;
|
|
16436
|
-
var orderedListElement =
|
|
16614
|
+
var orderedListElement = css75`
|
|
16437
16615
|
${commonLineHeight}
|
|
16438
16616
|
display: block;
|
|
16439
16617
|
list-style: decimal;
|
|
@@ -16462,7 +16640,7 @@ var orderedListElement = css74`
|
|
|
16462
16640
|
}
|
|
16463
16641
|
}
|
|
16464
16642
|
`;
|
|
16465
|
-
var unorderedListElement =
|
|
16643
|
+
var unorderedListElement = css75`
|
|
16466
16644
|
${commonLineHeight}
|
|
16467
16645
|
display: block;
|
|
16468
16646
|
list-style: disc;
|
|
@@ -16483,13 +16661,13 @@ var unorderedListElement = css74`
|
|
|
16483
16661
|
}
|
|
16484
16662
|
}
|
|
16485
16663
|
`;
|
|
16486
|
-
var listItemElement =
|
|
16664
|
+
var listItemElement = css75`
|
|
16487
16665
|
margin-left: var(--spacing-md);
|
|
16488
16666
|
`;
|
|
16489
|
-
var nestedListItemElement =
|
|
16667
|
+
var nestedListItemElement = css75`
|
|
16490
16668
|
list-style-type: none;
|
|
16491
16669
|
`;
|
|
16492
|
-
var blockquoteElement =
|
|
16670
|
+
var blockquoteElement = css75`
|
|
16493
16671
|
border-left: 0.25rem solid var(--gray-300);
|
|
16494
16672
|
color: var(--gray-600);
|
|
16495
16673
|
margin-bottom: var(--spacing-base);
|
|
@@ -16499,7 +16677,7 @@ var blockquoteElement = css74`
|
|
|
16499
16677
|
margin-bottom: 0;
|
|
16500
16678
|
}
|
|
16501
16679
|
`;
|
|
16502
|
-
var codeElement =
|
|
16680
|
+
var codeElement = css75`
|
|
16503
16681
|
background-color: var(--gray-100);
|
|
16504
16682
|
border-radius: var(--rounded-sm);
|
|
16505
16683
|
display: block;
|
|
@@ -16516,7 +16694,7 @@ var codeElement = css74`
|
|
|
16516
16694
|
`;
|
|
16517
16695
|
|
|
16518
16696
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
16519
|
-
import { css as
|
|
16697
|
+
import { css as css77 } from "@emotion/react";
|
|
16520
16698
|
import { useLexicalComposerContext as useLexicalComposerContext2 } from "@lexical/react/LexicalComposerContext";
|
|
16521
16699
|
import { NodeEventPlugin } from "@lexical/react/LexicalNodeEventPlugin";
|
|
16522
16700
|
import { addClassNamesToElement, isHTMLAnchorElement, mergeRegister as mergeRegister2 } from "@lexical/utils";
|
|
@@ -16535,8 +16713,8 @@ import {
|
|
|
16535
16713
|
import { useCallback as useCallback4, useEffect as useEffect11, useRef as useRef6, useState as useState10 } from "react";
|
|
16536
16714
|
|
|
16537
16715
|
// src/components/Popover/Popover.styles.ts
|
|
16538
|
-
import { css as
|
|
16539
|
-
var PopoverBtn =
|
|
16716
|
+
import { css as css76 } from "@emotion/react";
|
|
16717
|
+
var PopoverBtn = css76`
|
|
16540
16718
|
border: none;
|
|
16541
16719
|
background: none;
|
|
16542
16720
|
padding: var(--spacing-2xs);
|
|
@@ -16546,7 +16724,7 @@ var PopoverBtn = css75`
|
|
|
16546
16724
|
background-color: rgba(0, 0, 0, 0.05);
|
|
16547
16725
|
}
|
|
16548
16726
|
`;
|
|
16549
|
-
var Popover =
|
|
16727
|
+
var Popover = css76`
|
|
16550
16728
|
border-left: var(--spacing-xs) solid var(--brand-secondary-3);
|
|
16551
16729
|
border-radius: var(--rounded-base);
|
|
16552
16730
|
box-shadow: var(--shadow-base);
|
|
@@ -16595,7 +16773,7 @@ var getSelectedNode = (selection) => {
|
|
|
16595
16773
|
};
|
|
16596
16774
|
|
|
16597
16775
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
16598
|
-
import { Fragment as
|
|
16776
|
+
import { Fragment as Fragment14, jsx as jsx96, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
|
|
16599
16777
|
var isProjectMapLinkValue = (value) => {
|
|
16600
16778
|
return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
|
|
16601
16779
|
value.nodeId && value.path && value.projectMapId
|
|
@@ -16882,20 +17060,23 @@ var OPEN_LINK_NODE_MODAL_COMMAND = createCommand(
|
|
|
16882
17060
|
);
|
|
16883
17061
|
var LINK_POPOVER_OFFSET_X = 0;
|
|
16884
17062
|
var LINK_POPOVER_OFFSET_Y = 8;
|
|
16885
|
-
var linkPopover =
|
|
17063
|
+
var linkPopover = css77`
|
|
16886
17064
|
position: absolute;
|
|
16887
17065
|
z-index: 5;
|
|
16888
17066
|
`;
|
|
16889
|
-
var linkPopoverContainer =
|
|
17067
|
+
var linkPopoverContainer = css77`
|
|
16890
17068
|
${Popover};
|
|
16891
17069
|
align-items: center;
|
|
16892
17070
|
display: flex;
|
|
16893
17071
|
`;
|
|
16894
|
-
var linkPopoverAnchor =
|
|
17072
|
+
var linkPopoverAnchor = css77`
|
|
16895
17073
|
${link}
|
|
16896
17074
|
${linkColorDefault}
|
|
16897
17075
|
`;
|
|
16898
|
-
function LinkNodePlugin({ onConnectLink }) {
|
|
17076
|
+
function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
17077
|
+
const parsePath = getBoundPath != null ? getBoundPath : function(path) {
|
|
17078
|
+
return path;
|
|
17079
|
+
};
|
|
16899
17080
|
const [editor] = useLexicalComposerContext2();
|
|
16900
17081
|
const [linkPopoverState, setLinkPopoverState] = useState10();
|
|
16901
17082
|
const linkPopoverElRef = useRef6(null);
|
|
@@ -17035,8 +17216,8 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
17035
17216
|
});
|
|
17036
17217
|
});
|
|
17037
17218
|
};
|
|
17038
|
-
return /* @__PURE__ */
|
|
17039
|
-
/* @__PURE__ */
|
|
17219
|
+
return /* @__PURE__ */ jsxs65(Fragment14, { children: [
|
|
17220
|
+
/* @__PURE__ */ jsx96(
|
|
17040
17221
|
NodeEventPlugin,
|
|
17041
17222
|
{
|
|
17042
17223
|
nodeType: LinkNode,
|
|
@@ -17046,7 +17227,7 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
17046
17227
|
}
|
|
17047
17228
|
}
|
|
17048
17229
|
),
|
|
17049
|
-
linkPopoverState ? /* @__PURE__ */
|
|
17230
|
+
linkPopoverState ? /* @__PURE__ */ jsx96(
|
|
17050
17231
|
"div",
|
|
17051
17232
|
{
|
|
17052
17233
|
css: linkPopover,
|
|
@@ -17055,18 +17236,20 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
17055
17236
|
top: linkPopoverState.position.y
|
|
17056
17237
|
},
|
|
17057
17238
|
ref: linkPopoverElRef,
|
|
17058
|
-
children: /* @__PURE__ */
|
|
17059
|
-
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */
|
|
17239
|
+
children: /* @__PURE__ */ jsxs65("div", { css: linkPopoverContainer, children: [
|
|
17240
|
+
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ jsx96(
|
|
17060
17241
|
"a",
|
|
17061
17242
|
{
|
|
17062
|
-
href:
|
|
17243
|
+
href: parsePath(
|
|
17244
|
+
`${linkPopoverState.node.__link.type === "email" ? "mailto:" : linkPopoverState.node.__link.type === "tel" ? "tel:" : ""}${linkPopoverState.node.__link.path}`
|
|
17245
|
+
),
|
|
17063
17246
|
css: linkPopoverAnchor,
|
|
17064
17247
|
target: "_blank",
|
|
17065
17248
|
rel: "noopener noreferrer",
|
|
17066
|
-
children: linkPopoverState.node.__link.path
|
|
17249
|
+
children: parsePath(linkPopoverState.node.__link.path)
|
|
17067
17250
|
}
|
|
17068
17251
|
),
|
|
17069
|
-
/* @__PURE__ */
|
|
17252
|
+
/* @__PURE__ */ jsx96(
|
|
17070
17253
|
Button,
|
|
17071
17254
|
{
|
|
17072
17255
|
size: "xs",
|
|
@@ -17074,7 +17257,7 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
17074
17257
|
onEditLinkNode(linkPopoverState.node);
|
|
17075
17258
|
},
|
|
17076
17259
|
buttonType: "ghost",
|
|
17077
|
-
children: /* @__PURE__ */
|
|
17260
|
+
children: /* @__PURE__ */ jsx96(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
|
|
17078
17261
|
}
|
|
17079
17262
|
)
|
|
17080
17263
|
] })
|
|
@@ -17099,7 +17282,7 @@ import {
|
|
|
17099
17282
|
INDENT_CONTENT_COMMAND
|
|
17100
17283
|
} from "lexical";
|
|
17101
17284
|
import { useEffect as useEffect12 } from "react";
|
|
17102
|
-
import { jsx as
|
|
17285
|
+
import { jsx as jsx97 } from "@emotion/react/jsx-runtime";
|
|
17103
17286
|
function isIndentPermitted(maxDepth) {
|
|
17104
17287
|
const selection = $getSelection2();
|
|
17105
17288
|
if (!$isRangeSelection2(selection)) {
|
|
@@ -17129,11 +17312,11 @@ function ListIndentPlugin({ maxDepth }) {
|
|
|
17129
17312
|
COMMAND_PRIORITY_CRITICAL
|
|
17130
17313
|
);
|
|
17131
17314
|
}, [editor, maxDepth]);
|
|
17132
|
-
return /* @__PURE__ */
|
|
17315
|
+
return /* @__PURE__ */ jsx97(TabIndentationPlugin, {});
|
|
17133
17316
|
}
|
|
17134
17317
|
|
|
17135
17318
|
// src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
|
|
17136
|
-
import { css as
|
|
17319
|
+
import { css as css78 } from "@emotion/react";
|
|
17137
17320
|
import { $createCodeNode } from "@lexical/code";
|
|
17138
17321
|
import {
|
|
17139
17322
|
$isListNode as $isListNode2,
|
|
@@ -17156,20 +17339,20 @@ import {
|
|
|
17156
17339
|
SELECTION_CHANGE_COMMAND
|
|
17157
17340
|
} from "lexical";
|
|
17158
17341
|
import { useCallback as useCallback5, useEffect as useEffect13, useMemo as useMemo2, useState as useState11 } from "react";
|
|
17159
|
-
import { Fragment as
|
|
17160
|
-
var toolbar =
|
|
17342
|
+
import { Fragment as Fragment15, jsx as jsx98, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
|
|
17343
|
+
var toolbar = css78`
|
|
17161
17344
|
background: var(--gray-50);
|
|
17162
17345
|
border-radius: var(--rounded-base);
|
|
17163
17346
|
display: flex;
|
|
17164
17347
|
/* We add 1px because we use a 1px wide separator */
|
|
17165
17348
|
gap: calc(var(--spacing-sm) + 1px);
|
|
17166
|
-
margin: calc(var(--spacing-sm) + var(--spacing-xs))
|
|
17349
|
+
margin: calc(var(--spacing-sm) + var(--spacing-xs)) 0;
|
|
17167
17350
|
padding: var(--spacing-sm);
|
|
17168
17351
|
position: sticky;
|
|
17169
|
-
top:
|
|
17352
|
+
top: calc(var(--spacing-sm) * -2);
|
|
17170
17353
|
z-index: 10;
|
|
17171
17354
|
`;
|
|
17172
|
-
var toolbarGroup =
|
|
17355
|
+
var toolbarGroup = css78`
|
|
17173
17356
|
display: flex;
|
|
17174
17357
|
gap: var(--spacing-xs);
|
|
17175
17358
|
position: relative;
|
|
@@ -17185,7 +17368,7 @@ var toolbarGroup = css77`
|
|
|
17185
17368
|
width: 1px;
|
|
17186
17369
|
}
|
|
17187
17370
|
`;
|
|
17188
|
-
var
|
|
17371
|
+
var richTextToolbarButton = css78`
|
|
17189
17372
|
align-items: center;
|
|
17190
17373
|
appearance: none;
|
|
17191
17374
|
border: 0;
|
|
@@ -17198,17 +17381,17 @@ var toolbarButton = css77`
|
|
|
17198
17381
|
min-width: 32px;
|
|
17199
17382
|
padding: 0 var(--spacing-sm);
|
|
17200
17383
|
`;
|
|
17201
|
-
var
|
|
17384
|
+
var richTextToolbarButtonActive = css78`
|
|
17202
17385
|
background: var(--gray-200);
|
|
17203
17386
|
`;
|
|
17204
|
-
var toolbarIcon =
|
|
17387
|
+
var toolbarIcon = css78`
|
|
17205
17388
|
color: inherit;
|
|
17206
17389
|
`;
|
|
17207
|
-
var toolbarChevron =
|
|
17390
|
+
var toolbarChevron = css78`
|
|
17208
17391
|
margin-left: var(--spacing-xs);
|
|
17209
17392
|
`;
|
|
17210
|
-
var
|
|
17211
|
-
return /* @__PURE__ */
|
|
17393
|
+
var RichTextToolbarIcon = ({ icon }) => {
|
|
17394
|
+
return /* @__PURE__ */ jsx98(Icon, { icon, css: toolbarIcon, size: "1rem" });
|
|
17212
17395
|
};
|
|
17213
17396
|
var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
|
|
17214
17397
|
["bold", "format-bold"],
|
|
@@ -17221,7 +17404,7 @@ var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
|
|
|
17221
17404
|
]);
|
|
17222
17405
|
var HEADING_ELEMENTS = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
17223
17406
|
var TEXTUAL_ELEMENTS = HEADING_ELEMENTS;
|
|
17224
|
-
var RichTextToolbar = ({ config }) => {
|
|
17407
|
+
var RichTextToolbar = ({ config, customControls }) => {
|
|
17225
17408
|
const [editor] = useLexicalComposerContext4();
|
|
17226
17409
|
const {
|
|
17227
17410
|
activeElement,
|
|
@@ -17317,15 +17500,15 @@ var RichTextToolbar = ({ config }) => {
|
|
|
17317
17500
|
});
|
|
17318
17501
|
});
|
|
17319
17502
|
}, [editor, updateToolbar]);
|
|
17320
|
-
return /* @__PURE__ */
|
|
17321
|
-
/* @__PURE__ */
|
|
17503
|
+
return /* @__PURE__ */ jsxs66("div", { css: toolbar, children: [
|
|
17504
|
+
/* @__PURE__ */ jsxs66(
|
|
17322
17505
|
Menu,
|
|
17323
17506
|
{
|
|
17324
17507
|
menuLabel: "Elements",
|
|
17325
|
-
menuTrigger: /* @__PURE__ */
|
|
17508
|
+
menuTrigger: /* @__PURE__ */ jsxs66("button", { css: richTextToolbarButton, title: "Text styles", children: [
|
|
17326
17509
|
visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
|
|
17327
17510
|
" ",
|
|
17328
|
-
/* @__PURE__ */
|
|
17511
|
+
/* @__PURE__ */ jsx98(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
|
|
17329
17512
|
] }),
|
|
17330
17513
|
placement: "bottom-start",
|
|
17331
17514
|
children: [
|
|
@@ -17335,7 +17518,7 @@ var RichTextToolbar = ({ config }) => {
|
|
|
17335
17518
|
type: "paragraph"
|
|
17336
17519
|
},
|
|
17337
17520
|
...visibleTextualElements
|
|
17338
|
-
].map((element) => /* @__PURE__ */
|
|
17521
|
+
].map((element) => /* @__PURE__ */ jsx98(
|
|
17339
17522
|
MenuItem,
|
|
17340
17523
|
{
|
|
17341
17524
|
onClick: () => {
|
|
@@ -17345,28 +17528,31 @@ var RichTextToolbar = ({ config }) => {
|
|
|
17345
17528
|
},
|
|
17346
17529
|
element.type
|
|
17347
17530
|
)),
|
|
17348
|
-
visibleTextualElements.length === 0 ? /* @__PURE__ */
|
|
17531
|
+
visibleTextualElements.length === 0 ? /* @__PURE__ */ jsx98(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
|
|
17349
17532
|
]
|
|
17350
17533
|
}
|
|
17351
17534
|
),
|
|
17352
|
-
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
17353
|
-
visibleFormatsWithIcon.map((format) => /* @__PURE__ */
|
|
17535
|
+
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsxs66("div", { css: toolbarGroup, children: [
|
|
17536
|
+
visibleFormatsWithIcon.map((format) => /* @__PURE__ */ jsx98(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ jsx98(
|
|
17354
17537
|
"button",
|
|
17355
17538
|
{
|
|
17356
17539
|
onClick: () => {
|
|
17357
17540
|
editor.dispatchCommand(FORMAT_TEXT_COMMAND, format.type);
|
|
17358
17541
|
},
|
|
17359
|
-
css: [
|
|
17360
|
-
|
|
17542
|
+
css: [
|
|
17543
|
+
richTextToolbarButton,
|
|
17544
|
+
activeFormats.includes(format.type) ? richTextToolbarButtonActive : null
|
|
17545
|
+
],
|
|
17546
|
+
children: /* @__PURE__ */ jsx98(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
|
|
17361
17547
|
}
|
|
17362
17548
|
) }, format.type)),
|
|
17363
|
-
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
17549
|
+
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsx98(
|
|
17364
17550
|
Menu,
|
|
17365
17551
|
{
|
|
17366
17552
|
menuLabel: "Alternative text styles",
|
|
17367
|
-
menuTrigger: /* @__PURE__ */
|
|
17553
|
+
menuTrigger: /* @__PURE__ */ jsx98("button", { css: richTextToolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ jsx98(Icon, { icon: "more-alt", css: toolbarIcon }) }),
|
|
17368
17554
|
placement: "bottom-start",
|
|
17369
|
-
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */
|
|
17555
|
+
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ jsx98(
|
|
17370
17556
|
MenuItem,
|
|
17371
17557
|
{
|
|
17372
17558
|
onClick: () => {
|
|
@@ -17379,60 +17565,67 @@ var RichTextToolbar = ({ config }) => {
|
|
|
17379
17565
|
}
|
|
17380
17566
|
) : null
|
|
17381
17567
|
] }) : null,
|
|
17382
|
-
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */
|
|
17383
|
-
linkElementVisible ? /* @__PURE__ */
|
|
17568
|
+
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ jsxs66("div", { css: toolbarGroup, children: [
|
|
17569
|
+
linkElementVisible ? /* @__PURE__ */ jsx98(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ jsx98(
|
|
17384
17570
|
"button",
|
|
17385
17571
|
{
|
|
17386
17572
|
onClick: () => {
|
|
17387
17573
|
isLink ? editor.dispatchCommand(REMOVE_LINK_NODE_COMMAND, {}) : editor.dispatchCommand(OPEN_LINK_NODE_MODAL_COMMAND, {});
|
|
17388
17574
|
},
|
|
17389
|
-
css: [
|
|
17390
|
-
children: /* @__PURE__ */
|
|
17575
|
+
css: [richTextToolbarButton, isLink ? richTextToolbarButtonActive : null],
|
|
17576
|
+
children: /* @__PURE__ */ jsx98(RichTextToolbarIcon, { icon: "link" })
|
|
17391
17577
|
}
|
|
17392
17578
|
) }) : null,
|
|
17393
|
-
visibleLists.size > 0 ? /* @__PURE__ */
|
|
17394
|
-
visibleLists.has("unorderedList") ? /* @__PURE__ */
|
|
17579
|
+
visibleLists.size > 0 ? /* @__PURE__ */ jsxs66(Fragment15, { children: [
|
|
17580
|
+
visibleLists.has("unorderedList") ? /* @__PURE__ */ jsx98(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ jsx98(
|
|
17395
17581
|
"button",
|
|
17396
17582
|
{
|
|
17397
17583
|
onClick: () => {
|
|
17398
17584
|
activeElement === "unorderedList" ? editor.dispatchCommand(REMOVE_LIST_COMMAND, void 0) : editor.dispatchCommand(INSERT_UNORDERED_LIST_COMMAND, void 0);
|
|
17399
17585
|
},
|
|
17400
|
-
css: [
|
|
17401
|
-
|
|
17586
|
+
css: [
|
|
17587
|
+
richTextToolbarButton,
|
|
17588
|
+
activeElement === "unorderedList" ? richTextToolbarButtonActive : null
|
|
17589
|
+
],
|
|
17590
|
+
children: /* @__PURE__ */ jsx98(RichTextToolbarIcon, { icon: "layout-list" })
|
|
17402
17591
|
}
|
|
17403
17592
|
) }) : null,
|
|
17404
|
-
visibleLists.has("orderedList") ? /* @__PURE__ */
|
|
17593
|
+
visibleLists.has("orderedList") ? /* @__PURE__ */ jsx98(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ jsx98(
|
|
17405
17594
|
"button",
|
|
17406
17595
|
{
|
|
17407
17596
|
onClick: () => {
|
|
17408
17597
|
activeElement === "orderedList" ? editor.dispatchCommand(REMOVE_LIST_COMMAND, void 0) : editor.dispatchCommand(INSERT_ORDERED_LIST_COMMAND, void 0);
|
|
17409
17598
|
},
|
|
17410
|
-
css: [
|
|
17411
|
-
|
|
17599
|
+
css: [
|
|
17600
|
+
richTextToolbarButton,
|
|
17601
|
+
activeElement === "orderedList" ? richTextToolbarButtonActive : null
|
|
17602
|
+
],
|
|
17603
|
+
children: /* @__PURE__ */ jsx98(RichTextToolbarIcon, { icon: "layout-list-numbered" })
|
|
17412
17604
|
}
|
|
17413
17605
|
) }) : null
|
|
17414
17606
|
] }) : null,
|
|
17415
|
-
quoteElementVisible ? /* @__PURE__ */
|
|
17607
|
+
quoteElementVisible ? /* @__PURE__ */ jsx98(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ jsx98(
|
|
17416
17608
|
"button",
|
|
17417
17609
|
{
|
|
17418
17610
|
onClick: () => {
|
|
17419
17611
|
activeElement === "quote" ? onSelectElement("paragraph") : onSelectElement("quote");
|
|
17420
17612
|
},
|
|
17421
|
-
css: [
|
|
17422
|
-
children: /* @__PURE__ */
|
|
17613
|
+
css: [richTextToolbarButton, activeElement === "quote" ? richTextToolbarButtonActive : null],
|
|
17614
|
+
children: /* @__PURE__ */ jsx98(RichTextToolbarIcon, { icon: "quote" })
|
|
17423
17615
|
}
|
|
17424
17616
|
) }) : null,
|
|
17425
|
-
codeElementVisible ? /* @__PURE__ */
|
|
17617
|
+
codeElementVisible ? /* @__PURE__ */ jsx98(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ jsx98(
|
|
17426
17618
|
"button",
|
|
17427
17619
|
{
|
|
17428
17620
|
onClick: () => {
|
|
17429
17621
|
activeElement === "code" ? onSelectElement("paragraph") : onSelectElement("code");
|
|
17430
17622
|
},
|
|
17431
|
-
css: [
|
|
17432
|
-
children: /* @__PURE__ */
|
|
17623
|
+
css: [richTextToolbarButton, activeElement === "code" ? richTextToolbarButtonActive : null],
|
|
17624
|
+
children: /* @__PURE__ */ jsx98(RichTextToolbarIcon, { icon: "code-slash" })
|
|
17433
17625
|
}
|
|
17434
17626
|
) }) : null
|
|
17435
|
-
] }) : null
|
|
17627
|
+
] }) : null,
|
|
17628
|
+
customControls ? /* @__PURE__ */ jsx98("div", { css: toolbarGroup, children: customControls }) : null
|
|
17436
17629
|
] });
|
|
17437
17630
|
};
|
|
17438
17631
|
var RichTextToolbar_default = RichTextToolbar;
|
|
@@ -17546,7 +17739,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
17546
17739
|
};
|
|
17547
17740
|
|
|
17548
17741
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
17549
|
-
import { Fragment as
|
|
17742
|
+
import { Fragment as Fragment16, jsx as jsx99, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
|
|
17550
17743
|
var ParameterRichText = ({
|
|
17551
17744
|
label,
|
|
17552
17745
|
labelLeadingIcon,
|
|
@@ -17565,12 +17758,16 @@ var ParameterRichText = ({
|
|
|
17565
17758
|
readOnly,
|
|
17566
17759
|
editorWrapperClassName,
|
|
17567
17760
|
editorInputClassName,
|
|
17568
|
-
editorFooter
|
|
17761
|
+
editorFooter,
|
|
17762
|
+
customNodes,
|
|
17763
|
+
children,
|
|
17764
|
+
variables,
|
|
17765
|
+
customControls
|
|
17569
17766
|
}) => {
|
|
17570
|
-
return /* @__PURE__ */
|
|
17767
|
+
return /* @__PURE__ */ jsxs67(
|
|
17571
17768
|
ParameterShell,
|
|
17572
17769
|
{
|
|
17573
|
-
"data-
|
|
17770
|
+
"data-testid": "parameter-input",
|
|
17574
17771
|
label,
|
|
17575
17772
|
hiddenLabel,
|
|
17576
17773
|
labelLeadingIcon,
|
|
@@ -17581,7 +17778,7 @@ var ParameterRichText = ({
|
|
|
17581
17778
|
captionTestId,
|
|
17582
17779
|
menuItems,
|
|
17583
17780
|
children: [
|
|
17584
|
-
/* @__PURE__ */
|
|
17781
|
+
/* @__PURE__ */ jsx99(
|
|
17585
17782
|
ParameterRichTextInner,
|
|
17586
17783
|
{
|
|
17587
17784
|
value,
|
|
@@ -17592,26 +17789,30 @@ var ParameterRichText = ({
|
|
|
17592
17789
|
readOnly,
|
|
17593
17790
|
editorWrapperClassName,
|
|
17594
17791
|
editorInputClassName,
|
|
17595
|
-
editorFooter
|
|
17792
|
+
editorFooter,
|
|
17793
|
+
customNodes,
|
|
17794
|
+
variables,
|
|
17795
|
+
customControls,
|
|
17796
|
+
children
|
|
17596
17797
|
}
|
|
17597
17798
|
),
|
|
17598
|
-
menuItems ? /* @__PURE__ */
|
|
17799
|
+
menuItems ? /* @__PURE__ */ jsx99(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx99(Fragment16, { children: menuItems }) }) : null
|
|
17599
17800
|
]
|
|
17600
17801
|
}
|
|
17601
17802
|
);
|
|
17602
17803
|
};
|
|
17603
|
-
var editorWrapper =
|
|
17804
|
+
var editorWrapper = css79`
|
|
17604
17805
|
display: flex;
|
|
17605
17806
|
flex-flow: column;
|
|
17606
17807
|
flex-grow: 1;
|
|
17607
17808
|
`;
|
|
17608
|
-
var editorContainer =
|
|
17809
|
+
var editorContainer = css79`
|
|
17609
17810
|
display: flex;
|
|
17610
17811
|
flex-flow: column;
|
|
17611
17812
|
flex-grow: 1;
|
|
17612
17813
|
position: relative;
|
|
17613
17814
|
`;
|
|
17614
|
-
var editorPlaceholder =
|
|
17815
|
+
var editorPlaceholder = css79`
|
|
17615
17816
|
color: var(--gray-500);
|
|
17616
17817
|
font-style: italic;
|
|
17617
17818
|
/* 1px is added to make sure caret is clearly visible when field is focused
|
|
@@ -17622,7 +17823,7 @@ var editorPlaceholder = css78`
|
|
|
17622
17823
|
top: var(--spacing-xs);
|
|
17623
17824
|
user-select: none;
|
|
17624
17825
|
`;
|
|
17625
|
-
var editorInput =
|
|
17826
|
+
var editorInput = css79`
|
|
17626
17827
|
background: var(--white);
|
|
17627
17828
|
border: 1px solid var(--white);
|
|
17628
17829
|
border-radius: var(--rounded-sm);
|
|
@@ -17650,7 +17851,11 @@ var ParameterRichTextInner = ({
|
|
|
17650
17851
|
readOnly,
|
|
17651
17852
|
editorWrapperClassName,
|
|
17652
17853
|
editorInputClassName,
|
|
17653
|
-
editorFooter
|
|
17854
|
+
editorFooter,
|
|
17855
|
+
children,
|
|
17856
|
+
customNodes,
|
|
17857
|
+
variables,
|
|
17858
|
+
customControls
|
|
17654
17859
|
}) => {
|
|
17655
17860
|
const lexicalConfig = {
|
|
17656
17861
|
namespace: "uniform",
|
|
@@ -17658,7 +17863,16 @@ var ParameterRichTextInner = ({
|
|
|
17658
17863
|
console.error(error);
|
|
17659
17864
|
},
|
|
17660
17865
|
editorState: value ? JSON.stringify(value) : void 0,
|
|
17661
|
-
nodes: [
|
|
17866
|
+
nodes: [
|
|
17867
|
+
ListNode2,
|
|
17868
|
+
ListItemNode,
|
|
17869
|
+
LinkNode,
|
|
17870
|
+
HeadingNode,
|
|
17871
|
+
QuoteNode,
|
|
17872
|
+
ParagraphNode2,
|
|
17873
|
+
CustomCodeNode,
|
|
17874
|
+
...customNodes != null ? customNodes : []
|
|
17875
|
+
],
|
|
17662
17876
|
theme: {
|
|
17663
17877
|
text: {
|
|
17664
17878
|
bold: textBold,
|
|
@@ -17693,8 +17907,8 @@ var ParameterRichTextInner = ({
|
|
|
17693
17907
|
},
|
|
17694
17908
|
editable: !readOnly
|
|
17695
17909
|
};
|
|
17696
|
-
return /* @__PURE__ */
|
|
17697
|
-
/* @__PURE__ */
|
|
17910
|
+
return /* @__PURE__ */ jsxs67(Fragment16, { children: [
|
|
17911
|
+
/* @__PURE__ */ jsx99("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx99(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx99(
|
|
17698
17912
|
RichText,
|
|
17699
17913
|
{
|
|
17700
17914
|
onChange,
|
|
@@ -17702,7 +17916,10 @@ var ParameterRichTextInner = ({
|
|
|
17702
17916
|
config,
|
|
17703
17917
|
onRichTextInit,
|
|
17704
17918
|
readOnly,
|
|
17705
|
-
editorInputClassName
|
|
17919
|
+
editorInputClassName,
|
|
17920
|
+
variables,
|
|
17921
|
+
customControls,
|
|
17922
|
+
children
|
|
17706
17923
|
}
|
|
17707
17924
|
) }) }),
|
|
17708
17925
|
editorFooter ? editorFooter : null
|
|
@@ -17723,7 +17940,10 @@ var RichText = ({
|
|
|
17723
17940
|
config,
|
|
17724
17941
|
onRichTextInit,
|
|
17725
17942
|
readOnly,
|
|
17726
|
-
editorInputClassName
|
|
17943
|
+
editorInputClassName,
|
|
17944
|
+
children,
|
|
17945
|
+
variables,
|
|
17946
|
+
customControls
|
|
17727
17947
|
}) => {
|
|
17728
17948
|
const editorContainerRef = useRef7(null);
|
|
17729
17949
|
const [editor] = useLexicalComposerContext5();
|
|
@@ -17744,40 +17964,50 @@ var RichText = ({
|
|
|
17744
17964
|
removeUpdateListener();
|
|
17745
17965
|
};
|
|
17746
17966
|
}, []);
|
|
17747
|
-
return /* @__PURE__ */
|
|
17748
|
-
readOnly ? null : /* @__PURE__ */
|
|
17749
|
-
/* @__PURE__ */
|
|
17750
|
-
/* @__PURE__ */
|
|
17967
|
+
return /* @__PURE__ */ jsxs67(Fragment16, { children: [
|
|
17968
|
+
readOnly ? null : /* @__PURE__ */ jsx99(RichTextToolbar_default, { config, customControls }),
|
|
17969
|
+
/* @__PURE__ */ jsxs67("div", { css: editorContainer, ref: editorContainerRef, children: [
|
|
17970
|
+
/* @__PURE__ */ jsx99(
|
|
17751
17971
|
RichTextPlugin,
|
|
17752
17972
|
{
|
|
17753
|
-
contentEditable: /* @__PURE__ */
|
|
17754
|
-
placeholder: /* @__PURE__ */
|
|
17973
|
+
contentEditable: /* @__PURE__ */ jsx99(ContentEditable, { css: editorInput, className: editorInputClassName }),
|
|
17974
|
+
placeholder: /* @__PURE__ */ jsx99("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
|
|
17755
17975
|
ErrorBoundary: LexicalErrorBoundary
|
|
17756
17976
|
}
|
|
17757
17977
|
),
|
|
17758
|
-
/* @__PURE__ */
|
|
17759
|
-
readOnly ? null : /* @__PURE__ */
|
|
17760
|
-
/* @__PURE__ */
|
|
17761
|
-
|
|
17762
|
-
|
|
17763
|
-
|
|
17978
|
+
/* @__PURE__ */ jsx99(ListPlugin, {}),
|
|
17979
|
+
readOnly ? null : /* @__PURE__ */ jsx99(HistoryPlugin, {}),
|
|
17980
|
+
/* @__PURE__ */ jsx99(
|
|
17981
|
+
LinkNodePlugin,
|
|
17982
|
+
{
|
|
17983
|
+
onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve(),
|
|
17984
|
+
getBoundPath: (variables == null ? void 0 : variables.bindVariables) ? (path) => {
|
|
17985
|
+
var _a, _b;
|
|
17986
|
+
return (_b = (_a = variables.bindVariables) == null ? void 0 : _a.call(variables, path)) != null ? _b : path;
|
|
17987
|
+
} : void 0
|
|
17988
|
+
}
|
|
17989
|
+
),
|
|
17990
|
+
/* @__PURE__ */ jsx99(ListIndentPlugin, { maxDepth: 4 }),
|
|
17991
|
+
/* @__PURE__ */ jsx99(DisableStylesPlugin, {}),
|
|
17992
|
+
/* @__PURE__ */ jsx99(MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
|
|
17993
|
+
/* @__PURE__ */ jsx99(Fragment16, { children })
|
|
17764
17994
|
] })
|
|
17765
17995
|
] });
|
|
17766
17996
|
};
|
|
17767
17997
|
|
|
17768
17998
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
17769
17999
|
import { forwardRef as forwardRef14 } from "react";
|
|
17770
|
-
import { jsx as
|
|
18000
|
+
import { jsx as jsx100, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
|
|
17771
18001
|
var ParameterSelect = forwardRef14(
|
|
17772
18002
|
({ defaultOption, options, ...props }, ref) => {
|
|
17773
18003
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
17774
|
-
return /* @__PURE__ */
|
|
18004
|
+
return /* @__PURE__ */ jsx100(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx100(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
17775
18005
|
}
|
|
17776
18006
|
);
|
|
17777
18007
|
var ParameterSelectInner = forwardRef14(
|
|
17778
18008
|
({ defaultOption, options, ...props }, ref) => {
|
|
17779
18009
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
17780
|
-
return /* @__PURE__ */
|
|
18010
|
+
return /* @__PURE__ */ jsxs68(
|
|
17781
18011
|
"select",
|
|
17782
18012
|
{
|
|
17783
18013
|
css: [input2, selectInput],
|
|
@@ -17786,10 +18016,10 @@ var ParameterSelectInner = forwardRef14(
|
|
|
17786
18016
|
ref,
|
|
17787
18017
|
...props,
|
|
17788
18018
|
children: [
|
|
17789
|
-
defaultOption ? /* @__PURE__ */
|
|
18019
|
+
defaultOption ? /* @__PURE__ */ jsx100("option", { value: "", children: defaultOption }) : null,
|
|
17790
18020
|
options.map((option) => {
|
|
17791
18021
|
var _a;
|
|
17792
|
-
return /* @__PURE__ */
|
|
18022
|
+
return /* @__PURE__ */ jsx100("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
17793
18023
|
})
|
|
17794
18024
|
]
|
|
17795
18025
|
}
|
|
@@ -17799,14 +18029,14 @@ var ParameterSelectInner = forwardRef14(
|
|
|
17799
18029
|
|
|
17800
18030
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
17801
18031
|
import { forwardRef as forwardRef15 } from "react";
|
|
17802
|
-
import { jsx as
|
|
18032
|
+
import { jsx as jsx101 } from "@emotion/react/jsx-runtime";
|
|
17803
18033
|
var ParameterTextarea = forwardRef15((props, ref) => {
|
|
17804
18034
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
17805
|
-
return /* @__PURE__ */
|
|
18035
|
+
return /* @__PURE__ */ jsx101(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx101(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
17806
18036
|
});
|
|
17807
18037
|
var ParameterTextareaInner = forwardRef15(({ ...props }, ref) => {
|
|
17808
18038
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
17809
|
-
return /* @__PURE__ */
|
|
18039
|
+
return /* @__PURE__ */ jsx101(
|
|
17810
18040
|
"textarea",
|
|
17811
18041
|
{
|
|
17812
18042
|
css: [input2, textarea2],
|
|
@@ -17820,17 +18050,17 @@ var ParameterTextareaInner = forwardRef15(({ ...props }, ref) => {
|
|
|
17820
18050
|
|
|
17821
18051
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
17822
18052
|
import { forwardRef as forwardRef16 } from "react";
|
|
17823
|
-
import { jsx as
|
|
18053
|
+
import { jsx as jsx102, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
|
|
17824
18054
|
var ParameterToggle = forwardRef16((props, ref) => {
|
|
17825
18055
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
17826
|
-
return /* @__PURE__ */
|
|
18056
|
+
return /* @__PURE__ */ jsx102(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx102(ParameterToggleInner, { ref, ...innerProps }) });
|
|
17827
18057
|
});
|
|
17828
18058
|
var ParameterToggleInner = forwardRef16(
|
|
17829
18059
|
({ ...props }, ref) => {
|
|
17830
18060
|
const { id, label } = useParameterShell();
|
|
17831
|
-
return /* @__PURE__ */
|
|
17832
|
-
/* @__PURE__ */
|
|
17833
|
-
/* @__PURE__ */
|
|
18061
|
+
return /* @__PURE__ */ jsxs69("label", { css: inputToggleLabel2, children: [
|
|
18062
|
+
/* @__PURE__ */ jsx102("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
18063
|
+
/* @__PURE__ */ jsx102("span", { css: inlineLabel2, children: label })
|
|
17834
18064
|
] });
|
|
17835
18065
|
}
|
|
17836
18066
|
);
|
|
@@ -17841,7 +18071,7 @@ import {
|
|
|
17841
18071
|
PopoverDisclosure,
|
|
17842
18072
|
usePopoverState
|
|
17843
18073
|
} from "reakit/Popover";
|
|
17844
|
-
import { Fragment as
|
|
18074
|
+
import { Fragment as Fragment17, jsx as jsx103, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
17845
18075
|
var Popover2 = ({
|
|
17846
18076
|
iconColor = "action",
|
|
17847
18077
|
icon = "info",
|
|
@@ -17854,36 +18084,36 @@ var Popover2 = ({
|
|
|
17854
18084
|
...otherProps
|
|
17855
18085
|
}) => {
|
|
17856
18086
|
const popover = usePopoverState({ placement });
|
|
17857
|
-
return /* @__PURE__ */
|
|
17858
|
-
/* @__PURE__ */
|
|
17859
|
-
/* @__PURE__ */
|
|
17860
|
-
/* @__PURE__ */
|
|
18087
|
+
return /* @__PURE__ */ jsxs70(Fragment17, { children: [
|
|
18088
|
+
/* @__PURE__ */ jsxs70(PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, "data-testid": testId, children: [
|
|
18089
|
+
/* @__PURE__ */ jsx103(Icon, { icon, iconColor, size: iconSize }),
|
|
18090
|
+
/* @__PURE__ */ jsx103("span", { hidden: true, children: buttonText })
|
|
17861
18091
|
] }),
|
|
17862
|
-
/* @__PURE__ */
|
|
18092
|
+
/* @__PURE__ */ jsx103(ReakitPopover, { css: Popover, ...otherProps, ...popover, role: "tooltip", "aria-label": ariaLabel, children })
|
|
17863
18093
|
] });
|
|
17864
18094
|
};
|
|
17865
18095
|
|
|
17866
18096
|
// src/components/ProgressList/ProgressList.tsx
|
|
17867
|
-
import { css as
|
|
18097
|
+
import { css as css81 } from "@emotion/react";
|
|
17868
18098
|
import { useMemo as useMemo3 } from "react";
|
|
17869
18099
|
import { CgCheckO as CgCheckO2, CgRadioCheck, CgRecord } from "react-icons/cg";
|
|
17870
18100
|
|
|
17871
18101
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
17872
|
-
import { css as
|
|
17873
|
-
var progressListStyles =
|
|
18102
|
+
import { css as css80 } from "@emotion/react";
|
|
18103
|
+
var progressListStyles = css80`
|
|
17874
18104
|
display: flex;
|
|
17875
18105
|
flex-direction: column;
|
|
17876
18106
|
gap: var(--spacing-sm);
|
|
17877
18107
|
list-style-type: none;
|
|
17878
18108
|
`;
|
|
17879
|
-
var progressListItemStyles =
|
|
18109
|
+
var progressListItemStyles = css80`
|
|
17880
18110
|
display: flex;
|
|
17881
18111
|
gap: var(--spacing-base);
|
|
17882
18112
|
align-items: center;
|
|
17883
18113
|
`;
|
|
17884
18114
|
|
|
17885
18115
|
// src/components/ProgressList/ProgressList.tsx
|
|
17886
|
-
import { jsx as
|
|
18116
|
+
import { jsx as jsx104, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
|
|
17887
18117
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
17888
18118
|
const itemsWithStatus = useMemo3(() => {
|
|
17889
18119
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -17897,8 +18127,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
17897
18127
|
return { ...item, status };
|
|
17898
18128
|
});
|
|
17899
18129
|
}, [items, inProgressId]);
|
|
17900
|
-
return /* @__PURE__ */
|
|
17901
|
-
return /* @__PURE__ */
|
|
18130
|
+
return /* @__PURE__ */ jsx104("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
18131
|
+
return /* @__PURE__ */ jsx104(
|
|
17902
18132
|
ProgressListItem,
|
|
17903
18133
|
{
|
|
17904
18134
|
status,
|
|
@@ -17931,12 +18161,12 @@ var ProgressListItem = ({
|
|
|
17931
18161
|
}, [status, error]);
|
|
17932
18162
|
const statusStyles = useMemo3(() => {
|
|
17933
18163
|
if (error) {
|
|
17934
|
-
return errorLevel === "caution" ?
|
|
18164
|
+
return errorLevel === "caution" ? css81`
|
|
17935
18165
|
color: rgb(161, 98, 7);
|
|
17936
18166
|
& svg {
|
|
17937
18167
|
color: rgb(250, 204, 21);
|
|
17938
18168
|
}
|
|
17939
|
-
` :
|
|
18169
|
+
` : css81`
|
|
17940
18170
|
color: rgb(185, 28, 28);
|
|
17941
18171
|
& svg {
|
|
17942
18172
|
color: var(--brand-primary-2);
|
|
@@ -17944,35 +18174,35 @@ var ProgressListItem = ({
|
|
|
17944
18174
|
`;
|
|
17945
18175
|
}
|
|
17946
18176
|
const colorPerStatus = {
|
|
17947
|
-
completed:
|
|
18177
|
+
completed: css81`
|
|
17948
18178
|
opacity: 0.75;
|
|
17949
18179
|
`,
|
|
17950
|
-
inProgress:
|
|
18180
|
+
inProgress: css81`
|
|
17951
18181
|
-webkit-text-stroke-width: thin;
|
|
17952
18182
|
`,
|
|
17953
|
-
queued:
|
|
18183
|
+
queued: css81`
|
|
17954
18184
|
opacity: 0.5;
|
|
17955
18185
|
`
|
|
17956
18186
|
};
|
|
17957
18187
|
return colorPerStatus[status];
|
|
17958
18188
|
}, [status, error, errorLevel]);
|
|
17959
|
-
return /* @__PURE__ */
|
|
17960
|
-
/* @__PURE__ */
|
|
17961
|
-
/* @__PURE__ */
|
|
18189
|
+
return /* @__PURE__ */ jsxs71("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
18190
|
+
/* @__PURE__ */ jsx104(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx104("div", { children: /* @__PURE__ */ jsx104(Icon2, { size: 20 }) }) }),
|
|
18191
|
+
/* @__PURE__ */ jsxs71("div", { children: [
|
|
17962
18192
|
children,
|
|
17963
|
-
/* @__PURE__ */
|
|
18193
|
+
/* @__PURE__ */ jsx104("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
17964
18194
|
] })
|
|
17965
18195
|
] });
|
|
17966
18196
|
};
|
|
17967
18197
|
|
|
17968
18198
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
17969
|
-
import { css as
|
|
18199
|
+
import { css as css83 } from "@emotion/react";
|
|
17970
18200
|
import { useCallback as useCallback6, useMemo as useMemo4 } from "react";
|
|
17971
18201
|
import { CgCheck as CgCheck4 } from "react-icons/cg";
|
|
17972
18202
|
|
|
17973
18203
|
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
17974
|
-
import { css as
|
|
17975
|
-
var segmentedControlStyles =
|
|
18204
|
+
import { css as css82 } from "@emotion/react";
|
|
18205
|
+
var segmentedControlStyles = css82`
|
|
17976
18206
|
--segmented-control-rounded-value: var(--rounded-base);
|
|
17977
18207
|
--segmented-control-border-width: 1px;
|
|
17978
18208
|
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
@@ -17991,14 +18221,14 @@ var segmentedControlStyles = css81`
|
|
|
17991
18221
|
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
17992
18222
|
font-size: var(--fs-xs);
|
|
17993
18223
|
`;
|
|
17994
|
-
var segmentedControlVerticalStyles =
|
|
18224
|
+
var segmentedControlVerticalStyles = css82`
|
|
17995
18225
|
flex-direction: column;
|
|
17996
18226
|
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
17997
18227
|
var(--segmented-control-rounded-value) 0 0;
|
|
17998
18228
|
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
17999
18229
|
var(--segmented-control-rounded-value);
|
|
18000
18230
|
`;
|
|
18001
|
-
var segmentedControlItemStyles =
|
|
18231
|
+
var segmentedControlItemStyles = css82`
|
|
18002
18232
|
&:first-of-type label {
|
|
18003
18233
|
border-radius: var(--segmented-control-first-border-radius);
|
|
18004
18234
|
}
|
|
@@ -18006,10 +18236,10 @@ var segmentedControlItemStyles = css81`
|
|
|
18006
18236
|
border-radius: var(--segmented-control-last-border-radius);
|
|
18007
18237
|
}
|
|
18008
18238
|
`;
|
|
18009
|
-
var segmentedControlInputStyles =
|
|
18239
|
+
var segmentedControlInputStyles = css82`
|
|
18010
18240
|
${accessibleHidden}
|
|
18011
18241
|
`;
|
|
18012
|
-
var segmentedControlLabelStyles = (checked, disabled) =>
|
|
18242
|
+
var segmentedControlLabelStyles = (checked, disabled) => css82`
|
|
18013
18243
|
position: relative;
|
|
18014
18244
|
display: flex;
|
|
18015
18245
|
align-items: center;
|
|
@@ -18076,23 +18306,23 @@ var segmentedControlLabelStyles = (checked, disabled) => css81`
|
|
|
18076
18306
|
`}
|
|
18077
18307
|
}
|
|
18078
18308
|
`;
|
|
18079
|
-
var segmentedControlLabelIconOnlyStyles =
|
|
18309
|
+
var segmentedControlLabelIconOnlyStyles = css82`
|
|
18080
18310
|
padding-inline: 0.5em;
|
|
18081
18311
|
`;
|
|
18082
|
-
var segmentedControlLabelCheckStyles =
|
|
18312
|
+
var segmentedControlLabelCheckStyles = css82`
|
|
18083
18313
|
opacity: 0.5;
|
|
18084
18314
|
`;
|
|
18085
|
-
var segmentedControlLabelContentStyles =
|
|
18315
|
+
var segmentedControlLabelContentStyles = css82`
|
|
18086
18316
|
display: flex;
|
|
18087
18317
|
align-items: center;
|
|
18088
18318
|
justify-content: center;
|
|
18089
18319
|
gap: var(--spacing-sm);
|
|
18090
18320
|
height: 100%;
|
|
18091
18321
|
`;
|
|
18092
|
-
var segmentedControlLabelTextStyles =
|
|
18322
|
+
var segmentedControlLabelTextStyles = css82``;
|
|
18093
18323
|
|
|
18094
18324
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
18095
|
-
import { jsx as
|
|
18325
|
+
import { jsx as jsx105, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
|
|
18096
18326
|
var SegmentedControl = ({
|
|
18097
18327
|
name,
|
|
18098
18328
|
options,
|
|
@@ -18114,16 +18344,16 @@ var SegmentedControl = ({
|
|
|
18114
18344
|
);
|
|
18115
18345
|
const sizeStyles = useMemo4(() => {
|
|
18116
18346
|
const map = {
|
|
18117
|
-
sm:
|
|
18118
|
-
md:
|
|
18119
|
-
lg:
|
|
18347
|
+
sm: css83({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
18348
|
+
md: css83({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
18349
|
+
lg: css83({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
|
|
18120
18350
|
};
|
|
18121
18351
|
return map[size];
|
|
18122
18352
|
}, [size]);
|
|
18123
18353
|
const isIconOnly = useMemo4(() => {
|
|
18124
18354
|
return options.every((option) => option.icon && !option.label);
|
|
18125
18355
|
}, [options]);
|
|
18126
|
-
return /* @__PURE__ */
|
|
18356
|
+
return /* @__PURE__ */ jsx105(
|
|
18127
18357
|
"div",
|
|
18128
18358
|
{
|
|
18129
18359
|
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
@@ -18131,11 +18361,11 @@ var SegmentedControl = ({
|
|
|
18131
18361
|
children: options.map((option, index) => {
|
|
18132
18362
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
18133
18363
|
const isDisabled = disabled || option.disabled;
|
|
18134
|
-
return /* @__PURE__ */
|
|
18364
|
+
return /* @__PURE__ */ jsx105(
|
|
18135
18365
|
Tooltip,
|
|
18136
18366
|
{
|
|
18137
18367
|
title: isDisabled || !option.tooltip ? "" : option.tooltip,
|
|
18138
|
-
children: /* @__PURE__ */
|
|
18368
|
+
children: /* @__PURE__ */ jsx105("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ jsxs72(
|
|
18139
18369
|
"label",
|
|
18140
18370
|
{
|
|
18141
18371
|
css: [
|
|
@@ -18144,7 +18374,7 @@ var SegmentedControl = ({
|
|
|
18144
18374
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
18145
18375
|
],
|
|
18146
18376
|
children: [
|
|
18147
|
-
/* @__PURE__ */
|
|
18377
|
+
/* @__PURE__ */ jsx105(
|
|
18148
18378
|
"input",
|
|
18149
18379
|
{
|
|
18150
18380
|
css: segmentedControlInputStyles,
|
|
@@ -18156,10 +18386,10 @@ var SegmentedControl = ({
|
|
|
18156
18386
|
disabled: isDisabled
|
|
18157
18387
|
}
|
|
18158
18388
|
),
|
|
18159
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */
|
|
18160
|
-
/* @__PURE__ */
|
|
18161
|
-
!option.icon ? null : /* @__PURE__ */
|
|
18162
|
-
!text ? null : /* @__PURE__ */
|
|
18389
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx105(CgCheck4, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
18390
|
+
/* @__PURE__ */ jsxs72("span", { css: segmentedControlLabelContentStyles, children: [
|
|
18391
|
+
!option.icon ? null : /* @__PURE__ */ jsx105(option.icon, { size: "1.5em" }),
|
|
18392
|
+
!text ? null : /* @__PURE__ */ jsx105("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
18163
18393
|
] })
|
|
18164
18394
|
]
|
|
18165
18395
|
}
|
|
@@ -18173,18 +18403,18 @@ var SegmentedControl = ({
|
|
|
18173
18403
|
};
|
|
18174
18404
|
|
|
18175
18405
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
18176
|
-
import { css as
|
|
18406
|
+
import { css as css84, keyframes as keyframes4 } from "@emotion/react";
|
|
18177
18407
|
var lightFadingOut = keyframes4`
|
|
18178
18408
|
from { opacity: 0.1; }
|
|
18179
18409
|
to { opacity: 0.025; }
|
|
18180
18410
|
`;
|
|
18181
|
-
var skeletonStyles =
|
|
18411
|
+
var skeletonStyles = css84`
|
|
18182
18412
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
18183
18413
|
background-color: var(--gray-900);
|
|
18184
18414
|
`;
|
|
18185
18415
|
|
|
18186
18416
|
// src/components/Skeleton/Skeleton.tsx
|
|
18187
|
-
import { jsx as
|
|
18417
|
+
import { jsx as jsx106 } from "@emotion/react/jsx-runtime";
|
|
18188
18418
|
var Skeleton = ({
|
|
18189
18419
|
width = "100%",
|
|
18190
18420
|
height = "1.25rem",
|
|
@@ -18192,7 +18422,7 @@ var Skeleton = ({
|
|
|
18192
18422
|
circle = false,
|
|
18193
18423
|
children,
|
|
18194
18424
|
...otherProps
|
|
18195
|
-
}) => /* @__PURE__ */
|
|
18425
|
+
}) => /* @__PURE__ */ jsx106(
|
|
18196
18426
|
"div",
|
|
18197
18427
|
{
|
|
18198
18428
|
css: [
|
|
@@ -18215,8 +18445,8 @@ var Skeleton = ({
|
|
|
18215
18445
|
import * as React23 from "react";
|
|
18216
18446
|
|
|
18217
18447
|
// src/components/Switch/Switch.styles.ts
|
|
18218
|
-
import { css as
|
|
18219
|
-
var SwitchInputContainer =
|
|
18448
|
+
import { css as css85 } from "@emotion/react";
|
|
18449
|
+
var SwitchInputContainer = css85`
|
|
18220
18450
|
cursor: pointer;
|
|
18221
18451
|
display: inline-block;
|
|
18222
18452
|
position: relative;
|
|
@@ -18225,7 +18455,7 @@ var SwitchInputContainer = css84`
|
|
|
18225
18455
|
vertical-align: middle;
|
|
18226
18456
|
user-select: none;
|
|
18227
18457
|
`;
|
|
18228
|
-
var SwitchInput =
|
|
18458
|
+
var SwitchInput = css85`
|
|
18229
18459
|
appearance: none;
|
|
18230
18460
|
border-radius: var(--rounded-full);
|
|
18231
18461
|
background-color: var(--white);
|
|
@@ -18263,7 +18493,7 @@ var SwitchInput = css84`
|
|
|
18263
18493
|
cursor: not-allowed;
|
|
18264
18494
|
}
|
|
18265
18495
|
`;
|
|
18266
|
-
var SwitchInputDisabled =
|
|
18496
|
+
var SwitchInputDisabled = css85`
|
|
18267
18497
|
opacity: var(--opacity-50);
|
|
18268
18498
|
cursor: not-allowed;
|
|
18269
18499
|
|
|
@@ -18271,7 +18501,7 @@ var SwitchInputDisabled = css84`
|
|
|
18271
18501
|
cursor: not-allowed;
|
|
18272
18502
|
}
|
|
18273
18503
|
`;
|
|
18274
|
-
var SwitchInputLabel =
|
|
18504
|
+
var SwitchInputLabel = css85`
|
|
18275
18505
|
align-items: center;
|
|
18276
18506
|
color: var(--brand-secondary-1);
|
|
18277
18507
|
display: inline-flex;
|
|
@@ -18293,26 +18523,26 @@ var SwitchInputLabel = css84`
|
|
|
18293
18523
|
top: 0;
|
|
18294
18524
|
}
|
|
18295
18525
|
`;
|
|
18296
|
-
var SwitchText =
|
|
18526
|
+
var SwitchText = css85`
|
|
18297
18527
|
color: var(--gray-500);
|
|
18298
18528
|
font-size: var(--fs-sm);
|
|
18299
18529
|
padding-inline: var(--spacing-2xl) 0;
|
|
18300
18530
|
`;
|
|
18301
18531
|
|
|
18302
18532
|
// src/components/Switch/Switch.tsx
|
|
18303
|
-
import { Fragment as
|
|
18533
|
+
import { Fragment as Fragment18, jsx as jsx107, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
|
|
18304
18534
|
var Switch = React23.forwardRef(
|
|
18305
18535
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
18306
18536
|
let additionalText = infoText;
|
|
18307
18537
|
if (infoText && toggleText) {
|
|
18308
18538
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
18309
18539
|
}
|
|
18310
|
-
return /* @__PURE__ */
|
|
18311
|
-
/* @__PURE__ */
|
|
18312
|
-
/* @__PURE__ */
|
|
18313
|
-
/* @__PURE__ */
|
|
18540
|
+
return /* @__PURE__ */ jsxs73(Fragment18, { children: [
|
|
18541
|
+
/* @__PURE__ */ jsxs73("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
18542
|
+
/* @__PURE__ */ jsx107("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
18543
|
+
/* @__PURE__ */ jsx107("span", { css: SwitchInputLabel, children: label })
|
|
18314
18544
|
] }),
|
|
18315
|
-
additionalText ? /* @__PURE__ */
|
|
18545
|
+
additionalText ? /* @__PURE__ */ jsx107("p", { css: SwitchText, children: additionalText }) : null,
|
|
18316
18546
|
children
|
|
18317
18547
|
] });
|
|
18318
18548
|
}
|
|
@@ -18322,8 +18552,8 @@ var Switch = React23.forwardRef(
|
|
|
18322
18552
|
import * as React24 from "react";
|
|
18323
18553
|
|
|
18324
18554
|
// src/components/Table/Table.styles.ts
|
|
18325
|
-
import { css as
|
|
18326
|
-
var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) =>
|
|
18555
|
+
import { css as css86 } from "@emotion/react";
|
|
18556
|
+
var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css86`
|
|
18327
18557
|
border-bottom: 1px solid var(--gray-400);
|
|
18328
18558
|
border-collapse: collapse;
|
|
18329
18559
|
min-width: 100%;
|
|
@@ -18334,55 +18564,55 @@ var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css85
|
|
|
18334
18564
|
padding: ${cellPadding};
|
|
18335
18565
|
}
|
|
18336
18566
|
`;
|
|
18337
|
-
var tableHead =
|
|
18567
|
+
var tableHead = css86`
|
|
18338
18568
|
background: var(--gray-100);
|
|
18339
18569
|
color: var(--brand-secondary-1);
|
|
18340
18570
|
text-align: left;
|
|
18341
18571
|
`;
|
|
18342
|
-
var tableRow =
|
|
18572
|
+
var tableRow = css86`
|
|
18343
18573
|
border-bottom: 1px solid var(--gray-200);
|
|
18344
18574
|
`;
|
|
18345
|
-
var tableCellHead =
|
|
18575
|
+
var tableCellHead = css86`
|
|
18346
18576
|
font-size: var(--fs-sm);
|
|
18347
18577
|
text-transform: uppercase;
|
|
18348
18578
|
font-weight: var(--fw-bold);
|
|
18349
18579
|
`;
|
|
18350
18580
|
|
|
18351
18581
|
// src/components/Table/Table.tsx
|
|
18352
|
-
import { jsx as
|
|
18582
|
+
import { jsx as jsx108 } from "@emotion/react/jsx-runtime";
|
|
18353
18583
|
var Table = React24.forwardRef(
|
|
18354
18584
|
({ children, cellPadding, ...otherProps }, ref) => {
|
|
18355
|
-
return /* @__PURE__ */
|
|
18585
|
+
return /* @__PURE__ */ jsx108("table", { ref, css: table({ cellPadding }), ...otherProps, children });
|
|
18356
18586
|
}
|
|
18357
18587
|
);
|
|
18358
18588
|
var TableHead = React24.forwardRef(
|
|
18359
18589
|
({ children, ...otherProps }, ref) => {
|
|
18360
|
-
return /* @__PURE__ */
|
|
18590
|
+
return /* @__PURE__ */ jsx108("thead", { ref, css: tableHead, ...otherProps, children });
|
|
18361
18591
|
}
|
|
18362
18592
|
);
|
|
18363
18593
|
var TableBody = React24.forwardRef(
|
|
18364
18594
|
({ children, ...otherProps }, ref) => {
|
|
18365
|
-
return /* @__PURE__ */
|
|
18595
|
+
return /* @__PURE__ */ jsx108("tbody", { ref, ...otherProps, children });
|
|
18366
18596
|
}
|
|
18367
18597
|
);
|
|
18368
18598
|
var TableFoot = React24.forwardRef(
|
|
18369
18599
|
({ children, ...otherProps }, ref) => {
|
|
18370
|
-
return /* @__PURE__ */
|
|
18600
|
+
return /* @__PURE__ */ jsx108("tfoot", { ref, ...otherProps, children });
|
|
18371
18601
|
}
|
|
18372
18602
|
);
|
|
18373
18603
|
var TableRow = React24.forwardRef(
|
|
18374
18604
|
({ children, ...otherProps }, ref) => {
|
|
18375
|
-
return /* @__PURE__ */
|
|
18605
|
+
return /* @__PURE__ */ jsx108("tr", { ref, css: tableRow, ...otherProps, children });
|
|
18376
18606
|
}
|
|
18377
18607
|
);
|
|
18378
18608
|
var TableCellHead = React24.forwardRef(
|
|
18379
18609
|
({ children, ...otherProps }, ref) => {
|
|
18380
|
-
return /* @__PURE__ */
|
|
18610
|
+
return /* @__PURE__ */ jsx108("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
18381
18611
|
}
|
|
18382
18612
|
);
|
|
18383
18613
|
var TableCellData = React24.forwardRef(
|
|
18384
18614
|
({ children, ...otherProps }, ref) => {
|
|
18385
|
-
return /* @__PURE__ */
|
|
18615
|
+
return /* @__PURE__ */ jsx108("td", { ref, ...otherProps, children });
|
|
18386
18616
|
}
|
|
18387
18617
|
);
|
|
18388
18618
|
|
|
@@ -18396,8 +18626,8 @@ import {
|
|
|
18396
18626
|
} from "reakit/Tab";
|
|
18397
18627
|
|
|
18398
18628
|
// src/components/Tabs/Tabs.styles.ts
|
|
18399
|
-
import { css as
|
|
18400
|
-
var tabButtonStyles =
|
|
18629
|
+
import { css as css87 } from "@emotion/react";
|
|
18630
|
+
var tabButtonStyles = css87`
|
|
18401
18631
|
align-items: center;
|
|
18402
18632
|
border: 0;
|
|
18403
18633
|
height: 2.5rem;
|
|
@@ -18414,14 +18644,14 @@ var tabButtonStyles = css86`
|
|
|
18414
18644
|
box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
|
|
18415
18645
|
}
|
|
18416
18646
|
`;
|
|
18417
|
-
var tabButtonGroupStyles =
|
|
18647
|
+
var tabButtonGroupStyles = css87`
|
|
18418
18648
|
display: flex;
|
|
18419
18649
|
gap: var(--spacing-base);
|
|
18420
18650
|
border-bottom: 1px solid var(--gray-300);
|
|
18421
18651
|
`;
|
|
18422
18652
|
|
|
18423
18653
|
// src/components/Tabs/Tabs.tsx
|
|
18424
|
-
import { jsx as
|
|
18654
|
+
import { jsx as jsx109 } from "@emotion/react/jsx-runtime";
|
|
18425
18655
|
var CurrentTabContext = createContext6(null);
|
|
18426
18656
|
var useCurrentTab = () => {
|
|
18427
18657
|
const context = useContext7(CurrentTabContext);
|
|
@@ -18450,24 +18680,24 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
18450
18680
|
tab.setSelectedId(selected);
|
|
18451
18681
|
}
|
|
18452
18682
|
}, [selected]);
|
|
18453
|
-
return /* @__PURE__ */
|
|
18683
|
+
return /* @__PURE__ */ jsx109(CurrentTabContext.Provider, { value: tab, children });
|
|
18454
18684
|
};
|
|
18455
18685
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
18456
18686
|
const currentTab = useCurrentTab();
|
|
18457
|
-
return /* @__PURE__ */
|
|
18687
|
+
return /* @__PURE__ */ jsx109(ReakitTabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
18458
18688
|
};
|
|
18459
18689
|
var TabButton = ({ children, id, ...props }) => {
|
|
18460
18690
|
const currentTab = useCurrentTab();
|
|
18461
|
-
return /* @__PURE__ */
|
|
18691
|
+
return /* @__PURE__ */ jsx109(ReakitTab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
18462
18692
|
};
|
|
18463
18693
|
var TabContent = ({ children, ...props }) => {
|
|
18464
18694
|
const currentTab = useCurrentTab();
|
|
18465
|
-
return /* @__PURE__ */
|
|
18695
|
+
return /* @__PURE__ */ jsx109(ReakitTabPanel, { ...props, ...currentTab, children });
|
|
18466
18696
|
};
|
|
18467
18697
|
|
|
18468
18698
|
// src/components/Validation/StatusBullet.styles.ts
|
|
18469
|
-
import { css as
|
|
18470
|
-
var StatusBulletContainer =
|
|
18699
|
+
import { css as css88 } from "@emotion/react";
|
|
18700
|
+
var StatusBulletContainer = css88`
|
|
18471
18701
|
align-items: center;
|
|
18472
18702
|
align-self: center;
|
|
18473
18703
|
color: var(--gray-500);
|
|
@@ -18484,33 +18714,33 @@ var StatusBulletContainer = css87`
|
|
|
18484
18714
|
display: block;
|
|
18485
18715
|
}
|
|
18486
18716
|
`;
|
|
18487
|
-
var StatusBulletBase =
|
|
18717
|
+
var StatusBulletBase = css88`
|
|
18488
18718
|
font-size: var(--fs-sm);
|
|
18489
18719
|
&:before {
|
|
18490
18720
|
width: var(--fs-xs);
|
|
18491
18721
|
height: var(--fs-xs);
|
|
18492
18722
|
}
|
|
18493
18723
|
`;
|
|
18494
|
-
var StatusBulletSmall =
|
|
18724
|
+
var StatusBulletSmall = css88`
|
|
18495
18725
|
font-size: var(--fs-xs);
|
|
18496
18726
|
&:before {
|
|
18497
18727
|
width: var(--fs-xxs);
|
|
18498
18728
|
height: var(--fs-xxs);
|
|
18499
18729
|
}
|
|
18500
18730
|
`;
|
|
18501
|
-
var StatusDraft =
|
|
18731
|
+
var StatusDraft = css88`
|
|
18502
18732
|
&:before {
|
|
18503
18733
|
background: var(--white);
|
|
18504
18734
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
18505
18735
|
}
|
|
18506
18736
|
`;
|
|
18507
|
-
var StatusModified =
|
|
18737
|
+
var StatusModified = css88`
|
|
18508
18738
|
&:before {
|
|
18509
18739
|
background: linear-gradient(to right, var(--white) 50%, var(--primary-action-default) 50% 100%);
|
|
18510
18740
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
18511
18741
|
}
|
|
18512
18742
|
`;
|
|
18513
|
-
var StatusError =
|
|
18743
|
+
var StatusError = css88`
|
|
18514
18744
|
color: var(--error);
|
|
18515
18745
|
&:before {
|
|
18516
18746
|
/* TODO: replace this with an svg icon */
|
|
@@ -18523,19 +18753,19 @@ var StatusError = css87`
|
|
|
18523
18753
|
);
|
|
18524
18754
|
}
|
|
18525
18755
|
`;
|
|
18526
|
-
var StatusPublished =
|
|
18756
|
+
var StatusPublished = css88`
|
|
18527
18757
|
&:before {
|
|
18528
18758
|
background: var(--primary-action-default);
|
|
18529
18759
|
}
|
|
18530
18760
|
`;
|
|
18531
|
-
var StatusOrphan =
|
|
18761
|
+
var StatusOrphan = css88`
|
|
18532
18762
|
&:before {
|
|
18533
18763
|
background: var(--brand-secondary-5);
|
|
18534
18764
|
}
|
|
18535
18765
|
`;
|
|
18536
18766
|
|
|
18537
18767
|
// src/components/Validation/StatusBullet.tsx
|
|
18538
|
-
import { jsx as
|
|
18768
|
+
import { jsx as jsx110 } from "@emotion/react/jsx-runtime";
|
|
18539
18769
|
var StatusBullet = ({
|
|
18540
18770
|
status,
|
|
18541
18771
|
hideText = false,
|
|
@@ -18553,7 +18783,7 @@ var StatusBullet = ({
|
|
|
18553
18783
|
Previous: StatusDraft
|
|
18554
18784
|
};
|
|
18555
18785
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
18556
|
-
return /* @__PURE__ */
|
|
18786
|
+
return /* @__PURE__ */ jsx110(
|
|
18557
18787
|
"span",
|
|
18558
18788
|
{
|
|
18559
18789
|
role: "status",
|
|
@@ -18572,7 +18802,6 @@ export {
|
|
|
18572
18802
|
AvatarGroup,
|
|
18573
18803
|
Badge,
|
|
18574
18804
|
Banner,
|
|
18575
|
-
BrokenImage,
|
|
18576
18805
|
Button,
|
|
18577
18806
|
ButtonWithMenu,
|
|
18578
18807
|
Callout,
|
|
@@ -18619,6 +18848,7 @@ export {
|
|
|
18619
18848
|
IntegrationTile,
|
|
18620
18849
|
JsonEditor,
|
|
18621
18850
|
Label,
|
|
18851
|
+
LabelLeadingIcon,
|
|
18622
18852
|
Legend,
|
|
18623
18853
|
LimitsBar,
|
|
18624
18854
|
Link,
|
|
@@ -18635,6 +18865,7 @@ export {
|
|
|
18635
18865
|
MenuItem,
|
|
18636
18866
|
MenuItemSeparator,
|
|
18637
18867
|
Modal,
|
|
18868
|
+
MultilineChip,
|
|
18638
18869
|
PageHeaderSection,
|
|
18639
18870
|
Paragraph,
|
|
18640
18871
|
ParameterDataResource,
|
|
@@ -18666,6 +18897,7 @@ export {
|
|
|
18666
18897
|
ProgressList,
|
|
18667
18898
|
ProgressListItem,
|
|
18668
18899
|
ResolveIcon,
|
|
18900
|
+
RichTextToolbarIcon,
|
|
18669
18901
|
ScrollableList,
|
|
18670
18902
|
ScrollableListInputItem,
|
|
18671
18903
|
ScrollableListItem,
|
|
@@ -18746,6 +18978,8 @@ export {
|
|
|
18746
18978
|
replaceUnderscoreInString,
|
|
18747
18979
|
richTextBuiltInElements,
|
|
18748
18980
|
richTextBuiltInFormats,
|
|
18981
|
+
richTextToolbarButton,
|
|
18982
|
+
richTextToolbarButtonActive,
|
|
18749
18983
|
ripple,
|
|
18750
18984
|
scrollbarStyles,
|
|
18751
18985
|
settings,
|