@uniformdev/design-system 19.38.2 → 19.38.3-alpha.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +1033 -808
- package/dist/index.d.mts +111 -35
- package/dist/index.d.ts +111 -35
- package/dist/index.js +1177 -948
- 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,7 +13113,7 @@ 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 = () => {
|
|
@@ -12970,9 +13123,9 @@ var Drawer = React13.forwardRef(
|
|
|
12970
13123
|
({ width, minWidth, maxWidth, position, leftAligned, ...drawerProps }, ref) => {
|
|
12971
13124
|
const { stackId: inheritedStackId } = useCurrentDrawer();
|
|
12972
13125
|
const drawerRendererProps = { width, minWidth, maxWidth, position, leftAligned };
|
|
12973
|
-
return drawerProps.stackId ? /* @__PURE__ */
|
|
12974
|
-
/* @__PURE__ */
|
|
12975
|
-
/* @__PURE__ */
|
|
13126
|
+
return drawerProps.stackId ? /* @__PURE__ */ jsx44(DrawerInner, { ref, ...drawerProps }) : inheritedStackId ? /* @__PURE__ */ jsx44(DrawerInner, { ref, ...drawerProps, stackId: inheritedStackId }) : /* @__PURE__ */ jsxs26(DrawerProvider, { children: [
|
|
13127
|
+
/* @__PURE__ */ jsx44(DrawerInner, { ref, ...drawerProps }),
|
|
13128
|
+
/* @__PURE__ */ jsx44(DrawerRenderer, { stackId: defaultSackId, ...drawerRendererProps })
|
|
12976
13129
|
] });
|
|
12977
13130
|
}
|
|
12978
13131
|
);
|
|
@@ -13015,7 +13168,7 @@ var DrawerInner = ({
|
|
|
13015
13168
|
return null;
|
|
13016
13169
|
}
|
|
13017
13170
|
const headerId = `dialog-header-${providerId}-${stackId}-${id}`;
|
|
13018
|
-
return /* @__PURE__ */
|
|
13171
|
+
return /* @__PURE__ */ jsx44(CurrentDrawerContext.Provider, { value: { id, stackId, leftAligned }, children: createPortal(
|
|
13019
13172
|
/* @__PURE__ */ jsxs26(
|
|
13020
13173
|
"div",
|
|
13021
13174
|
{
|
|
@@ -13028,8 +13181,8 @@ var DrawerInner = ({
|
|
|
13028
13181
|
"data-testid": testId,
|
|
13029
13182
|
children: [
|
|
13030
13183
|
/* @__PURE__ */ jsxs26("div", { css: headerWrapperStyles, children: [
|
|
13031
|
-
header ? /* @__PURE__ */
|
|
13032
|
-
/* @__PURE__ */
|
|
13184
|
+
header ? /* @__PURE__ */ jsx44("div", { id: headerId, css: drawerHeaderStyles, "data-testid": "header", children: header }) : null,
|
|
13185
|
+
/* @__PURE__ */ jsx44(
|
|
13033
13186
|
Button,
|
|
13034
13187
|
{
|
|
13035
13188
|
ref: closeButtonRef,
|
|
@@ -13038,7 +13191,8 @@ var DrawerInner = ({
|
|
|
13038
13191
|
css: drawerCloseButtonStyles,
|
|
13039
13192
|
title: "Close dialog",
|
|
13040
13193
|
buttonType: "ghost",
|
|
13041
|
-
|
|
13194
|
+
"data-testid": "close-button",
|
|
13195
|
+
children: /* @__PURE__ */ jsx44(
|
|
13042
13196
|
Icon,
|
|
13043
13197
|
{
|
|
13044
13198
|
icon: CgChevronRight,
|
|
@@ -13050,7 +13204,7 @@ var DrawerInner = ({
|
|
|
13050
13204
|
}
|
|
13051
13205
|
)
|
|
13052
13206
|
] }),
|
|
13053
|
-
/* @__PURE__ */
|
|
13207
|
+
/* @__PURE__ */ jsx44("div", { css: drawerInnerStyles, children })
|
|
13054
13208
|
]
|
|
13055
13209
|
}
|
|
13056
13210
|
),
|
|
@@ -13064,15 +13218,15 @@ var findDrawerRenderer = (params) => {
|
|
|
13064
13218
|
};
|
|
13065
13219
|
|
|
13066
13220
|
// src/components/Drawer/DrawerContent.styles.ts
|
|
13067
|
-
import { css as
|
|
13068
|
-
var DrawerContent =
|
|
13221
|
+
import { css as css43 } from "@emotion/react";
|
|
13222
|
+
var DrawerContent = css43`
|
|
13069
13223
|
background: var(--gray-50);
|
|
13070
13224
|
display: flex;
|
|
13071
13225
|
flex-direction: column;
|
|
13072
13226
|
gap: var(--spacing-base);
|
|
13073
13227
|
height: 100%;
|
|
13074
13228
|
`;
|
|
13075
|
-
var DrawerContentInner =
|
|
13229
|
+
var DrawerContentInner = css43`
|
|
13076
13230
|
background: var(--white);
|
|
13077
13231
|
padding: var(--spacing-base);
|
|
13078
13232
|
flex: 1;
|
|
@@ -13080,24 +13234,24 @@ var DrawerContentInner = css42`
|
|
|
13080
13234
|
overflow-y: auto;
|
|
13081
13235
|
${scrollbarStyles}
|
|
13082
13236
|
`;
|
|
13083
|
-
var DrawerContentBtnGroup =
|
|
13237
|
+
var DrawerContentBtnGroup = css43`
|
|
13084
13238
|
display: flex;
|
|
13085
13239
|
gap: var(--spacing-sm);
|
|
13086
13240
|
padding: 0 var(--spacing-base) var(--spacing-base);
|
|
13087
13241
|
`;
|
|
13088
13242
|
|
|
13089
13243
|
// src/components/Drawer/DrawerContent.tsx
|
|
13090
|
-
import { jsx as
|
|
13244
|
+
import { jsx as jsx45, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
|
|
13091
13245
|
var DrawerContent2 = ({ children, buttonGroup, noPadding = false, ...props }) => {
|
|
13092
13246
|
return /* @__PURE__ */ jsxs27("div", { css: DrawerContent, ...props, children: [
|
|
13093
|
-
/* @__PURE__ */
|
|
13094
|
-
buttonGroup ? /* @__PURE__ */
|
|
13247
|
+
/* @__PURE__ */ jsx45("div", { css: [DrawerContentInner, noPadding ? { padding: 0 } : null], children }),
|
|
13248
|
+
buttonGroup ? /* @__PURE__ */ jsx45("div", { css: DrawerContentBtnGroup, children: buttonGroup }) : null
|
|
13095
13249
|
] });
|
|
13096
13250
|
};
|
|
13097
13251
|
|
|
13098
13252
|
// src/components/Drawer/DrawerRenderer.tsx
|
|
13099
13253
|
import { useEffect as useEffect6 } from "react";
|
|
13100
|
-
import { Fragment as Fragment6, jsx as
|
|
13254
|
+
import { Fragment as Fragment6, jsx as jsx46, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
|
|
13101
13255
|
var maxLayeringInPx = 64;
|
|
13102
13256
|
var idealDistanceBetweenLayersInPx = 16;
|
|
13103
13257
|
var DrawerRenderer = ({
|
|
@@ -13126,7 +13280,7 @@ var DrawerRenderer = ({
|
|
|
13126
13280
|
if (drawersToRender.length === 0) {
|
|
13127
13281
|
return null;
|
|
13128
13282
|
}
|
|
13129
|
-
return /* @__PURE__ */
|
|
13283
|
+
return /* @__PURE__ */ jsx46(
|
|
13130
13284
|
"div",
|
|
13131
13285
|
{
|
|
13132
13286
|
css: [
|
|
@@ -13137,7 +13291,7 @@ var DrawerRenderer = ({
|
|
|
13137
13291
|
...otherProps,
|
|
13138
13292
|
children: drawersToRender.map(({ id, stackId: stackId2, onRequestClose }, index) => {
|
|
13139
13293
|
var _a;
|
|
13140
|
-
return /* @__PURE__ */
|
|
13294
|
+
return /* @__PURE__ */ jsx46(
|
|
13141
13295
|
DrawerWrapper,
|
|
13142
13296
|
{
|
|
13143
13297
|
index,
|
|
@@ -13147,7 +13301,7 @@ var DrawerRenderer = ({
|
|
|
13147
13301
|
maxWidth,
|
|
13148
13302
|
onOverlayClick: onRequestClose,
|
|
13149
13303
|
leftAligned,
|
|
13150
|
-
children: /* @__PURE__ */
|
|
13304
|
+
children: /* @__PURE__ */ jsx46(
|
|
13151
13305
|
"div",
|
|
13152
13306
|
{
|
|
13153
13307
|
...getDrawerAttributes({ providerId, stackId: stackId2, id }),
|
|
@@ -13178,8 +13332,8 @@ var DrawerWrapper = ({
|
|
|
13178
13332
|
}
|
|
13179
13333
|
const calculatedWidth = `calc(${width} - ${offsetInPx}px)`;
|
|
13180
13334
|
return /* @__PURE__ */ jsxs28(Fragment6, { children: [
|
|
13181
|
-
/* @__PURE__ */
|
|
13182
|
-
/* @__PURE__ */
|
|
13335
|
+
/* @__PURE__ */ jsx46("div", { css: drawerWrapperOverlayStyles, onClick: onOverlayClick }),
|
|
13336
|
+
/* @__PURE__ */ jsx46(
|
|
13183
13337
|
"div",
|
|
13184
13338
|
{
|
|
13185
13339
|
css: [drawerWrapperStyles, leftAligned ? drawerWrapperLeftAlignedStyles : null],
|
|
@@ -13194,12 +13348,12 @@ var getDrawerAttributes = ({
|
|
|
13194
13348
|
stackId,
|
|
13195
13349
|
id
|
|
13196
13350
|
}) => {
|
|
13197
|
-
return { "data-drawer-id": `${providerId}-${stackId}-${id}
|
|
13351
|
+
return { "data-drawer-id": `${providerId}-${stackId}-${id}`, "data-testid": "container-drawer" };
|
|
13198
13352
|
};
|
|
13199
13353
|
|
|
13200
13354
|
// src/components/Input/styles/CaptionText.styles.ts
|
|
13201
|
-
import { css as
|
|
13202
|
-
var CaptionText = (dynamicSize) =>
|
|
13355
|
+
import { css as css44 } from "@emotion/react";
|
|
13356
|
+
var CaptionText = (dynamicSize) => css44`
|
|
13203
13357
|
color: var(--gray-500);
|
|
13204
13358
|
display: block;
|
|
13205
13359
|
font-size: ${dynamicSize ? "clamp(var(--fs-xs), 87.5%,var(--fs-sm))" : "var(--fs-sm)"};
|
|
@@ -13208,29 +13362,29 @@ var CaptionText = (dynamicSize) => css43`
|
|
|
13208
13362
|
`;
|
|
13209
13363
|
|
|
13210
13364
|
// src/components/Input/Caption.tsx
|
|
13211
|
-
import { jsx as
|
|
13365
|
+
import { jsx as jsx47 } from "@emotion/react/jsx-runtime";
|
|
13212
13366
|
var Caption = ({ children, testId, dynamicSize = false, ...props }) => {
|
|
13213
|
-
return /* @__PURE__ */
|
|
13367
|
+
return /* @__PURE__ */ jsx47("small", { css: CaptionText(dynamicSize), "data-testid": testId, ...props, children });
|
|
13214
13368
|
};
|
|
13215
13369
|
|
|
13216
13370
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
13217
13371
|
import { forwardRef as forwardRef4 } from "react";
|
|
13218
13372
|
|
|
13219
13373
|
// src/components/Input/styles/CheckboxWithInfo.styles.ts
|
|
13220
|
-
import { css as
|
|
13221
|
-
var CheckboxWithInfoContainer =
|
|
13374
|
+
import { css as css45 } from "@emotion/react";
|
|
13375
|
+
var CheckboxWithInfoContainer = css45`
|
|
13222
13376
|
align-items: center;
|
|
13223
13377
|
display: flex;
|
|
13224
13378
|
gap: var(--spacing-sm);
|
|
13225
13379
|
`;
|
|
13226
|
-
var CheckboxWithInfoLabel =
|
|
13380
|
+
var CheckboxWithInfoLabel = css45`
|
|
13227
13381
|
align-items: center;
|
|
13228
13382
|
color: var(--gray-500);
|
|
13229
13383
|
display: flex;
|
|
13230
13384
|
font-size: var(--fs-xs);
|
|
13231
13385
|
gap: var(--spacing-sm);
|
|
13232
13386
|
`;
|
|
13233
|
-
var CheckboxWithInfoInput =
|
|
13387
|
+
var CheckboxWithInfoInput = css45`
|
|
13234
13388
|
appearance: none;
|
|
13235
13389
|
border: 1px solid var(--gray-300);
|
|
13236
13390
|
background: var(--white) no-repeat bottom center;
|
|
@@ -13263,7 +13417,7 @@ var CheckboxWithInfoInput = css44`
|
|
|
13263
13417
|
border-color: var(--gray-200);
|
|
13264
13418
|
}
|
|
13265
13419
|
`;
|
|
13266
|
-
var InfoDialogContainer =
|
|
13420
|
+
var InfoDialogContainer = css45`
|
|
13267
13421
|
position: relative;
|
|
13268
13422
|
|
|
13269
13423
|
&:hover {
|
|
@@ -13272,7 +13426,7 @@ var InfoDialogContainer = css44`
|
|
|
13272
13426
|
}
|
|
13273
13427
|
}
|
|
13274
13428
|
`;
|
|
13275
|
-
var InfoDialogMessage =
|
|
13429
|
+
var InfoDialogMessage = css45`
|
|
13276
13430
|
background: var(--white);
|
|
13277
13431
|
box-shadow: var(--shadow-base);
|
|
13278
13432
|
border-radius: var(--rounded-md);
|
|
@@ -13289,21 +13443,21 @@ var InfoDialogMessage = css44`
|
|
|
13289
13443
|
`;
|
|
13290
13444
|
|
|
13291
13445
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
13292
|
-
import { jsx as
|
|
13446
|
+
import { jsx as jsx48, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
|
|
13293
13447
|
var InfoDialog = ({ message }) => {
|
|
13294
13448
|
return /* @__PURE__ */ jsxs29("div", { "data-testid": "info-dialog", css: InfoDialogContainer, children: [
|
|
13295
|
-
/* @__PURE__ */
|
|
13296
|
-
/* @__PURE__ */
|
|
13449
|
+
/* @__PURE__ */ jsx48(Icon, { icon: "info", iconColor: "action", size: "0.9rem" }),
|
|
13450
|
+
/* @__PURE__ */ jsx48("div", { role: "paragraph", css: InfoDialogMessage, className: "info-message", children: message })
|
|
13297
13451
|
] });
|
|
13298
13452
|
};
|
|
13299
13453
|
var CheckboxWithInfo = forwardRef4(
|
|
13300
13454
|
({ label, name, info, ...props }, ref) => {
|
|
13301
13455
|
return /* @__PURE__ */ jsxs29("div", { css: CheckboxWithInfoContainer, children: [
|
|
13302
13456
|
/* @__PURE__ */ jsxs29("label", { css: CheckboxWithInfoLabel, children: [
|
|
13303
|
-
/* @__PURE__ */
|
|
13304
|
-
/* @__PURE__ */
|
|
13457
|
+
/* @__PURE__ */ jsx48("input", { type: "checkbox", name, ref, css: CheckboxWithInfoInput, ...props }),
|
|
13458
|
+
/* @__PURE__ */ jsx48("span", { children: label })
|
|
13305
13459
|
] }),
|
|
13306
|
-
info ? /* @__PURE__ */
|
|
13460
|
+
info ? /* @__PURE__ */ jsx48(InfoDialog, { message: info }) : null
|
|
13307
13461
|
] });
|
|
13308
13462
|
}
|
|
13309
13463
|
);
|
|
@@ -13312,8 +13466,8 @@ var CheckboxWithInfo = forwardRef4(
|
|
|
13312
13466
|
import { MdWarning } from "react-icons/md";
|
|
13313
13467
|
|
|
13314
13468
|
// src/components/Input/styles/ErrorMessage.styles.ts
|
|
13315
|
-
import { css as
|
|
13316
|
-
var ErrorText =
|
|
13469
|
+
import { css as css46 } from "@emotion/react";
|
|
13470
|
+
var ErrorText = css46`
|
|
13317
13471
|
align-items: center;
|
|
13318
13472
|
color: var(--brand-secondary-5);
|
|
13319
13473
|
display: flex;
|
|
@@ -13321,10 +13475,10 @@ var ErrorText = css45`
|
|
|
13321
13475
|
`;
|
|
13322
13476
|
|
|
13323
13477
|
// src/components/Input/ErrorMessage.tsx
|
|
13324
|
-
import { jsx as
|
|
13478
|
+
import { jsx as jsx49, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
|
|
13325
13479
|
var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
13326
13480
|
return message ? /* @__PURE__ */ jsxs30("span", { role: "alert", css: ErrorText, "data-testid": testId, ...otherProps, children: [
|
|
13327
|
-
/* @__PURE__ */
|
|
13481
|
+
/* @__PURE__ */ jsx49("span", { children: /* @__PURE__ */ jsx49(Icon, { icon: MdWarning, size: "1rem", iconColor: "currentColor" }) }),
|
|
13328
13482
|
message
|
|
13329
13483
|
] }) : null;
|
|
13330
13484
|
};
|
|
@@ -13333,9 +13487,9 @@ var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
|
13333
13487
|
import * as React15 from "react";
|
|
13334
13488
|
|
|
13335
13489
|
// src/components/Input/styles/Fieldset.styles.ts
|
|
13336
|
-
import { css as
|
|
13490
|
+
import { css as css47 } from "@emotion/react";
|
|
13337
13491
|
function fieldsetContainer(invert) {
|
|
13338
|
-
const base =
|
|
13492
|
+
const base = css47`
|
|
13339
13493
|
border-radius: var(--rounded-base);
|
|
13340
13494
|
border: 1px solid var(--gray-300);
|
|
13341
13495
|
|
|
@@ -13347,18 +13501,18 @@ function fieldsetContainer(invert) {
|
|
|
13347
13501
|
}
|
|
13348
13502
|
`;
|
|
13349
13503
|
return invert ? [
|
|
13350
|
-
|
|
13504
|
+
css47`
|
|
13351
13505
|
background: white;
|
|
13352
13506
|
`,
|
|
13353
13507
|
base
|
|
13354
13508
|
] : [
|
|
13355
|
-
|
|
13509
|
+
css47`
|
|
13356
13510
|
background: var(--gray-50);
|
|
13357
13511
|
`,
|
|
13358
13512
|
base
|
|
13359
13513
|
];
|
|
13360
13514
|
}
|
|
13361
|
-
var fieldsetLegend =
|
|
13515
|
+
var fieldsetLegend = css47`
|
|
13362
13516
|
align-items: center;
|
|
13363
13517
|
color: var(--brand-secondary-1);
|
|
13364
13518
|
display: flex;
|
|
@@ -13368,17 +13522,17 @@ var fieldsetLegend = css46`
|
|
|
13368
13522
|
margin-bottom: var(--spacing-base);
|
|
13369
13523
|
float: left; // allows the legend to be inside the fieldset and not sat on the border line
|
|
13370
13524
|
`;
|
|
13371
|
-
var fieldsetBody =
|
|
13525
|
+
var fieldsetBody = css47`
|
|
13372
13526
|
clear: left;
|
|
13373
13527
|
`;
|
|
13374
13528
|
|
|
13375
13529
|
// src/components/Input/Fieldset.tsx
|
|
13376
|
-
import { jsx as
|
|
13530
|
+
import { jsx as jsx50, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
|
|
13377
13531
|
var Fieldset = React15.forwardRef(
|
|
13378
13532
|
({ legend, disabled, children, invert, ...props }, ref) => {
|
|
13379
13533
|
return /* @__PURE__ */ jsxs31("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled, ...props, children: [
|
|
13380
13534
|
legend,
|
|
13381
|
-
/* @__PURE__ */
|
|
13535
|
+
/* @__PURE__ */ jsx50("div", { css: fieldsetBody, children })
|
|
13382
13536
|
] });
|
|
13383
13537
|
}
|
|
13384
13538
|
);
|
|
@@ -13387,8 +13541,8 @@ var Fieldset = React15.forwardRef(
|
|
|
13387
13541
|
import { MdInfoOutline } from "react-icons/md";
|
|
13388
13542
|
|
|
13389
13543
|
// src/components/Input/styles/InfoMessage.styles.tsx
|
|
13390
|
-
import { css as
|
|
13391
|
-
var InfoText =
|
|
13544
|
+
import { css as css48 } from "@emotion/react";
|
|
13545
|
+
var InfoText = css48`
|
|
13392
13546
|
--info-desc: rgb(29, 78, 216);
|
|
13393
13547
|
--info-icon: rgb(96, 165, 250);
|
|
13394
13548
|
|
|
@@ -13397,15 +13551,15 @@ var InfoText = css47`
|
|
|
13397
13551
|
display: flex;
|
|
13398
13552
|
gap: var(--spacing-sm);
|
|
13399
13553
|
`;
|
|
13400
|
-
var InfoIcon2 =
|
|
13554
|
+
var InfoIcon2 = css48`
|
|
13401
13555
|
color: var(--info-icon);
|
|
13402
13556
|
`;
|
|
13403
13557
|
|
|
13404
13558
|
// src/components/Input/InfoMessage.tsx
|
|
13405
|
-
import { jsx as
|
|
13559
|
+
import { jsx as jsx51, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
|
|
13406
13560
|
var InfoMessage = ({ message, testId, ...props }) => {
|
|
13407
13561
|
return message ? /* @__PURE__ */ jsxs32("span", { role: "status", css: InfoText, "data-testid": testId, ...props, children: [
|
|
13408
|
-
/* @__PURE__ */
|
|
13562
|
+
/* @__PURE__ */ jsx51("span", { children: /* @__PURE__ */ jsx51(Icon, { css: InfoIcon2, icon: MdInfoOutline, size: "1rem", iconColor: "currentColor" }) }),
|
|
13409
13563
|
message
|
|
13410
13564
|
] }) : null;
|
|
13411
13565
|
};
|
|
@@ -13414,9 +13568,9 @@ var InfoMessage = ({ message, testId, ...props }) => {
|
|
|
13414
13568
|
import * as React16 from "react";
|
|
13415
13569
|
|
|
13416
13570
|
// src/components/Input/Label.tsx
|
|
13417
|
-
import { jsx as
|
|
13571
|
+
import { jsx as jsx52 } from "@emotion/react/jsx-runtime";
|
|
13418
13572
|
var Label = ({ children, className, testId, ...props }) => {
|
|
13419
|
-
return /* @__PURE__ */
|
|
13573
|
+
return /* @__PURE__ */ jsx52(
|
|
13420
13574
|
"label",
|
|
13421
13575
|
{
|
|
13422
13576
|
css: [labelText, typeof className === "object" ? className : void 0],
|
|
@@ -13432,28 +13586,28 @@ var Label = ({ children, className, testId, ...props }) => {
|
|
|
13432
13586
|
import { MdWarning as MdWarning2 } from "react-icons/md";
|
|
13433
13587
|
|
|
13434
13588
|
// src/components/Input/styles/WarningMessage.styles.tsx
|
|
13435
|
-
import { css as
|
|
13436
|
-
var WarningText =
|
|
13589
|
+
import { css as css49 } from "@emotion/react";
|
|
13590
|
+
var WarningText = css49`
|
|
13437
13591
|
align-items: center;
|
|
13438
13592
|
color: var(--alert-text);
|
|
13439
13593
|
display: flex;
|
|
13440
13594
|
gap: var(--spacing-sm);
|
|
13441
13595
|
`;
|
|
13442
|
-
var WarningIcon =
|
|
13596
|
+
var WarningIcon = css49`
|
|
13443
13597
|
color: var(--alert);
|
|
13444
13598
|
`;
|
|
13445
13599
|
|
|
13446
13600
|
// src/components/Input/WarningMessage.tsx
|
|
13447
|
-
import { jsx as
|
|
13601
|
+
import { jsx as jsx53, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
|
|
13448
13602
|
var WarningMessage = ({ message, testId, ...props }) => {
|
|
13449
13603
|
return message ? /* @__PURE__ */ jsxs33("span", { role: "status", css: WarningText, "data-testid": testId, ...props, children: [
|
|
13450
|
-
/* @__PURE__ */
|
|
13604
|
+
/* @__PURE__ */ jsx53("span", { children: /* @__PURE__ */ jsx53(Icon, { css: WarningIcon, icon: MdWarning2, size: "1rem", iconColor: "currentColor" }) }),
|
|
13451
13605
|
message
|
|
13452
13606
|
] }) : null;
|
|
13453
13607
|
};
|
|
13454
13608
|
|
|
13455
13609
|
// src/components/Input/Input.tsx
|
|
13456
|
-
import { jsx as
|
|
13610
|
+
import { jsx as jsx54, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
|
|
13457
13611
|
var Input = React16.forwardRef(
|
|
13458
13612
|
({
|
|
13459
13613
|
label,
|
|
@@ -13473,7 +13627,7 @@ var Input = React16.forwardRef(
|
|
|
13473
13627
|
...props
|
|
13474
13628
|
}, ref) => {
|
|
13475
13629
|
return /* @__PURE__ */ jsxs34("div", { css: inputContainer, "data-testid": containerTestId ? containerTestId : "container-input-field", children: [
|
|
13476
|
-
showLabel ? /* @__PURE__ */
|
|
13630
|
+
showLabel ? /* @__PURE__ */ jsx54(
|
|
13477
13631
|
Label,
|
|
13478
13632
|
{
|
|
13479
13633
|
htmlFor: id,
|
|
@@ -13489,7 +13643,7 @@ var Input = React16.forwardRef(
|
|
|
13489
13643
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
13490
13644
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
13491
13645
|
children: [
|
|
13492
|
-
/* @__PURE__ */
|
|
13646
|
+
/* @__PURE__ */ jsx54(
|
|
13493
13647
|
"input",
|
|
13494
13648
|
{
|
|
13495
13649
|
id,
|
|
@@ -13505,23 +13659,23 @@ var Input = React16.forwardRef(
|
|
|
13505
13659
|
ref
|
|
13506
13660
|
}
|
|
13507
13661
|
),
|
|
13508
|
-
icon ? /* @__PURE__ */
|
|
13662
|
+
icon ? /* @__PURE__ */ jsx54("div", { css: inputIcon, children: icon }) : null
|
|
13509
13663
|
]
|
|
13510
13664
|
}
|
|
13511
13665
|
),
|
|
13512
|
-
caption ? /* @__PURE__ */
|
|
13513
|
-
errorMessage ? /* @__PURE__ */
|
|
13514
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
13666
|
+
caption ? /* @__PURE__ */ jsx54(Caption, { testId: captionTestId, children: caption }) : null,
|
|
13667
|
+
errorMessage ? /* @__PURE__ */ jsx54(ErrorMessage, { message: errorMessage, testId: errorTestId }) : null,
|
|
13668
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx54(WarningMessage, { message: warningMessage }) : null
|
|
13515
13669
|
] });
|
|
13516
13670
|
}
|
|
13517
13671
|
);
|
|
13518
13672
|
|
|
13519
13673
|
// src/components/Input/InputComboBox.tsx
|
|
13520
13674
|
import Select from "react-select";
|
|
13521
|
-
import { jsx as
|
|
13675
|
+
import { jsx as jsx55 } from "@emotion/react/jsx-runtime";
|
|
13522
13676
|
function InputComboBox(props) {
|
|
13523
13677
|
var _a;
|
|
13524
|
-
return /* @__PURE__ */
|
|
13678
|
+
return /* @__PURE__ */ jsx55(
|
|
13525
13679
|
Select,
|
|
13526
13680
|
{
|
|
13527
13681
|
...props,
|
|
@@ -13650,17 +13804,17 @@ function InputComboBox(props) {
|
|
|
13650
13804
|
}
|
|
13651
13805
|
|
|
13652
13806
|
// src/components/Input/InputInlineSelect.tsx
|
|
13653
|
-
import { css as
|
|
13807
|
+
import { css as css51 } from "@emotion/react";
|
|
13654
13808
|
import { useRef as useRef4, useState as useState6 } from "react";
|
|
13655
13809
|
import { CgChevronDown as CgChevronDown2 } from "react-icons/cg";
|
|
13656
13810
|
|
|
13657
13811
|
// src/components/Input/styles/InputInlineSelect.styles.ts
|
|
13658
|
-
import { css as
|
|
13659
|
-
var inlineSelectContainer =
|
|
13812
|
+
import { css as css50 } from "@emotion/react";
|
|
13813
|
+
var inlineSelectContainer = css50`
|
|
13660
13814
|
margin-inline: auto;
|
|
13661
13815
|
max-width: fit-content;
|
|
13662
13816
|
`;
|
|
13663
|
-
var inlineSelectBtn =
|
|
13817
|
+
var inlineSelectBtn = css50`
|
|
13664
13818
|
align-items: center;
|
|
13665
13819
|
background: var(--brand-secondary-3);
|
|
13666
13820
|
border: 2px solid var(--brand-secondary-3);
|
|
@@ -13684,7 +13838,7 @@ var inlineSelectBtn = css49`
|
|
|
13684
13838
|
outline: 2px solid var(--brand-secondary-1);
|
|
13685
13839
|
}
|
|
13686
13840
|
`;
|
|
13687
|
-
var inlineSelectMenu =
|
|
13841
|
+
var inlineSelectMenu = css50`
|
|
13688
13842
|
background: var(--white);
|
|
13689
13843
|
border: 1px solid var(--brand-secondary-3);
|
|
13690
13844
|
border-top: none;
|
|
@@ -13695,7 +13849,7 @@ var inlineSelectMenu = css49`
|
|
|
13695
13849
|
inset: auto 0;
|
|
13696
13850
|
transform: translateY(-0.2rem);
|
|
13697
13851
|
`;
|
|
13698
|
-
var inlineSelectBtnOptions =
|
|
13852
|
+
var inlineSelectBtnOptions = css50`
|
|
13699
13853
|
cursor: pointer;
|
|
13700
13854
|
display: block;
|
|
13701
13855
|
font-size: var(--fs-sm);
|
|
@@ -13711,7 +13865,7 @@ var inlineSelectBtnOptions = css49`
|
|
|
13711
13865
|
background: var(--gray-50);
|
|
13712
13866
|
}
|
|
13713
13867
|
`;
|
|
13714
|
-
var inlineSelectMenuClosed =
|
|
13868
|
+
var inlineSelectMenuClosed = css50`
|
|
13715
13869
|
position: absolute;
|
|
13716
13870
|
overflow: hidden;
|
|
13717
13871
|
height: 1px;
|
|
@@ -13721,7 +13875,7 @@ var inlineSelectMenuClosed = css49`
|
|
|
13721
13875
|
`;
|
|
13722
13876
|
|
|
13723
13877
|
// src/components/Input/InputInlineSelect.tsx
|
|
13724
|
-
import { jsx as
|
|
13878
|
+
import { jsx as jsx56, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
13725
13879
|
var InputInlineSelect = ({
|
|
13726
13880
|
classNameContainer,
|
|
13727
13881
|
options,
|
|
@@ -13739,7 +13893,7 @@ var InputInlineSelect = ({
|
|
|
13739
13893
|
"div",
|
|
13740
13894
|
{
|
|
13741
13895
|
ref: divRef,
|
|
13742
|
-
css: !classNameContainer ? inlineSelectContainer :
|
|
13896
|
+
css: !classNameContainer ? inlineSelectContainer : css51`
|
|
13743
13897
|
max-width: fit-content;
|
|
13744
13898
|
${typeof classNameContainer === "object" ? classNameContainer : void 0}
|
|
13745
13899
|
`,
|
|
@@ -13759,18 +13913,18 @@ var InputInlineSelect = ({
|
|
|
13759
13913
|
disabled,
|
|
13760
13914
|
...props,
|
|
13761
13915
|
children: [
|
|
13762
|
-
/* @__PURE__ */
|
|
13763
|
-
disabled ? null : /* @__PURE__ */
|
|
13916
|
+
/* @__PURE__ */ jsx56("span", { children: (_a = selected == null ? void 0 : selected.label) != null ? _a : value }),
|
|
13917
|
+
disabled ? null : /* @__PURE__ */ jsx56(Icon, { icon: CgChevronDown2, iconColor: "currentColor", size: 24 })
|
|
13764
13918
|
]
|
|
13765
13919
|
}
|
|
13766
13920
|
),
|
|
13767
|
-
/* @__PURE__ */
|
|
13921
|
+
/* @__PURE__ */ jsx56(
|
|
13768
13922
|
"div",
|
|
13769
13923
|
{
|
|
13770
13924
|
id: `and-or-${props.id}`,
|
|
13771
13925
|
css: [inlineSelectMenu, menuVisible ? void 0 : inlineSelectMenuClosed],
|
|
13772
13926
|
"aria-hidden": !menuVisible,
|
|
13773
|
-
children: options.map((opt) => /* @__PURE__ */
|
|
13927
|
+
children: options.map((opt) => /* @__PURE__ */ jsx56(
|
|
13774
13928
|
"button",
|
|
13775
13929
|
{
|
|
13776
13930
|
type: "button",
|
|
@@ -13792,7 +13946,7 @@ var InputInlineSelect = ({
|
|
|
13792
13946
|
|
|
13793
13947
|
// src/components/Input/InputKeywordSearch.tsx
|
|
13794
13948
|
import { CgClose as CgClose4, CgSearch } from "react-icons/cg";
|
|
13795
|
-
import { jsx as
|
|
13949
|
+
import { jsx as jsx57 } from "@emotion/react/jsx-runtime";
|
|
13796
13950
|
var InputKeywordSearch = ({
|
|
13797
13951
|
onSearchTextChanged,
|
|
13798
13952
|
disabled = false,
|
|
@@ -13813,7 +13967,7 @@ var InputKeywordSearch = ({
|
|
|
13813
13967
|
e.preventDefault();
|
|
13814
13968
|
}
|
|
13815
13969
|
};
|
|
13816
|
-
return /* @__PURE__ */
|
|
13970
|
+
return /* @__PURE__ */ jsx57(
|
|
13817
13971
|
Input,
|
|
13818
13972
|
{
|
|
13819
13973
|
type: "text",
|
|
@@ -13821,7 +13975,7 @@ var InputKeywordSearch = ({
|
|
|
13821
13975
|
placeholder,
|
|
13822
13976
|
showLabel: false,
|
|
13823
13977
|
value,
|
|
13824
|
-
icon: value ? /* @__PURE__ */
|
|
13978
|
+
icon: value ? /* @__PURE__ */ jsx57("button", { css: inputSearchCloseBtn, onClick: onClear, type: "button", children: /* @__PURE__ */ jsx57(Icon, { icon: CgClose4, iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ jsx57(Icon, { icon: CgSearch, iconColor: "gray", size: "1rem" }),
|
|
13825
13979
|
onChange: handleSearchTextChanged,
|
|
13826
13980
|
onKeyPress: preventSubmitOnField,
|
|
13827
13981
|
disabled,
|
|
@@ -13839,7 +13993,7 @@ var InputKeywordSearch = ({
|
|
|
13839
13993
|
};
|
|
13840
13994
|
|
|
13841
13995
|
// src/components/Input/InputSelect.tsx
|
|
13842
|
-
import { Fragment as Fragment7, jsx as
|
|
13996
|
+
import { Fragment as Fragment7, jsx as jsx58, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
13843
13997
|
var InputSelect = ({
|
|
13844
13998
|
label,
|
|
13845
13999
|
defaultOption,
|
|
@@ -13861,7 +14015,7 @@ var InputSelect = ({
|
|
|
13861
14015
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
13862
14016
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
13863
14017
|
children: [
|
|
13864
|
-
showLabel ? /* @__PURE__ */
|
|
14018
|
+
showLabel ? /* @__PURE__ */ jsx58(Fragment7, { children: /* @__PURE__ */ jsxs36(
|
|
13865
14019
|
Label,
|
|
13866
14020
|
{
|
|
13867
14021
|
htmlFor: props.id,
|
|
@@ -13888,14 +14042,14 @@ var InputSelect = ({
|
|
|
13888
14042
|
className: typeof classNameControl === "string" ? classNameControl : "",
|
|
13889
14043
|
...props,
|
|
13890
14044
|
children: [
|
|
13891
|
-
defaultOption ? /* @__PURE__ */
|
|
13892
|
-
options.map((opt, index) => /* @__PURE__ */
|
|
14045
|
+
defaultOption ? /* @__PURE__ */ jsx58("option", { value: "", children: defaultOption }) : null,
|
|
14046
|
+
options.map((opt, index) => /* @__PURE__ */ jsx58("option", { value: opt.label, ...opt }, index))
|
|
13893
14047
|
]
|
|
13894
14048
|
}
|
|
13895
14049
|
),
|
|
13896
|
-
caption ? /* @__PURE__ */
|
|
13897
|
-
errorMessage ? /* @__PURE__ */
|
|
13898
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14050
|
+
caption ? /* @__PURE__ */ jsx58(Caption, { children: caption }) : null,
|
|
14051
|
+
errorMessage ? /* @__PURE__ */ jsx58(ErrorMessage, { message: errorMessage }) : null,
|
|
14052
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx58(WarningMessage, { message: warningMessage }) : null
|
|
13899
14053
|
]
|
|
13900
14054
|
}
|
|
13901
14055
|
);
|
|
@@ -13903,7 +14057,7 @@ var InputSelect = ({
|
|
|
13903
14057
|
|
|
13904
14058
|
// src/components/Input/InputToggle.tsx
|
|
13905
14059
|
import * as React17 from "react";
|
|
13906
|
-
import { jsx as
|
|
14060
|
+
import { jsx as jsx59, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
|
|
13907
14061
|
var InputToggle = React17.forwardRef(
|
|
13908
14062
|
({
|
|
13909
14063
|
label,
|
|
@@ -13924,7 +14078,7 @@ var InputToggle = React17.forwardRef(
|
|
|
13924
14078
|
css: [inputToggleLabel, disabled ? inputDisabled : void 0],
|
|
13925
14079
|
"data-testid": testId ? testId : "input-toggle",
|
|
13926
14080
|
children: [
|
|
13927
|
-
/* @__PURE__ */
|
|
14081
|
+
/* @__PURE__ */ jsx59(
|
|
13928
14082
|
"input",
|
|
13929
14083
|
{
|
|
13930
14084
|
ref,
|
|
@@ -13936,11 +14090,11 @@ var InputToggle = React17.forwardRef(
|
|
|
13936
14090
|
...props
|
|
13937
14091
|
}
|
|
13938
14092
|
),
|
|
13939
|
-
/* @__PURE__ */
|
|
14093
|
+
/* @__PURE__ */ jsx59("span", { css: inlineLabel(fontWeight), children: label }),
|
|
13940
14094
|
caption || errorMessage ? /* @__PURE__ */ jsxs37("span", { css: inputToggleMessageContainer, children: [
|
|
13941
|
-
caption ? /* @__PURE__ */
|
|
13942
|
-
errorMessage ? /* @__PURE__ */
|
|
13943
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14095
|
+
caption ? /* @__PURE__ */ jsx59(Caption, { children: caption }) : null,
|
|
14096
|
+
errorMessage ? /* @__PURE__ */ jsx59(ErrorMessage, { message: errorMessage }) : null,
|
|
14097
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx59(WarningMessage, { message: warningMessage }) : null
|
|
13944
14098
|
] }) : null
|
|
13945
14099
|
]
|
|
13946
14100
|
}
|
|
@@ -13949,17 +14103,17 @@ var InputToggle = React17.forwardRef(
|
|
|
13949
14103
|
);
|
|
13950
14104
|
|
|
13951
14105
|
// src/components/Input/Legend.tsx
|
|
13952
|
-
import { jsx as
|
|
14106
|
+
import { jsx as jsx60 } from "@emotion/react/jsx-runtime";
|
|
13953
14107
|
var Legend = ({ children }) => {
|
|
13954
|
-
return /* @__PURE__ */
|
|
14108
|
+
return /* @__PURE__ */ jsx60("legend", { css: fieldsetLegend, children });
|
|
13955
14109
|
};
|
|
13956
14110
|
|
|
13957
14111
|
// src/components/Input/SuccessMessage.tsx
|
|
13958
14112
|
import { CgCheckO } from "react-icons/cg";
|
|
13959
14113
|
|
|
13960
14114
|
// src/components/Input/styles/SuccessMessage.styles.ts
|
|
13961
|
-
import { css as
|
|
13962
|
-
var SuccessText =
|
|
14115
|
+
import { css as css52 } from "@emotion/react";
|
|
14116
|
+
var SuccessText = css52`
|
|
13963
14117
|
--info-desc: var(--brand-secondary-3);
|
|
13964
14118
|
--info-icon: var(--brand-secondary-3);
|
|
13965
14119
|
|
|
@@ -13968,28 +14122,28 @@ var SuccessText = css51`
|
|
|
13968
14122
|
display: flex;
|
|
13969
14123
|
gap: var(--spacing-sm);
|
|
13970
14124
|
`;
|
|
13971
|
-
var SuccessIcon2 =
|
|
14125
|
+
var SuccessIcon2 = css52`
|
|
13972
14126
|
color: var(--info-icon);
|
|
13973
14127
|
`;
|
|
13974
14128
|
|
|
13975
14129
|
// src/components/Input/SuccessMessage.tsx
|
|
13976
|
-
import { jsx as
|
|
14130
|
+
import { jsx as jsx61, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
|
|
13977
14131
|
var SuccessMessage = ({ message, testId, ...props }) => {
|
|
13978
14132
|
return message ? /* @__PURE__ */ jsxs38("span", { role: "status", css: SuccessText, "data-testid": testId, ...props, children: [
|
|
13979
|
-
/* @__PURE__ */
|
|
14133
|
+
/* @__PURE__ */ jsx61("span", { children: /* @__PURE__ */ jsx61(Icon, { css: SuccessIcon2, icon: CgCheckO, size: "1rem", iconColor: "currentColor" }) }),
|
|
13980
14134
|
message
|
|
13981
14135
|
] }) : null;
|
|
13982
14136
|
};
|
|
13983
14137
|
|
|
13984
14138
|
// src/components/Input/Textarea.tsx
|
|
13985
14139
|
import { forwardRef as forwardRef8 } from "react";
|
|
13986
|
-
import { Fragment as Fragment8, jsx as
|
|
14140
|
+
import { Fragment as Fragment8, jsx as jsx62, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
13987
14141
|
var Textarea = forwardRef8(
|
|
13988
14142
|
({ label, icon, id, caption, showLabel = true, errorMessage, warningMessage, ...props }, ref) => {
|
|
13989
14143
|
return /* @__PURE__ */ jsxs39(Fragment8, { children: [
|
|
13990
|
-
showLabel ? /* @__PURE__ */
|
|
14144
|
+
showLabel ? /* @__PURE__ */ jsx62("label", { htmlFor: id, css: [labelText], children: label }) : null,
|
|
13991
14145
|
/* @__PURE__ */ jsxs39("div", { css: [inputContainer], children: [
|
|
13992
|
-
/* @__PURE__ */
|
|
14146
|
+
/* @__PURE__ */ jsx62(
|
|
13993
14147
|
"textarea",
|
|
13994
14148
|
{
|
|
13995
14149
|
ref,
|
|
@@ -14004,22 +14158,22 @@ var Textarea = forwardRef8(
|
|
|
14004
14158
|
...props
|
|
14005
14159
|
}
|
|
14006
14160
|
),
|
|
14007
|
-
icon ? /* @__PURE__ */
|
|
14161
|
+
icon ? /* @__PURE__ */ jsx62("div", { css: inputIcon, children: icon }) : null
|
|
14008
14162
|
] }),
|
|
14009
|
-
caption ? /* @__PURE__ */
|
|
14010
|
-
errorMessage ? /* @__PURE__ */
|
|
14011
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14163
|
+
caption ? /* @__PURE__ */ jsx62(Caption, { children: caption }) : null,
|
|
14164
|
+
errorMessage ? /* @__PURE__ */ jsx62(ErrorMessage, { message: errorMessage }) : null,
|
|
14165
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx62(WarningMessage, { message: warningMessage }) : null
|
|
14012
14166
|
] });
|
|
14013
14167
|
}
|
|
14014
14168
|
);
|
|
14015
14169
|
|
|
14016
14170
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
14017
|
-
import { css as
|
|
14171
|
+
import { css as css54 } from "@emotion/react";
|
|
14018
14172
|
import { CgAdd as CgAdd2, CgChevronRight as CgChevronRight2 } from "react-icons/cg";
|
|
14019
14173
|
|
|
14020
14174
|
// src/components/Tiles/styles/IntegrationTile.styles.ts
|
|
14021
|
-
import { css as
|
|
14022
|
-
var IntegrationTileContainer =
|
|
14175
|
+
import { css as css53 } from "@emotion/react";
|
|
14176
|
+
var IntegrationTileContainer = css53`
|
|
14023
14177
|
align-items: center;
|
|
14024
14178
|
box-sizing: border-box;
|
|
14025
14179
|
border-radius: var(--rounded-base);
|
|
@@ -14050,22 +14204,22 @@ var IntegrationTileContainer = css52`
|
|
|
14050
14204
|
}
|
|
14051
14205
|
}
|
|
14052
14206
|
`;
|
|
14053
|
-
var IntegrationTileBtnDashedBorder =
|
|
14207
|
+
var IntegrationTileBtnDashedBorder = css53`
|
|
14054
14208
|
border: 1px dashed var(--brand-secondary-1);
|
|
14055
14209
|
`;
|
|
14056
|
-
var IntegrationTileTitle =
|
|
14210
|
+
var IntegrationTileTitle = css53`
|
|
14057
14211
|
display: block;
|
|
14058
14212
|
font-weight: var(--fw-bold);
|
|
14059
14213
|
margin: 0 0 var(--spacing-base);
|
|
14060
14214
|
max-width: 13rem;
|
|
14061
14215
|
`;
|
|
14062
|
-
var IntegrationTitleLogo =
|
|
14216
|
+
var IntegrationTitleLogo = css53`
|
|
14063
14217
|
display: block;
|
|
14064
14218
|
max-width: 10rem;
|
|
14065
14219
|
max-height: 4rem;
|
|
14066
14220
|
margin: 0 auto;
|
|
14067
14221
|
`;
|
|
14068
|
-
var IntegrationTileName =
|
|
14222
|
+
var IntegrationTileName = css53`
|
|
14069
14223
|
color: var(--gray-500);
|
|
14070
14224
|
display: -webkit-box;
|
|
14071
14225
|
-webkit-line-clamp: 1;
|
|
@@ -14078,7 +14232,7 @@ var IntegrationTileName = css52`
|
|
|
14078
14232
|
position: absolute;
|
|
14079
14233
|
bottom: calc(var(--spacing-base) * 3.8);
|
|
14080
14234
|
`;
|
|
14081
|
-
var IntegrationAddedText =
|
|
14235
|
+
var IntegrationAddedText = css53`
|
|
14082
14236
|
align-items: center;
|
|
14083
14237
|
background: var(--brand-secondary-3);
|
|
14084
14238
|
border-radius: 0 var(--rounded-md) 0 var(--rounded-md);
|
|
@@ -14093,7 +14247,7 @@ var IntegrationAddedText = css52`
|
|
|
14093
14247
|
top: 0;
|
|
14094
14248
|
right: 0;
|
|
14095
14249
|
`;
|
|
14096
|
-
var IntegrationCustomBadgeText = (theme) =>
|
|
14250
|
+
var IntegrationCustomBadgeText = (theme) => css53`
|
|
14097
14251
|
align-items: center;
|
|
14098
14252
|
border-radius: var(--rounded-sm) 0 var(--rounded-sm) 0;
|
|
14099
14253
|
background: ${theme === "gray" ? "var(--brand-secondary-2)" : "var(--brand-secondary-1)"};
|
|
@@ -14107,26 +14261,26 @@ var IntegrationCustomBadgeText = (theme) => css52`
|
|
|
14107
14261
|
top: 0;
|
|
14108
14262
|
left: 0;
|
|
14109
14263
|
`;
|
|
14110
|
-
var IntegrationAuthorBadgeIcon =
|
|
14264
|
+
var IntegrationAuthorBadgeIcon = css53`
|
|
14111
14265
|
position: absolute;
|
|
14112
14266
|
bottom: var(--spacing-sm);
|
|
14113
14267
|
right: var(--spacing-xs);
|
|
14114
14268
|
max-height: 1rem;
|
|
14115
14269
|
`;
|
|
14116
|
-
var IntegrationTitleFakeButton =
|
|
14270
|
+
var IntegrationTitleFakeButton = css53`
|
|
14117
14271
|
font-size: var(--fs-xs);
|
|
14118
14272
|
gap: var(--spacing-sm);
|
|
14119
14273
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
14120
14274
|
text-transform: uppercase;
|
|
14121
14275
|
`;
|
|
14122
|
-
var IntegrationTileFloatingButton =
|
|
14276
|
+
var IntegrationTileFloatingButton = css53`
|
|
14123
14277
|
position: absolute;
|
|
14124
14278
|
bottom: var(--spacing-base);
|
|
14125
14279
|
gap: var(--spacing-sm);
|
|
14126
14280
|
font-size: var(--fs-xs);
|
|
14127
14281
|
overflow: hidden;
|
|
14128
14282
|
`;
|
|
14129
|
-
var IntegrationTileFloatingButtonMessage = (clicked) =>
|
|
14283
|
+
var IntegrationTileFloatingButtonMessage = (clicked) => css53`
|
|
14130
14284
|
strong,
|
|
14131
14285
|
span:first-of-type {
|
|
14132
14286
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
@@ -14147,7 +14301,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => css52`
|
|
|
14147
14301
|
`;
|
|
14148
14302
|
|
|
14149
14303
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
14150
|
-
import { jsx as
|
|
14304
|
+
import { jsx as jsx63, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
|
|
14151
14305
|
var CreateTeamIntegrationTile = ({
|
|
14152
14306
|
title = "Create a custom integration for your team",
|
|
14153
14307
|
buttonText = "Add Integration",
|
|
@@ -14156,7 +14310,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
14156
14310
|
...props
|
|
14157
14311
|
}) => {
|
|
14158
14312
|
return /* @__PURE__ */ jsxs40("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
14159
|
-
/* @__PURE__ */
|
|
14313
|
+
/* @__PURE__ */ jsx63("span", { css: IntegrationTileTitle, title, children: title }),
|
|
14160
14314
|
/* @__PURE__ */ jsxs40(
|
|
14161
14315
|
Button,
|
|
14162
14316
|
{
|
|
@@ -14167,23 +14321,23 @@ var CreateTeamIntegrationTile = ({
|
|
|
14167
14321
|
css: IntegrationTitleFakeButton,
|
|
14168
14322
|
children: [
|
|
14169
14323
|
buttonText,
|
|
14170
|
-
asDeepLink ? /* @__PURE__ */
|
|
14324
|
+
asDeepLink ? /* @__PURE__ */ jsx63(
|
|
14171
14325
|
Icon,
|
|
14172
14326
|
{
|
|
14173
14327
|
icon: CgChevronRight2,
|
|
14174
14328
|
iconColor: "currentColor",
|
|
14175
14329
|
size: 20,
|
|
14176
|
-
css:
|
|
14330
|
+
css: css54`
|
|
14177
14331
|
order: 1;
|
|
14178
14332
|
`
|
|
14179
14333
|
}
|
|
14180
|
-
) : /* @__PURE__ */
|
|
14334
|
+
) : /* @__PURE__ */ jsx63(
|
|
14181
14335
|
Icon,
|
|
14182
14336
|
{
|
|
14183
14337
|
icon: CgAdd2,
|
|
14184
14338
|
iconColor: "currentColor",
|
|
14185
14339
|
size: 16,
|
|
14186
|
-
css:
|
|
14340
|
+
css: css54`
|
|
14187
14341
|
order: -1;
|
|
14188
14342
|
`
|
|
14189
14343
|
}
|
|
@@ -14196,31 +14350,31 @@ var CreateTeamIntegrationTile = ({
|
|
|
14196
14350
|
|
|
14197
14351
|
// src/components/Tiles/IntegrationBadges.tsx
|
|
14198
14352
|
import { CgCheck, CgLock, CgSandClock } from "react-icons/cg";
|
|
14199
|
-
import { jsx as
|
|
14353
|
+
import { jsx as jsx64, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
14200
14354
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
14201
14355
|
return /* @__PURE__ */ jsxs41("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
14202
|
-
/* @__PURE__ */
|
|
14356
|
+
/* @__PURE__ */ jsx64(Icon, { icon: CgCheck, iconColor: "currentColor" }),
|
|
14203
14357
|
text
|
|
14204
14358
|
] });
|
|
14205
14359
|
};
|
|
14206
14360
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
14207
|
-
return /* @__PURE__ */
|
|
14361
|
+
return /* @__PURE__ */ jsx64("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
14208
14362
|
};
|
|
14209
14363
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
14210
14364
|
return /* @__PURE__ */ jsxs41("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
14211
|
-
/* @__PURE__ */
|
|
14365
|
+
/* @__PURE__ */ jsx64(Icon, { icon: CgLock, iconColor: "currentColor", size: 12 }),
|
|
14212
14366
|
text
|
|
14213
14367
|
] });
|
|
14214
14368
|
};
|
|
14215
14369
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
14216
14370
|
return /* @__PURE__ */ jsxs41("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
14217
|
-
/* @__PURE__ */
|
|
14371
|
+
/* @__PURE__ */ jsx64(Icon, { icon: CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
14218
14372
|
text
|
|
14219
14373
|
] });
|
|
14220
14374
|
};
|
|
14221
14375
|
|
|
14222
14376
|
// src/components/Tiles/ResolveIcon.tsx
|
|
14223
|
-
import { jsx as
|
|
14377
|
+
import { jsx as jsx65 } from "@emotion/react/jsx-runtime";
|
|
14224
14378
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
14225
14379
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
14226
14380
|
const mapClassName = {
|
|
@@ -14228,13 +14382,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
14228
14382
|
logo: IntegrationTitleLogo
|
|
14229
14383
|
};
|
|
14230
14384
|
if (icon) {
|
|
14231
|
-
return CompIcon ? /* @__PURE__ */
|
|
14385
|
+
return CompIcon ? /* @__PURE__ */ jsx65(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ jsx65("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
14232
14386
|
}
|
|
14233
14387
|
return null;
|
|
14234
14388
|
};
|
|
14235
14389
|
|
|
14236
14390
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
14237
|
-
import { jsx as
|
|
14391
|
+
import { jsx as jsx66, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
14238
14392
|
var EditTeamIntegrationTile = ({
|
|
14239
14393
|
id,
|
|
14240
14394
|
icon,
|
|
@@ -14250,10 +14404,10 @@ var EditTeamIntegrationTile = ({
|
|
|
14250
14404
|
"data-testid": "configure-integration-container",
|
|
14251
14405
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
14252
14406
|
children: [
|
|
14253
|
-
/* @__PURE__ */
|
|
14254
|
-
/* @__PURE__ */
|
|
14255
|
-
!isPublic ? /* @__PURE__ */
|
|
14256
|
-
canEdit ? /* @__PURE__ */
|
|
14407
|
+
/* @__PURE__ */ jsx66(ResolveIcon, { icon, name, "data-testid": "integration-logo" }),
|
|
14408
|
+
/* @__PURE__ */ jsx66("span", { css: IntegrationTileName, "data-testid": "integration-card-name", children: name }),
|
|
14409
|
+
!isPublic ? /* @__PURE__ */ jsx66(IntegrationCustomBadge, {}) : null,
|
|
14410
|
+
canEdit ? /* @__PURE__ */ jsx66(
|
|
14257
14411
|
Button,
|
|
14258
14412
|
{
|
|
14259
14413
|
buttonType: "unimportant",
|
|
@@ -14271,10 +14425,10 @@ var EditTeamIntegrationTile = ({
|
|
|
14271
14425
|
};
|
|
14272
14426
|
|
|
14273
14427
|
// src/components/Tiles/IntegrationComingSoon.tsx
|
|
14274
|
-
import { css as
|
|
14428
|
+
import { css as css55 } from "@emotion/react";
|
|
14275
14429
|
import { useEffect as useEffect7, useState as useState7 } from "react";
|
|
14276
14430
|
import { CgHeart } from "react-icons/cg";
|
|
14277
|
-
import { jsx as
|
|
14431
|
+
import { jsx as jsx67, jsxs as jsxs43 } from "@emotion/react/jsx-runtime";
|
|
14278
14432
|
var IntegrationComingSoon = ({
|
|
14279
14433
|
name,
|
|
14280
14434
|
icon,
|
|
@@ -14303,9 +14457,9 @@ var IntegrationComingSoon = ({
|
|
|
14303
14457
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
14304
14458
|
...props,
|
|
14305
14459
|
children: [
|
|
14306
|
-
/* @__PURE__ */
|
|
14307
|
-
/* @__PURE__ */
|
|
14308
|
-
/* @__PURE__ */
|
|
14460
|
+
/* @__PURE__ */ jsx67(IntegrationComingSoonBadge, {}),
|
|
14461
|
+
/* @__PURE__ */ jsx67(ResolveIcon, { icon, name }),
|
|
14462
|
+
/* @__PURE__ */ jsx67("span", { css: IntegrationTileName, title: name, children: name }),
|
|
14309
14463
|
/* @__PURE__ */ jsxs43(
|
|
14310
14464
|
Button,
|
|
14311
14465
|
{
|
|
@@ -14316,11 +14470,11 @@ var IntegrationComingSoon = ({
|
|
|
14316
14470
|
role: "link",
|
|
14317
14471
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
14318
14472
|
children: [
|
|
14319
|
-
/* @__PURE__ */
|
|
14320
|
-
/* @__PURE__ */
|
|
14473
|
+
/* @__PURE__ */ jsx67("strong", { children: "+1" }),
|
|
14474
|
+
/* @__PURE__ */ jsx67(
|
|
14321
14475
|
"span",
|
|
14322
14476
|
{
|
|
14323
|
-
css:
|
|
14477
|
+
css: css55`
|
|
14324
14478
|
text-transform: uppercase;
|
|
14325
14479
|
color: var(--gray-500);
|
|
14326
14480
|
`,
|
|
@@ -14328,7 +14482,7 @@ var IntegrationComingSoon = ({
|
|
|
14328
14482
|
}
|
|
14329
14483
|
),
|
|
14330
14484
|
/* @__PURE__ */ jsxs43("span", { "aria-hidden": !upVote, children: [
|
|
14331
|
-
/* @__PURE__ */
|
|
14485
|
+
/* @__PURE__ */ jsx67(Icon, { icon: CgHeart, iconColor: "currentColor", size: 18 }),
|
|
14332
14486
|
"Thanks!"
|
|
14333
14487
|
] })
|
|
14334
14488
|
]
|
|
@@ -14340,8 +14494,8 @@ var IntegrationComingSoon = ({
|
|
|
14340
14494
|
};
|
|
14341
14495
|
|
|
14342
14496
|
// src/components/Tiles/styles/IntegrationLoadingTile.styles.ts
|
|
14343
|
-
import { css as
|
|
14344
|
-
var IntegrationLoadingTileContainer =
|
|
14497
|
+
import { css as css56 } from "@emotion/react";
|
|
14498
|
+
var IntegrationLoadingTileContainer = css56`
|
|
14345
14499
|
align-items: center;
|
|
14346
14500
|
box-sizing: border-box;
|
|
14347
14501
|
border-radius: var(--rounded-base);
|
|
@@ -14368,39 +14522,39 @@ var IntegrationLoadingTileContainer = css55`
|
|
|
14368
14522
|
}
|
|
14369
14523
|
}
|
|
14370
14524
|
`;
|
|
14371
|
-
var IntegrationLoadingTileImg =
|
|
14525
|
+
var IntegrationLoadingTileImg = css56`
|
|
14372
14526
|
width: 10rem;
|
|
14373
14527
|
height: 4rem;
|
|
14374
14528
|
margin: 0 auto;
|
|
14375
14529
|
`;
|
|
14376
|
-
var IntegrationLoadingTileText =
|
|
14530
|
+
var IntegrationLoadingTileText = css56`
|
|
14377
14531
|
width: 5rem;
|
|
14378
14532
|
height: var(--spacing-sm);
|
|
14379
14533
|
margin: var(--spacing-sm) 0;
|
|
14380
14534
|
`;
|
|
14381
|
-
var IntegrationLoadingFrame =
|
|
14535
|
+
var IntegrationLoadingFrame = css56`
|
|
14382
14536
|
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
14383
14537
|
border-radius: var(--rounded-base);
|
|
14384
14538
|
`;
|
|
14385
14539
|
|
|
14386
14540
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
14387
|
-
import { Fragment as Fragment9, jsx as
|
|
14541
|
+
import { Fragment as Fragment9, jsx as jsx68, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
14388
14542
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
14389
14543
|
const componentCount = Array.from(Array(count).keys());
|
|
14390
|
-
return /* @__PURE__ */
|
|
14391
|
-
/* @__PURE__ */
|
|
14392
|
-
/* @__PURE__ */
|
|
14544
|
+
return /* @__PURE__ */ jsx68(Fragment9, { children: componentCount.map((i) => /* @__PURE__ */ jsxs44("div", { css: IntegrationLoadingTileContainer, children: [
|
|
14545
|
+
/* @__PURE__ */ jsx68("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
14546
|
+
/* @__PURE__ */ jsx68("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
14393
14547
|
] }, i)) });
|
|
14394
14548
|
};
|
|
14395
14549
|
|
|
14396
14550
|
// src/components/Tiles/styles/IntegrationModalIcon.styles.ts
|
|
14397
|
-
import { css as
|
|
14398
|
-
var IntegrationModalIconContainer =
|
|
14551
|
+
import { css as css57 } from "@emotion/react";
|
|
14552
|
+
var IntegrationModalIconContainer = css57`
|
|
14399
14553
|
position: relative;
|
|
14400
14554
|
width: 50px;
|
|
14401
14555
|
margin-bottom: var(--spacing-base);
|
|
14402
14556
|
`;
|
|
14403
|
-
var IntegrationModalImage =
|
|
14557
|
+
var IntegrationModalImage = css57`
|
|
14404
14558
|
position: absolute;
|
|
14405
14559
|
inset: 0;
|
|
14406
14560
|
margin: auto;
|
|
@@ -14409,7 +14563,7 @@ var IntegrationModalImage = css56`
|
|
|
14409
14563
|
`;
|
|
14410
14564
|
|
|
14411
14565
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
14412
|
-
import { jsx as
|
|
14566
|
+
import { jsx as jsx69, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
|
|
14413
14567
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
14414
14568
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
14415
14569
|
let iconSrc = void 0;
|
|
@@ -14427,7 +14581,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
14427
14581
|
}
|
|
14428
14582
|
return /* @__PURE__ */ jsxs45("div", { css: IntegrationModalIconContainer, children: [
|
|
14429
14583
|
/* @__PURE__ */ jsxs45("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
14430
|
-
/* @__PURE__ */
|
|
14584
|
+
/* @__PURE__ */ jsx69(
|
|
14431
14585
|
"path",
|
|
14432
14586
|
{
|
|
14433
14587
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -14436,12 +14590,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
14436
14590
|
strokeWidth: "2"
|
|
14437
14591
|
}
|
|
14438
14592
|
),
|
|
14439
|
-
/* @__PURE__ */
|
|
14440
|
-
/* @__PURE__ */
|
|
14441
|
-
/* @__PURE__ */
|
|
14593
|
+
/* @__PURE__ */ jsx69("defs", { children: /* @__PURE__ */ jsxs45("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
14594
|
+
/* @__PURE__ */ jsx69("stop", { stopColor: "#1768B2" }),
|
|
14595
|
+
/* @__PURE__ */ jsx69("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
14442
14596
|
] }) })
|
|
14443
14597
|
] }),
|
|
14444
|
-
CompIcon ? /* @__PURE__ */
|
|
14598
|
+
CompIcon ? /* @__PURE__ */ jsx69(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : iconSrc ? /* @__PURE__ */ jsx69(
|
|
14445
14599
|
"img",
|
|
14446
14600
|
{
|
|
14447
14601
|
src: iconSrc,
|
|
@@ -14455,7 +14609,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
14455
14609
|
};
|
|
14456
14610
|
|
|
14457
14611
|
// src/components/Tiles/IntegrationTile.tsx
|
|
14458
|
-
import { jsx as
|
|
14612
|
+
import { jsx as jsx70, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
14459
14613
|
var IntegrationTile = ({
|
|
14460
14614
|
id,
|
|
14461
14615
|
icon,
|
|
@@ -14477,21 +14631,21 @@ var IntegrationTile = ({
|
|
|
14477
14631
|
"aria-label": name,
|
|
14478
14632
|
...btnProps,
|
|
14479
14633
|
children: [
|
|
14480
|
-
/* @__PURE__ */
|
|
14481
|
-
/* @__PURE__ */
|
|
14482
|
-
isInstalled ? /* @__PURE__ */
|
|
14483
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */
|
|
14484
|
-
!isPublic ? /* @__PURE__ */
|
|
14485
|
-
authorIcon ? /* @__PURE__ */
|
|
14634
|
+
/* @__PURE__ */ jsx70(ResolveIcon, { icon, name }),
|
|
14635
|
+
/* @__PURE__ */ jsx70("span", { css: IntegrationTileName, title: name, children: name }),
|
|
14636
|
+
isInstalled ? /* @__PURE__ */ jsx70(IntegrationedAddedBadge, {}) : null,
|
|
14637
|
+
requiedEntitlement && isPublic ? /* @__PURE__ */ jsx70(IntegrationPremiumBadge, {}) : null,
|
|
14638
|
+
!isPublic ? /* @__PURE__ */ jsx70(IntegrationCustomBadge, {}) : null,
|
|
14639
|
+
authorIcon ? /* @__PURE__ */ jsx70(ResolveIcon, { icon: authorIcon, name }) : null
|
|
14486
14640
|
]
|
|
14487
14641
|
}
|
|
14488
14642
|
);
|
|
14489
14643
|
};
|
|
14490
14644
|
|
|
14491
14645
|
// src/components/Tiles/styles/Tile.styles.ts
|
|
14492
|
-
import { css as
|
|
14646
|
+
import { css as css58 } from "@emotion/react";
|
|
14493
14647
|
var tileBorderSize = "1px";
|
|
14494
|
-
var Tile =
|
|
14648
|
+
var Tile = css58`
|
|
14495
14649
|
background: var(--white);
|
|
14496
14650
|
cursor: pointer;
|
|
14497
14651
|
border: ${tileBorderSize} solid var(--gray-300);
|
|
@@ -14515,18 +14669,18 @@ var Tile = css57`
|
|
|
14515
14669
|
`;
|
|
14516
14670
|
|
|
14517
14671
|
// src/components/Tiles/Tile.tsx
|
|
14518
|
-
import { jsx as
|
|
14672
|
+
import { jsx as jsx71 } from "@emotion/react/jsx-runtime";
|
|
14519
14673
|
var Tile2 = ({ children, disabled, ...props }) => {
|
|
14520
|
-
return /* @__PURE__ */
|
|
14674
|
+
return /* @__PURE__ */ jsx71("button", { type: "button", css: Tile, disabled, ...props, children });
|
|
14521
14675
|
};
|
|
14522
14676
|
|
|
14523
14677
|
// src/components/Tiles/styles/TileContainer.styles.ts
|
|
14524
|
-
import { css as
|
|
14525
|
-
var TileContainerWrapper = (theme, padding) =>
|
|
14678
|
+
import { css as css59 } from "@emotion/react";
|
|
14679
|
+
var TileContainerWrapper = (theme, padding) => css59`
|
|
14526
14680
|
background: ${theme};
|
|
14527
14681
|
padding: ${padding != "none" ? `var(--spacing-${padding})` : "0"};
|
|
14528
14682
|
`;
|
|
14529
|
-
var TileContainerInner = (gap, templateColumns) =>
|
|
14683
|
+
var TileContainerInner = (gap, templateColumns) => css59`
|
|
14530
14684
|
display: grid;
|
|
14531
14685
|
grid-template-columns: ${templateColumns};
|
|
14532
14686
|
gap: var(--spacing-${gap});
|
|
@@ -14540,7 +14694,7 @@ var TileContainerInner = (gap, templateColumns) => css58`
|
|
|
14540
14694
|
`;
|
|
14541
14695
|
|
|
14542
14696
|
// src/components/Tiles/TileContainer.tsx
|
|
14543
|
-
import { jsx as
|
|
14697
|
+
import { jsx as jsx72 } from "@emotion/react/jsx-runtime";
|
|
14544
14698
|
var TileContainer = ({
|
|
14545
14699
|
bgColor = "var(--brand-secondary-2)",
|
|
14546
14700
|
containerPadding = "base",
|
|
@@ -14549,25 +14703,25 @@ var TileContainer = ({
|
|
|
14549
14703
|
children,
|
|
14550
14704
|
...props
|
|
14551
14705
|
}) => {
|
|
14552
|
-
return /* @__PURE__ */
|
|
14706
|
+
return /* @__PURE__ */ jsx72("div", { css: TileContainerWrapper(bgColor, containerPadding), ...props, children: /* @__PURE__ */ jsx72("div", { css: TileContainerInner(gap, gridTemplateColumns), children }) });
|
|
14553
14707
|
};
|
|
14554
14708
|
|
|
14555
14709
|
// src/components/Tiles/styles/TileText.styles.ts
|
|
14556
|
-
import { css as
|
|
14557
|
-
var TileHeading =
|
|
14710
|
+
import { css as css60 } from "@emotion/react";
|
|
14711
|
+
var TileHeading = css60`
|
|
14558
14712
|
font-size: var(--fs-base);
|
|
14559
14713
|
`;
|
|
14560
|
-
var TileText =
|
|
14714
|
+
var TileText = css60`
|
|
14561
14715
|
color: var(--gray-500);
|
|
14562
14716
|
font-size: var(--fs-sm);
|
|
14563
14717
|
line-height: 1.2;
|
|
14564
14718
|
`;
|
|
14565
14719
|
|
|
14566
14720
|
// src/components/Tiles/TileText.tsx
|
|
14567
|
-
import { jsx as
|
|
14721
|
+
import { jsx as jsx73 } from "@emotion/react/jsx-runtime";
|
|
14568
14722
|
var TileText2 = ({ as = "heading", children, ...props }) => {
|
|
14569
14723
|
const isHeading = as === "heading";
|
|
14570
|
-
return /* @__PURE__ */
|
|
14724
|
+
return /* @__PURE__ */ jsx73(
|
|
14571
14725
|
"span",
|
|
14572
14726
|
{
|
|
14573
14727
|
role: isHeading ? "heading" : void 0,
|
|
@@ -14579,37 +14733,37 @@ var TileText2 = ({ as = "heading", children, ...props }) => {
|
|
|
14579
14733
|
};
|
|
14580
14734
|
|
|
14581
14735
|
// src/components/IntegrationModalHeader/IntegrationModalHeader.styles.ts
|
|
14582
|
-
import { css as
|
|
14583
|
-
var IntegrationModalHeaderSVGBackground =
|
|
14736
|
+
import { css as css61 } from "@emotion/react";
|
|
14737
|
+
var IntegrationModalHeaderSVGBackground = css61`
|
|
14584
14738
|
position: absolute;
|
|
14585
14739
|
top: 0;
|
|
14586
14740
|
left: 0;
|
|
14587
14741
|
`;
|
|
14588
|
-
var IntegrationModalHeaderGroup =
|
|
14742
|
+
var IntegrationModalHeaderGroup = css61`
|
|
14589
14743
|
align-items: center;
|
|
14590
14744
|
display: flex;
|
|
14591
14745
|
gap: var(--spacing-sm);
|
|
14592
14746
|
margin: 0 0 var(--spacing-md);
|
|
14593
14747
|
position: relative;
|
|
14594
14748
|
`;
|
|
14595
|
-
var IntegrationModalHeaderTitleGroup =
|
|
14749
|
+
var IntegrationModalHeaderTitleGroup = css61`
|
|
14596
14750
|
align-items: center;
|
|
14597
14751
|
display: flex;
|
|
14598
14752
|
gap: var(--spacing-base);
|
|
14599
14753
|
`;
|
|
14600
|
-
var IntegrationModalHeaderTitle =
|
|
14754
|
+
var IntegrationModalHeaderTitle = css61`
|
|
14601
14755
|
margin-top: 0;
|
|
14602
14756
|
`;
|
|
14603
|
-
var IntegrationModalHeaderMenuPlacement =
|
|
14757
|
+
var IntegrationModalHeaderMenuPlacement = css61`
|
|
14604
14758
|
margin-bottom: var(--spacing-base);
|
|
14605
14759
|
`;
|
|
14606
|
-
var IntegrationModalHeaderContentWrapper =
|
|
14760
|
+
var IntegrationModalHeaderContentWrapper = css61`
|
|
14607
14761
|
position: relative;
|
|
14608
14762
|
z-index: var(--z-10);
|
|
14609
14763
|
`;
|
|
14610
14764
|
|
|
14611
14765
|
// src/components/IntegrationModalHeader/IntegrationModalHeader.tsx
|
|
14612
|
-
import { Fragment as Fragment10, jsx as
|
|
14766
|
+
import { Fragment as Fragment10, jsx as jsx74, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
14613
14767
|
var HexModalBackground = ({ ...props }) => {
|
|
14614
14768
|
return /* @__PURE__ */ jsxs47(
|
|
14615
14769
|
"svg",
|
|
@@ -14621,7 +14775,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14621
14775
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14622
14776
|
...props,
|
|
14623
14777
|
children: [
|
|
14624
|
-
/* @__PURE__ */
|
|
14778
|
+
/* @__PURE__ */ jsx74(
|
|
14625
14779
|
"path",
|
|
14626
14780
|
{
|
|
14627
14781
|
fillRule: "evenodd",
|
|
@@ -14630,7 +14784,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14630
14784
|
fill: "url(#paint0_linear_196_2737)"
|
|
14631
14785
|
}
|
|
14632
14786
|
),
|
|
14633
|
-
/* @__PURE__ */
|
|
14787
|
+
/* @__PURE__ */ jsx74("defs", { children: /* @__PURE__ */ jsxs47(
|
|
14634
14788
|
"linearGradient",
|
|
14635
14789
|
{
|
|
14636
14790
|
id: "paint0_linear_196_2737",
|
|
@@ -14640,8 +14794,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14640
14794
|
y2: "-95.2742",
|
|
14641
14795
|
gradientUnits: "userSpaceOnUse",
|
|
14642
14796
|
children: [
|
|
14643
|
-
/* @__PURE__ */
|
|
14644
|
-
/* @__PURE__ */
|
|
14797
|
+
/* @__PURE__ */ jsx74("stop", { stopColor: "#81DCDE" }),
|
|
14798
|
+
/* @__PURE__ */ jsx74("stop", { offset: "1", stopColor: "#428ED4" })
|
|
14645
14799
|
]
|
|
14646
14800
|
}
|
|
14647
14801
|
) })
|
|
@@ -14651,22 +14805,22 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14651
14805
|
};
|
|
14652
14806
|
var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
14653
14807
|
return /* @__PURE__ */ jsxs47(Fragment10, { children: [
|
|
14654
|
-
/* @__PURE__ */
|
|
14655
|
-
/* @__PURE__ */
|
|
14656
|
-
icon ? /* @__PURE__ */
|
|
14657
|
-
/* @__PURE__ */
|
|
14808
|
+
/* @__PURE__ */ jsx74(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
14809
|
+
/* @__PURE__ */ jsx74("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs47("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
14810
|
+
icon ? /* @__PURE__ */ jsx74(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
14811
|
+
/* @__PURE__ */ jsx74(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-testid": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
14658
14812
|
menu2 ? /* @__PURE__ */ jsxs47("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
14659
14813
|
menu2,
|
|
14660
14814
|
" "
|
|
14661
14815
|
] }) : null
|
|
14662
14816
|
] }) }),
|
|
14663
|
-
/* @__PURE__ */
|
|
14817
|
+
/* @__PURE__ */ jsx74("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
14664
14818
|
] });
|
|
14665
14819
|
};
|
|
14666
14820
|
|
|
14667
14821
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
14668
14822
|
import MonacoEditor from "@monaco-editor/react";
|
|
14669
|
-
import { jsx as
|
|
14823
|
+
import { jsx as jsx75 } from "@emotion/react/jsx-runtime";
|
|
14670
14824
|
var minEditorHeightPx = 150;
|
|
14671
14825
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
14672
14826
|
let effectiveHeight = height;
|
|
@@ -14676,7 +14830,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
14676
14830
|
if (typeof effectiveHeight === "number" && effectiveHeight < minEditorHeightPx) {
|
|
14677
14831
|
effectiveHeight = minEditorHeightPx;
|
|
14678
14832
|
}
|
|
14679
|
-
return /* @__PURE__ */
|
|
14833
|
+
return /* @__PURE__ */ jsx75(
|
|
14680
14834
|
MonacoEditor,
|
|
14681
14835
|
{
|
|
14682
14836
|
height: effectiveHeight,
|
|
@@ -14713,39 +14867,39 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
14713
14867
|
};
|
|
14714
14868
|
|
|
14715
14869
|
// src/components/LimitsBar/LimitsBar.styles.ts
|
|
14716
|
-
import { css as
|
|
14717
|
-
var LimitsBarContainer =
|
|
14870
|
+
import { css as css62 } from "@emotion/react";
|
|
14871
|
+
var LimitsBarContainer = css62`
|
|
14718
14872
|
margin-block: var(--spacing-sm);
|
|
14719
14873
|
`;
|
|
14720
|
-
var LimitsBarProgressBar =
|
|
14874
|
+
var LimitsBarProgressBar = css62`
|
|
14721
14875
|
background: var(--gray-100);
|
|
14722
14876
|
margin-top: var(--spacing-sm);
|
|
14723
14877
|
position: relative;
|
|
14724
14878
|
overflow: hidden;
|
|
14725
14879
|
height: 0.25rem;
|
|
14726
14880
|
`;
|
|
14727
|
-
var LimitsBarProgressBarLine =
|
|
14881
|
+
var LimitsBarProgressBarLine = css62`
|
|
14728
14882
|
position: absolute;
|
|
14729
14883
|
inset: 0;
|
|
14730
14884
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
14731
14885
|
`;
|
|
14732
|
-
var LimitsBarLabelContainer =
|
|
14886
|
+
var LimitsBarLabelContainer = css62`
|
|
14733
14887
|
display: flex;
|
|
14734
14888
|
justify-content: space-between;
|
|
14735
14889
|
font-weight: var(--fw-bold);
|
|
14736
14890
|
`;
|
|
14737
|
-
var LimitsBarLabel =
|
|
14891
|
+
var LimitsBarLabel = css62`
|
|
14738
14892
|
font-size: var(--fs-baase);
|
|
14739
14893
|
`;
|
|
14740
|
-
var LimitsBarBgColor = (statusColor) =>
|
|
14894
|
+
var LimitsBarBgColor = (statusColor) => css62`
|
|
14741
14895
|
background: ${statusColor};
|
|
14742
14896
|
`;
|
|
14743
|
-
var LimitsBarTextColor = (statusColor) =>
|
|
14897
|
+
var LimitsBarTextColor = (statusColor) => css62`
|
|
14744
14898
|
color: ${statusColor};
|
|
14745
14899
|
`;
|
|
14746
14900
|
|
|
14747
14901
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
14748
|
-
import { jsx as
|
|
14902
|
+
import { jsx as jsx76, jsxs as jsxs48 } from "@emotion/react/jsx-runtime";
|
|
14749
14903
|
var LimitsBar = ({ current, max, label }) => {
|
|
14750
14904
|
const maxPercentage = 100;
|
|
14751
14905
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -14758,14 +14912,14 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
14758
14912
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
14759
14913
|
return /* @__PURE__ */ jsxs48("div", { css: LimitsBarContainer, children: [
|
|
14760
14914
|
/* @__PURE__ */ jsxs48("div", { css: LimitsBarLabelContainer, children: [
|
|
14761
|
-
/* @__PURE__ */
|
|
14915
|
+
/* @__PURE__ */ jsx76("span", { css: LimitsBarLabel, children: label }),
|
|
14762
14916
|
/* @__PURE__ */ jsxs48("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
14763
14917
|
current,
|
|
14764
14918
|
" of ",
|
|
14765
14919
|
max
|
|
14766
14920
|
] })
|
|
14767
14921
|
] }),
|
|
14768
|
-
/* @__PURE__ */
|
|
14922
|
+
/* @__PURE__ */ jsx76(
|
|
14769
14923
|
"div",
|
|
14770
14924
|
{
|
|
14771
14925
|
role: "progressbar",
|
|
@@ -14774,7 +14928,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
14774
14928
|
"aria-valuemax": max,
|
|
14775
14929
|
"aria-valuetext": `${current} of ${max}`,
|
|
14776
14930
|
css: LimitsBarProgressBar,
|
|
14777
|
-
children: /* @__PURE__ */
|
|
14931
|
+
children: /* @__PURE__ */ jsx76(
|
|
14778
14932
|
"span",
|
|
14779
14933
|
{
|
|
14780
14934
|
role: "presentation",
|
|
@@ -14790,8 +14944,8 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
14790
14944
|
};
|
|
14791
14945
|
|
|
14792
14946
|
// src/components/LinkList/LinkList.styles.ts
|
|
14793
|
-
import { css as
|
|
14794
|
-
var LinkListContainer = (padding) =>
|
|
14947
|
+
import { css as css63 } from "@emotion/react";
|
|
14948
|
+
var LinkListContainer = (padding) => css63`
|
|
14795
14949
|
padding: ${padding};
|
|
14796
14950
|
|
|
14797
14951
|
${mq("sm")} {
|
|
@@ -14799,30 +14953,30 @@ var LinkListContainer = (padding) => css62`
|
|
|
14799
14953
|
grid-row: 1 / last-line;
|
|
14800
14954
|
}
|
|
14801
14955
|
`;
|
|
14802
|
-
var LinkListTitle =
|
|
14956
|
+
var LinkListTitle = css63`
|
|
14803
14957
|
font-weight: var(--fw-bold);
|
|
14804
14958
|
font-size: var(--fs-sm);
|
|
14805
14959
|
text-transform: uppercase;
|
|
14806
14960
|
`;
|
|
14807
14961
|
|
|
14808
14962
|
// src/components/LinkList/LinkList.tsx
|
|
14809
|
-
import { jsx as
|
|
14963
|
+
import { jsx as jsx77, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
14810
14964
|
var LinkList = ({ title, padding = "var(--spacing-md)", children, ...props }) => {
|
|
14811
14965
|
return /* @__PURE__ */ jsxs49("div", { css: LinkListContainer(padding), ...props, children: [
|
|
14812
|
-
/* @__PURE__ */
|
|
14966
|
+
/* @__PURE__ */ jsx77(Heading, { level: 3, css: LinkListTitle, children: title }),
|
|
14813
14967
|
children
|
|
14814
14968
|
] });
|
|
14815
14969
|
};
|
|
14816
14970
|
|
|
14817
14971
|
// src/components/List/ScrollableList.tsx
|
|
14818
|
-
import { css as
|
|
14972
|
+
import { css as css65 } from "@emotion/react";
|
|
14819
14973
|
|
|
14820
14974
|
// src/components/List/styles/ScrollableList.styles.ts
|
|
14821
|
-
import { css as
|
|
14822
|
-
var ScrollableListContainer =
|
|
14975
|
+
import { css as css64 } from "@emotion/react";
|
|
14976
|
+
var ScrollableListContainer = css64`
|
|
14823
14977
|
position: relative;
|
|
14824
14978
|
`;
|
|
14825
|
-
var ScrollableListInner =
|
|
14979
|
+
var ScrollableListInner = css64`
|
|
14826
14980
|
background: var(--gray-50);
|
|
14827
14981
|
border-top: 1px solid var(--gray-200);
|
|
14828
14982
|
border-bottom: 1px solid var(--gray-200);
|
|
@@ -14845,19 +14999,19 @@ var ScrollableListInner = css63`
|
|
|
14845
14999
|
`;
|
|
14846
15000
|
|
|
14847
15001
|
// src/components/List/ScrollableList.tsx
|
|
14848
|
-
import { jsx as
|
|
15002
|
+
import { jsx as jsx78, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
14849
15003
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
14850
15004
|
return /* @__PURE__ */ jsxs50("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
14851
|
-
label ? /* @__PURE__ */
|
|
15005
|
+
label ? /* @__PURE__ */ jsx78(
|
|
14852
15006
|
"span",
|
|
14853
15007
|
{
|
|
14854
|
-
css:
|
|
15008
|
+
css: css65`
|
|
14855
15009
|
${labelText}
|
|
14856
15010
|
`,
|
|
14857
15011
|
children: label
|
|
14858
15012
|
}
|
|
14859
15013
|
) : null,
|
|
14860
|
-
/* @__PURE__ */
|
|
15014
|
+
/* @__PURE__ */ jsx78("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
14861
15015
|
] });
|
|
14862
15016
|
};
|
|
14863
15017
|
|
|
@@ -14865,8 +15019,8 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
14865
15019
|
import { CgCheck as CgCheck2 } from "react-icons/cg";
|
|
14866
15020
|
|
|
14867
15021
|
// src/components/List/styles/ScrollableListItem.styles.ts
|
|
14868
|
-
import { css as
|
|
14869
|
-
var ScrollableListItemContainer =
|
|
15022
|
+
import { css as css66 } from "@emotion/react";
|
|
15023
|
+
var ScrollableListItemContainer = css66`
|
|
14870
15024
|
align-items: center;
|
|
14871
15025
|
background: var(--white);
|
|
14872
15026
|
border-radius: var(--rounded-base);
|
|
@@ -14875,13 +15029,13 @@ var ScrollableListItemContainer = css65`
|
|
|
14875
15029
|
min-height: 52px;
|
|
14876
15030
|
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
14877
15031
|
`;
|
|
14878
|
-
var ScrollableListItemShadow =
|
|
15032
|
+
var ScrollableListItemShadow = css66`
|
|
14879
15033
|
box-shadow: var(--shadow-base);
|
|
14880
15034
|
`;
|
|
14881
|
-
var ScrollableListItemActive =
|
|
15035
|
+
var ScrollableListItemActive = css66`
|
|
14882
15036
|
border-color: var(--brand-secondary-3);
|
|
14883
15037
|
`;
|
|
14884
|
-
var ScrollableListItemBtn =
|
|
15038
|
+
var ScrollableListItemBtn = css66`
|
|
14885
15039
|
align-items: center;
|
|
14886
15040
|
border: none;
|
|
14887
15041
|
background: transparent;
|
|
@@ -14896,27 +15050,27 @@ var ScrollableListItemBtn = css65`
|
|
|
14896
15050
|
outline: none;
|
|
14897
15051
|
}
|
|
14898
15052
|
`;
|
|
14899
|
-
var ScrollableListInputLabel =
|
|
15053
|
+
var ScrollableListInputLabel = css66`
|
|
14900
15054
|
align-items: center;
|
|
14901
15055
|
cursor: pointer;
|
|
14902
15056
|
display: flex;
|
|
14903
15057
|
padding: var(--spacing-xs) var(--spacing-base) var(--spacing-xs);
|
|
14904
15058
|
flex-grow: 1;
|
|
14905
15059
|
`;
|
|
14906
|
-
var ScrollableListInputText =
|
|
15060
|
+
var ScrollableListInputText = css66`
|
|
14907
15061
|
align-items: center;
|
|
14908
15062
|
display: flex;
|
|
14909
15063
|
gap: var(--spacing-sm);
|
|
14910
15064
|
flex-grow: 1;
|
|
14911
15065
|
flex-wrap: wrap;
|
|
14912
15066
|
`;
|
|
14913
|
-
var ScrollableListHiddenInput =
|
|
15067
|
+
var ScrollableListHiddenInput = css66`
|
|
14914
15068
|
position: absolute;
|
|
14915
15069
|
height: 0;
|
|
14916
15070
|
width: 0;
|
|
14917
15071
|
opacity: 0;
|
|
14918
15072
|
`;
|
|
14919
|
-
var ScrollableListIcon =
|
|
15073
|
+
var ScrollableListIcon = css66`
|
|
14920
15074
|
border-radius: var(--rounded-full);
|
|
14921
15075
|
background: var(--brand-secondary-3);
|
|
14922
15076
|
color: var(--white);
|
|
@@ -14924,12 +15078,12 @@ var ScrollableListIcon = css65`
|
|
|
14924
15078
|
min-width: 24px;
|
|
14925
15079
|
opacity: 0;
|
|
14926
15080
|
`;
|
|
14927
|
-
var ScrollableListIconVisible =
|
|
15081
|
+
var ScrollableListIconVisible = css66`
|
|
14928
15082
|
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
14929
15083
|
`;
|
|
14930
15084
|
|
|
14931
15085
|
// src/components/List/ScrollableListInputItem.tsx
|
|
14932
|
-
import { jsx as
|
|
15086
|
+
import { jsx as jsx79, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
14933
15087
|
var ScrollableListInputItem = ({
|
|
14934
15088
|
label,
|
|
14935
15089
|
icon,
|
|
@@ -14939,7 +15093,7 @@ var ScrollableListInputItem = ({
|
|
|
14939
15093
|
labelTestId,
|
|
14940
15094
|
...props
|
|
14941
15095
|
}) => {
|
|
14942
|
-
return /* @__PURE__ */
|
|
15096
|
+
return /* @__PURE__ */ jsx79(
|
|
14943
15097
|
"div",
|
|
14944
15098
|
{
|
|
14945
15099
|
css: [
|
|
@@ -14953,8 +15107,8 @@ var ScrollableListInputItem = ({
|
|
|
14953
15107
|
icon,
|
|
14954
15108
|
label
|
|
14955
15109
|
] }),
|
|
14956
|
-
/* @__PURE__ */
|
|
14957
|
-
/* @__PURE__ */
|
|
15110
|
+
/* @__PURE__ */ jsx79("div", { css: ScrollableListHiddenInput, children }),
|
|
15111
|
+
/* @__PURE__ */ jsx79(
|
|
14958
15112
|
Icon,
|
|
14959
15113
|
{
|
|
14960
15114
|
icon: CgCheck2,
|
|
@@ -14972,14 +15126,14 @@ var ScrollableListInputItem = ({
|
|
|
14972
15126
|
|
|
14973
15127
|
// src/components/List/ScrollableListItem.tsx
|
|
14974
15128
|
import { CgCheck as CgCheck3 } from "react-icons/cg";
|
|
14975
|
-
import { jsx as
|
|
15129
|
+
import { jsx as jsx80, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
14976
15130
|
var ScrollableListItem = ({
|
|
14977
15131
|
buttonText,
|
|
14978
15132
|
active,
|
|
14979
15133
|
disableShadow,
|
|
14980
15134
|
...props
|
|
14981
15135
|
}) => {
|
|
14982
|
-
return /* @__PURE__ */
|
|
15136
|
+
return /* @__PURE__ */ jsx80(
|
|
14983
15137
|
"div",
|
|
14984
15138
|
{
|
|
14985
15139
|
css: [
|
|
@@ -14988,8 +15142,8 @@ var ScrollableListItem = ({
|
|
|
14988
15142
|
active ? ScrollableListItemActive : void 0
|
|
14989
15143
|
],
|
|
14990
15144
|
children: /* @__PURE__ */ jsxs52("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
14991
|
-
/* @__PURE__ */
|
|
14992
|
-
/* @__PURE__ */
|
|
15145
|
+
/* @__PURE__ */ jsx80("span", { children: buttonText }),
|
|
15146
|
+
/* @__PURE__ */ jsx80(
|
|
14993
15147
|
Icon,
|
|
14994
15148
|
{
|
|
14995
15149
|
icon: CgCheck3,
|
|
@@ -15004,7 +15158,7 @@ var ScrollableListItem = ({
|
|
|
15004
15158
|
};
|
|
15005
15159
|
|
|
15006
15160
|
// src/components/LoadingIndicator/LoadingIndicator.styles.ts
|
|
15007
|
-
import { css as
|
|
15161
|
+
import { css as css67, keyframes as keyframes3 } from "@emotion/react";
|
|
15008
15162
|
var bounceFade = keyframes3`
|
|
15009
15163
|
0%, 100% {
|
|
15010
15164
|
opacity: 1.0;
|
|
@@ -15022,11 +15176,11 @@ var bounceFade = keyframes3`
|
|
|
15022
15176
|
transform: translateY(-5px);
|
|
15023
15177
|
}
|
|
15024
15178
|
`;
|
|
15025
|
-
var loader =
|
|
15179
|
+
var loader = css67`
|
|
15026
15180
|
display: inline-flex;
|
|
15027
15181
|
justify-content: center;
|
|
15028
15182
|
`;
|
|
15029
|
-
var loadingDot =
|
|
15183
|
+
var loadingDot = css67`
|
|
15030
15184
|
background-color: var(--gray-700);
|
|
15031
15185
|
display: block;
|
|
15032
15186
|
border-radius: var(--rounded-full);
|
|
@@ -15050,12 +15204,12 @@ var loadingDot = css66`
|
|
|
15050
15204
|
`;
|
|
15051
15205
|
|
|
15052
15206
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
15053
|
-
import { jsx as
|
|
15207
|
+
import { jsx as jsx81, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
15054
15208
|
var LoadingIndicator = ({ ...props }) => {
|
|
15055
15209
|
return /* @__PURE__ */ jsxs53("div", { role: "alert", css: loader, "data-testid": "loading-indicator", ...props, children: [
|
|
15056
|
-
/* @__PURE__ */
|
|
15057
|
-
/* @__PURE__ */
|
|
15058
|
-
/* @__PURE__ */
|
|
15210
|
+
/* @__PURE__ */ jsx81("span", { css: loadingDot }),
|
|
15211
|
+
/* @__PURE__ */ jsx81("span", { css: loadingDot }),
|
|
15212
|
+
/* @__PURE__ */ jsx81("span", { css: loadingDot })
|
|
15059
15213
|
] });
|
|
15060
15214
|
};
|
|
15061
15215
|
|
|
@@ -15063,8 +15217,8 @@ var LoadingIndicator = ({ ...props }) => {
|
|
|
15063
15217
|
import { useCallback as useCallback2, useEffect as useEffect8, useRef as useRef5 } from "react";
|
|
15064
15218
|
|
|
15065
15219
|
// src/components/LoadingOverlay/LoadingOverlay.styles.ts
|
|
15066
|
-
import { css as
|
|
15067
|
-
var loadingOverlayContainer =
|
|
15220
|
+
import { css as css68 } from "@emotion/react";
|
|
15221
|
+
var loadingOverlayContainer = css68`
|
|
15068
15222
|
position: absolute;
|
|
15069
15223
|
inset: 0;
|
|
15070
15224
|
overflow: hidden;
|
|
@@ -15072,30 +15226,30 @@ var loadingOverlayContainer = css67`
|
|
|
15072
15226
|
padding: var(--spacing-xl);
|
|
15073
15227
|
overflow-y: auto;
|
|
15074
15228
|
`;
|
|
15075
|
-
var loadingOverlayVisible =
|
|
15229
|
+
var loadingOverlayVisible = css68`
|
|
15076
15230
|
display: flex;
|
|
15077
15231
|
`;
|
|
15078
|
-
var loadingOverlayHidden =
|
|
15232
|
+
var loadingOverlayHidden = css68`
|
|
15079
15233
|
display: none;
|
|
15080
15234
|
`;
|
|
15081
|
-
var loadingOverlayBackground = (bgColor) =>
|
|
15235
|
+
var loadingOverlayBackground = (bgColor) => css68`
|
|
15082
15236
|
background: ${bgColor};
|
|
15083
15237
|
opacity: 0.92;
|
|
15084
15238
|
position: absolute;
|
|
15085
15239
|
inset: 0 0;
|
|
15086
15240
|
`;
|
|
15087
|
-
var loadingOverlayBody =
|
|
15241
|
+
var loadingOverlayBody = css68`
|
|
15088
15242
|
align-items: center;
|
|
15089
15243
|
display: flex;
|
|
15090
15244
|
flex-direction: column;
|
|
15091
15245
|
`;
|
|
15092
|
-
var loadingOverlayMessage =
|
|
15246
|
+
var loadingOverlayMessage = css68`
|
|
15093
15247
|
color: var(--gray-600);
|
|
15094
15248
|
margin: var(--spacing-base) 0 0;
|
|
15095
15249
|
`;
|
|
15096
15250
|
|
|
15097
15251
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
15098
|
-
import { jsx as
|
|
15252
|
+
import { jsx as jsx82, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
15099
15253
|
var LoadingOverlay = ({
|
|
15100
15254
|
isActive,
|
|
15101
15255
|
statusMessage,
|
|
@@ -15129,9 +15283,9 @@ var LoadingOverlay = ({
|
|
|
15129
15283
|
"aria-hidden": !isActive,
|
|
15130
15284
|
"aria-busy": isActive && !isPaused,
|
|
15131
15285
|
children: [
|
|
15132
|
-
/* @__PURE__ */
|
|
15133
|
-
/* @__PURE__ */
|
|
15134
|
-
/* @__PURE__ */
|
|
15286
|
+
/* @__PURE__ */ jsx82("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
15287
|
+
/* @__PURE__ */ jsx82("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ jsxs54("div", { css: loadingOverlayBody, children: [
|
|
15288
|
+
/* @__PURE__ */ jsx82(
|
|
15135
15289
|
AnimationFile,
|
|
15136
15290
|
{
|
|
15137
15291
|
lottieRef,
|
|
@@ -15146,15 +15300,15 @@ var LoadingOverlay = ({
|
|
|
15146
15300
|
}
|
|
15147
15301
|
}
|
|
15148
15302
|
),
|
|
15149
|
-
statusMessage ? /* @__PURE__ */
|
|
15150
|
-
/* @__PURE__ */
|
|
15303
|
+
statusMessage ? /* @__PURE__ */ jsx82("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
|
|
15304
|
+
/* @__PURE__ */ jsx82("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
|
|
15151
15305
|
] }) })
|
|
15152
15306
|
]
|
|
15153
15307
|
}
|
|
15154
15308
|
);
|
|
15155
15309
|
};
|
|
15156
15310
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
15157
|
-
return /* @__PURE__ */
|
|
15311
|
+
return /* @__PURE__ */ jsx82(
|
|
15158
15312
|
"svg",
|
|
15159
15313
|
{
|
|
15160
15314
|
viewBox: "0 0 38 38",
|
|
@@ -15164,9 +15318,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
15164
15318
|
stroke: "currentColor",
|
|
15165
15319
|
...props,
|
|
15166
15320
|
"data-testid": "loading-icon",
|
|
15167
|
-
children: /* @__PURE__ */
|
|
15168
|
-
/* @__PURE__ */
|
|
15169
|
-
/* @__PURE__ */
|
|
15321
|
+
children: /* @__PURE__ */ jsx82("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs54("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
15322
|
+
/* @__PURE__ */ jsx82("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
15323
|
+
/* @__PURE__ */ jsx82("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ jsx82(
|
|
15170
15324
|
"animateTransform",
|
|
15171
15325
|
{
|
|
15172
15326
|
attributeName: "transform",
|
|
@@ -15187,8 +15341,8 @@ import React19 from "react";
|
|
|
15187
15341
|
import { CgClose as CgClose5 } from "react-icons/cg";
|
|
15188
15342
|
|
|
15189
15343
|
// src/components/Modal/Modal.styles.ts
|
|
15190
|
-
import { css as
|
|
15191
|
-
var modalWrapperStyles =
|
|
15344
|
+
import { css as css69 } from "@emotion/react";
|
|
15345
|
+
var modalWrapperStyles = css69`
|
|
15192
15346
|
position: fixed;
|
|
15193
15347
|
inset: 0;
|
|
15194
15348
|
display: flex;
|
|
@@ -15196,13 +15350,13 @@ var modalWrapperStyles = css68`
|
|
|
15196
15350
|
justify-content: center;
|
|
15197
15351
|
z-index: var(--z-drawer);
|
|
15198
15352
|
`;
|
|
15199
|
-
var modalBackdropStyles =
|
|
15353
|
+
var modalBackdropStyles = css69`
|
|
15200
15354
|
position: absolute;
|
|
15201
15355
|
inset: 0;
|
|
15202
15356
|
background-color: var(--brand-secondary-1);
|
|
15203
15357
|
opacity: 0.4;
|
|
15204
15358
|
`;
|
|
15205
|
-
var modalStyles =
|
|
15359
|
+
var modalStyles = css69`
|
|
15206
15360
|
position: relative;
|
|
15207
15361
|
display: flex;
|
|
15208
15362
|
flex-direction: column;
|
|
@@ -15217,21 +15371,21 @@ var modalStyles = css68`
|
|
|
15217
15371
|
color: unset;
|
|
15218
15372
|
z-index: 1;
|
|
15219
15373
|
`;
|
|
15220
|
-
var modalHeaderStyles =
|
|
15374
|
+
var modalHeaderStyles = css69`
|
|
15221
15375
|
display: flex;
|
|
15222
15376
|
align-items: flex-start;
|
|
15223
15377
|
gap: var(--spacing-base);
|
|
15224
15378
|
font-size: var(--fs-md);
|
|
15225
15379
|
line-height: 1.2;
|
|
15226
15380
|
`;
|
|
15227
|
-
var modalCloseButtonStyles =
|
|
15381
|
+
var modalCloseButtonStyles = css69`
|
|
15228
15382
|
display: block;
|
|
15229
15383
|
padding: 0;
|
|
15230
15384
|
background: transparent;
|
|
15231
15385
|
border: none;
|
|
15232
15386
|
margin-left: auto;
|
|
15233
15387
|
`;
|
|
15234
|
-
var modalContentStyles =
|
|
15388
|
+
var modalContentStyles = css69`
|
|
15235
15389
|
flex: 1;
|
|
15236
15390
|
background-color: white;
|
|
15237
15391
|
padding: var(--spacing-md);
|
|
@@ -15240,7 +15394,7 @@ var modalContentStyles = css68`
|
|
|
15240
15394
|
`;
|
|
15241
15395
|
|
|
15242
15396
|
// src/components/Modal/Modal.tsx
|
|
15243
|
-
import { jsx as
|
|
15397
|
+
import { jsx as jsx83, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
15244
15398
|
var defaultModalWidth = "75rem";
|
|
15245
15399
|
var defaultModalHeight = "51rem";
|
|
15246
15400
|
var Modal = React19.forwardRef(
|
|
@@ -15260,11 +15414,11 @@ var Modal = React19.forwardRef(
|
|
|
15260
15414
|
shortcut: "escape"
|
|
15261
15415
|
});
|
|
15262
15416
|
return /* @__PURE__ */ jsxs55("div", { css: [modalWrapperStyles, wrapperClassName], children: [
|
|
15263
|
-
/* @__PURE__ */
|
|
15417
|
+
/* @__PURE__ */ jsx83("div", { onClick: onRequestClose, css: modalBackdropStyles }),
|
|
15264
15418
|
/* @__PURE__ */ jsxs55("dialog", { ref, css: modalStyles, style: { width, height }, ...modalProps, children: [
|
|
15265
15419
|
/* @__PURE__ */ jsxs55("div", { css: modalHeaderStyles, children: [
|
|
15266
|
-
/* @__PURE__ */
|
|
15267
|
-
/* @__PURE__ */
|
|
15420
|
+
/* @__PURE__ */ jsx83("div", { children: header }),
|
|
15421
|
+
/* @__PURE__ */ jsx83(
|
|
15268
15422
|
Button,
|
|
15269
15423
|
{
|
|
15270
15424
|
type: "button",
|
|
@@ -15272,64 +15426,89 @@ var Modal = React19.forwardRef(
|
|
|
15272
15426
|
css: modalCloseButtonStyles,
|
|
15273
15427
|
title: "Close dialog",
|
|
15274
15428
|
buttonType: "ghost",
|
|
15275
|
-
children: /* @__PURE__ */
|
|
15429
|
+
children: /* @__PURE__ */ jsx83(Icon, { icon: CgClose5, iconColor: "gray", size: 24 })
|
|
15276
15430
|
}
|
|
15277
15431
|
)
|
|
15278
15432
|
] }),
|
|
15279
|
-
/* @__PURE__ */
|
|
15280
|
-
buttonGroup ? /* @__PURE__ */
|
|
15433
|
+
/* @__PURE__ */ jsx83("div", { css: [modalContentStyles, !withoutContentPadding ? null : { padding: 0 }], children }),
|
|
15434
|
+
buttonGroup ? /* @__PURE__ */ jsx83(HorizontalRhythm, { children: buttonGroup }) : null
|
|
15281
15435
|
] })
|
|
15282
15436
|
] });
|
|
15283
15437
|
}
|
|
15284
15438
|
);
|
|
15285
15439
|
Modal.displayName = "Modal";
|
|
15286
15440
|
|
|
15287
|
-
// src/components/ParameterInputs/
|
|
15288
|
-
import {
|
|
15289
|
-
var
|
|
15441
|
+
// src/components/ParameterInputs/hooks/ParameterShellContext.tsx
|
|
15442
|
+
import { createContext as createContext5, useContext as useContext6 } from "react";
|
|
15443
|
+
var ParameterShellContext = createContext5({
|
|
15444
|
+
id: "",
|
|
15445
|
+
label: "",
|
|
15446
|
+
hiddenLabel: void 0,
|
|
15447
|
+
errorMessage: void 0,
|
|
15448
|
+
handleManuallySetErrorMessage: () => {
|
|
15449
|
+
}
|
|
15450
|
+
});
|
|
15451
|
+
var useParameterShell = () => {
|
|
15452
|
+
const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } = useContext6(ParameterShellContext);
|
|
15453
|
+
return {
|
|
15454
|
+
id,
|
|
15455
|
+
label,
|
|
15456
|
+
hiddenLabel,
|
|
15457
|
+
errorMessage,
|
|
15458
|
+
handleManuallySetErrorMessage
|
|
15459
|
+
};
|
|
15460
|
+
};
|
|
15461
|
+
|
|
15462
|
+
// src/components/ParameterInputs/styles/LabelLeadingIcon.styles.ts
|
|
15463
|
+
import { css as css70 } from "@emotion/react";
|
|
15464
|
+
var inputIconBtn = css70`
|
|
15290
15465
|
align-items: center;
|
|
15291
15466
|
border: none;
|
|
15292
15467
|
border-radius: var(--rounded-base);
|
|
15293
15468
|
color: var(--gray-500);
|
|
15294
15469
|
background: none;
|
|
15295
15470
|
display: flex;
|
|
15296
|
-
padding: var(--spacing-2xs);
|
|
15297
15471
|
transition: background var(--duration-fast) var(--timing-ease-out),
|
|
15298
15472
|
color var(--duration-fast) var(--timing-ease-out);
|
|
15299
15473
|
|
|
15300
15474
|
&:hover,
|
|
15301
15475
|
&[aria-pressed='true']:not(:disabled) {
|
|
15302
|
-
|
|
15303
|
-
color: var(--white);
|
|
15476
|
+
color: var(--accent-light-active);
|
|
15304
15477
|
}
|
|
15305
15478
|
|
|
15306
15479
|
&[aria-disabled='true'] {
|
|
15307
15480
|
background: none;
|
|
15308
15481
|
color: currentColor;
|
|
15309
15482
|
}
|
|
15483
|
+
|
|
15484
|
+
&:focus {
|
|
15485
|
+
outline: none;
|
|
15486
|
+
}
|
|
15310
15487
|
`;
|
|
15311
15488
|
|
|
15312
|
-
// src/components/ParameterInputs/
|
|
15313
|
-
import { jsx as
|
|
15314
|
-
var
|
|
15489
|
+
// src/components/ParameterInputs/LabelLeadingIcon.tsx
|
|
15490
|
+
import { jsx as jsx84, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
15491
|
+
var LabelLeadingIcon = ({
|
|
15315
15492
|
icon,
|
|
15316
15493
|
iconColor,
|
|
15317
15494
|
children,
|
|
15318
15495
|
isBound,
|
|
15496
|
+
isActive,
|
|
15319
15497
|
isLocked,
|
|
15498
|
+
title,
|
|
15320
15499
|
...props
|
|
15321
15500
|
}) => {
|
|
15322
|
-
const
|
|
15323
|
-
return /* @__PURE__ */
|
|
15501
|
+
const titleFr = title != null ? title : isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
15502
|
+
return /* @__PURE__ */ jsx84(Tooltip, { title: titleFr, children: /* @__PURE__ */ jsxs56(
|
|
15324
15503
|
"button",
|
|
15325
15504
|
{
|
|
15326
15505
|
css: inputIconBtn,
|
|
15327
15506
|
type: "button",
|
|
15328
|
-
"aria-pressed": isBound,
|
|
15507
|
+
"aria-pressed": isActive || isBound,
|
|
15329
15508
|
"aria-disabled": isLocked,
|
|
15330
15509
|
...props,
|
|
15331
15510
|
children: [
|
|
15332
|
-
/* @__PURE__ */
|
|
15511
|
+
/* @__PURE__ */ jsx84(
|
|
15333
15512
|
Icon,
|
|
15334
15513
|
{
|
|
15335
15514
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -15342,31 +15521,11 @@ var ConnectToDataElementButton = ({
|
|
|
15342
15521
|
}
|
|
15343
15522
|
) });
|
|
15344
15523
|
};
|
|
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
|
-
};
|
|
15524
|
+
var ConnectToDataElementButton = LabelLeadingIcon;
|
|
15366
15525
|
|
|
15367
15526
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
15368
|
-
import { css as
|
|
15369
|
-
var inputContainer2 =
|
|
15527
|
+
import { css as css71 } from "@emotion/react";
|
|
15528
|
+
var inputContainer2 = css71`
|
|
15370
15529
|
position: relative;
|
|
15371
15530
|
|
|
15372
15531
|
&:hover,
|
|
@@ -15378,14 +15537,14 @@ var inputContainer2 = css70`
|
|
|
15378
15537
|
}
|
|
15379
15538
|
}
|
|
15380
15539
|
`;
|
|
15381
|
-
var labelText2 =
|
|
15540
|
+
var labelText2 = css71`
|
|
15382
15541
|
align-items: center;
|
|
15383
15542
|
display: flex;
|
|
15384
15543
|
gap: var(--spacing-xs);
|
|
15385
15544
|
font-weight: var(--fw-regular);
|
|
15386
15545
|
margin: 0 0 var(--spacing-xs);
|
|
15387
15546
|
`;
|
|
15388
|
-
var input2 =
|
|
15547
|
+
var input2 = css71`
|
|
15389
15548
|
display: block;
|
|
15390
15549
|
appearance: none;
|
|
15391
15550
|
box-sizing: border-box;
|
|
@@ -15429,18 +15588,18 @@ var input2 = css70`
|
|
|
15429
15588
|
color: var(--gray-400);
|
|
15430
15589
|
}
|
|
15431
15590
|
`;
|
|
15432
|
-
var selectInput =
|
|
15591
|
+
var selectInput = css71`
|
|
15433
15592
|
background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath d='M6.34317 7.75732L4.92896 9.17154L12 16.2426L19.0711 9.17157L17.6569 7.75735L12 13.4142L6.34317 7.75732Z' fill='currentColor' /%3E%3C/svg%3E");
|
|
15434
15593
|
background-position: right var(--spacing-sm) center;
|
|
15435
15594
|
background-repeat: no-repeat;
|
|
15436
15595
|
background-size: 1rem;
|
|
15437
15596
|
padding-right: var(--spacing-xl);
|
|
15438
15597
|
`;
|
|
15439
|
-
var inputWrapper =
|
|
15598
|
+
var inputWrapper = css71`
|
|
15440
15599
|
display: flex; // used to correct overflow with chrome textarea
|
|
15441
15600
|
position: relative;
|
|
15442
15601
|
`;
|
|
15443
|
-
var inputIcon2 =
|
|
15602
|
+
var inputIcon2 = css71`
|
|
15444
15603
|
align-items: center;
|
|
15445
15604
|
background: var(--white);
|
|
15446
15605
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -15456,7 +15615,7 @@ var inputIcon2 = css70`
|
|
|
15456
15615
|
width: var(--spacing-lg);
|
|
15457
15616
|
z-index: var(--z-10);
|
|
15458
15617
|
`;
|
|
15459
|
-
var inputToggleLabel2 =
|
|
15618
|
+
var inputToggleLabel2 = css71`
|
|
15460
15619
|
align-items: center;
|
|
15461
15620
|
background: var(--white);
|
|
15462
15621
|
cursor: pointer;
|
|
@@ -15467,7 +15626,7 @@ var inputToggleLabel2 = css70`
|
|
|
15467
15626
|
min-height: var(--spacing-md);
|
|
15468
15627
|
position: relative;
|
|
15469
15628
|
`;
|
|
15470
|
-
var toggleInput2 =
|
|
15629
|
+
var toggleInput2 = css71`
|
|
15471
15630
|
appearance: none;
|
|
15472
15631
|
border: 1px solid var(--gray-300);
|
|
15473
15632
|
background: var(--white);
|
|
@@ -15506,7 +15665,7 @@ var toggleInput2 = css70`
|
|
|
15506
15665
|
border-color: var(--gray-300);
|
|
15507
15666
|
}
|
|
15508
15667
|
`;
|
|
15509
|
-
var inlineLabel2 =
|
|
15668
|
+
var inlineLabel2 = css71`
|
|
15510
15669
|
padding-left: var(--spacing-lg);
|
|
15511
15670
|
font-size: var(--fs-sm);
|
|
15512
15671
|
font-weight: var(--fw-regular);
|
|
@@ -15522,7 +15681,7 @@ var inlineLabel2 = css70`
|
|
|
15522
15681
|
}
|
|
15523
15682
|
}
|
|
15524
15683
|
`;
|
|
15525
|
-
var inputMenu =
|
|
15684
|
+
var inputMenu = css71`
|
|
15526
15685
|
background: none;
|
|
15527
15686
|
border: none;
|
|
15528
15687
|
padding: var(--spacing-2xs);
|
|
@@ -15538,14 +15697,14 @@ var inputMenu = css70`
|
|
|
15538
15697
|
background-color: var(--gray-200);
|
|
15539
15698
|
}
|
|
15540
15699
|
`;
|
|
15541
|
-
var textarea2 =
|
|
15700
|
+
var textarea2 = css71`
|
|
15542
15701
|
resize: vertical;
|
|
15543
15702
|
min-height: 2rem;
|
|
15544
15703
|
`;
|
|
15545
|
-
var imageWrapper =
|
|
15704
|
+
var imageWrapper = css71`
|
|
15546
15705
|
background: var(--white);
|
|
15547
15706
|
`;
|
|
15548
|
-
var img =
|
|
15707
|
+
var img = css71`
|
|
15549
15708
|
animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
15550
15709
|
object-fit: contain;
|
|
15551
15710
|
max-width: 100%;
|
|
@@ -15553,7 +15712,7 @@ var img = css70`
|
|
|
15553
15712
|
opacity: var(--opacity-0);
|
|
15554
15713
|
margin: var(--spacing-sm) auto 0;
|
|
15555
15714
|
`;
|
|
15556
|
-
var dataConnectButton =
|
|
15715
|
+
var dataConnectButton = css71`
|
|
15557
15716
|
align-items: center;
|
|
15558
15717
|
appearance: none;
|
|
15559
15718
|
box-sizing: border-box;
|
|
@@ -15588,7 +15747,7 @@ var dataConnectButton = css70`
|
|
|
15588
15747
|
pointer-events: none;
|
|
15589
15748
|
}
|
|
15590
15749
|
`;
|
|
15591
|
-
var linkParameterBtn =
|
|
15750
|
+
var linkParameterBtn = css71`
|
|
15592
15751
|
border-radius: var(--rounded-base);
|
|
15593
15752
|
background: var(--white);
|
|
15594
15753
|
border: none;
|
|
@@ -15597,7 +15756,7 @@ var linkParameterBtn = css70`
|
|
|
15597
15756
|
font-size: var(--fs-sm);
|
|
15598
15757
|
line-height: 1;
|
|
15599
15758
|
`;
|
|
15600
|
-
var linkParameterControls =
|
|
15759
|
+
var linkParameterControls = css71`
|
|
15601
15760
|
position: absolute;
|
|
15602
15761
|
inset: 0 0 0 auto;
|
|
15603
15762
|
padding: 0 var(--spacing-base);
|
|
@@ -15606,7 +15765,7 @@ var linkParameterControls = css70`
|
|
|
15606
15765
|
justify-content: center;
|
|
15607
15766
|
gap: var(--spacing-base);
|
|
15608
15767
|
`;
|
|
15609
|
-
var linkParameterInput = (withExternalLinkIcon) =>
|
|
15768
|
+
var linkParameterInput = (withExternalLinkIcon) => css71`
|
|
15610
15769
|
padding-right: calc(
|
|
15611
15770
|
${withExternalLinkIcon ? "calc(var(--spacing-lg) * 2 + var(--spacing-xs))" : "var(--spacing-xl)"} +
|
|
15612
15771
|
var(--spacing-base)
|
|
@@ -15619,7 +15778,7 @@ var linkParameterInput = (withExternalLinkIcon) => css70`
|
|
|
15619
15778
|
}
|
|
15620
15779
|
}
|
|
15621
15780
|
`;
|
|
15622
|
-
var linkParameterIcon =
|
|
15781
|
+
var linkParameterIcon = css71`
|
|
15623
15782
|
align-items: center;
|
|
15624
15783
|
color: var(--brand-secondary-3);
|
|
15625
15784
|
display: flex;
|
|
@@ -15634,7 +15793,7 @@ var linkParameterIcon = css70`
|
|
|
15634
15793
|
`;
|
|
15635
15794
|
|
|
15636
15795
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
15637
|
-
import { jsx as
|
|
15796
|
+
import { jsx as jsx85, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
|
|
15638
15797
|
function ParameterDataResource({
|
|
15639
15798
|
label,
|
|
15640
15799
|
labelLeadingIcon,
|
|
@@ -15658,30 +15817,30 @@ function ParameterDataResource({
|
|
|
15658
15817
|
disabled,
|
|
15659
15818
|
onClick: onConnectDatasource,
|
|
15660
15819
|
children: [
|
|
15661
|
-
/* @__PURE__ */
|
|
15820
|
+
/* @__PURE__ */ jsx85("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx85(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
15662
15821
|
children
|
|
15663
15822
|
]
|
|
15664
15823
|
}
|
|
15665
15824
|
),
|
|
15666
|
-
caption ? /* @__PURE__ */
|
|
15825
|
+
caption ? /* @__PURE__ */ jsx85(Caption, { children: caption }) : null
|
|
15667
15826
|
] });
|
|
15668
15827
|
}
|
|
15669
15828
|
|
|
15670
15829
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
15671
|
-
import { css as
|
|
15672
|
-
var ParameterDrawerHeaderContainer =
|
|
15830
|
+
import { css as css72 } from "@emotion/react";
|
|
15831
|
+
var ParameterDrawerHeaderContainer = css72`
|
|
15673
15832
|
align-items: center;
|
|
15674
15833
|
display: flex;
|
|
15675
15834
|
gap: var(--spacing-base);
|
|
15676
15835
|
justify-content: space-between;
|
|
15677
15836
|
margin-bottom: var(--spacing-sm);
|
|
15678
15837
|
`;
|
|
15679
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
15838
|
+
var ParameterDrawerHeaderTitleGroup = css72`
|
|
15680
15839
|
align-items: center;
|
|
15681
15840
|
display: flex;
|
|
15682
15841
|
gap: var(--spacing-sm);
|
|
15683
15842
|
`;
|
|
15684
|
-
var ParameterDrawerHeaderTitle =
|
|
15843
|
+
var ParameterDrawerHeaderTitle = css72`
|
|
15685
15844
|
text-overflow: ellipsis;
|
|
15686
15845
|
white-space: nowrap;
|
|
15687
15846
|
overflow: hidden;
|
|
@@ -15689,12 +15848,12 @@ var ParameterDrawerHeaderTitle = css71`
|
|
|
15689
15848
|
`;
|
|
15690
15849
|
|
|
15691
15850
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
15692
|
-
import { jsx as
|
|
15851
|
+
import { jsx as jsx86, jsxs as jsxs58 } from "@emotion/react/jsx-runtime";
|
|
15693
15852
|
var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
15694
15853
|
return /* @__PURE__ */ jsxs58("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
15695
15854
|
/* @__PURE__ */ jsxs58("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
15696
15855
|
iconBeforeTitle,
|
|
15697
|
-
/* @__PURE__ */
|
|
15856
|
+
/* @__PURE__ */ jsx86(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
|
|
15698
15857
|
] }),
|
|
15699
15858
|
children
|
|
15700
15859
|
] });
|
|
@@ -15704,8 +15863,8 @@ var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
|
15704
15863
|
import { forwardRef as forwardRef9 } from "react";
|
|
15705
15864
|
|
|
15706
15865
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
15707
|
-
import { css as
|
|
15708
|
-
var fieldsetStyles =
|
|
15866
|
+
import { css as css73 } from "@emotion/react";
|
|
15867
|
+
var fieldsetStyles = css73`
|
|
15709
15868
|
&:disabled,
|
|
15710
15869
|
[readonly] {
|
|
15711
15870
|
pointer-events: none;
|
|
@@ -15716,7 +15875,7 @@ var fieldsetStyles = css72`
|
|
|
15716
15875
|
}
|
|
15717
15876
|
}
|
|
15718
15877
|
`;
|
|
15719
|
-
var fieldsetLegend2 =
|
|
15878
|
+
var fieldsetLegend2 = css73`
|
|
15720
15879
|
display: block;
|
|
15721
15880
|
font-weight: var(--fw-medium);
|
|
15722
15881
|
margin-bottom: var(--spacing-sm);
|
|
@@ -15724,18 +15883,21 @@ var fieldsetLegend2 = css72`
|
|
|
15724
15883
|
`;
|
|
15725
15884
|
|
|
15726
15885
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
15727
|
-
import { jsx as
|
|
15886
|
+
import { jsx as jsx87, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
|
|
15728
15887
|
var ParameterGroup = forwardRef9(
|
|
15729
15888
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
15730
15889
|
return /* @__PURE__ */ jsxs59("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
15731
|
-
/* @__PURE__ */
|
|
15890
|
+
/* @__PURE__ */ jsx87("legend", { css: fieldsetLegend2, children: legend }),
|
|
15732
15891
|
children
|
|
15733
15892
|
] });
|
|
15734
15893
|
}
|
|
15735
15894
|
);
|
|
15736
15895
|
|
|
15737
15896
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
15738
|
-
import { forwardRef as forwardRef11,
|
|
15897
|
+
import { forwardRef as forwardRef11, useDeferredValue } from "react";
|
|
15898
|
+
|
|
15899
|
+
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
15900
|
+
import { useCallback as useCallback3, useEffect as useEffect9, useState as useState8 } from "react";
|
|
15739
15901
|
|
|
15740
15902
|
// src/utils/url.ts
|
|
15741
15903
|
var isValidUrl = (url, options = {}) => {
|
|
@@ -15747,25 +15909,115 @@ var isValidUrl = (url, options = {}) => {
|
|
|
15747
15909
|
}
|
|
15748
15910
|
};
|
|
15749
15911
|
|
|
15912
|
+
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
15913
|
+
import { Fragment as Fragment11, jsx as jsx88, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
|
|
15914
|
+
function ParameterImagePreview({ imageSrc }) {
|
|
15915
|
+
const [loading, setLoading] = useState8(false);
|
|
15916
|
+
const [loadErrorText, setLoadErrorText] = useState8("");
|
|
15917
|
+
const errorText = "The text you provided is not a valid URL";
|
|
15918
|
+
const updateImageSrc = useCallback3(() => {
|
|
15919
|
+
let message = "";
|
|
15920
|
+
try {
|
|
15921
|
+
if (imageSrc !== "") {
|
|
15922
|
+
const url = String(imageSrc).startsWith("//") ? `${location.protocol}${imageSrc}` : String(imageSrc);
|
|
15923
|
+
if (!isValidUrl(url) || !url.startsWith("https")) {
|
|
15924
|
+
throw Error(errorText);
|
|
15925
|
+
}
|
|
15926
|
+
}
|
|
15927
|
+
message = "";
|
|
15928
|
+
} catch (e) {
|
|
15929
|
+
message = errorText;
|
|
15930
|
+
}
|
|
15931
|
+
setLoadErrorText(message);
|
|
15932
|
+
}, [setLoadErrorText, imageSrc]);
|
|
15933
|
+
useEffect9(() => {
|
|
15934
|
+
updateImageSrc();
|
|
15935
|
+
}, [imageSrc]);
|
|
15936
|
+
const handleLoadEvent = () => {
|
|
15937
|
+
setLoadErrorText("");
|
|
15938
|
+
if (imageSrc) {
|
|
15939
|
+
setLoading(true);
|
|
15940
|
+
}
|
|
15941
|
+
const timer = setTimeout(() => {
|
|
15942
|
+
setLoading(false);
|
|
15943
|
+
}, 200);
|
|
15944
|
+
return () => clearTimeout(timer);
|
|
15945
|
+
};
|
|
15946
|
+
const handleErrorEvent = () => {
|
|
15947
|
+
setLoadErrorText("The value you provided is not a valid image URL");
|
|
15948
|
+
};
|
|
15949
|
+
return /* @__PURE__ */ jsxs60("div", { css: imageWrapper, children: [
|
|
15950
|
+
imageSrc && !loadErrorText ? /* @__PURE__ */ jsx88(
|
|
15951
|
+
"img",
|
|
15952
|
+
{
|
|
15953
|
+
src: imageSrc,
|
|
15954
|
+
css: img,
|
|
15955
|
+
alt: "image preview",
|
|
15956
|
+
onLoad: handleLoadEvent,
|
|
15957
|
+
onError: handleErrorEvent,
|
|
15958
|
+
loading: "lazy",
|
|
15959
|
+
"data-testid": "parameter-image-preview"
|
|
15960
|
+
}
|
|
15961
|
+
) : null,
|
|
15962
|
+
imageSrc && loadErrorText ? /* @__PURE__ */ jsxs60(Fragment11, { children: [
|
|
15963
|
+
/* @__PURE__ */ jsx88(BrokenImage, { css: img }),
|
|
15964
|
+
/* @__PURE__ */ jsx88(ErrorMessage, { message: loadErrorText })
|
|
15965
|
+
] }) : null,
|
|
15966
|
+
loading && /* @__PURE__ */ jsx88(LoadingIcon, {})
|
|
15967
|
+
] });
|
|
15968
|
+
}
|
|
15969
|
+
var BrokenImage = ({ ...props }) => {
|
|
15970
|
+
return /* @__PURE__ */ jsxs60(
|
|
15971
|
+
"svg",
|
|
15972
|
+
{
|
|
15973
|
+
role: "img",
|
|
15974
|
+
width: "214",
|
|
15975
|
+
height: "214",
|
|
15976
|
+
viewBox: "0 0 214 214",
|
|
15977
|
+
fill: "none",
|
|
15978
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15979
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
15980
|
+
"data-testid": "broken-image",
|
|
15981
|
+
...props,
|
|
15982
|
+
children: [
|
|
15983
|
+
/* @__PURE__ */ jsx88("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
15984
|
+
/* @__PURE__ */ jsx88("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
15985
|
+
/* @__PURE__ */ jsxs60("defs", { children: [
|
|
15986
|
+
/* @__PURE__ */ jsx88("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx88("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
15987
|
+
/* @__PURE__ */ jsx88(
|
|
15988
|
+
"image",
|
|
15989
|
+
{
|
|
15990
|
+
id: "image0_761_4353",
|
|
15991
|
+
width: "400",
|
|
15992
|
+
height: "400",
|
|
15993
|
+
xlinkHref: "data:image/png;base64,iVBORw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BDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBuB/we75KcVO2CRagAAAABJRU5ErkJggg=="
|
|
15994
|
+
}
|
|
15995
|
+
)
|
|
15996
|
+
] })
|
|
15997
|
+
]
|
|
15998
|
+
}
|
|
15999
|
+
);
|
|
16000
|
+
};
|
|
16001
|
+
|
|
15750
16002
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
15751
|
-
import { useState as
|
|
16003
|
+
import { useState as useState9 } from "react";
|
|
15752
16004
|
|
|
15753
16005
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
15754
|
-
import { jsx as
|
|
16006
|
+
import { jsx as jsx89 } from "@emotion/react/jsx-runtime";
|
|
15755
16007
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
15756
|
-
return !asSpan ? /* @__PURE__ */
|
|
16008
|
+
return !asSpan ? /* @__PURE__ */ jsx89("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx89("span", { "aria-labelledby": id, css: labelText2, children });
|
|
15757
16009
|
};
|
|
15758
16010
|
|
|
15759
16011
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
15760
16012
|
import { forwardRef as forwardRef10 } from "react";
|
|
15761
|
-
import { jsx as
|
|
16013
|
+
import { jsx as jsx90 } from "@emotion/react/jsx-runtime";
|
|
15762
16014
|
var ParameterMenuButton = forwardRef10(
|
|
15763
16015
|
({ label, children }, ref) => {
|
|
15764
|
-
return /* @__PURE__ */
|
|
16016
|
+
return /* @__PURE__ */ jsx90(
|
|
15765
16017
|
Menu,
|
|
15766
16018
|
{
|
|
15767
16019
|
menuLabel: `${label} menu`,
|
|
15768
|
-
menuTrigger: /* @__PURE__ */
|
|
16020
|
+
menuTrigger: /* @__PURE__ */ jsx90(
|
|
15769
16021
|
"button",
|
|
15770
16022
|
{
|
|
15771
16023
|
className: "parameter-menu",
|
|
@@ -15773,7 +16025,7 @@ var ParameterMenuButton = forwardRef10(
|
|
|
15773
16025
|
type: "button",
|
|
15774
16026
|
"aria-label": `${label} options`,
|
|
15775
16027
|
ref,
|
|
15776
|
-
children: /* @__PURE__ */
|
|
16028
|
+
children: /* @__PURE__ */ jsx90(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
15777
16029
|
}
|
|
15778
16030
|
),
|
|
15779
16031
|
children
|
|
@@ -15783,15 +16035,15 @@ var ParameterMenuButton = forwardRef10(
|
|
|
15783
16035
|
);
|
|
15784
16036
|
|
|
15785
16037
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
15786
|
-
import { css as
|
|
15787
|
-
var emptyParameterShell =
|
|
16038
|
+
import { css as css74 } from "@emotion/react";
|
|
16039
|
+
var emptyParameterShell = css74`
|
|
15788
16040
|
border-radius: var(--rounded-sm);
|
|
15789
16041
|
background: var(--white);
|
|
15790
16042
|
flex-grow: 1;
|
|
15791
16043
|
padding: var(--spacing-xs);
|
|
15792
16044
|
position: relative;
|
|
15793
16045
|
`;
|
|
15794
|
-
var emptyParameterShellText =
|
|
16046
|
+
var emptyParameterShellText = css74`
|
|
15795
16047
|
background: var(--brand-secondary-6);
|
|
15796
16048
|
border-radius: var(--rounded-sm);
|
|
15797
16049
|
padding: var(--spacing-sm);
|
|
@@ -15799,7 +16051,7 @@ var emptyParameterShellText = css73`
|
|
|
15799
16051
|
font-size: var(--fs-sm);
|
|
15800
16052
|
margin: 0;
|
|
15801
16053
|
`;
|
|
15802
|
-
var overrideMarker =
|
|
16054
|
+
var overrideMarker = css74`
|
|
15803
16055
|
border-radius: var(--rounded-sm);
|
|
15804
16056
|
border: 10px solid var(--gray-300);
|
|
15805
16057
|
border-left-color: transparent;
|
|
@@ -15810,7 +16062,7 @@ var overrideMarker = css73`
|
|
|
15810
16062
|
`;
|
|
15811
16063
|
|
|
15812
16064
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
15813
|
-
import { jsx as
|
|
16065
|
+
import { jsx as jsx91, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
|
|
15814
16066
|
var extractParameterProps = (props) => {
|
|
15815
16067
|
const {
|
|
15816
16068
|
id,
|
|
@@ -15867,21 +16119,21 @@ var ParameterShell = ({
|
|
|
15867
16119
|
children,
|
|
15868
16120
|
...props
|
|
15869
16121
|
}) => {
|
|
15870
|
-
const [manualErrorMessage, setManualErrorMessage] =
|
|
16122
|
+
const [manualErrorMessage, setManualErrorMessage] = useState9(void 0);
|
|
15871
16123
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
15872
16124
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
15873
|
-
return /* @__PURE__ */
|
|
15874
|
-
hiddenLabel || title ? null : /* @__PURE__ */
|
|
16125
|
+
return /* @__PURE__ */ jsxs61("div", { css: inputContainer2, ...props, children: [
|
|
16126
|
+
hiddenLabel || title ? null : /* @__PURE__ */ jsxs61(ParameterLabel, { id, css: labelText2, children: [
|
|
15875
16127
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
15876
16128
|
label
|
|
15877
16129
|
] }),
|
|
15878
|
-
!title ? null : /* @__PURE__ */
|
|
16130
|
+
!title ? null : /* @__PURE__ */ jsxs61(ParameterLabel, { id, asSpan: true, children: [
|
|
15879
16131
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
15880
16132
|
title
|
|
15881
16133
|
] }),
|
|
15882
|
-
/* @__PURE__ */
|
|
15883
|
-
menuItems ? /* @__PURE__ */
|
|
15884
|
-
/* @__PURE__ */
|
|
16134
|
+
/* @__PURE__ */ jsxs61("div", { css: inputWrapper, children: [
|
|
16135
|
+
menuItems ? /* @__PURE__ */ jsx91(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
16136
|
+
/* @__PURE__ */ jsx91(
|
|
15885
16137
|
ParameterShellContext.Provider,
|
|
15886
16138
|
{
|
|
15887
16139
|
value: {
|
|
@@ -15891,151 +16143,62 @@ var ParameterShell = ({
|
|
|
15891
16143
|
errorMessage: errorMessaging,
|
|
15892
16144
|
handleManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
15893
16145
|
},
|
|
15894
|
-
children: /* @__PURE__ */
|
|
16146
|
+
children: /* @__PURE__ */ jsxs61(ParameterShellPlaceholder, { children: [
|
|
15895
16147
|
children,
|
|
15896
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
16148
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx91(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
15897
16149
|
] })
|
|
15898
16150
|
}
|
|
15899
16151
|
)
|
|
15900
16152
|
] }),
|
|
15901
|
-
caption ? /* @__PURE__ */
|
|
15902
|
-
errorMessaging ? /* @__PURE__ */
|
|
15903
|
-
warningMessage ? /* @__PURE__ */
|
|
15904
|
-
infoMessage ? /* @__PURE__ */
|
|
16153
|
+
caption ? /* @__PURE__ */ jsx91(Caption, { testId: captionTestId, children: caption }) : null,
|
|
16154
|
+
errorMessaging ? /* @__PURE__ */ jsx91(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null,
|
|
16155
|
+
warningMessage ? /* @__PURE__ */ jsx91(WarningMessage, { message: warningMessage }) : null,
|
|
16156
|
+
infoMessage ? /* @__PURE__ */ jsx91(InfoMessage, { message: infoMessage }) : null
|
|
15905
16157
|
] });
|
|
15906
16158
|
};
|
|
15907
16159
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
15908
|
-
return /* @__PURE__ */
|
|
16160
|
+
return /* @__PURE__ */ jsx91("div", { css: emptyParameterShell, children });
|
|
15909
16161
|
};
|
|
15910
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
16162
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx91(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx91("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx91("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
15911
16163
|
|
|
15912
16164
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
15913
|
-
import { Fragment as
|
|
16165
|
+
import { Fragment as Fragment12, jsx as jsx92, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
|
|
15914
16166
|
var ParameterImage = forwardRef11((props, ref) => {
|
|
15915
16167
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
15916
|
-
return /* @__PURE__ */
|
|
16168
|
+
return /* @__PURE__ */ jsx92(ParameterShell, { "data-testid": "parameter-image", ...shellProps, children: /* @__PURE__ */ jsx92(ParameterImageInner, { ref, ...innerProps, disablePreview: props.disablePreview }) });
|
|
15917
16169
|
});
|
|
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: "400",
|
|
15942
|
-
xlinkHref: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAABX2lDQ1BJQ0MgUHJvZmlsZQAAKJFtkMFLAlEQxj/NEFIyQaJDhz1EEFiYdupmRhp5WCyxhA7rc3ODdXvsrkSn+ge6RATRPTpGBF46CP0DQVDQqVu3LoGXkm2eW61W8xjmx8fMvOED/GGFcz0AoG7YZiG7IK1vlKXgC/wYQ4ReVGEWT8tynlrwXfuj/QCfqPfTYlertBTZv3o9W8mdhmcblxN/+/tiqKpajOoHZZJx0wZ8CWJ51+aCD4hjJh1FfCy45vKF4IrLN92etUKG+I54hGlKlfiZOF7p0Ws9XNcb7OsGcX1YNYqrVEcpx5FHFhKK0GHDhEKcwyJ59P/MXHcmgx1w7FH/NmrQaFJCmhROW1TiZRhgmEGcOIkEZUp4/dtDT7PIh/lD+op72mYMuNaAYeZpk0dANATclrliKj/O+toBayuVdDnUBAZPHOetBASngM6j47w3HadzDgw8Aa32JyLnYb5bLiabAAAAOGVYSWZNTQAqAAAACAABh2kABAAAAAEAAAAaAAAAAAACoAIABAAAAAEAAAGQoAMABAAAAAEAAAGQAAAAADj5TfYAABuPSURBVHgB7Z0Ld9RG1kX94GmMAYcECJAwyZq1vv//czKLDEMghkB4GIPf9ne6FRq5W60qt9Vq3aPNypoR3erSvftUTuqWSqXl/YPDJf5AAAIQiEBgJUKQxAgBCEBgQADDoh9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlA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FKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBuB/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",
|
|
16170
|
+
var ParameterImageInner = forwardRef11((props, ref) => {
|
|
16171
|
+
const { value } = props;
|
|
16172
|
+
const { id, label, hiddenLabel, errorMessage } = useParameterShell();
|
|
16173
|
+
const deferredValue = useDeferredValue(value);
|
|
16174
|
+
return /* @__PURE__ */ jsxs62(Fragment12, { children: [
|
|
16175
|
+
/* @__PURE__ */ jsx92(
|
|
16176
|
+
"input",
|
|
16010
16177
|
{
|
|
16011
|
-
|
|
16012
|
-
|
|
16013
|
-
|
|
16014
|
-
|
|
16015
|
-
|
|
16016
|
-
|
|
16017
|
-
|
|
16178
|
+
css: input2,
|
|
16179
|
+
type: "text",
|
|
16180
|
+
id,
|
|
16181
|
+
ref,
|
|
16182
|
+
"aria-label": hiddenLabel ? label : void 0,
|
|
16183
|
+
autoComplete: "off",
|
|
16184
|
+
...props
|
|
16018
16185
|
}
|
|
16019
|
-
)
|
|
16020
|
-
|
|
16021
|
-
/* @__PURE__ */ jsx90(BrokenImage, { css: img }),
|
|
16022
|
-
/* @__PURE__ */ jsx90(ErrorMessage, { message: loadErrorText })
|
|
16023
|
-
] }) : null,
|
|
16024
|
-
loading && /* @__PURE__ */ jsx90(LoadingIcon, {})
|
|
16186
|
+
),
|
|
16187
|
+
errorMessage || props.disablePreview ? null : /* @__PURE__ */ jsx92(ParameterImagePreview, { imageSrc: deferredValue })
|
|
16025
16188
|
] });
|
|
16026
|
-
};
|
|
16189
|
+
});
|
|
16027
16190
|
|
|
16028
16191
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
16029
16192
|
import { forwardRef as forwardRef12 } from "react";
|
|
16030
|
-
import { jsx as
|
|
16193
|
+
import { jsx as jsx93 } from "@emotion/react/jsx-runtime";
|
|
16031
16194
|
var ParameterInput = forwardRef12((props, ref) => {
|
|
16032
16195
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16033
|
-
return /* @__PURE__ */
|
|
16196
|
+
return /* @__PURE__ */ jsx93(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx93(ParameterInputInner, { ref, ...innerProps }) });
|
|
16034
16197
|
});
|
|
16035
16198
|
var ParameterInputInner = forwardRef12(
|
|
16036
16199
|
({ ...props }, ref) => {
|
|
16037
16200
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
16038
|
-
return /* @__PURE__ */
|
|
16201
|
+
return /* @__PURE__ */ jsx93(
|
|
16039
16202
|
"input",
|
|
16040
16203
|
{
|
|
16041
16204
|
css: input2,
|
|
@@ -16052,18 +16215,18 @@ var ParameterInputInner = forwardRef12(
|
|
|
16052
16215
|
|
|
16053
16216
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
16054
16217
|
import { forwardRef as forwardRef13 } from "react";
|
|
16055
|
-
import { jsx as
|
|
16218
|
+
import { jsx as jsx94, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
|
|
16056
16219
|
var ParameterLink = forwardRef13(
|
|
16057
|
-
({
|
|
16220
|
+
({ disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
16058
16221
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16059
|
-
return /* @__PURE__ */
|
|
16222
|
+
return /* @__PURE__ */ jsx94(
|
|
16060
16223
|
ParameterShell,
|
|
16061
16224
|
{
|
|
16062
16225
|
"data-testid": "link-parameter-editor",
|
|
16063
16226
|
...shellProps,
|
|
16064
16227
|
label: innerProps.value ? shellProps.label : "",
|
|
16065
16228
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
16066
|
-
children:
|
|
16229
|
+
children: /* @__PURE__ */ jsx94(
|
|
16067
16230
|
ParameterLinkInner,
|
|
16068
16231
|
{
|
|
16069
16232
|
onConnectLink,
|
|
@@ -16077,10 +16240,12 @@ var ParameterLink = forwardRef13(
|
|
|
16077
16240
|
}
|
|
16078
16241
|
);
|
|
16079
16242
|
var ParameterLinkInner = forwardRef13(
|
|
16080
|
-
({ externalLink, onConnectLink, disabled, ...props }, ref) => {
|
|
16243
|
+
({ externalLink, onConnectLink, disabled, buttonText = "Select link", ...props }, ref) => {
|
|
16081
16244
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
16082
|
-
|
|
16083
|
-
/* @__PURE__ */
|
|
16245
|
+
if (!props.value)
|
|
16246
|
+
return /* @__PURE__ */ jsx94("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText });
|
|
16247
|
+
return /* @__PURE__ */ jsxs63("div", { css: inputWrapper, children: [
|
|
16248
|
+
/* @__PURE__ */ jsx94(
|
|
16084
16249
|
"input",
|
|
16085
16250
|
{
|
|
16086
16251
|
type: "text",
|
|
@@ -16092,8 +16257,8 @@ var ParameterLinkInner = forwardRef13(
|
|
|
16092
16257
|
...props
|
|
16093
16258
|
}
|
|
16094
16259
|
),
|
|
16095
|
-
/* @__PURE__ */
|
|
16096
|
-
/* @__PURE__ */
|
|
16260
|
+
/* @__PURE__ */ jsxs63("div", { css: linkParameterControls, children: [
|
|
16261
|
+
/* @__PURE__ */ jsx94(
|
|
16097
16262
|
"button",
|
|
16098
16263
|
{
|
|
16099
16264
|
type: "button",
|
|
@@ -16104,7 +16269,7 @@ var ParameterLinkInner = forwardRef13(
|
|
|
16104
16269
|
children: "edit"
|
|
16105
16270
|
}
|
|
16106
16271
|
),
|
|
16107
|
-
externalLink ? /* @__PURE__ */
|
|
16272
|
+
externalLink ? /* @__PURE__ */ jsx94(
|
|
16108
16273
|
"a",
|
|
16109
16274
|
{
|
|
16110
16275
|
href: externalLink,
|
|
@@ -16112,7 +16277,7 @@ var ParameterLinkInner = forwardRef13(
|
|
|
16112
16277
|
title: "Open link in new tab",
|
|
16113
16278
|
target: "_blank",
|
|
16114
16279
|
rel: "noopener noreferrer",
|
|
16115
|
-
children: /* @__PURE__ */
|
|
16280
|
+
children: /* @__PURE__ */ jsx94(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
16116
16281
|
}
|
|
16117
16282
|
) : null
|
|
16118
16283
|
] })
|
|
@@ -16121,7 +16286,7 @@ var ParameterLinkInner = forwardRef13(
|
|
|
16121
16286
|
);
|
|
16122
16287
|
|
|
16123
16288
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
16124
|
-
import { Fragment as
|
|
16289
|
+
import { Fragment as Fragment13, jsx as jsx95, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
|
|
16125
16290
|
var ParameterNameAndPublicIdInput = ({
|
|
16126
16291
|
id,
|
|
16127
16292
|
onBlur,
|
|
@@ -16147,8 +16312,8 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16147
16312
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
16148
16313
|
};
|
|
16149
16314
|
autoFocus == null ? void 0 : autoFocus();
|
|
16150
|
-
return /* @__PURE__ */
|
|
16151
|
-
/* @__PURE__ */
|
|
16315
|
+
return /* @__PURE__ */ jsxs64(Fragment13, { children: [
|
|
16316
|
+
/* @__PURE__ */ jsx95(
|
|
16152
16317
|
ParameterInput,
|
|
16153
16318
|
{
|
|
16154
16319
|
id: nameIdField,
|
|
@@ -16167,7 +16332,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16167
16332
|
value: values[nameIdField]
|
|
16168
16333
|
}
|
|
16169
16334
|
),
|
|
16170
|
-
/* @__PURE__ */
|
|
16335
|
+
/* @__PURE__ */ jsx95(
|
|
16171
16336
|
ParameterInput,
|
|
16172
16337
|
{
|
|
16173
16338
|
id: publicIdFieldName,
|
|
@@ -16181,11 +16346,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16181
16346
|
caption: publicIdCaption,
|
|
16182
16347
|
placeholder: publicIdPlaceholderText,
|
|
16183
16348
|
errorMessage: publicIdError,
|
|
16184
|
-
menuItems: /* @__PURE__ */
|
|
16349
|
+
menuItems: /* @__PURE__ */ jsx95(
|
|
16185
16350
|
MenuItem,
|
|
16186
16351
|
{
|
|
16187
16352
|
disabled: !values[publicIdFieldName],
|
|
16188
|
-
icon: /* @__PURE__ */
|
|
16353
|
+
icon: /* @__PURE__ */ jsx95(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
16189
16354
|
onClick: handleCopyPidFieldValue,
|
|
16190
16355
|
children: "Copy"
|
|
16191
16356
|
}
|
|
@@ -16193,12 +16358,12 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16193
16358
|
value: values[publicIdFieldName]
|
|
16194
16359
|
}
|
|
16195
16360
|
),
|
|
16196
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
16361
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx95(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
16197
16362
|
] });
|
|
16198
16363
|
};
|
|
16199
16364
|
|
|
16200
16365
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
16201
|
-
import { css as
|
|
16366
|
+
import { css as css79 } from "@emotion/react";
|
|
16202
16367
|
import { ListItemNode, ListNode as ListNode2 } from "@lexical/list";
|
|
16203
16368
|
import {
|
|
16204
16369
|
CODE,
|
|
@@ -16264,6 +16429,10 @@ var richTextBuiltInElements = [
|
|
|
16264
16429
|
{
|
|
16265
16430
|
label: "Code Block",
|
|
16266
16431
|
type: "code"
|
|
16432
|
+
},
|
|
16433
|
+
{
|
|
16434
|
+
label: "Dynamic Token",
|
|
16435
|
+
type: "variable"
|
|
16267
16436
|
}
|
|
16268
16437
|
];
|
|
16269
16438
|
var richTextBuiltInFormats = [
|
|
@@ -16346,23 +16515,23 @@ function DisableStylesPlugin() {
|
|
|
16346
16515
|
}
|
|
16347
16516
|
|
|
16348
16517
|
// src/components/ParameterInputs/rich-text/editorStyles.ts
|
|
16349
|
-
import { css as
|
|
16350
|
-
var textBold =
|
|
16518
|
+
import { css as css75 } from "@emotion/css";
|
|
16519
|
+
var textBold = css75`
|
|
16351
16520
|
font-weight: 700;
|
|
16352
16521
|
`;
|
|
16353
|
-
var textItalic =
|
|
16522
|
+
var textItalic = css75`
|
|
16354
16523
|
font-style: italic;
|
|
16355
16524
|
`;
|
|
16356
|
-
var textUnderline =
|
|
16525
|
+
var textUnderline = css75`
|
|
16357
16526
|
text-decoration: underline;
|
|
16358
16527
|
`;
|
|
16359
|
-
var textStrikethrough =
|
|
16528
|
+
var textStrikethrough = css75`
|
|
16360
16529
|
text-decoration: line-through;
|
|
16361
16530
|
`;
|
|
16362
|
-
var textUnderlineStrikethrough =
|
|
16531
|
+
var textUnderlineStrikethrough = css75`
|
|
16363
16532
|
text-decoration: underline line-through;
|
|
16364
16533
|
`;
|
|
16365
|
-
var textCode =
|
|
16534
|
+
var textCode = css75`
|
|
16366
16535
|
background-color: var(--gray-100);
|
|
16367
16536
|
border-radius: var(--rounded-sm);
|
|
16368
16537
|
display: inline-block;
|
|
@@ -16373,68 +16542,68 @@ var textCode = css74`
|
|
|
16373
16542
|
padding-left: var(--spacing-xs);
|
|
16374
16543
|
padding-right: var(--spacing-xs);
|
|
16375
16544
|
`;
|
|
16376
|
-
var textSuperscript =
|
|
16545
|
+
var textSuperscript = css75`
|
|
16377
16546
|
vertical-align: super;
|
|
16378
16547
|
font-size: smaller;
|
|
16379
16548
|
`;
|
|
16380
|
-
var textSubscript =
|
|
16549
|
+
var textSubscript = css75`
|
|
16381
16550
|
vertical-align: sub;
|
|
16382
16551
|
font-size: smaller;
|
|
16383
16552
|
`;
|
|
16384
|
-
var linkElement =
|
|
16553
|
+
var linkElement = css75`
|
|
16385
16554
|
${link}
|
|
16386
16555
|
${linkColorDefault}
|
|
16387
16556
|
text-decoration: underline;
|
|
16388
16557
|
`;
|
|
16389
|
-
var h12 =
|
|
16558
|
+
var h12 = css75`
|
|
16390
16559
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.7rem);
|
|
16391
16560
|
`;
|
|
16392
|
-
var h22 =
|
|
16561
|
+
var h22 = css75`
|
|
16393
16562
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.6rem);
|
|
16394
16563
|
`;
|
|
16395
|
-
var h32 =
|
|
16564
|
+
var h32 = css75`
|
|
16396
16565
|
font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
|
|
16397
16566
|
`;
|
|
16398
|
-
var h42 =
|
|
16567
|
+
var h42 = css75`
|
|
16399
16568
|
font-size: clamp(1.15rem, var(--fluid-font-base), 1.25rem);
|
|
16400
16569
|
`;
|
|
16401
|
-
var h52 =
|
|
16570
|
+
var h52 = css75`
|
|
16402
16571
|
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
16403
16572
|
`;
|
|
16404
|
-
var h62 =
|
|
16573
|
+
var h62 = css75`
|
|
16405
16574
|
font-size: var(--fs-base);
|
|
16406
16575
|
`;
|
|
16407
|
-
var heading1Element =
|
|
16576
|
+
var heading1Element = css75`
|
|
16408
16577
|
${h12}
|
|
16409
16578
|
${commonHeadingAttr(true)}
|
|
16410
16579
|
${commonLineHeight}
|
|
16411
16580
|
`;
|
|
16412
|
-
var heading2Element =
|
|
16581
|
+
var heading2Element = css75`
|
|
16413
16582
|
${h22}
|
|
16414
16583
|
${commonHeadingAttr(true)}
|
|
16415
16584
|
${commonLineHeight}
|
|
16416
16585
|
`;
|
|
16417
|
-
var heading3Element =
|
|
16586
|
+
var heading3Element = css75`
|
|
16418
16587
|
${h32}
|
|
16419
16588
|
${commonHeadingAttr(true)}
|
|
16420
16589
|
${commonLineHeight}
|
|
16421
16590
|
`;
|
|
16422
|
-
var heading4Element =
|
|
16591
|
+
var heading4Element = css75`
|
|
16423
16592
|
${h42}
|
|
16424
16593
|
${commonHeadingAttr(true)}
|
|
16425
16594
|
${commonLineHeight}
|
|
16426
16595
|
`;
|
|
16427
|
-
var heading5Element =
|
|
16596
|
+
var heading5Element = css75`
|
|
16428
16597
|
${h52}
|
|
16429
16598
|
${commonHeadingAttr(true)}
|
|
16430
16599
|
${commonLineHeight}
|
|
16431
16600
|
`;
|
|
16432
|
-
var heading6Element =
|
|
16601
|
+
var heading6Element = css75`
|
|
16433
16602
|
${h62}
|
|
16434
16603
|
${commonHeadingAttr(true)}
|
|
16435
16604
|
${commonLineHeight}
|
|
16436
16605
|
`;
|
|
16437
|
-
var paragraphElement =
|
|
16606
|
+
var paragraphElement = css75`
|
|
16438
16607
|
line-height: 1.5;
|
|
16439
16608
|
margin-bottom: var(--spacing-base);
|
|
16440
16609
|
|
|
@@ -16442,7 +16611,7 @@ var paragraphElement = css74`
|
|
|
16442
16611
|
margin-bottom: 0;
|
|
16443
16612
|
}
|
|
16444
16613
|
`;
|
|
16445
|
-
var orderedListElement =
|
|
16614
|
+
var orderedListElement = css75`
|
|
16446
16615
|
${commonLineHeight}
|
|
16447
16616
|
display: block;
|
|
16448
16617
|
list-style: decimal;
|
|
@@ -16471,7 +16640,7 @@ var orderedListElement = css74`
|
|
|
16471
16640
|
}
|
|
16472
16641
|
}
|
|
16473
16642
|
`;
|
|
16474
|
-
var unorderedListElement =
|
|
16643
|
+
var unorderedListElement = css75`
|
|
16475
16644
|
${commonLineHeight}
|
|
16476
16645
|
display: block;
|
|
16477
16646
|
list-style: disc;
|
|
@@ -16492,13 +16661,13 @@ var unorderedListElement = css74`
|
|
|
16492
16661
|
}
|
|
16493
16662
|
}
|
|
16494
16663
|
`;
|
|
16495
|
-
var listItemElement =
|
|
16664
|
+
var listItemElement = css75`
|
|
16496
16665
|
margin-left: var(--spacing-md);
|
|
16497
16666
|
`;
|
|
16498
|
-
var nestedListItemElement =
|
|
16667
|
+
var nestedListItemElement = css75`
|
|
16499
16668
|
list-style-type: none;
|
|
16500
16669
|
`;
|
|
16501
|
-
var blockquoteElement =
|
|
16670
|
+
var blockquoteElement = css75`
|
|
16502
16671
|
border-left: 0.25rem solid var(--gray-300);
|
|
16503
16672
|
color: var(--gray-600);
|
|
16504
16673
|
margin-bottom: var(--spacing-base);
|
|
@@ -16508,7 +16677,7 @@ var blockquoteElement = css74`
|
|
|
16508
16677
|
margin-bottom: 0;
|
|
16509
16678
|
}
|
|
16510
16679
|
`;
|
|
16511
|
-
var codeElement =
|
|
16680
|
+
var codeElement = css75`
|
|
16512
16681
|
background-color: var(--gray-100);
|
|
16513
16682
|
border-radius: var(--rounded-sm);
|
|
16514
16683
|
display: block;
|
|
@@ -16525,7 +16694,7 @@ var codeElement = css74`
|
|
|
16525
16694
|
`;
|
|
16526
16695
|
|
|
16527
16696
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
16528
|
-
import { css as
|
|
16697
|
+
import { css as css77 } from "@emotion/react";
|
|
16529
16698
|
import { useLexicalComposerContext as useLexicalComposerContext2 } from "@lexical/react/LexicalComposerContext";
|
|
16530
16699
|
import { NodeEventPlugin } from "@lexical/react/LexicalNodeEventPlugin";
|
|
16531
16700
|
import { addClassNamesToElement, isHTMLAnchorElement, mergeRegister as mergeRegister2 } from "@lexical/utils";
|
|
@@ -16544,8 +16713,8 @@ import {
|
|
|
16544
16713
|
import { useCallback as useCallback4, useEffect as useEffect11, useRef as useRef6, useState as useState10 } from "react";
|
|
16545
16714
|
|
|
16546
16715
|
// src/components/Popover/Popover.styles.ts
|
|
16547
|
-
import { css as
|
|
16548
|
-
var PopoverBtn =
|
|
16716
|
+
import { css as css76 } from "@emotion/react";
|
|
16717
|
+
var PopoverBtn = css76`
|
|
16549
16718
|
border: none;
|
|
16550
16719
|
background: none;
|
|
16551
16720
|
padding: var(--spacing-2xs);
|
|
@@ -16555,7 +16724,7 @@ var PopoverBtn = css75`
|
|
|
16555
16724
|
background-color: rgba(0, 0, 0, 0.05);
|
|
16556
16725
|
}
|
|
16557
16726
|
`;
|
|
16558
|
-
var Popover =
|
|
16727
|
+
var Popover = css76`
|
|
16559
16728
|
border-left: var(--spacing-xs) solid var(--brand-secondary-3);
|
|
16560
16729
|
border-radius: var(--rounded-base);
|
|
16561
16730
|
box-shadow: var(--shadow-base);
|
|
@@ -16604,7 +16773,7 @@ var getSelectedNode = (selection) => {
|
|
|
16604
16773
|
};
|
|
16605
16774
|
|
|
16606
16775
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
16607
|
-
import { Fragment as
|
|
16776
|
+
import { Fragment as Fragment14, jsx as jsx96, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
|
|
16608
16777
|
var isProjectMapLinkValue = (value) => {
|
|
16609
16778
|
return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
|
|
16610
16779
|
value.nodeId && value.path && value.projectMapId
|
|
@@ -16891,20 +17060,23 @@ var OPEN_LINK_NODE_MODAL_COMMAND = createCommand(
|
|
|
16891
17060
|
);
|
|
16892
17061
|
var LINK_POPOVER_OFFSET_X = 0;
|
|
16893
17062
|
var LINK_POPOVER_OFFSET_Y = 8;
|
|
16894
|
-
var linkPopover =
|
|
17063
|
+
var linkPopover = css77`
|
|
16895
17064
|
position: absolute;
|
|
16896
17065
|
z-index: 5;
|
|
16897
17066
|
`;
|
|
16898
|
-
var linkPopoverContainer =
|
|
17067
|
+
var linkPopoverContainer = css77`
|
|
16899
17068
|
${Popover};
|
|
16900
17069
|
align-items: center;
|
|
16901
17070
|
display: flex;
|
|
16902
17071
|
`;
|
|
16903
|
-
var linkPopoverAnchor =
|
|
17072
|
+
var linkPopoverAnchor = css77`
|
|
16904
17073
|
${link}
|
|
16905
17074
|
${linkColorDefault}
|
|
16906
17075
|
`;
|
|
16907
|
-
function LinkNodePlugin({ onConnectLink }) {
|
|
17076
|
+
function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
17077
|
+
const parsePath = getBoundPath != null ? getBoundPath : function(path) {
|
|
17078
|
+
return path;
|
|
17079
|
+
};
|
|
16908
17080
|
const [editor] = useLexicalComposerContext2();
|
|
16909
17081
|
const [linkPopoverState, setLinkPopoverState] = useState10();
|
|
16910
17082
|
const linkPopoverElRef = useRef6(null);
|
|
@@ -17044,8 +17216,8 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
17044
17216
|
});
|
|
17045
17217
|
});
|
|
17046
17218
|
};
|
|
17047
|
-
return /* @__PURE__ */
|
|
17048
|
-
/* @__PURE__ */
|
|
17219
|
+
return /* @__PURE__ */ jsxs65(Fragment14, { children: [
|
|
17220
|
+
/* @__PURE__ */ jsx96(
|
|
17049
17221
|
NodeEventPlugin,
|
|
17050
17222
|
{
|
|
17051
17223
|
nodeType: LinkNode,
|
|
@@ -17055,7 +17227,7 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
17055
17227
|
}
|
|
17056
17228
|
}
|
|
17057
17229
|
),
|
|
17058
|
-
linkPopoverState ? /* @__PURE__ */
|
|
17230
|
+
linkPopoverState ? /* @__PURE__ */ jsx96(
|
|
17059
17231
|
"div",
|
|
17060
17232
|
{
|
|
17061
17233
|
css: linkPopover,
|
|
@@ -17064,18 +17236,20 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
17064
17236
|
top: linkPopoverState.position.y
|
|
17065
17237
|
},
|
|
17066
17238
|
ref: linkPopoverElRef,
|
|
17067
|
-
children: /* @__PURE__ */
|
|
17068
|
-
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */
|
|
17239
|
+
children: /* @__PURE__ */ jsxs65("div", { css: linkPopoverContainer, children: [
|
|
17240
|
+
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ jsx96(
|
|
17069
17241
|
"a",
|
|
17070
17242
|
{
|
|
17071
|
-
href:
|
|
17243
|
+
href: parsePath(
|
|
17244
|
+
`${linkPopoverState.node.__link.type === "email" ? "mailto:" : linkPopoverState.node.__link.type === "tel" ? "tel:" : ""}${linkPopoverState.node.__link.path}`
|
|
17245
|
+
),
|
|
17072
17246
|
css: linkPopoverAnchor,
|
|
17073
17247
|
target: "_blank",
|
|
17074
17248
|
rel: "noopener noreferrer",
|
|
17075
|
-
children: linkPopoverState.node.__link.path
|
|
17249
|
+
children: parsePath(linkPopoverState.node.__link.path)
|
|
17076
17250
|
}
|
|
17077
17251
|
),
|
|
17078
|
-
/* @__PURE__ */
|
|
17252
|
+
/* @__PURE__ */ jsx96(
|
|
17079
17253
|
Button,
|
|
17080
17254
|
{
|
|
17081
17255
|
size: "xs",
|
|
@@ -17083,7 +17257,7 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
17083
17257
|
onEditLinkNode(linkPopoverState.node);
|
|
17084
17258
|
},
|
|
17085
17259
|
buttonType: "ghost",
|
|
17086
|
-
children: /* @__PURE__ */
|
|
17260
|
+
children: /* @__PURE__ */ jsx96(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
|
|
17087
17261
|
}
|
|
17088
17262
|
)
|
|
17089
17263
|
] })
|
|
@@ -17108,7 +17282,7 @@ import {
|
|
|
17108
17282
|
INDENT_CONTENT_COMMAND
|
|
17109
17283
|
} from "lexical";
|
|
17110
17284
|
import { useEffect as useEffect12 } from "react";
|
|
17111
|
-
import { jsx as
|
|
17285
|
+
import { jsx as jsx97 } from "@emotion/react/jsx-runtime";
|
|
17112
17286
|
function isIndentPermitted(maxDepth) {
|
|
17113
17287
|
const selection = $getSelection2();
|
|
17114
17288
|
if (!$isRangeSelection2(selection)) {
|
|
@@ -17138,11 +17312,11 @@ function ListIndentPlugin({ maxDepth }) {
|
|
|
17138
17312
|
COMMAND_PRIORITY_CRITICAL
|
|
17139
17313
|
);
|
|
17140
17314
|
}, [editor, maxDepth]);
|
|
17141
|
-
return /* @__PURE__ */
|
|
17315
|
+
return /* @__PURE__ */ jsx97(TabIndentationPlugin, {});
|
|
17142
17316
|
}
|
|
17143
17317
|
|
|
17144
17318
|
// src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
|
|
17145
|
-
import { css as
|
|
17319
|
+
import { css as css78 } from "@emotion/react";
|
|
17146
17320
|
import { $createCodeNode } from "@lexical/code";
|
|
17147
17321
|
import {
|
|
17148
17322
|
$isListNode as $isListNode2,
|
|
@@ -17165,20 +17339,20 @@ import {
|
|
|
17165
17339
|
SELECTION_CHANGE_COMMAND
|
|
17166
17340
|
} from "lexical";
|
|
17167
17341
|
import { useCallback as useCallback5, useEffect as useEffect13, useMemo as useMemo2, useState as useState11 } from "react";
|
|
17168
|
-
import { Fragment as
|
|
17169
|
-
var toolbar =
|
|
17342
|
+
import { Fragment as Fragment15, jsx as jsx98, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
|
|
17343
|
+
var toolbar = css78`
|
|
17170
17344
|
background: var(--gray-50);
|
|
17171
17345
|
border-radius: var(--rounded-base);
|
|
17172
17346
|
display: flex;
|
|
17173
17347
|
/* We add 1px because we use a 1px wide separator */
|
|
17174
17348
|
gap: calc(var(--spacing-sm) + 1px);
|
|
17175
|
-
margin: calc(var(--spacing-sm) + var(--spacing-xs))
|
|
17349
|
+
margin: calc(var(--spacing-sm) + var(--spacing-xs)) 0;
|
|
17176
17350
|
padding: var(--spacing-sm);
|
|
17177
17351
|
position: sticky;
|
|
17178
|
-
top:
|
|
17352
|
+
top: calc(var(--spacing-sm) * -2);
|
|
17179
17353
|
z-index: 10;
|
|
17180
17354
|
`;
|
|
17181
|
-
var toolbarGroup =
|
|
17355
|
+
var toolbarGroup = css78`
|
|
17182
17356
|
display: flex;
|
|
17183
17357
|
gap: var(--spacing-xs);
|
|
17184
17358
|
position: relative;
|
|
@@ -17194,7 +17368,7 @@ var toolbarGroup = css77`
|
|
|
17194
17368
|
width: 1px;
|
|
17195
17369
|
}
|
|
17196
17370
|
`;
|
|
17197
|
-
var
|
|
17371
|
+
var richTextToolbarButton = css78`
|
|
17198
17372
|
align-items: center;
|
|
17199
17373
|
appearance: none;
|
|
17200
17374
|
border: 0;
|
|
@@ -17207,17 +17381,17 @@ var toolbarButton = css77`
|
|
|
17207
17381
|
min-width: 32px;
|
|
17208
17382
|
padding: 0 var(--spacing-sm);
|
|
17209
17383
|
`;
|
|
17210
|
-
var
|
|
17384
|
+
var richTextToolbarButtonActive = css78`
|
|
17211
17385
|
background: var(--gray-200);
|
|
17212
17386
|
`;
|
|
17213
|
-
var toolbarIcon =
|
|
17387
|
+
var toolbarIcon = css78`
|
|
17214
17388
|
color: inherit;
|
|
17215
17389
|
`;
|
|
17216
|
-
var toolbarChevron =
|
|
17390
|
+
var toolbarChevron = css78`
|
|
17217
17391
|
margin-left: var(--spacing-xs);
|
|
17218
17392
|
`;
|
|
17219
|
-
var
|
|
17220
|
-
return /* @__PURE__ */
|
|
17393
|
+
var RichTextToolbarIcon = ({ icon }) => {
|
|
17394
|
+
return /* @__PURE__ */ jsx98(Icon, { icon, css: toolbarIcon, size: "1rem" });
|
|
17221
17395
|
};
|
|
17222
17396
|
var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
|
|
17223
17397
|
["bold", "format-bold"],
|
|
@@ -17230,7 +17404,7 @@ var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
|
|
|
17230
17404
|
]);
|
|
17231
17405
|
var HEADING_ELEMENTS = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
17232
17406
|
var TEXTUAL_ELEMENTS = HEADING_ELEMENTS;
|
|
17233
|
-
var RichTextToolbar = ({ config }) => {
|
|
17407
|
+
var RichTextToolbar = ({ config, customControls }) => {
|
|
17234
17408
|
const [editor] = useLexicalComposerContext4();
|
|
17235
17409
|
const {
|
|
17236
17410
|
activeElement,
|
|
@@ -17326,15 +17500,15 @@ var RichTextToolbar = ({ config }) => {
|
|
|
17326
17500
|
});
|
|
17327
17501
|
});
|
|
17328
17502
|
}, [editor, updateToolbar]);
|
|
17329
|
-
return /* @__PURE__ */
|
|
17330
|
-
/* @__PURE__ */
|
|
17503
|
+
return /* @__PURE__ */ jsxs66("div", { css: toolbar, children: [
|
|
17504
|
+
/* @__PURE__ */ jsxs66(
|
|
17331
17505
|
Menu,
|
|
17332
17506
|
{
|
|
17333
17507
|
menuLabel: "Elements",
|
|
17334
|
-
menuTrigger: /* @__PURE__ */
|
|
17508
|
+
menuTrigger: /* @__PURE__ */ jsxs66("button", { css: richTextToolbarButton, title: "Text styles", children: [
|
|
17335
17509
|
visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
|
|
17336
17510
|
" ",
|
|
17337
|
-
/* @__PURE__ */
|
|
17511
|
+
/* @__PURE__ */ jsx98(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
|
|
17338
17512
|
] }),
|
|
17339
17513
|
placement: "bottom-start",
|
|
17340
17514
|
children: [
|
|
@@ -17344,7 +17518,7 @@ var RichTextToolbar = ({ config }) => {
|
|
|
17344
17518
|
type: "paragraph"
|
|
17345
17519
|
},
|
|
17346
17520
|
...visibleTextualElements
|
|
17347
|
-
].map((element) => /* @__PURE__ */
|
|
17521
|
+
].map((element) => /* @__PURE__ */ jsx98(
|
|
17348
17522
|
MenuItem,
|
|
17349
17523
|
{
|
|
17350
17524
|
onClick: () => {
|
|
@@ -17354,28 +17528,31 @@ var RichTextToolbar = ({ config }) => {
|
|
|
17354
17528
|
},
|
|
17355
17529
|
element.type
|
|
17356
17530
|
)),
|
|
17357
|
-
visibleTextualElements.length === 0 ? /* @__PURE__ */
|
|
17531
|
+
visibleTextualElements.length === 0 ? /* @__PURE__ */ jsx98(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
|
|
17358
17532
|
]
|
|
17359
17533
|
}
|
|
17360
17534
|
),
|
|
17361
|
-
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
17362
|
-
visibleFormatsWithIcon.map((format) => /* @__PURE__ */
|
|
17535
|
+
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsxs66("div", { css: toolbarGroup, children: [
|
|
17536
|
+
visibleFormatsWithIcon.map((format) => /* @__PURE__ */ jsx98(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ jsx98(
|
|
17363
17537
|
"button",
|
|
17364
17538
|
{
|
|
17365
17539
|
onClick: () => {
|
|
17366
17540
|
editor.dispatchCommand(FORMAT_TEXT_COMMAND, format.type);
|
|
17367
17541
|
},
|
|
17368
|
-
css: [
|
|
17369
|
-
|
|
17542
|
+
css: [
|
|
17543
|
+
richTextToolbarButton,
|
|
17544
|
+
activeFormats.includes(format.type) ? richTextToolbarButtonActive : null
|
|
17545
|
+
],
|
|
17546
|
+
children: /* @__PURE__ */ jsx98(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
|
|
17370
17547
|
}
|
|
17371
17548
|
) }, format.type)),
|
|
17372
|
-
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
17549
|
+
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsx98(
|
|
17373
17550
|
Menu,
|
|
17374
17551
|
{
|
|
17375
17552
|
menuLabel: "Alternative text styles",
|
|
17376
|
-
menuTrigger: /* @__PURE__ */
|
|
17553
|
+
menuTrigger: /* @__PURE__ */ jsx98("button", { css: richTextToolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ jsx98(Icon, { icon: "more-alt", css: toolbarIcon }) }),
|
|
17377
17554
|
placement: "bottom-start",
|
|
17378
|
-
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */
|
|
17555
|
+
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ jsx98(
|
|
17379
17556
|
MenuItem,
|
|
17380
17557
|
{
|
|
17381
17558
|
onClick: () => {
|
|
@@ -17388,60 +17565,67 @@ var RichTextToolbar = ({ config }) => {
|
|
|
17388
17565
|
}
|
|
17389
17566
|
) : null
|
|
17390
17567
|
] }) : null,
|
|
17391
|
-
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */
|
|
17392
|
-
linkElementVisible ? /* @__PURE__ */
|
|
17568
|
+
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ jsxs66("div", { css: toolbarGroup, children: [
|
|
17569
|
+
linkElementVisible ? /* @__PURE__ */ jsx98(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ jsx98(
|
|
17393
17570
|
"button",
|
|
17394
17571
|
{
|
|
17395
17572
|
onClick: () => {
|
|
17396
17573
|
isLink ? editor.dispatchCommand(REMOVE_LINK_NODE_COMMAND, {}) : editor.dispatchCommand(OPEN_LINK_NODE_MODAL_COMMAND, {});
|
|
17397
17574
|
},
|
|
17398
|
-
css: [
|
|
17399
|
-
children: /* @__PURE__ */
|
|
17575
|
+
css: [richTextToolbarButton, isLink ? richTextToolbarButtonActive : null],
|
|
17576
|
+
children: /* @__PURE__ */ jsx98(RichTextToolbarIcon, { icon: "link" })
|
|
17400
17577
|
}
|
|
17401
17578
|
) }) : null,
|
|
17402
|
-
visibleLists.size > 0 ? /* @__PURE__ */
|
|
17403
|
-
visibleLists.has("unorderedList") ? /* @__PURE__ */
|
|
17579
|
+
visibleLists.size > 0 ? /* @__PURE__ */ jsxs66(Fragment15, { children: [
|
|
17580
|
+
visibleLists.has("unorderedList") ? /* @__PURE__ */ jsx98(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ jsx98(
|
|
17404
17581
|
"button",
|
|
17405
17582
|
{
|
|
17406
17583
|
onClick: () => {
|
|
17407
17584
|
activeElement === "unorderedList" ? editor.dispatchCommand(REMOVE_LIST_COMMAND, void 0) : editor.dispatchCommand(INSERT_UNORDERED_LIST_COMMAND, void 0);
|
|
17408
17585
|
},
|
|
17409
|
-
css: [
|
|
17410
|
-
|
|
17586
|
+
css: [
|
|
17587
|
+
richTextToolbarButton,
|
|
17588
|
+
activeElement === "unorderedList" ? richTextToolbarButtonActive : null
|
|
17589
|
+
],
|
|
17590
|
+
children: /* @__PURE__ */ jsx98(RichTextToolbarIcon, { icon: "layout-list" })
|
|
17411
17591
|
}
|
|
17412
17592
|
) }) : null,
|
|
17413
|
-
visibleLists.has("orderedList") ? /* @__PURE__ */
|
|
17593
|
+
visibleLists.has("orderedList") ? /* @__PURE__ */ jsx98(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ jsx98(
|
|
17414
17594
|
"button",
|
|
17415
17595
|
{
|
|
17416
17596
|
onClick: () => {
|
|
17417
17597
|
activeElement === "orderedList" ? editor.dispatchCommand(REMOVE_LIST_COMMAND, void 0) : editor.dispatchCommand(INSERT_ORDERED_LIST_COMMAND, void 0);
|
|
17418
17598
|
},
|
|
17419
|
-
css: [
|
|
17420
|
-
|
|
17599
|
+
css: [
|
|
17600
|
+
richTextToolbarButton,
|
|
17601
|
+
activeElement === "orderedList" ? richTextToolbarButtonActive : null
|
|
17602
|
+
],
|
|
17603
|
+
children: /* @__PURE__ */ jsx98(RichTextToolbarIcon, { icon: "layout-list-numbered" })
|
|
17421
17604
|
}
|
|
17422
17605
|
) }) : null
|
|
17423
17606
|
] }) : null,
|
|
17424
|
-
quoteElementVisible ? /* @__PURE__ */
|
|
17607
|
+
quoteElementVisible ? /* @__PURE__ */ jsx98(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ jsx98(
|
|
17425
17608
|
"button",
|
|
17426
17609
|
{
|
|
17427
17610
|
onClick: () => {
|
|
17428
17611
|
activeElement === "quote" ? onSelectElement("paragraph") : onSelectElement("quote");
|
|
17429
17612
|
},
|
|
17430
|
-
css: [
|
|
17431
|
-
children: /* @__PURE__ */
|
|
17613
|
+
css: [richTextToolbarButton, activeElement === "quote" ? richTextToolbarButtonActive : null],
|
|
17614
|
+
children: /* @__PURE__ */ jsx98(RichTextToolbarIcon, { icon: "quote" })
|
|
17432
17615
|
}
|
|
17433
17616
|
) }) : null,
|
|
17434
|
-
codeElementVisible ? /* @__PURE__ */
|
|
17617
|
+
codeElementVisible ? /* @__PURE__ */ jsx98(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ jsx98(
|
|
17435
17618
|
"button",
|
|
17436
17619
|
{
|
|
17437
17620
|
onClick: () => {
|
|
17438
17621
|
activeElement === "code" ? onSelectElement("paragraph") : onSelectElement("code");
|
|
17439
17622
|
},
|
|
17440
|
-
css: [
|
|
17441
|
-
children: /* @__PURE__ */
|
|
17623
|
+
css: [richTextToolbarButton, activeElement === "code" ? richTextToolbarButtonActive : null],
|
|
17624
|
+
children: /* @__PURE__ */ jsx98(RichTextToolbarIcon, { icon: "code-slash" })
|
|
17442
17625
|
}
|
|
17443
17626
|
) }) : null
|
|
17444
|
-
] }) : null
|
|
17627
|
+
] }) : null,
|
|
17628
|
+
customControls ? /* @__PURE__ */ jsx98("div", { css: toolbarGroup, children: customControls }) : null
|
|
17445
17629
|
] });
|
|
17446
17630
|
};
|
|
17447
17631
|
var RichTextToolbar_default = RichTextToolbar;
|
|
@@ -17555,7 +17739,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
17555
17739
|
};
|
|
17556
17740
|
|
|
17557
17741
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
17558
|
-
import { Fragment as
|
|
17742
|
+
import { Fragment as Fragment16, jsx as jsx99, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
|
|
17559
17743
|
var ParameterRichText = ({
|
|
17560
17744
|
label,
|
|
17561
17745
|
labelLeadingIcon,
|
|
@@ -17574,9 +17758,13 @@ var ParameterRichText = ({
|
|
|
17574
17758
|
readOnly,
|
|
17575
17759
|
editorWrapperClassName,
|
|
17576
17760
|
editorInputClassName,
|
|
17577
|
-
editorFooter
|
|
17761
|
+
editorFooter,
|
|
17762
|
+
customNodes,
|
|
17763
|
+
children,
|
|
17764
|
+
variables,
|
|
17765
|
+
customControls
|
|
17578
17766
|
}) => {
|
|
17579
|
-
return /* @__PURE__ */
|
|
17767
|
+
return /* @__PURE__ */ jsxs67(
|
|
17580
17768
|
ParameterShell,
|
|
17581
17769
|
{
|
|
17582
17770
|
"data-testid": "parameter-input",
|
|
@@ -17590,7 +17778,7 @@ var ParameterRichText = ({
|
|
|
17590
17778
|
captionTestId,
|
|
17591
17779
|
menuItems,
|
|
17592
17780
|
children: [
|
|
17593
|
-
/* @__PURE__ */
|
|
17781
|
+
/* @__PURE__ */ jsx99(
|
|
17594
17782
|
ParameterRichTextInner,
|
|
17595
17783
|
{
|
|
17596
17784
|
value,
|
|
@@ -17601,26 +17789,30 @@ var ParameterRichText = ({
|
|
|
17601
17789
|
readOnly,
|
|
17602
17790
|
editorWrapperClassName,
|
|
17603
17791
|
editorInputClassName,
|
|
17604
|
-
editorFooter
|
|
17792
|
+
editorFooter,
|
|
17793
|
+
customNodes,
|
|
17794
|
+
variables,
|
|
17795
|
+
customControls,
|
|
17796
|
+
children
|
|
17605
17797
|
}
|
|
17606
17798
|
),
|
|
17607
|
-
menuItems ? /* @__PURE__ */
|
|
17799
|
+
menuItems ? /* @__PURE__ */ jsx99(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx99(Fragment16, { children: menuItems }) }) : null
|
|
17608
17800
|
]
|
|
17609
17801
|
}
|
|
17610
17802
|
);
|
|
17611
17803
|
};
|
|
17612
|
-
var editorWrapper =
|
|
17804
|
+
var editorWrapper = css79`
|
|
17613
17805
|
display: flex;
|
|
17614
17806
|
flex-flow: column;
|
|
17615
17807
|
flex-grow: 1;
|
|
17616
17808
|
`;
|
|
17617
|
-
var editorContainer =
|
|
17809
|
+
var editorContainer = css79`
|
|
17618
17810
|
display: flex;
|
|
17619
17811
|
flex-flow: column;
|
|
17620
17812
|
flex-grow: 1;
|
|
17621
17813
|
position: relative;
|
|
17622
17814
|
`;
|
|
17623
|
-
var editorPlaceholder =
|
|
17815
|
+
var editorPlaceholder = css79`
|
|
17624
17816
|
color: var(--gray-500);
|
|
17625
17817
|
font-style: italic;
|
|
17626
17818
|
/* 1px is added to make sure caret is clearly visible when field is focused
|
|
@@ -17631,7 +17823,7 @@ var editorPlaceholder = css78`
|
|
|
17631
17823
|
top: var(--spacing-xs);
|
|
17632
17824
|
user-select: none;
|
|
17633
17825
|
`;
|
|
17634
|
-
var editorInput =
|
|
17826
|
+
var editorInput = css79`
|
|
17635
17827
|
background: var(--white);
|
|
17636
17828
|
border: 1px solid var(--white);
|
|
17637
17829
|
border-radius: var(--rounded-sm);
|
|
@@ -17659,7 +17851,11 @@ var ParameterRichTextInner = ({
|
|
|
17659
17851
|
readOnly,
|
|
17660
17852
|
editorWrapperClassName,
|
|
17661
17853
|
editorInputClassName,
|
|
17662
|
-
editorFooter
|
|
17854
|
+
editorFooter,
|
|
17855
|
+
children,
|
|
17856
|
+
customNodes,
|
|
17857
|
+
variables,
|
|
17858
|
+
customControls
|
|
17663
17859
|
}) => {
|
|
17664
17860
|
const lexicalConfig = {
|
|
17665
17861
|
namespace: "uniform",
|
|
@@ -17667,7 +17863,16 @@ var ParameterRichTextInner = ({
|
|
|
17667
17863
|
console.error(error);
|
|
17668
17864
|
},
|
|
17669
17865
|
editorState: value ? JSON.stringify(value) : void 0,
|
|
17670
|
-
nodes: [
|
|
17866
|
+
nodes: [
|
|
17867
|
+
ListNode2,
|
|
17868
|
+
ListItemNode,
|
|
17869
|
+
LinkNode,
|
|
17870
|
+
HeadingNode,
|
|
17871
|
+
QuoteNode,
|
|
17872
|
+
ParagraphNode2,
|
|
17873
|
+
CustomCodeNode,
|
|
17874
|
+
...customNodes != null ? customNodes : []
|
|
17875
|
+
],
|
|
17671
17876
|
theme: {
|
|
17672
17877
|
text: {
|
|
17673
17878
|
bold: textBold,
|
|
@@ -17702,8 +17907,8 @@ var ParameterRichTextInner = ({
|
|
|
17702
17907
|
},
|
|
17703
17908
|
editable: !readOnly
|
|
17704
17909
|
};
|
|
17705
|
-
return /* @__PURE__ */
|
|
17706
|
-
/* @__PURE__ */
|
|
17910
|
+
return /* @__PURE__ */ jsxs67(Fragment16, { children: [
|
|
17911
|
+
/* @__PURE__ */ jsx99("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx99(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx99(
|
|
17707
17912
|
RichText,
|
|
17708
17913
|
{
|
|
17709
17914
|
onChange,
|
|
@@ -17711,7 +17916,10 @@ var ParameterRichTextInner = ({
|
|
|
17711
17916
|
config,
|
|
17712
17917
|
onRichTextInit,
|
|
17713
17918
|
readOnly,
|
|
17714
|
-
editorInputClassName
|
|
17919
|
+
editorInputClassName,
|
|
17920
|
+
variables,
|
|
17921
|
+
customControls,
|
|
17922
|
+
children
|
|
17715
17923
|
}
|
|
17716
17924
|
) }) }),
|
|
17717
17925
|
editorFooter ? editorFooter : null
|
|
@@ -17732,7 +17940,10 @@ var RichText = ({
|
|
|
17732
17940
|
config,
|
|
17733
17941
|
onRichTextInit,
|
|
17734
17942
|
readOnly,
|
|
17735
|
-
editorInputClassName
|
|
17943
|
+
editorInputClassName,
|
|
17944
|
+
children,
|
|
17945
|
+
variables,
|
|
17946
|
+
customControls
|
|
17736
17947
|
}) => {
|
|
17737
17948
|
const editorContainerRef = useRef7(null);
|
|
17738
17949
|
const [editor] = useLexicalComposerContext5();
|
|
@@ -17753,40 +17964,50 @@ var RichText = ({
|
|
|
17753
17964
|
removeUpdateListener();
|
|
17754
17965
|
};
|
|
17755
17966
|
}, []);
|
|
17756
|
-
return /* @__PURE__ */
|
|
17757
|
-
readOnly ? null : /* @__PURE__ */
|
|
17758
|
-
/* @__PURE__ */
|
|
17759
|
-
/* @__PURE__ */
|
|
17967
|
+
return /* @__PURE__ */ jsxs67(Fragment16, { children: [
|
|
17968
|
+
readOnly ? null : /* @__PURE__ */ jsx99(RichTextToolbar_default, { config, customControls }),
|
|
17969
|
+
/* @__PURE__ */ jsxs67("div", { css: editorContainer, ref: editorContainerRef, children: [
|
|
17970
|
+
/* @__PURE__ */ jsx99(
|
|
17760
17971
|
RichTextPlugin,
|
|
17761
17972
|
{
|
|
17762
|
-
contentEditable: /* @__PURE__ */
|
|
17763
|
-
placeholder: /* @__PURE__ */
|
|
17973
|
+
contentEditable: /* @__PURE__ */ jsx99(ContentEditable, { css: editorInput, className: editorInputClassName }),
|
|
17974
|
+
placeholder: /* @__PURE__ */ jsx99("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
|
|
17764
17975
|
ErrorBoundary: LexicalErrorBoundary
|
|
17765
17976
|
}
|
|
17766
17977
|
),
|
|
17767
|
-
/* @__PURE__ */
|
|
17768
|
-
readOnly ? null : /* @__PURE__ */
|
|
17769
|
-
/* @__PURE__ */
|
|
17770
|
-
|
|
17771
|
-
|
|
17772
|
-
|
|
17978
|
+
/* @__PURE__ */ jsx99(ListPlugin, {}),
|
|
17979
|
+
readOnly ? null : /* @__PURE__ */ jsx99(HistoryPlugin, {}),
|
|
17980
|
+
/* @__PURE__ */ jsx99(
|
|
17981
|
+
LinkNodePlugin,
|
|
17982
|
+
{
|
|
17983
|
+
onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve(),
|
|
17984
|
+
getBoundPath: (variables == null ? void 0 : variables.bindVariables) ? (path) => {
|
|
17985
|
+
var _a, _b;
|
|
17986
|
+
return (_b = (_a = variables.bindVariables) == null ? void 0 : _a.call(variables, path)) != null ? _b : path;
|
|
17987
|
+
} : void 0
|
|
17988
|
+
}
|
|
17989
|
+
),
|
|
17990
|
+
/* @__PURE__ */ jsx99(ListIndentPlugin, { maxDepth: 4 }),
|
|
17991
|
+
/* @__PURE__ */ jsx99(DisableStylesPlugin, {}),
|
|
17992
|
+
/* @__PURE__ */ jsx99(MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
|
|
17993
|
+
/* @__PURE__ */ jsx99(Fragment16, { children })
|
|
17773
17994
|
] })
|
|
17774
17995
|
] });
|
|
17775
17996
|
};
|
|
17776
17997
|
|
|
17777
17998
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
17778
17999
|
import { forwardRef as forwardRef14 } from "react";
|
|
17779
|
-
import { jsx as
|
|
18000
|
+
import { jsx as jsx100, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
|
|
17780
18001
|
var ParameterSelect = forwardRef14(
|
|
17781
18002
|
({ defaultOption, options, ...props }, ref) => {
|
|
17782
18003
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
17783
|
-
return /* @__PURE__ */
|
|
18004
|
+
return /* @__PURE__ */ jsx100(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx100(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
17784
18005
|
}
|
|
17785
18006
|
);
|
|
17786
18007
|
var ParameterSelectInner = forwardRef14(
|
|
17787
18008
|
({ defaultOption, options, ...props }, ref) => {
|
|
17788
18009
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
17789
|
-
return /* @__PURE__ */
|
|
18010
|
+
return /* @__PURE__ */ jsxs68(
|
|
17790
18011
|
"select",
|
|
17791
18012
|
{
|
|
17792
18013
|
css: [input2, selectInput],
|
|
@@ -17795,10 +18016,10 @@ var ParameterSelectInner = forwardRef14(
|
|
|
17795
18016
|
ref,
|
|
17796
18017
|
...props,
|
|
17797
18018
|
children: [
|
|
17798
|
-
defaultOption ? /* @__PURE__ */
|
|
18019
|
+
defaultOption ? /* @__PURE__ */ jsx100("option", { value: "", children: defaultOption }) : null,
|
|
17799
18020
|
options.map((option) => {
|
|
17800
18021
|
var _a;
|
|
17801
|
-
return /* @__PURE__ */
|
|
18022
|
+
return /* @__PURE__ */ jsx100("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
17802
18023
|
})
|
|
17803
18024
|
]
|
|
17804
18025
|
}
|
|
@@ -17808,14 +18029,14 @@ var ParameterSelectInner = forwardRef14(
|
|
|
17808
18029
|
|
|
17809
18030
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
17810
18031
|
import { forwardRef as forwardRef15 } from "react";
|
|
17811
|
-
import { jsx as
|
|
18032
|
+
import { jsx as jsx101 } from "@emotion/react/jsx-runtime";
|
|
17812
18033
|
var ParameterTextarea = forwardRef15((props, ref) => {
|
|
17813
18034
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
17814
|
-
return /* @__PURE__ */
|
|
18035
|
+
return /* @__PURE__ */ jsx101(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx101(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
17815
18036
|
});
|
|
17816
18037
|
var ParameterTextareaInner = forwardRef15(({ ...props }, ref) => {
|
|
17817
18038
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
17818
|
-
return /* @__PURE__ */
|
|
18039
|
+
return /* @__PURE__ */ jsx101(
|
|
17819
18040
|
"textarea",
|
|
17820
18041
|
{
|
|
17821
18042
|
css: [input2, textarea2],
|
|
@@ -17829,17 +18050,17 @@ var ParameterTextareaInner = forwardRef15(({ ...props }, ref) => {
|
|
|
17829
18050
|
|
|
17830
18051
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
17831
18052
|
import { forwardRef as forwardRef16 } from "react";
|
|
17832
|
-
import { jsx as
|
|
18053
|
+
import { jsx as jsx102, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
|
|
17833
18054
|
var ParameterToggle = forwardRef16((props, ref) => {
|
|
17834
18055
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
17835
|
-
return /* @__PURE__ */
|
|
18056
|
+
return /* @__PURE__ */ jsx102(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx102(ParameterToggleInner, { ref, ...innerProps }) });
|
|
17836
18057
|
});
|
|
17837
18058
|
var ParameterToggleInner = forwardRef16(
|
|
17838
18059
|
({ ...props }, ref) => {
|
|
17839
18060
|
const { id, label } = useParameterShell();
|
|
17840
|
-
return /* @__PURE__ */
|
|
17841
|
-
/* @__PURE__ */
|
|
17842
|
-
/* @__PURE__ */
|
|
18061
|
+
return /* @__PURE__ */ jsxs69("label", { css: inputToggleLabel2, children: [
|
|
18062
|
+
/* @__PURE__ */ jsx102("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
18063
|
+
/* @__PURE__ */ jsx102("span", { css: inlineLabel2, children: label })
|
|
17843
18064
|
] });
|
|
17844
18065
|
}
|
|
17845
18066
|
);
|
|
@@ -17850,7 +18071,7 @@ import {
|
|
|
17850
18071
|
PopoverDisclosure,
|
|
17851
18072
|
usePopoverState
|
|
17852
18073
|
} from "reakit/Popover";
|
|
17853
|
-
import { Fragment as
|
|
18074
|
+
import { Fragment as Fragment17, jsx as jsx103, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
17854
18075
|
var Popover2 = ({
|
|
17855
18076
|
iconColor = "action",
|
|
17856
18077
|
icon = "info",
|
|
@@ -17863,36 +18084,36 @@ var Popover2 = ({
|
|
|
17863
18084
|
...otherProps
|
|
17864
18085
|
}) => {
|
|
17865
18086
|
const popover = usePopoverState({ placement });
|
|
17866
|
-
return /* @__PURE__ */
|
|
17867
|
-
/* @__PURE__ */
|
|
17868
|
-
/* @__PURE__ */
|
|
17869
|
-
/* @__PURE__ */
|
|
18087
|
+
return /* @__PURE__ */ jsxs70(Fragment17, { children: [
|
|
18088
|
+
/* @__PURE__ */ jsxs70(PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, "data-testid": testId, children: [
|
|
18089
|
+
/* @__PURE__ */ jsx103(Icon, { icon, iconColor, size: iconSize }),
|
|
18090
|
+
/* @__PURE__ */ jsx103("span", { hidden: true, children: buttonText })
|
|
17870
18091
|
] }),
|
|
17871
|
-
/* @__PURE__ */
|
|
18092
|
+
/* @__PURE__ */ jsx103(ReakitPopover, { css: Popover, ...otherProps, ...popover, role: "tooltip", "aria-label": ariaLabel, children })
|
|
17872
18093
|
] });
|
|
17873
18094
|
};
|
|
17874
18095
|
|
|
17875
18096
|
// src/components/ProgressList/ProgressList.tsx
|
|
17876
|
-
import { css as
|
|
18097
|
+
import { css as css81 } from "@emotion/react";
|
|
17877
18098
|
import { useMemo as useMemo3 } from "react";
|
|
17878
18099
|
import { CgCheckO as CgCheckO2, CgRadioCheck, CgRecord } from "react-icons/cg";
|
|
17879
18100
|
|
|
17880
18101
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
17881
|
-
import { css as
|
|
17882
|
-
var progressListStyles =
|
|
18102
|
+
import { css as css80 } from "@emotion/react";
|
|
18103
|
+
var progressListStyles = css80`
|
|
17883
18104
|
display: flex;
|
|
17884
18105
|
flex-direction: column;
|
|
17885
18106
|
gap: var(--spacing-sm);
|
|
17886
18107
|
list-style-type: none;
|
|
17887
18108
|
`;
|
|
17888
|
-
var progressListItemStyles =
|
|
18109
|
+
var progressListItemStyles = css80`
|
|
17889
18110
|
display: flex;
|
|
17890
18111
|
gap: var(--spacing-base);
|
|
17891
18112
|
align-items: center;
|
|
17892
18113
|
`;
|
|
17893
18114
|
|
|
17894
18115
|
// src/components/ProgressList/ProgressList.tsx
|
|
17895
|
-
import { jsx as
|
|
18116
|
+
import { jsx as jsx104, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
|
|
17896
18117
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
17897
18118
|
const itemsWithStatus = useMemo3(() => {
|
|
17898
18119
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -17906,8 +18127,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
17906
18127
|
return { ...item, status };
|
|
17907
18128
|
});
|
|
17908
18129
|
}, [items, inProgressId]);
|
|
17909
|
-
return /* @__PURE__ */
|
|
17910
|
-
return /* @__PURE__ */
|
|
18130
|
+
return /* @__PURE__ */ jsx104("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
18131
|
+
return /* @__PURE__ */ jsx104(
|
|
17911
18132
|
ProgressListItem,
|
|
17912
18133
|
{
|
|
17913
18134
|
status,
|
|
@@ -17940,12 +18161,12 @@ var ProgressListItem = ({
|
|
|
17940
18161
|
}, [status, error]);
|
|
17941
18162
|
const statusStyles = useMemo3(() => {
|
|
17942
18163
|
if (error) {
|
|
17943
|
-
return errorLevel === "caution" ?
|
|
18164
|
+
return errorLevel === "caution" ? css81`
|
|
17944
18165
|
color: rgb(161, 98, 7);
|
|
17945
18166
|
& svg {
|
|
17946
18167
|
color: rgb(250, 204, 21);
|
|
17947
18168
|
}
|
|
17948
|
-
` :
|
|
18169
|
+
` : css81`
|
|
17949
18170
|
color: rgb(185, 28, 28);
|
|
17950
18171
|
& svg {
|
|
17951
18172
|
color: var(--brand-primary-2);
|
|
@@ -17953,35 +18174,35 @@ var ProgressListItem = ({
|
|
|
17953
18174
|
`;
|
|
17954
18175
|
}
|
|
17955
18176
|
const colorPerStatus = {
|
|
17956
|
-
completed:
|
|
18177
|
+
completed: css81`
|
|
17957
18178
|
opacity: 0.75;
|
|
17958
18179
|
`,
|
|
17959
|
-
inProgress:
|
|
18180
|
+
inProgress: css81`
|
|
17960
18181
|
-webkit-text-stroke-width: thin;
|
|
17961
18182
|
`,
|
|
17962
|
-
queued:
|
|
18183
|
+
queued: css81`
|
|
17963
18184
|
opacity: 0.5;
|
|
17964
18185
|
`
|
|
17965
18186
|
};
|
|
17966
18187
|
return colorPerStatus[status];
|
|
17967
18188
|
}, [status, error, errorLevel]);
|
|
17968
|
-
return /* @__PURE__ */
|
|
17969
|
-
/* @__PURE__ */
|
|
17970
|
-
/* @__PURE__ */
|
|
18189
|
+
return /* @__PURE__ */ jsxs71("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
18190
|
+
/* @__PURE__ */ jsx104(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx104("div", { children: /* @__PURE__ */ jsx104(Icon2, { size: 20 }) }) }),
|
|
18191
|
+
/* @__PURE__ */ jsxs71("div", { children: [
|
|
17971
18192
|
children,
|
|
17972
|
-
/* @__PURE__ */
|
|
18193
|
+
/* @__PURE__ */ jsx104("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
17973
18194
|
] })
|
|
17974
18195
|
] });
|
|
17975
18196
|
};
|
|
17976
18197
|
|
|
17977
18198
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
17978
|
-
import { css as
|
|
18199
|
+
import { css as css83 } from "@emotion/react";
|
|
17979
18200
|
import { useCallback as useCallback6, useMemo as useMemo4 } from "react";
|
|
17980
18201
|
import { CgCheck as CgCheck4 } from "react-icons/cg";
|
|
17981
18202
|
|
|
17982
18203
|
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
17983
|
-
import { css as
|
|
17984
|
-
var segmentedControlStyles =
|
|
18204
|
+
import { css as css82 } from "@emotion/react";
|
|
18205
|
+
var segmentedControlStyles = css82`
|
|
17985
18206
|
--segmented-control-rounded-value: var(--rounded-base);
|
|
17986
18207
|
--segmented-control-border-width: 1px;
|
|
17987
18208
|
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
@@ -18000,14 +18221,14 @@ var segmentedControlStyles = css81`
|
|
|
18000
18221
|
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
18001
18222
|
font-size: var(--fs-xs);
|
|
18002
18223
|
`;
|
|
18003
|
-
var segmentedControlVerticalStyles =
|
|
18224
|
+
var segmentedControlVerticalStyles = css82`
|
|
18004
18225
|
flex-direction: column;
|
|
18005
18226
|
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
18006
18227
|
var(--segmented-control-rounded-value) 0 0;
|
|
18007
18228
|
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
18008
18229
|
var(--segmented-control-rounded-value);
|
|
18009
18230
|
`;
|
|
18010
|
-
var segmentedControlItemStyles =
|
|
18231
|
+
var segmentedControlItemStyles = css82`
|
|
18011
18232
|
&:first-of-type label {
|
|
18012
18233
|
border-radius: var(--segmented-control-first-border-radius);
|
|
18013
18234
|
}
|
|
@@ -18015,10 +18236,10 @@ var segmentedControlItemStyles = css81`
|
|
|
18015
18236
|
border-radius: var(--segmented-control-last-border-radius);
|
|
18016
18237
|
}
|
|
18017
18238
|
`;
|
|
18018
|
-
var segmentedControlInputStyles =
|
|
18239
|
+
var segmentedControlInputStyles = css82`
|
|
18019
18240
|
${accessibleHidden}
|
|
18020
18241
|
`;
|
|
18021
|
-
var segmentedControlLabelStyles = (checked, disabled) =>
|
|
18242
|
+
var segmentedControlLabelStyles = (checked, disabled) => css82`
|
|
18022
18243
|
position: relative;
|
|
18023
18244
|
display: flex;
|
|
18024
18245
|
align-items: center;
|
|
@@ -18085,23 +18306,23 @@ var segmentedControlLabelStyles = (checked, disabled) => css81`
|
|
|
18085
18306
|
`}
|
|
18086
18307
|
}
|
|
18087
18308
|
`;
|
|
18088
|
-
var segmentedControlLabelIconOnlyStyles =
|
|
18309
|
+
var segmentedControlLabelIconOnlyStyles = css82`
|
|
18089
18310
|
padding-inline: 0.5em;
|
|
18090
18311
|
`;
|
|
18091
|
-
var segmentedControlLabelCheckStyles =
|
|
18312
|
+
var segmentedControlLabelCheckStyles = css82`
|
|
18092
18313
|
opacity: 0.5;
|
|
18093
18314
|
`;
|
|
18094
|
-
var segmentedControlLabelContentStyles =
|
|
18315
|
+
var segmentedControlLabelContentStyles = css82`
|
|
18095
18316
|
display: flex;
|
|
18096
18317
|
align-items: center;
|
|
18097
18318
|
justify-content: center;
|
|
18098
18319
|
gap: var(--spacing-sm);
|
|
18099
18320
|
height: 100%;
|
|
18100
18321
|
`;
|
|
18101
|
-
var segmentedControlLabelTextStyles =
|
|
18322
|
+
var segmentedControlLabelTextStyles = css82``;
|
|
18102
18323
|
|
|
18103
18324
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
18104
|
-
import { jsx as
|
|
18325
|
+
import { jsx as jsx105, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
|
|
18105
18326
|
var SegmentedControl = ({
|
|
18106
18327
|
name,
|
|
18107
18328
|
options,
|
|
@@ -18123,16 +18344,16 @@ var SegmentedControl = ({
|
|
|
18123
18344
|
);
|
|
18124
18345
|
const sizeStyles = useMemo4(() => {
|
|
18125
18346
|
const map = {
|
|
18126
|
-
sm:
|
|
18127
|
-
md:
|
|
18128
|
-
lg:
|
|
18347
|
+
sm: css83({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
18348
|
+
md: css83({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
18349
|
+
lg: css83({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
|
|
18129
18350
|
};
|
|
18130
18351
|
return map[size];
|
|
18131
18352
|
}, [size]);
|
|
18132
18353
|
const isIconOnly = useMemo4(() => {
|
|
18133
18354
|
return options.every((option) => option.icon && !option.label);
|
|
18134
18355
|
}, [options]);
|
|
18135
|
-
return /* @__PURE__ */
|
|
18356
|
+
return /* @__PURE__ */ jsx105(
|
|
18136
18357
|
"div",
|
|
18137
18358
|
{
|
|
18138
18359
|
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
@@ -18140,11 +18361,11 @@ var SegmentedControl = ({
|
|
|
18140
18361
|
children: options.map((option, index) => {
|
|
18141
18362
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
18142
18363
|
const isDisabled = disabled || option.disabled;
|
|
18143
|
-
return /* @__PURE__ */
|
|
18364
|
+
return /* @__PURE__ */ jsx105(
|
|
18144
18365
|
Tooltip,
|
|
18145
18366
|
{
|
|
18146
18367
|
title: isDisabled || !option.tooltip ? "" : option.tooltip,
|
|
18147
|
-
children: /* @__PURE__ */
|
|
18368
|
+
children: /* @__PURE__ */ jsx105("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ jsxs72(
|
|
18148
18369
|
"label",
|
|
18149
18370
|
{
|
|
18150
18371
|
css: [
|
|
@@ -18153,7 +18374,7 @@ var SegmentedControl = ({
|
|
|
18153
18374
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
18154
18375
|
],
|
|
18155
18376
|
children: [
|
|
18156
|
-
/* @__PURE__ */
|
|
18377
|
+
/* @__PURE__ */ jsx105(
|
|
18157
18378
|
"input",
|
|
18158
18379
|
{
|
|
18159
18380
|
css: segmentedControlInputStyles,
|
|
@@ -18165,10 +18386,10 @@ var SegmentedControl = ({
|
|
|
18165
18386
|
disabled: isDisabled
|
|
18166
18387
|
}
|
|
18167
18388
|
),
|
|
18168
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */
|
|
18169
|
-
/* @__PURE__ */
|
|
18170
|
-
!option.icon ? null : /* @__PURE__ */
|
|
18171
|
-
!text ? null : /* @__PURE__ */
|
|
18389
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx105(CgCheck4, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
18390
|
+
/* @__PURE__ */ jsxs72("span", { css: segmentedControlLabelContentStyles, children: [
|
|
18391
|
+
!option.icon ? null : /* @__PURE__ */ jsx105(option.icon, { size: "1.5em" }),
|
|
18392
|
+
!text ? null : /* @__PURE__ */ jsx105("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
18172
18393
|
] })
|
|
18173
18394
|
]
|
|
18174
18395
|
}
|
|
@@ -18182,18 +18403,18 @@ var SegmentedControl = ({
|
|
|
18182
18403
|
};
|
|
18183
18404
|
|
|
18184
18405
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
18185
|
-
import { css as
|
|
18406
|
+
import { css as css84, keyframes as keyframes4 } from "@emotion/react";
|
|
18186
18407
|
var lightFadingOut = keyframes4`
|
|
18187
18408
|
from { opacity: 0.1; }
|
|
18188
18409
|
to { opacity: 0.025; }
|
|
18189
18410
|
`;
|
|
18190
|
-
var skeletonStyles =
|
|
18411
|
+
var skeletonStyles = css84`
|
|
18191
18412
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
18192
18413
|
background-color: var(--gray-900);
|
|
18193
18414
|
`;
|
|
18194
18415
|
|
|
18195
18416
|
// src/components/Skeleton/Skeleton.tsx
|
|
18196
|
-
import { jsx as
|
|
18417
|
+
import { jsx as jsx106 } from "@emotion/react/jsx-runtime";
|
|
18197
18418
|
var Skeleton = ({
|
|
18198
18419
|
width = "100%",
|
|
18199
18420
|
height = "1.25rem",
|
|
@@ -18201,7 +18422,7 @@ var Skeleton = ({
|
|
|
18201
18422
|
circle = false,
|
|
18202
18423
|
children,
|
|
18203
18424
|
...otherProps
|
|
18204
|
-
}) => /* @__PURE__ */
|
|
18425
|
+
}) => /* @__PURE__ */ jsx106(
|
|
18205
18426
|
"div",
|
|
18206
18427
|
{
|
|
18207
18428
|
css: [
|
|
@@ -18224,8 +18445,8 @@ var Skeleton = ({
|
|
|
18224
18445
|
import * as React23 from "react";
|
|
18225
18446
|
|
|
18226
18447
|
// src/components/Switch/Switch.styles.ts
|
|
18227
|
-
import { css as
|
|
18228
|
-
var SwitchInputContainer =
|
|
18448
|
+
import { css as css85 } from "@emotion/react";
|
|
18449
|
+
var SwitchInputContainer = css85`
|
|
18229
18450
|
cursor: pointer;
|
|
18230
18451
|
display: inline-block;
|
|
18231
18452
|
position: relative;
|
|
@@ -18234,7 +18455,7 @@ var SwitchInputContainer = css84`
|
|
|
18234
18455
|
vertical-align: middle;
|
|
18235
18456
|
user-select: none;
|
|
18236
18457
|
`;
|
|
18237
|
-
var SwitchInput =
|
|
18458
|
+
var SwitchInput = css85`
|
|
18238
18459
|
appearance: none;
|
|
18239
18460
|
border-radius: var(--rounded-full);
|
|
18240
18461
|
background-color: var(--white);
|
|
@@ -18272,7 +18493,7 @@ var SwitchInput = css84`
|
|
|
18272
18493
|
cursor: not-allowed;
|
|
18273
18494
|
}
|
|
18274
18495
|
`;
|
|
18275
|
-
var SwitchInputDisabled =
|
|
18496
|
+
var SwitchInputDisabled = css85`
|
|
18276
18497
|
opacity: var(--opacity-50);
|
|
18277
18498
|
cursor: not-allowed;
|
|
18278
18499
|
|
|
@@ -18280,7 +18501,7 @@ var SwitchInputDisabled = css84`
|
|
|
18280
18501
|
cursor: not-allowed;
|
|
18281
18502
|
}
|
|
18282
18503
|
`;
|
|
18283
|
-
var SwitchInputLabel =
|
|
18504
|
+
var SwitchInputLabel = css85`
|
|
18284
18505
|
align-items: center;
|
|
18285
18506
|
color: var(--brand-secondary-1);
|
|
18286
18507
|
display: inline-flex;
|
|
@@ -18302,26 +18523,26 @@ var SwitchInputLabel = css84`
|
|
|
18302
18523
|
top: 0;
|
|
18303
18524
|
}
|
|
18304
18525
|
`;
|
|
18305
|
-
var SwitchText =
|
|
18526
|
+
var SwitchText = css85`
|
|
18306
18527
|
color: var(--gray-500);
|
|
18307
18528
|
font-size: var(--fs-sm);
|
|
18308
18529
|
padding-inline: var(--spacing-2xl) 0;
|
|
18309
18530
|
`;
|
|
18310
18531
|
|
|
18311
18532
|
// src/components/Switch/Switch.tsx
|
|
18312
|
-
import { Fragment as
|
|
18533
|
+
import { Fragment as Fragment18, jsx as jsx107, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
|
|
18313
18534
|
var Switch = React23.forwardRef(
|
|
18314
18535
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
18315
18536
|
let additionalText = infoText;
|
|
18316
18537
|
if (infoText && toggleText) {
|
|
18317
18538
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
18318
18539
|
}
|
|
18319
|
-
return /* @__PURE__ */
|
|
18320
|
-
/* @__PURE__ */
|
|
18321
|
-
/* @__PURE__ */
|
|
18322
|
-
/* @__PURE__ */
|
|
18540
|
+
return /* @__PURE__ */ jsxs73(Fragment18, { children: [
|
|
18541
|
+
/* @__PURE__ */ jsxs73("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
18542
|
+
/* @__PURE__ */ jsx107("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
18543
|
+
/* @__PURE__ */ jsx107("span", { css: SwitchInputLabel, children: label })
|
|
18323
18544
|
] }),
|
|
18324
|
-
additionalText ? /* @__PURE__ */
|
|
18545
|
+
additionalText ? /* @__PURE__ */ jsx107("p", { css: SwitchText, children: additionalText }) : null,
|
|
18325
18546
|
children
|
|
18326
18547
|
] });
|
|
18327
18548
|
}
|
|
@@ -18331,8 +18552,8 @@ var Switch = React23.forwardRef(
|
|
|
18331
18552
|
import * as React24 from "react";
|
|
18332
18553
|
|
|
18333
18554
|
// src/components/Table/Table.styles.ts
|
|
18334
|
-
import { css as
|
|
18335
|
-
var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) =>
|
|
18555
|
+
import { css as css86 } from "@emotion/react";
|
|
18556
|
+
var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css86`
|
|
18336
18557
|
border-bottom: 1px solid var(--gray-400);
|
|
18337
18558
|
border-collapse: collapse;
|
|
18338
18559
|
min-width: 100%;
|
|
@@ -18343,55 +18564,55 @@ var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css85
|
|
|
18343
18564
|
padding: ${cellPadding};
|
|
18344
18565
|
}
|
|
18345
18566
|
`;
|
|
18346
|
-
var tableHead =
|
|
18567
|
+
var tableHead = css86`
|
|
18347
18568
|
background: var(--gray-100);
|
|
18348
18569
|
color: var(--brand-secondary-1);
|
|
18349
18570
|
text-align: left;
|
|
18350
18571
|
`;
|
|
18351
|
-
var tableRow =
|
|
18572
|
+
var tableRow = css86`
|
|
18352
18573
|
border-bottom: 1px solid var(--gray-200);
|
|
18353
18574
|
`;
|
|
18354
|
-
var tableCellHead =
|
|
18575
|
+
var tableCellHead = css86`
|
|
18355
18576
|
font-size: var(--fs-sm);
|
|
18356
18577
|
text-transform: uppercase;
|
|
18357
18578
|
font-weight: var(--fw-bold);
|
|
18358
18579
|
`;
|
|
18359
18580
|
|
|
18360
18581
|
// src/components/Table/Table.tsx
|
|
18361
|
-
import { jsx as
|
|
18582
|
+
import { jsx as jsx108 } from "@emotion/react/jsx-runtime";
|
|
18362
18583
|
var Table = React24.forwardRef(
|
|
18363
18584
|
({ children, cellPadding, ...otherProps }, ref) => {
|
|
18364
|
-
return /* @__PURE__ */
|
|
18585
|
+
return /* @__PURE__ */ jsx108("table", { ref, css: table({ cellPadding }), ...otherProps, children });
|
|
18365
18586
|
}
|
|
18366
18587
|
);
|
|
18367
18588
|
var TableHead = React24.forwardRef(
|
|
18368
18589
|
({ children, ...otherProps }, ref) => {
|
|
18369
|
-
return /* @__PURE__ */
|
|
18590
|
+
return /* @__PURE__ */ jsx108("thead", { ref, css: tableHead, ...otherProps, children });
|
|
18370
18591
|
}
|
|
18371
18592
|
);
|
|
18372
18593
|
var TableBody = React24.forwardRef(
|
|
18373
18594
|
({ children, ...otherProps }, ref) => {
|
|
18374
|
-
return /* @__PURE__ */
|
|
18595
|
+
return /* @__PURE__ */ jsx108("tbody", { ref, ...otherProps, children });
|
|
18375
18596
|
}
|
|
18376
18597
|
);
|
|
18377
18598
|
var TableFoot = React24.forwardRef(
|
|
18378
18599
|
({ children, ...otherProps }, ref) => {
|
|
18379
|
-
return /* @__PURE__ */
|
|
18600
|
+
return /* @__PURE__ */ jsx108("tfoot", { ref, ...otherProps, children });
|
|
18380
18601
|
}
|
|
18381
18602
|
);
|
|
18382
18603
|
var TableRow = React24.forwardRef(
|
|
18383
18604
|
({ children, ...otherProps }, ref) => {
|
|
18384
|
-
return /* @__PURE__ */
|
|
18605
|
+
return /* @__PURE__ */ jsx108("tr", { ref, css: tableRow, ...otherProps, children });
|
|
18385
18606
|
}
|
|
18386
18607
|
);
|
|
18387
18608
|
var TableCellHead = React24.forwardRef(
|
|
18388
18609
|
({ children, ...otherProps }, ref) => {
|
|
18389
|
-
return /* @__PURE__ */
|
|
18610
|
+
return /* @__PURE__ */ jsx108("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
18390
18611
|
}
|
|
18391
18612
|
);
|
|
18392
18613
|
var TableCellData = React24.forwardRef(
|
|
18393
18614
|
({ children, ...otherProps }, ref) => {
|
|
18394
|
-
return /* @__PURE__ */
|
|
18615
|
+
return /* @__PURE__ */ jsx108("td", { ref, ...otherProps, children });
|
|
18395
18616
|
}
|
|
18396
18617
|
);
|
|
18397
18618
|
|
|
@@ -18405,8 +18626,8 @@ import {
|
|
|
18405
18626
|
} from "reakit/Tab";
|
|
18406
18627
|
|
|
18407
18628
|
// src/components/Tabs/Tabs.styles.ts
|
|
18408
|
-
import { css as
|
|
18409
|
-
var tabButtonStyles =
|
|
18629
|
+
import { css as css87 } from "@emotion/react";
|
|
18630
|
+
var tabButtonStyles = css87`
|
|
18410
18631
|
align-items: center;
|
|
18411
18632
|
border: 0;
|
|
18412
18633
|
height: 2.5rem;
|
|
@@ -18423,14 +18644,14 @@ var tabButtonStyles = css86`
|
|
|
18423
18644
|
box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
|
|
18424
18645
|
}
|
|
18425
18646
|
`;
|
|
18426
|
-
var tabButtonGroupStyles =
|
|
18647
|
+
var tabButtonGroupStyles = css87`
|
|
18427
18648
|
display: flex;
|
|
18428
18649
|
gap: var(--spacing-base);
|
|
18429
18650
|
border-bottom: 1px solid var(--gray-300);
|
|
18430
18651
|
`;
|
|
18431
18652
|
|
|
18432
18653
|
// src/components/Tabs/Tabs.tsx
|
|
18433
|
-
import { jsx as
|
|
18654
|
+
import { jsx as jsx109 } from "@emotion/react/jsx-runtime";
|
|
18434
18655
|
var CurrentTabContext = createContext6(null);
|
|
18435
18656
|
var useCurrentTab = () => {
|
|
18436
18657
|
const context = useContext7(CurrentTabContext);
|
|
@@ -18459,24 +18680,24 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
18459
18680
|
tab.setSelectedId(selected);
|
|
18460
18681
|
}
|
|
18461
18682
|
}, [selected]);
|
|
18462
|
-
return /* @__PURE__ */
|
|
18683
|
+
return /* @__PURE__ */ jsx109(CurrentTabContext.Provider, { value: tab, children });
|
|
18463
18684
|
};
|
|
18464
18685
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
18465
18686
|
const currentTab = useCurrentTab();
|
|
18466
|
-
return /* @__PURE__ */
|
|
18687
|
+
return /* @__PURE__ */ jsx109(ReakitTabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
18467
18688
|
};
|
|
18468
18689
|
var TabButton = ({ children, id, ...props }) => {
|
|
18469
18690
|
const currentTab = useCurrentTab();
|
|
18470
|
-
return /* @__PURE__ */
|
|
18691
|
+
return /* @__PURE__ */ jsx109(ReakitTab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
18471
18692
|
};
|
|
18472
18693
|
var TabContent = ({ children, ...props }) => {
|
|
18473
18694
|
const currentTab = useCurrentTab();
|
|
18474
|
-
return /* @__PURE__ */
|
|
18695
|
+
return /* @__PURE__ */ jsx109(ReakitTabPanel, { ...props, ...currentTab, children });
|
|
18475
18696
|
};
|
|
18476
18697
|
|
|
18477
18698
|
// src/components/Validation/StatusBullet.styles.ts
|
|
18478
|
-
import { css as
|
|
18479
|
-
var StatusBulletContainer =
|
|
18699
|
+
import { css as css88 } from "@emotion/react";
|
|
18700
|
+
var StatusBulletContainer = css88`
|
|
18480
18701
|
align-items: center;
|
|
18481
18702
|
align-self: center;
|
|
18482
18703
|
color: var(--gray-500);
|
|
@@ -18493,33 +18714,33 @@ var StatusBulletContainer = css87`
|
|
|
18493
18714
|
display: block;
|
|
18494
18715
|
}
|
|
18495
18716
|
`;
|
|
18496
|
-
var StatusBulletBase =
|
|
18717
|
+
var StatusBulletBase = css88`
|
|
18497
18718
|
font-size: var(--fs-sm);
|
|
18498
18719
|
&:before {
|
|
18499
18720
|
width: var(--fs-xs);
|
|
18500
18721
|
height: var(--fs-xs);
|
|
18501
18722
|
}
|
|
18502
18723
|
`;
|
|
18503
|
-
var StatusBulletSmall =
|
|
18724
|
+
var StatusBulletSmall = css88`
|
|
18504
18725
|
font-size: var(--fs-xs);
|
|
18505
18726
|
&:before {
|
|
18506
18727
|
width: var(--fs-xxs);
|
|
18507
18728
|
height: var(--fs-xxs);
|
|
18508
18729
|
}
|
|
18509
18730
|
`;
|
|
18510
|
-
var StatusDraft =
|
|
18731
|
+
var StatusDraft = css88`
|
|
18511
18732
|
&:before {
|
|
18512
18733
|
background: var(--white);
|
|
18513
18734
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
18514
18735
|
}
|
|
18515
18736
|
`;
|
|
18516
|
-
var StatusModified =
|
|
18737
|
+
var StatusModified = css88`
|
|
18517
18738
|
&:before {
|
|
18518
18739
|
background: linear-gradient(to right, var(--white) 50%, var(--primary-action-default) 50% 100%);
|
|
18519
18740
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
18520
18741
|
}
|
|
18521
18742
|
`;
|
|
18522
|
-
var StatusError =
|
|
18743
|
+
var StatusError = css88`
|
|
18523
18744
|
color: var(--error);
|
|
18524
18745
|
&:before {
|
|
18525
18746
|
/* TODO: replace this with an svg icon */
|
|
@@ -18532,19 +18753,19 @@ var StatusError = css87`
|
|
|
18532
18753
|
);
|
|
18533
18754
|
}
|
|
18534
18755
|
`;
|
|
18535
|
-
var StatusPublished =
|
|
18756
|
+
var StatusPublished = css88`
|
|
18536
18757
|
&:before {
|
|
18537
18758
|
background: var(--primary-action-default);
|
|
18538
18759
|
}
|
|
18539
18760
|
`;
|
|
18540
|
-
var StatusOrphan =
|
|
18761
|
+
var StatusOrphan = css88`
|
|
18541
18762
|
&:before {
|
|
18542
18763
|
background: var(--brand-secondary-5);
|
|
18543
18764
|
}
|
|
18544
18765
|
`;
|
|
18545
18766
|
|
|
18546
18767
|
// src/components/Validation/StatusBullet.tsx
|
|
18547
|
-
import { jsx as
|
|
18768
|
+
import { jsx as jsx110 } from "@emotion/react/jsx-runtime";
|
|
18548
18769
|
var StatusBullet = ({
|
|
18549
18770
|
status,
|
|
18550
18771
|
hideText = false,
|
|
@@ -18562,7 +18783,7 @@ var StatusBullet = ({
|
|
|
18562
18783
|
Previous: StatusDraft
|
|
18563
18784
|
};
|
|
18564
18785
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
18565
|
-
return /* @__PURE__ */
|
|
18786
|
+
return /* @__PURE__ */ jsx110(
|
|
18566
18787
|
"span",
|
|
18567
18788
|
{
|
|
18568
18789
|
role: "status",
|
|
@@ -18581,7 +18802,6 @@ export {
|
|
|
18581
18802
|
AvatarGroup,
|
|
18582
18803
|
Badge,
|
|
18583
18804
|
Banner,
|
|
18584
|
-
BrokenImage,
|
|
18585
18805
|
Button,
|
|
18586
18806
|
ButtonWithMenu,
|
|
18587
18807
|
Callout,
|
|
@@ -18628,6 +18848,7 @@ export {
|
|
|
18628
18848
|
IntegrationTile,
|
|
18629
18849
|
JsonEditor,
|
|
18630
18850
|
Label,
|
|
18851
|
+
LabelLeadingIcon,
|
|
18631
18852
|
Legend,
|
|
18632
18853
|
LimitsBar,
|
|
18633
18854
|
Link,
|
|
@@ -18644,6 +18865,7 @@ export {
|
|
|
18644
18865
|
MenuItem,
|
|
18645
18866
|
MenuItemSeparator,
|
|
18646
18867
|
Modal,
|
|
18868
|
+
MultilineChip,
|
|
18647
18869
|
PageHeaderSection,
|
|
18648
18870
|
Paragraph,
|
|
18649
18871
|
ParameterDataResource,
|
|
@@ -18675,6 +18897,7 @@ export {
|
|
|
18675
18897
|
ProgressList,
|
|
18676
18898
|
ProgressListItem,
|
|
18677
18899
|
ResolveIcon,
|
|
18900
|
+
RichTextToolbarIcon,
|
|
18678
18901
|
ScrollableList,
|
|
18679
18902
|
ScrollableListInputItem,
|
|
18680
18903
|
ScrollableListItem,
|
|
@@ -18755,6 +18978,8 @@ export {
|
|
|
18755
18978
|
replaceUnderscoreInString,
|
|
18756
18979
|
richTextBuiltInElements,
|
|
18757
18980
|
richTextBuiltInFormats,
|
|
18981
|
+
richTextToolbarButton,
|
|
18982
|
+
richTextToolbarButtonActive,
|
|
18758
18983
|
ripple,
|
|
18759
18984
|
scrollbarStyles,
|
|
18760
18985
|
settings,
|