@uniformdev/design-system 19.38.2 → 19.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +1095 -858
- package/dist/index.d.mts +178 -84
- package/dist/index.d.ts +178 -84
- package/dist/index.js +1217 -976
- package/package.json +17 -17
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
|
|
@@ -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-testid": "menu-group", children: [
|
|
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
|
};
|
|
@@ -11449,7 +11493,12 @@ var menu = css25`
|
|
|
11449
11493
|
${supports("max-height: 60dvh")} {
|
|
11450
11494
|
max-height: 55dvh; // modern browser support
|
|
11451
11495
|
}
|
|
11496
|
+
|
|
11452
11497
|
${scrollbarStyles}
|
|
11498
|
+
|
|
11499
|
+
&:focus {
|
|
11500
|
+
outline: none;
|
|
11501
|
+
}
|
|
11453
11502
|
`;
|
|
11454
11503
|
|
|
11455
11504
|
// src/components/Menu/Menu.tsx
|
|
@@ -12302,7 +12351,6 @@ import { CgClose as CgClose3 } from "react-icons/cg";
|
|
|
12302
12351
|
import { css as css36 } from "@emotion/react";
|
|
12303
12352
|
var ChipContainer = css36`
|
|
12304
12353
|
border-radius: var(--rounded-full);
|
|
12305
|
-
background: lime;
|
|
12306
12354
|
display: inline-flex;
|
|
12307
12355
|
transition: background var(--duration-fast) var(--timing-ease-out),
|
|
12308
12356
|
color var(--duration-fast) var(--timing-ease-out);
|
|
@@ -12364,6 +12412,9 @@ var ChipMedium = css36`
|
|
|
12364
12412
|
padding: var(--spacing-sm) var(--spacing-xs);
|
|
12365
12413
|
}
|
|
12366
12414
|
`;
|
|
12415
|
+
var ChipMultiline = css36`
|
|
12416
|
+
padding-inline: var(--spacing-sm);
|
|
12417
|
+
`;
|
|
12367
12418
|
var ChipThemeAccentLight = css36`
|
|
12368
12419
|
background: var(--accent-light);
|
|
12369
12420
|
color: var(--brand-secondary-1);
|
|
@@ -12489,6 +12540,14 @@ var ChipActionButton = css36`
|
|
|
12489
12540
|
|
|
12490
12541
|
// src/components/Chip/Chip.tsx
|
|
12491
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
|
+
};
|
|
12492
12551
|
var Chip = ({
|
|
12493
12552
|
icon,
|
|
12494
12553
|
text,
|
|
@@ -12502,14 +12561,6 @@ var Chip = ({
|
|
|
12502
12561
|
sm: ChipSmall,
|
|
12503
12562
|
md: ChipMedium
|
|
12504
12563
|
};
|
|
12505
|
-
const chipTheme = {
|
|
12506
|
-
"accent-light": ChipThemeAccentLight,
|
|
12507
|
-
"accent-dark": ChipThemeAccentDark,
|
|
12508
|
-
"accent-alt-light": ChipAltThemeAccentLight,
|
|
12509
|
-
"accent-alt-dark": ChipAltThemeAccentDark,
|
|
12510
|
-
"neutral-light": ChipThemeNeutralLight,
|
|
12511
|
-
"neutral-dark": ChipThemeNeutralDark
|
|
12512
|
-
};
|
|
12513
12564
|
return /* @__PURE__ */ jsxs22("span", { css: [ChipContainer, chipSize[size], chipTheme[theme]], ...props, children: [
|
|
12514
12565
|
icon ? /* @__PURE__ */ jsxs22(Fragment5, { children: [
|
|
12515
12566
|
/* @__PURE__ */ jsx37("span", { role: "presentation", css: [ChipIcon], children: /* @__PURE__ */ jsx37(Icon, { icon, iconColor: "currentColor", size: "1rem" }) }),
|
|
@@ -12533,9 +12584,101 @@ var DismissibleChipAction = ({ onDismiss, ...props }) => {
|
|
|
12533
12584
|
);
|
|
12534
12585
|
};
|
|
12535
12586
|
|
|
12536
|
-
// src/components/
|
|
12587
|
+
// src/components/Chip/MultilineChip.styles.ts
|
|
12537
12588
|
import { css as css37 } from "@emotion/react";
|
|
12538
|
-
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`
|
|
12539
12682
|
align-items: center;
|
|
12540
12683
|
border-radius: var(--rounded-full);
|
|
12541
12684
|
border: 1px solid var(--gray-300);
|
|
@@ -12548,16 +12691,16 @@ var counterContainer = (bgColor) => css37`
|
|
|
12548
12691
|
width: var(--spacing-base);
|
|
12549
12692
|
height: var(--spacing-base);
|
|
12550
12693
|
`;
|
|
12551
|
-
var counterZeroValue =
|
|
12694
|
+
var counterZeroValue = css38`
|
|
12552
12695
|
background: var(--brand-secondary-1);
|
|
12553
12696
|
border-radius: var(--rounded-full);
|
|
12554
12697
|
width: 2px;
|
|
12555
12698
|
height: 2px;
|
|
12556
12699
|
`;
|
|
12557
|
-
var counterTripleValue =
|
|
12700
|
+
var counterTripleValue = css38`
|
|
12558
12701
|
position: relative;
|
|
12559
12702
|
`;
|
|
12560
|
-
var counterIcon =
|
|
12703
|
+
var counterIcon = css38`
|
|
12561
12704
|
border-radius: var(--rounded-full);
|
|
12562
12705
|
background: var(--white);
|
|
12563
12706
|
color: var(--brand-secondary-3);
|
|
@@ -12568,21 +12711,21 @@ var counterIcon = css37`
|
|
|
12568
12711
|
`;
|
|
12569
12712
|
|
|
12570
12713
|
// src/components/Counter/Counter.tsx
|
|
12571
|
-
import { jsx as
|
|
12714
|
+
import { jsx as jsx39, jsxs as jsxs23 } from "@emotion/react/jsx-runtime";
|
|
12572
12715
|
var Counter = ({ count, bgColor = "transparent", ...props }) => {
|
|
12573
12716
|
if (typeof count === "undefined") {
|
|
12574
12717
|
return null;
|
|
12575
12718
|
}
|
|
12576
12719
|
const isTripleDigits = count > 99 ? /* @__PURE__ */ jsxs23("span", { css: counterTripleValue, title: `${count}`, children: [
|
|
12577
12720
|
"99",
|
|
12578
|
-
/* @__PURE__ */
|
|
12721
|
+
/* @__PURE__ */ jsx39(Icon, { icon: "math-plus", iconColor: "currentColor", size: "0.5rem", css: counterIcon })
|
|
12579
12722
|
] }) : count;
|
|
12580
|
-
const formatCount = count === 0 ? /* @__PURE__ */
|
|
12581
|
-
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 });
|
|
12582
12725
|
};
|
|
12583
12726
|
|
|
12584
12727
|
// src/components/DashedBox/DashedBox.styles.ts
|
|
12585
|
-
import { css as
|
|
12728
|
+
import { css as css39 } from "@emotion/react";
|
|
12586
12729
|
var minHeight = (prop) => {
|
|
12587
12730
|
const values = {
|
|
12588
12731
|
auto: "auto",
|
|
@@ -12601,7 +12744,7 @@ var alignItemsConvert = (props) => {
|
|
|
12601
12744
|
};
|
|
12602
12745
|
return alignment[props];
|
|
12603
12746
|
};
|
|
12604
|
-
var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) =>
|
|
12747
|
+
var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) => css39`
|
|
12605
12748
|
align-items: ${alignItemsConvert(textAlign)};
|
|
12606
12749
|
border: 2px dashed var(--gray-300);
|
|
12607
12750
|
border-radius: var(--rounded-base);
|
|
@@ -12616,7 +12759,7 @@ var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) => css38`
|
|
|
12616
12759
|
`;
|
|
12617
12760
|
|
|
12618
12761
|
// src/components/DashedBox/DashedBox.tsx
|
|
12619
|
-
import { jsx as
|
|
12762
|
+
import { jsx as jsx40 } from "@emotion/react/jsx-runtime";
|
|
12620
12763
|
var DashedBox = ({
|
|
12621
12764
|
bgColor = "transparent",
|
|
12622
12765
|
textAlign = "center",
|
|
@@ -12624,7 +12767,7 @@ var DashedBox = ({
|
|
|
12624
12767
|
children,
|
|
12625
12768
|
...props
|
|
12626
12769
|
}) => {
|
|
12627
|
-
return /* @__PURE__ */
|
|
12770
|
+
return /* @__PURE__ */ jsx40("div", { css: DashedBoxContainer({ bgColor, boxHeight, textAlign }), ...props, children });
|
|
12628
12771
|
};
|
|
12629
12772
|
|
|
12630
12773
|
// src/components/DescriptionList/DescriptionList.tsx
|
|
@@ -12632,33 +12775,33 @@ import React10 from "react";
|
|
|
12632
12775
|
import { TbCheck, TbMinus } from "react-icons/tb";
|
|
12633
12776
|
|
|
12634
12777
|
// src/components/DescriptionList/DescriptionList.styles.ts
|
|
12635
|
-
import { css as
|
|
12636
|
-
var descriptionListStyles =
|
|
12778
|
+
import { css as css40 } from "@emotion/react";
|
|
12779
|
+
var descriptionListStyles = css40`
|
|
12637
12780
|
display: grid;
|
|
12638
12781
|
grid-template-columns: max-content auto;
|
|
12639
12782
|
gap: var(--spacing-xs) var(--spacing-md);
|
|
12640
12783
|
`;
|
|
12641
|
-
var descriptionListLabelStyles =
|
|
12784
|
+
var descriptionListLabelStyles = css40`
|
|
12642
12785
|
display: flex;
|
|
12643
12786
|
align-items: center;
|
|
12644
12787
|
color: var(--gray-500);
|
|
12645
12788
|
`;
|
|
12646
|
-
var descriptionListValueStyles =
|
|
12789
|
+
var descriptionListValueStyles = css40`
|
|
12647
12790
|
display: flex;
|
|
12648
12791
|
align-items: center;
|
|
12649
12792
|
margin: 0;
|
|
12650
12793
|
`;
|
|
12651
12794
|
|
|
12652
12795
|
// src/components/DescriptionList/DescriptionList.tsx
|
|
12653
|
-
import { jsx as
|
|
12796
|
+
import { jsx as jsx41, jsxs as jsxs24 } from "@emotion/react/jsx-runtime";
|
|
12654
12797
|
var DescriptionList = React10.forwardRef(
|
|
12655
12798
|
({ items, ...listProps }, ref) => {
|
|
12656
12799
|
if (!(items == null ? void 0 : items.length)) {
|
|
12657
12800
|
return null;
|
|
12658
12801
|
}
|
|
12659
|
-
return /* @__PURE__ */
|
|
12660
|
-
/* @__PURE__ */
|
|
12661
|
-
/* @__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 })
|
|
12662
12805
|
] }, label)) });
|
|
12663
12806
|
}
|
|
12664
12807
|
);
|
|
@@ -12666,15 +12809,15 @@ DescriptionList.displayName = "DescriptionList";
|
|
|
12666
12809
|
var DescriptionListValueBoolean = ({ value }) => {
|
|
12667
12810
|
const Icon2 = value ? TbCheck : TbMinus;
|
|
12668
12811
|
const color = value ? "var(--accent-dark)" : "var(--gray-500)";
|
|
12669
|
-
return /* @__PURE__ */
|
|
12812
|
+
return /* @__PURE__ */ jsx41(Icon2, { style: { color }, strokeWidth: 3 });
|
|
12670
12813
|
};
|
|
12671
12814
|
|
|
12672
12815
|
// src/components/Details/Details.tsx
|
|
12673
12816
|
import * as React11 from "react";
|
|
12674
12817
|
|
|
12675
12818
|
// src/components/Details/Details.styles.ts
|
|
12676
|
-
import { css as
|
|
12677
|
-
var details =
|
|
12819
|
+
import { css as css41 } from "@emotion/react";
|
|
12820
|
+
var details = css41`
|
|
12678
12821
|
cursor: pointer;
|
|
12679
12822
|
&[open] {
|
|
12680
12823
|
& > summary svg {
|
|
@@ -12682,11 +12825,11 @@ var details = css40`
|
|
|
12682
12825
|
}
|
|
12683
12826
|
}
|
|
12684
12827
|
`;
|
|
12685
|
-
var detailsContent =
|
|
12828
|
+
var detailsContent = css41`
|
|
12686
12829
|
animation: ${fadeInRtl} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
12687
12830
|
will-change: height;
|
|
12688
12831
|
`;
|
|
12689
|
-
var summary =
|
|
12832
|
+
var summary = css41`
|
|
12690
12833
|
align-items: center;
|
|
12691
12834
|
display: grid;
|
|
12692
12835
|
grid-template-columns: 1.25rem 1fr;
|
|
@@ -12699,16 +12842,16 @@ var summary = css40`
|
|
|
12699
12842
|
display: none;
|
|
12700
12843
|
}
|
|
12701
12844
|
`;
|
|
12702
|
-
var summaryIcon =
|
|
12845
|
+
var summaryIcon = css41`
|
|
12703
12846
|
transition: rotate var(--duration-fast) var(--timing-ease-out);
|
|
12704
12847
|
rotate: -90deg;
|
|
12705
12848
|
`;
|
|
12706
|
-
var summaryIconVisiblyHidden =
|
|
12849
|
+
var summaryIconVisiblyHidden = css41`
|
|
12707
12850
|
visibility: hidden;
|
|
12708
12851
|
`;
|
|
12709
12852
|
|
|
12710
12853
|
// src/components/Details/Details.tsx
|
|
12711
|
-
import { jsx as
|
|
12854
|
+
import { jsx as jsx42, jsxs as jsxs25 } from "@emotion/react/jsx-runtime";
|
|
12712
12855
|
var Details = ({
|
|
12713
12856
|
summary: summary2,
|
|
12714
12857
|
children,
|
|
@@ -12736,7 +12879,7 @@ var Details = ({
|
|
|
12736
12879
|
...props,
|
|
12737
12880
|
children: [
|
|
12738
12881
|
/* @__PURE__ */ jsxs25("summary", { "data-testid": "summary", css: summary, children: [
|
|
12739
|
-
/* @__PURE__ */
|
|
12882
|
+
/* @__PURE__ */ jsx42(
|
|
12740
12883
|
Icon,
|
|
12741
12884
|
{
|
|
12742
12885
|
css: [!children ? summaryIconVisiblyHidden : void 0, summaryIcon],
|
|
@@ -12747,7 +12890,7 @@ var Details = ({
|
|
|
12747
12890
|
),
|
|
12748
12891
|
summary2
|
|
12749
12892
|
] }),
|
|
12750
|
-
memoizedIsOpen ? /* @__PURE__ */
|
|
12893
|
+
memoizedIsOpen ? /* @__PURE__ */ jsx42("div", { "data-testid": "details-content", css: detailsContent, children }) : null
|
|
12751
12894
|
]
|
|
12752
12895
|
}
|
|
12753
12896
|
);
|
|
@@ -12759,8 +12902,8 @@ import { createPortal } from "react-dom";
|
|
|
12759
12902
|
import { CgChevronRight } from "react-icons/cg";
|
|
12760
12903
|
|
|
12761
12904
|
// src/components/Drawer/Drawer.styles.ts
|
|
12762
|
-
import { css as
|
|
12763
|
-
var drawerStyles = (bgColor = "var(--white)") =>
|
|
12905
|
+
import { css as css42, keyframes as keyframes2 } from "@emotion/react";
|
|
12906
|
+
var drawerStyles = (bgColor = "var(--white)") => css42`
|
|
12764
12907
|
background-color: ${bgColor};
|
|
12765
12908
|
display: flex;
|
|
12766
12909
|
gap: var(--spacing-sm);
|
|
@@ -12770,20 +12913,20 @@ var drawerStyles = (bgColor = "var(--white)") => css41`
|
|
|
12770
12913
|
padding-top: var(--spacing-sm);
|
|
12771
12914
|
height: 100%;
|
|
12772
12915
|
`;
|
|
12773
|
-
var drawerCloseButtonStyles =
|
|
12916
|
+
var drawerCloseButtonStyles = css42`
|
|
12774
12917
|
display: block;
|
|
12775
12918
|
padding: 0;
|
|
12776
12919
|
background: transparent;
|
|
12777
12920
|
border: none;
|
|
12778
12921
|
`;
|
|
12779
|
-
var headerWrapperStyles =
|
|
12922
|
+
var headerWrapperStyles = css42`
|
|
12780
12923
|
display: flex;
|
|
12781
12924
|
justify-content: flex-end;
|
|
12782
12925
|
align-items: center;
|
|
12783
12926
|
flex: 1;
|
|
12784
12927
|
margin-right: var(--spacing-sm);
|
|
12785
12928
|
`;
|
|
12786
|
-
var drawerHeaderStyles =
|
|
12929
|
+
var drawerHeaderStyles = css42`
|
|
12787
12930
|
align-items: center;
|
|
12788
12931
|
display: flex;
|
|
12789
12932
|
gap: var(--spacing-sm);
|
|
@@ -12791,18 +12934,18 @@ var drawerHeaderStyles = css41`
|
|
|
12791
12934
|
padding-inline: var(--spacing-base);
|
|
12792
12935
|
flex: 1;
|
|
12793
12936
|
`;
|
|
12794
|
-
var drawerRendererStyles =
|
|
12937
|
+
var drawerRendererStyles = css42`
|
|
12795
12938
|
inset: 0;
|
|
12796
12939
|
overflow: hidden;
|
|
12797
12940
|
z-index: var(--z-drawer);
|
|
12798
12941
|
`;
|
|
12799
|
-
var drawerInnerStyles =
|
|
12942
|
+
var drawerInnerStyles = css42`
|
|
12800
12943
|
height: 100%;
|
|
12801
12944
|
overflow: auto;
|
|
12802
12945
|
padding: 0 var(--spacing-md) var(--spacing-base) var(--spacing-sm);
|
|
12803
12946
|
${scrollbarStyles}
|
|
12804
12947
|
`;
|
|
12805
|
-
var drawerHeading =
|
|
12948
|
+
var drawerHeading = css42`
|
|
12806
12949
|
font-size: var(--fs-base);
|
|
12807
12950
|
`;
|
|
12808
12951
|
var slideDrawerIn = keyframes2`
|
|
@@ -12835,7 +12978,7 @@ var slideDrawerInLeftAligned = keyframes2`
|
|
|
12835
12978
|
transform: translate(0);
|
|
12836
12979
|
}
|
|
12837
12980
|
`;
|
|
12838
|
-
var drawerWrapperStyles =
|
|
12981
|
+
var drawerWrapperStyles = css42`
|
|
12839
12982
|
position: absolute;
|
|
12840
12983
|
inset-block: 0;
|
|
12841
12984
|
right: 0;
|
|
@@ -12848,14 +12991,14 @@ var drawerWrapperStyles = css41`
|
|
|
12848
12991
|
|
|
12849
12992
|
--drawer-close-icon-rotation: 0deg;
|
|
12850
12993
|
`;
|
|
12851
|
-
var drawerWrapperLeftAlignedStyles =
|
|
12994
|
+
var drawerWrapperLeftAlignedStyles = css42`
|
|
12852
12995
|
animation-name: ${slideDrawerInLeftAligned};
|
|
12853
12996
|
left: 0;
|
|
12854
12997
|
right: auto;
|
|
12855
12998
|
|
|
12856
12999
|
--drawer-close-icon-rotation: 180deg;
|
|
12857
13000
|
`;
|
|
12858
|
-
var drawerWrapperOverlayStyles =
|
|
13001
|
+
var drawerWrapperOverlayStyles = css42`
|
|
12859
13002
|
position: absolute;
|
|
12860
13003
|
inset: 0;
|
|
12861
13004
|
animation: ${fadeIn} var(--duration-fast) ease-out;
|
|
@@ -12867,7 +13010,7 @@ var drawerWrapperOverlayStyles = css41`
|
|
|
12867
13010
|
|
|
12868
13011
|
// src/components/Drawer/DrawerProvider.tsx
|
|
12869
13012
|
import { createContext as createContext3, useCallback, useContext as useContext4, useRef as useRef2, useState as useState4 } from "react";
|
|
12870
|
-
import { jsx as
|
|
13013
|
+
import { jsx as jsx43 } from "@emotion/react/jsx-runtime";
|
|
12871
13014
|
var DrawerContext = createContext3({
|
|
12872
13015
|
providerId: "",
|
|
12873
13016
|
drawersRegistry: [],
|
|
@@ -12876,6 +13019,9 @@ var DrawerContext = createContext3({
|
|
|
12876
13019
|
unregisterDrawer: () => {
|
|
12877
13020
|
}
|
|
12878
13021
|
});
|
|
13022
|
+
function renderDrawerId(drawer) {
|
|
13023
|
+
return `${drawer.stackId ? `\u{1F95E} ${drawer.stackId} ` : ""}\u{1F194} ${drawer.id}${drawer.instanceKey ? ` \u{1F511} ${drawer.instanceKey}` : ""}`;
|
|
13024
|
+
}
|
|
12879
13025
|
var DrawerProvider = ({ children }) => {
|
|
12880
13026
|
const [drawersRegistry, setDrawersRegistry] = useState4([]);
|
|
12881
13027
|
const providerId = useRef2(crypto.randomUUID());
|
|
@@ -12914,6 +13060,9 @@ var DrawerProvider = ({ children }) => {
|
|
|
12914
13060
|
var _a2, _b2;
|
|
12915
13061
|
return ((_a2 = a.registeredAt) != null ? _a2 : 0) - ((_b2 = b.registeredAt) != null ? _b2 : 0);
|
|
12916
13062
|
});
|
|
13063
|
+
console.debug(
|
|
13064
|
+
`\u{1F5C3}\uFE0F + ${renderDrawerId(drawer)}${shouldReplaceCurrent ? ` \u{1F504} Replacing ${renderDrawerId(alreadyRegisteredDrawer)}` : ""} (${currentValue.length + 1} open)`
|
|
13065
|
+
);
|
|
12917
13066
|
return newDrawersRegistry;
|
|
12918
13067
|
});
|
|
12919
13068
|
},
|
|
@@ -12923,13 +13072,17 @@ var DrawerProvider = ({ children }) => {
|
|
|
12923
13072
|
(drawer) => {
|
|
12924
13073
|
setDrawersRegistry((currentValue) => {
|
|
12925
13074
|
return currentValue.filter((d) => {
|
|
12926
|
-
|
|
13075
|
+
const include = !isEqualDrawerInstance(drawer, d);
|
|
13076
|
+
if (!include) {
|
|
13077
|
+
console.debug(`\u{1F5C3}\uFE0F - ${renderDrawerId(d)} (${currentValue.length} open)`);
|
|
13078
|
+
}
|
|
13079
|
+
return include;
|
|
12927
13080
|
});
|
|
12928
13081
|
});
|
|
12929
13082
|
},
|
|
12930
13083
|
[setDrawersRegistry]
|
|
12931
13084
|
);
|
|
12932
|
-
return /* @__PURE__ */
|
|
13085
|
+
return /* @__PURE__ */ jsx43(
|
|
12933
13086
|
DrawerContext.Provider,
|
|
12934
13087
|
{
|
|
12935
13088
|
value: {
|
|
@@ -12960,19 +13113,19 @@ function isEqualDrawerInstance(a, b) {
|
|
|
12960
13113
|
}
|
|
12961
13114
|
|
|
12962
13115
|
// src/components/Drawer/Drawer.tsx
|
|
12963
|
-
import { jsx as
|
|
13116
|
+
import { jsx as jsx44, jsxs as jsxs26 } from "@emotion/react/jsx-runtime";
|
|
12964
13117
|
var defaultSackId = "_default";
|
|
12965
13118
|
var CurrentDrawerContext = createContext4({});
|
|
12966
13119
|
var useCurrentDrawer = () => {
|
|
12967
13120
|
return useContext5(CurrentDrawerContext);
|
|
12968
13121
|
};
|
|
12969
13122
|
var Drawer = React13.forwardRef(
|
|
12970
|
-
({
|
|
13123
|
+
({ minWidth, maxWidth, position, leftAligned, ...drawerProps }, ref) => {
|
|
12971
13124
|
const { stackId: inheritedStackId } = useCurrentDrawer();
|
|
12972
|
-
const drawerRendererProps = { width, minWidth, maxWidth, position, leftAligned };
|
|
12973
|
-
return drawerProps.stackId ? /* @__PURE__ */
|
|
12974
|
-
/* @__PURE__ */
|
|
12975
|
-
/* @__PURE__ */
|
|
13125
|
+
const drawerRendererProps = { width: drawerProps.width, minWidth, maxWidth, position, leftAligned };
|
|
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 })
|
|
12976
13129
|
] });
|
|
12977
13130
|
}
|
|
12978
13131
|
);
|
|
@@ -12986,6 +13139,7 @@ var DrawerInner = ({
|
|
|
12986
13139
|
instanceKey,
|
|
12987
13140
|
onRequestClose,
|
|
12988
13141
|
leftAligned,
|
|
13142
|
+
width,
|
|
12989
13143
|
testId = "side-dialog"
|
|
12990
13144
|
}) => {
|
|
12991
13145
|
const { registerDrawer, unregisterDrawer, providerId } = useDrawer();
|
|
@@ -12994,6 +13148,7 @@ var DrawerInner = ({
|
|
|
12994
13148
|
useEffect5(() => {
|
|
12995
13149
|
registerDrawer({
|
|
12996
13150
|
drawer: {
|
|
13151
|
+
width,
|
|
12997
13152
|
id,
|
|
12998
13153
|
stackId,
|
|
12999
13154
|
onRequestClose,
|
|
@@ -13015,7 +13170,7 @@ var DrawerInner = ({
|
|
|
13015
13170
|
return null;
|
|
13016
13171
|
}
|
|
13017
13172
|
const headerId = `dialog-header-${providerId}-${stackId}-${id}`;
|
|
13018
|
-
return /* @__PURE__ */
|
|
13173
|
+
return /* @__PURE__ */ jsx44(CurrentDrawerContext.Provider, { value: { id, stackId, leftAligned }, children: createPortal(
|
|
13019
13174
|
/* @__PURE__ */ jsxs26(
|
|
13020
13175
|
"div",
|
|
13021
13176
|
{
|
|
@@ -13028,8 +13183,8 @@ var DrawerInner = ({
|
|
|
13028
13183
|
"data-testid": testId,
|
|
13029
13184
|
children: [
|
|
13030
13185
|
/* @__PURE__ */ jsxs26("div", { css: headerWrapperStyles, children: [
|
|
13031
|
-
header ? /* @__PURE__ */
|
|
13032
|
-
/* @__PURE__ */
|
|
13186
|
+
header ? /* @__PURE__ */ jsx44("div", { id: headerId, css: drawerHeaderStyles, "data-testid": "header", children: header }) : null,
|
|
13187
|
+
/* @__PURE__ */ jsx44(
|
|
13033
13188
|
Button,
|
|
13034
13189
|
{
|
|
13035
13190
|
ref: closeButtonRef,
|
|
@@ -13038,7 +13193,8 @@ var DrawerInner = ({
|
|
|
13038
13193
|
css: drawerCloseButtonStyles,
|
|
13039
13194
|
title: "Close dialog",
|
|
13040
13195
|
buttonType: "ghost",
|
|
13041
|
-
|
|
13196
|
+
"data-testid": "close-button",
|
|
13197
|
+
children: /* @__PURE__ */ jsx44(
|
|
13042
13198
|
Icon,
|
|
13043
13199
|
{
|
|
13044
13200
|
icon: CgChevronRight,
|
|
@@ -13050,7 +13206,7 @@ var DrawerInner = ({
|
|
|
13050
13206
|
}
|
|
13051
13207
|
)
|
|
13052
13208
|
] }),
|
|
13053
|
-
/* @__PURE__ */
|
|
13209
|
+
/* @__PURE__ */ jsx44("div", { css: drawerInnerStyles, children })
|
|
13054
13210
|
]
|
|
13055
13211
|
}
|
|
13056
13212
|
),
|
|
@@ -13064,15 +13220,15 @@ var findDrawerRenderer = (params) => {
|
|
|
13064
13220
|
};
|
|
13065
13221
|
|
|
13066
13222
|
// src/components/Drawer/DrawerContent.styles.ts
|
|
13067
|
-
import { css as
|
|
13068
|
-
var DrawerContent =
|
|
13223
|
+
import { css as css43 } from "@emotion/react";
|
|
13224
|
+
var DrawerContent = css43`
|
|
13069
13225
|
background: var(--gray-50);
|
|
13070
13226
|
display: flex;
|
|
13071
13227
|
flex-direction: column;
|
|
13072
13228
|
gap: var(--spacing-base);
|
|
13073
13229
|
height: 100%;
|
|
13074
13230
|
`;
|
|
13075
|
-
var DrawerContentInner =
|
|
13231
|
+
var DrawerContentInner = css43`
|
|
13076
13232
|
background: var(--white);
|
|
13077
13233
|
padding: var(--spacing-base);
|
|
13078
13234
|
flex: 1;
|
|
@@ -13080,24 +13236,29 @@ var DrawerContentInner = css42`
|
|
|
13080
13236
|
overflow-y: auto;
|
|
13081
13237
|
${scrollbarStyles}
|
|
13082
13238
|
`;
|
|
13083
|
-
var DrawerContentBtnGroup =
|
|
13239
|
+
var DrawerContentBtnGroup = css43`
|
|
13084
13240
|
display: flex;
|
|
13085
13241
|
gap: var(--spacing-sm);
|
|
13086
13242
|
padding: 0 var(--spacing-base) var(--spacing-base);
|
|
13087
13243
|
`;
|
|
13088
13244
|
|
|
13089
13245
|
// src/components/Drawer/DrawerContent.tsx
|
|
13090
|
-
import { jsx as
|
|
13246
|
+
import { jsx as jsx45, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
|
|
13091
13247
|
var DrawerContent2 = ({ children, buttonGroup, noPadding = false, ...props }) => {
|
|
13092
13248
|
return /* @__PURE__ */ jsxs27("div", { css: DrawerContent, ...props, children: [
|
|
13093
|
-
/* @__PURE__ */
|
|
13094
|
-
buttonGroup ? /* @__PURE__ */
|
|
13249
|
+
/* @__PURE__ */ jsx45("div", { css: [DrawerContentInner, noPadding ? { padding: 0 } : null], children }),
|
|
13250
|
+
buttonGroup ? /* @__PURE__ */ jsx45("div", { css: DrawerContentBtnGroup, children: buttonGroup }) : null
|
|
13095
13251
|
] });
|
|
13096
13252
|
};
|
|
13097
13253
|
|
|
13098
13254
|
// src/components/Drawer/DrawerRenderer.tsx
|
|
13099
|
-
import { useEffect as useEffect6 } from "react";
|
|
13100
|
-
import { Fragment as Fragment6, jsx as
|
|
13255
|
+
import { useEffect as useEffect6, useMemo as useMemo2 } from "react";
|
|
13256
|
+
import { Fragment as Fragment6, jsx as jsx46, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
|
|
13257
|
+
var drawerWidth = {
|
|
13258
|
+
narrow: "29rem",
|
|
13259
|
+
medium: "43rem",
|
|
13260
|
+
wide: "57rem"
|
|
13261
|
+
};
|
|
13101
13262
|
var maxLayeringInPx = 64;
|
|
13102
13263
|
var idealDistanceBetweenLayersInPx = 16;
|
|
13103
13264
|
var DrawerRenderer = ({
|
|
@@ -13107,15 +13268,11 @@ var DrawerRenderer = ({
|
|
|
13107
13268
|
minWidth = "0",
|
|
13108
13269
|
maxWidth = "100%",
|
|
13109
13270
|
leftAligned = false,
|
|
13271
|
+
withoutFluidWidth = false,
|
|
13110
13272
|
...otherProps
|
|
13111
13273
|
}) => {
|
|
13112
13274
|
const { drawersRegistry, providerId } = useDrawer();
|
|
13113
13275
|
const drawersToRender = drawersRegistry.filter(({ stackId: sId }) => sId === stackId);
|
|
13114
|
-
const drawerWidth = {
|
|
13115
|
-
narrow: "29rem",
|
|
13116
|
-
medium: "43rem",
|
|
13117
|
-
wide: "57rem"
|
|
13118
|
-
};
|
|
13119
13276
|
useEffect6(() => {
|
|
13120
13277
|
drawersToRender.forEach(({ isFirstRender, onFirstRender }) => {
|
|
13121
13278
|
if (isFirstRender) {
|
|
@@ -13123,10 +13280,21 @@ var DrawerRenderer = ({
|
|
|
13123
13280
|
}
|
|
13124
13281
|
});
|
|
13125
13282
|
}, [drawersToRender]);
|
|
13283
|
+
const unionWidth = useMemo2(() => {
|
|
13284
|
+
var _a;
|
|
13285
|
+
const rendererWidth = (_a = drawerWidth[width]) != null ? _a : width;
|
|
13286
|
+
if (withoutFluidWidth) {
|
|
13287
|
+
return rendererWidth;
|
|
13288
|
+
}
|
|
13289
|
+
const drawerWidths = [rendererWidth, ...drawersToRender.map(({ width: width2 }) => width2)].filter(
|
|
13290
|
+
(v) => typeof v === "string"
|
|
13291
|
+
);
|
|
13292
|
+
return `max(${drawerWidths.join()})`;
|
|
13293
|
+
}, [drawersToRender, width, withoutFluidWidth]);
|
|
13126
13294
|
if (drawersToRender.length === 0) {
|
|
13127
13295
|
return null;
|
|
13128
13296
|
}
|
|
13129
|
-
return /* @__PURE__ */
|
|
13297
|
+
return /* @__PURE__ */ jsx46(
|
|
13130
13298
|
"div",
|
|
13131
13299
|
{
|
|
13132
13300
|
css: [
|
|
@@ -13135,29 +13303,26 @@ var DrawerRenderer = ({
|
|
|
13135
13303
|
position === "sticky" ? { height: "100%", marginTop: "-100%" } : void 0
|
|
13136
13304
|
],
|
|
13137
13305
|
...otherProps,
|
|
13138
|
-
children: drawersToRender.map(({ id, stackId: stackId2, onRequestClose }, index) =>
|
|
13139
|
-
|
|
13140
|
-
|
|
13141
|
-
|
|
13142
|
-
|
|
13143
|
-
|
|
13144
|
-
|
|
13145
|
-
|
|
13146
|
-
|
|
13147
|
-
|
|
13148
|
-
|
|
13149
|
-
|
|
13150
|
-
|
|
13151
|
-
|
|
13152
|
-
{
|
|
13153
|
-
|
|
13154
|
-
|
|
13155
|
-
|
|
13156
|
-
|
|
13157
|
-
|
|
13158
|
-
`${stackId2}-${id}`
|
|
13159
|
-
);
|
|
13160
|
-
})
|
|
13306
|
+
children: drawersToRender.map(({ id, stackId: stackId2, onRequestClose }, index) => /* @__PURE__ */ jsx46(
|
|
13307
|
+
DrawerWrapper,
|
|
13308
|
+
{
|
|
13309
|
+
index,
|
|
13310
|
+
totalDrawers: drawersToRender.length,
|
|
13311
|
+
width: unionWidth,
|
|
13312
|
+
minWidth,
|
|
13313
|
+
maxWidth,
|
|
13314
|
+
onOverlayClick: onRequestClose,
|
|
13315
|
+
leftAligned,
|
|
13316
|
+
children: /* @__PURE__ */ jsx46(
|
|
13317
|
+
"div",
|
|
13318
|
+
{
|
|
13319
|
+
...getDrawerAttributes({ providerId, stackId: stackId2, id }),
|
|
13320
|
+
style: { width: "100%", height: "100%" }
|
|
13321
|
+
}
|
|
13322
|
+
)
|
|
13323
|
+
},
|
|
13324
|
+
`${stackId2}-${id}`
|
|
13325
|
+
))
|
|
13161
13326
|
}
|
|
13162
13327
|
);
|
|
13163
13328
|
};
|
|
@@ -13178,8 +13343,8 @@ var DrawerWrapper = ({
|
|
|
13178
13343
|
}
|
|
13179
13344
|
const calculatedWidth = `calc(${width} - ${offsetInPx}px)`;
|
|
13180
13345
|
return /* @__PURE__ */ jsxs28(Fragment6, { children: [
|
|
13181
|
-
/* @__PURE__ */
|
|
13182
|
-
/* @__PURE__ */
|
|
13346
|
+
/* @__PURE__ */ jsx46("div", { css: drawerWrapperOverlayStyles, onClick: onOverlayClick }),
|
|
13347
|
+
/* @__PURE__ */ jsx46(
|
|
13183
13348
|
"div",
|
|
13184
13349
|
{
|
|
13185
13350
|
css: [drawerWrapperStyles, leftAligned ? drawerWrapperLeftAlignedStyles : null],
|
|
@@ -13194,12 +13359,12 @@ var getDrawerAttributes = ({
|
|
|
13194
13359
|
stackId,
|
|
13195
13360
|
id
|
|
13196
13361
|
}) => {
|
|
13197
|
-
return { "data-drawer-id": `${providerId}-${stackId}-${id}
|
|
13362
|
+
return { "data-drawer-id": `${providerId}-${stackId}-${id}`, "data-testid": "container-drawer" };
|
|
13198
13363
|
};
|
|
13199
13364
|
|
|
13200
13365
|
// src/components/Input/styles/CaptionText.styles.ts
|
|
13201
|
-
import { css as
|
|
13202
|
-
var CaptionText = (dynamicSize) =>
|
|
13366
|
+
import { css as css44 } from "@emotion/react";
|
|
13367
|
+
var CaptionText = (dynamicSize) => css44`
|
|
13203
13368
|
color: var(--gray-500);
|
|
13204
13369
|
display: block;
|
|
13205
13370
|
font-size: ${dynamicSize ? "clamp(var(--fs-xs), 87.5%,var(--fs-sm))" : "var(--fs-sm)"};
|
|
@@ -13208,29 +13373,29 @@ var CaptionText = (dynamicSize) => css43`
|
|
|
13208
13373
|
`;
|
|
13209
13374
|
|
|
13210
13375
|
// src/components/Input/Caption.tsx
|
|
13211
|
-
import { jsx as
|
|
13376
|
+
import { jsx as jsx47 } from "@emotion/react/jsx-runtime";
|
|
13212
13377
|
var Caption = ({ children, testId, dynamicSize = false, ...props }) => {
|
|
13213
|
-
return /* @__PURE__ */
|
|
13378
|
+
return /* @__PURE__ */ jsx47("small", { css: CaptionText(dynamicSize), "data-testid": testId, ...props, children });
|
|
13214
13379
|
};
|
|
13215
13380
|
|
|
13216
13381
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
13217
13382
|
import { forwardRef as forwardRef4 } from "react";
|
|
13218
13383
|
|
|
13219
13384
|
// src/components/Input/styles/CheckboxWithInfo.styles.ts
|
|
13220
|
-
import { css as
|
|
13221
|
-
var CheckboxWithInfoContainer =
|
|
13385
|
+
import { css as css45 } from "@emotion/react";
|
|
13386
|
+
var CheckboxWithInfoContainer = css45`
|
|
13222
13387
|
align-items: center;
|
|
13223
13388
|
display: flex;
|
|
13224
13389
|
gap: var(--spacing-sm);
|
|
13225
13390
|
`;
|
|
13226
|
-
var CheckboxWithInfoLabel =
|
|
13391
|
+
var CheckboxWithInfoLabel = css45`
|
|
13227
13392
|
align-items: center;
|
|
13228
13393
|
color: var(--gray-500);
|
|
13229
13394
|
display: flex;
|
|
13230
13395
|
font-size: var(--fs-xs);
|
|
13231
13396
|
gap: var(--spacing-sm);
|
|
13232
13397
|
`;
|
|
13233
|
-
var CheckboxWithInfoInput =
|
|
13398
|
+
var CheckboxWithInfoInput = css45`
|
|
13234
13399
|
appearance: none;
|
|
13235
13400
|
border: 1px solid var(--gray-300);
|
|
13236
13401
|
background: var(--white) no-repeat bottom center;
|
|
@@ -13263,7 +13428,7 @@ var CheckboxWithInfoInput = css44`
|
|
|
13263
13428
|
border-color: var(--gray-200);
|
|
13264
13429
|
}
|
|
13265
13430
|
`;
|
|
13266
|
-
var InfoDialogContainer =
|
|
13431
|
+
var InfoDialogContainer = css45`
|
|
13267
13432
|
position: relative;
|
|
13268
13433
|
|
|
13269
13434
|
&:hover {
|
|
@@ -13272,7 +13437,7 @@ var InfoDialogContainer = css44`
|
|
|
13272
13437
|
}
|
|
13273
13438
|
}
|
|
13274
13439
|
`;
|
|
13275
|
-
var InfoDialogMessage =
|
|
13440
|
+
var InfoDialogMessage = css45`
|
|
13276
13441
|
background: var(--white);
|
|
13277
13442
|
box-shadow: var(--shadow-base);
|
|
13278
13443
|
border-radius: var(--rounded-md);
|
|
@@ -13289,21 +13454,21 @@ var InfoDialogMessage = css44`
|
|
|
13289
13454
|
`;
|
|
13290
13455
|
|
|
13291
13456
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
13292
|
-
import { jsx as
|
|
13457
|
+
import { jsx as jsx48, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
|
|
13293
13458
|
var InfoDialog = ({ message }) => {
|
|
13294
13459
|
return /* @__PURE__ */ jsxs29("div", { "data-testid": "info-dialog", css: InfoDialogContainer, children: [
|
|
13295
|
-
/* @__PURE__ */
|
|
13296
|
-
/* @__PURE__ */
|
|
13460
|
+
/* @__PURE__ */ jsx48(Icon, { icon: "info", iconColor: "action", size: "0.9rem" }),
|
|
13461
|
+
/* @__PURE__ */ jsx48("div", { role: "paragraph", css: InfoDialogMessage, className: "info-message", children: message })
|
|
13297
13462
|
] });
|
|
13298
13463
|
};
|
|
13299
13464
|
var CheckboxWithInfo = forwardRef4(
|
|
13300
13465
|
({ label, name, info, ...props }, ref) => {
|
|
13301
13466
|
return /* @__PURE__ */ jsxs29("div", { css: CheckboxWithInfoContainer, children: [
|
|
13302
13467
|
/* @__PURE__ */ jsxs29("label", { css: CheckboxWithInfoLabel, children: [
|
|
13303
|
-
/* @__PURE__ */
|
|
13304
|
-
/* @__PURE__ */
|
|
13468
|
+
/* @__PURE__ */ jsx48("input", { type: "checkbox", name, ref, css: CheckboxWithInfoInput, ...props }),
|
|
13469
|
+
/* @__PURE__ */ jsx48("span", { children: label })
|
|
13305
13470
|
] }),
|
|
13306
|
-
info ? /* @__PURE__ */
|
|
13471
|
+
info ? /* @__PURE__ */ jsx48(InfoDialog, { message: info }) : null
|
|
13307
13472
|
] });
|
|
13308
13473
|
}
|
|
13309
13474
|
);
|
|
@@ -13312,8 +13477,8 @@ var CheckboxWithInfo = forwardRef4(
|
|
|
13312
13477
|
import { MdWarning } from "react-icons/md";
|
|
13313
13478
|
|
|
13314
13479
|
// src/components/Input/styles/ErrorMessage.styles.ts
|
|
13315
|
-
import { css as
|
|
13316
|
-
var ErrorText =
|
|
13480
|
+
import { css as css46 } from "@emotion/react";
|
|
13481
|
+
var ErrorText = css46`
|
|
13317
13482
|
align-items: center;
|
|
13318
13483
|
color: var(--brand-secondary-5);
|
|
13319
13484
|
display: flex;
|
|
@@ -13321,10 +13486,10 @@ var ErrorText = css45`
|
|
|
13321
13486
|
`;
|
|
13322
13487
|
|
|
13323
13488
|
// src/components/Input/ErrorMessage.tsx
|
|
13324
|
-
import { jsx as
|
|
13489
|
+
import { jsx as jsx49, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
|
|
13325
13490
|
var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
13326
13491
|
return message ? /* @__PURE__ */ jsxs30("span", { role: "alert", css: ErrorText, "data-testid": testId, ...otherProps, children: [
|
|
13327
|
-
/* @__PURE__ */
|
|
13492
|
+
/* @__PURE__ */ jsx49("span", { children: /* @__PURE__ */ jsx49(Icon, { icon: MdWarning, size: "1rem", iconColor: "currentColor" }) }),
|
|
13328
13493
|
message
|
|
13329
13494
|
] }) : null;
|
|
13330
13495
|
};
|
|
@@ -13333,9 +13498,9 @@ var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
|
13333
13498
|
import * as React15 from "react";
|
|
13334
13499
|
|
|
13335
13500
|
// src/components/Input/styles/Fieldset.styles.ts
|
|
13336
|
-
import { css as
|
|
13501
|
+
import { css as css47 } from "@emotion/react";
|
|
13337
13502
|
function fieldsetContainer(invert) {
|
|
13338
|
-
const base =
|
|
13503
|
+
const base = css47`
|
|
13339
13504
|
border-radius: var(--rounded-base);
|
|
13340
13505
|
border: 1px solid var(--gray-300);
|
|
13341
13506
|
|
|
@@ -13347,18 +13512,18 @@ function fieldsetContainer(invert) {
|
|
|
13347
13512
|
}
|
|
13348
13513
|
`;
|
|
13349
13514
|
return invert ? [
|
|
13350
|
-
|
|
13515
|
+
css47`
|
|
13351
13516
|
background: white;
|
|
13352
13517
|
`,
|
|
13353
13518
|
base
|
|
13354
13519
|
] : [
|
|
13355
|
-
|
|
13520
|
+
css47`
|
|
13356
13521
|
background: var(--gray-50);
|
|
13357
13522
|
`,
|
|
13358
13523
|
base
|
|
13359
13524
|
];
|
|
13360
13525
|
}
|
|
13361
|
-
var fieldsetLegend =
|
|
13526
|
+
var fieldsetLegend = css47`
|
|
13362
13527
|
align-items: center;
|
|
13363
13528
|
color: var(--brand-secondary-1);
|
|
13364
13529
|
display: flex;
|
|
@@ -13368,17 +13533,17 @@ var fieldsetLegend = css46`
|
|
|
13368
13533
|
margin-bottom: var(--spacing-base);
|
|
13369
13534
|
float: left; // allows the legend to be inside the fieldset and not sat on the border line
|
|
13370
13535
|
`;
|
|
13371
|
-
var fieldsetBody =
|
|
13536
|
+
var fieldsetBody = css47`
|
|
13372
13537
|
clear: left;
|
|
13373
13538
|
`;
|
|
13374
13539
|
|
|
13375
13540
|
// src/components/Input/Fieldset.tsx
|
|
13376
|
-
import { jsx as
|
|
13541
|
+
import { jsx as jsx50, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
|
|
13377
13542
|
var Fieldset = React15.forwardRef(
|
|
13378
13543
|
({ legend, disabled, children, invert, ...props }, ref) => {
|
|
13379
13544
|
return /* @__PURE__ */ jsxs31("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled, ...props, children: [
|
|
13380
13545
|
legend,
|
|
13381
|
-
/* @__PURE__ */
|
|
13546
|
+
/* @__PURE__ */ jsx50("div", { css: fieldsetBody, children })
|
|
13382
13547
|
] });
|
|
13383
13548
|
}
|
|
13384
13549
|
);
|
|
@@ -13387,8 +13552,8 @@ var Fieldset = React15.forwardRef(
|
|
|
13387
13552
|
import { MdInfoOutline } from "react-icons/md";
|
|
13388
13553
|
|
|
13389
13554
|
// src/components/Input/styles/InfoMessage.styles.tsx
|
|
13390
|
-
import { css as
|
|
13391
|
-
var InfoText =
|
|
13555
|
+
import { css as css48 } from "@emotion/react";
|
|
13556
|
+
var InfoText = css48`
|
|
13392
13557
|
--info-desc: rgb(29, 78, 216);
|
|
13393
13558
|
--info-icon: rgb(96, 165, 250);
|
|
13394
13559
|
|
|
@@ -13397,15 +13562,15 @@ var InfoText = css47`
|
|
|
13397
13562
|
display: flex;
|
|
13398
13563
|
gap: var(--spacing-sm);
|
|
13399
13564
|
`;
|
|
13400
|
-
var InfoIcon2 =
|
|
13565
|
+
var InfoIcon2 = css48`
|
|
13401
13566
|
color: var(--info-icon);
|
|
13402
13567
|
`;
|
|
13403
13568
|
|
|
13404
13569
|
// src/components/Input/InfoMessage.tsx
|
|
13405
|
-
import { jsx as
|
|
13570
|
+
import { jsx as jsx51, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
|
|
13406
13571
|
var InfoMessage = ({ message, testId, ...props }) => {
|
|
13407
13572
|
return message ? /* @__PURE__ */ jsxs32("span", { role: "status", css: InfoText, "data-testid": testId, ...props, children: [
|
|
13408
|
-
/* @__PURE__ */
|
|
13573
|
+
/* @__PURE__ */ jsx51("span", { children: /* @__PURE__ */ jsx51(Icon, { css: InfoIcon2, icon: MdInfoOutline, size: "1rem", iconColor: "currentColor" }) }),
|
|
13409
13574
|
message
|
|
13410
13575
|
] }) : null;
|
|
13411
13576
|
};
|
|
@@ -13414,9 +13579,9 @@ var InfoMessage = ({ message, testId, ...props }) => {
|
|
|
13414
13579
|
import * as React16 from "react";
|
|
13415
13580
|
|
|
13416
13581
|
// src/components/Input/Label.tsx
|
|
13417
|
-
import { jsx as
|
|
13582
|
+
import { jsx as jsx52 } from "@emotion/react/jsx-runtime";
|
|
13418
13583
|
var Label = ({ children, className, testId, ...props }) => {
|
|
13419
|
-
return /* @__PURE__ */
|
|
13584
|
+
return /* @__PURE__ */ jsx52(
|
|
13420
13585
|
"label",
|
|
13421
13586
|
{
|
|
13422
13587
|
css: [labelText, typeof className === "object" ? className : void 0],
|
|
@@ -13432,28 +13597,28 @@ var Label = ({ children, className, testId, ...props }) => {
|
|
|
13432
13597
|
import { MdWarning as MdWarning2 } from "react-icons/md";
|
|
13433
13598
|
|
|
13434
13599
|
// src/components/Input/styles/WarningMessage.styles.tsx
|
|
13435
|
-
import { css as
|
|
13436
|
-
var WarningText =
|
|
13600
|
+
import { css as css49 } from "@emotion/react";
|
|
13601
|
+
var WarningText = css49`
|
|
13437
13602
|
align-items: center;
|
|
13438
13603
|
color: var(--alert-text);
|
|
13439
13604
|
display: flex;
|
|
13440
13605
|
gap: var(--spacing-sm);
|
|
13441
13606
|
`;
|
|
13442
|
-
var WarningIcon =
|
|
13607
|
+
var WarningIcon = css49`
|
|
13443
13608
|
color: var(--alert);
|
|
13444
13609
|
`;
|
|
13445
13610
|
|
|
13446
13611
|
// src/components/Input/WarningMessage.tsx
|
|
13447
|
-
import { jsx as
|
|
13612
|
+
import { jsx as jsx53, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
|
|
13448
13613
|
var WarningMessage = ({ message, testId, ...props }) => {
|
|
13449
13614
|
return message ? /* @__PURE__ */ jsxs33("span", { role: "status", css: WarningText, "data-testid": testId, ...props, children: [
|
|
13450
|
-
/* @__PURE__ */
|
|
13615
|
+
/* @__PURE__ */ jsx53("span", { children: /* @__PURE__ */ jsx53(Icon, { css: WarningIcon, icon: MdWarning2, size: "1rem", iconColor: "currentColor" }) }),
|
|
13451
13616
|
message
|
|
13452
13617
|
] }) : null;
|
|
13453
13618
|
};
|
|
13454
13619
|
|
|
13455
13620
|
// src/components/Input/Input.tsx
|
|
13456
|
-
import { jsx as
|
|
13621
|
+
import { jsx as jsx54, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
|
|
13457
13622
|
var Input = React16.forwardRef(
|
|
13458
13623
|
({
|
|
13459
13624
|
label,
|
|
@@ -13473,7 +13638,7 @@ var Input = React16.forwardRef(
|
|
|
13473
13638
|
...props
|
|
13474
13639
|
}, ref) => {
|
|
13475
13640
|
return /* @__PURE__ */ jsxs34("div", { css: inputContainer, "data-testid": containerTestId ? containerTestId : "container-input-field", children: [
|
|
13476
|
-
showLabel ? /* @__PURE__ */
|
|
13641
|
+
showLabel ? /* @__PURE__ */ jsx54(
|
|
13477
13642
|
Label,
|
|
13478
13643
|
{
|
|
13479
13644
|
htmlFor: id,
|
|
@@ -13489,7 +13654,7 @@ var Input = React16.forwardRef(
|
|
|
13489
13654
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
13490
13655
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
13491
13656
|
children: [
|
|
13492
|
-
/* @__PURE__ */
|
|
13657
|
+
/* @__PURE__ */ jsx54(
|
|
13493
13658
|
"input",
|
|
13494
13659
|
{
|
|
13495
13660
|
id,
|
|
@@ -13505,23 +13670,23 @@ var Input = React16.forwardRef(
|
|
|
13505
13670
|
ref
|
|
13506
13671
|
}
|
|
13507
13672
|
),
|
|
13508
|
-
icon ? /* @__PURE__ */
|
|
13673
|
+
icon ? /* @__PURE__ */ jsx54("div", { css: inputIcon, children: icon }) : null
|
|
13509
13674
|
]
|
|
13510
13675
|
}
|
|
13511
13676
|
),
|
|
13512
|
-
caption ? /* @__PURE__ */
|
|
13513
|
-
errorMessage ? /* @__PURE__ */
|
|
13514
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
13677
|
+
caption ? /* @__PURE__ */ jsx54(Caption, { testId: captionTestId, children: caption }) : null,
|
|
13678
|
+
errorMessage ? /* @__PURE__ */ jsx54(ErrorMessage, { message: errorMessage, testId: errorTestId }) : null,
|
|
13679
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx54(WarningMessage, { message: warningMessage }) : null
|
|
13515
13680
|
] });
|
|
13516
13681
|
}
|
|
13517
13682
|
);
|
|
13518
13683
|
|
|
13519
13684
|
// src/components/Input/InputComboBox.tsx
|
|
13520
13685
|
import Select from "react-select";
|
|
13521
|
-
import { jsx as
|
|
13686
|
+
import { jsx as jsx55 } from "@emotion/react/jsx-runtime";
|
|
13522
13687
|
function InputComboBox(props) {
|
|
13523
13688
|
var _a;
|
|
13524
|
-
return /* @__PURE__ */
|
|
13689
|
+
return /* @__PURE__ */ jsx55(
|
|
13525
13690
|
Select,
|
|
13526
13691
|
{
|
|
13527
13692
|
...props,
|
|
@@ -13650,17 +13815,17 @@ function InputComboBox(props) {
|
|
|
13650
13815
|
}
|
|
13651
13816
|
|
|
13652
13817
|
// src/components/Input/InputInlineSelect.tsx
|
|
13653
|
-
import { css as
|
|
13818
|
+
import { css as css51 } from "@emotion/react";
|
|
13654
13819
|
import { useRef as useRef4, useState as useState6 } from "react";
|
|
13655
13820
|
import { CgChevronDown as CgChevronDown2 } from "react-icons/cg";
|
|
13656
13821
|
|
|
13657
13822
|
// src/components/Input/styles/InputInlineSelect.styles.ts
|
|
13658
|
-
import { css as
|
|
13659
|
-
var inlineSelectContainer =
|
|
13823
|
+
import { css as css50 } from "@emotion/react";
|
|
13824
|
+
var inlineSelectContainer = css50`
|
|
13660
13825
|
margin-inline: auto;
|
|
13661
13826
|
max-width: fit-content;
|
|
13662
13827
|
`;
|
|
13663
|
-
var inlineSelectBtn =
|
|
13828
|
+
var inlineSelectBtn = css50`
|
|
13664
13829
|
align-items: center;
|
|
13665
13830
|
background: var(--brand-secondary-3);
|
|
13666
13831
|
border: 2px solid var(--brand-secondary-3);
|
|
@@ -13684,7 +13849,7 @@ var inlineSelectBtn = css49`
|
|
|
13684
13849
|
outline: 2px solid var(--brand-secondary-1);
|
|
13685
13850
|
}
|
|
13686
13851
|
`;
|
|
13687
|
-
var inlineSelectMenu =
|
|
13852
|
+
var inlineSelectMenu = css50`
|
|
13688
13853
|
background: var(--white);
|
|
13689
13854
|
border: 1px solid var(--brand-secondary-3);
|
|
13690
13855
|
border-top: none;
|
|
@@ -13695,7 +13860,7 @@ var inlineSelectMenu = css49`
|
|
|
13695
13860
|
inset: auto 0;
|
|
13696
13861
|
transform: translateY(-0.2rem);
|
|
13697
13862
|
`;
|
|
13698
|
-
var inlineSelectBtnOptions =
|
|
13863
|
+
var inlineSelectBtnOptions = css50`
|
|
13699
13864
|
cursor: pointer;
|
|
13700
13865
|
display: block;
|
|
13701
13866
|
font-size: var(--fs-sm);
|
|
@@ -13711,7 +13876,7 @@ var inlineSelectBtnOptions = css49`
|
|
|
13711
13876
|
background: var(--gray-50);
|
|
13712
13877
|
}
|
|
13713
13878
|
`;
|
|
13714
|
-
var inlineSelectMenuClosed =
|
|
13879
|
+
var inlineSelectMenuClosed = css50`
|
|
13715
13880
|
position: absolute;
|
|
13716
13881
|
overflow: hidden;
|
|
13717
13882
|
height: 1px;
|
|
@@ -13721,7 +13886,7 @@ var inlineSelectMenuClosed = css49`
|
|
|
13721
13886
|
`;
|
|
13722
13887
|
|
|
13723
13888
|
// src/components/Input/InputInlineSelect.tsx
|
|
13724
|
-
import { jsx as
|
|
13889
|
+
import { jsx as jsx56, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
13725
13890
|
var InputInlineSelect = ({
|
|
13726
13891
|
classNameContainer,
|
|
13727
13892
|
options,
|
|
@@ -13739,7 +13904,7 @@ var InputInlineSelect = ({
|
|
|
13739
13904
|
"div",
|
|
13740
13905
|
{
|
|
13741
13906
|
ref: divRef,
|
|
13742
|
-
css: !classNameContainer ? inlineSelectContainer :
|
|
13907
|
+
css: !classNameContainer ? inlineSelectContainer : css51`
|
|
13743
13908
|
max-width: fit-content;
|
|
13744
13909
|
${typeof classNameContainer === "object" ? classNameContainer : void 0}
|
|
13745
13910
|
`,
|
|
@@ -13759,18 +13924,18 @@ var InputInlineSelect = ({
|
|
|
13759
13924
|
disabled,
|
|
13760
13925
|
...props,
|
|
13761
13926
|
children: [
|
|
13762
|
-
/* @__PURE__ */
|
|
13763
|
-
disabled ? null : /* @__PURE__ */
|
|
13927
|
+
/* @__PURE__ */ jsx56("span", { children: (_a = selected == null ? void 0 : selected.label) != null ? _a : value }),
|
|
13928
|
+
disabled ? null : /* @__PURE__ */ jsx56(Icon, { icon: CgChevronDown2, iconColor: "currentColor", size: 24 })
|
|
13764
13929
|
]
|
|
13765
13930
|
}
|
|
13766
13931
|
),
|
|
13767
|
-
/* @__PURE__ */
|
|
13932
|
+
/* @__PURE__ */ jsx56(
|
|
13768
13933
|
"div",
|
|
13769
13934
|
{
|
|
13770
13935
|
id: `and-or-${props.id}`,
|
|
13771
13936
|
css: [inlineSelectMenu, menuVisible ? void 0 : inlineSelectMenuClosed],
|
|
13772
13937
|
"aria-hidden": !menuVisible,
|
|
13773
|
-
children: options.map((opt) => /* @__PURE__ */
|
|
13938
|
+
children: options.map((opt) => /* @__PURE__ */ jsx56(
|
|
13774
13939
|
"button",
|
|
13775
13940
|
{
|
|
13776
13941
|
type: "button",
|
|
@@ -13792,7 +13957,7 @@ var InputInlineSelect = ({
|
|
|
13792
13957
|
|
|
13793
13958
|
// src/components/Input/InputKeywordSearch.tsx
|
|
13794
13959
|
import { CgClose as CgClose4, CgSearch } from "react-icons/cg";
|
|
13795
|
-
import { jsx as
|
|
13960
|
+
import { jsx as jsx57 } from "@emotion/react/jsx-runtime";
|
|
13796
13961
|
var InputKeywordSearch = ({
|
|
13797
13962
|
onSearchTextChanged,
|
|
13798
13963
|
disabled = false,
|
|
@@ -13813,7 +13978,7 @@ var InputKeywordSearch = ({
|
|
|
13813
13978
|
e.preventDefault();
|
|
13814
13979
|
}
|
|
13815
13980
|
};
|
|
13816
|
-
return /* @__PURE__ */
|
|
13981
|
+
return /* @__PURE__ */ jsx57(
|
|
13817
13982
|
Input,
|
|
13818
13983
|
{
|
|
13819
13984
|
type: "text",
|
|
@@ -13821,7 +13986,7 @@ var InputKeywordSearch = ({
|
|
|
13821
13986
|
placeholder,
|
|
13822
13987
|
showLabel: false,
|
|
13823
13988
|
value,
|
|
13824
|
-
icon: value ? /* @__PURE__ */
|
|
13989
|
+
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" }),
|
|
13825
13990
|
onChange: handleSearchTextChanged,
|
|
13826
13991
|
onKeyPress: preventSubmitOnField,
|
|
13827
13992
|
disabled,
|
|
@@ -13839,7 +14004,7 @@ var InputKeywordSearch = ({
|
|
|
13839
14004
|
};
|
|
13840
14005
|
|
|
13841
14006
|
// src/components/Input/InputSelect.tsx
|
|
13842
|
-
import { Fragment as Fragment7, jsx as
|
|
14007
|
+
import { Fragment as Fragment7, jsx as jsx58, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
13843
14008
|
var InputSelect = ({
|
|
13844
14009
|
label,
|
|
13845
14010
|
defaultOption,
|
|
@@ -13861,7 +14026,7 @@ var InputSelect = ({
|
|
|
13861
14026
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
13862
14027
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
13863
14028
|
children: [
|
|
13864
|
-
showLabel ? /* @__PURE__ */
|
|
14029
|
+
showLabel ? /* @__PURE__ */ jsx58(Fragment7, { children: /* @__PURE__ */ jsxs36(
|
|
13865
14030
|
Label,
|
|
13866
14031
|
{
|
|
13867
14032
|
htmlFor: props.id,
|
|
@@ -13888,14 +14053,14 @@ var InputSelect = ({
|
|
|
13888
14053
|
className: typeof classNameControl === "string" ? classNameControl : "",
|
|
13889
14054
|
...props,
|
|
13890
14055
|
children: [
|
|
13891
|
-
defaultOption ? /* @__PURE__ */
|
|
13892
|
-
options.map((opt, index) => /* @__PURE__ */
|
|
14056
|
+
defaultOption ? /* @__PURE__ */ jsx58("option", { value: "", children: defaultOption }) : null,
|
|
14057
|
+
options.map((opt, index) => /* @__PURE__ */ jsx58("option", { value: opt.label, ...opt }, index))
|
|
13893
14058
|
]
|
|
13894
14059
|
}
|
|
13895
14060
|
),
|
|
13896
|
-
caption ? /* @__PURE__ */
|
|
13897
|
-
errorMessage ? /* @__PURE__ */
|
|
13898
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14061
|
+
caption ? /* @__PURE__ */ jsx58(Caption, { children: caption }) : null,
|
|
14062
|
+
errorMessage ? /* @__PURE__ */ jsx58(ErrorMessage, { message: errorMessage }) : null,
|
|
14063
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx58(WarningMessage, { message: warningMessage }) : null
|
|
13899
14064
|
]
|
|
13900
14065
|
}
|
|
13901
14066
|
);
|
|
@@ -13903,7 +14068,7 @@ var InputSelect = ({
|
|
|
13903
14068
|
|
|
13904
14069
|
// src/components/Input/InputToggle.tsx
|
|
13905
14070
|
import * as React17 from "react";
|
|
13906
|
-
import { jsx as
|
|
14071
|
+
import { jsx as jsx59, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
|
|
13907
14072
|
var InputToggle = React17.forwardRef(
|
|
13908
14073
|
({
|
|
13909
14074
|
label,
|
|
@@ -13924,7 +14089,7 @@ var InputToggle = React17.forwardRef(
|
|
|
13924
14089
|
css: [inputToggleLabel, disabled ? inputDisabled : void 0],
|
|
13925
14090
|
"data-testid": testId ? testId : "input-toggle",
|
|
13926
14091
|
children: [
|
|
13927
|
-
/* @__PURE__ */
|
|
14092
|
+
/* @__PURE__ */ jsx59(
|
|
13928
14093
|
"input",
|
|
13929
14094
|
{
|
|
13930
14095
|
ref,
|
|
@@ -13936,11 +14101,11 @@ var InputToggle = React17.forwardRef(
|
|
|
13936
14101
|
...props
|
|
13937
14102
|
}
|
|
13938
14103
|
),
|
|
13939
|
-
/* @__PURE__ */
|
|
14104
|
+
/* @__PURE__ */ jsx59("span", { css: inlineLabel(fontWeight), children: label }),
|
|
13940
14105
|
caption || errorMessage ? /* @__PURE__ */ jsxs37("span", { css: inputToggleMessageContainer, children: [
|
|
13941
|
-
caption ? /* @__PURE__ */
|
|
13942
|
-
errorMessage ? /* @__PURE__ */
|
|
13943
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14106
|
+
caption ? /* @__PURE__ */ jsx59(Caption, { children: caption }) : null,
|
|
14107
|
+
errorMessage ? /* @__PURE__ */ jsx59(ErrorMessage, { message: errorMessage }) : null,
|
|
14108
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx59(WarningMessage, { message: warningMessage }) : null
|
|
13944
14109
|
] }) : null
|
|
13945
14110
|
]
|
|
13946
14111
|
}
|
|
@@ -13949,17 +14114,17 @@ var InputToggle = React17.forwardRef(
|
|
|
13949
14114
|
);
|
|
13950
14115
|
|
|
13951
14116
|
// src/components/Input/Legend.tsx
|
|
13952
|
-
import { jsx as
|
|
14117
|
+
import { jsx as jsx60 } from "@emotion/react/jsx-runtime";
|
|
13953
14118
|
var Legend = ({ children }) => {
|
|
13954
|
-
return /* @__PURE__ */
|
|
14119
|
+
return /* @__PURE__ */ jsx60("legend", { css: fieldsetLegend, children });
|
|
13955
14120
|
};
|
|
13956
14121
|
|
|
13957
14122
|
// src/components/Input/SuccessMessage.tsx
|
|
13958
14123
|
import { CgCheckO } from "react-icons/cg";
|
|
13959
14124
|
|
|
13960
14125
|
// src/components/Input/styles/SuccessMessage.styles.ts
|
|
13961
|
-
import { css as
|
|
13962
|
-
var SuccessText =
|
|
14126
|
+
import { css as css52 } from "@emotion/react";
|
|
14127
|
+
var SuccessText = css52`
|
|
13963
14128
|
--info-desc: var(--brand-secondary-3);
|
|
13964
14129
|
--info-icon: var(--brand-secondary-3);
|
|
13965
14130
|
|
|
@@ -13968,28 +14133,28 @@ var SuccessText = css51`
|
|
|
13968
14133
|
display: flex;
|
|
13969
14134
|
gap: var(--spacing-sm);
|
|
13970
14135
|
`;
|
|
13971
|
-
var SuccessIcon2 =
|
|
14136
|
+
var SuccessIcon2 = css52`
|
|
13972
14137
|
color: var(--info-icon);
|
|
13973
14138
|
`;
|
|
13974
14139
|
|
|
13975
14140
|
// src/components/Input/SuccessMessage.tsx
|
|
13976
|
-
import { jsx as
|
|
14141
|
+
import { jsx as jsx61, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
|
|
13977
14142
|
var SuccessMessage = ({ message, testId, ...props }) => {
|
|
13978
14143
|
return message ? /* @__PURE__ */ jsxs38("span", { role: "status", css: SuccessText, "data-testid": testId, ...props, children: [
|
|
13979
|
-
/* @__PURE__ */
|
|
14144
|
+
/* @__PURE__ */ jsx61("span", { children: /* @__PURE__ */ jsx61(Icon, { css: SuccessIcon2, icon: CgCheckO, size: "1rem", iconColor: "currentColor" }) }),
|
|
13980
14145
|
message
|
|
13981
14146
|
] }) : null;
|
|
13982
14147
|
};
|
|
13983
14148
|
|
|
13984
14149
|
// src/components/Input/Textarea.tsx
|
|
13985
14150
|
import { forwardRef as forwardRef8 } from "react";
|
|
13986
|
-
import { Fragment as Fragment8, jsx as
|
|
14151
|
+
import { Fragment as Fragment8, jsx as jsx62, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
13987
14152
|
var Textarea = forwardRef8(
|
|
13988
14153
|
({ label, icon, id, caption, showLabel = true, errorMessage, warningMessage, ...props }, ref) => {
|
|
13989
14154
|
return /* @__PURE__ */ jsxs39(Fragment8, { children: [
|
|
13990
|
-
showLabel ? /* @__PURE__ */
|
|
14155
|
+
showLabel ? /* @__PURE__ */ jsx62("label", { htmlFor: id, css: [labelText], children: label }) : null,
|
|
13991
14156
|
/* @__PURE__ */ jsxs39("div", { css: [inputContainer], children: [
|
|
13992
|
-
/* @__PURE__ */
|
|
14157
|
+
/* @__PURE__ */ jsx62(
|
|
13993
14158
|
"textarea",
|
|
13994
14159
|
{
|
|
13995
14160
|
ref,
|
|
@@ -14004,22 +14169,22 @@ var Textarea = forwardRef8(
|
|
|
14004
14169
|
...props
|
|
14005
14170
|
}
|
|
14006
14171
|
),
|
|
14007
|
-
icon ? /* @__PURE__ */
|
|
14172
|
+
icon ? /* @__PURE__ */ jsx62("div", { css: inputIcon, children: icon }) : null
|
|
14008
14173
|
] }),
|
|
14009
|
-
caption ? /* @__PURE__ */
|
|
14010
|
-
errorMessage ? /* @__PURE__ */
|
|
14011
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14174
|
+
caption ? /* @__PURE__ */ jsx62(Caption, { children: caption }) : null,
|
|
14175
|
+
errorMessage ? /* @__PURE__ */ jsx62(ErrorMessage, { message: errorMessage }) : null,
|
|
14176
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx62(WarningMessage, { message: warningMessage }) : null
|
|
14012
14177
|
] });
|
|
14013
14178
|
}
|
|
14014
14179
|
);
|
|
14015
14180
|
|
|
14016
14181
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
14017
|
-
import { css as
|
|
14182
|
+
import { css as css54 } from "@emotion/react";
|
|
14018
14183
|
import { CgAdd as CgAdd2, CgChevronRight as CgChevronRight2 } from "react-icons/cg";
|
|
14019
14184
|
|
|
14020
14185
|
// src/components/Tiles/styles/IntegrationTile.styles.ts
|
|
14021
|
-
import { css as
|
|
14022
|
-
var IntegrationTileContainer =
|
|
14186
|
+
import { css as css53 } from "@emotion/react";
|
|
14187
|
+
var IntegrationTileContainer = css53`
|
|
14023
14188
|
align-items: center;
|
|
14024
14189
|
box-sizing: border-box;
|
|
14025
14190
|
border-radius: var(--rounded-base);
|
|
@@ -14050,22 +14215,22 @@ var IntegrationTileContainer = css52`
|
|
|
14050
14215
|
}
|
|
14051
14216
|
}
|
|
14052
14217
|
`;
|
|
14053
|
-
var IntegrationTileBtnDashedBorder =
|
|
14218
|
+
var IntegrationTileBtnDashedBorder = css53`
|
|
14054
14219
|
border: 1px dashed var(--brand-secondary-1);
|
|
14055
14220
|
`;
|
|
14056
|
-
var IntegrationTileTitle =
|
|
14221
|
+
var IntegrationTileTitle = css53`
|
|
14057
14222
|
display: block;
|
|
14058
14223
|
font-weight: var(--fw-bold);
|
|
14059
14224
|
margin: 0 0 var(--spacing-base);
|
|
14060
14225
|
max-width: 13rem;
|
|
14061
14226
|
`;
|
|
14062
|
-
var IntegrationTitleLogo =
|
|
14227
|
+
var IntegrationTitleLogo = css53`
|
|
14063
14228
|
display: block;
|
|
14064
14229
|
max-width: 10rem;
|
|
14065
14230
|
max-height: 4rem;
|
|
14066
14231
|
margin: 0 auto;
|
|
14067
14232
|
`;
|
|
14068
|
-
var IntegrationTileName =
|
|
14233
|
+
var IntegrationTileName = css53`
|
|
14069
14234
|
color: var(--gray-500);
|
|
14070
14235
|
display: -webkit-box;
|
|
14071
14236
|
-webkit-line-clamp: 1;
|
|
@@ -14078,7 +14243,7 @@ var IntegrationTileName = css52`
|
|
|
14078
14243
|
position: absolute;
|
|
14079
14244
|
bottom: calc(var(--spacing-base) * 3.8);
|
|
14080
14245
|
`;
|
|
14081
|
-
var IntegrationAddedText =
|
|
14246
|
+
var IntegrationAddedText = css53`
|
|
14082
14247
|
align-items: center;
|
|
14083
14248
|
background: var(--brand-secondary-3);
|
|
14084
14249
|
border-radius: 0 var(--rounded-md) 0 var(--rounded-md);
|
|
@@ -14093,7 +14258,7 @@ var IntegrationAddedText = css52`
|
|
|
14093
14258
|
top: 0;
|
|
14094
14259
|
right: 0;
|
|
14095
14260
|
`;
|
|
14096
|
-
var IntegrationCustomBadgeText = (theme) =>
|
|
14261
|
+
var IntegrationCustomBadgeText = (theme) => css53`
|
|
14097
14262
|
align-items: center;
|
|
14098
14263
|
border-radius: var(--rounded-sm) 0 var(--rounded-sm) 0;
|
|
14099
14264
|
background: ${theme === "gray" ? "var(--brand-secondary-2)" : "var(--brand-secondary-1)"};
|
|
@@ -14107,26 +14272,26 @@ var IntegrationCustomBadgeText = (theme) => css52`
|
|
|
14107
14272
|
top: 0;
|
|
14108
14273
|
left: 0;
|
|
14109
14274
|
`;
|
|
14110
|
-
var IntegrationAuthorBadgeIcon =
|
|
14275
|
+
var IntegrationAuthorBadgeIcon = css53`
|
|
14111
14276
|
position: absolute;
|
|
14112
14277
|
bottom: var(--spacing-sm);
|
|
14113
14278
|
right: var(--spacing-xs);
|
|
14114
14279
|
max-height: 1rem;
|
|
14115
14280
|
`;
|
|
14116
|
-
var IntegrationTitleFakeButton =
|
|
14281
|
+
var IntegrationTitleFakeButton = css53`
|
|
14117
14282
|
font-size: var(--fs-xs);
|
|
14118
14283
|
gap: var(--spacing-sm);
|
|
14119
14284
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
14120
14285
|
text-transform: uppercase;
|
|
14121
14286
|
`;
|
|
14122
|
-
var IntegrationTileFloatingButton =
|
|
14287
|
+
var IntegrationTileFloatingButton = css53`
|
|
14123
14288
|
position: absolute;
|
|
14124
14289
|
bottom: var(--spacing-base);
|
|
14125
14290
|
gap: var(--spacing-sm);
|
|
14126
14291
|
font-size: var(--fs-xs);
|
|
14127
14292
|
overflow: hidden;
|
|
14128
14293
|
`;
|
|
14129
|
-
var IntegrationTileFloatingButtonMessage = (clicked) =>
|
|
14294
|
+
var IntegrationTileFloatingButtonMessage = (clicked) => css53`
|
|
14130
14295
|
strong,
|
|
14131
14296
|
span:first-of-type {
|
|
14132
14297
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
@@ -14147,7 +14312,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => css52`
|
|
|
14147
14312
|
`;
|
|
14148
14313
|
|
|
14149
14314
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
14150
|
-
import { jsx as
|
|
14315
|
+
import { jsx as jsx63, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
|
|
14151
14316
|
var CreateTeamIntegrationTile = ({
|
|
14152
14317
|
title = "Create a custom integration for your team",
|
|
14153
14318
|
buttonText = "Add Integration",
|
|
@@ -14156,7 +14321,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
14156
14321
|
...props
|
|
14157
14322
|
}) => {
|
|
14158
14323
|
return /* @__PURE__ */ jsxs40("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
14159
|
-
/* @__PURE__ */
|
|
14324
|
+
/* @__PURE__ */ jsx63("span", { css: IntegrationTileTitle, title, children: title }),
|
|
14160
14325
|
/* @__PURE__ */ jsxs40(
|
|
14161
14326
|
Button,
|
|
14162
14327
|
{
|
|
@@ -14167,23 +14332,23 @@ var CreateTeamIntegrationTile = ({
|
|
|
14167
14332
|
css: IntegrationTitleFakeButton,
|
|
14168
14333
|
children: [
|
|
14169
14334
|
buttonText,
|
|
14170
|
-
asDeepLink ? /* @__PURE__ */
|
|
14335
|
+
asDeepLink ? /* @__PURE__ */ jsx63(
|
|
14171
14336
|
Icon,
|
|
14172
14337
|
{
|
|
14173
14338
|
icon: CgChevronRight2,
|
|
14174
14339
|
iconColor: "currentColor",
|
|
14175
14340
|
size: 20,
|
|
14176
|
-
css:
|
|
14341
|
+
css: css54`
|
|
14177
14342
|
order: 1;
|
|
14178
14343
|
`
|
|
14179
14344
|
}
|
|
14180
|
-
) : /* @__PURE__ */
|
|
14345
|
+
) : /* @__PURE__ */ jsx63(
|
|
14181
14346
|
Icon,
|
|
14182
14347
|
{
|
|
14183
14348
|
icon: CgAdd2,
|
|
14184
14349
|
iconColor: "currentColor",
|
|
14185
14350
|
size: 16,
|
|
14186
|
-
css:
|
|
14351
|
+
css: css54`
|
|
14187
14352
|
order: -1;
|
|
14188
14353
|
`
|
|
14189
14354
|
}
|
|
@@ -14196,31 +14361,31 @@ var CreateTeamIntegrationTile = ({
|
|
|
14196
14361
|
|
|
14197
14362
|
// src/components/Tiles/IntegrationBadges.tsx
|
|
14198
14363
|
import { CgCheck, CgLock, CgSandClock } from "react-icons/cg";
|
|
14199
|
-
import { jsx as
|
|
14364
|
+
import { jsx as jsx64, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
14200
14365
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
14201
14366
|
return /* @__PURE__ */ jsxs41("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
14202
|
-
/* @__PURE__ */
|
|
14367
|
+
/* @__PURE__ */ jsx64(Icon, { icon: CgCheck, iconColor: "currentColor" }),
|
|
14203
14368
|
text
|
|
14204
14369
|
] });
|
|
14205
14370
|
};
|
|
14206
14371
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
14207
|
-
return /* @__PURE__ */
|
|
14372
|
+
return /* @__PURE__ */ jsx64("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
14208
14373
|
};
|
|
14209
14374
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
14210
14375
|
return /* @__PURE__ */ jsxs41("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
14211
|
-
/* @__PURE__ */
|
|
14376
|
+
/* @__PURE__ */ jsx64(Icon, { icon: CgLock, iconColor: "currentColor", size: 12 }),
|
|
14212
14377
|
text
|
|
14213
14378
|
] });
|
|
14214
14379
|
};
|
|
14215
14380
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
14216
14381
|
return /* @__PURE__ */ jsxs41("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
14217
|
-
/* @__PURE__ */
|
|
14382
|
+
/* @__PURE__ */ jsx64(Icon, { icon: CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
14218
14383
|
text
|
|
14219
14384
|
] });
|
|
14220
14385
|
};
|
|
14221
14386
|
|
|
14222
14387
|
// src/components/Tiles/ResolveIcon.tsx
|
|
14223
|
-
import { jsx as
|
|
14388
|
+
import { jsx as jsx65 } from "@emotion/react/jsx-runtime";
|
|
14224
14389
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
14225
14390
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
14226
14391
|
const mapClassName = {
|
|
@@ -14228,13 +14393,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
14228
14393
|
logo: IntegrationTitleLogo
|
|
14229
14394
|
};
|
|
14230
14395
|
if (icon) {
|
|
14231
|
-
return CompIcon ? /* @__PURE__ */
|
|
14396
|
+
return CompIcon ? /* @__PURE__ */ jsx65(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ jsx65("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
14232
14397
|
}
|
|
14233
14398
|
return null;
|
|
14234
14399
|
};
|
|
14235
14400
|
|
|
14236
14401
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
14237
|
-
import { jsx as
|
|
14402
|
+
import { jsx as jsx66, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
14238
14403
|
var EditTeamIntegrationTile = ({
|
|
14239
14404
|
id,
|
|
14240
14405
|
icon,
|
|
@@ -14250,10 +14415,10 @@ var EditTeamIntegrationTile = ({
|
|
|
14250
14415
|
"data-testid": "configure-integration-container",
|
|
14251
14416
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
14252
14417
|
children: [
|
|
14253
|
-
/* @__PURE__ */
|
|
14254
|
-
/* @__PURE__ */
|
|
14255
|
-
!isPublic ? /* @__PURE__ */
|
|
14256
|
-
canEdit ? /* @__PURE__ */
|
|
14418
|
+
/* @__PURE__ */ jsx66(ResolveIcon, { icon, name, "data-testid": "integration-logo" }),
|
|
14419
|
+
/* @__PURE__ */ jsx66("span", { css: IntegrationTileName, "data-testid": "integration-card-name", children: name }),
|
|
14420
|
+
!isPublic ? /* @__PURE__ */ jsx66(IntegrationCustomBadge, {}) : null,
|
|
14421
|
+
canEdit ? /* @__PURE__ */ jsx66(
|
|
14257
14422
|
Button,
|
|
14258
14423
|
{
|
|
14259
14424
|
buttonType: "unimportant",
|
|
@@ -14271,10 +14436,10 @@ var EditTeamIntegrationTile = ({
|
|
|
14271
14436
|
};
|
|
14272
14437
|
|
|
14273
14438
|
// src/components/Tiles/IntegrationComingSoon.tsx
|
|
14274
|
-
import { css as
|
|
14439
|
+
import { css as css55 } from "@emotion/react";
|
|
14275
14440
|
import { useEffect as useEffect7, useState as useState7 } from "react";
|
|
14276
14441
|
import { CgHeart } from "react-icons/cg";
|
|
14277
|
-
import { jsx as
|
|
14442
|
+
import { jsx as jsx67, jsxs as jsxs43 } from "@emotion/react/jsx-runtime";
|
|
14278
14443
|
var IntegrationComingSoon = ({
|
|
14279
14444
|
name,
|
|
14280
14445
|
icon,
|
|
@@ -14303,9 +14468,9 @@ var IntegrationComingSoon = ({
|
|
|
14303
14468
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
14304
14469
|
...props,
|
|
14305
14470
|
children: [
|
|
14306
|
-
/* @__PURE__ */
|
|
14307
|
-
/* @__PURE__ */
|
|
14308
|
-
/* @__PURE__ */
|
|
14471
|
+
/* @__PURE__ */ jsx67(IntegrationComingSoonBadge, {}),
|
|
14472
|
+
/* @__PURE__ */ jsx67(ResolveIcon, { icon, name }),
|
|
14473
|
+
/* @__PURE__ */ jsx67("span", { css: IntegrationTileName, title: name, children: name }),
|
|
14309
14474
|
/* @__PURE__ */ jsxs43(
|
|
14310
14475
|
Button,
|
|
14311
14476
|
{
|
|
@@ -14316,11 +14481,11 @@ var IntegrationComingSoon = ({
|
|
|
14316
14481
|
role: "link",
|
|
14317
14482
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
14318
14483
|
children: [
|
|
14319
|
-
/* @__PURE__ */
|
|
14320
|
-
/* @__PURE__ */
|
|
14484
|
+
/* @__PURE__ */ jsx67("strong", { children: "+1" }),
|
|
14485
|
+
/* @__PURE__ */ jsx67(
|
|
14321
14486
|
"span",
|
|
14322
14487
|
{
|
|
14323
|
-
css:
|
|
14488
|
+
css: css55`
|
|
14324
14489
|
text-transform: uppercase;
|
|
14325
14490
|
color: var(--gray-500);
|
|
14326
14491
|
`,
|
|
@@ -14328,7 +14493,7 @@ var IntegrationComingSoon = ({
|
|
|
14328
14493
|
}
|
|
14329
14494
|
),
|
|
14330
14495
|
/* @__PURE__ */ jsxs43("span", { "aria-hidden": !upVote, children: [
|
|
14331
|
-
/* @__PURE__ */
|
|
14496
|
+
/* @__PURE__ */ jsx67(Icon, { icon: CgHeart, iconColor: "currentColor", size: 18 }),
|
|
14332
14497
|
"Thanks!"
|
|
14333
14498
|
] })
|
|
14334
14499
|
]
|
|
@@ -14340,8 +14505,8 @@ var IntegrationComingSoon = ({
|
|
|
14340
14505
|
};
|
|
14341
14506
|
|
|
14342
14507
|
// src/components/Tiles/styles/IntegrationLoadingTile.styles.ts
|
|
14343
|
-
import { css as
|
|
14344
|
-
var IntegrationLoadingTileContainer =
|
|
14508
|
+
import { css as css56 } from "@emotion/react";
|
|
14509
|
+
var IntegrationLoadingTileContainer = css56`
|
|
14345
14510
|
align-items: center;
|
|
14346
14511
|
box-sizing: border-box;
|
|
14347
14512
|
border-radius: var(--rounded-base);
|
|
@@ -14368,39 +14533,39 @@ var IntegrationLoadingTileContainer = css55`
|
|
|
14368
14533
|
}
|
|
14369
14534
|
}
|
|
14370
14535
|
`;
|
|
14371
|
-
var IntegrationLoadingTileImg =
|
|
14536
|
+
var IntegrationLoadingTileImg = css56`
|
|
14372
14537
|
width: 10rem;
|
|
14373
14538
|
height: 4rem;
|
|
14374
14539
|
margin: 0 auto;
|
|
14375
14540
|
`;
|
|
14376
|
-
var IntegrationLoadingTileText =
|
|
14541
|
+
var IntegrationLoadingTileText = css56`
|
|
14377
14542
|
width: 5rem;
|
|
14378
14543
|
height: var(--spacing-sm);
|
|
14379
14544
|
margin: var(--spacing-sm) 0;
|
|
14380
14545
|
`;
|
|
14381
|
-
var IntegrationLoadingFrame =
|
|
14546
|
+
var IntegrationLoadingFrame = css56`
|
|
14382
14547
|
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
14383
14548
|
border-radius: var(--rounded-base);
|
|
14384
14549
|
`;
|
|
14385
14550
|
|
|
14386
14551
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
14387
|
-
import { Fragment as Fragment9, jsx as
|
|
14552
|
+
import { Fragment as Fragment9, jsx as jsx68, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
14388
14553
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
14389
14554
|
const componentCount = Array.from(Array(count).keys());
|
|
14390
|
-
return /* @__PURE__ */
|
|
14391
|
-
/* @__PURE__ */
|
|
14392
|
-
/* @__PURE__ */
|
|
14555
|
+
return /* @__PURE__ */ jsx68(Fragment9, { children: componentCount.map((i) => /* @__PURE__ */ jsxs44("div", { css: IntegrationLoadingTileContainer, children: [
|
|
14556
|
+
/* @__PURE__ */ jsx68("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
14557
|
+
/* @__PURE__ */ jsx68("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
14393
14558
|
] }, i)) });
|
|
14394
14559
|
};
|
|
14395
14560
|
|
|
14396
14561
|
// src/components/Tiles/styles/IntegrationModalIcon.styles.ts
|
|
14397
|
-
import { css as
|
|
14398
|
-
var IntegrationModalIconContainer =
|
|
14562
|
+
import { css as css57 } from "@emotion/react";
|
|
14563
|
+
var IntegrationModalIconContainer = css57`
|
|
14399
14564
|
position: relative;
|
|
14400
14565
|
width: 50px;
|
|
14401
14566
|
margin-bottom: var(--spacing-base);
|
|
14402
14567
|
`;
|
|
14403
|
-
var IntegrationModalImage =
|
|
14568
|
+
var IntegrationModalImage = css57`
|
|
14404
14569
|
position: absolute;
|
|
14405
14570
|
inset: 0;
|
|
14406
14571
|
margin: auto;
|
|
@@ -14409,7 +14574,7 @@ var IntegrationModalImage = css56`
|
|
|
14409
14574
|
`;
|
|
14410
14575
|
|
|
14411
14576
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
14412
|
-
import { jsx as
|
|
14577
|
+
import { jsx as jsx69, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
|
|
14413
14578
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
14414
14579
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
14415
14580
|
let iconSrc = void 0;
|
|
@@ -14427,7 +14592,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
14427
14592
|
}
|
|
14428
14593
|
return /* @__PURE__ */ jsxs45("div", { css: IntegrationModalIconContainer, children: [
|
|
14429
14594
|
/* @__PURE__ */ jsxs45("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
14430
|
-
/* @__PURE__ */
|
|
14595
|
+
/* @__PURE__ */ jsx69(
|
|
14431
14596
|
"path",
|
|
14432
14597
|
{
|
|
14433
14598
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -14436,12 +14601,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
14436
14601
|
strokeWidth: "2"
|
|
14437
14602
|
}
|
|
14438
14603
|
),
|
|
14439
|
-
/* @__PURE__ */
|
|
14440
|
-
/* @__PURE__ */
|
|
14441
|
-
/* @__PURE__ */
|
|
14604
|
+
/* @__PURE__ */ jsx69("defs", { children: /* @__PURE__ */ jsxs45("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
14605
|
+
/* @__PURE__ */ jsx69("stop", { stopColor: "#1768B2" }),
|
|
14606
|
+
/* @__PURE__ */ jsx69("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
14442
14607
|
] }) })
|
|
14443
14608
|
] }),
|
|
14444
|
-
CompIcon ? /* @__PURE__ */
|
|
14609
|
+
CompIcon ? /* @__PURE__ */ jsx69(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : iconSrc ? /* @__PURE__ */ jsx69(
|
|
14445
14610
|
"img",
|
|
14446
14611
|
{
|
|
14447
14612
|
src: iconSrc,
|
|
@@ -14455,7 +14620,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
14455
14620
|
};
|
|
14456
14621
|
|
|
14457
14622
|
// src/components/Tiles/IntegrationTile.tsx
|
|
14458
|
-
import { jsx as
|
|
14623
|
+
import { jsx as jsx70, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
14459
14624
|
var IntegrationTile = ({
|
|
14460
14625
|
id,
|
|
14461
14626
|
icon,
|
|
@@ -14477,21 +14642,21 @@ var IntegrationTile = ({
|
|
|
14477
14642
|
"aria-label": name,
|
|
14478
14643
|
...btnProps,
|
|
14479
14644
|
children: [
|
|
14480
|
-
/* @__PURE__ */
|
|
14481
|
-
/* @__PURE__ */
|
|
14482
|
-
isInstalled ? /* @__PURE__ */
|
|
14483
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */
|
|
14484
|
-
!isPublic ? /* @__PURE__ */
|
|
14485
|
-
authorIcon ? /* @__PURE__ */
|
|
14645
|
+
/* @__PURE__ */ jsx70(ResolveIcon, { icon, name }),
|
|
14646
|
+
/* @__PURE__ */ jsx70("span", { css: IntegrationTileName, title: name, children: name }),
|
|
14647
|
+
isInstalled ? /* @__PURE__ */ jsx70(IntegrationedAddedBadge, {}) : null,
|
|
14648
|
+
requiedEntitlement && isPublic ? /* @__PURE__ */ jsx70(IntegrationPremiumBadge, {}) : null,
|
|
14649
|
+
!isPublic ? /* @__PURE__ */ jsx70(IntegrationCustomBadge, {}) : null,
|
|
14650
|
+
authorIcon ? /* @__PURE__ */ jsx70(ResolveIcon, { icon: authorIcon, name }) : null
|
|
14486
14651
|
]
|
|
14487
14652
|
}
|
|
14488
14653
|
);
|
|
14489
14654
|
};
|
|
14490
14655
|
|
|
14491
14656
|
// src/components/Tiles/styles/Tile.styles.ts
|
|
14492
|
-
import { css as
|
|
14657
|
+
import { css as css58 } from "@emotion/react";
|
|
14493
14658
|
var tileBorderSize = "1px";
|
|
14494
|
-
var Tile =
|
|
14659
|
+
var Tile = css58`
|
|
14495
14660
|
background: var(--white);
|
|
14496
14661
|
cursor: pointer;
|
|
14497
14662
|
border: ${tileBorderSize} solid var(--gray-300);
|
|
@@ -14515,18 +14680,18 @@ var Tile = css57`
|
|
|
14515
14680
|
`;
|
|
14516
14681
|
|
|
14517
14682
|
// src/components/Tiles/Tile.tsx
|
|
14518
|
-
import { jsx as
|
|
14683
|
+
import { jsx as jsx71 } from "@emotion/react/jsx-runtime";
|
|
14519
14684
|
var Tile2 = ({ children, disabled, ...props }) => {
|
|
14520
|
-
return /* @__PURE__ */
|
|
14685
|
+
return /* @__PURE__ */ jsx71("button", { type: "button", css: Tile, disabled, ...props, children });
|
|
14521
14686
|
};
|
|
14522
14687
|
|
|
14523
14688
|
// src/components/Tiles/styles/TileContainer.styles.ts
|
|
14524
|
-
import { css as
|
|
14525
|
-
var TileContainerWrapper = (theme, padding) =>
|
|
14689
|
+
import { css as css59 } from "@emotion/react";
|
|
14690
|
+
var TileContainerWrapper = (theme, padding) => css59`
|
|
14526
14691
|
background: ${theme};
|
|
14527
14692
|
padding: ${padding != "none" ? `var(--spacing-${padding})` : "0"};
|
|
14528
14693
|
`;
|
|
14529
|
-
var TileContainerInner = (gap, templateColumns) =>
|
|
14694
|
+
var TileContainerInner = (gap, templateColumns) => css59`
|
|
14530
14695
|
display: grid;
|
|
14531
14696
|
grid-template-columns: ${templateColumns};
|
|
14532
14697
|
gap: var(--spacing-${gap});
|
|
@@ -14540,7 +14705,7 @@ var TileContainerInner = (gap, templateColumns) => css58`
|
|
|
14540
14705
|
`;
|
|
14541
14706
|
|
|
14542
14707
|
// src/components/Tiles/TileContainer.tsx
|
|
14543
|
-
import { jsx as
|
|
14708
|
+
import { jsx as jsx72 } from "@emotion/react/jsx-runtime";
|
|
14544
14709
|
var TileContainer = ({
|
|
14545
14710
|
bgColor = "var(--brand-secondary-2)",
|
|
14546
14711
|
containerPadding = "base",
|
|
@@ -14549,25 +14714,25 @@ var TileContainer = ({
|
|
|
14549
14714
|
children,
|
|
14550
14715
|
...props
|
|
14551
14716
|
}) => {
|
|
14552
|
-
return /* @__PURE__ */
|
|
14717
|
+
return /* @__PURE__ */ jsx72("div", { css: TileContainerWrapper(bgColor, containerPadding), ...props, children: /* @__PURE__ */ jsx72("div", { css: TileContainerInner(gap, gridTemplateColumns), children }) });
|
|
14553
14718
|
};
|
|
14554
14719
|
|
|
14555
14720
|
// src/components/Tiles/styles/TileText.styles.ts
|
|
14556
|
-
import { css as
|
|
14557
|
-
var TileHeading =
|
|
14721
|
+
import { css as css60 } from "@emotion/react";
|
|
14722
|
+
var TileHeading = css60`
|
|
14558
14723
|
font-size: var(--fs-base);
|
|
14559
14724
|
`;
|
|
14560
|
-
var TileText =
|
|
14725
|
+
var TileText = css60`
|
|
14561
14726
|
color: var(--gray-500);
|
|
14562
14727
|
font-size: var(--fs-sm);
|
|
14563
14728
|
line-height: 1.2;
|
|
14564
14729
|
`;
|
|
14565
14730
|
|
|
14566
14731
|
// src/components/Tiles/TileText.tsx
|
|
14567
|
-
import { jsx as
|
|
14732
|
+
import { jsx as jsx73 } from "@emotion/react/jsx-runtime";
|
|
14568
14733
|
var TileText2 = ({ as = "heading", children, ...props }) => {
|
|
14569
14734
|
const isHeading = as === "heading";
|
|
14570
|
-
return /* @__PURE__ */
|
|
14735
|
+
return /* @__PURE__ */ jsx73(
|
|
14571
14736
|
"span",
|
|
14572
14737
|
{
|
|
14573
14738
|
role: isHeading ? "heading" : void 0,
|
|
@@ -14579,37 +14744,37 @@ var TileText2 = ({ as = "heading", children, ...props }) => {
|
|
|
14579
14744
|
};
|
|
14580
14745
|
|
|
14581
14746
|
// src/components/IntegrationModalHeader/IntegrationModalHeader.styles.ts
|
|
14582
|
-
import { css as
|
|
14583
|
-
var IntegrationModalHeaderSVGBackground =
|
|
14747
|
+
import { css as css61 } from "@emotion/react";
|
|
14748
|
+
var IntegrationModalHeaderSVGBackground = css61`
|
|
14584
14749
|
position: absolute;
|
|
14585
14750
|
top: 0;
|
|
14586
14751
|
left: 0;
|
|
14587
14752
|
`;
|
|
14588
|
-
var IntegrationModalHeaderGroup =
|
|
14753
|
+
var IntegrationModalHeaderGroup = css61`
|
|
14589
14754
|
align-items: center;
|
|
14590
14755
|
display: flex;
|
|
14591
14756
|
gap: var(--spacing-sm);
|
|
14592
14757
|
margin: 0 0 var(--spacing-md);
|
|
14593
14758
|
position: relative;
|
|
14594
14759
|
`;
|
|
14595
|
-
var IntegrationModalHeaderTitleGroup =
|
|
14760
|
+
var IntegrationModalHeaderTitleGroup = css61`
|
|
14596
14761
|
align-items: center;
|
|
14597
14762
|
display: flex;
|
|
14598
14763
|
gap: var(--spacing-base);
|
|
14599
14764
|
`;
|
|
14600
|
-
var IntegrationModalHeaderTitle =
|
|
14765
|
+
var IntegrationModalHeaderTitle = css61`
|
|
14601
14766
|
margin-top: 0;
|
|
14602
14767
|
`;
|
|
14603
|
-
var IntegrationModalHeaderMenuPlacement =
|
|
14768
|
+
var IntegrationModalHeaderMenuPlacement = css61`
|
|
14604
14769
|
margin-bottom: var(--spacing-base);
|
|
14605
14770
|
`;
|
|
14606
|
-
var IntegrationModalHeaderContentWrapper =
|
|
14771
|
+
var IntegrationModalHeaderContentWrapper = css61`
|
|
14607
14772
|
position: relative;
|
|
14608
14773
|
z-index: var(--z-10);
|
|
14609
14774
|
`;
|
|
14610
14775
|
|
|
14611
14776
|
// src/components/IntegrationModalHeader/IntegrationModalHeader.tsx
|
|
14612
|
-
import { Fragment as Fragment10, jsx as
|
|
14777
|
+
import { Fragment as Fragment10, jsx as jsx74, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
14613
14778
|
var HexModalBackground = ({ ...props }) => {
|
|
14614
14779
|
return /* @__PURE__ */ jsxs47(
|
|
14615
14780
|
"svg",
|
|
@@ -14621,7 +14786,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14621
14786
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14622
14787
|
...props,
|
|
14623
14788
|
children: [
|
|
14624
|
-
/* @__PURE__ */
|
|
14789
|
+
/* @__PURE__ */ jsx74(
|
|
14625
14790
|
"path",
|
|
14626
14791
|
{
|
|
14627
14792
|
fillRule: "evenodd",
|
|
@@ -14630,7 +14795,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14630
14795
|
fill: "url(#paint0_linear_196_2737)"
|
|
14631
14796
|
}
|
|
14632
14797
|
),
|
|
14633
|
-
/* @__PURE__ */
|
|
14798
|
+
/* @__PURE__ */ jsx74("defs", { children: /* @__PURE__ */ jsxs47(
|
|
14634
14799
|
"linearGradient",
|
|
14635
14800
|
{
|
|
14636
14801
|
id: "paint0_linear_196_2737",
|
|
@@ -14640,8 +14805,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14640
14805
|
y2: "-95.2742",
|
|
14641
14806
|
gradientUnits: "userSpaceOnUse",
|
|
14642
14807
|
children: [
|
|
14643
|
-
/* @__PURE__ */
|
|
14644
|
-
/* @__PURE__ */
|
|
14808
|
+
/* @__PURE__ */ jsx74("stop", { stopColor: "#81DCDE" }),
|
|
14809
|
+
/* @__PURE__ */ jsx74("stop", { offset: "1", stopColor: "#428ED4" })
|
|
14645
14810
|
]
|
|
14646
14811
|
}
|
|
14647
14812
|
) })
|
|
@@ -14651,22 +14816,22 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14651
14816
|
};
|
|
14652
14817
|
var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
14653
14818
|
return /* @__PURE__ */ jsxs47(Fragment10, { children: [
|
|
14654
|
-
/* @__PURE__ */
|
|
14655
|
-
/* @__PURE__ */
|
|
14656
|
-
icon ? /* @__PURE__ */
|
|
14657
|
-
/* @__PURE__ */
|
|
14819
|
+
/* @__PURE__ */ jsx74(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
14820
|
+
/* @__PURE__ */ jsx74("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs47("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
14821
|
+
icon ? /* @__PURE__ */ jsx74(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
14822
|
+
/* @__PURE__ */ jsx74(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-testid": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
14658
14823
|
menu2 ? /* @__PURE__ */ jsxs47("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
14659
14824
|
menu2,
|
|
14660
14825
|
" "
|
|
14661
14826
|
] }) : null
|
|
14662
14827
|
] }) }),
|
|
14663
|
-
/* @__PURE__ */
|
|
14828
|
+
/* @__PURE__ */ jsx74("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
14664
14829
|
] });
|
|
14665
14830
|
};
|
|
14666
14831
|
|
|
14667
14832
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
14668
14833
|
import MonacoEditor from "@monaco-editor/react";
|
|
14669
|
-
import { jsx as
|
|
14834
|
+
import { jsx as jsx75 } from "@emotion/react/jsx-runtime";
|
|
14670
14835
|
var minEditorHeightPx = 150;
|
|
14671
14836
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
14672
14837
|
let effectiveHeight = height;
|
|
@@ -14676,7 +14841,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
14676
14841
|
if (typeof effectiveHeight === "number" && effectiveHeight < minEditorHeightPx) {
|
|
14677
14842
|
effectiveHeight = minEditorHeightPx;
|
|
14678
14843
|
}
|
|
14679
|
-
return /* @__PURE__ */
|
|
14844
|
+
return /* @__PURE__ */ jsx75(
|
|
14680
14845
|
MonacoEditor,
|
|
14681
14846
|
{
|
|
14682
14847
|
height: effectiveHeight,
|
|
@@ -14713,39 +14878,39 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
14713
14878
|
};
|
|
14714
14879
|
|
|
14715
14880
|
// src/components/LimitsBar/LimitsBar.styles.ts
|
|
14716
|
-
import { css as
|
|
14717
|
-
var LimitsBarContainer =
|
|
14881
|
+
import { css as css62 } from "@emotion/react";
|
|
14882
|
+
var LimitsBarContainer = css62`
|
|
14718
14883
|
margin-block: var(--spacing-sm);
|
|
14719
14884
|
`;
|
|
14720
|
-
var LimitsBarProgressBar =
|
|
14885
|
+
var LimitsBarProgressBar = css62`
|
|
14721
14886
|
background: var(--gray-100);
|
|
14722
14887
|
margin-top: var(--spacing-sm);
|
|
14723
14888
|
position: relative;
|
|
14724
14889
|
overflow: hidden;
|
|
14725
14890
|
height: 0.25rem;
|
|
14726
14891
|
`;
|
|
14727
|
-
var LimitsBarProgressBarLine =
|
|
14892
|
+
var LimitsBarProgressBarLine = css62`
|
|
14728
14893
|
position: absolute;
|
|
14729
14894
|
inset: 0;
|
|
14730
14895
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
14731
14896
|
`;
|
|
14732
|
-
var LimitsBarLabelContainer =
|
|
14897
|
+
var LimitsBarLabelContainer = css62`
|
|
14733
14898
|
display: flex;
|
|
14734
14899
|
justify-content: space-between;
|
|
14735
14900
|
font-weight: var(--fw-bold);
|
|
14736
14901
|
`;
|
|
14737
|
-
var LimitsBarLabel =
|
|
14902
|
+
var LimitsBarLabel = css62`
|
|
14738
14903
|
font-size: var(--fs-baase);
|
|
14739
14904
|
`;
|
|
14740
|
-
var LimitsBarBgColor = (statusColor) =>
|
|
14905
|
+
var LimitsBarBgColor = (statusColor) => css62`
|
|
14741
14906
|
background: ${statusColor};
|
|
14742
14907
|
`;
|
|
14743
|
-
var LimitsBarTextColor = (statusColor) =>
|
|
14908
|
+
var LimitsBarTextColor = (statusColor) => css62`
|
|
14744
14909
|
color: ${statusColor};
|
|
14745
14910
|
`;
|
|
14746
14911
|
|
|
14747
14912
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
14748
|
-
import { jsx as
|
|
14913
|
+
import { jsx as jsx76, jsxs as jsxs48 } from "@emotion/react/jsx-runtime";
|
|
14749
14914
|
var LimitsBar = ({ current, max, label }) => {
|
|
14750
14915
|
const maxPercentage = 100;
|
|
14751
14916
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -14758,14 +14923,14 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
14758
14923
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
14759
14924
|
return /* @__PURE__ */ jsxs48("div", { css: LimitsBarContainer, children: [
|
|
14760
14925
|
/* @__PURE__ */ jsxs48("div", { css: LimitsBarLabelContainer, children: [
|
|
14761
|
-
/* @__PURE__ */
|
|
14926
|
+
/* @__PURE__ */ jsx76("span", { css: LimitsBarLabel, children: label }),
|
|
14762
14927
|
/* @__PURE__ */ jsxs48("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
14763
14928
|
current,
|
|
14764
14929
|
" of ",
|
|
14765
14930
|
max
|
|
14766
14931
|
] })
|
|
14767
14932
|
] }),
|
|
14768
|
-
/* @__PURE__ */
|
|
14933
|
+
/* @__PURE__ */ jsx76(
|
|
14769
14934
|
"div",
|
|
14770
14935
|
{
|
|
14771
14936
|
role: "progressbar",
|
|
@@ -14774,7 +14939,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
14774
14939
|
"aria-valuemax": max,
|
|
14775
14940
|
"aria-valuetext": `${current} of ${max}`,
|
|
14776
14941
|
css: LimitsBarProgressBar,
|
|
14777
|
-
children: /* @__PURE__ */
|
|
14942
|
+
children: /* @__PURE__ */ jsx76(
|
|
14778
14943
|
"span",
|
|
14779
14944
|
{
|
|
14780
14945
|
role: "presentation",
|
|
@@ -14790,8 +14955,8 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
14790
14955
|
};
|
|
14791
14956
|
|
|
14792
14957
|
// src/components/LinkList/LinkList.styles.ts
|
|
14793
|
-
import { css as
|
|
14794
|
-
var LinkListContainer = (padding) =>
|
|
14958
|
+
import { css as css63 } from "@emotion/react";
|
|
14959
|
+
var LinkListContainer = (padding) => css63`
|
|
14795
14960
|
padding: ${padding};
|
|
14796
14961
|
|
|
14797
14962
|
${mq("sm")} {
|
|
@@ -14799,30 +14964,30 @@ var LinkListContainer = (padding) => css62`
|
|
|
14799
14964
|
grid-row: 1 / last-line;
|
|
14800
14965
|
}
|
|
14801
14966
|
`;
|
|
14802
|
-
var LinkListTitle =
|
|
14967
|
+
var LinkListTitle = css63`
|
|
14803
14968
|
font-weight: var(--fw-bold);
|
|
14804
14969
|
font-size: var(--fs-sm);
|
|
14805
14970
|
text-transform: uppercase;
|
|
14806
14971
|
`;
|
|
14807
14972
|
|
|
14808
14973
|
// src/components/LinkList/LinkList.tsx
|
|
14809
|
-
import { jsx as
|
|
14974
|
+
import { jsx as jsx77, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
14810
14975
|
var LinkList = ({ title, padding = "var(--spacing-md)", children, ...props }) => {
|
|
14811
14976
|
return /* @__PURE__ */ jsxs49("div", { css: LinkListContainer(padding), ...props, children: [
|
|
14812
|
-
/* @__PURE__ */
|
|
14977
|
+
/* @__PURE__ */ jsx77(Heading, { level: 3, css: LinkListTitle, children: title }),
|
|
14813
14978
|
children
|
|
14814
14979
|
] });
|
|
14815
14980
|
};
|
|
14816
14981
|
|
|
14817
14982
|
// src/components/List/ScrollableList.tsx
|
|
14818
|
-
import { css as
|
|
14983
|
+
import { css as css65 } from "@emotion/react";
|
|
14819
14984
|
|
|
14820
14985
|
// src/components/List/styles/ScrollableList.styles.ts
|
|
14821
|
-
import { css as
|
|
14822
|
-
var ScrollableListContainer =
|
|
14986
|
+
import { css as css64 } from "@emotion/react";
|
|
14987
|
+
var ScrollableListContainer = css64`
|
|
14823
14988
|
position: relative;
|
|
14824
14989
|
`;
|
|
14825
|
-
var ScrollableListInner =
|
|
14990
|
+
var ScrollableListInner = css64`
|
|
14826
14991
|
background: var(--gray-50);
|
|
14827
14992
|
border-top: 1px solid var(--gray-200);
|
|
14828
14993
|
border-bottom: 1px solid var(--gray-200);
|
|
@@ -14845,19 +15010,19 @@ var ScrollableListInner = css63`
|
|
|
14845
15010
|
`;
|
|
14846
15011
|
|
|
14847
15012
|
// src/components/List/ScrollableList.tsx
|
|
14848
|
-
import { jsx as
|
|
15013
|
+
import { jsx as jsx78, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
14849
15014
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
14850
15015
|
return /* @__PURE__ */ jsxs50("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
14851
|
-
label ? /* @__PURE__ */
|
|
15016
|
+
label ? /* @__PURE__ */ jsx78(
|
|
14852
15017
|
"span",
|
|
14853
15018
|
{
|
|
14854
|
-
css:
|
|
15019
|
+
css: css65`
|
|
14855
15020
|
${labelText}
|
|
14856
15021
|
`,
|
|
14857
15022
|
children: label
|
|
14858
15023
|
}
|
|
14859
15024
|
) : null,
|
|
14860
|
-
/* @__PURE__ */
|
|
15025
|
+
/* @__PURE__ */ jsx78("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
14861
15026
|
] });
|
|
14862
15027
|
};
|
|
14863
15028
|
|
|
@@ -14865,8 +15030,8 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
14865
15030
|
import { CgCheck as CgCheck2 } from "react-icons/cg";
|
|
14866
15031
|
|
|
14867
15032
|
// src/components/List/styles/ScrollableListItem.styles.ts
|
|
14868
|
-
import { css as
|
|
14869
|
-
var ScrollableListItemContainer =
|
|
15033
|
+
import { css as css66 } from "@emotion/react";
|
|
15034
|
+
var ScrollableListItemContainer = css66`
|
|
14870
15035
|
align-items: center;
|
|
14871
15036
|
background: var(--white);
|
|
14872
15037
|
border-radius: var(--rounded-base);
|
|
@@ -14875,13 +15040,13 @@ var ScrollableListItemContainer = css65`
|
|
|
14875
15040
|
min-height: 52px;
|
|
14876
15041
|
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
14877
15042
|
`;
|
|
14878
|
-
var ScrollableListItemShadow =
|
|
15043
|
+
var ScrollableListItemShadow = css66`
|
|
14879
15044
|
box-shadow: var(--shadow-base);
|
|
14880
15045
|
`;
|
|
14881
|
-
var ScrollableListItemActive =
|
|
15046
|
+
var ScrollableListItemActive = css66`
|
|
14882
15047
|
border-color: var(--brand-secondary-3);
|
|
14883
15048
|
`;
|
|
14884
|
-
var ScrollableListItemBtn =
|
|
15049
|
+
var ScrollableListItemBtn = css66`
|
|
14885
15050
|
align-items: center;
|
|
14886
15051
|
border: none;
|
|
14887
15052
|
background: transparent;
|
|
@@ -14896,27 +15061,27 @@ var ScrollableListItemBtn = css65`
|
|
|
14896
15061
|
outline: none;
|
|
14897
15062
|
}
|
|
14898
15063
|
`;
|
|
14899
|
-
var ScrollableListInputLabel =
|
|
15064
|
+
var ScrollableListInputLabel = css66`
|
|
14900
15065
|
align-items: center;
|
|
14901
15066
|
cursor: pointer;
|
|
14902
15067
|
display: flex;
|
|
14903
15068
|
padding: var(--spacing-xs) var(--spacing-base) var(--spacing-xs);
|
|
14904
15069
|
flex-grow: 1;
|
|
14905
15070
|
`;
|
|
14906
|
-
var ScrollableListInputText =
|
|
15071
|
+
var ScrollableListInputText = css66`
|
|
14907
15072
|
align-items: center;
|
|
14908
15073
|
display: flex;
|
|
14909
15074
|
gap: var(--spacing-sm);
|
|
14910
15075
|
flex-grow: 1;
|
|
14911
15076
|
flex-wrap: wrap;
|
|
14912
15077
|
`;
|
|
14913
|
-
var ScrollableListHiddenInput =
|
|
15078
|
+
var ScrollableListHiddenInput = css66`
|
|
14914
15079
|
position: absolute;
|
|
14915
15080
|
height: 0;
|
|
14916
15081
|
width: 0;
|
|
14917
15082
|
opacity: 0;
|
|
14918
15083
|
`;
|
|
14919
|
-
var ScrollableListIcon =
|
|
15084
|
+
var ScrollableListIcon = css66`
|
|
14920
15085
|
border-radius: var(--rounded-full);
|
|
14921
15086
|
background: var(--brand-secondary-3);
|
|
14922
15087
|
color: var(--white);
|
|
@@ -14924,12 +15089,12 @@ var ScrollableListIcon = css65`
|
|
|
14924
15089
|
min-width: 24px;
|
|
14925
15090
|
opacity: 0;
|
|
14926
15091
|
`;
|
|
14927
|
-
var ScrollableListIconVisible =
|
|
15092
|
+
var ScrollableListIconVisible = css66`
|
|
14928
15093
|
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
14929
15094
|
`;
|
|
14930
15095
|
|
|
14931
15096
|
// src/components/List/ScrollableListInputItem.tsx
|
|
14932
|
-
import { jsx as
|
|
15097
|
+
import { jsx as jsx79, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
14933
15098
|
var ScrollableListInputItem = ({
|
|
14934
15099
|
label,
|
|
14935
15100
|
icon,
|
|
@@ -14939,7 +15104,7 @@ var ScrollableListInputItem = ({
|
|
|
14939
15104
|
labelTestId,
|
|
14940
15105
|
...props
|
|
14941
15106
|
}) => {
|
|
14942
|
-
return /* @__PURE__ */
|
|
15107
|
+
return /* @__PURE__ */ jsx79(
|
|
14943
15108
|
"div",
|
|
14944
15109
|
{
|
|
14945
15110
|
css: [
|
|
@@ -14953,8 +15118,8 @@ var ScrollableListInputItem = ({
|
|
|
14953
15118
|
icon,
|
|
14954
15119
|
label
|
|
14955
15120
|
] }),
|
|
14956
|
-
/* @__PURE__ */
|
|
14957
|
-
/* @__PURE__ */
|
|
15121
|
+
/* @__PURE__ */ jsx79("div", { css: ScrollableListHiddenInput, children }),
|
|
15122
|
+
/* @__PURE__ */ jsx79(
|
|
14958
15123
|
Icon,
|
|
14959
15124
|
{
|
|
14960
15125
|
icon: CgCheck2,
|
|
@@ -14972,14 +15137,14 @@ var ScrollableListInputItem = ({
|
|
|
14972
15137
|
|
|
14973
15138
|
// src/components/List/ScrollableListItem.tsx
|
|
14974
15139
|
import { CgCheck as CgCheck3 } from "react-icons/cg";
|
|
14975
|
-
import { jsx as
|
|
15140
|
+
import { jsx as jsx80, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
14976
15141
|
var ScrollableListItem = ({
|
|
14977
15142
|
buttonText,
|
|
14978
15143
|
active,
|
|
14979
15144
|
disableShadow,
|
|
14980
15145
|
...props
|
|
14981
15146
|
}) => {
|
|
14982
|
-
return /* @__PURE__ */
|
|
15147
|
+
return /* @__PURE__ */ jsx80(
|
|
14983
15148
|
"div",
|
|
14984
15149
|
{
|
|
14985
15150
|
css: [
|
|
@@ -14988,8 +15153,8 @@ var ScrollableListItem = ({
|
|
|
14988
15153
|
active ? ScrollableListItemActive : void 0
|
|
14989
15154
|
],
|
|
14990
15155
|
children: /* @__PURE__ */ jsxs52("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
14991
|
-
/* @__PURE__ */
|
|
14992
|
-
/* @__PURE__ */
|
|
15156
|
+
/* @__PURE__ */ jsx80("span", { children: buttonText }),
|
|
15157
|
+
/* @__PURE__ */ jsx80(
|
|
14993
15158
|
Icon,
|
|
14994
15159
|
{
|
|
14995
15160
|
icon: CgCheck3,
|
|
@@ -15004,7 +15169,7 @@ var ScrollableListItem = ({
|
|
|
15004
15169
|
};
|
|
15005
15170
|
|
|
15006
15171
|
// src/components/LoadingIndicator/LoadingIndicator.styles.ts
|
|
15007
|
-
import { css as
|
|
15172
|
+
import { css as css67, keyframes as keyframes3 } from "@emotion/react";
|
|
15008
15173
|
var bounceFade = keyframes3`
|
|
15009
15174
|
0%, 100% {
|
|
15010
15175
|
opacity: 1.0;
|
|
@@ -15022,11 +15187,11 @@ var bounceFade = keyframes3`
|
|
|
15022
15187
|
transform: translateY(-5px);
|
|
15023
15188
|
}
|
|
15024
15189
|
`;
|
|
15025
|
-
var loader =
|
|
15190
|
+
var loader = css67`
|
|
15026
15191
|
display: inline-flex;
|
|
15027
15192
|
justify-content: center;
|
|
15028
15193
|
`;
|
|
15029
|
-
var loadingDot =
|
|
15194
|
+
var loadingDot = css67`
|
|
15030
15195
|
background-color: var(--gray-700);
|
|
15031
15196
|
display: block;
|
|
15032
15197
|
border-radius: var(--rounded-full);
|
|
@@ -15050,12 +15215,12 @@ var loadingDot = css66`
|
|
|
15050
15215
|
`;
|
|
15051
15216
|
|
|
15052
15217
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
15053
|
-
import { jsx as
|
|
15218
|
+
import { jsx as jsx81, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
15054
15219
|
var LoadingIndicator = ({ ...props }) => {
|
|
15055
15220
|
return /* @__PURE__ */ jsxs53("div", { role: "alert", css: loader, "data-testid": "loading-indicator", ...props, children: [
|
|
15056
|
-
/* @__PURE__ */
|
|
15057
|
-
/* @__PURE__ */
|
|
15058
|
-
/* @__PURE__ */
|
|
15221
|
+
/* @__PURE__ */ jsx81("span", { css: loadingDot }),
|
|
15222
|
+
/* @__PURE__ */ jsx81("span", { css: loadingDot }),
|
|
15223
|
+
/* @__PURE__ */ jsx81("span", { css: loadingDot })
|
|
15059
15224
|
] });
|
|
15060
15225
|
};
|
|
15061
15226
|
|
|
@@ -15063,8 +15228,8 @@ var LoadingIndicator = ({ ...props }) => {
|
|
|
15063
15228
|
import { useCallback as useCallback2, useEffect as useEffect8, useRef as useRef5 } from "react";
|
|
15064
15229
|
|
|
15065
15230
|
// src/components/LoadingOverlay/LoadingOverlay.styles.ts
|
|
15066
|
-
import { css as
|
|
15067
|
-
var loadingOverlayContainer =
|
|
15231
|
+
import { css as css68 } from "@emotion/react";
|
|
15232
|
+
var loadingOverlayContainer = css68`
|
|
15068
15233
|
position: absolute;
|
|
15069
15234
|
inset: 0;
|
|
15070
15235
|
overflow: hidden;
|
|
@@ -15072,30 +15237,30 @@ var loadingOverlayContainer = css67`
|
|
|
15072
15237
|
padding: var(--spacing-xl);
|
|
15073
15238
|
overflow-y: auto;
|
|
15074
15239
|
`;
|
|
15075
|
-
var loadingOverlayVisible =
|
|
15240
|
+
var loadingOverlayVisible = css68`
|
|
15076
15241
|
display: flex;
|
|
15077
15242
|
`;
|
|
15078
|
-
var loadingOverlayHidden =
|
|
15243
|
+
var loadingOverlayHidden = css68`
|
|
15079
15244
|
display: none;
|
|
15080
15245
|
`;
|
|
15081
|
-
var loadingOverlayBackground = (bgColor) =>
|
|
15246
|
+
var loadingOverlayBackground = (bgColor) => css68`
|
|
15082
15247
|
background: ${bgColor};
|
|
15083
15248
|
opacity: 0.92;
|
|
15084
15249
|
position: absolute;
|
|
15085
15250
|
inset: 0 0;
|
|
15086
15251
|
`;
|
|
15087
|
-
var loadingOverlayBody =
|
|
15252
|
+
var loadingOverlayBody = css68`
|
|
15088
15253
|
align-items: center;
|
|
15089
15254
|
display: flex;
|
|
15090
15255
|
flex-direction: column;
|
|
15091
15256
|
`;
|
|
15092
|
-
var loadingOverlayMessage =
|
|
15257
|
+
var loadingOverlayMessage = css68`
|
|
15093
15258
|
color: var(--gray-600);
|
|
15094
15259
|
margin: var(--spacing-base) 0 0;
|
|
15095
15260
|
`;
|
|
15096
15261
|
|
|
15097
15262
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
15098
|
-
import { jsx as
|
|
15263
|
+
import { jsx as jsx82, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
15099
15264
|
var LoadingOverlay = ({
|
|
15100
15265
|
isActive,
|
|
15101
15266
|
statusMessage,
|
|
@@ -15129,9 +15294,9 @@ var LoadingOverlay = ({
|
|
|
15129
15294
|
"aria-hidden": !isActive,
|
|
15130
15295
|
"aria-busy": isActive && !isPaused,
|
|
15131
15296
|
children: [
|
|
15132
|
-
/* @__PURE__ */
|
|
15133
|
-
/* @__PURE__ */
|
|
15134
|
-
/* @__PURE__ */
|
|
15297
|
+
/* @__PURE__ */ jsx82("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
15298
|
+
/* @__PURE__ */ jsx82("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ jsxs54("div", { css: loadingOverlayBody, children: [
|
|
15299
|
+
/* @__PURE__ */ jsx82(
|
|
15135
15300
|
AnimationFile,
|
|
15136
15301
|
{
|
|
15137
15302
|
lottieRef,
|
|
@@ -15146,15 +15311,15 @@ var LoadingOverlay = ({
|
|
|
15146
15311
|
}
|
|
15147
15312
|
}
|
|
15148
15313
|
),
|
|
15149
|
-
statusMessage ? /* @__PURE__ */
|
|
15150
|
-
/* @__PURE__ */
|
|
15314
|
+
statusMessage ? /* @__PURE__ */ jsx82("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
|
|
15315
|
+
/* @__PURE__ */ jsx82("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
|
|
15151
15316
|
] }) })
|
|
15152
15317
|
]
|
|
15153
15318
|
}
|
|
15154
15319
|
);
|
|
15155
15320
|
};
|
|
15156
15321
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
15157
|
-
return /* @__PURE__ */
|
|
15322
|
+
return /* @__PURE__ */ jsx82(
|
|
15158
15323
|
"svg",
|
|
15159
15324
|
{
|
|
15160
15325
|
viewBox: "0 0 38 38",
|
|
@@ -15164,9 +15329,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
15164
15329
|
stroke: "currentColor",
|
|
15165
15330
|
...props,
|
|
15166
15331
|
"data-testid": "loading-icon",
|
|
15167
|
-
children: /* @__PURE__ */
|
|
15168
|
-
/* @__PURE__ */
|
|
15169
|
-
/* @__PURE__ */
|
|
15332
|
+
children: /* @__PURE__ */ jsx82("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs54("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
15333
|
+
/* @__PURE__ */ jsx82("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
15334
|
+
/* @__PURE__ */ jsx82("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ jsx82(
|
|
15170
15335
|
"animateTransform",
|
|
15171
15336
|
{
|
|
15172
15337
|
attributeName: "transform",
|
|
@@ -15187,8 +15352,8 @@ import React19 from "react";
|
|
|
15187
15352
|
import { CgClose as CgClose5 } from "react-icons/cg";
|
|
15188
15353
|
|
|
15189
15354
|
// src/components/Modal/Modal.styles.ts
|
|
15190
|
-
import { css as
|
|
15191
|
-
var modalWrapperStyles =
|
|
15355
|
+
import { css as css69 } from "@emotion/react";
|
|
15356
|
+
var modalWrapperStyles = css69`
|
|
15192
15357
|
position: fixed;
|
|
15193
15358
|
inset: 0;
|
|
15194
15359
|
display: flex;
|
|
@@ -15196,13 +15361,13 @@ var modalWrapperStyles = css68`
|
|
|
15196
15361
|
justify-content: center;
|
|
15197
15362
|
z-index: var(--z-drawer);
|
|
15198
15363
|
`;
|
|
15199
|
-
var modalBackdropStyles =
|
|
15364
|
+
var modalBackdropStyles = css69`
|
|
15200
15365
|
position: absolute;
|
|
15201
15366
|
inset: 0;
|
|
15202
15367
|
background-color: var(--brand-secondary-1);
|
|
15203
15368
|
opacity: 0.4;
|
|
15204
15369
|
`;
|
|
15205
|
-
var modalStyles =
|
|
15370
|
+
var modalStyles = css69`
|
|
15206
15371
|
position: relative;
|
|
15207
15372
|
display: flex;
|
|
15208
15373
|
flex-direction: column;
|
|
@@ -15217,21 +15382,21 @@ var modalStyles = css68`
|
|
|
15217
15382
|
color: unset;
|
|
15218
15383
|
z-index: 1;
|
|
15219
15384
|
`;
|
|
15220
|
-
var modalHeaderStyles =
|
|
15385
|
+
var modalHeaderStyles = css69`
|
|
15221
15386
|
display: flex;
|
|
15222
15387
|
align-items: flex-start;
|
|
15223
15388
|
gap: var(--spacing-base);
|
|
15224
15389
|
font-size: var(--fs-md);
|
|
15225
15390
|
line-height: 1.2;
|
|
15226
15391
|
`;
|
|
15227
|
-
var modalCloseButtonStyles =
|
|
15392
|
+
var modalCloseButtonStyles = css69`
|
|
15228
15393
|
display: block;
|
|
15229
15394
|
padding: 0;
|
|
15230
15395
|
background: transparent;
|
|
15231
15396
|
border: none;
|
|
15232
15397
|
margin-left: auto;
|
|
15233
15398
|
`;
|
|
15234
|
-
var modalContentStyles =
|
|
15399
|
+
var modalContentStyles = css69`
|
|
15235
15400
|
flex: 1;
|
|
15236
15401
|
background-color: white;
|
|
15237
15402
|
padding: var(--spacing-md);
|
|
@@ -15240,7 +15405,7 @@ var modalContentStyles = css68`
|
|
|
15240
15405
|
`;
|
|
15241
15406
|
|
|
15242
15407
|
// src/components/Modal/Modal.tsx
|
|
15243
|
-
import { jsx as
|
|
15408
|
+
import { jsx as jsx83, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
15244
15409
|
var defaultModalWidth = "75rem";
|
|
15245
15410
|
var defaultModalHeight = "51rem";
|
|
15246
15411
|
var Modal = React19.forwardRef(
|
|
@@ -15260,11 +15425,11 @@ var Modal = React19.forwardRef(
|
|
|
15260
15425
|
shortcut: "escape"
|
|
15261
15426
|
});
|
|
15262
15427
|
return /* @__PURE__ */ jsxs55("div", { css: [modalWrapperStyles, wrapperClassName], children: [
|
|
15263
|
-
/* @__PURE__ */
|
|
15428
|
+
/* @__PURE__ */ jsx83("div", { onClick: onRequestClose, css: modalBackdropStyles }),
|
|
15264
15429
|
/* @__PURE__ */ jsxs55("dialog", { ref, css: modalStyles, style: { width, height }, ...modalProps, children: [
|
|
15265
15430
|
/* @__PURE__ */ jsxs55("div", { css: modalHeaderStyles, children: [
|
|
15266
|
-
/* @__PURE__ */
|
|
15267
|
-
/* @__PURE__ */
|
|
15431
|
+
/* @__PURE__ */ jsx83("div", { children: header }),
|
|
15432
|
+
/* @__PURE__ */ jsx83(
|
|
15268
15433
|
Button,
|
|
15269
15434
|
{
|
|
15270
15435
|
type: "button",
|
|
@@ -15272,64 +15437,89 @@ var Modal = React19.forwardRef(
|
|
|
15272
15437
|
css: modalCloseButtonStyles,
|
|
15273
15438
|
title: "Close dialog",
|
|
15274
15439
|
buttonType: "ghost",
|
|
15275
|
-
children: /* @__PURE__ */
|
|
15440
|
+
children: /* @__PURE__ */ jsx83(Icon, { icon: CgClose5, iconColor: "gray", size: 24 })
|
|
15276
15441
|
}
|
|
15277
15442
|
)
|
|
15278
15443
|
] }),
|
|
15279
|
-
/* @__PURE__ */
|
|
15280
|
-
buttonGroup ? /* @__PURE__ */
|
|
15444
|
+
/* @__PURE__ */ jsx83("div", { css: [modalContentStyles, !withoutContentPadding ? null : { padding: 0 }], children }),
|
|
15445
|
+
buttonGroup ? /* @__PURE__ */ jsx83(HorizontalRhythm, { children: buttonGroup }) : null
|
|
15281
15446
|
] })
|
|
15282
15447
|
] });
|
|
15283
15448
|
}
|
|
15284
15449
|
);
|
|
15285
15450
|
Modal.displayName = "Modal";
|
|
15286
15451
|
|
|
15287
|
-
// src/components/ParameterInputs/
|
|
15288
|
-
import {
|
|
15289
|
-
var
|
|
15452
|
+
// src/components/ParameterInputs/hooks/ParameterShellContext.tsx
|
|
15453
|
+
import { createContext as createContext5, useContext as useContext6 } from "react";
|
|
15454
|
+
var ParameterShellContext = createContext5({
|
|
15455
|
+
id: "",
|
|
15456
|
+
label: "",
|
|
15457
|
+
hiddenLabel: void 0,
|
|
15458
|
+
errorMessage: void 0,
|
|
15459
|
+
handleManuallySetErrorMessage: () => {
|
|
15460
|
+
}
|
|
15461
|
+
});
|
|
15462
|
+
var useParameterShell = () => {
|
|
15463
|
+
const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } = useContext6(ParameterShellContext);
|
|
15464
|
+
return {
|
|
15465
|
+
id,
|
|
15466
|
+
label,
|
|
15467
|
+
hiddenLabel,
|
|
15468
|
+
errorMessage,
|
|
15469
|
+
handleManuallySetErrorMessage
|
|
15470
|
+
};
|
|
15471
|
+
};
|
|
15472
|
+
|
|
15473
|
+
// src/components/ParameterInputs/styles/LabelLeadingIcon.styles.ts
|
|
15474
|
+
import { css as css70 } from "@emotion/react";
|
|
15475
|
+
var inputIconBtn = css70`
|
|
15290
15476
|
align-items: center;
|
|
15291
15477
|
border: none;
|
|
15292
15478
|
border-radius: var(--rounded-base);
|
|
15293
15479
|
color: var(--gray-500);
|
|
15294
15480
|
background: none;
|
|
15295
15481
|
display: flex;
|
|
15296
|
-
padding: var(--spacing-2xs);
|
|
15297
15482
|
transition: background var(--duration-fast) var(--timing-ease-out),
|
|
15298
15483
|
color var(--duration-fast) var(--timing-ease-out);
|
|
15299
15484
|
|
|
15300
15485
|
&:hover,
|
|
15301
15486
|
&[aria-pressed='true']:not(:disabled) {
|
|
15302
|
-
|
|
15303
|
-
color: var(--white);
|
|
15487
|
+
color: var(--accent-light-active);
|
|
15304
15488
|
}
|
|
15305
15489
|
|
|
15306
15490
|
&[aria-disabled='true'] {
|
|
15307
15491
|
background: none;
|
|
15308
15492
|
color: currentColor;
|
|
15309
15493
|
}
|
|
15494
|
+
|
|
15495
|
+
&:focus {
|
|
15496
|
+
outline: none;
|
|
15497
|
+
}
|
|
15310
15498
|
`;
|
|
15311
15499
|
|
|
15312
|
-
// src/components/ParameterInputs/
|
|
15313
|
-
import { jsx as
|
|
15314
|
-
var
|
|
15500
|
+
// src/components/ParameterInputs/LabelLeadingIcon.tsx
|
|
15501
|
+
import { jsx as jsx84, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
15502
|
+
var LabelLeadingIcon = ({
|
|
15315
15503
|
icon,
|
|
15316
15504
|
iconColor,
|
|
15317
15505
|
children,
|
|
15318
15506
|
isBound,
|
|
15507
|
+
isActive,
|
|
15319
15508
|
isLocked,
|
|
15509
|
+
title,
|
|
15320
15510
|
...props
|
|
15321
15511
|
}) => {
|
|
15322
|
-
const
|
|
15323
|
-
return /* @__PURE__ */
|
|
15512
|
+
const titleFr = title != null ? title : isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
15513
|
+
return /* @__PURE__ */ jsx84(Tooltip, { title: titleFr, children: /* @__PURE__ */ jsxs56(
|
|
15324
15514
|
"button",
|
|
15325
15515
|
{
|
|
15326
15516
|
css: inputIconBtn,
|
|
15327
15517
|
type: "button",
|
|
15328
|
-
"aria-pressed": isBound,
|
|
15518
|
+
"aria-pressed": isActive || isBound,
|
|
15329
15519
|
"aria-disabled": isLocked,
|
|
15330
15520
|
...props,
|
|
15331
15521
|
children: [
|
|
15332
|
-
/* @__PURE__ */
|
|
15522
|
+
/* @__PURE__ */ jsx84(
|
|
15333
15523
|
Icon,
|
|
15334
15524
|
{
|
|
15335
15525
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -15342,31 +15532,11 @@ var ConnectToDataElementButton = ({
|
|
|
15342
15532
|
}
|
|
15343
15533
|
) });
|
|
15344
15534
|
};
|
|
15345
|
-
|
|
15346
|
-
// src/components/ParameterInputs/hooks/ParameterShellContext.tsx
|
|
15347
|
-
import { createContext as createContext5, useContext as useContext6 } from "react";
|
|
15348
|
-
var ParameterShellContext = createContext5({
|
|
15349
|
-
id: "",
|
|
15350
|
-
label: "",
|
|
15351
|
-
hiddenLabel: void 0,
|
|
15352
|
-
errorMessage: void 0,
|
|
15353
|
-
handleManuallySetErrorMessage: () => {
|
|
15354
|
-
}
|
|
15355
|
-
});
|
|
15356
|
-
var useParameterShell = () => {
|
|
15357
|
-
const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } = useContext6(ParameterShellContext);
|
|
15358
|
-
return {
|
|
15359
|
-
id,
|
|
15360
|
-
label,
|
|
15361
|
-
hiddenLabel,
|
|
15362
|
-
errorMessage,
|
|
15363
|
-
handleManuallySetErrorMessage
|
|
15364
|
-
};
|
|
15365
|
-
};
|
|
15535
|
+
var ConnectToDataElementButton = LabelLeadingIcon;
|
|
15366
15536
|
|
|
15367
15537
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
15368
|
-
import { css as
|
|
15369
|
-
var inputContainer2 =
|
|
15538
|
+
import { css as css71 } from "@emotion/react";
|
|
15539
|
+
var inputContainer2 = css71`
|
|
15370
15540
|
position: relative;
|
|
15371
15541
|
|
|
15372
15542
|
&:hover,
|
|
@@ -15378,14 +15548,14 @@ var inputContainer2 = css70`
|
|
|
15378
15548
|
}
|
|
15379
15549
|
}
|
|
15380
15550
|
`;
|
|
15381
|
-
var labelText2 =
|
|
15551
|
+
var labelText2 = css71`
|
|
15382
15552
|
align-items: center;
|
|
15383
15553
|
display: flex;
|
|
15384
15554
|
gap: var(--spacing-xs);
|
|
15385
15555
|
font-weight: var(--fw-regular);
|
|
15386
15556
|
margin: 0 0 var(--spacing-xs);
|
|
15387
15557
|
`;
|
|
15388
|
-
var input2 =
|
|
15558
|
+
var input2 = css71`
|
|
15389
15559
|
display: block;
|
|
15390
15560
|
appearance: none;
|
|
15391
15561
|
box-sizing: border-box;
|
|
@@ -15429,18 +15599,18 @@ var input2 = css70`
|
|
|
15429
15599
|
color: var(--gray-400);
|
|
15430
15600
|
}
|
|
15431
15601
|
`;
|
|
15432
|
-
var selectInput =
|
|
15602
|
+
var selectInput = css71`
|
|
15433
15603
|
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");
|
|
15434
15604
|
background-position: right var(--spacing-sm) center;
|
|
15435
15605
|
background-repeat: no-repeat;
|
|
15436
15606
|
background-size: 1rem;
|
|
15437
15607
|
padding-right: var(--spacing-xl);
|
|
15438
15608
|
`;
|
|
15439
|
-
var inputWrapper =
|
|
15609
|
+
var inputWrapper = css71`
|
|
15440
15610
|
display: flex; // used to correct overflow with chrome textarea
|
|
15441
15611
|
position: relative;
|
|
15442
15612
|
`;
|
|
15443
|
-
var inputIcon2 =
|
|
15613
|
+
var inputIcon2 = css71`
|
|
15444
15614
|
align-items: center;
|
|
15445
15615
|
background: var(--white);
|
|
15446
15616
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -15456,7 +15626,7 @@ var inputIcon2 = css70`
|
|
|
15456
15626
|
width: var(--spacing-lg);
|
|
15457
15627
|
z-index: var(--z-10);
|
|
15458
15628
|
`;
|
|
15459
|
-
var inputToggleLabel2 =
|
|
15629
|
+
var inputToggleLabel2 = css71`
|
|
15460
15630
|
align-items: center;
|
|
15461
15631
|
background: var(--white);
|
|
15462
15632
|
cursor: pointer;
|
|
@@ -15467,7 +15637,7 @@ var inputToggleLabel2 = css70`
|
|
|
15467
15637
|
min-height: var(--spacing-md);
|
|
15468
15638
|
position: relative;
|
|
15469
15639
|
`;
|
|
15470
|
-
var toggleInput2 =
|
|
15640
|
+
var toggleInput2 = css71`
|
|
15471
15641
|
appearance: none;
|
|
15472
15642
|
border: 1px solid var(--gray-300);
|
|
15473
15643
|
background: var(--white);
|
|
@@ -15506,7 +15676,7 @@ var toggleInput2 = css70`
|
|
|
15506
15676
|
border-color: var(--gray-300);
|
|
15507
15677
|
}
|
|
15508
15678
|
`;
|
|
15509
|
-
var inlineLabel2 =
|
|
15679
|
+
var inlineLabel2 = css71`
|
|
15510
15680
|
padding-left: var(--spacing-lg);
|
|
15511
15681
|
font-size: var(--fs-sm);
|
|
15512
15682
|
font-weight: var(--fw-regular);
|
|
@@ -15522,7 +15692,7 @@ var inlineLabel2 = css70`
|
|
|
15522
15692
|
}
|
|
15523
15693
|
}
|
|
15524
15694
|
`;
|
|
15525
|
-
var inputMenu =
|
|
15695
|
+
var inputMenu = css71`
|
|
15526
15696
|
background: none;
|
|
15527
15697
|
border: none;
|
|
15528
15698
|
padding: var(--spacing-2xs);
|
|
@@ -15538,14 +15708,14 @@ var inputMenu = css70`
|
|
|
15538
15708
|
background-color: var(--gray-200);
|
|
15539
15709
|
}
|
|
15540
15710
|
`;
|
|
15541
|
-
var textarea2 =
|
|
15711
|
+
var textarea2 = css71`
|
|
15542
15712
|
resize: vertical;
|
|
15543
15713
|
min-height: 2rem;
|
|
15544
15714
|
`;
|
|
15545
|
-
var imageWrapper =
|
|
15715
|
+
var imageWrapper = css71`
|
|
15546
15716
|
background: var(--white);
|
|
15547
15717
|
`;
|
|
15548
|
-
var img =
|
|
15718
|
+
var img = css71`
|
|
15549
15719
|
animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
15550
15720
|
object-fit: contain;
|
|
15551
15721
|
max-width: 100%;
|
|
@@ -15553,7 +15723,7 @@ var img = css70`
|
|
|
15553
15723
|
opacity: var(--opacity-0);
|
|
15554
15724
|
margin: var(--spacing-sm) auto 0;
|
|
15555
15725
|
`;
|
|
15556
|
-
var dataConnectButton =
|
|
15726
|
+
var dataConnectButton = css71`
|
|
15557
15727
|
align-items: center;
|
|
15558
15728
|
appearance: none;
|
|
15559
15729
|
box-sizing: border-box;
|
|
@@ -15588,7 +15758,7 @@ var dataConnectButton = css70`
|
|
|
15588
15758
|
pointer-events: none;
|
|
15589
15759
|
}
|
|
15590
15760
|
`;
|
|
15591
|
-
var linkParameterBtn =
|
|
15761
|
+
var linkParameterBtn = css71`
|
|
15592
15762
|
border-radius: var(--rounded-base);
|
|
15593
15763
|
background: var(--white);
|
|
15594
15764
|
border: none;
|
|
@@ -15597,7 +15767,7 @@ var linkParameterBtn = css70`
|
|
|
15597
15767
|
font-size: var(--fs-sm);
|
|
15598
15768
|
line-height: 1;
|
|
15599
15769
|
`;
|
|
15600
|
-
var linkParameterControls =
|
|
15770
|
+
var linkParameterControls = css71`
|
|
15601
15771
|
position: absolute;
|
|
15602
15772
|
inset: 0 0 0 auto;
|
|
15603
15773
|
padding: 0 var(--spacing-base);
|
|
@@ -15606,7 +15776,7 @@ var linkParameterControls = css70`
|
|
|
15606
15776
|
justify-content: center;
|
|
15607
15777
|
gap: var(--spacing-base);
|
|
15608
15778
|
`;
|
|
15609
|
-
var linkParameterInput = (withExternalLinkIcon) =>
|
|
15779
|
+
var linkParameterInput = (withExternalLinkIcon) => css71`
|
|
15610
15780
|
padding-right: calc(
|
|
15611
15781
|
${withExternalLinkIcon ? "calc(var(--spacing-lg) * 2 + var(--spacing-xs))" : "var(--spacing-xl)"} +
|
|
15612
15782
|
var(--spacing-base)
|
|
@@ -15619,7 +15789,7 @@ var linkParameterInput = (withExternalLinkIcon) => css70`
|
|
|
15619
15789
|
}
|
|
15620
15790
|
}
|
|
15621
15791
|
`;
|
|
15622
|
-
var linkParameterIcon =
|
|
15792
|
+
var linkParameterIcon = css71`
|
|
15623
15793
|
align-items: center;
|
|
15624
15794
|
color: var(--brand-secondary-3);
|
|
15625
15795
|
display: flex;
|
|
@@ -15634,7 +15804,7 @@ var linkParameterIcon = css70`
|
|
|
15634
15804
|
`;
|
|
15635
15805
|
|
|
15636
15806
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
15637
|
-
import { jsx as
|
|
15807
|
+
import { jsx as jsx85, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
|
|
15638
15808
|
function ParameterDataResource({
|
|
15639
15809
|
label,
|
|
15640
15810
|
labelLeadingIcon,
|
|
@@ -15658,30 +15828,30 @@ function ParameterDataResource({
|
|
|
15658
15828
|
disabled,
|
|
15659
15829
|
onClick: onConnectDatasource,
|
|
15660
15830
|
children: [
|
|
15661
|
-
/* @__PURE__ */
|
|
15831
|
+
/* @__PURE__ */ jsx85("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx85(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
15662
15832
|
children
|
|
15663
15833
|
]
|
|
15664
15834
|
}
|
|
15665
15835
|
),
|
|
15666
|
-
caption ? /* @__PURE__ */
|
|
15836
|
+
caption ? /* @__PURE__ */ jsx85(Caption, { children: caption }) : null
|
|
15667
15837
|
] });
|
|
15668
15838
|
}
|
|
15669
15839
|
|
|
15670
15840
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
15671
|
-
import { css as
|
|
15672
|
-
var ParameterDrawerHeaderContainer =
|
|
15841
|
+
import { css as css72 } from "@emotion/react";
|
|
15842
|
+
var ParameterDrawerHeaderContainer = css72`
|
|
15673
15843
|
align-items: center;
|
|
15674
15844
|
display: flex;
|
|
15675
15845
|
gap: var(--spacing-base);
|
|
15676
15846
|
justify-content: space-between;
|
|
15677
15847
|
margin-bottom: var(--spacing-sm);
|
|
15678
15848
|
`;
|
|
15679
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
15849
|
+
var ParameterDrawerHeaderTitleGroup = css72`
|
|
15680
15850
|
align-items: center;
|
|
15681
15851
|
display: flex;
|
|
15682
15852
|
gap: var(--spacing-sm);
|
|
15683
15853
|
`;
|
|
15684
|
-
var ParameterDrawerHeaderTitle =
|
|
15854
|
+
var ParameterDrawerHeaderTitle = css72`
|
|
15685
15855
|
text-overflow: ellipsis;
|
|
15686
15856
|
white-space: nowrap;
|
|
15687
15857
|
overflow: hidden;
|
|
@@ -15689,12 +15859,12 @@ var ParameterDrawerHeaderTitle = css71`
|
|
|
15689
15859
|
`;
|
|
15690
15860
|
|
|
15691
15861
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
15692
|
-
import { jsx as
|
|
15862
|
+
import { jsx as jsx86, jsxs as jsxs58 } from "@emotion/react/jsx-runtime";
|
|
15693
15863
|
var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
15694
15864
|
return /* @__PURE__ */ jsxs58("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
15695
15865
|
/* @__PURE__ */ jsxs58("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
15696
15866
|
iconBeforeTitle,
|
|
15697
|
-
/* @__PURE__ */
|
|
15867
|
+
/* @__PURE__ */ jsx86(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
|
|
15698
15868
|
] }),
|
|
15699
15869
|
children
|
|
15700
15870
|
] });
|
|
@@ -15704,8 +15874,8 @@ var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
|
15704
15874
|
import { forwardRef as forwardRef9 } from "react";
|
|
15705
15875
|
|
|
15706
15876
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
15707
|
-
import { css as
|
|
15708
|
-
var fieldsetStyles =
|
|
15877
|
+
import { css as css73 } from "@emotion/react";
|
|
15878
|
+
var fieldsetStyles = css73`
|
|
15709
15879
|
&:disabled,
|
|
15710
15880
|
[readonly] {
|
|
15711
15881
|
pointer-events: none;
|
|
@@ -15716,7 +15886,7 @@ var fieldsetStyles = css72`
|
|
|
15716
15886
|
}
|
|
15717
15887
|
}
|
|
15718
15888
|
`;
|
|
15719
|
-
var fieldsetLegend2 =
|
|
15889
|
+
var fieldsetLegend2 = css73`
|
|
15720
15890
|
display: block;
|
|
15721
15891
|
font-weight: var(--fw-medium);
|
|
15722
15892
|
margin-bottom: var(--spacing-sm);
|
|
@@ -15724,18 +15894,21 @@ var fieldsetLegend2 = css72`
|
|
|
15724
15894
|
`;
|
|
15725
15895
|
|
|
15726
15896
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
15727
|
-
import { jsx as
|
|
15897
|
+
import { jsx as jsx87, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
|
|
15728
15898
|
var ParameterGroup = forwardRef9(
|
|
15729
15899
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
15730
15900
|
return /* @__PURE__ */ jsxs59("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
15731
|
-
/* @__PURE__ */
|
|
15901
|
+
/* @__PURE__ */ jsx87("legend", { css: fieldsetLegend2, children: legend }),
|
|
15732
15902
|
children
|
|
15733
15903
|
] });
|
|
15734
15904
|
}
|
|
15735
15905
|
);
|
|
15736
15906
|
|
|
15737
15907
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
15738
|
-
import { forwardRef as forwardRef11,
|
|
15908
|
+
import { forwardRef as forwardRef11, useDeferredValue } from "react";
|
|
15909
|
+
|
|
15910
|
+
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
15911
|
+
import { useCallback as useCallback3, useEffect as useEffect9, useState as useState8 } from "react";
|
|
15739
15912
|
|
|
15740
15913
|
// src/utils/url.ts
|
|
15741
15914
|
var isValidUrl = (url, options = {}) => {
|
|
@@ -15747,25 +15920,115 @@ var isValidUrl = (url, options = {}) => {
|
|
|
15747
15920
|
}
|
|
15748
15921
|
};
|
|
15749
15922
|
|
|
15923
|
+
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
15924
|
+
import { Fragment as Fragment11, jsx as jsx88, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
|
|
15925
|
+
function ParameterImagePreview({ imageSrc }) {
|
|
15926
|
+
const [loading, setLoading] = useState8(false);
|
|
15927
|
+
const [loadErrorText, setLoadErrorText] = useState8("");
|
|
15928
|
+
const errorText = "The text you provided is not a valid URL";
|
|
15929
|
+
const updateImageSrc = useCallback3(() => {
|
|
15930
|
+
let message = "";
|
|
15931
|
+
try {
|
|
15932
|
+
if (imageSrc !== "") {
|
|
15933
|
+
const url = String(imageSrc).startsWith("//") ? `${location.protocol}${imageSrc}` : String(imageSrc);
|
|
15934
|
+
if (!isValidUrl(url) || !url.startsWith("https")) {
|
|
15935
|
+
throw Error(errorText);
|
|
15936
|
+
}
|
|
15937
|
+
}
|
|
15938
|
+
message = "";
|
|
15939
|
+
} catch (e) {
|
|
15940
|
+
message = errorText;
|
|
15941
|
+
}
|
|
15942
|
+
setLoadErrorText(message);
|
|
15943
|
+
}, [setLoadErrorText, imageSrc]);
|
|
15944
|
+
useEffect9(() => {
|
|
15945
|
+
updateImageSrc();
|
|
15946
|
+
}, [imageSrc]);
|
|
15947
|
+
const handleLoadEvent = () => {
|
|
15948
|
+
setLoadErrorText("");
|
|
15949
|
+
if (imageSrc) {
|
|
15950
|
+
setLoading(true);
|
|
15951
|
+
}
|
|
15952
|
+
const timer = setTimeout(() => {
|
|
15953
|
+
setLoading(false);
|
|
15954
|
+
}, 200);
|
|
15955
|
+
return () => clearTimeout(timer);
|
|
15956
|
+
};
|
|
15957
|
+
const handleErrorEvent = () => {
|
|
15958
|
+
setLoadErrorText("The value you provided is not a valid image URL");
|
|
15959
|
+
};
|
|
15960
|
+
return /* @__PURE__ */ jsxs60("div", { css: imageWrapper, children: [
|
|
15961
|
+
imageSrc && !loadErrorText ? /* @__PURE__ */ jsx88(
|
|
15962
|
+
"img",
|
|
15963
|
+
{
|
|
15964
|
+
src: imageSrc,
|
|
15965
|
+
css: img,
|
|
15966
|
+
alt: "image preview",
|
|
15967
|
+
onLoad: handleLoadEvent,
|
|
15968
|
+
onError: handleErrorEvent,
|
|
15969
|
+
loading: "lazy",
|
|
15970
|
+
"data-testid": "parameter-image-preview"
|
|
15971
|
+
}
|
|
15972
|
+
) : null,
|
|
15973
|
+
imageSrc && loadErrorText ? /* @__PURE__ */ jsxs60(Fragment11, { children: [
|
|
15974
|
+
/* @__PURE__ */ jsx88(BrokenImage, { css: img }),
|
|
15975
|
+
/* @__PURE__ */ jsx88(ErrorMessage, { message: loadErrorText })
|
|
15976
|
+
] }) : null,
|
|
15977
|
+
loading && /* @__PURE__ */ jsx88(LoadingIcon, {})
|
|
15978
|
+
] });
|
|
15979
|
+
}
|
|
15980
|
+
var BrokenImage = ({ ...props }) => {
|
|
15981
|
+
return /* @__PURE__ */ jsxs60(
|
|
15982
|
+
"svg",
|
|
15983
|
+
{
|
|
15984
|
+
role: "img",
|
|
15985
|
+
width: "214",
|
|
15986
|
+
height: "214",
|
|
15987
|
+
viewBox: "0 0 214 214",
|
|
15988
|
+
fill: "none",
|
|
15989
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15990
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
15991
|
+
"data-testid": "broken-image",
|
|
15992
|
+
...props,
|
|
15993
|
+
children: [
|
|
15994
|
+
/* @__PURE__ */ jsx88("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
15995
|
+
/* @__PURE__ */ jsx88("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
15996
|
+
/* @__PURE__ */ jsxs60("defs", { children: [
|
|
15997
|
+
/* @__PURE__ */ jsx88("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx88("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
15998
|
+
/* @__PURE__ */ jsx88(
|
|
15999
|
+
"image",
|
|
16000
|
+
{
|
|
16001
|
+
id: "image0_761_4353",
|
|
16002
|
+
width: "400",
|
|
16003
|
+
height: "400",
|
|
16004
|
+
xlinkHref: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAABX2lDQ1BJQ0MgUHJvZmlsZQAAKJFtkMFLAlEQxj/NEFIyQaJDhz1EEFiYdupmRhp5WCyxhA7rc3ODdXvsrkSn+ge6RATRPTpGBF46CP0DQVDQqVu3LoGXkm2eW61W8xjmx8fMvOED/GGFcz0AoG7YZiG7IK1vlKXgC/wYQ4ReVGEWT8tynlrwXfuj/QCfqPfTYlertBTZv3o9W8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DMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBuB/we75KcVO2CRagAAAABJRU5ErkJggg=="
|
|
16005
|
+
}
|
|
16006
|
+
)
|
|
16007
|
+
] })
|
|
16008
|
+
]
|
|
16009
|
+
}
|
|
16010
|
+
);
|
|
16011
|
+
};
|
|
16012
|
+
|
|
15750
16013
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
15751
|
-
import { useState as
|
|
16014
|
+
import { useState as useState9 } from "react";
|
|
15752
16015
|
|
|
15753
16016
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
15754
|
-
import { jsx as
|
|
16017
|
+
import { jsx as jsx89 } from "@emotion/react/jsx-runtime";
|
|
15755
16018
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
15756
|
-
return !asSpan ? /* @__PURE__ */
|
|
16019
|
+
return !asSpan ? /* @__PURE__ */ jsx89("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx89("span", { "aria-labelledby": id, css: labelText2, children });
|
|
15757
16020
|
};
|
|
15758
16021
|
|
|
15759
16022
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
15760
16023
|
import { forwardRef as forwardRef10 } from "react";
|
|
15761
|
-
import { jsx as
|
|
16024
|
+
import { jsx as jsx90 } from "@emotion/react/jsx-runtime";
|
|
15762
16025
|
var ParameterMenuButton = forwardRef10(
|
|
15763
16026
|
({ label, children }, ref) => {
|
|
15764
|
-
return /* @__PURE__ */
|
|
16027
|
+
return /* @__PURE__ */ jsx90(
|
|
15765
16028
|
Menu,
|
|
15766
16029
|
{
|
|
15767
16030
|
menuLabel: `${label} menu`,
|
|
15768
|
-
menuTrigger: /* @__PURE__ */
|
|
16031
|
+
menuTrigger: /* @__PURE__ */ jsx90(
|
|
15769
16032
|
"button",
|
|
15770
16033
|
{
|
|
15771
16034
|
className: "parameter-menu",
|
|
@@ -15773,7 +16036,7 @@ var ParameterMenuButton = forwardRef10(
|
|
|
15773
16036
|
type: "button",
|
|
15774
16037
|
"aria-label": `${label} options`,
|
|
15775
16038
|
ref,
|
|
15776
|
-
children: /* @__PURE__ */
|
|
16039
|
+
children: /* @__PURE__ */ jsx90(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
15777
16040
|
}
|
|
15778
16041
|
),
|
|
15779
16042
|
children
|
|
@@ -15783,15 +16046,16 @@ var ParameterMenuButton = forwardRef10(
|
|
|
15783
16046
|
);
|
|
15784
16047
|
|
|
15785
16048
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
15786
|
-
import { css as
|
|
15787
|
-
var emptyParameterShell =
|
|
16049
|
+
import { css as css74 } from "@emotion/react";
|
|
16050
|
+
var emptyParameterShell = css74`
|
|
15788
16051
|
border-radius: var(--rounded-sm);
|
|
15789
16052
|
background: var(--white);
|
|
15790
16053
|
flex-grow: 1;
|
|
15791
16054
|
padding: var(--spacing-xs);
|
|
15792
16055
|
position: relative;
|
|
16056
|
+
max-width: 100%;
|
|
15793
16057
|
`;
|
|
15794
|
-
var emptyParameterShellText =
|
|
16058
|
+
var emptyParameterShellText = css74`
|
|
15795
16059
|
background: var(--brand-secondary-6);
|
|
15796
16060
|
border-radius: var(--rounded-sm);
|
|
15797
16061
|
padding: var(--spacing-sm);
|
|
@@ -15799,7 +16063,7 @@ var emptyParameterShellText = css73`
|
|
|
15799
16063
|
font-size: var(--fs-sm);
|
|
15800
16064
|
margin: 0;
|
|
15801
16065
|
`;
|
|
15802
|
-
var overrideMarker =
|
|
16066
|
+
var overrideMarker = css74`
|
|
15803
16067
|
border-radius: var(--rounded-sm);
|
|
15804
16068
|
border: 10px solid var(--gray-300);
|
|
15805
16069
|
border-left-color: transparent;
|
|
@@ -15810,7 +16074,7 @@ var overrideMarker = css73`
|
|
|
15810
16074
|
`;
|
|
15811
16075
|
|
|
15812
16076
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
15813
|
-
import { jsx as
|
|
16077
|
+
import { jsx as jsx91, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
|
|
15814
16078
|
var extractParameterProps = (props) => {
|
|
15815
16079
|
const {
|
|
15816
16080
|
id,
|
|
@@ -15867,21 +16131,21 @@ var ParameterShell = ({
|
|
|
15867
16131
|
children,
|
|
15868
16132
|
...props
|
|
15869
16133
|
}) => {
|
|
15870
|
-
const [manualErrorMessage, setManualErrorMessage] =
|
|
16134
|
+
const [manualErrorMessage, setManualErrorMessage] = useState9(void 0);
|
|
15871
16135
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
15872
16136
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
15873
|
-
return /* @__PURE__ */
|
|
15874
|
-
hiddenLabel || title ? null : /* @__PURE__ */
|
|
16137
|
+
return /* @__PURE__ */ jsxs61("div", { css: inputContainer2, ...props, children: [
|
|
16138
|
+
hiddenLabel || title ? null : /* @__PURE__ */ jsxs61(ParameterLabel, { id, css: labelText2, children: [
|
|
15875
16139
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
15876
16140
|
label
|
|
15877
16141
|
] }),
|
|
15878
|
-
!title ? null : /* @__PURE__ */
|
|
16142
|
+
!title ? null : /* @__PURE__ */ jsxs61(ParameterLabel, { id, asSpan: true, children: [
|
|
15879
16143
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
15880
16144
|
title
|
|
15881
16145
|
] }),
|
|
15882
|
-
/* @__PURE__ */
|
|
15883
|
-
menuItems ? /* @__PURE__ */
|
|
15884
|
-
/* @__PURE__ */
|
|
16146
|
+
/* @__PURE__ */ jsxs61("div", { css: inputWrapper, children: [
|
|
16147
|
+
menuItems ? /* @__PURE__ */ jsx91(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
16148
|
+
/* @__PURE__ */ jsx91(
|
|
15885
16149
|
ParameterShellContext.Provider,
|
|
15886
16150
|
{
|
|
15887
16151
|
value: {
|
|
@@ -15891,151 +16155,62 @@ var ParameterShell = ({
|
|
|
15891
16155
|
errorMessage: errorMessaging,
|
|
15892
16156
|
handleManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
15893
16157
|
},
|
|
15894
|
-
children: /* @__PURE__ */
|
|
16158
|
+
children: /* @__PURE__ */ jsxs61(ParameterShellPlaceholder, { children: [
|
|
15895
16159
|
children,
|
|
15896
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
16160
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx91(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
15897
16161
|
] })
|
|
15898
16162
|
}
|
|
15899
16163
|
)
|
|
15900
16164
|
] }),
|
|
15901
|
-
caption ? /* @__PURE__ */
|
|
15902
|
-
errorMessaging ? /* @__PURE__ */
|
|
15903
|
-
warningMessage ? /* @__PURE__ */
|
|
15904
|
-
infoMessage ? /* @__PURE__ */
|
|
16165
|
+
caption ? /* @__PURE__ */ jsx91(Caption, { testId: captionTestId, children: caption }) : null,
|
|
16166
|
+
errorMessaging ? /* @__PURE__ */ jsx91(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null,
|
|
16167
|
+
warningMessage ? /* @__PURE__ */ jsx91(WarningMessage, { message: warningMessage }) : null,
|
|
16168
|
+
infoMessage ? /* @__PURE__ */ jsx91(InfoMessage, { message: infoMessage }) : null
|
|
15905
16169
|
] });
|
|
15906
16170
|
};
|
|
15907
16171
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
15908
|
-
return /* @__PURE__ */
|
|
16172
|
+
return /* @__PURE__ */ jsx91("div", { css: emptyParameterShell, children });
|
|
15909
16173
|
};
|
|
15910
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
16174
|
+
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" }) }) });
|
|
15911
16175
|
|
|
15912
16176
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
15913
|
-
import { Fragment as
|
|
16177
|
+
import { Fragment as Fragment12, jsx as jsx92, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
|
|
15914
16178
|
var ParameterImage = forwardRef11((props, ref) => {
|
|
15915
16179
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
15916
|
-
return /* @__PURE__ */
|
|
16180
|
+
return /* @__PURE__ */ jsx92(ParameterShell, { "data-testid": "parameter-image", ...shellProps, children: /* @__PURE__ */ jsx92(ParameterImageInner, { ref, ...innerProps, disablePreview: props.disablePreview }) });
|
|
15917
16181
|
});
|
|
15918
|
-
var
|
|
15919
|
-
|
|
15920
|
-
|
|
15921
|
-
|
|
15922
|
-
|
|
15923
|
-
|
|
15924
|
-
|
|
15925
|
-
height: "214",
|
|
15926
|
-
viewBox: "0 0 214 214",
|
|
15927
|
-
fill: "none",
|
|
15928
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
15929
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
15930
|
-
...props,
|
|
15931
|
-
children: [
|
|
15932
|
-
/* @__PURE__ */ jsx90("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
15933
|
-
/* @__PURE__ */ jsx90("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
15934
|
-
/* @__PURE__ */ jsxs61("defs", { children: [
|
|
15935
|
-
/* @__PURE__ */ jsx90("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx90("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
15936
|
-
/* @__PURE__ */ jsx90(
|
|
15937
|
-
"image",
|
|
15938
|
-
{
|
|
15939
|
-
id: "image0_761_4353",
|
|
15940
|
-
width: "400",
|
|
15941
|
-
height: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sBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBuB/we75KcVO2CRagAAAABJRU5ErkJggg=="
|
|
15943
|
-
}
|
|
15944
|
-
)
|
|
15945
|
-
] })
|
|
15946
|
-
]
|
|
15947
|
-
}
|
|
15948
|
-
);
|
|
15949
|
-
};
|
|
15950
|
-
var ParameterImageInner = forwardRef11(
|
|
15951
|
-
({ ...props }, ref) => {
|
|
15952
|
-
const { value } = props;
|
|
15953
|
-
const { id, label, hiddenLabel, errorMessage } = useParameterShell();
|
|
15954
|
-
const deferredValue = useDeferredValue(value);
|
|
15955
|
-
return /* @__PURE__ */ jsxs61(Fragment11, { children: [
|
|
15956
|
-
/* @__PURE__ */ jsx90(
|
|
15957
|
-
"input",
|
|
15958
|
-
{
|
|
15959
|
-
css: input2,
|
|
15960
|
-
type: "text",
|
|
15961
|
-
id,
|
|
15962
|
-
ref,
|
|
15963
|
-
"aria-label": hiddenLabel ? label : void 0,
|
|
15964
|
-
autoComplete: "off",
|
|
15965
|
-
...props
|
|
15966
|
-
}
|
|
15967
|
-
),
|
|
15968
|
-
errorMessage ? null : /* @__PURE__ */ jsx90(ParameterImagePreview, { imageSrc: deferredValue })
|
|
15969
|
-
] });
|
|
15970
|
-
}
|
|
15971
|
-
);
|
|
15972
|
-
var ParameterImagePreview = ({ imageSrc }) => {
|
|
15973
|
-
const [loading, setLoading] = useState9(false);
|
|
15974
|
-
const [loadErrorText, setLoadErrorText] = useState9("");
|
|
15975
|
-
const errorText = "The text you provided is not a valid URL";
|
|
15976
|
-
const updateImageSrc = useCallback3(() => {
|
|
15977
|
-
let message = "";
|
|
15978
|
-
try {
|
|
15979
|
-
if (imageSrc !== "") {
|
|
15980
|
-
const url = String(imageSrc).startsWith("//") ? `${location.protocol}${imageSrc}` : String(imageSrc);
|
|
15981
|
-
if (!isValidUrl(url) || !url.startsWith("https")) {
|
|
15982
|
-
throw Error(errorText);
|
|
15983
|
-
}
|
|
15984
|
-
}
|
|
15985
|
-
message = "";
|
|
15986
|
-
} catch (e) {
|
|
15987
|
-
message = errorText;
|
|
15988
|
-
}
|
|
15989
|
-
setLoadErrorText(message);
|
|
15990
|
-
}, [setLoadErrorText, imageSrc]);
|
|
15991
|
-
useEffect9(() => {
|
|
15992
|
-
updateImageSrc();
|
|
15993
|
-
}, [imageSrc]);
|
|
15994
|
-
const handleLoadEvent = () => {
|
|
15995
|
-
setLoadErrorText("");
|
|
15996
|
-
if (imageSrc) {
|
|
15997
|
-
setLoading(true);
|
|
15998
|
-
}
|
|
15999
|
-
const timer = setTimeout(() => {
|
|
16000
|
-
setLoading(false);
|
|
16001
|
-
}, 200);
|
|
16002
|
-
return () => clearTimeout(timer);
|
|
16003
|
-
};
|
|
16004
|
-
const handleErrorEvent = () => {
|
|
16005
|
-
setLoadErrorText("The value you provided is not a valid image URL");
|
|
16006
|
-
};
|
|
16007
|
-
return /* @__PURE__ */ jsxs61("div", { css: imageWrapper, children: [
|
|
16008
|
-
imageSrc && !loadErrorText ? /* @__PURE__ */ jsx90(
|
|
16009
|
-
"img",
|
|
16182
|
+
var ParameterImageInner = forwardRef11((props, ref) => {
|
|
16183
|
+
const { value } = props;
|
|
16184
|
+
const { id, label, hiddenLabel, errorMessage } = useParameterShell();
|
|
16185
|
+
const deferredValue = useDeferredValue(value);
|
|
16186
|
+
return /* @__PURE__ */ jsxs62(Fragment12, { children: [
|
|
16187
|
+
/* @__PURE__ */ jsx92(
|
|
16188
|
+
"input",
|
|
16010
16189
|
{
|
|
16011
|
-
|
|
16012
|
-
|
|
16013
|
-
|
|
16014
|
-
|
|
16015
|
-
|
|
16016
|
-
|
|
16017
|
-
|
|
16190
|
+
css: input2,
|
|
16191
|
+
type: "text",
|
|
16192
|
+
id,
|
|
16193
|
+
ref,
|
|
16194
|
+
"aria-label": hiddenLabel ? label : void 0,
|
|
16195
|
+
autoComplete: "off",
|
|
16196
|
+
...props
|
|
16018
16197
|
}
|
|
16019
|
-
)
|
|
16020
|
-
|
|
16021
|
-
/* @__PURE__ */ jsx90(BrokenImage, { css: img }),
|
|
16022
|
-
/* @__PURE__ */ jsx90(ErrorMessage, { message: loadErrorText })
|
|
16023
|
-
] }) : null,
|
|
16024
|
-
loading && /* @__PURE__ */ jsx90(LoadingIcon, {})
|
|
16198
|
+
),
|
|
16199
|
+
errorMessage || props.disablePreview ? null : /* @__PURE__ */ jsx92(ParameterImagePreview, { imageSrc: deferredValue })
|
|
16025
16200
|
] });
|
|
16026
|
-
};
|
|
16201
|
+
});
|
|
16027
16202
|
|
|
16028
16203
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
16029
16204
|
import { forwardRef as forwardRef12 } from "react";
|
|
16030
|
-
import { jsx as
|
|
16205
|
+
import { jsx as jsx93 } from "@emotion/react/jsx-runtime";
|
|
16031
16206
|
var ParameterInput = forwardRef12((props, ref) => {
|
|
16032
16207
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16033
|
-
return /* @__PURE__ */
|
|
16208
|
+
return /* @__PURE__ */ jsx93(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx93(ParameterInputInner, { ref, ...innerProps }) });
|
|
16034
16209
|
});
|
|
16035
16210
|
var ParameterInputInner = forwardRef12(
|
|
16036
16211
|
({ ...props }, ref) => {
|
|
16037
16212
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
16038
|
-
return /* @__PURE__ */
|
|
16213
|
+
return /* @__PURE__ */ jsx93(
|
|
16039
16214
|
"input",
|
|
16040
16215
|
{
|
|
16041
16216
|
css: input2,
|
|
@@ -16052,18 +16227,18 @@ var ParameterInputInner = forwardRef12(
|
|
|
16052
16227
|
|
|
16053
16228
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
16054
16229
|
import { forwardRef as forwardRef13 } from "react";
|
|
16055
|
-
import { jsx as
|
|
16230
|
+
import { jsx as jsx94, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
|
|
16056
16231
|
var ParameterLink = forwardRef13(
|
|
16057
|
-
({
|
|
16232
|
+
({ disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
16058
16233
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16059
|
-
return /* @__PURE__ */
|
|
16234
|
+
return /* @__PURE__ */ jsx94(
|
|
16060
16235
|
ParameterShell,
|
|
16061
16236
|
{
|
|
16062
16237
|
"data-testid": "link-parameter-editor",
|
|
16063
16238
|
...shellProps,
|
|
16064
16239
|
label: innerProps.value ? shellProps.label : "",
|
|
16065
16240
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
16066
|
-
children:
|
|
16241
|
+
children: /* @__PURE__ */ jsx94(
|
|
16067
16242
|
ParameterLinkInner,
|
|
16068
16243
|
{
|
|
16069
16244
|
onConnectLink,
|
|
@@ -16077,10 +16252,12 @@ var ParameterLink = forwardRef13(
|
|
|
16077
16252
|
}
|
|
16078
16253
|
);
|
|
16079
16254
|
var ParameterLinkInner = forwardRef13(
|
|
16080
|
-
({ externalLink, onConnectLink, disabled, ...props }, ref) => {
|
|
16255
|
+
({ externalLink, onConnectLink, disabled, buttonText = "Select link", ...props }, ref) => {
|
|
16081
16256
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
16082
|
-
|
|
16083
|
-
/* @__PURE__ */
|
|
16257
|
+
if (!props.value)
|
|
16258
|
+
return /* @__PURE__ */ jsx94("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText });
|
|
16259
|
+
return /* @__PURE__ */ jsxs63("div", { css: inputWrapper, children: [
|
|
16260
|
+
/* @__PURE__ */ jsx94(
|
|
16084
16261
|
"input",
|
|
16085
16262
|
{
|
|
16086
16263
|
type: "text",
|
|
@@ -16092,8 +16269,8 @@ var ParameterLinkInner = forwardRef13(
|
|
|
16092
16269
|
...props
|
|
16093
16270
|
}
|
|
16094
16271
|
),
|
|
16095
|
-
/* @__PURE__ */
|
|
16096
|
-
/* @__PURE__ */
|
|
16272
|
+
/* @__PURE__ */ jsxs63("div", { css: linkParameterControls, children: [
|
|
16273
|
+
/* @__PURE__ */ jsx94(
|
|
16097
16274
|
"button",
|
|
16098
16275
|
{
|
|
16099
16276
|
type: "button",
|
|
@@ -16104,7 +16281,7 @@ var ParameterLinkInner = forwardRef13(
|
|
|
16104
16281
|
children: "edit"
|
|
16105
16282
|
}
|
|
16106
16283
|
),
|
|
16107
|
-
externalLink ? /* @__PURE__ */
|
|
16284
|
+
externalLink ? /* @__PURE__ */ jsx94(
|
|
16108
16285
|
"a",
|
|
16109
16286
|
{
|
|
16110
16287
|
href: externalLink,
|
|
@@ -16112,7 +16289,7 @@ var ParameterLinkInner = forwardRef13(
|
|
|
16112
16289
|
title: "Open link in new tab",
|
|
16113
16290
|
target: "_blank",
|
|
16114
16291
|
rel: "noopener noreferrer",
|
|
16115
|
-
children: /* @__PURE__ */
|
|
16292
|
+
children: /* @__PURE__ */ jsx94(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
16116
16293
|
}
|
|
16117
16294
|
) : null
|
|
16118
16295
|
] })
|
|
@@ -16121,7 +16298,7 @@ var ParameterLinkInner = forwardRef13(
|
|
|
16121
16298
|
);
|
|
16122
16299
|
|
|
16123
16300
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
16124
|
-
import { Fragment as
|
|
16301
|
+
import { Fragment as Fragment13, jsx as jsx95, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
|
|
16125
16302
|
var ParameterNameAndPublicIdInput = ({
|
|
16126
16303
|
id,
|
|
16127
16304
|
onBlur,
|
|
@@ -16147,8 +16324,8 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16147
16324
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
16148
16325
|
};
|
|
16149
16326
|
autoFocus == null ? void 0 : autoFocus();
|
|
16150
|
-
return /* @__PURE__ */
|
|
16151
|
-
/* @__PURE__ */
|
|
16327
|
+
return /* @__PURE__ */ jsxs64(Fragment13, { children: [
|
|
16328
|
+
/* @__PURE__ */ jsx95(
|
|
16152
16329
|
ParameterInput,
|
|
16153
16330
|
{
|
|
16154
16331
|
id: nameIdField,
|
|
@@ -16167,7 +16344,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16167
16344
|
value: values[nameIdField]
|
|
16168
16345
|
}
|
|
16169
16346
|
),
|
|
16170
|
-
/* @__PURE__ */
|
|
16347
|
+
/* @__PURE__ */ jsx95(
|
|
16171
16348
|
ParameterInput,
|
|
16172
16349
|
{
|
|
16173
16350
|
id: publicIdFieldName,
|
|
@@ -16181,11 +16358,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16181
16358
|
caption: publicIdCaption,
|
|
16182
16359
|
placeholder: publicIdPlaceholderText,
|
|
16183
16360
|
errorMessage: publicIdError,
|
|
16184
|
-
menuItems: /* @__PURE__ */
|
|
16361
|
+
menuItems: /* @__PURE__ */ jsx95(
|
|
16185
16362
|
MenuItem,
|
|
16186
16363
|
{
|
|
16187
16364
|
disabled: !values[publicIdFieldName],
|
|
16188
|
-
icon: /* @__PURE__ */
|
|
16365
|
+
icon: /* @__PURE__ */ jsx95(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
16189
16366
|
onClick: handleCopyPidFieldValue,
|
|
16190
16367
|
children: "Copy"
|
|
16191
16368
|
}
|
|
@@ -16193,12 +16370,12 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16193
16370
|
value: values[publicIdFieldName]
|
|
16194
16371
|
}
|
|
16195
16372
|
),
|
|
16196
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
16373
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx95(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
16197
16374
|
] });
|
|
16198
16375
|
};
|
|
16199
16376
|
|
|
16200
16377
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
16201
|
-
import { css as
|
|
16378
|
+
import { css as css79 } from "@emotion/react";
|
|
16202
16379
|
import { ListItemNode, ListNode as ListNode2 } from "@lexical/list";
|
|
16203
16380
|
import {
|
|
16204
16381
|
CODE,
|
|
@@ -16264,6 +16441,10 @@ var richTextBuiltInElements = [
|
|
|
16264
16441
|
{
|
|
16265
16442
|
label: "Code Block",
|
|
16266
16443
|
type: "code"
|
|
16444
|
+
},
|
|
16445
|
+
{
|
|
16446
|
+
label: "Dynamic Token",
|
|
16447
|
+
type: "variable"
|
|
16267
16448
|
}
|
|
16268
16449
|
];
|
|
16269
16450
|
var richTextBuiltInFormats = [
|
|
@@ -16346,23 +16527,23 @@ function DisableStylesPlugin() {
|
|
|
16346
16527
|
}
|
|
16347
16528
|
|
|
16348
16529
|
// src/components/ParameterInputs/rich-text/editorStyles.ts
|
|
16349
|
-
import { css as
|
|
16350
|
-
var textBold =
|
|
16530
|
+
import { css as css75 } from "@emotion/css";
|
|
16531
|
+
var textBold = css75`
|
|
16351
16532
|
font-weight: 700;
|
|
16352
16533
|
`;
|
|
16353
|
-
var textItalic =
|
|
16534
|
+
var textItalic = css75`
|
|
16354
16535
|
font-style: italic;
|
|
16355
16536
|
`;
|
|
16356
|
-
var textUnderline =
|
|
16537
|
+
var textUnderline = css75`
|
|
16357
16538
|
text-decoration: underline;
|
|
16358
16539
|
`;
|
|
16359
|
-
var textStrikethrough =
|
|
16540
|
+
var textStrikethrough = css75`
|
|
16360
16541
|
text-decoration: line-through;
|
|
16361
16542
|
`;
|
|
16362
|
-
var textUnderlineStrikethrough =
|
|
16543
|
+
var textUnderlineStrikethrough = css75`
|
|
16363
16544
|
text-decoration: underline line-through;
|
|
16364
16545
|
`;
|
|
16365
|
-
var textCode =
|
|
16546
|
+
var textCode = css75`
|
|
16366
16547
|
background-color: var(--gray-100);
|
|
16367
16548
|
border-radius: var(--rounded-sm);
|
|
16368
16549
|
display: inline-block;
|
|
@@ -16373,68 +16554,68 @@ var textCode = css74`
|
|
|
16373
16554
|
padding-left: var(--spacing-xs);
|
|
16374
16555
|
padding-right: var(--spacing-xs);
|
|
16375
16556
|
`;
|
|
16376
|
-
var textSuperscript =
|
|
16557
|
+
var textSuperscript = css75`
|
|
16377
16558
|
vertical-align: super;
|
|
16378
16559
|
font-size: smaller;
|
|
16379
16560
|
`;
|
|
16380
|
-
var textSubscript =
|
|
16561
|
+
var textSubscript = css75`
|
|
16381
16562
|
vertical-align: sub;
|
|
16382
16563
|
font-size: smaller;
|
|
16383
16564
|
`;
|
|
16384
|
-
var linkElement =
|
|
16565
|
+
var linkElement = css75`
|
|
16385
16566
|
${link}
|
|
16386
16567
|
${linkColorDefault}
|
|
16387
16568
|
text-decoration: underline;
|
|
16388
16569
|
`;
|
|
16389
|
-
var h12 =
|
|
16570
|
+
var h12 = css75`
|
|
16390
16571
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.7rem);
|
|
16391
16572
|
`;
|
|
16392
|
-
var h22 =
|
|
16573
|
+
var h22 = css75`
|
|
16393
16574
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.6rem);
|
|
16394
16575
|
`;
|
|
16395
|
-
var h32 =
|
|
16576
|
+
var h32 = css75`
|
|
16396
16577
|
font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
|
|
16397
16578
|
`;
|
|
16398
|
-
var h42 =
|
|
16579
|
+
var h42 = css75`
|
|
16399
16580
|
font-size: clamp(1.15rem, var(--fluid-font-base), 1.25rem);
|
|
16400
16581
|
`;
|
|
16401
|
-
var h52 =
|
|
16582
|
+
var h52 = css75`
|
|
16402
16583
|
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
16403
16584
|
`;
|
|
16404
|
-
var h62 =
|
|
16585
|
+
var h62 = css75`
|
|
16405
16586
|
font-size: var(--fs-base);
|
|
16406
16587
|
`;
|
|
16407
|
-
var heading1Element =
|
|
16588
|
+
var heading1Element = css75`
|
|
16408
16589
|
${h12}
|
|
16409
16590
|
${commonHeadingAttr(true)}
|
|
16410
16591
|
${commonLineHeight}
|
|
16411
16592
|
`;
|
|
16412
|
-
var heading2Element =
|
|
16593
|
+
var heading2Element = css75`
|
|
16413
16594
|
${h22}
|
|
16414
16595
|
${commonHeadingAttr(true)}
|
|
16415
16596
|
${commonLineHeight}
|
|
16416
16597
|
`;
|
|
16417
|
-
var heading3Element =
|
|
16598
|
+
var heading3Element = css75`
|
|
16418
16599
|
${h32}
|
|
16419
16600
|
${commonHeadingAttr(true)}
|
|
16420
16601
|
${commonLineHeight}
|
|
16421
16602
|
`;
|
|
16422
|
-
var heading4Element =
|
|
16603
|
+
var heading4Element = css75`
|
|
16423
16604
|
${h42}
|
|
16424
16605
|
${commonHeadingAttr(true)}
|
|
16425
16606
|
${commonLineHeight}
|
|
16426
16607
|
`;
|
|
16427
|
-
var heading5Element =
|
|
16608
|
+
var heading5Element = css75`
|
|
16428
16609
|
${h52}
|
|
16429
16610
|
${commonHeadingAttr(true)}
|
|
16430
16611
|
${commonLineHeight}
|
|
16431
16612
|
`;
|
|
16432
|
-
var heading6Element =
|
|
16613
|
+
var heading6Element = css75`
|
|
16433
16614
|
${h62}
|
|
16434
16615
|
${commonHeadingAttr(true)}
|
|
16435
16616
|
${commonLineHeight}
|
|
16436
16617
|
`;
|
|
16437
|
-
var paragraphElement =
|
|
16618
|
+
var paragraphElement = css75`
|
|
16438
16619
|
line-height: 1.5;
|
|
16439
16620
|
margin-bottom: var(--spacing-base);
|
|
16440
16621
|
|
|
@@ -16442,7 +16623,7 @@ var paragraphElement = css74`
|
|
|
16442
16623
|
margin-bottom: 0;
|
|
16443
16624
|
}
|
|
16444
16625
|
`;
|
|
16445
|
-
var orderedListElement =
|
|
16626
|
+
var orderedListElement = css75`
|
|
16446
16627
|
${commonLineHeight}
|
|
16447
16628
|
display: block;
|
|
16448
16629
|
list-style: decimal;
|
|
@@ -16471,7 +16652,7 @@ var orderedListElement = css74`
|
|
|
16471
16652
|
}
|
|
16472
16653
|
}
|
|
16473
16654
|
`;
|
|
16474
|
-
var unorderedListElement =
|
|
16655
|
+
var unorderedListElement = css75`
|
|
16475
16656
|
${commonLineHeight}
|
|
16476
16657
|
display: block;
|
|
16477
16658
|
list-style: disc;
|
|
@@ -16492,13 +16673,13 @@ var unorderedListElement = css74`
|
|
|
16492
16673
|
}
|
|
16493
16674
|
}
|
|
16494
16675
|
`;
|
|
16495
|
-
var listItemElement =
|
|
16676
|
+
var listItemElement = css75`
|
|
16496
16677
|
margin-left: var(--spacing-md);
|
|
16497
16678
|
`;
|
|
16498
|
-
var nestedListItemElement =
|
|
16679
|
+
var nestedListItemElement = css75`
|
|
16499
16680
|
list-style-type: none;
|
|
16500
16681
|
`;
|
|
16501
|
-
var blockquoteElement =
|
|
16682
|
+
var blockquoteElement = css75`
|
|
16502
16683
|
border-left: 0.25rem solid var(--gray-300);
|
|
16503
16684
|
color: var(--gray-600);
|
|
16504
16685
|
margin-bottom: var(--spacing-base);
|
|
@@ -16508,7 +16689,7 @@ var blockquoteElement = css74`
|
|
|
16508
16689
|
margin-bottom: 0;
|
|
16509
16690
|
}
|
|
16510
16691
|
`;
|
|
16511
|
-
var codeElement =
|
|
16692
|
+
var codeElement = css75`
|
|
16512
16693
|
background-color: var(--gray-100);
|
|
16513
16694
|
border-radius: var(--rounded-sm);
|
|
16514
16695
|
display: block;
|
|
@@ -16525,7 +16706,7 @@ var codeElement = css74`
|
|
|
16525
16706
|
`;
|
|
16526
16707
|
|
|
16527
16708
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
16528
|
-
import { css as
|
|
16709
|
+
import { css as css77 } from "@emotion/react";
|
|
16529
16710
|
import { useLexicalComposerContext as useLexicalComposerContext2 } from "@lexical/react/LexicalComposerContext";
|
|
16530
16711
|
import { NodeEventPlugin } from "@lexical/react/LexicalNodeEventPlugin";
|
|
16531
16712
|
import { addClassNamesToElement, isHTMLAnchorElement, mergeRegister as mergeRegister2 } from "@lexical/utils";
|
|
@@ -16544,8 +16725,8 @@ import {
|
|
|
16544
16725
|
import { useCallback as useCallback4, useEffect as useEffect11, useRef as useRef6, useState as useState10 } from "react";
|
|
16545
16726
|
|
|
16546
16727
|
// src/components/Popover/Popover.styles.ts
|
|
16547
|
-
import { css as
|
|
16548
|
-
var PopoverBtn =
|
|
16728
|
+
import { css as css76 } from "@emotion/react";
|
|
16729
|
+
var PopoverBtn = css76`
|
|
16549
16730
|
border: none;
|
|
16550
16731
|
background: none;
|
|
16551
16732
|
padding: var(--spacing-2xs);
|
|
@@ -16555,7 +16736,7 @@ var PopoverBtn = css75`
|
|
|
16555
16736
|
background-color: rgba(0, 0, 0, 0.05);
|
|
16556
16737
|
}
|
|
16557
16738
|
`;
|
|
16558
|
-
var Popover =
|
|
16739
|
+
var Popover = css76`
|
|
16559
16740
|
border-left: var(--spacing-xs) solid var(--brand-secondary-3);
|
|
16560
16741
|
border-radius: var(--rounded-base);
|
|
16561
16742
|
box-shadow: var(--shadow-base);
|
|
@@ -16604,7 +16785,7 @@ var getSelectedNode = (selection) => {
|
|
|
16604
16785
|
};
|
|
16605
16786
|
|
|
16606
16787
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
16607
|
-
import { Fragment as
|
|
16788
|
+
import { Fragment as Fragment14, jsx as jsx96, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
|
|
16608
16789
|
var isProjectMapLinkValue = (value) => {
|
|
16609
16790
|
return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
|
|
16610
16791
|
value.nodeId && value.path && value.projectMapId
|
|
@@ -16891,20 +17072,23 @@ var OPEN_LINK_NODE_MODAL_COMMAND = createCommand(
|
|
|
16891
17072
|
);
|
|
16892
17073
|
var LINK_POPOVER_OFFSET_X = 0;
|
|
16893
17074
|
var LINK_POPOVER_OFFSET_Y = 8;
|
|
16894
|
-
var linkPopover =
|
|
17075
|
+
var linkPopover = css77`
|
|
16895
17076
|
position: absolute;
|
|
16896
17077
|
z-index: 5;
|
|
16897
17078
|
`;
|
|
16898
|
-
var linkPopoverContainer =
|
|
17079
|
+
var linkPopoverContainer = css77`
|
|
16899
17080
|
${Popover};
|
|
16900
17081
|
align-items: center;
|
|
16901
17082
|
display: flex;
|
|
16902
17083
|
`;
|
|
16903
|
-
var linkPopoverAnchor =
|
|
17084
|
+
var linkPopoverAnchor = css77`
|
|
16904
17085
|
${link}
|
|
16905
17086
|
${linkColorDefault}
|
|
16906
17087
|
`;
|
|
16907
|
-
function LinkNodePlugin({ onConnectLink }) {
|
|
17088
|
+
function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
17089
|
+
const parsePath = getBoundPath != null ? getBoundPath : function(path) {
|
|
17090
|
+
return path;
|
|
17091
|
+
};
|
|
16908
17092
|
const [editor] = useLexicalComposerContext2();
|
|
16909
17093
|
const [linkPopoverState, setLinkPopoverState] = useState10();
|
|
16910
17094
|
const linkPopoverElRef = useRef6(null);
|
|
@@ -17044,8 +17228,8 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
17044
17228
|
});
|
|
17045
17229
|
});
|
|
17046
17230
|
};
|
|
17047
|
-
return /* @__PURE__ */
|
|
17048
|
-
/* @__PURE__ */
|
|
17231
|
+
return /* @__PURE__ */ jsxs65(Fragment14, { children: [
|
|
17232
|
+
/* @__PURE__ */ jsx96(
|
|
17049
17233
|
NodeEventPlugin,
|
|
17050
17234
|
{
|
|
17051
17235
|
nodeType: LinkNode,
|
|
@@ -17055,7 +17239,7 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
17055
17239
|
}
|
|
17056
17240
|
}
|
|
17057
17241
|
),
|
|
17058
|
-
linkPopoverState ? /* @__PURE__ */
|
|
17242
|
+
linkPopoverState ? /* @__PURE__ */ jsx96(
|
|
17059
17243
|
"div",
|
|
17060
17244
|
{
|
|
17061
17245
|
css: linkPopover,
|
|
@@ -17064,18 +17248,20 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
17064
17248
|
top: linkPopoverState.position.y
|
|
17065
17249
|
},
|
|
17066
17250
|
ref: linkPopoverElRef,
|
|
17067
|
-
children: /* @__PURE__ */
|
|
17068
|
-
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */
|
|
17251
|
+
children: /* @__PURE__ */ jsxs65("div", { css: linkPopoverContainer, children: [
|
|
17252
|
+
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ jsx96(
|
|
17069
17253
|
"a",
|
|
17070
17254
|
{
|
|
17071
|
-
href:
|
|
17255
|
+
href: parsePath(
|
|
17256
|
+
`${linkPopoverState.node.__link.type === "email" ? "mailto:" : linkPopoverState.node.__link.type === "tel" ? "tel:" : ""}${linkPopoverState.node.__link.path}`
|
|
17257
|
+
),
|
|
17072
17258
|
css: linkPopoverAnchor,
|
|
17073
17259
|
target: "_blank",
|
|
17074
17260
|
rel: "noopener noreferrer",
|
|
17075
|
-
children: linkPopoverState.node.__link.path
|
|
17261
|
+
children: parsePath(linkPopoverState.node.__link.path)
|
|
17076
17262
|
}
|
|
17077
17263
|
),
|
|
17078
|
-
/* @__PURE__ */
|
|
17264
|
+
/* @__PURE__ */ jsx96(
|
|
17079
17265
|
Button,
|
|
17080
17266
|
{
|
|
17081
17267
|
size: "xs",
|
|
@@ -17083,7 +17269,7 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
17083
17269
|
onEditLinkNode(linkPopoverState.node);
|
|
17084
17270
|
},
|
|
17085
17271
|
buttonType: "ghost",
|
|
17086
|
-
children: /* @__PURE__ */
|
|
17272
|
+
children: /* @__PURE__ */ jsx96(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
|
|
17087
17273
|
}
|
|
17088
17274
|
)
|
|
17089
17275
|
] })
|
|
@@ -17108,7 +17294,7 @@ import {
|
|
|
17108
17294
|
INDENT_CONTENT_COMMAND
|
|
17109
17295
|
} from "lexical";
|
|
17110
17296
|
import { useEffect as useEffect12 } from "react";
|
|
17111
|
-
import { jsx as
|
|
17297
|
+
import { jsx as jsx97 } from "@emotion/react/jsx-runtime";
|
|
17112
17298
|
function isIndentPermitted(maxDepth) {
|
|
17113
17299
|
const selection = $getSelection2();
|
|
17114
17300
|
if (!$isRangeSelection2(selection)) {
|
|
@@ -17138,11 +17324,11 @@ function ListIndentPlugin({ maxDepth }) {
|
|
|
17138
17324
|
COMMAND_PRIORITY_CRITICAL
|
|
17139
17325
|
);
|
|
17140
17326
|
}, [editor, maxDepth]);
|
|
17141
|
-
return /* @__PURE__ */
|
|
17327
|
+
return /* @__PURE__ */ jsx97(TabIndentationPlugin, {});
|
|
17142
17328
|
}
|
|
17143
17329
|
|
|
17144
17330
|
// src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
|
|
17145
|
-
import { css as
|
|
17331
|
+
import { css as css78 } from "@emotion/react";
|
|
17146
17332
|
import { $createCodeNode } from "@lexical/code";
|
|
17147
17333
|
import {
|
|
17148
17334
|
$isListNode as $isListNode2,
|
|
@@ -17164,21 +17350,21 @@ import {
|
|
|
17164
17350
|
FORMAT_TEXT_COMMAND,
|
|
17165
17351
|
SELECTION_CHANGE_COMMAND
|
|
17166
17352
|
} from "lexical";
|
|
17167
|
-
import { useCallback as useCallback5, useEffect as useEffect13, useMemo as
|
|
17168
|
-
import { Fragment as
|
|
17169
|
-
var toolbar =
|
|
17353
|
+
import { useCallback as useCallback5, useEffect as useEffect13, useMemo as useMemo3, useState as useState11 } from "react";
|
|
17354
|
+
import { Fragment as Fragment15, jsx as jsx98, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
|
|
17355
|
+
var toolbar = css78`
|
|
17170
17356
|
background: var(--gray-50);
|
|
17171
17357
|
border-radius: var(--rounded-base);
|
|
17172
17358
|
display: flex;
|
|
17173
17359
|
/* We add 1px because we use a 1px wide separator */
|
|
17174
17360
|
gap: calc(var(--spacing-sm) + 1px);
|
|
17175
|
-
margin: calc(var(--spacing-sm) + var(--spacing-xs))
|
|
17361
|
+
margin: calc(var(--spacing-sm) + var(--spacing-xs)) 0;
|
|
17176
17362
|
padding: var(--spacing-sm);
|
|
17177
17363
|
position: sticky;
|
|
17178
|
-
top:
|
|
17364
|
+
top: calc(var(--spacing-sm) * -2);
|
|
17179
17365
|
z-index: 10;
|
|
17180
17366
|
`;
|
|
17181
|
-
var toolbarGroup =
|
|
17367
|
+
var toolbarGroup = css78`
|
|
17182
17368
|
display: flex;
|
|
17183
17369
|
gap: var(--spacing-xs);
|
|
17184
17370
|
position: relative;
|
|
@@ -17194,7 +17380,7 @@ var toolbarGroup = css77`
|
|
|
17194
17380
|
width: 1px;
|
|
17195
17381
|
}
|
|
17196
17382
|
`;
|
|
17197
|
-
var
|
|
17383
|
+
var richTextToolbarButton = css78`
|
|
17198
17384
|
align-items: center;
|
|
17199
17385
|
appearance: none;
|
|
17200
17386
|
border: 0;
|
|
@@ -17207,17 +17393,17 @@ var toolbarButton = css77`
|
|
|
17207
17393
|
min-width: 32px;
|
|
17208
17394
|
padding: 0 var(--spacing-sm);
|
|
17209
17395
|
`;
|
|
17210
|
-
var
|
|
17396
|
+
var richTextToolbarButtonActive = css78`
|
|
17211
17397
|
background: var(--gray-200);
|
|
17212
17398
|
`;
|
|
17213
|
-
var toolbarIcon =
|
|
17399
|
+
var toolbarIcon = css78`
|
|
17214
17400
|
color: inherit;
|
|
17215
17401
|
`;
|
|
17216
|
-
var toolbarChevron =
|
|
17402
|
+
var toolbarChevron = css78`
|
|
17217
17403
|
margin-left: var(--spacing-xs);
|
|
17218
17404
|
`;
|
|
17219
|
-
var
|
|
17220
|
-
return /* @__PURE__ */
|
|
17405
|
+
var RichTextToolbarIcon = ({ icon }) => {
|
|
17406
|
+
return /* @__PURE__ */ jsx98(Icon, { icon, css: toolbarIcon, size: "1rem" });
|
|
17221
17407
|
};
|
|
17222
17408
|
var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
|
|
17223
17409
|
["bold", "format-bold"],
|
|
@@ -17230,7 +17416,7 @@ var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
|
|
|
17230
17416
|
]);
|
|
17231
17417
|
var HEADING_ELEMENTS = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
17232
17418
|
var TEXTUAL_ELEMENTS = HEADING_ELEMENTS;
|
|
17233
|
-
var RichTextToolbar = ({ config }) => {
|
|
17419
|
+
var RichTextToolbar = ({ config, customControls }) => {
|
|
17234
17420
|
const [editor] = useLexicalComposerContext4();
|
|
17235
17421
|
const {
|
|
17236
17422
|
activeElement,
|
|
@@ -17326,15 +17512,15 @@ var RichTextToolbar = ({ config }) => {
|
|
|
17326
17512
|
});
|
|
17327
17513
|
});
|
|
17328
17514
|
}, [editor, updateToolbar]);
|
|
17329
|
-
return /* @__PURE__ */
|
|
17330
|
-
/* @__PURE__ */
|
|
17515
|
+
return /* @__PURE__ */ jsxs66("div", { css: toolbar, children: [
|
|
17516
|
+
/* @__PURE__ */ jsxs66(
|
|
17331
17517
|
Menu,
|
|
17332
17518
|
{
|
|
17333
17519
|
menuLabel: "Elements",
|
|
17334
|
-
menuTrigger: /* @__PURE__ */
|
|
17520
|
+
menuTrigger: /* @__PURE__ */ jsxs66("button", { css: richTextToolbarButton, title: "Text styles", children: [
|
|
17335
17521
|
visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
|
|
17336
17522
|
" ",
|
|
17337
|
-
/* @__PURE__ */
|
|
17523
|
+
/* @__PURE__ */ jsx98(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
|
|
17338
17524
|
] }),
|
|
17339
17525
|
placement: "bottom-start",
|
|
17340
17526
|
children: [
|
|
@@ -17344,7 +17530,7 @@ var RichTextToolbar = ({ config }) => {
|
|
|
17344
17530
|
type: "paragraph"
|
|
17345
17531
|
},
|
|
17346
17532
|
...visibleTextualElements
|
|
17347
|
-
].map((element) => /* @__PURE__ */
|
|
17533
|
+
].map((element) => /* @__PURE__ */ jsx98(
|
|
17348
17534
|
MenuItem,
|
|
17349
17535
|
{
|
|
17350
17536
|
onClick: () => {
|
|
@@ -17354,28 +17540,31 @@ var RichTextToolbar = ({ config }) => {
|
|
|
17354
17540
|
},
|
|
17355
17541
|
element.type
|
|
17356
17542
|
)),
|
|
17357
|
-
visibleTextualElements.length === 0 ? /* @__PURE__ */
|
|
17543
|
+
visibleTextualElements.length === 0 ? /* @__PURE__ */ jsx98(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
|
|
17358
17544
|
]
|
|
17359
17545
|
}
|
|
17360
17546
|
),
|
|
17361
|
-
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
17362
|
-
visibleFormatsWithIcon.map((format) => /* @__PURE__ */
|
|
17547
|
+
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsxs66("div", { css: toolbarGroup, children: [
|
|
17548
|
+
visibleFormatsWithIcon.map((format) => /* @__PURE__ */ jsx98(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ jsx98(
|
|
17363
17549
|
"button",
|
|
17364
17550
|
{
|
|
17365
17551
|
onClick: () => {
|
|
17366
17552
|
editor.dispatchCommand(FORMAT_TEXT_COMMAND, format.type);
|
|
17367
17553
|
},
|
|
17368
|
-
css: [
|
|
17369
|
-
|
|
17554
|
+
css: [
|
|
17555
|
+
richTextToolbarButton,
|
|
17556
|
+
activeFormats.includes(format.type) ? richTextToolbarButtonActive : null
|
|
17557
|
+
],
|
|
17558
|
+
children: /* @__PURE__ */ jsx98(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
|
|
17370
17559
|
}
|
|
17371
17560
|
) }, format.type)),
|
|
17372
|
-
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
17561
|
+
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsx98(
|
|
17373
17562
|
Menu,
|
|
17374
17563
|
{
|
|
17375
17564
|
menuLabel: "Alternative text styles",
|
|
17376
|
-
menuTrigger: /* @__PURE__ */
|
|
17565
|
+
menuTrigger: /* @__PURE__ */ jsx98("button", { css: richTextToolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ jsx98(Icon, { icon: "more-alt", css: toolbarIcon }) }),
|
|
17377
17566
|
placement: "bottom-start",
|
|
17378
|
-
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */
|
|
17567
|
+
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ jsx98(
|
|
17379
17568
|
MenuItem,
|
|
17380
17569
|
{
|
|
17381
17570
|
onClick: () => {
|
|
@@ -17388,85 +17577,92 @@ var RichTextToolbar = ({ config }) => {
|
|
|
17388
17577
|
}
|
|
17389
17578
|
) : null
|
|
17390
17579
|
] }) : null,
|
|
17391
|
-
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */
|
|
17392
|
-
linkElementVisible ? /* @__PURE__ */
|
|
17580
|
+
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ jsxs66("div", { css: toolbarGroup, children: [
|
|
17581
|
+
linkElementVisible ? /* @__PURE__ */ jsx98(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ jsx98(
|
|
17393
17582
|
"button",
|
|
17394
17583
|
{
|
|
17395
17584
|
onClick: () => {
|
|
17396
17585
|
isLink ? editor.dispatchCommand(REMOVE_LINK_NODE_COMMAND, {}) : editor.dispatchCommand(OPEN_LINK_NODE_MODAL_COMMAND, {});
|
|
17397
17586
|
},
|
|
17398
|
-
css: [
|
|
17399
|
-
children: /* @__PURE__ */
|
|
17587
|
+
css: [richTextToolbarButton, isLink ? richTextToolbarButtonActive : null],
|
|
17588
|
+
children: /* @__PURE__ */ jsx98(RichTextToolbarIcon, { icon: "link" })
|
|
17400
17589
|
}
|
|
17401
17590
|
) }) : null,
|
|
17402
|
-
visibleLists.size > 0 ? /* @__PURE__ */
|
|
17403
|
-
visibleLists.has("unorderedList") ? /* @__PURE__ */
|
|
17591
|
+
visibleLists.size > 0 ? /* @__PURE__ */ jsxs66(Fragment15, { children: [
|
|
17592
|
+
visibleLists.has("unorderedList") ? /* @__PURE__ */ jsx98(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ jsx98(
|
|
17404
17593
|
"button",
|
|
17405
17594
|
{
|
|
17406
17595
|
onClick: () => {
|
|
17407
17596
|
activeElement === "unorderedList" ? editor.dispatchCommand(REMOVE_LIST_COMMAND, void 0) : editor.dispatchCommand(INSERT_UNORDERED_LIST_COMMAND, void 0);
|
|
17408
17597
|
},
|
|
17409
|
-
css: [
|
|
17410
|
-
|
|
17598
|
+
css: [
|
|
17599
|
+
richTextToolbarButton,
|
|
17600
|
+
activeElement === "unorderedList" ? richTextToolbarButtonActive : null
|
|
17601
|
+
],
|
|
17602
|
+
children: /* @__PURE__ */ jsx98(RichTextToolbarIcon, { icon: "layout-list" })
|
|
17411
17603
|
}
|
|
17412
17604
|
) }) : null,
|
|
17413
|
-
visibleLists.has("orderedList") ? /* @__PURE__ */
|
|
17605
|
+
visibleLists.has("orderedList") ? /* @__PURE__ */ jsx98(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ jsx98(
|
|
17414
17606
|
"button",
|
|
17415
17607
|
{
|
|
17416
17608
|
onClick: () => {
|
|
17417
17609
|
activeElement === "orderedList" ? editor.dispatchCommand(REMOVE_LIST_COMMAND, void 0) : editor.dispatchCommand(INSERT_ORDERED_LIST_COMMAND, void 0);
|
|
17418
17610
|
},
|
|
17419
|
-
css: [
|
|
17420
|
-
|
|
17611
|
+
css: [
|
|
17612
|
+
richTextToolbarButton,
|
|
17613
|
+
activeElement === "orderedList" ? richTextToolbarButtonActive : null
|
|
17614
|
+
],
|
|
17615
|
+
children: /* @__PURE__ */ jsx98(RichTextToolbarIcon, { icon: "layout-list-numbered" })
|
|
17421
17616
|
}
|
|
17422
17617
|
) }) : null
|
|
17423
17618
|
] }) : null,
|
|
17424
|
-
quoteElementVisible ? /* @__PURE__ */
|
|
17619
|
+
quoteElementVisible ? /* @__PURE__ */ jsx98(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ jsx98(
|
|
17425
17620
|
"button",
|
|
17426
17621
|
{
|
|
17427
17622
|
onClick: () => {
|
|
17428
17623
|
activeElement === "quote" ? onSelectElement("paragraph") : onSelectElement("quote");
|
|
17429
17624
|
},
|
|
17430
|
-
css: [
|
|
17431
|
-
children: /* @__PURE__ */
|
|
17625
|
+
css: [richTextToolbarButton, activeElement === "quote" ? richTextToolbarButtonActive : null],
|
|
17626
|
+
children: /* @__PURE__ */ jsx98(RichTextToolbarIcon, { icon: "quote" })
|
|
17432
17627
|
}
|
|
17433
17628
|
) }) : null,
|
|
17434
|
-
codeElementVisible ? /* @__PURE__ */
|
|
17629
|
+
codeElementVisible ? /* @__PURE__ */ jsx98(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ jsx98(
|
|
17435
17630
|
"button",
|
|
17436
17631
|
{
|
|
17437
17632
|
onClick: () => {
|
|
17438
17633
|
activeElement === "code" ? onSelectElement("paragraph") : onSelectElement("code");
|
|
17439
17634
|
},
|
|
17440
|
-
css: [
|
|
17441
|
-
children: /* @__PURE__ */
|
|
17635
|
+
css: [richTextToolbarButton, activeElement === "code" ? richTextToolbarButtonActive : null],
|
|
17636
|
+
children: /* @__PURE__ */ jsx98(RichTextToolbarIcon, { icon: "code-slash" })
|
|
17442
17637
|
}
|
|
17443
17638
|
) }) : null
|
|
17444
|
-
] }) : null
|
|
17639
|
+
] }) : null,
|
|
17640
|
+
customControls ? /* @__PURE__ */ jsx98("div", { css: toolbarGroup, children: customControls }) : null
|
|
17445
17641
|
] });
|
|
17446
17642
|
};
|
|
17447
17643
|
var RichTextToolbar_default = RichTextToolbar;
|
|
17448
17644
|
var useRichTextToolbarState = ({ config }) => {
|
|
17449
17645
|
var _a;
|
|
17450
|
-
const enabledBuiltInFormats =
|
|
17646
|
+
const enabledBuiltInFormats = useMemo3(() => {
|
|
17451
17647
|
return richTextBuiltInFormats.filter((format) => {
|
|
17452
17648
|
var _a2, _b;
|
|
17453
17649
|
return (_b = (_a2 = config == null ? void 0 : config.formatting) == null ? void 0 : _a2.builtIn) == null ? void 0 : _b.includes(format.type);
|
|
17454
17650
|
});
|
|
17455
17651
|
}, [config]);
|
|
17456
|
-
const enabledBuiltInElements =
|
|
17652
|
+
const enabledBuiltInElements = useMemo3(() => {
|
|
17457
17653
|
return richTextBuiltInElements.filter((element) => {
|
|
17458
17654
|
var _a2, _b;
|
|
17459
17655
|
return (_b = (_a2 = config == null ? void 0 : config.elements) == null ? void 0 : _a2.builtIn) == null ? void 0 : _b.includes(element.type);
|
|
17460
17656
|
});
|
|
17461
17657
|
}, [config]);
|
|
17462
|
-
const enabledBuiltInFormatsWithIcon =
|
|
17658
|
+
const enabledBuiltInFormatsWithIcon = useMemo3(() => {
|
|
17463
17659
|
return enabledBuiltInFormats.filter((format) => FORMATS_WITH_ICON.has(format.type));
|
|
17464
17660
|
}, [enabledBuiltInFormats]);
|
|
17465
17661
|
const enabledBuiltInFormatsWithoutIcon = enabledBuiltInFormats.filter(
|
|
17466
17662
|
(format) => !FORMATS_WITH_ICON.has(format.type)
|
|
17467
17663
|
);
|
|
17468
17664
|
const [activeFormats, setActiveFormats] = useState11([]);
|
|
17469
|
-
const visibleFormatsWithIcon =
|
|
17665
|
+
const visibleFormatsWithIcon = useMemo3(() => {
|
|
17470
17666
|
const visibleFormats = /* @__PURE__ */ new Set();
|
|
17471
17667
|
activeFormats.filter((type) => FORMATS_WITH_ICON.has(type)).forEach((type) => {
|
|
17472
17668
|
visibleFormats.add(type);
|
|
@@ -17476,7 +17672,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
17476
17672
|
});
|
|
17477
17673
|
return richTextBuiltInFormats.filter((format) => visibleFormats.has(format.type));
|
|
17478
17674
|
}, [activeFormats, enabledBuiltInFormatsWithIcon]);
|
|
17479
|
-
const visibleFormatsWithoutIcon =
|
|
17675
|
+
const visibleFormatsWithoutIcon = useMemo3(() => {
|
|
17480
17676
|
const visibleFormats = /* @__PURE__ */ new Set();
|
|
17481
17677
|
activeFormats.filter((type) => !FORMATS_WITH_ICON.has(type)).forEach((type) => {
|
|
17482
17678
|
visibleFormats.add(type);
|
|
@@ -17490,7 +17686,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
17490
17686
|
const enabledTextualElements = enabledBuiltInElements.filter(
|
|
17491
17687
|
(element) => TEXTUAL_ELEMENTS.includes(element.type)
|
|
17492
17688
|
);
|
|
17493
|
-
const visibleTextualElements =
|
|
17689
|
+
const visibleTextualElements = useMemo3(() => {
|
|
17494
17690
|
if (!TEXTUAL_ELEMENTS.includes(activeElement)) {
|
|
17495
17691
|
return enabledTextualElements;
|
|
17496
17692
|
}
|
|
@@ -17502,23 +17698,23 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
17502
17698
|
);
|
|
17503
17699
|
}, [activeElement, (_a = config == null ? void 0 : config.elements) == null ? void 0 : _a.builtIn, enabledTextualElements]);
|
|
17504
17700
|
const [isLink, setIsLink] = useState11(false);
|
|
17505
|
-
const linkElementVisible =
|
|
17701
|
+
const linkElementVisible = useMemo3(() => {
|
|
17506
17702
|
return enabledBuiltInElements.some((element) => element.type === "link") || isLink;
|
|
17507
17703
|
}, [isLink, enabledBuiltInElements]);
|
|
17508
|
-
const visibleLists =
|
|
17704
|
+
const visibleLists = useMemo3(() => {
|
|
17509
17705
|
return new Set(
|
|
17510
17706
|
["orderedList", "unorderedList"].filter(
|
|
17511
17707
|
(type) => enabledBuiltInElements.some((element) => element.type === type) || activeElement === type
|
|
17512
17708
|
)
|
|
17513
17709
|
);
|
|
17514
17710
|
}, [activeElement, enabledBuiltInElements]);
|
|
17515
|
-
const quoteElementVisible =
|
|
17711
|
+
const quoteElementVisible = useMemo3(() => {
|
|
17516
17712
|
return enabledBuiltInElements.some((element) => element.type === "quote") || activeElement === "quote";
|
|
17517
17713
|
}, [activeElement, enabledBuiltInElements]);
|
|
17518
|
-
const codeElementVisible =
|
|
17714
|
+
const codeElementVisible = useMemo3(() => {
|
|
17519
17715
|
return enabledBuiltInElements.some((element) => element.type === "code") || activeElement === "code";
|
|
17520
17716
|
}, [activeElement, enabledBuiltInElements]);
|
|
17521
|
-
const visibleElementsWithIcons =
|
|
17717
|
+
const visibleElementsWithIcons = useMemo3(() => {
|
|
17522
17718
|
const visibleElements = /* @__PURE__ */ new Set();
|
|
17523
17719
|
if (linkElementVisible) {
|
|
17524
17720
|
visibleElements.add("link");
|
|
@@ -17555,7 +17751,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
17555
17751
|
};
|
|
17556
17752
|
|
|
17557
17753
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
17558
|
-
import { Fragment as
|
|
17754
|
+
import { Fragment as Fragment16, jsx as jsx99, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
|
|
17559
17755
|
var ParameterRichText = ({
|
|
17560
17756
|
label,
|
|
17561
17757
|
labelLeadingIcon,
|
|
@@ -17574,9 +17770,13 @@ var ParameterRichText = ({
|
|
|
17574
17770
|
readOnly,
|
|
17575
17771
|
editorWrapperClassName,
|
|
17576
17772
|
editorInputClassName,
|
|
17577
|
-
editorFooter
|
|
17773
|
+
editorFooter,
|
|
17774
|
+
customNodes,
|
|
17775
|
+
children,
|
|
17776
|
+
variables,
|
|
17777
|
+
customControls
|
|
17578
17778
|
}) => {
|
|
17579
|
-
return /* @__PURE__ */
|
|
17779
|
+
return /* @__PURE__ */ jsxs67(
|
|
17580
17780
|
ParameterShell,
|
|
17581
17781
|
{
|
|
17582
17782
|
"data-testid": "parameter-input",
|
|
@@ -17590,7 +17790,7 @@ var ParameterRichText = ({
|
|
|
17590
17790
|
captionTestId,
|
|
17591
17791
|
menuItems,
|
|
17592
17792
|
children: [
|
|
17593
|
-
/* @__PURE__ */
|
|
17793
|
+
/* @__PURE__ */ jsx99(
|
|
17594
17794
|
ParameterRichTextInner,
|
|
17595
17795
|
{
|
|
17596
17796
|
value,
|
|
@@ -17601,26 +17801,30 @@ var ParameterRichText = ({
|
|
|
17601
17801
|
readOnly,
|
|
17602
17802
|
editorWrapperClassName,
|
|
17603
17803
|
editorInputClassName,
|
|
17604
|
-
editorFooter
|
|
17804
|
+
editorFooter,
|
|
17805
|
+
customNodes,
|
|
17806
|
+
variables,
|
|
17807
|
+
customControls,
|
|
17808
|
+
children
|
|
17605
17809
|
}
|
|
17606
17810
|
),
|
|
17607
|
-
menuItems ? /* @__PURE__ */
|
|
17811
|
+
menuItems ? /* @__PURE__ */ jsx99(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx99(Fragment16, { children: menuItems }) }) : null
|
|
17608
17812
|
]
|
|
17609
17813
|
}
|
|
17610
17814
|
);
|
|
17611
17815
|
};
|
|
17612
|
-
var editorWrapper =
|
|
17816
|
+
var editorWrapper = css79`
|
|
17613
17817
|
display: flex;
|
|
17614
17818
|
flex-flow: column;
|
|
17615
17819
|
flex-grow: 1;
|
|
17616
17820
|
`;
|
|
17617
|
-
var editorContainer =
|
|
17821
|
+
var editorContainer = css79`
|
|
17618
17822
|
display: flex;
|
|
17619
17823
|
flex-flow: column;
|
|
17620
17824
|
flex-grow: 1;
|
|
17621
17825
|
position: relative;
|
|
17622
17826
|
`;
|
|
17623
|
-
var editorPlaceholder =
|
|
17827
|
+
var editorPlaceholder = css79`
|
|
17624
17828
|
color: var(--gray-500);
|
|
17625
17829
|
font-style: italic;
|
|
17626
17830
|
/* 1px is added to make sure caret is clearly visible when field is focused
|
|
@@ -17631,7 +17835,7 @@ var editorPlaceholder = css78`
|
|
|
17631
17835
|
top: var(--spacing-xs);
|
|
17632
17836
|
user-select: none;
|
|
17633
17837
|
`;
|
|
17634
|
-
var editorInput =
|
|
17838
|
+
var editorInput = css79`
|
|
17635
17839
|
background: var(--white);
|
|
17636
17840
|
border: 1px solid var(--white);
|
|
17637
17841
|
border-radius: var(--rounded-sm);
|
|
@@ -17659,7 +17863,11 @@ var ParameterRichTextInner = ({
|
|
|
17659
17863
|
readOnly,
|
|
17660
17864
|
editorWrapperClassName,
|
|
17661
17865
|
editorInputClassName,
|
|
17662
|
-
editorFooter
|
|
17866
|
+
editorFooter,
|
|
17867
|
+
children,
|
|
17868
|
+
customNodes,
|
|
17869
|
+
variables,
|
|
17870
|
+
customControls
|
|
17663
17871
|
}) => {
|
|
17664
17872
|
const lexicalConfig = {
|
|
17665
17873
|
namespace: "uniform",
|
|
@@ -17667,7 +17875,16 @@ var ParameterRichTextInner = ({
|
|
|
17667
17875
|
console.error(error);
|
|
17668
17876
|
},
|
|
17669
17877
|
editorState: value ? JSON.stringify(value) : void 0,
|
|
17670
|
-
nodes: [
|
|
17878
|
+
nodes: [
|
|
17879
|
+
ListNode2,
|
|
17880
|
+
ListItemNode,
|
|
17881
|
+
LinkNode,
|
|
17882
|
+
HeadingNode,
|
|
17883
|
+
QuoteNode,
|
|
17884
|
+
ParagraphNode2,
|
|
17885
|
+
CustomCodeNode,
|
|
17886
|
+
...customNodes != null ? customNodes : []
|
|
17887
|
+
],
|
|
17671
17888
|
theme: {
|
|
17672
17889
|
text: {
|
|
17673
17890
|
bold: textBold,
|
|
@@ -17702,8 +17919,8 @@ var ParameterRichTextInner = ({
|
|
|
17702
17919
|
},
|
|
17703
17920
|
editable: !readOnly
|
|
17704
17921
|
};
|
|
17705
|
-
return /* @__PURE__ */
|
|
17706
|
-
/* @__PURE__ */
|
|
17922
|
+
return /* @__PURE__ */ jsxs67(Fragment16, { children: [
|
|
17923
|
+
/* @__PURE__ */ jsx99("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx99(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx99(
|
|
17707
17924
|
RichText,
|
|
17708
17925
|
{
|
|
17709
17926
|
onChange,
|
|
@@ -17711,7 +17928,10 @@ var ParameterRichTextInner = ({
|
|
|
17711
17928
|
config,
|
|
17712
17929
|
onRichTextInit,
|
|
17713
17930
|
readOnly,
|
|
17714
|
-
editorInputClassName
|
|
17931
|
+
editorInputClassName,
|
|
17932
|
+
variables,
|
|
17933
|
+
customControls,
|
|
17934
|
+
children
|
|
17715
17935
|
}
|
|
17716
17936
|
) }) }),
|
|
17717
17937
|
editorFooter ? editorFooter : null
|
|
@@ -17732,7 +17952,10 @@ var RichText = ({
|
|
|
17732
17952
|
config,
|
|
17733
17953
|
onRichTextInit,
|
|
17734
17954
|
readOnly,
|
|
17735
|
-
editorInputClassName
|
|
17955
|
+
editorInputClassName,
|
|
17956
|
+
children,
|
|
17957
|
+
variables,
|
|
17958
|
+
customControls
|
|
17736
17959
|
}) => {
|
|
17737
17960
|
const editorContainerRef = useRef7(null);
|
|
17738
17961
|
const [editor] = useLexicalComposerContext5();
|
|
@@ -17753,40 +17976,50 @@ var RichText = ({
|
|
|
17753
17976
|
removeUpdateListener();
|
|
17754
17977
|
};
|
|
17755
17978
|
}, []);
|
|
17756
|
-
return /* @__PURE__ */
|
|
17757
|
-
readOnly ? null : /* @__PURE__ */
|
|
17758
|
-
/* @__PURE__ */
|
|
17759
|
-
/* @__PURE__ */
|
|
17979
|
+
return /* @__PURE__ */ jsxs67(Fragment16, { children: [
|
|
17980
|
+
readOnly ? null : /* @__PURE__ */ jsx99(RichTextToolbar_default, { config, customControls }),
|
|
17981
|
+
/* @__PURE__ */ jsxs67("div", { css: editorContainer, ref: editorContainerRef, children: [
|
|
17982
|
+
/* @__PURE__ */ jsx99(
|
|
17760
17983
|
RichTextPlugin,
|
|
17761
17984
|
{
|
|
17762
|
-
contentEditable: /* @__PURE__ */
|
|
17763
|
-
placeholder: /* @__PURE__ */
|
|
17985
|
+
contentEditable: /* @__PURE__ */ jsx99(ContentEditable, { css: editorInput, className: editorInputClassName }),
|
|
17986
|
+
placeholder: /* @__PURE__ */ jsx99("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
|
|
17764
17987
|
ErrorBoundary: LexicalErrorBoundary
|
|
17765
17988
|
}
|
|
17766
17989
|
),
|
|
17767
|
-
/* @__PURE__ */
|
|
17768
|
-
readOnly ? null : /* @__PURE__ */
|
|
17769
|
-
/* @__PURE__ */
|
|
17770
|
-
|
|
17771
|
-
|
|
17772
|
-
|
|
17990
|
+
/* @__PURE__ */ jsx99(ListPlugin, {}),
|
|
17991
|
+
readOnly ? null : /* @__PURE__ */ jsx99(HistoryPlugin, {}),
|
|
17992
|
+
/* @__PURE__ */ jsx99(
|
|
17993
|
+
LinkNodePlugin,
|
|
17994
|
+
{
|
|
17995
|
+
onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve(),
|
|
17996
|
+
getBoundPath: (variables == null ? void 0 : variables.bindVariables) ? (path) => {
|
|
17997
|
+
var _a, _b;
|
|
17998
|
+
return (_b = (_a = variables.bindVariables) == null ? void 0 : _a.call(variables, path)) != null ? _b : path;
|
|
17999
|
+
} : void 0
|
|
18000
|
+
}
|
|
18001
|
+
),
|
|
18002
|
+
/* @__PURE__ */ jsx99(ListIndentPlugin, { maxDepth: 4 }),
|
|
18003
|
+
/* @__PURE__ */ jsx99(DisableStylesPlugin, {}),
|
|
18004
|
+
/* @__PURE__ */ jsx99(MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
|
|
18005
|
+
/* @__PURE__ */ jsx99(Fragment16, { children })
|
|
17773
18006
|
] })
|
|
17774
18007
|
] });
|
|
17775
18008
|
};
|
|
17776
18009
|
|
|
17777
18010
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
17778
18011
|
import { forwardRef as forwardRef14 } from "react";
|
|
17779
|
-
import { jsx as
|
|
18012
|
+
import { jsx as jsx100, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
|
|
17780
18013
|
var ParameterSelect = forwardRef14(
|
|
17781
18014
|
({ defaultOption, options, ...props }, ref) => {
|
|
17782
18015
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
17783
|
-
return /* @__PURE__ */
|
|
18016
|
+
return /* @__PURE__ */ jsx100(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx100(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
17784
18017
|
}
|
|
17785
18018
|
);
|
|
17786
18019
|
var ParameterSelectInner = forwardRef14(
|
|
17787
18020
|
({ defaultOption, options, ...props }, ref) => {
|
|
17788
18021
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
17789
|
-
return /* @__PURE__ */
|
|
18022
|
+
return /* @__PURE__ */ jsxs68(
|
|
17790
18023
|
"select",
|
|
17791
18024
|
{
|
|
17792
18025
|
css: [input2, selectInput],
|
|
@@ -17795,10 +18028,10 @@ var ParameterSelectInner = forwardRef14(
|
|
|
17795
18028
|
ref,
|
|
17796
18029
|
...props,
|
|
17797
18030
|
children: [
|
|
17798
|
-
defaultOption ? /* @__PURE__ */
|
|
18031
|
+
defaultOption ? /* @__PURE__ */ jsx100("option", { value: "", children: defaultOption }) : null,
|
|
17799
18032
|
options.map((option) => {
|
|
17800
18033
|
var _a;
|
|
17801
|
-
return /* @__PURE__ */
|
|
18034
|
+
return /* @__PURE__ */ jsx100("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
17802
18035
|
})
|
|
17803
18036
|
]
|
|
17804
18037
|
}
|
|
@@ -17808,14 +18041,14 @@ var ParameterSelectInner = forwardRef14(
|
|
|
17808
18041
|
|
|
17809
18042
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
17810
18043
|
import { forwardRef as forwardRef15 } from "react";
|
|
17811
|
-
import { jsx as
|
|
18044
|
+
import { jsx as jsx101 } from "@emotion/react/jsx-runtime";
|
|
17812
18045
|
var ParameterTextarea = forwardRef15((props, ref) => {
|
|
17813
18046
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
17814
|
-
return /* @__PURE__ */
|
|
18047
|
+
return /* @__PURE__ */ jsx101(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx101(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
17815
18048
|
});
|
|
17816
18049
|
var ParameterTextareaInner = forwardRef15(({ ...props }, ref) => {
|
|
17817
18050
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
17818
|
-
return /* @__PURE__ */
|
|
18051
|
+
return /* @__PURE__ */ jsx101(
|
|
17819
18052
|
"textarea",
|
|
17820
18053
|
{
|
|
17821
18054
|
css: [input2, textarea2],
|
|
@@ -17829,17 +18062,17 @@ var ParameterTextareaInner = forwardRef15(({ ...props }, ref) => {
|
|
|
17829
18062
|
|
|
17830
18063
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
17831
18064
|
import { forwardRef as forwardRef16 } from "react";
|
|
17832
|
-
import { jsx as
|
|
18065
|
+
import { jsx as jsx102, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
|
|
17833
18066
|
var ParameterToggle = forwardRef16((props, ref) => {
|
|
17834
18067
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
17835
|
-
return /* @__PURE__ */
|
|
18068
|
+
return /* @__PURE__ */ jsx102(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx102(ParameterToggleInner, { ref, ...innerProps }) });
|
|
17836
18069
|
});
|
|
17837
18070
|
var ParameterToggleInner = forwardRef16(
|
|
17838
18071
|
({ ...props }, ref) => {
|
|
17839
18072
|
const { id, label } = useParameterShell();
|
|
17840
|
-
return /* @__PURE__ */
|
|
17841
|
-
/* @__PURE__ */
|
|
17842
|
-
/* @__PURE__ */
|
|
18073
|
+
return /* @__PURE__ */ jsxs69("label", { css: inputToggleLabel2, children: [
|
|
18074
|
+
/* @__PURE__ */ jsx102("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
18075
|
+
/* @__PURE__ */ jsx102("span", { css: inlineLabel2, children: label })
|
|
17843
18076
|
] });
|
|
17844
18077
|
}
|
|
17845
18078
|
);
|
|
@@ -17850,7 +18083,7 @@ import {
|
|
|
17850
18083
|
PopoverDisclosure,
|
|
17851
18084
|
usePopoverState
|
|
17852
18085
|
} from "reakit/Popover";
|
|
17853
|
-
import { Fragment as
|
|
18086
|
+
import { Fragment as Fragment17, jsx as jsx103, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
17854
18087
|
var Popover2 = ({
|
|
17855
18088
|
iconColor = "action",
|
|
17856
18089
|
icon = "info",
|
|
@@ -17863,38 +18096,38 @@ var Popover2 = ({
|
|
|
17863
18096
|
...otherProps
|
|
17864
18097
|
}) => {
|
|
17865
18098
|
const popover = usePopoverState({ placement });
|
|
17866
|
-
return /* @__PURE__ */
|
|
17867
|
-
/* @__PURE__ */
|
|
17868
|
-
/* @__PURE__ */
|
|
17869
|
-
/* @__PURE__ */
|
|
18099
|
+
return /* @__PURE__ */ jsxs70(Fragment17, { children: [
|
|
18100
|
+
/* @__PURE__ */ jsxs70(PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, "data-testid": testId, children: [
|
|
18101
|
+
/* @__PURE__ */ jsx103(Icon, { icon, iconColor, size: iconSize }),
|
|
18102
|
+
/* @__PURE__ */ jsx103("span", { hidden: true, children: buttonText })
|
|
17870
18103
|
] }),
|
|
17871
|
-
/* @__PURE__ */
|
|
18104
|
+
/* @__PURE__ */ jsx103(ReakitPopover, { css: Popover, ...otherProps, ...popover, role: "tooltip", "aria-label": ariaLabel, children })
|
|
17872
18105
|
] });
|
|
17873
18106
|
};
|
|
17874
18107
|
|
|
17875
18108
|
// src/components/ProgressList/ProgressList.tsx
|
|
17876
|
-
import { css as
|
|
17877
|
-
import { useMemo as
|
|
18109
|
+
import { css as css81 } from "@emotion/react";
|
|
18110
|
+
import { useMemo as useMemo4 } from "react";
|
|
17878
18111
|
import { CgCheckO as CgCheckO2, CgRadioCheck, CgRecord } from "react-icons/cg";
|
|
17879
18112
|
|
|
17880
18113
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
17881
|
-
import { css as
|
|
17882
|
-
var progressListStyles =
|
|
18114
|
+
import { css as css80 } from "@emotion/react";
|
|
18115
|
+
var progressListStyles = css80`
|
|
17883
18116
|
display: flex;
|
|
17884
18117
|
flex-direction: column;
|
|
17885
18118
|
gap: var(--spacing-sm);
|
|
17886
18119
|
list-style-type: none;
|
|
17887
18120
|
`;
|
|
17888
|
-
var progressListItemStyles =
|
|
18121
|
+
var progressListItemStyles = css80`
|
|
17889
18122
|
display: flex;
|
|
17890
18123
|
gap: var(--spacing-base);
|
|
17891
18124
|
align-items: center;
|
|
17892
18125
|
`;
|
|
17893
18126
|
|
|
17894
18127
|
// src/components/ProgressList/ProgressList.tsx
|
|
17895
|
-
import { jsx as
|
|
18128
|
+
import { jsx as jsx104, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
|
|
17896
18129
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
17897
|
-
const itemsWithStatus =
|
|
18130
|
+
const itemsWithStatus = useMemo4(() => {
|
|
17898
18131
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
17899
18132
|
return items.map((item, index) => {
|
|
17900
18133
|
let status = "queued";
|
|
@@ -17906,8 +18139,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
17906
18139
|
return { ...item, status };
|
|
17907
18140
|
});
|
|
17908
18141
|
}, [items, inProgressId]);
|
|
17909
|
-
return /* @__PURE__ */
|
|
17910
|
-
return /* @__PURE__ */
|
|
18142
|
+
return /* @__PURE__ */ jsx104("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
18143
|
+
return /* @__PURE__ */ jsx104(
|
|
17911
18144
|
ProgressListItem,
|
|
17912
18145
|
{
|
|
17913
18146
|
status,
|
|
@@ -17927,7 +18160,7 @@ var ProgressListItem = ({
|
|
|
17927
18160
|
errorLevel = "danger",
|
|
17928
18161
|
autoEllipsis = false
|
|
17929
18162
|
}) => {
|
|
17930
|
-
const Icon2 =
|
|
18163
|
+
const Icon2 = useMemo4(() => {
|
|
17931
18164
|
if (error) {
|
|
17932
18165
|
return warningIcon;
|
|
17933
18166
|
}
|
|
@@ -17938,14 +18171,14 @@ var ProgressListItem = ({
|
|
|
17938
18171
|
};
|
|
17939
18172
|
return iconPerStatus[status];
|
|
17940
18173
|
}, [status, error]);
|
|
17941
|
-
const statusStyles =
|
|
18174
|
+
const statusStyles = useMemo4(() => {
|
|
17942
18175
|
if (error) {
|
|
17943
|
-
return errorLevel === "caution" ?
|
|
18176
|
+
return errorLevel === "caution" ? css81`
|
|
17944
18177
|
color: rgb(161, 98, 7);
|
|
17945
18178
|
& svg {
|
|
17946
18179
|
color: rgb(250, 204, 21);
|
|
17947
18180
|
}
|
|
17948
|
-
` :
|
|
18181
|
+
` : css81`
|
|
17949
18182
|
color: rgb(185, 28, 28);
|
|
17950
18183
|
& svg {
|
|
17951
18184
|
color: var(--brand-primary-2);
|
|
@@ -17953,35 +18186,35 @@ var ProgressListItem = ({
|
|
|
17953
18186
|
`;
|
|
17954
18187
|
}
|
|
17955
18188
|
const colorPerStatus = {
|
|
17956
|
-
completed:
|
|
18189
|
+
completed: css81`
|
|
17957
18190
|
opacity: 0.75;
|
|
17958
18191
|
`,
|
|
17959
|
-
inProgress:
|
|
18192
|
+
inProgress: css81`
|
|
17960
18193
|
-webkit-text-stroke-width: thin;
|
|
17961
18194
|
`,
|
|
17962
|
-
queued:
|
|
18195
|
+
queued: css81`
|
|
17963
18196
|
opacity: 0.5;
|
|
17964
18197
|
`
|
|
17965
18198
|
};
|
|
17966
18199
|
return colorPerStatus[status];
|
|
17967
18200
|
}, [status, error, errorLevel]);
|
|
17968
|
-
return /* @__PURE__ */
|
|
17969
|
-
/* @__PURE__ */
|
|
17970
|
-
/* @__PURE__ */
|
|
18201
|
+
return /* @__PURE__ */ jsxs71("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
18202
|
+
/* @__PURE__ */ jsx104(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx104("div", { children: /* @__PURE__ */ jsx104(Icon2, { size: 20 }) }) }),
|
|
18203
|
+
/* @__PURE__ */ jsxs71("div", { children: [
|
|
17971
18204
|
children,
|
|
17972
|
-
/* @__PURE__ */
|
|
18205
|
+
/* @__PURE__ */ jsx104("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
17973
18206
|
] })
|
|
17974
18207
|
] });
|
|
17975
18208
|
};
|
|
17976
18209
|
|
|
17977
18210
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
17978
|
-
import { css as
|
|
17979
|
-
import { useCallback as useCallback6, useMemo as
|
|
18211
|
+
import { css as css83 } from "@emotion/react";
|
|
18212
|
+
import { useCallback as useCallback6, useMemo as useMemo5 } from "react";
|
|
17980
18213
|
import { CgCheck as CgCheck4 } from "react-icons/cg";
|
|
17981
18214
|
|
|
17982
18215
|
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
17983
|
-
import { css as
|
|
17984
|
-
var segmentedControlStyles =
|
|
18216
|
+
import { css as css82 } from "@emotion/react";
|
|
18217
|
+
var segmentedControlStyles = css82`
|
|
17985
18218
|
--segmented-control-rounded-value: var(--rounded-base);
|
|
17986
18219
|
--segmented-control-border-width: 1px;
|
|
17987
18220
|
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
@@ -18000,14 +18233,14 @@ var segmentedControlStyles = css81`
|
|
|
18000
18233
|
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
18001
18234
|
font-size: var(--fs-xs);
|
|
18002
18235
|
`;
|
|
18003
|
-
var segmentedControlVerticalStyles =
|
|
18236
|
+
var segmentedControlVerticalStyles = css82`
|
|
18004
18237
|
flex-direction: column;
|
|
18005
18238
|
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
18006
18239
|
var(--segmented-control-rounded-value) 0 0;
|
|
18007
18240
|
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
18008
18241
|
var(--segmented-control-rounded-value);
|
|
18009
18242
|
`;
|
|
18010
|
-
var segmentedControlItemStyles =
|
|
18243
|
+
var segmentedControlItemStyles = css82`
|
|
18011
18244
|
&:first-of-type label {
|
|
18012
18245
|
border-radius: var(--segmented-control-first-border-radius);
|
|
18013
18246
|
}
|
|
@@ -18015,10 +18248,10 @@ var segmentedControlItemStyles = css81`
|
|
|
18015
18248
|
border-radius: var(--segmented-control-last-border-radius);
|
|
18016
18249
|
}
|
|
18017
18250
|
`;
|
|
18018
|
-
var segmentedControlInputStyles =
|
|
18251
|
+
var segmentedControlInputStyles = css82`
|
|
18019
18252
|
${accessibleHidden}
|
|
18020
18253
|
`;
|
|
18021
|
-
var segmentedControlLabelStyles = (checked, disabled) =>
|
|
18254
|
+
var segmentedControlLabelStyles = (checked, disabled) => css82`
|
|
18022
18255
|
position: relative;
|
|
18023
18256
|
display: flex;
|
|
18024
18257
|
align-items: center;
|
|
@@ -18085,23 +18318,23 @@ var segmentedControlLabelStyles = (checked, disabled) => css81`
|
|
|
18085
18318
|
`}
|
|
18086
18319
|
}
|
|
18087
18320
|
`;
|
|
18088
|
-
var segmentedControlLabelIconOnlyStyles =
|
|
18321
|
+
var segmentedControlLabelIconOnlyStyles = css82`
|
|
18089
18322
|
padding-inline: 0.5em;
|
|
18090
18323
|
`;
|
|
18091
|
-
var segmentedControlLabelCheckStyles =
|
|
18324
|
+
var segmentedControlLabelCheckStyles = css82`
|
|
18092
18325
|
opacity: 0.5;
|
|
18093
18326
|
`;
|
|
18094
|
-
var segmentedControlLabelContentStyles =
|
|
18327
|
+
var segmentedControlLabelContentStyles = css82`
|
|
18095
18328
|
display: flex;
|
|
18096
18329
|
align-items: center;
|
|
18097
18330
|
justify-content: center;
|
|
18098
18331
|
gap: var(--spacing-sm);
|
|
18099
18332
|
height: 100%;
|
|
18100
18333
|
`;
|
|
18101
|
-
var segmentedControlLabelTextStyles =
|
|
18334
|
+
var segmentedControlLabelTextStyles = css82``;
|
|
18102
18335
|
|
|
18103
18336
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
18104
|
-
import { jsx as
|
|
18337
|
+
import { jsx as jsx105, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
|
|
18105
18338
|
var SegmentedControl = ({
|
|
18106
18339
|
name,
|
|
18107
18340
|
options,
|
|
@@ -18121,18 +18354,18 @@ var SegmentedControl = ({
|
|
|
18121
18354
|
},
|
|
18122
18355
|
[options, onChange]
|
|
18123
18356
|
);
|
|
18124
|
-
const sizeStyles =
|
|
18357
|
+
const sizeStyles = useMemo5(() => {
|
|
18125
18358
|
const map = {
|
|
18126
|
-
sm:
|
|
18127
|
-
md:
|
|
18128
|
-
lg:
|
|
18359
|
+
sm: css83({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
18360
|
+
md: css83({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
18361
|
+
lg: css83({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
|
|
18129
18362
|
};
|
|
18130
18363
|
return map[size];
|
|
18131
18364
|
}, [size]);
|
|
18132
|
-
const isIconOnly =
|
|
18365
|
+
const isIconOnly = useMemo5(() => {
|
|
18133
18366
|
return options.every((option) => option.icon && !option.label);
|
|
18134
18367
|
}, [options]);
|
|
18135
|
-
return /* @__PURE__ */
|
|
18368
|
+
return /* @__PURE__ */ jsx105(
|
|
18136
18369
|
"div",
|
|
18137
18370
|
{
|
|
18138
18371
|
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
@@ -18140,11 +18373,11 @@ var SegmentedControl = ({
|
|
|
18140
18373
|
children: options.map((option, index) => {
|
|
18141
18374
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
18142
18375
|
const isDisabled = disabled || option.disabled;
|
|
18143
|
-
return /* @__PURE__ */
|
|
18376
|
+
return /* @__PURE__ */ jsx105(
|
|
18144
18377
|
Tooltip,
|
|
18145
18378
|
{
|
|
18146
18379
|
title: isDisabled || !option.tooltip ? "" : option.tooltip,
|
|
18147
|
-
children: /* @__PURE__ */
|
|
18380
|
+
children: /* @__PURE__ */ jsx105("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ jsxs72(
|
|
18148
18381
|
"label",
|
|
18149
18382
|
{
|
|
18150
18383
|
css: [
|
|
@@ -18153,7 +18386,7 @@ var SegmentedControl = ({
|
|
|
18153
18386
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
18154
18387
|
],
|
|
18155
18388
|
children: [
|
|
18156
|
-
/* @__PURE__ */
|
|
18389
|
+
/* @__PURE__ */ jsx105(
|
|
18157
18390
|
"input",
|
|
18158
18391
|
{
|
|
18159
18392
|
css: segmentedControlInputStyles,
|
|
@@ -18165,10 +18398,10 @@ var SegmentedControl = ({
|
|
|
18165
18398
|
disabled: isDisabled
|
|
18166
18399
|
}
|
|
18167
18400
|
),
|
|
18168
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */
|
|
18169
|
-
/* @__PURE__ */
|
|
18170
|
-
!option.icon ? null : /* @__PURE__ */
|
|
18171
|
-
!text ? null : /* @__PURE__ */
|
|
18401
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx105(CgCheck4, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
18402
|
+
/* @__PURE__ */ jsxs72("span", { css: segmentedControlLabelContentStyles, children: [
|
|
18403
|
+
!option.icon ? null : /* @__PURE__ */ jsx105(option.icon, { size: "1.5em" }),
|
|
18404
|
+
!text ? null : /* @__PURE__ */ jsx105("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
18172
18405
|
] })
|
|
18173
18406
|
]
|
|
18174
18407
|
}
|
|
@@ -18182,18 +18415,18 @@ var SegmentedControl = ({
|
|
|
18182
18415
|
};
|
|
18183
18416
|
|
|
18184
18417
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
18185
|
-
import { css as
|
|
18418
|
+
import { css as css84, keyframes as keyframes4 } from "@emotion/react";
|
|
18186
18419
|
var lightFadingOut = keyframes4`
|
|
18187
18420
|
from { opacity: 0.1; }
|
|
18188
18421
|
to { opacity: 0.025; }
|
|
18189
18422
|
`;
|
|
18190
|
-
var skeletonStyles =
|
|
18423
|
+
var skeletonStyles = css84`
|
|
18191
18424
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
18192
18425
|
background-color: var(--gray-900);
|
|
18193
18426
|
`;
|
|
18194
18427
|
|
|
18195
18428
|
// src/components/Skeleton/Skeleton.tsx
|
|
18196
|
-
import { jsx as
|
|
18429
|
+
import { jsx as jsx106 } from "@emotion/react/jsx-runtime";
|
|
18197
18430
|
var Skeleton = ({
|
|
18198
18431
|
width = "100%",
|
|
18199
18432
|
height = "1.25rem",
|
|
@@ -18201,7 +18434,7 @@ var Skeleton = ({
|
|
|
18201
18434
|
circle = false,
|
|
18202
18435
|
children,
|
|
18203
18436
|
...otherProps
|
|
18204
|
-
}) => /* @__PURE__ */
|
|
18437
|
+
}) => /* @__PURE__ */ jsx106(
|
|
18205
18438
|
"div",
|
|
18206
18439
|
{
|
|
18207
18440
|
css: [
|
|
@@ -18224,8 +18457,8 @@ var Skeleton = ({
|
|
|
18224
18457
|
import * as React23 from "react";
|
|
18225
18458
|
|
|
18226
18459
|
// src/components/Switch/Switch.styles.ts
|
|
18227
|
-
import { css as
|
|
18228
|
-
var SwitchInputContainer =
|
|
18460
|
+
import { css as css85 } from "@emotion/react";
|
|
18461
|
+
var SwitchInputContainer = css85`
|
|
18229
18462
|
cursor: pointer;
|
|
18230
18463
|
display: inline-block;
|
|
18231
18464
|
position: relative;
|
|
@@ -18234,7 +18467,7 @@ var SwitchInputContainer = css84`
|
|
|
18234
18467
|
vertical-align: middle;
|
|
18235
18468
|
user-select: none;
|
|
18236
18469
|
`;
|
|
18237
|
-
var SwitchInput =
|
|
18470
|
+
var SwitchInput = css85`
|
|
18238
18471
|
appearance: none;
|
|
18239
18472
|
border-radius: var(--rounded-full);
|
|
18240
18473
|
background-color: var(--white);
|
|
@@ -18272,7 +18505,7 @@ var SwitchInput = css84`
|
|
|
18272
18505
|
cursor: not-allowed;
|
|
18273
18506
|
}
|
|
18274
18507
|
`;
|
|
18275
|
-
var SwitchInputDisabled =
|
|
18508
|
+
var SwitchInputDisabled = css85`
|
|
18276
18509
|
opacity: var(--opacity-50);
|
|
18277
18510
|
cursor: not-allowed;
|
|
18278
18511
|
|
|
@@ -18280,7 +18513,7 @@ var SwitchInputDisabled = css84`
|
|
|
18280
18513
|
cursor: not-allowed;
|
|
18281
18514
|
}
|
|
18282
18515
|
`;
|
|
18283
|
-
var SwitchInputLabel =
|
|
18516
|
+
var SwitchInputLabel = css85`
|
|
18284
18517
|
align-items: center;
|
|
18285
18518
|
color: var(--brand-secondary-1);
|
|
18286
18519
|
display: inline-flex;
|
|
@@ -18302,26 +18535,26 @@ var SwitchInputLabel = css84`
|
|
|
18302
18535
|
top: 0;
|
|
18303
18536
|
}
|
|
18304
18537
|
`;
|
|
18305
|
-
var SwitchText =
|
|
18538
|
+
var SwitchText = css85`
|
|
18306
18539
|
color: var(--gray-500);
|
|
18307
18540
|
font-size: var(--fs-sm);
|
|
18308
18541
|
padding-inline: var(--spacing-2xl) 0;
|
|
18309
18542
|
`;
|
|
18310
18543
|
|
|
18311
18544
|
// src/components/Switch/Switch.tsx
|
|
18312
|
-
import { Fragment as
|
|
18545
|
+
import { Fragment as Fragment18, jsx as jsx107, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
|
|
18313
18546
|
var Switch = React23.forwardRef(
|
|
18314
18547
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
18315
18548
|
let additionalText = infoText;
|
|
18316
18549
|
if (infoText && toggleText) {
|
|
18317
18550
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
18318
18551
|
}
|
|
18319
|
-
return /* @__PURE__ */
|
|
18320
|
-
/* @__PURE__ */
|
|
18321
|
-
/* @__PURE__ */
|
|
18322
|
-
/* @__PURE__ */
|
|
18552
|
+
return /* @__PURE__ */ jsxs73(Fragment18, { children: [
|
|
18553
|
+
/* @__PURE__ */ jsxs73("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
18554
|
+
/* @__PURE__ */ jsx107("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
18555
|
+
/* @__PURE__ */ jsx107("span", { css: SwitchInputLabel, children: label })
|
|
18323
18556
|
] }),
|
|
18324
|
-
additionalText ? /* @__PURE__ */
|
|
18557
|
+
additionalText ? /* @__PURE__ */ jsx107("p", { css: SwitchText, children: additionalText }) : null,
|
|
18325
18558
|
children
|
|
18326
18559
|
] });
|
|
18327
18560
|
}
|
|
@@ -18331,8 +18564,8 @@ var Switch = React23.forwardRef(
|
|
|
18331
18564
|
import * as React24 from "react";
|
|
18332
18565
|
|
|
18333
18566
|
// src/components/Table/Table.styles.ts
|
|
18334
|
-
import { css as
|
|
18335
|
-
var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) =>
|
|
18567
|
+
import { css as css86 } from "@emotion/react";
|
|
18568
|
+
var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css86`
|
|
18336
18569
|
border-bottom: 1px solid var(--gray-400);
|
|
18337
18570
|
border-collapse: collapse;
|
|
18338
18571
|
min-width: 100%;
|
|
@@ -18343,60 +18576,60 @@ var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css85
|
|
|
18343
18576
|
padding: ${cellPadding};
|
|
18344
18577
|
}
|
|
18345
18578
|
`;
|
|
18346
|
-
var tableHead =
|
|
18579
|
+
var tableHead = css86`
|
|
18347
18580
|
background: var(--gray-100);
|
|
18348
18581
|
color: var(--brand-secondary-1);
|
|
18349
18582
|
text-align: left;
|
|
18350
18583
|
`;
|
|
18351
|
-
var tableRow =
|
|
18584
|
+
var tableRow = css86`
|
|
18352
18585
|
border-bottom: 1px solid var(--gray-200);
|
|
18353
18586
|
`;
|
|
18354
|
-
var tableCellHead =
|
|
18587
|
+
var tableCellHead = css86`
|
|
18355
18588
|
font-size: var(--fs-sm);
|
|
18356
18589
|
text-transform: uppercase;
|
|
18357
18590
|
font-weight: var(--fw-bold);
|
|
18358
18591
|
`;
|
|
18359
18592
|
|
|
18360
18593
|
// src/components/Table/Table.tsx
|
|
18361
|
-
import { jsx as
|
|
18594
|
+
import { jsx as jsx108 } from "@emotion/react/jsx-runtime";
|
|
18362
18595
|
var Table = React24.forwardRef(
|
|
18363
18596
|
({ children, cellPadding, ...otherProps }, ref) => {
|
|
18364
|
-
return /* @__PURE__ */
|
|
18597
|
+
return /* @__PURE__ */ jsx108("table", { ref, css: table({ cellPadding }), ...otherProps, children });
|
|
18365
18598
|
}
|
|
18366
18599
|
);
|
|
18367
18600
|
var TableHead = React24.forwardRef(
|
|
18368
18601
|
({ children, ...otherProps }, ref) => {
|
|
18369
|
-
return /* @__PURE__ */
|
|
18602
|
+
return /* @__PURE__ */ jsx108("thead", { ref, css: tableHead, ...otherProps, children });
|
|
18370
18603
|
}
|
|
18371
18604
|
);
|
|
18372
18605
|
var TableBody = React24.forwardRef(
|
|
18373
18606
|
({ children, ...otherProps }, ref) => {
|
|
18374
|
-
return /* @__PURE__ */
|
|
18607
|
+
return /* @__PURE__ */ jsx108("tbody", { ref, ...otherProps, children });
|
|
18375
18608
|
}
|
|
18376
18609
|
);
|
|
18377
18610
|
var TableFoot = React24.forwardRef(
|
|
18378
18611
|
({ children, ...otherProps }, ref) => {
|
|
18379
|
-
return /* @__PURE__ */
|
|
18612
|
+
return /* @__PURE__ */ jsx108("tfoot", { ref, ...otherProps, children });
|
|
18380
18613
|
}
|
|
18381
18614
|
);
|
|
18382
18615
|
var TableRow = React24.forwardRef(
|
|
18383
18616
|
({ children, ...otherProps }, ref) => {
|
|
18384
|
-
return /* @__PURE__ */
|
|
18617
|
+
return /* @__PURE__ */ jsx108("tr", { ref, css: tableRow, ...otherProps, children });
|
|
18385
18618
|
}
|
|
18386
18619
|
);
|
|
18387
18620
|
var TableCellHead = React24.forwardRef(
|
|
18388
18621
|
({ children, ...otherProps }, ref) => {
|
|
18389
|
-
return /* @__PURE__ */
|
|
18622
|
+
return /* @__PURE__ */ jsx108("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
18390
18623
|
}
|
|
18391
18624
|
);
|
|
18392
18625
|
var TableCellData = React24.forwardRef(
|
|
18393
18626
|
({ children, ...otherProps }, ref) => {
|
|
18394
|
-
return /* @__PURE__ */
|
|
18627
|
+
return /* @__PURE__ */ jsx108("td", { ref, ...otherProps, children });
|
|
18395
18628
|
}
|
|
18396
18629
|
);
|
|
18397
18630
|
|
|
18398
18631
|
// src/components/Tabs/Tabs.tsx
|
|
18399
|
-
import { createContext as createContext6, useContext as useContext7, useEffect as useEffect15, useMemo as
|
|
18632
|
+
import { createContext as createContext6, useContext as useContext7, useEffect as useEffect15, useMemo as useMemo6 } from "react";
|
|
18400
18633
|
import {
|
|
18401
18634
|
Tab as ReakitTab,
|
|
18402
18635
|
TabList as ReakitTabList,
|
|
@@ -18405,8 +18638,8 @@ import {
|
|
|
18405
18638
|
} from "reakit/Tab";
|
|
18406
18639
|
|
|
18407
18640
|
// src/components/Tabs/Tabs.styles.ts
|
|
18408
|
-
import { css as
|
|
18409
|
-
var tabButtonStyles =
|
|
18641
|
+
import { css as css87 } from "@emotion/react";
|
|
18642
|
+
var tabButtonStyles = css87`
|
|
18410
18643
|
align-items: center;
|
|
18411
18644
|
border: 0;
|
|
18412
18645
|
height: 2.5rem;
|
|
@@ -18423,14 +18656,14 @@ var tabButtonStyles = css86`
|
|
|
18423
18656
|
box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
|
|
18424
18657
|
}
|
|
18425
18658
|
`;
|
|
18426
|
-
var tabButtonGroupStyles =
|
|
18659
|
+
var tabButtonGroupStyles = css87`
|
|
18427
18660
|
display: flex;
|
|
18428
18661
|
gap: var(--spacing-base);
|
|
18429
18662
|
border-bottom: 1px solid var(--gray-300);
|
|
18430
18663
|
`;
|
|
18431
18664
|
|
|
18432
18665
|
// src/components/Tabs/Tabs.tsx
|
|
18433
|
-
import { jsx as
|
|
18666
|
+
import { jsx as jsx109 } from "@emotion/react/jsx-runtime";
|
|
18434
18667
|
var CurrentTabContext = createContext6(null);
|
|
18435
18668
|
var useCurrentTab = () => {
|
|
18436
18669
|
const context = useContext7(CurrentTabContext);
|
|
@@ -18440,7 +18673,7 @@ var useCurrentTab = () => {
|
|
|
18440
18673
|
return context;
|
|
18441
18674
|
};
|
|
18442
18675
|
var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...props }) => {
|
|
18443
|
-
const selected =
|
|
18676
|
+
const selected = useMemo6(() => {
|
|
18444
18677
|
if (selectedId)
|
|
18445
18678
|
return selectedId;
|
|
18446
18679
|
return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
|
|
@@ -18459,24 +18692,24 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
18459
18692
|
tab.setSelectedId(selected);
|
|
18460
18693
|
}
|
|
18461
18694
|
}, [selected]);
|
|
18462
|
-
return /* @__PURE__ */
|
|
18695
|
+
return /* @__PURE__ */ jsx109(CurrentTabContext.Provider, { value: tab, children });
|
|
18463
18696
|
};
|
|
18464
18697
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
18465
18698
|
const currentTab = useCurrentTab();
|
|
18466
|
-
return /* @__PURE__ */
|
|
18699
|
+
return /* @__PURE__ */ jsx109(ReakitTabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
18467
18700
|
};
|
|
18468
18701
|
var TabButton = ({ children, id, ...props }) => {
|
|
18469
18702
|
const currentTab = useCurrentTab();
|
|
18470
|
-
return /* @__PURE__ */
|
|
18703
|
+
return /* @__PURE__ */ jsx109(ReakitTab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
18471
18704
|
};
|
|
18472
18705
|
var TabContent = ({ children, ...props }) => {
|
|
18473
18706
|
const currentTab = useCurrentTab();
|
|
18474
|
-
return /* @__PURE__ */
|
|
18707
|
+
return /* @__PURE__ */ jsx109(ReakitTabPanel, { ...props, ...currentTab, children });
|
|
18475
18708
|
};
|
|
18476
18709
|
|
|
18477
18710
|
// src/components/Validation/StatusBullet.styles.ts
|
|
18478
|
-
import { css as
|
|
18479
|
-
var StatusBulletContainer =
|
|
18711
|
+
import { css as css88 } from "@emotion/react";
|
|
18712
|
+
var StatusBulletContainer = css88`
|
|
18480
18713
|
align-items: center;
|
|
18481
18714
|
align-self: center;
|
|
18482
18715
|
color: var(--gray-500);
|
|
@@ -18493,33 +18726,33 @@ var StatusBulletContainer = css87`
|
|
|
18493
18726
|
display: block;
|
|
18494
18727
|
}
|
|
18495
18728
|
`;
|
|
18496
|
-
var StatusBulletBase =
|
|
18729
|
+
var StatusBulletBase = css88`
|
|
18497
18730
|
font-size: var(--fs-sm);
|
|
18498
18731
|
&:before {
|
|
18499
18732
|
width: var(--fs-xs);
|
|
18500
18733
|
height: var(--fs-xs);
|
|
18501
18734
|
}
|
|
18502
18735
|
`;
|
|
18503
|
-
var StatusBulletSmall =
|
|
18736
|
+
var StatusBulletSmall = css88`
|
|
18504
18737
|
font-size: var(--fs-xs);
|
|
18505
18738
|
&:before {
|
|
18506
18739
|
width: var(--fs-xxs);
|
|
18507
18740
|
height: var(--fs-xxs);
|
|
18508
18741
|
}
|
|
18509
18742
|
`;
|
|
18510
|
-
var StatusDraft =
|
|
18743
|
+
var StatusDraft = css88`
|
|
18511
18744
|
&:before {
|
|
18512
18745
|
background: var(--white);
|
|
18513
18746
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
18514
18747
|
}
|
|
18515
18748
|
`;
|
|
18516
|
-
var StatusModified =
|
|
18749
|
+
var StatusModified = css88`
|
|
18517
18750
|
&:before {
|
|
18518
18751
|
background: linear-gradient(to right, var(--white) 50%, var(--primary-action-default) 50% 100%);
|
|
18519
18752
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
18520
18753
|
}
|
|
18521
18754
|
`;
|
|
18522
|
-
var StatusError =
|
|
18755
|
+
var StatusError = css88`
|
|
18523
18756
|
color: var(--error);
|
|
18524
18757
|
&:before {
|
|
18525
18758
|
/* TODO: replace this with an svg icon */
|
|
@@ -18532,19 +18765,19 @@ var StatusError = css87`
|
|
|
18532
18765
|
);
|
|
18533
18766
|
}
|
|
18534
18767
|
`;
|
|
18535
|
-
var StatusPublished =
|
|
18768
|
+
var StatusPublished = css88`
|
|
18536
18769
|
&:before {
|
|
18537
18770
|
background: var(--primary-action-default);
|
|
18538
18771
|
}
|
|
18539
18772
|
`;
|
|
18540
|
-
var StatusOrphan =
|
|
18773
|
+
var StatusOrphan = css88`
|
|
18541
18774
|
&:before {
|
|
18542
18775
|
background: var(--brand-secondary-5);
|
|
18543
18776
|
}
|
|
18544
18777
|
`;
|
|
18545
18778
|
|
|
18546
18779
|
// src/components/Validation/StatusBullet.tsx
|
|
18547
|
-
import { jsx as
|
|
18780
|
+
import { jsx as jsx110 } from "@emotion/react/jsx-runtime";
|
|
18548
18781
|
var StatusBullet = ({
|
|
18549
18782
|
status,
|
|
18550
18783
|
hideText = false,
|
|
@@ -18562,7 +18795,7 @@ var StatusBullet = ({
|
|
|
18562
18795
|
Previous: StatusDraft
|
|
18563
18796
|
};
|
|
18564
18797
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
18565
|
-
return /* @__PURE__ */
|
|
18798
|
+
return /* @__PURE__ */ jsx110(
|
|
18566
18799
|
"span",
|
|
18567
18800
|
{
|
|
18568
18801
|
role: "status",
|
|
@@ -18581,7 +18814,6 @@ export {
|
|
|
18581
18814
|
AvatarGroup,
|
|
18582
18815
|
Badge,
|
|
18583
18816
|
Banner,
|
|
18584
|
-
BrokenImage,
|
|
18585
18817
|
Button,
|
|
18586
18818
|
ButtonWithMenu,
|
|
18587
18819
|
Callout,
|
|
@@ -18628,6 +18860,7 @@ export {
|
|
|
18628
18860
|
IntegrationTile,
|
|
18629
18861
|
JsonEditor,
|
|
18630
18862
|
Label,
|
|
18863
|
+
LabelLeadingIcon,
|
|
18631
18864
|
Legend,
|
|
18632
18865
|
LimitsBar,
|
|
18633
18866
|
Link,
|
|
@@ -18644,6 +18877,7 @@ export {
|
|
|
18644
18877
|
MenuItem,
|
|
18645
18878
|
MenuItemSeparator,
|
|
18646
18879
|
Modal,
|
|
18880
|
+
MultilineChip,
|
|
18647
18881
|
PageHeaderSection,
|
|
18648
18882
|
Paragraph,
|
|
18649
18883
|
ParameterDataResource,
|
|
@@ -18675,6 +18909,7 @@ export {
|
|
|
18675
18909
|
ProgressList,
|
|
18676
18910
|
ProgressListItem,
|
|
18677
18911
|
ResolveIcon,
|
|
18912
|
+
RichTextToolbarIcon,
|
|
18678
18913
|
ScrollableList,
|
|
18679
18914
|
ScrollableListInputItem,
|
|
18680
18915
|
ScrollableListItem,
|
|
@@ -18755,6 +18990,8 @@ export {
|
|
|
18755
18990
|
replaceUnderscoreInString,
|
|
18756
18991
|
richTextBuiltInElements,
|
|
18757
18992
|
richTextBuiltInFormats,
|
|
18993
|
+
richTextToolbarButton,
|
|
18994
|
+
richTextToolbarButtonActive,
|
|
18758
18995
|
ripple,
|
|
18759
18996
|
scrollbarStyles,
|
|
18760
18997
|
settings,
|