@uniformdev/design-system 19.69.0 → 19.72.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +846 -700
- package/dist/index.d.mts +44 -16
- package/dist/index.d.ts +44 -16
- package/dist/index.js +1252 -1103
- package/package.json +9 -7
package/dist/esm/index.js
CHANGED
|
@@ -1887,9 +1887,9 @@ var AddListButtonBtnSmall = css9`
|
|
|
1887
1887
|
font-weight: var(--fw-regular);
|
|
1888
1888
|
margin-block: var(--spacing-md) 0;
|
|
1889
1889
|
`;
|
|
1890
|
-
var AddListButtonIconMathPlus = (
|
|
1890
|
+
var AddListButtonIconMathPlus = (disabled2, theme) => css9`
|
|
1891
1891
|
box-sizing: border-box;
|
|
1892
|
-
background: ${
|
|
1892
|
+
background: ${disabled2 ? "var(--gray-300)" : theme};
|
|
1893
1893
|
color: var(--white);
|
|
1894
1894
|
padding: calc(var(--spacing-xs) - 0.15rem);
|
|
1895
1895
|
`;
|
|
@@ -1903,7 +1903,7 @@ import { jsx as jsx8, jsxs as jsxs3 } from "@emotion/react/jsx-runtime";
|
|
|
1903
1903
|
var AddListButton = ({
|
|
1904
1904
|
buttonText = "Add Item",
|
|
1905
1905
|
onButtonClick,
|
|
1906
|
-
disabled,
|
|
1906
|
+
disabled: disabled2,
|
|
1907
1907
|
icon = "math-plus",
|
|
1908
1908
|
variant = "regular",
|
|
1909
1909
|
theme = "var(--primary-action-default)",
|
|
@@ -1925,7 +1925,7 @@ var AddListButton = ({
|
|
|
1925
1925
|
css: [variantStylesMap[variant], AddListButtonTheme(theme)],
|
|
1926
1926
|
onClick: onButtonClick,
|
|
1927
1927
|
title: buttonText,
|
|
1928
|
-
disabled,
|
|
1928
|
+
disabled: disabled2,
|
|
1929
1929
|
...buttonProps,
|
|
1930
1930
|
children: [
|
|
1931
1931
|
icon === "math-plus" ? /* @__PURE__ */ jsx8(
|
|
@@ -1934,7 +1934,7 @@ var AddListButton = ({
|
|
|
1934
1934
|
icon: mapIcon[icon],
|
|
1935
1935
|
iconColor: "currentColor",
|
|
1936
1936
|
size: "1.25em",
|
|
1937
|
-
css: [AddListButtonIcon, AddListButtonIconMathPlus(
|
|
1937
|
+
css: [AddListButtonIcon, AddListButtonIconMathPlus(disabled2, theme)]
|
|
1938
1938
|
}
|
|
1939
1939
|
) : /* @__PURE__ */ jsx8(Icon, { icon: mapIcon[icon], iconColor: "currentColor", size: "1.25em", css: AddListButtonIcon }),
|
|
1940
1940
|
buttonText
|
|
@@ -1999,6 +1999,7 @@ var Heading = ({
|
|
|
1999
1999
|
Heading2,
|
|
2000
2000
|
{
|
|
2001
2001
|
...hAttributes,
|
|
2002
|
+
role: typeof as === "string" && /^h/.test(as) ? "heading" : void 0,
|
|
2002
2003
|
css: [headingStyle[level], commonHeadingAttr(withMarginBottom), commonLineHeight],
|
|
2003
2004
|
children
|
|
2004
2005
|
}
|
|
@@ -2285,7 +2286,7 @@ var IntegrationHeaderSection = ({
|
|
|
2285
2286
|
icon,
|
|
2286
2287
|
docsLink,
|
|
2287
2288
|
badgeText,
|
|
2288
|
-
menu
|
|
2289
|
+
menu,
|
|
2289
2290
|
children,
|
|
2290
2291
|
...props
|
|
2291
2292
|
}) => {
|
|
@@ -2300,7 +2301,7 @@ var IntegrationHeaderSection = ({
|
|
|
2300
2301
|
/* @__PURE__ */ jsxs5("div", { css: IntegrationHeaderSectionTitleGroup, "data-testid": "integration-header-text", children: [
|
|
2301
2302
|
/* @__PURE__ */ jsx13("h1", { css: IntegrationHeaderSectionTitle, children: title2 }),
|
|
2302
2303
|
badgeText ? /* @__PURE__ */ jsx13(Badge, { text: badgeText }) : null,
|
|
2303
|
-
|
|
2304
|
+
menu ? /* @__PURE__ */ jsx13("div", { children: menu }) : null,
|
|
2304
2305
|
docsLink ? /* @__PURE__ */ jsx13(
|
|
2305
2306
|
Link,
|
|
2306
2307
|
{
|
|
@@ -11523,13 +11524,13 @@ var HorizontalRhythm = ({
|
|
|
11523
11524
|
};
|
|
11524
11525
|
|
|
11525
11526
|
// src/components/Menu/Menu.tsx
|
|
11526
|
-
import * as React8 from "react";
|
|
11527
11527
|
import {
|
|
11528
11528
|
Menu as BaseMenu,
|
|
11529
11529
|
MenuButton,
|
|
11530
|
-
|
|
11531
|
-
|
|
11532
|
-
|
|
11530
|
+
MenuProvider,
|
|
11531
|
+
useMenuStore
|
|
11532
|
+
} from "@ariakit/react";
|
|
11533
|
+
import * as React8 from "react";
|
|
11533
11534
|
|
|
11534
11535
|
// src/components/Menu/filterMenuSeparators.ts
|
|
11535
11536
|
import React7, { isValidElement } from "react";
|
|
@@ -11576,17 +11577,18 @@ var menuItem = (textTheme, forceActive) => css25`
|
|
|
11576
11577
|
font-weight: var(--fw-regular);
|
|
11577
11578
|
flex-grow: 1;
|
|
11578
11579
|
gap: var(--spacing-xs);
|
|
11579
|
-
|
|
11580
|
+
cursor: default;
|
|
11580
11581
|
white-space: nowrap;
|
|
11581
11582
|
transition: background-color var(--duration-fast) var(--timing-ease-out);
|
|
11582
11583
|
${forceActive ? activeMenuItem : ""}
|
|
11583
11584
|
|
|
11584
|
-
|
|
11585
|
-
|
|
11585
|
+
&[aria-disabled="true"] {
|
|
11586
|
+
opacity: 0.5;
|
|
11586
11587
|
}
|
|
11587
11588
|
|
|
11588
11589
|
&:hover,
|
|
11589
|
-
&:focus
|
|
11590
|
+
&:focus,
|
|
11591
|
+
&[data-active-item] {
|
|
11590
11592
|
${typeof forceActive === "undefined" ? activeMenuItem : ""}
|
|
11591
11593
|
}
|
|
11592
11594
|
`;
|
|
@@ -11603,6 +11605,7 @@ var menuItemWithIcon = css25`
|
|
|
11603
11605
|
}
|
|
11604
11606
|
`;
|
|
11605
11607
|
var menuItemSeparator = css25`
|
|
11608
|
+
border: 0;
|
|
11606
11609
|
border-top: 1px solid var(--gray-300);
|
|
11607
11610
|
width: 100%;
|
|
11608
11611
|
margin-block: var(--spacing-sm);
|
|
@@ -11659,7 +11662,7 @@ function isMenuSeparator(child) {
|
|
|
11659
11662
|
|
|
11660
11663
|
// src/components/Menu/Menu.styles.ts
|
|
11661
11664
|
import { css as css26 } from "@emotion/react";
|
|
11662
|
-
var
|
|
11665
|
+
var menuStyles = css26`
|
|
11663
11666
|
box-shadow: var(--shadow-base);
|
|
11664
11667
|
border-radius: var(--rounded-base);
|
|
11665
11668
|
background: var(--gray-50);
|
|
@@ -11667,21 +11670,9 @@ var menu = css26`
|
|
|
11667
11670
|
flex-direction: column;
|
|
11668
11671
|
padding: var(--spacing-sm);
|
|
11669
11672
|
outline: none;
|
|
11670
|
-
overflow-x: hidden;
|
|
11671
|
-
overflow-y: auto;
|
|
11672
11673
|
position: relative;
|
|
11673
11674
|
z-index: var(--z-50);
|
|
11674
11675
|
|
|
11675
|
-
// work around for smaller screens not being able to access large menus
|
|
11676
|
-
// see uni-2997
|
|
11677
|
-
max-height: 55vh; // firefox support
|
|
11678
|
-
|
|
11679
|
-
${supports("max-height: 60dvh")} {
|
|
11680
|
-
max-height: 55dvh; // modern browser support
|
|
11681
|
-
}
|
|
11682
|
-
|
|
11683
|
-
${scrollbarStyles}
|
|
11684
|
-
|
|
11685
11676
|
&:focus {
|
|
11686
11677
|
outline: none;
|
|
11687
11678
|
}
|
|
@@ -11689,86 +11680,75 @@ var menu = css26`
|
|
|
11689
11680
|
|
|
11690
11681
|
// src/components/Menu/Menu.tsx
|
|
11691
11682
|
import { jsx as jsx26, jsxs as jsxs15 } from "@emotion/react/jsx-runtime";
|
|
11692
|
-
var
|
|
11693
|
-
var
|
|
11694
|
-
return React8.useContext(MenuContext);
|
|
11695
|
-
};
|
|
11696
|
-
var Menu = ({
|
|
11697
|
-
menuLabel,
|
|
11683
|
+
var legacyPlacements = ["auto", "auto-start", "auto-end"];
|
|
11684
|
+
var Menu = React8.forwardRef(function Menu2({
|
|
11698
11685
|
menuTrigger,
|
|
11699
|
-
|
|
11700
|
-
menuItemsContainerCssClasses,
|
|
11686
|
+
menuLabel,
|
|
11701
11687
|
children,
|
|
11688
|
+
placement,
|
|
11702
11689
|
forceVisible,
|
|
11690
|
+
withoutPortal,
|
|
11703
11691
|
disableAutoSeparatorManagement,
|
|
11704
|
-
|
|
11705
|
-
|
|
11706
|
-
|
|
11707
|
-
const
|
|
11708
|
-
|
|
11709
|
-
|
|
11710
|
-
|
|
11711
|
-
|
|
11712
|
-
}, [forceVisible, menuState]);
|
|
11713
|
-
React8.useEffect(() => {
|
|
11714
|
-
if (menuState.visible) {
|
|
11715
|
-
setIsRendered(true);
|
|
11716
|
-
}
|
|
11717
|
-
}, [menuState.visible, setIsRendered]);
|
|
11718
|
-
const Wrapper = withoutPortal ? React8.Fragment : Portal;
|
|
11719
|
-
return /* @__PURE__ */ jsxs15(MenuContext.Provider, { value: menuState, children: [
|
|
11720
|
-
/* @__PURE__ */ jsx26(MenuButton, { ...menuState, ref: menuTrigger.ref, ...menuTrigger.props, children: (triggerProps) => React8.cloneElement(menuTrigger, triggerProps) }),
|
|
11721
|
-
/* @__PURE__ */ jsx26(Wrapper, { children: /* @__PURE__ */ jsx26(
|
|
11692
|
+
menuItemsContainerCssClasses,
|
|
11693
|
+
...props
|
|
11694
|
+
}, ref) {
|
|
11695
|
+
const placementOverride = legacyPlacements.includes(placement) ? void 0 : placement;
|
|
11696
|
+
const menu = useMenuStore({ placement: placementOverride });
|
|
11697
|
+
return /* @__PURE__ */ jsxs15(MenuProvider, { store: menu, open: forceVisible, children: [
|
|
11698
|
+
/* @__PURE__ */ jsx26(MenuButton, { ref, render: menuTrigger }),
|
|
11699
|
+
/* @__PURE__ */ jsx26(
|
|
11722
11700
|
BaseMenu,
|
|
11723
11701
|
{
|
|
11724
|
-
|
|
11725
|
-
|
|
11726
|
-
|
|
11727
|
-
"aria-label": menuLabel,
|
|
11728
|
-
...!isRendered ? { unstable_popoverStyles: { position: "absolute", opacity: "0" } } : void 0,
|
|
11702
|
+
gutter: 0,
|
|
11703
|
+
shift: menu.parent ? -4 : 0,
|
|
11704
|
+
...props,
|
|
11729
11705
|
css: [
|
|
11730
|
-
|
|
11706
|
+
menuStyles,
|
|
11731
11707
|
typeof menuItemsContainerCssClasses === "object" ? menuItemsContainerCssClasses : void 0
|
|
11732
11708
|
],
|
|
11733
11709
|
className: typeof menuItemsContainerCssClasses === "string" ? menuItemsContainerCssClasses : "",
|
|
11734
11710
|
"data-testid": "more-menu",
|
|
11711
|
+
hideOnHoverOutside: (event) => {
|
|
11712
|
+
var _a;
|
|
11713
|
+
if (!menu.parent)
|
|
11714
|
+
return false;
|
|
11715
|
+
const { contentElement, anchorElement } = menu.getState();
|
|
11716
|
+
const [target] = event.composedPath();
|
|
11717
|
+
if (!target)
|
|
11718
|
+
return false;
|
|
11719
|
+
const activeElement = (_a = target.ownerDocument) == null ? void 0 : _a.activeElement;
|
|
11720
|
+
if (anchorElement == null ? void 0 : anchorElement.contains(target))
|
|
11721
|
+
return false;
|
|
11722
|
+
if (contentElement == null ? void 0 : contentElement.contains(target))
|
|
11723
|
+
return false;
|
|
11724
|
+
if (activeElement && target.contains(activeElement))
|
|
11725
|
+
return false;
|
|
11726
|
+
return true;
|
|
11727
|
+
},
|
|
11735
11728
|
children: disableAutoSeparatorManagement ? children : filterMenuSeparators(children)
|
|
11736
11729
|
}
|
|
11737
|
-
)
|
|
11730
|
+
)
|
|
11738
11731
|
] });
|
|
11739
|
-
};
|
|
11732
|
+
});
|
|
11740
11733
|
|
|
11741
11734
|
// src/components/Menu/MenuItem.tsx
|
|
11735
|
+
import { MenuItem as BaseMenuItem } from "@ariakit/react";
|
|
11742
11736
|
import * as React9 from "react";
|
|
11743
|
-
import { MenuItem as BaseMenuItem } from "reakit";
|
|
11744
11737
|
import { jsx as jsx27, jsxs as jsxs16 } from "@emotion/react/jsx-runtime";
|
|
11738
|
+
var renderAsButton = (renderProps) => /* @__PURE__ */ jsx27("button", { type: "button", ...renderProps });
|
|
11745
11739
|
var MenuItem = React9.forwardRef(
|
|
11746
|
-
({ children, className, hideMenuOnClick = true, icon, textColor = "base", active, ...props }, ref) => {
|
|
11747
|
-
const
|
|
11748
|
-
const resolveProps = (originalProps) => {
|
|
11749
|
-
const resolvedProps2 = { ...originalProps };
|
|
11750
|
-
if (resolvedProps2.onClick) {
|
|
11751
|
-
const origOnClick = resolvedProps2.onClick;
|
|
11752
|
-
resolvedProps2.onClick = (e) => {
|
|
11753
|
-
var _a;
|
|
11754
|
-
(_a = menuState == null ? void 0 : menuState.hide) == null ? void 0 : _a.call(menuState);
|
|
11755
|
-
origOnClick(e);
|
|
11756
|
-
};
|
|
11757
|
-
}
|
|
11758
|
-
return resolvedProps2;
|
|
11759
|
-
};
|
|
11760
|
-
const resolvedProps = hideMenuOnClick ? resolveProps(props) : props;
|
|
11761
|
-
const resolvedChildren = typeof children === "function" ? children(resolvedProps) : children;
|
|
11740
|
+
({ children, className, hideMenuOnClick = true, icon, textColor = "base", active: active2, ...props }, ref) => {
|
|
11741
|
+
const resolvedChildren = typeof children === "function" ? children(props) : children;
|
|
11762
11742
|
return /* @__PURE__ */ jsx27(
|
|
11763
11743
|
BaseMenuItem,
|
|
11764
11744
|
{
|
|
11765
11745
|
ref,
|
|
11766
|
-
type: "button",
|
|
11767
11746
|
"data-testid": "button-menu",
|
|
11768
|
-
|
|
11769
|
-
|
|
11770
|
-
css: [menuItem(textColor, active), typeof className === "object" ? className : void 0],
|
|
11747
|
+
hideOnClick: hideMenuOnClick,
|
|
11748
|
+
css: [menuItem(textColor, active2), typeof className === "object" ? className : void 0],
|
|
11771
11749
|
className: typeof className === "string" ? className : void 0,
|
|
11750
|
+
render: renderAsButton,
|
|
11751
|
+
...props,
|
|
11772
11752
|
children: icon ? renderWithIcon(resolvedChildren, icon) : resolvedChildren
|
|
11773
11753
|
}
|
|
11774
11754
|
);
|
|
@@ -11940,13 +11920,13 @@ var wholeButtonWithMenuIconOffset = css27`
|
|
|
11940
11920
|
`;
|
|
11941
11921
|
|
|
11942
11922
|
// src/components/ButtonWithMenu/ButtonWithMenu.tsx
|
|
11943
|
-
import { Fragment as
|
|
11923
|
+
import { Fragment as Fragment5, jsx as jsx28, jsxs as jsxs17 } from "@emotion/react/jsx-runtime";
|
|
11944
11924
|
var ButtonWithMenu = ({
|
|
11945
11925
|
onButtonClick,
|
|
11946
11926
|
buttonType = "secondary",
|
|
11947
11927
|
buttonText,
|
|
11948
11928
|
icon,
|
|
11949
|
-
disabled,
|
|
11929
|
+
disabled: disabled2,
|
|
11950
11930
|
children,
|
|
11951
11931
|
placement,
|
|
11952
11932
|
size = "lg",
|
|
@@ -11982,16 +11962,16 @@ var ButtonWithMenu = ({
|
|
|
11982
11962
|
css: [
|
|
11983
11963
|
sizes2[size],
|
|
11984
11964
|
ButtonWithMenuContainer,
|
|
11985
|
-
|
|
11965
|
+
disabled2 ? buttonDisabledTheme[buttonType] : buttonTheme[buttonType]
|
|
11986
11966
|
],
|
|
11987
11967
|
"data-testid": "multioptions-button",
|
|
11988
|
-
children: onButtonClick ? /* @__PURE__ */ jsxs17(
|
|
11968
|
+
children: onButtonClick ? /* @__PURE__ */ jsxs17(Fragment5, { children: [
|
|
11989
11969
|
/* @__PURE__ */ jsxs17(
|
|
11990
11970
|
"button",
|
|
11991
11971
|
{
|
|
11992
11972
|
type: "button",
|
|
11993
11973
|
css: ButtonWithMenuBtn,
|
|
11994
|
-
disabled,
|
|
11974
|
+
disabled: disabled2,
|
|
11995
11975
|
onClick: onButtonClick,
|
|
11996
11976
|
"data-testid": "multioptions-button-main",
|
|
11997
11977
|
...buttonProps,
|
|
@@ -12001,8 +11981,8 @@ var ButtonWithMenu = ({
|
|
|
12001
11981
|
]
|
|
12002
11982
|
}
|
|
12003
11983
|
),
|
|
12004
|
-
|
|
12005
|
-
] }) : /* @__PURE__ */ jsx28(
|
|
11984
|
+
disabled2 ? clickableButton : /* @__PURE__ */ jsx28(Menu, { menuLabel: "buttonMenu", placement, menuTrigger: clickableButton, children })
|
|
11985
|
+
] }) : /* @__PURE__ */ jsx28(Fragment5, { children: disabled2 ? dropdownButton : /* @__PURE__ */ jsx28(Menu, { menuLabel: "buttonMenu", placement, menuTrigger: dropdownButton, children }) })
|
|
12006
11986
|
}
|
|
12007
11987
|
);
|
|
12008
11988
|
};
|
|
@@ -12362,7 +12342,7 @@ var Card = ({
|
|
|
12362
12342
|
menuItems,
|
|
12363
12343
|
children,
|
|
12364
12344
|
titleWithMarginBottom = true,
|
|
12365
|
-
disabled,
|
|
12345
|
+
disabled: disabled2,
|
|
12366
12346
|
tag: Tag = "div",
|
|
12367
12347
|
menuButtonTestId,
|
|
12368
12348
|
...props
|
|
@@ -12378,7 +12358,7 @@ var Card = ({
|
|
|
12378
12358
|
{
|
|
12379
12359
|
"aria-label": "More options",
|
|
12380
12360
|
type: "button",
|
|
12381
|
-
disabled,
|
|
12361
|
+
disabled: disabled2,
|
|
12382
12362
|
css: CardMenu,
|
|
12383
12363
|
"data-testid": menuButtonTestId != null ? menuButtonTestId : "list-card-menu",
|
|
12384
12364
|
children: /* @__PURE__ */ jsx31(Icon, { icon: CgMoreAlt, iconColor: "currentColor", size: 32 })
|
|
@@ -12784,7 +12764,7 @@ var ChipActionButton = css36`
|
|
|
12784
12764
|
`;
|
|
12785
12765
|
|
|
12786
12766
|
// src/components/Chip/Chip.tsx
|
|
12787
|
-
import { Fragment as
|
|
12767
|
+
import { Fragment as Fragment6, jsx as jsx37, jsxs as jsxs22 } from "@emotion/react/jsx-runtime";
|
|
12788
12768
|
var chipTheme = {
|
|
12789
12769
|
"accent-light": ChipThemeAccentLight,
|
|
12790
12770
|
"accent-dark": ChipThemeAccentDark,
|
|
@@ -12807,7 +12787,7 @@ var Chip = ({
|
|
|
12807
12787
|
md: ChipMedium
|
|
12808
12788
|
};
|
|
12809
12789
|
return /* @__PURE__ */ jsxs22("span", { css: [ChipContainer, chipSize[size], chipTheme[theme]], ...props, children: [
|
|
12810
|
-
icon ? /* @__PURE__ */ jsxs22(
|
|
12790
|
+
icon ? /* @__PURE__ */ jsxs22(Fragment6, { children: [
|
|
12811
12791
|
/* @__PURE__ */ jsx37("span", { role: "presentation", css: [ChipIcon], children: /* @__PURE__ */ jsx37(Icon, { icon, iconColor: "currentColor", size: "1rem" }) }),
|
|
12812
12792
|
/* @__PURE__ */ jsx37("span", { role: "separator", css: ChipSeparator })
|
|
12813
12793
|
] }) : null,
|
|
@@ -13022,15 +13002,24 @@ import React10 from "react";
|
|
|
13022
13002
|
|
|
13023
13003
|
// src/components/DescriptionList/DescriptionList.styles.ts
|
|
13024
13004
|
import { css as css40 } from "@emotion/react";
|
|
13025
|
-
var
|
|
13005
|
+
var descriptionListHorizontal = css40`
|
|
13026
13006
|
display: grid;
|
|
13027
13007
|
grid-template-columns: max-content auto;
|
|
13028
13008
|
gap: var(--spacing-xs) var(--spacing-md);
|
|
13029
13009
|
`;
|
|
13010
|
+
var descriptionListVertical = css40`
|
|
13011
|
+
display: flex;
|
|
13012
|
+
flex-direction: column;
|
|
13013
|
+
gap: var(--spacing-xs);
|
|
13014
|
+
`;
|
|
13030
13015
|
var descriptionListLabelStyles = css40`
|
|
13031
13016
|
display: flex;
|
|
13032
13017
|
align-items: center;
|
|
13033
13018
|
color: var(--gray-500);
|
|
13019
|
+
|
|
13020
|
+
dd + & {
|
|
13021
|
+
margin-top: var(--spacing-sm);
|
|
13022
|
+
}
|
|
13034
13023
|
`;
|
|
13035
13024
|
var descriptionListValueStyles = css40`
|
|
13036
13025
|
display: flex;
|
|
@@ -13041,14 +13030,22 @@ var descriptionListValueStyles = css40`
|
|
|
13041
13030
|
// src/components/DescriptionList/DescriptionList.tsx
|
|
13042
13031
|
import { jsx as jsx41, jsxs as jsxs24 } from "@emotion/react/jsx-runtime";
|
|
13043
13032
|
var DescriptionList = React10.forwardRef(
|
|
13044
|
-
({ items, ...listProps }, ref) => {
|
|
13033
|
+
({ items, variant = "horizontal", ...listProps }, ref) => {
|
|
13045
13034
|
if (!(items == null ? void 0 : items.length)) {
|
|
13046
13035
|
return null;
|
|
13047
13036
|
}
|
|
13048
|
-
return /* @__PURE__ */ jsx41(
|
|
13049
|
-
|
|
13050
|
-
|
|
13051
|
-
|
|
13037
|
+
return /* @__PURE__ */ jsx41(
|
|
13038
|
+
"dl",
|
|
13039
|
+
{
|
|
13040
|
+
ref,
|
|
13041
|
+
css: variant === "vertical" ? descriptionListVertical : descriptionListHorizontal,
|
|
13042
|
+
...listProps,
|
|
13043
|
+
children: items == null ? void 0 : items.map(({ label, value }) => /* @__PURE__ */ jsxs24(React10.Fragment, { children: [
|
|
13044
|
+
/* @__PURE__ */ jsx41("dt", { css: descriptionListLabelStyles, children: label }),
|
|
13045
|
+
/* @__PURE__ */ jsx41("dd", { css: descriptionListValueStyles, children: typeof value === "boolean" ? /* @__PURE__ */ jsx41(DescriptionListValueBoolean, { value }) : value })
|
|
13046
|
+
] }, label))
|
|
13047
|
+
}
|
|
13048
|
+
);
|
|
13052
13049
|
}
|
|
13053
13050
|
);
|
|
13054
13051
|
DescriptionList.displayName = "DescriptionList";
|
|
@@ -13144,7 +13141,7 @@ var Details = ({
|
|
|
13144
13141
|
|
|
13145
13142
|
// src/components/Drawer/Drawer.tsx
|
|
13146
13143
|
import { CgChevronRight } from "@react-icons/all-files/cg/CgChevronRight";
|
|
13147
|
-
import React13, { createContext as
|
|
13144
|
+
import React13, { createContext as createContext3, useContext as useContext4, useEffect as useEffect4, useRef as useRef3, useState as useState5 } from "react";
|
|
13148
13145
|
import { createPortal } from "react-dom";
|
|
13149
13146
|
|
|
13150
13147
|
// src/components/Drawer/Drawer.styles.ts
|
|
@@ -13255,22 +13252,27 @@ var drawerWrapperOverlayStyles = css42`
|
|
|
13255
13252
|
`;
|
|
13256
13253
|
|
|
13257
13254
|
// src/components/Drawer/DrawerProvider.tsx
|
|
13258
|
-
import { createContext as
|
|
13255
|
+
import { createContext as createContext2, useCallback, useContext as useContext3, useRef as useRef2, useState as useState4 } from "react";
|
|
13259
13256
|
import { jsx as jsx43 } from "@emotion/react/jsx-runtime";
|
|
13260
|
-
var DrawerContext =
|
|
13257
|
+
var DrawerContext = createContext2({
|
|
13261
13258
|
providerId: "",
|
|
13262
13259
|
drawersRegistry: [],
|
|
13263
13260
|
registerDrawer: () => {
|
|
13264
13261
|
},
|
|
13265
13262
|
unregisterDrawer: () => {
|
|
13263
|
+
},
|
|
13264
|
+
registerTakeoverStackId: () => {
|
|
13265
|
+
},
|
|
13266
|
+
unregisterTakeoverStackId: () => {
|
|
13266
13267
|
}
|
|
13267
13268
|
});
|
|
13268
13269
|
function renderDrawerId(drawer) {
|
|
13269
13270
|
return `${drawer.stackId ? `\u{1F95E} ${drawer.stackId} ` : ""}\u{1F194} ${drawer.id}${drawer.instanceKey ? ` \u{1F511} ${drawer.instanceKey}` : ""}`;
|
|
13270
13271
|
}
|
|
13271
13272
|
var DrawerProvider = ({ children }) => {
|
|
13272
|
-
const [drawersRegistry, setDrawersRegistry] =
|
|
13273
|
+
const [drawersRegistry, setDrawersRegistry] = useState4([]);
|
|
13273
13274
|
const providerId = useRef2(crypto.randomUUID());
|
|
13275
|
+
const [drawerTakeoverStackId, setDrawerTakeoverStackId] = useState4(void 0);
|
|
13274
13276
|
useShortcut({
|
|
13275
13277
|
handler: () => {
|
|
13276
13278
|
var _a, _b;
|
|
@@ -13328,6 +13330,22 @@ var DrawerProvider = ({ children }) => {
|
|
|
13328
13330
|
},
|
|
13329
13331
|
[setDrawersRegistry]
|
|
13330
13332
|
);
|
|
13333
|
+
const registerTakeoverStackId = useCallback(
|
|
13334
|
+
(stackId) => {
|
|
13335
|
+
if (drawerTakeoverStackId !== stackId) {
|
|
13336
|
+
setDrawerTakeoverStackId(stackId);
|
|
13337
|
+
}
|
|
13338
|
+
},
|
|
13339
|
+
[drawerTakeoverStackId]
|
|
13340
|
+
);
|
|
13341
|
+
const unregisterTakeoverStackId = useCallback(
|
|
13342
|
+
(stackId) => {
|
|
13343
|
+
if (drawerTakeoverStackId === stackId) {
|
|
13344
|
+
setDrawerTakeoverStackId(void 0);
|
|
13345
|
+
}
|
|
13346
|
+
},
|
|
13347
|
+
[drawerTakeoverStackId]
|
|
13348
|
+
);
|
|
13331
13349
|
return /* @__PURE__ */ jsx43(
|
|
13332
13350
|
DrawerContext.Provider,
|
|
13333
13351
|
{
|
|
@@ -13335,14 +13353,17 @@ var DrawerProvider = ({ children }) => {
|
|
|
13335
13353
|
drawersRegistry,
|
|
13336
13354
|
registerDrawer,
|
|
13337
13355
|
unregisterDrawer,
|
|
13338
|
-
providerId: providerId.current
|
|
13356
|
+
providerId: providerId.current,
|
|
13357
|
+
drawerTakeoverStackId,
|
|
13358
|
+
registerTakeoverStackId,
|
|
13359
|
+
unregisterTakeoverStackId
|
|
13339
13360
|
},
|
|
13340
13361
|
children
|
|
13341
13362
|
}
|
|
13342
13363
|
);
|
|
13343
13364
|
};
|
|
13344
13365
|
var useDrawer = () => {
|
|
13345
|
-
return
|
|
13366
|
+
return useContext3(DrawerContext);
|
|
13346
13367
|
};
|
|
13347
13368
|
var useCloseCurrentDrawer = () => {
|
|
13348
13369
|
const context = useDrawer();
|
|
@@ -13361,15 +13382,16 @@ function isEqualDrawerInstance(a, b) {
|
|
|
13361
13382
|
// src/components/Drawer/Drawer.tsx
|
|
13362
13383
|
import { jsx as jsx44, jsxs as jsxs26 } from "@emotion/react/jsx-runtime";
|
|
13363
13384
|
var defaultSackId = "_default";
|
|
13364
|
-
var CurrentDrawerContext =
|
|
13385
|
+
var CurrentDrawerContext = createContext3({});
|
|
13365
13386
|
var useCurrentDrawer = () => {
|
|
13366
|
-
return
|
|
13387
|
+
return useContext4(CurrentDrawerContext);
|
|
13367
13388
|
};
|
|
13368
13389
|
var Drawer = React13.forwardRef(
|
|
13369
13390
|
({ minWidth, maxWidth, position, leftAligned, ...drawerProps }, ref) => {
|
|
13370
13391
|
const { stackId: inheritedStackId } = useCurrentDrawer();
|
|
13392
|
+
const { drawerTakeoverStackId } = useDrawer();
|
|
13371
13393
|
const drawerRendererProps = { width: drawerProps.width, minWidth, maxWidth, position, leftAligned };
|
|
13372
|
-
return drawerProps.stackId ? /* @__PURE__ */ jsx44(DrawerInner, { ref, ...drawerProps }) : inheritedStackId ? /* @__PURE__ */ jsx44(DrawerInner, { ref, ...drawerProps, stackId: inheritedStackId }) : /* @__PURE__ */ jsxs26(DrawerProvider, { children: [
|
|
13394
|
+
return drawerTakeoverStackId ? /* @__PURE__ */ jsx44(DrawerInner, { ref, ...drawerProps, stackId: drawerTakeoverStackId }) : drawerProps.stackId ? /* @__PURE__ */ jsx44(DrawerInner, { ref, ...drawerProps }) : inheritedStackId ? /* @__PURE__ */ jsx44(DrawerInner, { ref, ...drawerProps, stackId: inheritedStackId }) : /* @__PURE__ */ jsxs26(DrawerProvider, { children: [
|
|
13373
13395
|
/* @__PURE__ */ jsx44(DrawerInner, { ref, ...drawerProps }),
|
|
13374
13396
|
/* @__PURE__ */ jsx44(DrawerRenderer, { stackId: defaultSackId, ...drawerRendererProps })
|
|
13375
13397
|
] });
|
|
@@ -13390,8 +13412,8 @@ var DrawerInner = ({
|
|
|
13390
13412
|
}) => {
|
|
13391
13413
|
const { registerDrawer, unregisterDrawer, providerId } = useDrawer();
|
|
13392
13414
|
const closeButtonRef = useRef3(null);
|
|
13393
|
-
const [rendererElement, setRendererElement] =
|
|
13394
|
-
|
|
13415
|
+
const [rendererElement, setRendererElement] = useState5(null);
|
|
13416
|
+
useEffect4(() => {
|
|
13395
13417
|
registerDrawer({
|
|
13396
13418
|
drawer: {
|
|
13397
13419
|
width,
|
|
@@ -13498,8 +13520,8 @@ var DrawerContent2 = ({ children, buttonGroup, noPadding = false, ...props }) =>
|
|
|
13498
13520
|
};
|
|
13499
13521
|
|
|
13500
13522
|
// src/components/Drawer/DrawerRenderer.tsx
|
|
13501
|
-
import { useEffect as
|
|
13502
|
-
import { Fragment as
|
|
13523
|
+
import { useEffect as useEffect5, useMemo as useMemo2 } from "react";
|
|
13524
|
+
import { Fragment as Fragment7, jsx as jsx46, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
|
|
13503
13525
|
var drawerWidth = {
|
|
13504
13526
|
narrow: "29rem",
|
|
13505
13527
|
medium: "43rem",
|
|
@@ -13519,7 +13541,7 @@ var DrawerRenderer = ({
|
|
|
13519
13541
|
}) => {
|
|
13520
13542
|
const { drawersRegistry, providerId } = useDrawer();
|
|
13521
13543
|
const drawersToRender = drawersRegistry.filter(({ stackId: sId }) => sId === stackId);
|
|
13522
|
-
|
|
13544
|
+
useEffect5(() => {
|
|
13523
13545
|
drawersToRender.forEach(({ isFirstRender, onFirstRender }) => {
|
|
13524
13546
|
if (isFirstRender) {
|
|
13525
13547
|
onFirstRender == null ? void 0 : onFirstRender();
|
|
@@ -13588,7 +13610,7 @@ var DrawerWrapper = ({
|
|
|
13588
13610
|
offsetInPx = Math.round(maxLayeringInPx * relativeLevel);
|
|
13589
13611
|
}
|
|
13590
13612
|
const calculatedWidth = `calc(${width} - ${offsetInPx}px)`;
|
|
13591
|
-
return /* @__PURE__ */ jsxs28(
|
|
13613
|
+
return /* @__PURE__ */ jsxs28(Fragment7, { children: [
|
|
13592
13614
|
/* @__PURE__ */ jsx46("div", { css: drawerWrapperOverlayStyles, onClick: onOverlayClick }),
|
|
13593
13615
|
/* @__PURE__ */ jsx46(
|
|
13594
13616
|
"div",
|
|
@@ -13608,8 +13630,23 @@ var getDrawerAttributes = ({
|
|
|
13608
13630
|
return { "data-drawer-id": `${providerId}-${stackId}-${id}`, "data-testid": "container-drawer" };
|
|
13609
13631
|
};
|
|
13610
13632
|
|
|
13633
|
+
// src/components/Drawer/TakeoverDrawerRenderer.tsx
|
|
13634
|
+
import { useEffect as useEffect6 } from "react";
|
|
13635
|
+
import { jsx as jsx47 } from "@emotion/react/jsx-runtime";
|
|
13636
|
+
var TAKEOVER_STACK_ID = "takeover-stack";
|
|
13637
|
+
var TakeoverDrawerRenderer = (props) => {
|
|
13638
|
+
const { registerTakeoverStackId, unregisterTakeoverStackId } = useDrawer();
|
|
13639
|
+
useEffect6(() => {
|
|
13640
|
+
registerTakeoverStackId(TAKEOVER_STACK_ID);
|
|
13641
|
+
return () => {
|
|
13642
|
+
unregisterTakeoverStackId(TAKEOVER_STACK_ID);
|
|
13643
|
+
};
|
|
13644
|
+
}, [registerTakeoverStackId, unregisterTakeoverStackId]);
|
|
13645
|
+
return /* @__PURE__ */ jsx47(DrawerRenderer, { ...props, stackId: TAKEOVER_STACK_ID });
|
|
13646
|
+
};
|
|
13647
|
+
|
|
13611
13648
|
// src/components/IconButton/IconButton.tsx
|
|
13612
|
-
import { forwardRef as
|
|
13649
|
+
import { forwardRef as forwardRef5 } from "react";
|
|
13613
13650
|
|
|
13614
13651
|
// src/components/IconButton/IconButton.styles.ts
|
|
13615
13652
|
import { css as css44 } from "@emotion/react";
|
|
@@ -13639,16 +13676,16 @@ var variants = {
|
|
|
13639
13676
|
};
|
|
13640
13677
|
|
|
13641
13678
|
// src/components/IconButton/IconButton.tsx
|
|
13642
|
-
import { jsx as
|
|
13643
|
-
var IconButton =
|
|
13679
|
+
import { jsx as jsx48 } from "@emotion/react/jsx-runtime";
|
|
13680
|
+
var IconButton = forwardRef5(
|
|
13644
13681
|
({ children, size = "md", variant = "square", ...props }, ref) => {
|
|
13645
|
-
return /* @__PURE__ */
|
|
13682
|
+
return /* @__PURE__ */ jsx48(Button, { ref, css: [iconButton, variants[variant], sizes[size]], ...props, children });
|
|
13646
13683
|
}
|
|
13647
13684
|
);
|
|
13648
13685
|
IconButton.displayName = "IconButton";
|
|
13649
13686
|
|
|
13650
13687
|
// src/components/Image/Image.tsx
|
|
13651
|
-
import { useCallback as useCallback2, useEffect as useEffect7, useState as
|
|
13688
|
+
import { useCallback as useCallback2, useEffect as useEffect7, useState as useState7 } from "react";
|
|
13652
13689
|
|
|
13653
13690
|
// src/components/Input/styles/CaptionText.styles.ts
|
|
13654
13691
|
import { css as css45 } from "@emotion/react";
|
|
@@ -13661,13 +13698,13 @@ var CaptionText = (dynamicSize) => css45`
|
|
|
13661
13698
|
`;
|
|
13662
13699
|
|
|
13663
13700
|
// src/components/Input/Caption.tsx
|
|
13664
|
-
import { jsx as
|
|
13701
|
+
import { jsx as jsx49 } from "@emotion/react/jsx-runtime";
|
|
13665
13702
|
var Caption = ({ children, testId, dynamicSize = false, ...props }) => {
|
|
13666
|
-
return /* @__PURE__ */
|
|
13703
|
+
return /* @__PURE__ */ jsx49("small", { css: CaptionText(dynamicSize), "data-testid": testId, ...props, children });
|
|
13667
13704
|
};
|
|
13668
13705
|
|
|
13669
13706
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
13670
|
-
import { forwardRef as
|
|
13707
|
+
import { forwardRef as forwardRef6 } from "react";
|
|
13671
13708
|
|
|
13672
13709
|
// src/components/Input/styles/CheckboxWithInfo.styles.ts
|
|
13673
13710
|
import { css as css46 } from "@emotion/react";
|
|
@@ -13742,21 +13779,21 @@ var InfoDialogMessage = css46`
|
|
|
13742
13779
|
`;
|
|
13743
13780
|
|
|
13744
13781
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
13745
|
-
import { jsx as
|
|
13782
|
+
import { jsx as jsx50, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
|
|
13746
13783
|
var InfoDialog = ({ message }) => {
|
|
13747
13784
|
return /* @__PURE__ */ jsxs29("div", { "data-testid": "info-dialog", css: InfoDialogContainer, children: [
|
|
13748
|
-
/* @__PURE__ */
|
|
13749
|
-
/* @__PURE__ */
|
|
13785
|
+
/* @__PURE__ */ jsx50(Icon, { icon: "info", iconColor: "action", size: "0.9rem" }),
|
|
13786
|
+
/* @__PURE__ */ jsx50("div", { role: "paragraph", css: InfoDialogMessage, className: "info-message", children: message })
|
|
13750
13787
|
] });
|
|
13751
13788
|
};
|
|
13752
|
-
var CheckboxWithInfo =
|
|
13789
|
+
var CheckboxWithInfo = forwardRef6(
|
|
13753
13790
|
({ label, name, info, ...props }, ref) => {
|
|
13754
13791
|
return /* @__PURE__ */ jsxs29("div", { css: CheckboxWithInfoContainer, children: [
|
|
13755
13792
|
/* @__PURE__ */ jsxs29("label", { css: CheckboxWithInfoLabel, children: [
|
|
13756
|
-
/* @__PURE__ */
|
|
13757
|
-
/* @__PURE__ */
|
|
13793
|
+
/* @__PURE__ */ jsx50("input", { type: "checkbox", name, ref, css: CheckboxWithInfoInput, ...props }),
|
|
13794
|
+
/* @__PURE__ */ jsx50("span", { children: label })
|
|
13758
13795
|
] }),
|
|
13759
|
-
info ? /* @__PURE__ */
|
|
13796
|
+
info ? /* @__PURE__ */ jsx50(InfoDialog, { message: info }) : null
|
|
13760
13797
|
] });
|
|
13761
13798
|
}
|
|
13762
13799
|
);
|
|
@@ -13774,10 +13811,10 @@ var ErrorText = css47`
|
|
|
13774
13811
|
`;
|
|
13775
13812
|
|
|
13776
13813
|
// src/components/Input/ErrorMessage.tsx
|
|
13777
|
-
import { jsx as
|
|
13814
|
+
import { jsx as jsx51, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
|
|
13778
13815
|
var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
13779
13816
|
return message ? /* @__PURE__ */ jsxs30("span", { role: "alert", css: ErrorText, "data-testid": testId, ...otherProps, children: [
|
|
13780
|
-
/* @__PURE__ */
|
|
13817
|
+
/* @__PURE__ */ jsx51("span", { children: /* @__PURE__ */ jsx51(Icon, { icon: MdWarning, size: "1rem", iconColor: "currentColor" }) }),
|
|
13781
13818
|
message
|
|
13782
13819
|
] }) : null;
|
|
13783
13820
|
};
|
|
@@ -13826,12 +13863,12 @@ var fieldsetBody = css48`
|
|
|
13826
13863
|
`;
|
|
13827
13864
|
|
|
13828
13865
|
// src/components/Input/Fieldset.tsx
|
|
13829
|
-
import { jsx as
|
|
13866
|
+
import { jsx as jsx52, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
|
|
13830
13867
|
var Fieldset = React15.forwardRef(
|
|
13831
|
-
({ legend, disabled, children, invert, ...props }, ref) => {
|
|
13832
|
-
return /* @__PURE__ */ jsxs31("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled, ...props, children: [
|
|
13868
|
+
({ legend, disabled: disabled2, children, invert, ...props }, ref) => {
|
|
13869
|
+
return /* @__PURE__ */ jsxs31("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled: disabled2, ...props, children: [
|
|
13833
13870
|
legend,
|
|
13834
|
-
/* @__PURE__ */
|
|
13871
|
+
/* @__PURE__ */ jsx52("div", { css: fieldsetBody, children })
|
|
13835
13872
|
] });
|
|
13836
13873
|
}
|
|
13837
13874
|
);
|
|
@@ -13855,10 +13892,10 @@ var InfoIcon2 = css49`
|
|
|
13855
13892
|
`;
|
|
13856
13893
|
|
|
13857
13894
|
// src/components/Input/InfoMessage.tsx
|
|
13858
|
-
import { jsx as
|
|
13895
|
+
import { jsx as jsx53, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
|
|
13859
13896
|
var InfoMessage = ({ message, testId, ...props }) => {
|
|
13860
13897
|
return message ? /* @__PURE__ */ jsxs32("span", { role: "status", css: InfoText, "data-testid": testId, ...props, children: [
|
|
13861
|
-
/* @__PURE__ */
|
|
13898
|
+
/* @__PURE__ */ jsx53("span", { children: /* @__PURE__ */ jsx53(Icon, { css: InfoIcon2, icon: MdInfoOutline, size: "1rem", iconColor: "currentColor" }) }),
|
|
13862
13899
|
message
|
|
13863
13900
|
] }) : null;
|
|
13864
13901
|
};
|
|
@@ -13867,9 +13904,9 @@ var InfoMessage = ({ message, testId, ...props }) => {
|
|
|
13867
13904
|
import * as React16 from "react";
|
|
13868
13905
|
|
|
13869
13906
|
// src/components/Input/Label.tsx
|
|
13870
|
-
import { jsx as
|
|
13907
|
+
import { jsx as jsx54 } from "@emotion/react/jsx-runtime";
|
|
13871
13908
|
var Label = ({ children, className, testId, ...props }) => {
|
|
13872
|
-
return /* @__PURE__ */
|
|
13909
|
+
return /* @__PURE__ */ jsx54(
|
|
13873
13910
|
"label",
|
|
13874
13911
|
{
|
|
13875
13912
|
css: [labelText, typeof className === "object" ? className : void 0],
|
|
@@ -13897,16 +13934,16 @@ var WarningIcon = css50`
|
|
|
13897
13934
|
`;
|
|
13898
13935
|
|
|
13899
13936
|
// src/components/Input/WarningMessage.tsx
|
|
13900
|
-
import { jsx as
|
|
13937
|
+
import { jsx as jsx55, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
|
|
13901
13938
|
var WarningMessage = ({ message, testId, ...props }) => {
|
|
13902
13939
|
return message ? /* @__PURE__ */ jsxs33("span", { role: "status", css: WarningText, "data-testid": testId, ...props, children: [
|
|
13903
|
-
/* @__PURE__ */
|
|
13940
|
+
/* @__PURE__ */ jsx55("span", { children: /* @__PURE__ */ jsx55(Icon, { css: WarningIcon, icon: MdWarning2, size: "1rem", iconColor: "currentColor" }) }),
|
|
13904
13941
|
message
|
|
13905
13942
|
] }) : null;
|
|
13906
13943
|
};
|
|
13907
13944
|
|
|
13908
13945
|
// src/components/Input/Input.tsx
|
|
13909
|
-
import { jsx as
|
|
13946
|
+
import { jsx as jsx56, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
|
|
13910
13947
|
var Input = React16.forwardRef(
|
|
13911
13948
|
({
|
|
13912
13949
|
label,
|
|
@@ -13932,7 +13969,7 @@ var Input = React16.forwardRef(
|
|
|
13932
13969
|
css: [inputContainer, typeof classNameRoot === "object" ? classNameRoot : void 0],
|
|
13933
13970
|
"data-testid": containerTestId ? containerTestId : "container-input-field",
|
|
13934
13971
|
children: [
|
|
13935
|
-
showLabel ? /* @__PURE__ */
|
|
13972
|
+
showLabel ? /* @__PURE__ */ jsx56(
|
|
13936
13973
|
Label,
|
|
13937
13974
|
{
|
|
13938
13975
|
htmlFor: id,
|
|
@@ -13948,7 +13985,7 @@ var Input = React16.forwardRef(
|
|
|
13948
13985
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
13949
13986
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
13950
13987
|
children: [
|
|
13951
|
-
/* @__PURE__ */
|
|
13988
|
+
/* @__PURE__ */ jsx56(
|
|
13952
13989
|
"input",
|
|
13953
13990
|
{
|
|
13954
13991
|
id,
|
|
@@ -13964,13 +14001,13 @@ var Input = React16.forwardRef(
|
|
|
13964
14001
|
ref
|
|
13965
14002
|
}
|
|
13966
14003
|
),
|
|
13967
|
-
icon ? /* @__PURE__ */
|
|
14004
|
+
icon ? /* @__PURE__ */ jsx56("div", { css: inputIcon, children: icon }) : null
|
|
13968
14005
|
]
|
|
13969
14006
|
}
|
|
13970
14007
|
),
|
|
13971
|
-
caption ? /* @__PURE__ */
|
|
13972
|
-
errorMessage ? /* @__PURE__ */
|
|
13973
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14008
|
+
caption ? /* @__PURE__ */ jsx56(Caption, { testId: captionTestId, children: caption }) : null,
|
|
14009
|
+
errorMessage ? /* @__PURE__ */ jsx56(ErrorMessage, { message: errorMessage, testId: errorTestId }) : null,
|
|
14010
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx56(WarningMessage, { message: warningMessage }) : null
|
|
13974
14011
|
]
|
|
13975
14012
|
}
|
|
13976
14013
|
);
|
|
@@ -13979,10 +14016,10 @@ var Input = React16.forwardRef(
|
|
|
13979
14016
|
|
|
13980
14017
|
// src/components/Input/InputComboBox.tsx
|
|
13981
14018
|
import Select from "react-select";
|
|
13982
|
-
import { jsx as
|
|
14019
|
+
import { jsx as jsx57 } from "@emotion/react/jsx-runtime";
|
|
13983
14020
|
function InputComboBox(props) {
|
|
13984
14021
|
var _a;
|
|
13985
|
-
return /* @__PURE__ */
|
|
14022
|
+
return /* @__PURE__ */ jsx57(
|
|
13986
14023
|
Select,
|
|
13987
14024
|
{
|
|
13988
14025
|
...props,
|
|
@@ -14113,7 +14150,7 @@ function InputComboBox(props) {
|
|
|
14113
14150
|
// src/components/Input/InputInlineSelect.tsx
|
|
14114
14151
|
import { css as css52 } from "@emotion/react";
|
|
14115
14152
|
import { CgChevronDown as CgChevronDown2 } from "@react-icons/all-files/cg/CgChevronDown";
|
|
14116
|
-
import { useRef as useRef4, useState as
|
|
14153
|
+
import { useRef as useRef4, useState as useState6 } from "react";
|
|
14117
14154
|
|
|
14118
14155
|
// src/components/Input/styles/InputInlineSelect.styles.ts
|
|
14119
14156
|
import { css as css51 } from "@emotion/react";
|
|
@@ -14182,17 +14219,17 @@ var inlineSelectMenuClosed = css51`
|
|
|
14182
14219
|
`;
|
|
14183
14220
|
|
|
14184
14221
|
// src/components/Input/InputInlineSelect.tsx
|
|
14185
|
-
import { jsx as
|
|
14222
|
+
import { jsx as jsx58, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
14186
14223
|
var InputInlineSelect = ({
|
|
14187
14224
|
classNameContainer,
|
|
14188
14225
|
options,
|
|
14189
14226
|
value,
|
|
14190
14227
|
onChange,
|
|
14191
|
-
disabled,
|
|
14228
|
+
disabled: disabled2,
|
|
14192
14229
|
...props
|
|
14193
14230
|
}) => {
|
|
14194
14231
|
var _a;
|
|
14195
|
-
const [menuVisible, setMenuVisible] =
|
|
14232
|
+
const [menuVisible, setMenuVisible] = useState6(false);
|
|
14196
14233
|
const divRef = useRef4(null);
|
|
14197
14234
|
useOutsideClick(divRef, () => setMenuVisible(false));
|
|
14198
14235
|
const selected = options.find((option) => option.value === value);
|
|
@@ -14214,24 +14251,24 @@ var InputInlineSelect = ({
|
|
|
14214
14251
|
"aria-expanded": menuVisible,
|
|
14215
14252
|
css: inlineSelectBtn,
|
|
14216
14253
|
onClick: () => {
|
|
14217
|
-
if (!
|
|
14254
|
+
if (!disabled2)
|
|
14218
14255
|
setMenuVisible((prev) => !prev);
|
|
14219
14256
|
},
|
|
14220
|
-
disabled,
|
|
14257
|
+
disabled: disabled2,
|
|
14221
14258
|
...props,
|
|
14222
14259
|
children: [
|
|
14223
|
-
/* @__PURE__ */
|
|
14224
|
-
|
|
14260
|
+
/* @__PURE__ */ jsx58("span", { children: (_a = selected == null ? void 0 : selected.label) != null ? _a : value }),
|
|
14261
|
+
disabled2 ? null : /* @__PURE__ */ jsx58(Icon, { icon: CgChevronDown2, iconColor: "currentColor", size: 24 })
|
|
14225
14262
|
]
|
|
14226
14263
|
}
|
|
14227
14264
|
),
|
|
14228
|
-
/* @__PURE__ */
|
|
14265
|
+
/* @__PURE__ */ jsx58(
|
|
14229
14266
|
"div",
|
|
14230
14267
|
{
|
|
14231
14268
|
id: `and-or-${props.id}`,
|
|
14232
14269
|
css: [inlineSelectMenu, menuVisible ? void 0 : inlineSelectMenuClosed],
|
|
14233
14270
|
"aria-hidden": !menuVisible,
|
|
14234
|
-
children: options.map((opt) => /* @__PURE__ */
|
|
14271
|
+
children: options.map((opt) => /* @__PURE__ */ jsx58(
|
|
14235
14272
|
"button",
|
|
14236
14273
|
{
|
|
14237
14274
|
type: "button",
|
|
@@ -14254,10 +14291,10 @@ var InputInlineSelect = ({
|
|
|
14254
14291
|
// src/components/Input/InputKeywordSearch.tsx
|
|
14255
14292
|
import { CgClose as CgClose4 } from "@react-icons/all-files/cg/CgClose";
|
|
14256
14293
|
import { CgSearch } from "@react-icons/all-files/cg/CgSearch";
|
|
14257
|
-
import { jsx as
|
|
14294
|
+
import { jsx as jsx59 } from "@emotion/react/jsx-runtime";
|
|
14258
14295
|
var InputKeywordSearch = ({
|
|
14259
14296
|
onSearchTextChanged,
|
|
14260
|
-
disabled = false,
|
|
14297
|
+
disabled: disabled2 = false,
|
|
14261
14298
|
placeholder = "Keyword search",
|
|
14262
14299
|
inputFieldName = "keywordSearch",
|
|
14263
14300
|
disabledFieldSubmission = false,
|
|
@@ -14275,7 +14312,7 @@ var InputKeywordSearch = ({
|
|
|
14275
14312
|
e.preventDefault();
|
|
14276
14313
|
}
|
|
14277
14314
|
};
|
|
14278
|
-
return /* @__PURE__ */
|
|
14315
|
+
return /* @__PURE__ */ jsx59(
|
|
14279
14316
|
Input,
|
|
14280
14317
|
{
|
|
14281
14318
|
type: "text",
|
|
@@ -14283,10 +14320,10 @@ var InputKeywordSearch = ({
|
|
|
14283
14320
|
placeholder,
|
|
14284
14321
|
showLabel: false,
|
|
14285
14322
|
value,
|
|
14286
|
-
icon: value ? /* @__PURE__ */
|
|
14323
|
+
icon: value ? /* @__PURE__ */ jsx59("button", { css: inputSearchCloseBtn, onClick: onClear, type: "button", children: /* @__PURE__ */ jsx59(Icon, { icon: CgClose4, iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ jsx59(Icon, { icon: CgSearch, iconColor: "gray", size: "1rem" }),
|
|
14287
14324
|
onChange: handleSearchTextChanged,
|
|
14288
14325
|
onKeyPress: preventSubmitOnField,
|
|
14289
|
-
disabled,
|
|
14326
|
+
disabled: disabled2,
|
|
14290
14327
|
"aria-label": placeholder,
|
|
14291
14328
|
css: [
|
|
14292
14329
|
compact ? {
|
|
@@ -14295,13 +14332,14 @@ var InputKeywordSearch = ({
|
|
|
14295
14332
|
} : null,
|
|
14296
14333
|
rounded ? { borderRadius: "var(--rounded-full)" } : null
|
|
14297
14334
|
],
|
|
14335
|
+
"data-testid": "input-search",
|
|
14298
14336
|
...props
|
|
14299
14337
|
}
|
|
14300
14338
|
);
|
|
14301
14339
|
};
|
|
14302
14340
|
|
|
14303
14341
|
// src/components/Input/InputSelect.tsx
|
|
14304
|
-
import { Fragment as
|
|
14342
|
+
import { Fragment as Fragment8, jsx as jsx60, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
14305
14343
|
var InputSelect = ({
|
|
14306
14344
|
label,
|
|
14307
14345
|
defaultOption,
|
|
@@ -14323,7 +14361,7 @@ var InputSelect = ({
|
|
|
14323
14361
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
14324
14362
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
14325
14363
|
children: [
|
|
14326
|
-
showLabel ? /* @__PURE__ */
|
|
14364
|
+
showLabel ? /* @__PURE__ */ jsx60(Fragment8, { children: /* @__PURE__ */ jsxs36(
|
|
14327
14365
|
Label,
|
|
14328
14366
|
{
|
|
14329
14367
|
htmlFor: props.id,
|
|
@@ -14350,14 +14388,14 @@ var InputSelect = ({
|
|
|
14350
14388
|
className: typeof classNameControl === "string" ? classNameControl : "",
|
|
14351
14389
|
...props,
|
|
14352
14390
|
children: [
|
|
14353
|
-
defaultOption ? /* @__PURE__ */
|
|
14354
|
-
options.map((opt, index) => /* @__PURE__ */
|
|
14391
|
+
defaultOption ? /* @__PURE__ */ jsx60("option", { value: "", children: defaultOption }) : null,
|
|
14392
|
+
options.map((opt, index) => /* @__PURE__ */ jsx60("option", { value: opt.label, ...opt }, index))
|
|
14355
14393
|
]
|
|
14356
14394
|
}
|
|
14357
14395
|
),
|
|
14358
|
-
caption ? /* @__PURE__ */
|
|
14359
|
-
errorMessage ? /* @__PURE__ */
|
|
14360
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14396
|
+
caption ? /* @__PURE__ */ jsx60(Caption, { children: caption }) : null,
|
|
14397
|
+
errorMessage ? /* @__PURE__ */ jsx60(ErrorMessage, { message: errorMessage }) : null,
|
|
14398
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx60(WarningMessage, { message: warningMessage }) : null
|
|
14361
14399
|
]
|
|
14362
14400
|
}
|
|
14363
14401
|
);
|
|
@@ -14365,12 +14403,12 @@ var InputSelect = ({
|
|
|
14365
14403
|
|
|
14366
14404
|
// src/components/Input/InputToggle.tsx
|
|
14367
14405
|
import * as React17 from "react";
|
|
14368
|
-
import { jsx as
|
|
14406
|
+
import { jsx as jsx61, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
|
|
14369
14407
|
var InputToggle = React17.forwardRef(
|
|
14370
14408
|
({
|
|
14371
14409
|
label,
|
|
14372
14410
|
type,
|
|
14373
|
-
disabled,
|
|
14411
|
+
disabled: disabled2,
|
|
14374
14412
|
checked,
|
|
14375
14413
|
name,
|
|
14376
14414
|
caption,
|
|
@@ -14388,10 +14426,10 @@ var InputToggle = React17.forwardRef(
|
|
|
14388
14426
|
return /* @__PURE__ */ jsxs37(
|
|
14389
14427
|
Label,
|
|
14390
14428
|
{
|
|
14391
|
-
css: [inputToggleLabel,
|
|
14429
|
+
css: [inputToggleLabel, disabled2 ? inputDisabled : void 0],
|
|
14392
14430
|
"data-testid": testId ? testId : "input-toggle",
|
|
14393
14431
|
children: [
|
|
14394
|
-
/* @__PURE__ */
|
|
14432
|
+
/* @__PURE__ */ jsx61(
|
|
14395
14433
|
"input",
|
|
14396
14434
|
{
|
|
14397
14435
|
ref,
|
|
@@ -14399,15 +14437,15 @@ var InputToggle = React17.forwardRef(
|
|
|
14399
14437
|
css: toggleInput,
|
|
14400
14438
|
checked,
|
|
14401
14439
|
name,
|
|
14402
|
-
disabled,
|
|
14440
|
+
disabled: disabled2,
|
|
14403
14441
|
...props
|
|
14404
14442
|
}
|
|
14405
14443
|
),
|
|
14406
|
-
/* @__PURE__ */
|
|
14444
|
+
/* @__PURE__ */ jsx61("span", { css: [inlineLabel, fontWeightStyles[fontWeight]], children: label }),
|
|
14407
14445
|
caption || errorMessage ? /* @__PURE__ */ jsxs37("span", { css: inputToggleMessageContainer, children: [
|
|
14408
|
-
caption ? /* @__PURE__ */
|
|
14409
|
-
errorMessage ? /* @__PURE__ */
|
|
14410
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14446
|
+
caption ? /* @__PURE__ */ jsx61(Caption, { children: caption }) : null,
|
|
14447
|
+
errorMessage ? /* @__PURE__ */ jsx61(ErrorMessage, { message: errorMessage }) : null,
|
|
14448
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx61(WarningMessage, { message: warningMessage }) : null
|
|
14411
14449
|
] }) : null
|
|
14412
14450
|
]
|
|
14413
14451
|
}
|
|
@@ -14416,9 +14454,9 @@ var InputToggle = React17.forwardRef(
|
|
|
14416
14454
|
);
|
|
14417
14455
|
|
|
14418
14456
|
// src/components/Input/Legend.tsx
|
|
14419
|
-
import { jsx as
|
|
14457
|
+
import { jsx as jsx62 } from "@emotion/react/jsx-runtime";
|
|
14420
14458
|
var Legend = ({ children }) => {
|
|
14421
|
-
return /* @__PURE__ */
|
|
14459
|
+
return /* @__PURE__ */ jsx62("legend", { css: fieldsetLegend, children });
|
|
14422
14460
|
};
|
|
14423
14461
|
|
|
14424
14462
|
// src/components/Input/SuccessMessage.tsx
|
|
@@ -14440,23 +14478,23 @@ var SuccessIcon2 = css53`
|
|
|
14440
14478
|
`;
|
|
14441
14479
|
|
|
14442
14480
|
// src/components/Input/SuccessMessage.tsx
|
|
14443
|
-
import { jsx as
|
|
14481
|
+
import { jsx as jsx63, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
|
|
14444
14482
|
var SuccessMessage = ({ message, testId, ...props }) => {
|
|
14445
14483
|
return message ? /* @__PURE__ */ jsxs38("span", { role: "status", css: SuccessText, "data-testid": testId, ...props, children: [
|
|
14446
|
-
/* @__PURE__ */
|
|
14484
|
+
/* @__PURE__ */ jsx63("span", { children: /* @__PURE__ */ jsx63(Icon, { css: SuccessIcon2, icon: CgCheckO, size: "1rem", iconColor: "currentColor" }) }),
|
|
14447
14485
|
message
|
|
14448
14486
|
] }) : null;
|
|
14449
14487
|
};
|
|
14450
14488
|
|
|
14451
14489
|
// src/components/Input/Textarea.tsx
|
|
14452
|
-
import { forwardRef as
|
|
14453
|
-
import { Fragment as
|
|
14454
|
-
var Textarea =
|
|
14490
|
+
import { forwardRef as forwardRef10 } from "react";
|
|
14491
|
+
import { Fragment as Fragment9, jsx as jsx64, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
14492
|
+
var Textarea = forwardRef10(
|
|
14455
14493
|
({ label, icon, id, caption, showLabel = true, errorMessage, warningMessage, ...props }, ref) => {
|
|
14456
|
-
return /* @__PURE__ */ jsxs39(
|
|
14457
|
-
showLabel ? /* @__PURE__ */
|
|
14494
|
+
return /* @__PURE__ */ jsxs39(Fragment9, { children: [
|
|
14495
|
+
showLabel ? /* @__PURE__ */ jsx64("label", { htmlFor: id, css: [labelText], children: label }) : null,
|
|
14458
14496
|
/* @__PURE__ */ jsxs39("div", { css: [inputContainer], children: [
|
|
14459
|
-
/* @__PURE__ */
|
|
14497
|
+
/* @__PURE__ */ jsx64(
|
|
14460
14498
|
"textarea",
|
|
14461
14499
|
{
|
|
14462
14500
|
ref,
|
|
@@ -14471,11 +14509,11 @@ var Textarea = forwardRef9(
|
|
|
14471
14509
|
...props
|
|
14472
14510
|
}
|
|
14473
14511
|
),
|
|
14474
|
-
icon ? /* @__PURE__ */
|
|
14512
|
+
icon ? /* @__PURE__ */ jsx64("div", { css: inputIcon, children: icon }) : null
|
|
14475
14513
|
] }),
|
|
14476
|
-
caption ? /* @__PURE__ */
|
|
14477
|
-
errorMessage ? /* @__PURE__ */
|
|
14478
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14514
|
+
caption ? /* @__PURE__ */ jsx64(Caption, { children: caption }) : null,
|
|
14515
|
+
errorMessage ? /* @__PURE__ */ jsx64(ErrorMessage, { message: errorMessage }) : null,
|
|
14516
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx64(WarningMessage, { message: warningMessage }) : null
|
|
14479
14517
|
] });
|
|
14480
14518
|
}
|
|
14481
14519
|
);
|
|
@@ -14522,7 +14560,7 @@ var variantFillImageImg = css54`
|
|
|
14522
14560
|
`;
|
|
14523
14561
|
|
|
14524
14562
|
// src/components/Image/ImageBroken.tsx
|
|
14525
|
-
import { jsx as
|
|
14563
|
+
import { jsx as jsx65, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
|
|
14526
14564
|
var ImageBroken = ({ width, height, ...props }) => {
|
|
14527
14565
|
return /* @__PURE__ */ jsxs40(
|
|
14528
14566
|
"svg",
|
|
@@ -14537,11 +14575,11 @@ var ImageBroken = ({ width, height, ...props }) => {
|
|
|
14537
14575
|
"data-testid": "broken-image",
|
|
14538
14576
|
...props,
|
|
14539
14577
|
children: [
|
|
14540
|
-
/* @__PURE__ */
|
|
14541
|
-
/* @__PURE__ */
|
|
14578
|
+
/* @__PURE__ */ jsx65("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
14579
|
+
/* @__PURE__ */ jsx65("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
14542
14580
|
/* @__PURE__ */ jsxs40("defs", { children: [
|
|
14543
|
-
/* @__PURE__ */
|
|
14544
|
-
/* @__PURE__ */
|
|
14581
|
+
/* @__PURE__ */ jsx65("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx65("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
14582
|
+
/* @__PURE__ */ jsx65(
|
|
14545
14583
|
"image",
|
|
14546
14584
|
{
|
|
14547
14585
|
id: "image0_761_4353",
|
|
@@ -14557,7 +14595,7 @@ var ImageBroken = ({ width, height, ...props }) => {
|
|
|
14557
14595
|
};
|
|
14558
14596
|
|
|
14559
14597
|
// src/components/Image/Image.tsx
|
|
14560
|
-
import { Fragment as
|
|
14598
|
+
import { Fragment as Fragment10, jsx as jsx66, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
14561
14599
|
var MIN_LOADING_MS = 100;
|
|
14562
14600
|
function Image({
|
|
14563
14601
|
alt,
|
|
@@ -14569,8 +14607,8 @@ function Image({
|
|
|
14569
14607
|
height,
|
|
14570
14608
|
...imgAttribs
|
|
14571
14609
|
}) {
|
|
14572
|
-
const [loading, setLoading] =
|
|
14573
|
-
const [loadErrorText, setLoadErrorText] =
|
|
14610
|
+
const [loading, setLoading] = useState7(true);
|
|
14611
|
+
const [loadErrorText, setLoadErrorText] = useState7("");
|
|
14574
14612
|
const errorText = "The text you provided is not a valid URL";
|
|
14575
14613
|
const updateImageSrc = useCallback2(() => {
|
|
14576
14614
|
let message = "";
|
|
@@ -14617,7 +14655,7 @@ function Image({
|
|
|
14617
14655
|
variant === "fill-container" ? variantFillImageWrapper : null
|
|
14618
14656
|
],
|
|
14619
14657
|
children: [
|
|
14620
|
-
src && !loadErrorText ? /* @__PURE__ */
|
|
14658
|
+
src && !loadErrorText ? /* @__PURE__ */ jsx66(
|
|
14621
14659
|
"img",
|
|
14622
14660
|
{
|
|
14623
14661
|
...imgAttribs,
|
|
@@ -14636,8 +14674,8 @@ function Image({
|
|
|
14636
14674
|
onError: handleErrorEvent
|
|
14637
14675
|
}
|
|
14638
14676
|
) : null,
|
|
14639
|
-
src && loadErrorText ? /* @__PURE__ */ jsxs41(
|
|
14640
|
-
/* @__PURE__ */
|
|
14677
|
+
src && loadErrorText ? /* @__PURE__ */ jsxs41(Fragment10, { children: [
|
|
14678
|
+
/* @__PURE__ */ jsx66(
|
|
14641
14679
|
ImageBroken,
|
|
14642
14680
|
{
|
|
14643
14681
|
css: [brokenImage, img, imgLoaded],
|
|
@@ -14646,7 +14684,7 @@ function Image({
|
|
|
14646
14684
|
"data-testid": "broken-image"
|
|
14647
14685
|
}
|
|
14648
14686
|
),
|
|
14649
|
-
/* @__PURE__ */
|
|
14687
|
+
/* @__PURE__ */ jsx66(ErrorMessage, { message: loadErrorText })
|
|
14650
14688
|
] }) : null
|
|
14651
14689
|
]
|
|
14652
14690
|
}
|
|
@@ -14788,7 +14826,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => css55`
|
|
|
14788
14826
|
`;
|
|
14789
14827
|
|
|
14790
14828
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
14791
|
-
import { jsx as
|
|
14829
|
+
import { jsx as jsx67, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
14792
14830
|
var CreateTeamIntegrationTile = ({
|
|
14793
14831
|
title: title2 = "Create a custom integration for your team",
|
|
14794
14832
|
buttonText = "Add Integration",
|
|
@@ -14797,7 +14835,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
14797
14835
|
...props
|
|
14798
14836
|
}) => {
|
|
14799
14837
|
return /* @__PURE__ */ jsxs42("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
14800
|
-
/* @__PURE__ */
|
|
14838
|
+
/* @__PURE__ */ jsx67("span", { css: IntegrationTileTitle, title: title2, children: title2 }),
|
|
14801
14839
|
/* @__PURE__ */ jsxs42(
|
|
14802
14840
|
Button,
|
|
14803
14841
|
{
|
|
@@ -14808,7 +14846,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
14808
14846
|
css: IntegrationTitleFakeButton,
|
|
14809
14847
|
children: [
|
|
14810
14848
|
buttonText,
|
|
14811
|
-
asDeepLink ? /* @__PURE__ */
|
|
14849
|
+
asDeepLink ? /* @__PURE__ */ jsx67(
|
|
14812
14850
|
Icon,
|
|
14813
14851
|
{
|
|
14814
14852
|
icon: CgChevronRight2,
|
|
@@ -14818,7 +14856,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
14818
14856
|
order: 1;
|
|
14819
14857
|
`
|
|
14820
14858
|
}
|
|
14821
|
-
) : /* @__PURE__ */
|
|
14859
|
+
) : /* @__PURE__ */ jsx67(
|
|
14822
14860
|
Icon,
|
|
14823
14861
|
{
|
|
14824
14862
|
icon: CgAdd2,
|
|
@@ -14839,31 +14877,31 @@ var CreateTeamIntegrationTile = ({
|
|
|
14839
14877
|
import { CgCheck } from "@react-icons/all-files/cg/CgCheck";
|
|
14840
14878
|
import { CgLock } from "@react-icons/all-files/cg/CgLock";
|
|
14841
14879
|
import { CgSandClock } from "@react-icons/all-files/cg/CgSandClock";
|
|
14842
|
-
import { jsx as
|
|
14880
|
+
import { jsx as jsx68, jsxs as jsxs43 } from "@emotion/react/jsx-runtime";
|
|
14843
14881
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
14844
14882
|
return /* @__PURE__ */ jsxs43("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
14845
|
-
/* @__PURE__ */
|
|
14883
|
+
/* @__PURE__ */ jsx68(Icon, { icon: CgCheck, iconColor: "currentColor" }),
|
|
14846
14884
|
text
|
|
14847
14885
|
] });
|
|
14848
14886
|
};
|
|
14849
14887
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
14850
|
-
return /* @__PURE__ */
|
|
14888
|
+
return /* @__PURE__ */ jsx68("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
14851
14889
|
};
|
|
14852
14890
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
14853
14891
|
return /* @__PURE__ */ jsxs43("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
14854
|
-
/* @__PURE__ */
|
|
14892
|
+
/* @__PURE__ */ jsx68(Icon, { icon: CgLock, iconColor: "currentColor", size: 12 }),
|
|
14855
14893
|
text
|
|
14856
14894
|
] });
|
|
14857
14895
|
};
|
|
14858
14896
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
14859
14897
|
return /* @__PURE__ */ jsxs43("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
14860
|
-
/* @__PURE__ */
|
|
14898
|
+
/* @__PURE__ */ jsx68(Icon, { icon: CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
14861
14899
|
text
|
|
14862
14900
|
] });
|
|
14863
14901
|
};
|
|
14864
14902
|
|
|
14865
14903
|
// src/components/Tiles/ResolveIcon.tsx
|
|
14866
|
-
import { jsx as
|
|
14904
|
+
import { jsx as jsx69 } from "@emotion/react/jsx-runtime";
|
|
14867
14905
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
14868
14906
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
14869
14907
|
const mapClassName = {
|
|
@@ -14871,13 +14909,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
14871
14909
|
logo: IntegrationTitleLogo
|
|
14872
14910
|
};
|
|
14873
14911
|
if (icon) {
|
|
14874
|
-
return CompIcon ? /* @__PURE__ */
|
|
14912
|
+
return CompIcon ? /* @__PURE__ */ jsx69(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ jsx69("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
14875
14913
|
}
|
|
14876
14914
|
return null;
|
|
14877
14915
|
};
|
|
14878
14916
|
|
|
14879
14917
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
14880
|
-
import { jsx as
|
|
14918
|
+
import { jsx as jsx70, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
14881
14919
|
var EditTeamIntegrationTile = ({
|
|
14882
14920
|
id,
|
|
14883
14921
|
icon,
|
|
@@ -14893,10 +14931,10 @@ var EditTeamIntegrationTile = ({
|
|
|
14893
14931
|
"data-testid": "configure-integration-container",
|
|
14894
14932
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
14895
14933
|
children: [
|
|
14896
|
-
/* @__PURE__ */
|
|
14897
|
-
/* @__PURE__ */
|
|
14898
|
-
!isPublic ? /* @__PURE__ */
|
|
14899
|
-
canEdit ? /* @__PURE__ */
|
|
14934
|
+
/* @__PURE__ */ jsx70(ResolveIcon, { icon, name, "data-testid": "integration-logo" }),
|
|
14935
|
+
/* @__PURE__ */ jsx70("span", { css: IntegrationTileName, "data-testid": "integration-card-name", children: name }),
|
|
14936
|
+
!isPublic ? /* @__PURE__ */ jsx70(IntegrationCustomBadge, {}) : null,
|
|
14937
|
+
canEdit ? /* @__PURE__ */ jsx70(
|
|
14900
14938
|
Button,
|
|
14901
14939
|
{
|
|
14902
14940
|
buttonType: "unimportant",
|
|
@@ -14916,8 +14954,8 @@ var EditTeamIntegrationTile = ({
|
|
|
14916
14954
|
// src/components/Tiles/IntegrationComingSoon.tsx
|
|
14917
14955
|
import { css as css57 } from "@emotion/react";
|
|
14918
14956
|
import { CgHeart } from "@react-icons/all-files/cg/CgHeart";
|
|
14919
|
-
import { useEffect as useEffect8, useState as
|
|
14920
|
-
import { jsx as
|
|
14957
|
+
import { useEffect as useEffect8, useState as useState8 } from "react";
|
|
14958
|
+
import { jsx as jsx71, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
|
|
14921
14959
|
var IntegrationComingSoon = ({
|
|
14922
14960
|
name,
|
|
14923
14961
|
icon,
|
|
@@ -14926,7 +14964,7 @@ var IntegrationComingSoon = ({
|
|
|
14926
14964
|
timing = 1e3,
|
|
14927
14965
|
...props
|
|
14928
14966
|
}) => {
|
|
14929
|
-
const [upVote, setUpVote] =
|
|
14967
|
+
const [upVote, setUpVote] = useState8(false);
|
|
14930
14968
|
const handleUpVoteInteraction = () => {
|
|
14931
14969
|
setUpVote((prev) => !prev);
|
|
14932
14970
|
onUpVoteClick();
|
|
@@ -14946,9 +14984,9 @@ var IntegrationComingSoon = ({
|
|
|
14946
14984
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
14947
14985
|
...props,
|
|
14948
14986
|
children: [
|
|
14949
|
-
/* @__PURE__ */
|
|
14950
|
-
/* @__PURE__ */
|
|
14951
|
-
/* @__PURE__ */
|
|
14987
|
+
/* @__PURE__ */ jsx71(IntegrationComingSoonBadge, {}),
|
|
14988
|
+
/* @__PURE__ */ jsx71(ResolveIcon, { icon, name }),
|
|
14989
|
+
/* @__PURE__ */ jsx71("span", { css: IntegrationTileName, title: name, children: name }),
|
|
14952
14990
|
/* @__PURE__ */ jsxs45(
|
|
14953
14991
|
Button,
|
|
14954
14992
|
{
|
|
@@ -14959,8 +14997,8 @@ var IntegrationComingSoon = ({
|
|
|
14959
14997
|
role: "link",
|
|
14960
14998
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
14961
14999
|
children: [
|
|
14962
|
-
/* @__PURE__ */
|
|
14963
|
-
/* @__PURE__ */
|
|
15000
|
+
/* @__PURE__ */ jsx71("strong", { children: "+1" }),
|
|
15001
|
+
/* @__PURE__ */ jsx71(
|
|
14964
15002
|
"span",
|
|
14965
15003
|
{
|
|
14966
15004
|
css: css57`
|
|
@@ -14971,7 +15009,7 @@ var IntegrationComingSoon = ({
|
|
|
14971
15009
|
}
|
|
14972
15010
|
),
|
|
14973
15011
|
/* @__PURE__ */ jsxs45("span", { "aria-hidden": !upVote, children: [
|
|
14974
|
-
/* @__PURE__ */
|
|
15012
|
+
/* @__PURE__ */ jsx71(Icon, { icon: CgHeart, iconColor: "currentColor", size: 18 }),
|
|
14975
15013
|
"Thanks!"
|
|
14976
15014
|
] })
|
|
14977
15015
|
]
|
|
@@ -15027,12 +15065,12 @@ var IntegrationLoadingFrame = css58`
|
|
|
15027
15065
|
`;
|
|
15028
15066
|
|
|
15029
15067
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
15030
|
-
import { Fragment as
|
|
15068
|
+
import { Fragment as Fragment11, jsx as jsx72, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
15031
15069
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
15032
15070
|
const componentCount = Array.from(Array(count).keys());
|
|
15033
|
-
return /* @__PURE__ */
|
|
15034
|
-
/* @__PURE__ */
|
|
15035
|
-
/* @__PURE__ */
|
|
15071
|
+
return /* @__PURE__ */ jsx72(Fragment11, { children: componentCount.map((i) => /* @__PURE__ */ jsxs46("div", { css: IntegrationLoadingTileContainer, children: [
|
|
15072
|
+
/* @__PURE__ */ jsx72("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
15073
|
+
/* @__PURE__ */ jsx72("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
15036
15074
|
] }, i)) });
|
|
15037
15075
|
};
|
|
15038
15076
|
|
|
@@ -15052,7 +15090,7 @@ var IntegrationModalImage = css59`
|
|
|
15052
15090
|
`;
|
|
15053
15091
|
|
|
15054
15092
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
15055
|
-
import { jsx as
|
|
15093
|
+
import { jsx as jsx73, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
15056
15094
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
15057
15095
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
15058
15096
|
let iconSrc = void 0;
|
|
@@ -15070,7 +15108,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
15070
15108
|
}
|
|
15071
15109
|
return /* @__PURE__ */ jsxs47("div", { css: IntegrationModalIconContainer, children: [
|
|
15072
15110
|
/* @__PURE__ */ jsxs47("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
15073
|
-
/* @__PURE__ */
|
|
15111
|
+
/* @__PURE__ */ jsx73(
|
|
15074
15112
|
"path",
|
|
15075
15113
|
{
|
|
15076
15114
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -15079,12 +15117,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
15079
15117
|
strokeWidth: "2"
|
|
15080
15118
|
}
|
|
15081
15119
|
),
|
|
15082
|
-
/* @__PURE__ */
|
|
15083
|
-
/* @__PURE__ */
|
|
15084
|
-
/* @__PURE__ */
|
|
15120
|
+
/* @__PURE__ */ jsx73("defs", { children: /* @__PURE__ */ jsxs47("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
15121
|
+
/* @__PURE__ */ jsx73("stop", { stopColor: "#1768B2" }),
|
|
15122
|
+
/* @__PURE__ */ jsx73("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
15085
15123
|
] }) })
|
|
15086
15124
|
] }),
|
|
15087
|
-
CompIcon ? /* @__PURE__ */
|
|
15125
|
+
CompIcon ? /* @__PURE__ */ jsx73(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : iconSrc ? /* @__PURE__ */ jsx73(
|
|
15088
15126
|
"img",
|
|
15089
15127
|
{
|
|
15090
15128
|
src: iconSrc,
|
|
@@ -15098,7 +15136,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
15098
15136
|
};
|
|
15099
15137
|
|
|
15100
15138
|
// src/components/Tiles/IntegrationTile.tsx
|
|
15101
|
-
import { jsx as
|
|
15139
|
+
import { jsx as jsx74, jsxs as jsxs48 } from "@emotion/react/jsx-runtime";
|
|
15102
15140
|
var IntegrationTile = ({
|
|
15103
15141
|
id,
|
|
15104
15142
|
icon,
|
|
@@ -15120,12 +15158,12 @@ var IntegrationTile = ({
|
|
|
15120
15158
|
"aria-label": name,
|
|
15121
15159
|
...btnProps,
|
|
15122
15160
|
children: [
|
|
15123
|
-
/* @__PURE__ */
|
|
15124
|
-
/* @__PURE__ */
|
|
15125
|
-
isInstalled ? /* @__PURE__ */
|
|
15126
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */
|
|
15127
|
-
!isPublic ? /* @__PURE__ */
|
|
15128
|
-
authorIcon ? /* @__PURE__ */
|
|
15161
|
+
/* @__PURE__ */ jsx74(ResolveIcon, { icon, name }),
|
|
15162
|
+
/* @__PURE__ */ jsx74("span", { css: IntegrationTileName, title: name, children: name }),
|
|
15163
|
+
isInstalled ? /* @__PURE__ */ jsx74(IntegrationedAddedBadge, {}) : null,
|
|
15164
|
+
requiedEntitlement && isPublic ? /* @__PURE__ */ jsx74(IntegrationPremiumBadge, {}) : null,
|
|
15165
|
+
!isPublic ? /* @__PURE__ */ jsx74(IntegrationCustomBadge, {}) : null,
|
|
15166
|
+
authorIcon ? /* @__PURE__ */ jsx74(ResolveIcon, { icon: authorIcon, name }) : null
|
|
15129
15167
|
]
|
|
15130
15168
|
}
|
|
15131
15169
|
);
|
|
@@ -15156,11 +15194,24 @@ var Tile = css60`
|
|
|
15156
15194
|
pointer-events: none;
|
|
15157
15195
|
}
|
|
15158
15196
|
`;
|
|
15197
|
+
var TileIsSelected = css60`
|
|
15198
|
+
border: calc(${tileBorderSize} + 1px) solid var(--primary-action-active);
|
|
15199
|
+
z-index: 1; // Used to elevate active state border over other Tile borders
|
|
15200
|
+
`;
|
|
15159
15201
|
|
|
15160
15202
|
// src/components/Tiles/Tile.tsx
|
|
15161
|
-
import { jsx as
|
|
15162
|
-
var Tile2 = ({ children, disabled, ...props }) => {
|
|
15163
|
-
return /* @__PURE__ */
|
|
15203
|
+
import { jsx as jsx75 } from "@emotion/react/jsx-runtime";
|
|
15204
|
+
var Tile2 = ({ children, disabled: disabled2, isSelected, ...props }) => {
|
|
15205
|
+
return /* @__PURE__ */ jsx75(
|
|
15206
|
+
"button",
|
|
15207
|
+
{
|
|
15208
|
+
type: "button",
|
|
15209
|
+
css: [Tile, isSelected ? TileIsSelected : void 0],
|
|
15210
|
+
disabled: disabled2,
|
|
15211
|
+
...props,
|
|
15212
|
+
children
|
|
15213
|
+
}
|
|
15214
|
+
);
|
|
15164
15215
|
};
|
|
15165
15216
|
|
|
15166
15217
|
// src/components/Tiles/styles/TileContainer.styles.ts
|
|
@@ -15183,7 +15234,7 @@ var TileContainerInner = (gap, templateColumns) => css61`
|
|
|
15183
15234
|
`;
|
|
15184
15235
|
|
|
15185
15236
|
// src/components/Tiles/TileContainer.tsx
|
|
15186
|
-
import { jsx as
|
|
15237
|
+
import { jsx as jsx76 } from "@emotion/react/jsx-runtime";
|
|
15187
15238
|
var TileContainer = ({
|
|
15188
15239
|
bgColor = "var(--brand-secondary-2)",
|
|
15189
15240
|
containerPadding = "base",
|
|
@@ -15192,7 +15243,7 @@ var TileContainer = ({
|
|
|
15192
15243
|
children,
|
|
15193
15244
|
...props
|
|
15194
15245
|
}) => {
|
|
15195
|
-
return /* @__PURE__ */
|
|
15246
|
+
return /* @__PURE__ */ jsx76("div", { css: TileContainerWrapper(bgColor, containerPadding), ...props, children: /* @__PURE__ */ jsx76("div", { css: TileContainerInner(gap, gridTemplateColumns), children }) });
|
|
15196
15247
|
};
|
|
15197
15248
|
|
|
15198
15249
|
// src/components/Tiles/styles/TileText.styles.ts
|
|
@@ -15207,10 +15258,10 @@ var TileText = css62`
|
|
|
15207
15258
|
`;
|
|
15208
15259
|
|
|
15209
15260
|
// src/components/Tiles/TileText.tsx
|
|
15210
|
-
import { jsx as
|
|
15261
|
+
import { jsx as jsx77 } from "@emotion/react/jsx-runtime";
|
|
15211
15262
|
var TileText2 = ({ as = "heading", children, ...props }) => {
|
|
15212
15263
|
const isHeading = as === "heading";
|
|
15213
|
-
return /* @__PURE__ */
|
|
15264
|
+
return /* @__PURE__ */ jsx77(
|
|
15214
15265
|
"span",
|
|
15215
15266
|
{
|
|
15216
15267
|
role: isHeading ? "heading" : void 0,
|
|
@@ -15239,6 +15290,7 @@ var IntegrationModalHeaderTitleGroup = css63`
|
|
|
15239
15290
|
align-items: center;
|
|
15240
15291
|
display: flex;
|
|
15241
15292
|
gap: var(--spacing-base);
|
|
15293
|
+
padding: 0 var(--spacing-base);
|
|
15242
15294
|
`;
|
|
15243
15295
|
var IntegrationModalHeaderTitle = css63`
|
|
15244
15296
|
margin-top: 0;
|
|
@@ -15247,12 +15299,18 @@ var IntegrationModalHeaderMenuPlacement = css63`
|
|
|
15247
15299
|
margin-bottom: var(--spacing-base);
|
|
15248
15300
|
`;
|
|
15249
15301
|
var IntegrationModalHeaderContentWrapper = css63`
|
|
15302
|
+
background: var(--white);
|
|
15303
|
+
display: flex;
|
|
15304
|
+
padding: var(--spacing-base);
|
|
15305
|
+
flex-direction: column;
|
|
15306
|
+
gap: var(--spacing-base);
|
|
15307
|
+
height: 100%;
|
|
15250
15308
|
position: relative;
|
|
15251
15309
|
z-index: var(--z-10);
|
|
15252
15310
|
`;
|
|
15253
15311
|
|
|
15254
15312
|
// src/components/IntegrationModalHeader/IntegrationModalHeader.tsx
|
|
15255
|
-
import { Fragment as
|
|
15313
|
+
import { Fragment as Fragment12, jsx as jsx78, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
15256
15314
|
var HexModalBackground = ({ ...props }) => {
|
|
15257
15315
|
return /* @__PURE__ */ jsxs49(
|
|
15258
15316
|
"svg",
|
|
@@ -15264,7 +15322,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
15264
15322
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15265
15323
|
...props,
|
|
15266
15324
|
children: [
|
|
15267
|
-
/* @__PURE__ */
|
|
15325
|
+
/* @__PURE__ */ jsx78(
|
|
15268
15326
|
"path",
|
|
15269
15327
|
{
|
|
15270
15328
|
fillRule: "evenodd",
|
|
@@ -15273,7 +15331,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
15273
15331
|
fill: "url(#paint0_linear_196_2737)"
|
|
15274
15332
|
}
|
|
15275
15333
|
),
|
|
15276
|
-
/* @__PURE__ */
|
|
15334
|
+
/* @__PURE__ */ jsx78("defs", { children: /* @__PURE__ */ jsxs49(
|
|
15277
15335
|
"linearGradient",
|
|
15278
15336
|
{
|
|
15279
15337
|
id: "paint0_linear_196_2737",
|
|
@@ -15283,8 +15341,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
15283
15341
|
y2: "-95.2742",
|
|
15284
15342
|
gradientUnits: "userSpaceOnUse",
|
|
15285
15343
|
children: [
|
|
15286
|
-
/* @__PURE__ */
|
|
15287
|
-
/* @__PURE__ */
|
|
15344
|
+
/* @__PURE__ */ jsx78("stop", { stopColor: "#81DCDE" }),
|
|
15345
|
+
/* @__PURE__ */ jsx78("stop", { offset: "1", stopColor: "#428ED4" })
|
|
15288
15346
|
]
|
|
15289
15347
|
}
|
|
15290
15348
|
) })
|
|
@@ -15292,24 +15350,24 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
15292
15350
|
}
|
|
15293
15351
|
);
|
|
15294
15352
|
};
|
|
15295
|
-
var IntegrationModalHeader = ({ icon, name, menu
|
|
15296
|
-
return /* @__PURE__ */ jsxs49(
|
|
15297
|
-
/* @__PURE__ */
|
|
15298
|
-
/* @__PURE__ */
|
|
15299
|
-
icon ? /* @__PURE__ */
|
|
15300
|
-
/* @__PURE__ */
|
|
15301
|
-
|
|
15302
|
-
|
|
15353
|
+
var IntegrationModalHeader = ({ icon, name, menu, children }) => {
|
|
15354
|
+
return /* @__PURE__ */ jsxs49(Fragment12, { children: [
|
|
15355
|
+
/* @__PURE__ */ jsx78(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
15356
|
+
/* @__PURE__ */ jsx78("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs49("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
15357
|
+
icon ? /* @__PURE__ */ jsx78(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
15358
|
+
/* @__PURE__ */ jsx78(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-testid": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
15359
|
+
menu ? /* @__PURE__ */ jsxs49("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
15360
|
+
menu,
|
|
15303
15361
|
" "
|
|
15304
15362
|
] }) : null
|
|
15305
15363
|
] }) }),
|
|
15306
|
-
/* @__PURE__ */
|
|
15364
|
+
/* @__PURE__ */ jsx78("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
15307
15365
|
] });
|
|
15308
15366
|
};
|
|
15309
15367
|
|
|
15310
15368
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
15311
15369
|
import MonacoEditor from "@monaco-editor/react";
|
|
15312
|
-
import { jsx as
|
|
15370
|
+
import { jsx as jsx79 } from "@emotion/react/jsx-runtime";
|
|
15313
15371
|
var minEditorHeightPx = 150;
|
|
15314
15372
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
15315
15373
|
let effectiveHeight = height;
|
|
@@ -15319,7 +15377,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
15319
15377
|
if (typeof effectiveHeight === "number" && effectiveHeight < minEditorHeightPx) {
|
|
15320
15378
|
effectiveHeight = minEditorHeightPx;
|
|
15321
15379
|
}
|
|
15322
|
-
return /* @__PURE__ */
|
|
15380
|
+
return /* @__PURE__ */ jsx79(
|
|
15323
15381
|
MonacoEditor,
|
|
15324
15382
|
{
|
|
15325
15383
|
height: effectiveHeight,
|
|
@@ -15388,7 +15446,7 @@ var LimitsBarTextColor = (statusColor) => css64`
|
|
|
15388
15446
|
`;
|
|
15389
15447
|
|
|
15390
15448
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
15391
|
-
import { jsx as
|
|
15449
|
+
import { jsx as jsx80, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
15392
15450
|
var LimitsBar = ({ current, max, label }) => {
|
|
15393
15451
|
const maxPercentage = 100;
|
|
15394
15452
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -15401,14 +15459,14 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
15401
15459
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
15402
15460
|
return /* @__PURE__ */ jsxs50("div", { css: LimitsBarContainer, children: [
|
|
15403
15461
|
/* @__PURE__ */ jsxs50("div", { css: LimitsBarLabelContainer, children: [
|
|
15404
|
-
/* @__PURE__ */
|
|
15462
|
+
/* @__PURE__ */ jsx80("span", { css: LimitsBarLabel, children: label }),
|
|
15405
15463
|
/* @__PURE__ */ jsxs50("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
15406
15464
|
current,
|
|
15407
15465
|
" of ",
|
|
15408
15466
|
max
|
|
15409
15467
|
] })
|
|
15410
15468
|
] }),
|
|
15411
|
-
/* @__PURE__ */
|
|
15469
|
+
/* @__PURE__ */ jsx80(
|
|
15412
15470
|
"div",
|
|
15413
15471
|
{
|
|
15414
15472
|
role: "progressbar",
|
|
@@ -15417,7 +15475,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
15417
15475
|
"aria-valuemax": max,
|
|
15418
15476
|
"aria-valuetext": `${current} of ${max}`,
|
|
15419
15477
|
css: LimitsBarProgressBar,
|
|
15420
|
-
children: /* @__PURE__ */
|
|
15478
|
+
children: /* @__PURE__ */ jsx80(
|
|
15421
15479
|
"span",
|
|
15422
15480
|
{
|
|
15423
15481
|
role: "presentation",
|
|
@@ -15449,10 +15507,10 @@ var LinkListTitle = css65`
|
|
|
15449
15507
|
`;
|
|
15450
15508
|
|
|
15451
15509
|
// src/components/LinkList/LinkList.tsx
|
|
15452
|
-
import { jsx as
|
|
15510
|
+
import { jsx as jsx81, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
15453
15511
|
var LinkList = ({ title: title2, padding = "var(--spacing-md)", children, ...props }) => {
|
|
15454
15512
|
return /* @__PURE__ */ jsxs51("div", { css: LinkListContainer(padding), ...props, children: [
|
|
15455
|
-
/* @__PURE__ */
|
|
15513
|
+
/* @__PURE__ */ jsx81(Heading, { level: 3, css: LinkListTitle, children: title2 }),
|
|
15456
15514
|
children
|
|
15457
15515
|
] });
|
|
15458
15516
|
};
|
|
@@ -15488,10 +15546,10 @@ var ScrollableListInner = css66`
|
|
|
15488
15546
|
`;
|
|
15489
15547
|
|
|
15490
15548
|
// src/components/List/ScrollableList.tsx
|
|
15491
|
-
import { jsx as
|
|
15549
|
+
import { jsx as jsx82, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
15492
15550
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
15493
15551
|
return /* @__PURE__ */ jsxs52("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
15494
|
-
label ? /* @__PURE__ */
|
|
15552
|
+
label ? /* @__PURE__ */ jsx82(
|
|
15495
15553
|
"span",
|
|
15496
15554
|
{
|
|
15497
15555
|
css: css67`
|
|
@@ -15500,7 +15558,7 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
15500
15558
|
children: label
|
|
15501
15559
|
}
|
|
15502
15560
|
) : null,
|
|
15503
|
-
/* @__PURE__ */
|
|
15561
|
+
/* @__PURE__ */ jsx82("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
15504
15562
|
] });
|
|
15505
15563
|
};
|
|
15506
15564
|
|
|
@@ -15572,23 +15630,23 @@ var ScrollableListIconVisible = css68`
|
|
|
15572
15630
|
`;
|
|
15573
15631
|
|
|
15574
15632
|
// src/components/List/ScrollableListInputItem.tsx
|
|
15575
|
-
import { jsx as
|
|
15633
|
+
import { jsx as jsx83, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
15576
15634
|
var ScrollableListInputItem = ({
|
|
15577
15635
|
label,
|
|
15578
15636
|
icon,
|
|
15579
|
-
active,
|
|
15637
|
+
active: active2,
|
|
15580
15638
|
disableShadow = false,
|
|
15581
15639
|
children,
|
|
15582
15640
|
labelTestId,
|
|
15583
15641
|
...props
|
|
15584
15642
|
}) => {
|
|
15585
|
-
return /* @__PURE__ */
|
|
15643
|
+
return /* @__PURE__ */ jsx83(
|
|
15586
15644
|
"div",
|
|
15587
15645
|
{
|
|
15588
15646
|
css: [
|
|
15589
15647
|
ScrollableListItemContainer,
|
|
15590
15648
|
disableShadow ? void 0 : ScrollableListItemShadow,
|
|
15591
|
-
|
|
15649
|
+
active2 ? ScrollableListItemActive : void 0
|
|
15592
15650
|
],
|
|
15593
15651
|
...props,
|
|
15594
15652
|
children: /* @__PURE__ */ jsxs53("label", { "data-testid": labelTestId, css: ScrollableListInputLabel, children: [
|
|
@@ -15596,16 +15654,16 @@ var ScrollableListInputItem = ({
|
|
|
15596
15654
|
icon,
|
|
15597
15655
|
label
|
|
15598
15656
|
] }),
|
|
15599
|
-
/* @__PURE__ */
|
|
15600
|
-
/* @__PURE__ */
|
|
15657
|
+
/* @__PURE__ */ jsx83("div", { css: ScrollableListHiddenInput, children }),
|
|
15658
|
+
/* @__PURE__ */ jsx83(
|
|
15601
15659
|
Icon,
|
|
15602
15660
|
{
|
|
15603
15661
|
icon: CgCheck2,
|
|
15604
15662
|
iconColor: "currentColor",
|
|
15605
|
-
css: [ScrollableListIcon,
|
|
15663
|
+
css: [ScrollableListIcon, active2 ? ScrollableListIconVisible : void 0],
|
|
15606
15664
|
size: 24,
|
|
15607
15665
|
"data-testid": "check-mark",
|
|
15608
|
-
"data-test-active":
|
|
15666
|
+
"data-test-active": active2
|
|
15609
15667
|
}
|
|
15610
15668
|
)
|
|
15611
15669
|
] })
|
|
@@ -15615,33 +15673,33 @@ var ScrollableListInputItem = ({
|
|
|
15615
15673
|
|
|
15616
15674
|
// src/components/List/ScrollableListItem.tsx
|
|
15617
15675
|
import { CgCheck as CgCheck3 } from "@react-icons/all-files/cg/CgCheck";
|
|
15618
|
-
import { jsx as
|
|
15676
|
+
import { jsx as jsx84, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
15619
15677
|
var ScrollableListItem = ({
|
|
15620
15678
|
buttonText,
|
|
15621
15679
|
icon,
|
|
15622
|
-
active,
|
|
15680
|
+
active: active2,
|
|
15623
15681
|
disableShadow,
|
|
15624
15682
|
...props
|
|
15625
15683
|
}) => {
|
|
15626
|
-
return /* @__PURE__ */
|
|
15684
|
+
return /* @__PURE__ */ jsx84(
|
|
15627
15685
|
"div",
|
|
15628
15686
|
{
|
|
15629
15687
|
css: [
|
|
15630
15688
|
ScrollableListItemContainer,
|
|
15631
15689
|
disableShadow ? void 0 : ScrollableListItemShadow,
|
|
15632
|
-
|
|
15690
|
+
active2 ? ScrollableListItemActive : void 0
|
|
15633
15691
|
],
|
|
15634
15692
|
children: /* @__PURE__ */ jsxs54("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
15635
15693
|
/* @__PURE__ */ jsxs54(HorizontalRhythm, { gap: "xs", align: "center", children: [
|
|
15636
15694
|
icon,
|
|
15637
|
-
/* @__PURE__ */
|
|
15695
|
+
/* @__PURE__ */ jsx84("span", { children: buttonText })
|
|
15638
15696
|
] }),
|
|
15639
|
-
/* @__PURE__ */
|
|
15697
|
+
/* @__PURE__ */ jsx84(
|
|
15640
15698
|
Icon,
|
|
15641
15699
|
{
|
|
15642
15700
|
icon: CgCheck3,
|
|
15643
15701
|
iconColor: "currentColor",
|
|
15644
|
-
css: [ScrollableListIcon,
|
|
15702
|
+
css: [ScrollableListIcon, active2 ? ScrollableListIconVisible : void 0],
|
|
15645
15703
|
size: 24
|
|
15646
15704
|
}
|
|
15647
15705
|
)
|
|
@@ -15703,16 +15761,16 @@ function loadingDot(size) {
|
|
|
15703
15761
|
}
|
|
15704
15762
|
|
|
15705
15763
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
15706
|
-
import { jsx as
|
|
15764
|
+
import { jsx as jsx85, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
15707
15765
|
var LoadingIndicator = ({
|
|
15708
15766
|
size = "lg",
|
|
15709
15767
|
...props
|
|
15710
15768
|
}) => {
|
|
15711
15769
|
const dotStyle = loadingDot(size);
|
|
15712
15770
|
return /* @__PURE__ */ jsxs55("div", { role: "alert", css: loader, "data-testid": "loading-indicator", ...props, children: [
|
|
15713
|
-
/* @__PURE__ */
|
|
15714
|
-
/* @__PURE__ */
|
|
15715
|
-
/* @__PURE__ */
|
|
15771
|
+
/* @__PURE__ */ jsx85("span", { css: dotStyle }),
|
|
15772
|
+
/* @__PURE__ */ jsx85("span", { css: dotStyle }),
|
|
15773
|
+
/* @__PURE__ */ jsx85("span", { css: dotStyle })
|
|
15716
15774
|
] });
|
|
15717
15775
|
};
|
|
15718
15776
|
|
|
@@ -15752,7 +15810,7 @@ var loadingOverlayMessage = css70`
|
|
|
15752
15810
|
`;
|
|
15753
15811
|
|
|
15754
15812
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
15755
|
-
import { jsx as
|
|
15813
|
+
import { jsx as jsx86, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
15756
15814
|
var LoadingOverlay = ({
|
|
15757
15815
|
isActive,
|
|
15758
15816
|
statusMessage,
|
|
@@ -15786,9 +15844,9 @@ var LoadingOverlay = ({
|
|
|
15786
15844
|
"aria-hidden": !isActive,
|
|
15787
15845
|
"aria-busy": isActive && !isPaused,
|
|
15788
15846
|
children: [
|
|
15789
|
-
/* @__PURE__ */
|
|
15790
|
-
/* @__PURE__ */
|
|
15791
|
-
/* @__PURE__ */
|
|
15847
|
+
/* @__PURE__ */ jsx86("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
15848
|
+
/* @__PURE__ */ jsx86("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ jsxs56("div", { css: loadingOverlayBody, children: [
|
|
15849
|
+
/* @__PURE__ */ jsx86(
|
|
15792
15850
|
AnimationFile,
|
|
15793
15851
|
{
|
|
15794
15852
|
lottieRef,
|
|
@@ -15803,15 +15861,15 @@ var LoadingOverlay = ({
|
|
|
15803
15861
|
}
|
|
15804
15862
|
}
|
|
15805
15863
|
),
|
|
15806
|
-
statusMessage ? /* @__PURE__ */
|
|
15807
|
-
/* @__PURE__ */
|
|
15864
|
+
statusMessage ? /* @__PURE__ */ jsx86("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
|
|
15865
|
+
/* @__PURE__ */ jsx86("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
|
|
15808
15866
|
] }) })
|
|
15809
15867
|
]
|
|
15810
15868
|
}
|
|
15811
15869
|
);
|
|
15812
15870
|
};
|
|
15813
15871
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
15814
|
-
return /* @__PURE__ */
|
|
15872
|
+
return /* @__PURE__ */ jsx86(
|
|
15815
15873
|
"svg",
|
|
15816
15874
|
{
|
|
15817
15875
|
viewBox: "0 0 38 38",
|
|
@@ -15821,9 +15879,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
15821
15879
|
stroke: "currentColor",
|
|
15822
15880
|
...props,
|
|
15823
15881
|
"data-testid": "loading-icon",
|
|
15824
|
-
children: /* @__PURE__ */
|
|
15825
|
-
/* @__PURE__ */
|
|
15826
|
-
/* @__PURE__ */
|
|
15882
|
+
children: /* @__PURE__ */ jsx86("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs56("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
15883
|
+
/* @__PURE__ */ jsx86("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
15884
|
+
/* @__PURE__ */ jsx86("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ jsx86(
|
|
15827
15885
|
"animateTransform",
|
|
15828
15886
|
{
|
|
15829
15887
|
attributeName: "transform",
|
|
@@ -15879,7 +15937,7 @@ var Popover = css71`
|
|
|
15879
15937
|
`;
|
|
15880
15938
|
|
|
15881
15939
|
// src/components/Popover/Popover.tsx
|
|
15882
|
-
import { Fragment as
|
|
15940
|
+
import { Fragment as Fragment13, jsx as jsx87, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
|
|
15883
15941
|
var Popover2 = ({
|
|
15884
15942
|
iconColor = "action",
|
|
15885
15943
|
icon = "info",
|
|
@@ -15893,27 +15951,28 @@ var Popover2 = ({
|
|
|
15893
15951
|
...otherProps
|
|
15894
15952
|
}) => {
|
|
15895
15953
|
const popover = usePopoverState({ placement });
|
|
15896
|
-
return /* @__PURE__ */ jsxs57(
|
|
15897
|
-
/* @__PURE__ */
|
|
15954
|
+
return /* @__PURE__ */ jsxs57(Fragment13, { children: [
|
|
15955
|
+
/* @__PURE__ */ jsx87(
|
|
15898
15956
|
PopoverDisclosure,
|
|
15899
15957
|
{
|
|
15900
15958
|
...popover,
|
|
15901
15959
|
css: [PopoverBtn, trigger ? void 0 : PopoverDefaulterTriggerBtn],
|
|
15902
15960
|
title: buttonText,
|
|
15903
15961
|
"data-testid": testId,
|
|
15904
|
-
children: trigger ? trigger : /* @__PURE__ */ jsxs57(
|
|
15905
|
-
/* @__PURE__ */
|
|
15906
|
-
/* @__PURE__ */
|
|
15962
|
+
children: trigger ? trigger : /* @__PURE__ */ jsxs57(Fragment13, { children: [
|
|
15963
|
+
/* @__PURE__ */ jsx87(Icon, { icon, iconColor, size: iconSize }),
|
|
15964
|
+
/* @__PURE__ */ jsx87("span", { hidden: true, children: buttonText })
|
|
15907
15965
|
] })
|
|
15908
15966
|
}
|
|
15909
15967
|
),
|
|
15910
|
-
/* @__PURE__ */
|
|
15968
|
+
/* @__PURE__ */ jsx87(ReakitPopover, { css: Popover, ...otherProps, ...popover, role: "tooltip", "aria-label": ariaLabel, children })
|
|
15911
15969
|
] });
|
|
15912
15970
|
};
|
|
15913
15971
|
|
|
15914
15972
|
// src/components/MediaCard/MediaCard.styles.ts
|
|
15915
15973
|
import { css as css72 } from "@emotion/react";
|
|
15916
15974
|
var cardBase = css72`
|
|
15975
|
+
--mediacard-title-color: var(--gray-500);
|
|
15917
15976
|
display: flex;
|
|
15918
15977
|
flex-direction: column;
|
|
15919
15978
|
justify-content: flex-start;
|
|
@@ -15923,6 +15982,10 @@ var cardBase = css72`
|
|
|
15923
15982
|
min-height: unset;
|
|
15924
15983
|
outline: none;
|
|
15925
15984
|
cursor: pointer;
|
|
15985
|
+
|
|
15986
|
+
&:hover {
|
|
15987
|
+
--mediacard-title-color: var(--brand-secondary-1);
|
|
15988
|
+
}
|
|
15926
15989
|
`;
|
|
15927
15990
|
var coverWrapper = css72`
|
|
15928
15991
|
position: relative;
|
|
@@ -15942,13 +16005,14 @@ var contentWrapper = css72`
|
|
|
15942
16005
|
`;
|
|
15943
16006
|
var title = css72`
|
|
15944
16007
|
font-size: var(--fs-sm);
|
|
15945
|
-
color: var(--
|
|
16008
|
+
color: var(--mediacard-title-color);
|
|
15946
16009
|
white-space: nowrap;
|
|
15947
16010
|
overflow: hidden;
|
|
15948
16011
|
text-overflow: ellipsis;
|
|
15949
16012
|
outline: none;
|
|
15950
16013
|
border: 0;
|
|
15951
16014
|
background-color: transparent;
|
|
16015
|
+
transition: color var(--duration-fast) var(--timing-ease-out);
|
|
15952
16016
|
|
|
15953
16017
|
&:focus-visible {
|
|
15954
16018
|
outline: 2px solid var(--primary-action-default);
|
|
@@ -15982,7 +16046,7 @@ var menuButton = css72`
|
|
|
15982
16046
|
`;
|
|
15983
16047
|
|
|
15984
16048
|
// src/components/MediaCard/MediaCard.tsx
|
|
15985
|
-
import { jsx as
|
|
16049
|
+
import { jsx as jsx88, jsxs as jsxs58 } from "@emotion/react/jsx-runtime";
|
|
15986
16050
|
var MediaCard = ({
|
|
15987
16051
|
title: title2,
|
|
15988
16052
|
subtitle: subtitle2,
|
|
@@ -15998,12 +16062,12 @@ var MediaCard = ({
|
|
|
15998
16062
|
}, []);
|
|
15999
16063
|
const hasMenuItems = Array.isArray(menuItems) ? menuItems.length > 0 : Boolean(menuItems);
|
|
16000
16064
|
return /* @__PURE__ */ jsxs58(Card, { css: cardBase, ...cardProps, onClick, children: [
|
|
16001
|
-
/* @__PURE__ */
|
|
16002
|
-
/* @__PURE__ */
|
|
16065
|
+
/* @__PURE__ */ jsx88("button", { tabIndex: -1, css: coverWrapper, children: cover }),
|
|
16066
|
+
/* @__PURE__ */ jsx88("div", { css: contentWrapper, children: /* @__PURE__ */ jsxs58(HorizontalRhythm, { gap: "sm", justify: "space-between", align: "center", css: { width: "100%" }, children: [
|
|
16003
16067
|
/* @__PURE__ */ jsxs58(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1, minWidth: 0 }, children: [
|
|
16004
16068
|
/* @__PURE__ */ jsxs58(HorizontalRhythm, { gap: "xs", align: "center", css: { maxWidth: "100%" }, children: [
|
|
16005
|
-
/* @__PURE__ */
|
|
16006
|
-
!infoPopover ? null : /* @__PURE__ */
|
|
16069
|
+
/* @__PURE__ */ jsx88("button", { css: title, "data-testid": "card-title", children: title2 }),
|
|
16070
|
+
!infoPopover ? null : /* @__PURE__ */ jsx88("div", { css: { display: "flex", cursor: "default" }, onClick: onStopPropogation, children: /* @__PURE__ */ jsx88(
|
|
16007
16071
|
Popover2,
|
|
16008
16072
|
{
|
|
16009
16073
|
baseId: `info-of-${title2}`,
|
|
@@ -16012,24 +16076,24 @@ var MediaCard = ({
|
|
|
16012
16076
|
iconColor: "default",
|
|
16013
16077
|
tabIndex: 0,
|
|
16014
16078
|
css: { display: "block" },
|
|
16015
|
-
children: /* @__PURE__ */
|
|
16079
|
+
children: /* @__PURE__ */ jsx88("div", { children: infoPopover })
|
|
16016
16080
|
}
|
|
16017
16081
|
) })
|
|
16018
16082
|
] }),
|
|
16019
|
-
subtitle2 ? /* @__PURE__ */
|
|
16083
|
+
subtitle2 ? /* @__PURE__ */ jsx88("button", { tabIndex: -1, css: subtitle, children: subtitle2 }) : null
|
|
16020
16084
|
] }),
|
|
16021
|
-
sideSection2 ? /* @__PURE__ */
|
|
16022
|
-
hasMenuItems ? /* @__PURE__ */
|
|
16085
|
+
sideSection2 ? /* @__PURE__ */ jsx88("div", { css: sideSection, onClick: onStopPropogation, children: sideSection2 }) : null,
|
|
16086
|
+
hasMenuItems ? /* @__PURE__ */ jsx88(
|
|
16023
16087
|
VerticalRhythm,
|
|
16024
16088
|
{
|
|
16025
16089
|
css: menuSection,
|
|
16026
16090
|
align: "center",
|
|
16027
16091
|
justify: "center",
|
|
16028
16092
|
onClick: onStopPropogation,
|
|
16029
|
-
children: /* @__PURE__ */
|
|
16093
|
+
children: /* @__PURE__ */ jsx88(
|
|
16030
16094
|
Menu,
|
|
16031
16095
|
{
|
|
16032
|
-
menuTrigger: /* @__PURE__ */
|
|
16096
|
+
menuTrigger: /* @__PURE__ */ jsx88("button", { type: "button", "aria-label": "More options", css: menuButton, children: /* @__PURE__ */ jsx88(Icon, { icon: "more-alt", iconColor: "gray", size: 16 }) }),
|
|
16033
16097
|
menuLabel: `Menu of ${title2}`,
|
|
16034
16098
|
children: menuItems
|
|
16035
16099
|
}
|
|
@@ -16090,6 +16154,7 @@ var modalCloseButtonStyles = css73`
|
|
|
16090
16154
|
margin-left: auto;
|
|
16091
16155
|
`;
|
|
16092
16156
|
var modalContentStyles = css73`
|
|
16157
|
+
position: relative;
|
|
16093
16158
|
flex: 1;
|
|
16094
16159
|
background-color: white;
|
|
16095
16160
|
padding: var(--spacing-md);
|
|
@@ -16098,7 +16163,7 @@ var modalContentStyles = css73`
|
|
|
16098
16163
|
`;
|
|
16099
16164
|
|
|
16100
16165
|
// src/components/Modal/Modal.tsx
|
|
16101
|
-
import { jsx as
|
|
16166
|
+
import { jsx as jsx89, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
|
|
16102
16167
|
var defaultModalWidth = "75rem";
|
|
16103
16168
|
var defaultModalHeight = "51rem";
|
|
16104
16169
|
var Modal = React19.forwardRef(
|
|
@@ -16118,34 +16183,114 @@ var Modal = React19.forwardRef(
|
|
|
16118
16183
|
shortcut: "escape"
|
|
16119
16184
|
});
|
|
16120
16185
|
return /* @__PURE__ */ jsxs59("div", { css: [modalWrapperStyles, wrapperClassName], children: [
|
|
16121
|
-
/* @__PURE__ */
|
|
16122
|
-
/* @__PURE__ */ jsxs59(
|
|
16123
|
-
|
|
16124
|
-
|
|
16125
|
-
|
|
16126
|
-
|
|
16127
|
-
|
|
16128
|
-
|
|
16129
|
-
|
|
16130
|
-
|
|
16131
|
-
|
|
16132
|
-
|
|
16133
|
-
|
|
16134
|
-
|
|
16135
|
-
|
|
16136
|
-
|
|
16137
|
-
|
|
16138
|
-
|
|
16139
|
-
|
|
16140
|
-
|
|
16186
|
+
/* @__PURE__ */ jsx89("div", { onClick: onRequestClose, css: modalBackdropStyles }),
|
|
16187
|
+
/* @__PURE__ */ jsxs59(
|
|
16188
|
+
"dialog",
|
|
16189
|
+
{
|
|
16190
|
+
ref,
|
|
16191
|
+
css: modalStyles,
|
|
16192
|
+
style: { width, height },
|
|
16193
|
+
"data-testid": "side-dialog",
|
|
16194
|
+
...modalProps,
|
|
16195
|
+
children: [
|
|
16196
|
+
/* @__PURE__ */ jsxs59("div", { css: modalHeaderStyles, children: [
|
|
16197
|
+
/* @__PURE__ */ jsx89("div", { children: header }),
|
|
16198
|
+
/* @__PURE__ */ jsx89(
|
|
16199
|
+
Button,
|
|
16200
|
+
{
|
|
16201
|
+
type: "button",
|
|
16202
|
+
onClick: onRequestClose,
|
|
16203
|
+
css: modalCloseButtonStyles,
|
|
16204
|
+
title: "Close dialog",
|
|
16205
|
+
buttonType: "ghost",
|
|
16206
|
+
"data-testid": "close-dialog",
|
|
16207
|
+
children: /* @__PURE__ */ jsx89(Icon, { icon: CgClose5, iconColor: "gray", size: 24 })
|
|
16208
|
+
}
|
|
16209
|
+
)
|
|
16210
|
+
] }),
|
|
16211
|
+
/* @__PURE__ */ jsx89("div", { css: [modalContentStyles, !withoutContentPadding ? null : { padding: 0 }], children }),
|
|
16212
|
+
buttonGroup ? /* @__PURE__ */ jsx89(HorizontalRhythm, { children: buttonGroup }) : null
|
|
16213
|
+
]
|
|
16214
|
+
}
|
|
16215
|
+
)
|
|
16141
16216
|
] });
|
|
16142
16217
|
}
|
|
16143
16218
|
);
|
|
16144
16219
|
Modal.displayName = "Modal";
|
|
16145
16220
|
|
|
16221
|
+
// src/components/Pagination/Pagination.tsx
|
|
16222
|
+
import Paginate from "react-paginate";
|
|
16223
|
+
|
|
16224
|
+
// src/components/Pagination/Pagniation.styles.ts
|
|
16225
|
+
import { css as css74 } from "@emotion/css";
|
|
16226
|
+
var container = css74`
|
|
16227
|
+
align-items: center;
|
|
16228
|
+
display: flex;
|
|
16229
|
+
`;
|
|
16230
|
+
var disabled = css74`
|
|
16231
|
+
opacity: var(--opacity-50);
|
|
16232
|
+
`;
|
|
16233
|
+
var disabledLink = css74`
|
|
16234
|
+
cursor: pointer-default;
|
|
16235
|
+
`;
|
|
16236
|
+
var pageLink = css74`
|
|
16237
|
+
display: block;
|
|
16238
|
+
padding: var(--spacing-sm) var(--spacing-base);
|
|
16239
|
+
`;
|
|
16240
|
+
var prevNextControls = css74`
|
|
16241
|
+
padding: var(--spacing-sm) var(--spacing-base);
|
|
16242
|
+
`;
|
|
16243
|
+
var active = css74`
|
|
16244
|
+
border-radius: var(--rounded-base);
|
|
16245
|
+
background: var(--gray-200);
|
|
16246
|
+
`;
|
|
16247
|
+
var page = css74`
|
|
16248
|
+
margin-left: var(--spacing-xs);
|
|
16249
|
+
margin-right: var(--spacing-xs);
|
|
16250
|
+
`;
|
|
16251
|
+
|
|
16252
|
+
// src/components/Pagination/Pagination.tsx
|
|
16253
|
+
import { jsx as jsx90 } from "@emotion/react/jsx-runtime";
|
|
16254
|
+
function Pagination({
|
|
16255
|
+
limit,
|
|
16256
|
+
offset,
|
|
16257
|
+
total,
|
|
16258
|
+
onPageChange
|
|
16259
|
+
}) {
|
|
16260
|
+
if (limit < 1) {
|
|
16261
|
+
return null;
|
|
16262
|
+
}
|
|
16263
|
+
const pageCount = Math.ceil(total / limit);
|
|
16264
|
+
const currentPage = Math.ceil(offset / limit);
|
|
16265
|
+
if (pageCount <= 1) {
|
|
16266
|
+
return null;
|
|
16267
|
+
}
|
|
16268
|
+
return /* @__PURE__ */ jsx90(
|
|
16269
|
+
Paginate,
|
|
16270
|
+
{
|
|
16271
|
+
forcePage: currentPage,
|
|
16272
|
+
previousLabel: /* @__PURE__ */ jsx90("div", { className: prevNextControls, children: "<" }),
|
|
16273
|
+
nextLabel: /* @__PURE__ */ jsx90("div", { className: prevNextControls, children: ">" }),
|
|
16274
|
+
breakLabel: "...",
|
|
16275
|
+
pageCount,
|
|
16276
|
+
marginPagesDisplayed: 2,
|
|
16277
|
+
pageRangeDisplayed: 5,
|
|
16278
|
+
onPageChange: ({ selected }) => {
|
|
16279
|
+
onPageChange(limit, selected * limit);
|
|
16280
|
+
},
|
|
16281
|
+
containerClassName: container,
|
|
16282
|
+
disabledClassName: disabled,
|
|
16283
|
+
disabledLinkClassName: disabledLink,
|
|
16284
|
+
pageLinkClassName: pageLink,
|
|
16285
|
+
activeClassName: active,
|
|
16286
|
+
pageClassName: page
|
|
16287
|
+
}
|
|
16288
|
+
);
|
|
16289
|
+
}
|
|
16290
|
+
|
|
16146
16291
|
// src/components/ParameterInputs/hooks/ParameterShellContext.tsx
|
|
16147
|
-
import { createContext as
|
|
16148
|
-
var ParameterShellContext =
|
|
16292
|
+
import { createContext as createContext4, useContext as useContext5 } from "react";
|
|
16293
|
+
var ParameterShellContext = createContext4({
|
|
16149
16294
|
id: "",
|
|
16150
16295
|
label: "",
|
|
16151
16296
|
hiddenLabel: void 0,
|
|
@@ -16154,7 +16299,7 @@ var ParameterShellContext = createContext5({
|
|
|
16154
16299
|
}
|
|
16155
16300
|
});
|
|
16156
16301
|
var useParameterShell = () => {
|
|
16157
|
-
const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } =
|
|
16302
|
+
const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } = useContext5(ParameterShellContext);
|
|
16158
16303
|
return {
|
|
16159
16304
|
id,
|
|
16160
16305
|
label,
|
|
@@ -16165,8 +16310,8 @@ var useParameterShell = () => {
|
|
|
16165
16310
|
};
|
|
16166
16311
|
|
|
16167
16312
|
// src/components/ParameterInputs/styles/LabelLeadingIcon.styles.ts
|
|
16168
|
-
import { css as
|
|
16169
|
-
var inputIconBtn =
|
|
16313
|
+
import { css as css75 } from "@emotion/react";
|
|
16314
|
+
var inputIconBtn = css75`
|
|
16170
16315
|
align-items: center;
|
|
16171
16316
|
border: none;
|
|
16172
16317
|
border-radius: var(--rounded-base);
|
|
@@ -16192,7 +16337,7 @@ var inputIconBtn = css74`
|
|
|
16192
16337
|
`;
|
|
16193
16338
|
|
|
16194
16339
|
// src/components/ParameterInputs/LabelLeadingIcon.tsx
|
|
16195
|
-
import { jsx as
|
|
16340
|
+
import { jsx as jsx91, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
|
|
16196
16341
|
var LabelLeadingIcon = ({
|
|
16197
16342
|
icon,
|
|
16198
16343
|
iconColor,
|
|
@@ -16204,7 +16349,7 @@ var LabelLeadingIcon = ({
|
|
|
16204
16349
|
...props
|
|
16205
16350
|
}) => {
|
|
16206
16351
|
const titleFr = title2 != null ? title2 : isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
16207
|
-
return /* @__PURE__ */
|
|
16352
|
+
return /* @__PURE__ */ jsx91(Tooltip, { title: titleFr, children: /* @__PURE__ */ jsxs60(
|
|
16208
16353
|
"button",
|
|
16209
16354
|
{
|
|
16210
16355
|
css: inputIconBtn,
|
|
@@ -16213,7 +16358,7 @@ var LabelLeadingIcon = ({
|
|
|
16213
16358
|
"aria-disabled": isLocked,
|
|
16214
16359
|
...props,
|
|
16215
16360
|
children: [
|
|
16216
|
-
/* @__PURE__ */
|
|
16361
|
+
/* @__PURE__ */ jsx91(
|
|
16217
16362
|
Icon,
|
|
16218
16363
|
{
|
|
16219
16364
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -16229,8 +16374,8 @@ var LabelLeadingIcon = ({
|
|
|
16229
16374
|
var ConnectToDataElementButton = LabelLeadingIcon;
|
|
16230
16375
|
|
|
16231
16376
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
16232
|
-
import { css as
|
|
16233
|
-
var inputContainer2 =
|
|
16377
|
+
import { css as css76 } from "@emotion/react";
|
|
16378
|
+
var inputContainer2 = css76`
|
|
16234
16379
|
position: relative;
|
|
16235
16380
|
scroll-margin: var(--spacing-2xl);
|
|
16236
16381
|
|
|
@@ -16243,14 +16388,14 @@ var inputContainer2 = css75`
|
|
|
16243
16388
|
}
|
|
16244
16389
|
}
|
|
16245
16390
|
`;
|
|
16246
|
-
var labelText2 =
|
|
16391
|
+
var labelText2 = css76`
|
|
16247
16392
|
align-items: center;
|
|
16248
16393
|
display: flex;
|
|
16249
16394
|
gap: var(--spacing-xs);
|
|
16250
16395
|
font-weight: var(--fw-regular);
|
|
16251
16396
|
margin: 0 0 var(--spacing-xs);
|
|
16252
16397
|
`;
|
|
16253
|
-
var input2 =
|
|
16398
|
+
var input2 = css76`
|
|
16254
16399
|
display: block;
|
|
16255
16400
|
appearance: none;
|
|
16256
16401
|
box-sizing: border-box;
|
|
@@ -16294,18 +16439,18 @@ var input2 = css75`
|
|
|
16294
16439
|
color: var(--gray-400);
|
|
16295
16440
|
}
|
|
16296
16441
|
`;
|
|
16297
|
-
var selectInput =
|
|
16442
|
+
var selectInput = css76`
|
|
16298
16443
|
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");
|
|
16299
16444
|
background-position: right var(--spacing-sm) center;
|
|
16300
16445
|
background-repeat: no-repeat;
|
|
16301
16446
|
background-size: 1rem;
|
|
16302
16447
|
padding-right: var(--spacing-xl);
|
|
16303
16448
|
`;
|
|
16304
|
-
var inputWrapper =
|
|
16449
|
+
var inputWrapper = css76`
|
|
16305
16450
|
display: flex; // used to correct overflow with chrome textarea
|
|
16306
16451
|
position: relative;
|
|
16307
16452
|
`;
|
|
16308
|
-
var inputIcon2 =
|
|
16453
|
+
var inputIcon2 = css76`
|
|
16309
16454
|
align-items: center;
|
|
16310
16455
|
background: var(--white);
|
|
16311
16456
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -16321,7 +16466,7 @@ var inputIcon2 = css75`
|
|
|
16321
16466
|
width: var(--spacing-lg);
|
|
16322
16467
|
z-index: var(--z-10);
|
|
16323
16468
|
`;
|
|
16324
|
-
var inputToggleLabel2 =
|
|
16469
|
+
var inputToggleLabel2 = css76`
|
|
16325
16470
|
align-items: center;
|
|
16326
16471
|
background: var(--white);
|
|
16327
16472
|
cursor: pointer;
|
|
@@ -16332,7 +16477,7 @@ var inputToggleLabel2 = css75`
|
|
|
16332
16477
|
min-height: var(--spacing-md);
|
|
16333
16478
|
position: relative;
|
|
16334
16479
|
`;
|
|
16335
|
-
var toggleInput2 =
|
|
16480
|
+
var toggleInput2 = css76`
|
|
16336
16481
|
appearance: none;
|
|
16337
16482
|
border: 1px solid var(--gray-300);
|
|
16338
16483
|
background: var(--white);
|
|
@@ -16371,7 +16516,7 @@ var toggleInput2 = css75`
|
|
|
16371
16516
|
border-color: var(--gray-300);
|
|
16372
16517
|
}
|
|
16373
16518
|
`;
|
|
16374
|
-
var inlineLabel2 =
|
|
16519
|
+
var inlineLabel2 = css76`
|
|
16375
16520
|
padding-left: var(--spacing-lg);
|
|
16376
16521
|
font-size: var(--fs-sm);
|
|
16377
16522
|
font-weight: var(--fw-regular);
|
|
@@ -16387,7 +16532,7 @@ var inlineLabel2 = css75`
|
|
|
16387
16532
|
}
|
|
16388
16533
|
}
|
|
16389
16534
|
`;
|
|
16390
|
-
var inputMenu =
|
|
16535
|
+
var inputMenu = css76`
|
|
16391
16536
|
background: none;
|
|
16392
16537
|
border: none;
|
|
16393
16538
|
padding: var(--spacing-2xs);
|
|
@@ -16403,11 +16548,11 @@ var inputMenu = css75`
|
|
|
16403
16548
|
background-color: var(--gray-200);
|
|
16404
16549
|
}
|
|
16405
16550
|
`;
|
|
16406
|
-
var textarea2 =
|
|
16551
|
+
var textarea2 = css76`
|
|
16407
16552
|
resize: vertical;
|
|
16408
16553
|
min-height: 2rem;
|
|
16409
16554
|
`;
|
|
16410
|
-
var dataConnectButton =
|
|
16555
|
+
var dataConnectButton = css76`
|
|
16411
16556
|
align-items: center;
|
|
16412
16557
|
appearance: none;
|
|
16413
16558
|
box-sizing: border-box;
|
|
@@ -16442,7 +16587,7 @@ var dataConnectButton = css75`
|
|
|
16442
16587
|
pointer-events: none;
|
|
16443
16588
|
}
|
|
16444
16589
|
`;
|
|
16445
|
-
var linkParameterBtn =
|
|
16590
|
+
var linkParameterBtn = css76`
|
|
16446
16591
|
border-radius: var(--rounded-base);
|
|
16447
16592
|
background: var(--white);
|
|
16448
16593
|
border: none;
|
|
@@ -16451,7 +16596,7 @@ var linkParameterBtn = css75`
|
|
|
16451
16596
|
font-size: var(--fs-sm);
|
|
16452
16597
|
line-height: 1;
|
|
16453
16598
|
`;
|
|
16454
|
-
var linkParameterControls =
|
|
16599
|
+
var linkParameterControls = css76`
|
|
16455
16600
|
position: absolute;
|
|
16456
16601
|
inset: 0 0 0 auto;
|
|
16457
16602
|
padding: 0 var(--spacing-base);
|
|
@@ -16460,7 +16605,7 @@ var linkParameterControls = css75`
|
|
|
16460
16605
|
justify-content: center;
|
|
16461
16606
|
gap: var(--spacing-base);
|
|
16462
16607
|
`;
|
|
16463
|
-
var linkParameterInput = (withExternalLinkIcon) =>
|
|
16608
|
+
var linkParameterInput = (withExternalLinkIcon) => css76`
|
|
16464
16609
|
padding-right: calc(
|
|
16465
16610
|
${withExternalLinkIcon ? "calc(var(--spacing-lg) * 2 + var(--spacing-xs))" : "var(--spacing-xl)"} +
|
|
16466
16611
|
var(--spacing-base)
|
|
@@ -16473,7 +16618,7 @@ var linkParameterInput = (withExternalLinkIcon) => css75`
|
|
|
16473
16618
|
}
|
|
16474
16619
|
}
|
|
16475
16620
|
`;
|
|
16476
|
-
var linkParameterIcon =
|
|
16621
|
+
var linkParameterIcon = css76`
|
|
16477
16622
|
align-items: center;
|
|
16478
16623
|
color: var(--brand-secondary-3);
|
|
16479
16624
|
display: flex;
|
|
@@ -16488,14 +16633,14 @@ var linkParameterIcon = css75`
|
|
|
16488
16633
|
`;
|
|
16489
16634
|
|
|
16490
16635
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
16491
|
-
import { jsx as
|
|
16636
|
+
import { jsx as jsx92, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
|
|
16492
16637
|
function ParameterDataResource({
|
|
16493
16638
|
label,
|
|
16494
16639
|
labelLeadingIcon,
|
|
16495
16640
|
id,
|
|
16496
16641
|
onConnectDatasource,
|
|
16497
16642
|
caption,
|
|
16498
|
-
disabled,
|
|
16643
|
+
disabled: disabled2,
|
|
16499
16644
|
children
|
|
16500
16645
|
}) {
|
|
16501
16646
|
return /* @__PURE__ */ jsxs61("div", { "data-testid": "parameter-data-connect-button", children: [
|
|
@@ -16509,33 +16654,33 @@ function ParameterDataResource({
|
|
|
16509
16654
|
type: "button",
|
|
16510
16655
|
css: dataConnectButton,
|
|
16511
16656
|
"aria-controls": id,
|
|
16512
|
-
disabled,
|
|
16657
|
+
disabled: disabled2,
|
|
16513
16658
|
onClick: onConnectDatasource,
|
|
16514
16659
|
children: [
|
|
16515
|
-
/* @__PURE__ */
|
|
16660
|
+
/* @__PURE__ */ jsx92("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx92(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
16516
16661
|
children
|
|
16517
16662
|
]
|
|
16518
16663
|
}
|
|
16519
16664
|
),
|
|
16520
|
-
caption ? /* @__PURE__ */
|
|
16665
|
+
caption ? /* @__PURE__ */ jsx92(Caption, { children: caption }) : null
|
|
16521
16666
|
] });
|
|
16522
16667
|
}
|
|
16523
16668
|
|
|
16524
16669
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
16525
|
-
import { css as
|
|
16526
|
-
var ParameterDrawerHeaderContainer =
|
|
16670
|
+
import { css as css77 } from "@emotion/react";
|
|
16671
|
+
var ParameterDrawerHeaderContainer = css77`
|
|
16527
16672
|
align-items: center;
|
|
16528
16673
|
display: flex;
|
|
16529
16674
|
gap: var(--spacing-base);
|
|
16530
16675
|
justify-content: space-between;
|
|
16531
16676
|
margin-bottom: var(--spacing-sm);
|
|
16532
16677
|
`;
|
|
16533
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
16678
|
+
var ParameterDrawerHeaderTitleGroup = css77`
|
|
16534
16679
|
align-items: center;
|
|
16535
16680
|
display: flex;
|
|
16536
16681
|
gap: var(--spacing-sm);
|
|
16537
16682
|
`;
|
|
16538
|
-
var ParameterDrawerHeaderTitle =
|
|
16683
|
+
var ParameterDrawerHeaderTitle = css77`
|
|
16539
16684
|
text-overflow: ellipsis;
|
|
16540
16685
|
white-space: nowrap;
|
|
16541
16686
|
overflow: hidden;
|
|
@@ -16543,23 +16688,23 @@ var ParameterDrawerHeaderTitle = css76`
|
|
|
16543
16688
|
`;
|
|
16544
16689
|
|
|
16545
16690
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
16546
|
-
import { jsx as
|
|
16691
|
+
import { jsx as jsx93, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
|
|
16547
16692
|
var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
|
|
16548
16693
|
return /* @__PURE__ */ jsxs62("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
16549
16694
|
/* @__PURE__ */ jsxs62("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
16550
16695
|
iconBeforeTitle,
|
|
16551
|
-
/* @__PURE__ */
|
|
16696
|
+
/* @__PURE__ */ jsx93(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title: title2, children: title2 })
|
|
16552
16697
|
] }),
|
|
16553
16698
|
children
|
|
16554
16699
|
] });
|
|
16555
16700
|
};
|
|
16556
16701
|
|
|
16557
16702
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
16558
|
-
import { forwardRef as
|
|
16703
|
+
import { forwardRef as forwardRef11 } from "react";
|
|
16559
16704
|
|
|
16560
16705
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
16561
|
-
import { css as
|
|
16562
|
-
var fieldsetStyles =
|
|
16706
|
+
import { css as css78 } from "@emotion/react";
|
|
16707
|
+
var fieldsetStyles = css78`
|
|
16563
16708
|
&:disabled,
|
|
16564
16709
|
[readonly] {
|
|
16565
16710
|
pointer-events: none;
|
|
@@ -16570,7 +16715,7 @@ var fieldsetStyles = css77`
|
|
|
16570
16715
|
}
|
|
16571
16716
|
}
|
|
16572
16717
|
`;
|
|
16573
|
-
var fieldsetLegend2 =
|
|
16718
|
+
var fieldsetLegend2 = css78`
|
|
16574
16719
|
display: block;
|
|
16575
16720
|
font-weight: var(--fw-medium);
|
|
16576
16721
|
margin-bottom: var(--spacing-sm);
|
|
@@ -16578,33 +16723,33 @@ var fieldsetLegend2 = css77`
|
|
|
16578
16723
|
`;
|
|
16579
16724
|
|
|
16580
16725
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
16581
|
-
import { jsx as
|
|
16582
|
-
var ParameterGroup =
|
|
16726
|
+
import { jsx as jsx94, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
|
|
16727
|
+
var ParameterGroup = forwardRef11(
|
|
16583
16728
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
16584
16729
|
return /* @__PURE__ */ jsxs63("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
16585
|
-
/* @__PURE__ */
|
|
16730
|
+
/* @__PURE__ */ jsx94("legend", { css: fieldsetLegend2, children: legend }),
|
|
16586
16731
|
children
|
|
16587
16732
|
] });
|
|
16588
16733
|
}
|
|
16589
16734
|
);
|
|
16590
16735
|
|
|
16591
16736
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
16592
|
-
import { forwardRef as
|
|
16737
|
+
import { forwardRef as forwardRef13, useDeferredValue } from "react";
|
|
16593
16738
|
|
|
16594
16739
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
16595
|
-
import { useState as
|
|
16740
|
+
import { useState as useState9 } from "react";
|
|
16596
16741
|
import { createPortal as createPortal2 } from "react-dom";
|
|
16597
16742
|
|
|
16598
16743
|
// src/components/ParameterInputs/styles/ParameterImage.styles.ts
|
|
16599
|
-
import { css as
|
|
16600
|
-
var previewWrapper =
|
|
16744
|
+
import { css as css79 } from "@emotion/react";
|
|
16745
|
+
var previewWrapper = css79`
|
|
16601
16746
|
margin-top: var(--spacing-xs);
|
|
16602
16747
|
background: var(--gray-50);
|
|
16603
16748
|
padding: var(--spacing-sm);
|
|
16604
16749
|
border: solid 1px var(--gray-300);
|
|
16605
16750
|
border-radius: var(--rounded-sm);
|
|
16606
16751
|
`;
|
|
16607
|
-
var previewLink =
|
|
16752
|
+
var previewLink = css79`
|
|
16608
16753
|
display: block;
|
|
16609
16754
|
width: 100%;
|
|
16610
16755
|
|
|
@@ -16612,7 +16757,7 @@ var previewLink = css78`
|
|
|
16612
16757
|
max-height: 9rem;
|
|
16613
16758
|
}
|
|
16614
16759
|
`;
|
|
16615
|
-
var previewModalWrapper =
|
|
16760
|
+
var previewModalWrapper = css79`
|
|
16616
16761
|
background: var(--gray-50);
|
|
16617
16762
|
display: flex;
|
|
16618
16763
|
height: 100%;
|
|
@@ -16621,7 +16766,7 @@ var previewModalWrapper = css78`
|
|
|
16621
16766
|
border: solid 1px var(--gray-300);
|
|
16622
16767
|
border-radius: var(--rounded-sm);
|
|
16623
16768
|
`;
|
|
16624
|
-
var previewModalImage =
|
|
16769
|
+
var previewModalImage = css79`
|
|
16625
16770
|
display: flex;
|
|
16626
16771
|
height: 100%;
|
|
16627
16772
|
width: 100%;
|
|
@@ -16633,33 +16778,33 @@ var previewModalImage = css78`
|
|
|
16633
16778
|
`;
|
|
16634
16779
|
|
|
16635
16780
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
16636
|
-
import { Fragment as
|
|
16781
|
+
import { Fragment as Fragment14, jsx as jsx95, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
|
|
16637
16782
|
function ParameterImagePreview({ imageSrc }) {
|
|
16638
|
-
const [showModal, setShowModal] =
|
|
16783
|
+
const [showModal, setShowModal] = useState9(false);
|
|
16639
16784
|
return imageSrc ? /* @__PURE__ */ jsxs64("div", { css: previewWrapper, children: [
|
|
16640
|
-
/* @__PURE__ */
|
|
16641
|
-
/* @__PURE__ */
|
|
16785
|
+
/* @__PURE__ */ jsx95(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
|
|
16786
|
+
/* @__PURE__ */ jsx95(
|
|
16642
16787
|
"button",
|
|
16643
16788
|
{
|
|
16644
16789
|
css: previewLink,
|
|
16645
16790
|
onClick: () => {
|
|
16646
16791
|
setShowModal(true);
|
|
16647
16792
|
},
|
|
16648
|
-
children: /* @__PURE__ */
|
|
16793
|
+
children: /* @__PURE__ */ jsx95(Image, { src: imageSrc, "data-testid": "parameter-image-preview" })
|
|
16649
16794
|
}
|
|
16650
16795
|
)
|
|
16651
16796
|
] }) : null;
|
|
16652
16797
|
}
|
|
16653
16798
|
var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
16654
|
-
return open ? /* @__PURE__ */
|
|
16655
|
-
/* @__PURE__ */
|
|
16799
|
+
return open ? /* @__PURE__ */ jsx95(Fragment14, { children: createPortal2(
|
|
16800
|
+
/* @__PURE__ */ jsx95(
|
|
16656
16801
|
Modal,
|
|
16657
16802
|
{
|
|
16658
16803
|
header: "Image Preview",
|
|
16659
16804
|
onRequestClose,
|
|
16660
16805
|
withoutContentPadding: true,
|
|
16661
|
-
buttonGroup: /* @__PURE__ */
|
|
16662
|
-
children: /* @__PURE__ */
|
|
16806
|
+
buttonGroup: /* @__PURE__ */ jsx95(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
|
|
16807
|
+
children: /* @__PURE__ */ jsx95("div", { css: previewModalWrapper, children: /* @__PURE__ */ jsx95(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
|
|
16663
16808
|
}
|
|
16664
16809
|
),
|
|
16665
16810
|
document.body
|
|
@@ -16667,25 +16812,25 @@ var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
|
16667
16812
|
};
|
|
16668
16813
|
|
|
16669
16814
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
16670
|
-
import { css as
|
|
16671
|
-
import { useState as
|
|
16815
|
+
import { css as css81 } from "@emotion/react";
|
|
16816
|
+
import { useState as useState10 } from "react";
|
|
16672
16817
|
|
|
16673
16818
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
16674
|
-
import { jsx as
|
|
16819
|
+
import { jsx as jsx96 } from "@emotion/react/jsx-runtime";
|
|
16675
16820
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
16676
|
-
return !asSpan ? /* @__PURE__ */
|
|
16821
|
+
return !asSpan ? /* @__PURE__ */ jsx96("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx96("span", { "aria-labelledby": id, css: labelText2, children });
|
|
16677
16822
|
};
|
|
16678
16823
|
|
|
16679
16824
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
16680
|
-
import { forwardRef as
|
|
16681
|
-
import { jsx as
|
|
16682
|
-
var ParameterMenuButton =
|
|
16825
|
+
import { forwardRef as forwardRef12 } from "react";
|
|
16826
|
+
import { jsx as jsx97 } from "@emotion/react/jsx-runtime";
|
|
16827
|
+
var ParameterMenuButton = forwardRef12(
|
|
16683
16828
|
({ label, children }, ref) => {
|
|
16684
|
-
return /* @__PURE__ */
|
|
16829
|
+
return /* @__PURE__ */ jsx97(
|
|
16685
16830
|
Menu,
|
|
16686
16831
|
{
|
|
16687
16832
|
menuLabel: `${label} menu`,
|
|
16688
|
-
menuTrigger: /* @__PURE__ */
|
|
16833
|
+
menuTrigger: /* @__PURE__ */ jsx97(
|
|
16689
16834
|
"button",
|
|
16690
16835
|
{
|
|
16691
16836
|
className: "parameter-menu",
|
|
@@ -16693,7 +16838,7 @@ var ParameterMenuButton = forwardRef11(
|
|
|
16693
16838
|
type: "button",
|
|
16694
16839
|
"aria-label": `${label} options`,
|
|
16695
16840
|
ref,
|
|
16696
|
-
children: /* @__PURE__ */
|
|
16841
|
+
children: /* @__PURE__ */ jsx97(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
16697
16842
|
}
|
|
16698
16843
|
),
|
|
16699
16844
|
children
|
|
@@ -16703,8 +16848,8 @@ var ParameterMenuButton = forwardRef11(
|
|
|
16703
16848
|
);
|
|
16704
16849
|
|
|
16705
16850
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
16706
|
-
import { css as
|
|
16707
|
-
var emptyParameterShell =
|
|
16851
|
+
import { css as css80 } from "@emotion/react";
|
|
16852
|
+
var emptyParameterShell = css80`
|
|
16708
16853
|
border-radius: var(--rounded-sm);
|
|
16709
16854
|
background: var(--white);
|
|
16710
16855
|
flex-grow: 1;
|
|
@@ -16712,7 +16857,7 @@ var emptyParameterShell = css79`
|
|
|
16712
16857
|
position: relative;
|
|
16713
16858
|
max-width: 100%;
|
|
16714
16859
|
`;
|
|
16715
|
-
var emptyParameterShellText =
|
|
16860
|
+
var emptyParameterShellText = css80`
|
|
16716
16861
|
background: var(--brand-secondary-6);
|
|
16717
16862
|
border-radius: var(--rounded-sm);
|
|
16718
16863
|
padding: var(--spacing-sm);
|
|
@@ -16720,7 +16865,7 @@ var emptyParameterShellText = css79`
|
|
|
16720
16865
|
font-size: var(--fs-sm);
|
|
16721
16866
|
margin: 0;
|
|
16722
16867
|
`;
|
|
16723
|
-
var overrideMarker =
|
|
16868
|
+
var overrideMarker = css80`
|
|
16724
16869
|
border-radius: var(--rounded-sm);
|
|
16725
16870
|
border: 10px solid var(--gray-300);
|
|
16726
16871
|
border-left-color: transparent;
|
|
@@ -16731,7 +16876,7 @@ var overrideMarker = css79`
|
|
|
16731
16876
|
`;
|
|
16732
16877
|
|
|
16733
16878
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
16734
|
-
import { jsx as
|
|
16879
|
+
import { jsx as jsx98, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
|
|
16735
16880
|
var extractParameterProps = (props) => {
|
|
16736
16881
|
const {
|
|
16737
16882
|
id,
|
|
@@ -16790,7 +16935,7 @@ var ParameterShell = ({
|
|
|
16790
16935
|
children,
|
|
16791
16936
|
...props
|
|
16792
16937
|
}) => {
|
|
16793
|
-
const [manualErrorMessage, setManualErrorMessage] =
|
|
16938
|
+
const [manualErrorMessage, setManualErrorMessage] = useState10(void 0);
|
|
16794
16939
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
16795
16940
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
16796
16941
|
return /* @__PURE__ */ jsxs65("div", { css: inputContainer2, ...props, id, children: [
|
|
@@ -16805,23 +16950,23 @@ var ParameterShell = ({
|
|
|
16805
16950
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
16806
16951
|
] }),
|
|
16807
16952
|
/* @__PURE__ */ jsxs65("div", { css: inputWrapper, children: [
|
|
16808
|
-
actionItems ? /* @__PURE__ */
|
|
16953
|
+
actionItems ? /* @__PURE__ */ jsx98(
|
|
16809
16954
|
"div",
|
|
16810
16955
|
{
|
|
16811
16956
|
css: [
|
|
16812
16957
|
inputMenu,
|
|
16813
|
-
|
|
16958
|
+
css81`
|
|
16814
16959
|
opacity: var(--opacity-100);
|
|
16815
16960
|
`,
|
|
16816
|
-
menuItems ?
|
|
16961
|
+
menuItems ? css81`
|
|
16817
16962
|
right: var(--spacing-md);
|
|
16818
16963
|
` : void 0
|
|
16819
16964
|
],
|
|
16820
16965
|
children: actionItems
|
|
16821
16966
|
}
|
|
16822
16967
|
) : null,
|
|
16823
|
-
menuItems ? /* @__PURE__ */
|
|
16824
|
-
/* @__PURE__ */
|
|
16968
|
+
menuItems ? /* @__PURE__ */ jsx98(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
16969
|
+
/* @__PURE__ */ jsx98(
|
|
16825
16970
|
ParameterShellContext.Provider,
|
|
16826
16971
|
{
|
|
16827
16972
|
value: {
|
|
@@ -16833,39 +16978,39 @@ var ParameterShell = ({
|
|
|
16833
16978
|
},
|
|
16834
16979
|
children: /* @__PURE__ */ jsxs65(ParameterShellPlaceholder, { children: [
|
|
16835
16980
|
children,
|
|
16836
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
16981
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx98(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
16837
16982
|
] })
|
|
16838
16983
|
}
|
|
16839
16984
|
)
|
|
16840
16985
|
] }),
|
|
16841
|
-
caption ? /* @__PURE__ */
|
|
16842
|
-
errorMessaging ? /* @__PURE__ */
|
|
16843
|
-
warningMessage ? /* @__PURE__ */
|
|
16844
|
-
infoMessage ? /* @__PURE__ */
|
|
16986
|
+
caption ? /* @__PURE__ */ jsx98(Caption, { testId: captionTestId, children: caption }) : null,
|
|
16987
|
+
errorMessaging ? /* @__PURE__ */ jsx98(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null,
|
|
16988
|
+
warningMessage ? /* @__PURE__ */ jsx98(WarningMessage, { message: warningMessage }) : null,
|
|
16989
|
+
infoMessage ? /* @__PURE__ */ jsx98(InfoMessage, { message: infoMessage }) : null
|
|
16845
16990
|
] });
|
|
16846
16991
|
};
|
|
16847
16992
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
16848
|
-
return /* @__PURE__ */
|
|
16993
|
+
return /* @__PURE__ */ jsx98("div", { css: emptyParameterShell, children });
|
|
16849
16994
|
};
|
|
16850
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
16995
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx98(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx98("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx98("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
16851
16996
|
|
|
16852
16997
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
16853
|
-
import { Fragment as
|
|
16854
|
-
var ParameterImage =
|
|
16998
|
+
import { Fragment as Fragment15, jsx as jsx99, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
|
|
16999
|
+
var ParameterImage = forwardRef13(
|
|
16855
17000
|
({ children, ...props }, ref) => {
|
|
16856
17001
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16857
17002
|
return /* @__PURE__ */ jsxs66(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
|
|
16858
|
-
/* @__PURE__ */
|
|
17003
|
+
/* @__PURE__ */ jsx99(ParameterImageInner, { ref, ...innerProps }),
|
|
16859
17004
|
children
|
|
16860
17005
|
] });
|
|
16861
17006
|
}
|
|
16862
17007
|
);
|
|
16863
|
-
var ParameterImageInner =
|
|
17008
|
+
var ParameterImageInner = forwardRef13((props, ref) => {
|
|
16864
17009
|
const { value } = props;
|
|
16865
17010
|
const { id, label, hiddenLabel, errorMessage } = useParameterShell();
|
|
16866
17011
|
const deferredValue = useDeferredValue(value);
|
|
16867
|
-
return /* @__PURE__ */ jsxs66(
|
|
16868
|
-
/* @__PURE__ */
|
|
17012
|
+
return /* @__PURE__ */ jsxs66(Fragment15, { children: [
|
|
17013
|
+
/* @__PURE__ */ jsx99(
|
|
16869
17014
|
"input",
|
|
16870
17015
|
{
|
|
16871
17016
|
css: input2,
|
|
@@ -16877,21 +17022,21 @@ var ParameterImageInner = forwardRef12((props, ref) => {
|
|
|
16877
17022
|
...props
|
|
16878
17023
|
}
|
|
16879
17024
|
),
|
|
16880
|
-
errorMessage || props.disablePreview ? null : /* @__PURE__ */
|
|
17025
|
+
errorMessage || props.disablePreview ? null : /* @__PURE__ */ jsx99(ParameterImagePreview, { imageSrc: deferredValue })
|
|
16881
17026
|
] });
|
|
16882
17027
|
});
|
|
16883
17028
|
|
|
16884
17029
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
16885
|
-
import { forwardRef as
|
|
16886
|
-
import { jsx as
|
|
16887
|
-
var ParameterInput =
|
|
17030
|
+
import { forwardRef as forwardRef14 } from "react";
|
|
17031
|
+
import { jsx as jsx100 } from "@emotion/react/jsx-runtime";
|
|
17032
|
+
var ParameterInput = forwardRef14((props, ref) => {
|
|
16888
17033
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16889
|
-
return /* @__PURE__ */
|
|
17034
|
+
return /* @__PURE__ */ jsx100(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx100(ParameterInputInner, { ref, ...innerProps }) });
|
|
16890
17035
|
});
|
|
16891
|
-
var ParameterInputInner =
|
|
17036
|
+
var ParameterInputInner = forwardRef14(
|
|
16892
17037
|
({ ...props }, ref) => {
|
|
16893
17038
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
16894
|
-
return /* @__PURE__ */
|
|
17039
|
+
return /* @__PURE__ */ jsx100(
|
|
16895
17040
|
"input",
|
|
16896
17041
|
{
|
|
16897
17042
|
css: input2,
|
|
@@ -16907,19 +17052,19 @@ var ParameterInputInner = forwardRef13(
|
|
|
16907
17052
|
);
|
|
16908
17053
|
|
|
16909
17054
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
16910
|
-
import { forwardRef as
|
|
16911
|
-
import { jsx as
|
|
16912
|
-
var ParameterLink =
|
|
16913
|
-
({ disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
17055
|
+
import { forwardRef as forwardRef15 } from "react";
|
|
17056
|
+
import { jsx as jsx101, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
|
|
17057
|
+
var ParameterLink = forwardRef15(
|
|
17058
|
+
({ disabled: disabled2, onConnectLink, externalLink, ...props }, ref) => {
|
|
16914
17059
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16915
|
-
return /* @__PURE__ */
|
|
17060
|
+
return /* @__PURE__ */ jsx101(
|
|
16916
17061
|
ParameterShell,
|
|
16917
17062
|
{
|
|
16918
17063
|
"data-testid": "link-parameter-editor",
|
|
16919
17064
|
...shellProps,
|
|
16920
17065
|
label: innerProps.value ? shellProps.label : "",
|
|
16921
17066
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
16922
|
-
children: /* @__PURE__ */
|
|
17067
|
+
children: /* @__PURE__ */ jsx101(
|
|
16923
17068
|
ParameterLinkInner,
|
|
16924
17069
|
{
|
|
16925
17070
|
onConnectLink,
|
|
@@ -16932,13 +17077,13 @@ var ParameterLink = forwardRef14(
|
|
|
16932
17077
|
);
|
|
16933
17078
|
}
|
|
16934
17079
|
);
|
|
16935
|
-
var ParameterLinkInner =
|
|
16936
|
-
({ externalLink, onConnectLink, disabled, buttonText = "Select link", ...props }, ref) => {
|
|
17080
|
+
var ParameterLinkInner = forwardRef15(
|
|
17081
|
+
({ externalLink, onConnectLink, disabled: disabled2, buttonText = "Select link", ...props }, ref) => {
|
|
16937
17082
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
16938
17083
|
if (!props.value)
|
|
16939
|
-
return /* @__PURE__ */
|
|
17084
|
+
return /* @__PURE__ */ jsx101("button", { type: "button", css: dataConnectButton, disabled: disabled2, onClick: onConnectLink, children: buttonText });
|
|
16940
17085
|
return /* @__PURE__ */ jsxs67("div", { css: inputWrapper, children: [
|
|
16941
|
-
/* @__PURE__ */
|
|
17086
|
+
/* @__PURE__ */ jsx101(
|
|
16942
17087
|
"input",
|
|
16943
17088
|
{
|
|
16944
17089
|
type: "text",
|
|
@@ -16951,18 +17096,18 @@ var ParameterLinkInner = forwardRef14(
|
|
|
16951
17096
|
}
|
|
16952
17097
|
),
|
|
16953
17098
|
/* @__PURE__ */ jsxs67("div", { css: linkParameterControls, children: [
|
|
16954
|
-
/* @__PURE__ */
|
|
17099
|
+
/* @__PURE__ */ jsx101(
|
|
16955
17100
|
"button",
|
|
16956
17101
|
{
|
|
16957
17102
|
type: "button",
|
|
16958
17103
|
css: linkParameterBtn,
|
|
16959
|
-
disabled,
|
|
17104
|
+
disabled: disabled2,
|
|
16960
17105
|
onClick: onConnectLink,
|
|
16961
17106
|
title: "edit current selection",
|
|
16962
17107
|
children: "edit"
|
|
16963
17108
|
}
|
|
16964
17109
|
),
|
|
16965
|
-
externalLink ? /* @__PURE__ */
|
|
17110
|
+
externalLink ? /* @__PURE__ */ jsx101(
|
|
16966
17111
|
"a",
|
|
16967
17112
|
{
|
|
16968
17113
|
href: externalLink,
|
|
@@ -16970,7 +17115,7 @@ var ParameterLinkInner = forwardRef14(
|
|
|
16970
17115
|
title: "Open link in new tab",
|
|
16971
17116
|
target: "_blank",
|
|
16972
17117
|
rel: "noopener noreferrer",
|
|
16973
|
-
children: /* @__PURE__ */
|
|
17118
|
+
children: /* @__PURE__ */ jsx101(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
16974
17119
|
}
|
|
16975
17120
|
) : null
|
|
16976
17121
|
] })
|
|
@@ -16979,7 +17124,7 @@ var ParameterLinkInner = forwardRef14(
|
|
|
16979
17124
|
);
|
|
16980
17125
|
|
|
16981
17126
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
16982
|
-
import { Fragment as
|
|
17127
|
+
import { Fragment as Fragment16, jsx as jsx102, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
|
|
16983
17128
|
var ParameterNameAndPublicIdInput = ({
|
|
16984
17129
|
id,
|
|
16985
17130
|
onBlur,
|
|
@@ -17005,8 +17150,8 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17005
17150
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
17006
17151
|
};
|
|
17007
17152
|
autoFocus == null ? void 0 : autoFocus();
|
|
17008
|
-
return /* @__PURE__ */ jsxs68(
|
|
17009
|
-
/* @__PURE__ */
|
|
17153
|
+
return /* @__PURE__ */ jsxs68(Fragment16, { children: [
|
|
17154
|
+
/* @__PURE__ */ jsx102(
|
|
17010
17155
|
ParameterInput,
|
|
17011
17156
|
{
|
|
17012
17157
|
id: nameIdField,
|
|
@@ -17025,7 +17170,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17025
17170
|
value: values[nameIdField]
|
|
17026
17171
|
}
|
|
17027
17172
|
),
|
|
17028
|
-
/* @__PURE__ */
|
|
17173
|
+
/* @__PURE__ */ jsx102(
|
|
17029
17174
|
ParameterInput,
|
|
17030
17175
|
{
|
|
17031
17176
|
id: publicIdFieldName,
|
|
@@ -17039,11 +17184,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17039
17184
|
caption: publicIdCaption,
|
|
17040
17185
|
placeholder: publicIdPlaceholderText,
|
|
17041
17186
|
errorMessage: publicIdError,
|
|
17042
|
-
menuItems: /* @__PURE__ */
|
|
17187
|
+
menuItems: /* @__PURE__ */ jsx102(
|
|
17043
17188
|
MenuItem,
|
|
17044
17189
|
{
|
|
17045
17190
|
disabled: !values[publicIdFieldName],
|
|
17046
|
-
icon: /* @__PURE__ */
|
|
17191
|
+
icon: /* @__PURE__ */ jsx102(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
17047
17192
|
onClick: handleCopyPidFieldValue,
|
|
17048
17193
|
children: "Copy"
|
|
17049
17194
|
}
|
|
@@ -17051,12 +17196,12 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17051
17196
|
value: values[publicIdFieldName]
|
|
17052
17197
|
}
|
|
17053
17198
|
),
|
|
17054
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
17199
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx102(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
17055
17200
|
] });
|
|
17056
17201
|
};
|
|
17057
17202
|
|
|
17058
17203
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
17059
|
-
import { css as
|
|
17204
|
+
import { css as css85 } from "@emotion/react";
|
|
17060
17205
|
import { ListItemNode, ListNode as ListNode2 } from "@lexical/list";
|
|
17061
17206
|
import {
|
|
17062
17207
|
CODE,
|
|
@@ -17208,23 +17353,23 @@ function DisableStylesPlugin() {
|
|
|
17208
17353
|
}
|
|
17209
17354
|
|
|
17210
17355
|
// src/components/ParameterInputs/rich-text/editorStyles.ts
|
|
17211
|
-
import { css as
|
|
17212
|
-
var textBold =
|
|
17356
|
+
import { css as css82 } from "@emotion/css";
|
|
17357
|
+
var textBold = css82`
|
|
17213
17358
|
font-weight: 700;
|
|
17214
17359
|
`;
|
|
17215
|
-
var textItalic =
|
|
17360
|
+
var textItalic = css82`
|
|
17216
17361
|
font-style: italic;
|
|
17217
17362
|
`;
|
|
17218
|
-
var textUnderline =
|
|
17363
|
+
var textUnderline = css82`
|
|
17219
17364
|
text-decoration: underline;
|
|
17220
17365
|
`;
|
|
17221
|
-
var textStrikethrough =
|
|
17366
|
+
var textStrikethrough = css82`
|
|
17222
17367
|
text-decoration: line-through;
|
|
17223
17368
|
`;
|
|
17224
|
-
var textUnderlineStrikethrough =
|
|
17369
|
+
var textUnderlineStrikethrough = css82`
|
|
17225
17370
|
text-decoration: underline line-through;
|
|
17226
17371
|
`;
|
|
17227
|
-
var textCode =
|
|
17372
|
+
var textCode = css82`
|
|
17228
17373
|
background-color: var(--gray-100);
|
|
17229
17374
|
border-radius: var(--rounded-sm);
|
|
17230
17375
|
display: inline-block;
|
|
@@ -17235,68 +17380,68 @@ var textCode = css81`
|
|
|
17235
17380
|
padding-left: var(--spacing-xs);
|
|
17236
17381
|
padding-right: var(--spacing-xs);
|
|
17237
17382
|
`;
|
|
17238
|
-
var textSuperscript =
|
|
17383
|
+
var textSuperscript = css82`
|
|
17239
17384
|
vertical-align: super;
|
|
17240
17385
|
font-size: smaller;
|
|
17241
17386
|
`;
|
|
17242
|
-
var textSubscript =
|
|
17387
|
+
var textSubscript = css82`
|
|
17243
17388
|
vertical-align: sub;
|
|
17244
17389
|
font-size: smaller;
|
|
17245
17390
|
`;
|
|
17246
|
-
var linkElement =
|
|
17391
|
+
var linkElement = css82`
|
|
17247
17392
|
${link}
|
|
17248
17393
|
${linkColorDefault}
|
|
17249
17394
|
text-decoration: underline;
|
|
17250
17395
|
`;
|
|
17251
|
-
var h12 =
|
|
17396
|
+
var h12 = css82`
|
|
17252
17397
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.7rem);
|
|
17253
17398
|
`;
|
|
17254
|
-
var h22 =
|
|
17399
|
+
var h22 = css82`
|
|
17255
17400
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.6rem);
|
|
17256
17401
|
`;
|
|
17257
|
-
var h32 =
|
|
17402
|
+
var h32 = css82`
|
|
17258
17403
|
font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
|
|
17259
17404
|
`;
|
|
17260
|
-
var h42 =
|
|
17405
|
+
var h42 = css82`
|
|
17261
17406
|
font-size: clamp(1.15rem, var(--fluid-font-base), 1.25rem);
|
|
17262
17407
|
`;
|
|
17263
|
-
var h52 =
|
|
17408
|
+
var h52 = css82`
|
|
17264
17409
|
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
17265
17410
|
`;
|
|
17266
|
-
var h62 =
|
|
17411
|
+
var h62 = css82`
|
|
17267
17412
|
font-size: var(--fs-base);
|
|
17268
17413
|
`;
|
|
17269
|
-
var heading1Element =
|
|
17414
|
+
var heading1Element = css82`
|
|
17270
17415
|
${h12}
|
|
17271
17416
|
${commonHeadingAttr(true)}
|
|
17272
17417
|
${commonLineHeight}
|
|
17273
17418
|
`;
|
|
17274
|
-
var heading2Element =
|
|
17419
|
+
var heading2Element = css82`
|
|
17275
17420
|
${h22}
|
|
17276
17421
|
${commonHeadingAttr(true)}
|
|
17277
17422
|
${commonLineHeight}
|
|
17278
17423
|
`;
|
|
17279
|
-
var heading3Element =
|
|
17424
|
+
var heading3Element = css82`
|
|
17280
17425
|
${h32}
|
|
17281
17426
|
${commonHeadingAttr(true)}
|
|
17282
17427
|
${commonLineHeight}
|
|
17283
17428
|
`;
|
|
17284
|
-
var heading4Element =
|
|
17429
|
+
var heading4Element = css82`
|
|
17285
17430
|
${h42}
|
|
17286
17431
|
${commonHeadingAttr(true)}
|
|
17287
17432
|
${commonLineHeight}
|
|
17288
17433
|
`;
|
|
17289
|
-
var heading5Element =
|
|
17434
|
+
var heading5Element = css82`
|
|
17290
17435
|
${h52}
|
|
17291
17436
|
${commonHeadingAttr(true)}
|
|
17292
17437
|
${commonLineHeight}
|
|
17293
17438
|
`;
|
|
17294
|
-
var heading6Element =
|
|
17439
|
+
var heading6Element = css82`
|
|
17295
17440
|
${h62}
|
|
17296
17441
|
${commonHeadingAttr(true)}
|
|
17297
17442
|
${commonLineHeight}
|
|
17298
17443
|
`;
|
|
17299
|
-
var paragraphElement =
|
|
17444
|
+
var paragraphElement = css82`
|
|
17300
17445
|
line-height: 1.5;
|
|
17301
17446
|
margin-bottom: var(--spacing-base);
|
|
17302
17447
|
|
|
@@ -17304,7 +17449,7 @@ var paragraphElement = css81`
|
|
|
17304
17449
|
margin-bottom: 0;
|
|
17305
17450
|
}
|
|
17306
17451
|
`;
|
|
17307
|
-
var orderedListElement =
|
|
17452
|
+
var orderedListElement = css82`
|
|
17308
17453
|
${commonLineHeight}
|
|
17309
17454
|
display: block;
|
|
17310
17455
|
list-style: decimal;
|
|
@@ -17333,7 +17478,7 @@ var orderedListElement = css81`
|
|
|
17333
17478
|
}
|
|
17334
17479
|
}
|
|
17335
17480
|
`;
|
|
17336
|
-
var unorderedListElement =
|
|
17481
|
+
var unorderedListElement = css82`
|
|
17337
17482
|
${commonLineHeight}
|
|
17338
17483
|
display: block;
|
|
17339
17484
|
list-style: disc;
|
|
@@ -17354,13 +17499,13 @@ var unorderedListElement = css81`
|
|
|
17354
17499
|
}
|
|
17355
17500
|
}
|
|
17356
17501
|
`;
|
|
17357
|
-
var listItemElement =
|
|
17502
|
+
var listItemElement = css82`
|
|
17358
17503
|
margin-left: var(--spacing-md);
|
|
17359
17504
|
`;
|
|
17360
|
-
var nestedListItemElement =
|
|
17505
|
+
var nestedListItemElement = css82`
|
|
17361
17506
|
list-style-type: none;
|
|
17362
17507
|
`;
|
|
17363
|
-
var blockquoteElement =
|
|
17508
|
+
var blockquoteElement = css82`
|
|
17364
17509
|
border-left: 0.25rem solid var(--gray-300);
|
|
17365
17510
|
color: var(--gray-600);
|
|
17366
17511
|
margin-bottom: var(--spacing-base);
|
|
@@ -17370,7 +17515,7 @@ var blockquoteElement = css81`
|
|
|
17370
17515
|
margin-bottom: 0;
|
|
17371
17516
|
}
|
|
17372
17517
|
`;
|
|
17373
|
-
var codeElement =
|
|
17518
|
+
var codeElement = css82`
|
|
17374
17519
|
background-color: var(--gray-100);
|
|
17375
17520
|
border-radius: var(--rounded-sm);
|
|
17376
17521
|
display: block;
|
|
@@ -17387,7 +17532,7 @@ var codeElement = css81`
|
|
|
17387
17532
|
`;
|
|
17388
17533
|
|
|
17389
17534
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
17390
|
-
import { css as
|
|
17535
|
+
import { css as css83 } from "@emotion/react";
|
|
17391
17536
|
import { useLexicalComposerContext as useLexicalComposerContext2 } from "@lexical/react/LexicalComposerContext";
|
|
17392
17537
|
import { NodeEventPlugin } from "@lexical/react/LexicalNodeEventPlugin";
|
|
17393
17538
|
import { addClassNamesToElement, isHTMLAnchorElement, mergeRegister as mergeRegister2 } from "@lexical/utils";
|
|
@@ -17403,7 +17548,7 @@ import {
|
|
|
17403
17548
|
ElementNode as ElementNode2,
|
|
17404
17549
|
FOCUS_COMMAND
|
|
17405
17550
|
} from "lexical";
|
|
17406
|
-
import { useCallback as useCallback5, useEffect as useEffect11, useRef as useRef6, useState as
|
|
17551
|
+
import { useCallback as useCallback5, useEffect as useEffect11, useRef as useRef6, useState as useState11 } from "react";
|
|
17407
17552
|
|
|
17408
17553
|
// src/components/ParameterInputs/rich-text/utils.ts
|
|
17409
17554
|
import { $isAtNodeEnd } from "@lexical/selection";
|
|
@@ -17441,7 +17586,7 @@ var getSelectedNode = (selection) => {
|
|
|
17441
17586
|
};
|
|
17442
17587
|
|
|
17443
17588
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
17444
|
-
import { Fragment as
|
|
17589
|
+
import { Fragment as Fragment17, jsx as jsx103, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
|
|
17445
17590
|
var isProjectMapLinkValue = (value) => {
|
|
17446
17591
|
return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
|
|
17447
17592
|
value.nodeId && value.path && value.projectMapId
|
|
@@ -17728,16 +17873,16 @@ var OPEN_LINK_NODE_MODAL_COMMAND = createCommand(
|
|
|
17728
17873
|
);
|
|
17729
17874
|
var LINK_POPOVER_OFFSET_X = 0;
|
|
17730
17875
|
var LINK_POPOVER_OFFSET_Y = 8;
|
|
17731
|
-
var linkPopover =
|
|
17876
|
+
var linkPopover = css83`
|
|
17732
17877
|
position: absolute;
|
|
17733
17878
|
z-index: 5;
|
|
17734
17879
|
`;
|
|
17735
|
-
var linkPopoverContainer =
|
|
17880
|
+
var linkPopoverContainer = css83`
|
|
17736
17881
|
${Popover};
|
|
17737
17882
|
align-items: center;
|
|
17738
17883
|
display: flex;
|
|
17739
17884
|
`;
|
|
17740
|
-
var linkPopoverAnchor =
|
|
17885
|
+
var linkPopoverAnchor = css83`
|
|
17741
17886
|
${link}
|
|
17742
17887
|
${linkColorDefault}
|
|
17743
17888
|
`;
|
|
@@ -17746,10 +17891,10 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17746
17891
|
return path;
|
|
17747
17892
|
};
|
|
17748
17893
|
const [editor] = useLexicalComposerContext2();
|
|
17749
|
-
const [linkPopoverState, setLinkPopoverState] =
|
|
17894
|
+
const [linkPopoverState, setLinkPopoverState] = useState11();
|
|
17750
17895
|
const linkPopoverElRef = useRef6(null);
|
|
17751
|
-
const [isEditorFocused, setIsEditorFocused] =
|
|
17752
|
-
const [isLinkPopoverFocused, setIsLinkPopoverFocused] =
|
|
17896
|
+
const [isEditorFocused, setIsEditorFocused] = useState11(false);
|
|
17897
|
+
const [isLinkPopoverFocused, setIsLinkPopoverFocused] = useState11(false);
|
|
17753
17898
|
useEffect11(() => {
|
|
17754
17899
|
if (!isEditorFocused && !isLinkPopoverFocused) {
|
|
17755
17900
|
setLinkPopoverState(void 0);
|
|
@@ -17884,8 +18029,8 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17884
18029
|
});
|
|
17885
18030
|
});
|
|
17886
18031
|
};
|
|
17887
|
-
return /* @__PURE__ */ jsxs69(
|
|
17888
|
-
/* @__PURE__ */
|
|
18032
|
+
return /* @__PURE__ */ jsxs69(Fragment17, { children: [
|
|
18033
|
+
/* @__PURE__ */ jsx103(
|
|
17889
18034
|
NodeEventPlugin,
|
|
17890
18035
|
{
|
|
17891
18036
|
nodeType: LinkNode,
|
|
@@ -17895,7 +18040,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17895
18040
|
}
|
|
17896
18041
|
}
|
|
17897
18042
|
),
|
|
17898
|
-
linkPopoverState ? /* @__PURE__ */
|
|
18043
|
+
linkPopoverState ? /* @__PURE__ */ jsx103(
|
|
17899
18044
|
"div",
|
|
17900
18045
|
{
|
|
17901
18046
|
css: linkPopover,
|
|
@@ -17905,7 +18050,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17905
18050
|
},
|
|
17906
18051
|
ref: linkPopoverElRef,
|
|
17907
18052
|
children: /* @__PURE__ */ jsxs69("div", { css: linkPopoverContainer, children: [
|
|
17908
|
-
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */
|
|
18053
|
+
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ jsx103(
|
|
17909
18054
|
"a",
|
|
17910
18055
|
{
|
|
17911
18056
|
href: parsePath(
|
|
@@ -17917,7 +18062,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17917
18062
|
children: parsePath(linkPopoverState.node.__link.path)
|
|
17918
18063
|
}
|
|
17919
18064
|
),
|
|
17920
|
-
/* @__PURE__ */
|
|
18065
|
+
/* @__PURE__ */ jsx103(
|
|
17921
18066
|
Button,
|
|
17922
18067
|
{
|
|
17923
18068
|
size: "xs",
|
|
@@ -17925,7 +18070,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17925
18070
|
onEditLinkNode(linkPopoverState.node);
|
|
17926
18071
|
},
|
|
17927
18072
|
buttonType: "ghost",
|
|
17928
|
-
children: /* @__PURE__ */
|
|
18073
|
+
children: /* @__PURE__ */ jsx103(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
|
|
17929
18074
|
}
|
|
17930
18075
|
)
|
|
17931
18076
|
] })
|
|
@@ -17950,7 +18095,7 @@ import {
|
|
|
17950
18095
|
INDENT_CONTENT_COMMAND
|
|
17951
18096
|
} from "lexical";
|
|
17952
18097
|
import { useEffect as useEffect12 } from "react";
|
|
17953
|
-
import { jsx as
|
|
18098
|
+
import { jsx as jsx104 } from "@emotion/react/jsx-runtime";
|
|
17954
18099
|
function isIndentPermitted(maxDepth) {
|
|
17955
18100
|
const selection = $getSelection2();
|
|
17956
18101
|
if (!$isRangeSelection2(selection)) {
|
|
@@ -17980,11 +18125,11 @@ function ListIndentPlugin({ maxDepth }) {
|
|
|
17980
18125
|
COMMAND_PRIORITY_CRITICAL
|
|
17981
18126
|
);
|
|
17982
18127
|
}, [editor, maxDepth]);
|
|
17983
|
-
return /* @__PURE__ */
|
|
18128
|
+
return /* @__PURE__ */ jsx104(TabIndentationPlugin, {});
|
|
17984
18129
|
}
|
|
17985
18130
|
|
|
17986
18131
|
// src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
|
|
17987
|
-
import { css as
|
|
18132
|
+
import { css as css84 } from "@emotion/react";
|
|
17988
18133
|
import { $createCodeNode } from "@lexical/code";
|
|
17989
18134
|
import {
|
|
17990
18135
|
$isListNode as $isListNode2,
|
|
@@ -18006,9 +18151,9 @@ import {
|
|
|
18006
18151
|
FORMAT_TEXT_COMMAND,
|
|
18007
18152
|
SELECTION_CHANGE_COMMAND
|
|
18008
18153
|
} from "lexical";
|
|
18009
|
-
import { useCallback as useCallback6, useEffect as useEffect13, useMemo as useMemo3, useState as
|
|
18010
|
-
import { Fragment as
|
|
18011
|
-
var toolbar =
|
|
18154
|
+
import { useCallback as useCallback6, useEffect as useEffect13, useMemo as useMemo3, useState as useState12 } from "react";
|
|
18155
|
+
import { Fragment as Fragment18, jsx as jsx105, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
18156
|
+
var toolbar = css84`
|
|
18012
18157
|
background: var(--gray-50);
|
|
18013
18158
|
border-radius: var(--rounded-base);
|
|
18014
18159
|
display: flex;
|
|
@@ -18020,7 +18165,7 @@ var toolbar = css83`
|
|
|
18020
18165
|
top: calc(var(--spacing-sm) * -2);
|
|
18021
18166
|
z-index: 10;
|
|
18022
18167
|
`;
|
|
18023
|
-
var toolbarGroup =
|
|
18168
|
+
var toolbarGroup = css84`
|
|
18024
18169
|
display: flex;
|
|
18025
18170
|
gap: var(--spacing-xs);
|
|
18026
18171
|
position: relative;
|
|
@@ -18036,7 +18181,7 @@ var toolbarGroup = css83`
|
|
|
18036
18181
|
width: 1px;
|
|
18037
18182
|
}
|
|
18038
18183
|
`;
|
|
18039
|
-
var richTextToolbarButton =
|
|
18184
|
+
var richTextToolbarButton = css84`
|
|
18040
18185
|
align-items: center;
|
|
18041
18186
|
appearance: none;
|
|
18042
18187
|
border: 0;
|
|
@@ -18049,17 +18194,17 @@ var richTextToolbarButton = css83`
|
|
|
18049
18194
|
min-width: 32px;
|
|
18050
18195
|
padding: 0 var(--spacing-sm);
|
|
18051
18196
|
`;
|
|
18052
|
-
var richTextToolbarButtonActive =
|
|
18197
|
+
var richTextToolbarButtonActive = css84`
|
|
18053
18198
|
background: var(--gray-200);
|
|
18054
18199
|
`;
|
|
18055
|
-
var toolbarIcon =
|
|
18200
|
+
var toolbarIcon = css84`
|
|
18056
18201
|
color: inherit;
|
|
18057
18202
|
`;
|
|
18058
|
-
var toolbarChevron =
|
|
18203
|
+
var toolbarChevron = css84`
|
|
18059
18204
|
margin-left: var(--spacing-xs);
|
|
18060
18205
|
`;
|
|
18061
18206
|
var RichTextToolbarIcon = ({ icon }) => {
|
|
18062
|
-
return /* @__PURE__ */
|
|
18207
|
+
return /* @__PURE__ */ jsx105(Icon, { icon, css: toolbarIcon, size: "1rem" });
|
|
18063
18208
|
};
|
|
18064
18209
|
var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
|
|
18065
18210
|
["bold", "format-bold"],
|
|
@@ -18176,7 +18321,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18176
18321
|
menuTrigger: /* @__PURE__ */ jsxs70("button", { css: richTextToolbarButton, title: "Text styles", children: [
|
|
18177
18322
|
visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
|
|
18178
18323
|
" ",
|
|
18179
|
-
/* @__PURE__ */
|
|
18324
|
+
/* @__PURE__ */ jsx105(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
|
|
18180
18325
|
] }),
|
|
18181
18326
|
placement: "bottom-start",
|
|
18182
18327
|
children: [
|
|
@@ -18186,7 +18331,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18186
18331
|
type: "paragraph"
|
|
18187
18332
|
},
|
|
18188
18333
|
...visibleTextualElements
|
|
18189
|
-
].map((element) => /* @__PURE__ */
|
|
18334
|
+
].map((element) => /* @__PURE__ */ jsx105(
|
|
18190
18335
|
MenuItem,
|
|
18191
18336
|
{
|
|
18192
18337
|
onClick: () => {
|
|
@@ -18196,12 +18341,12 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18196
18341
|
},
|
|
18197
18342
|
element.type
|
|
18198
18343
|
)),
|
|
18199
|
-
visibleTextualElements.length === 0 ? /* @__PURE__ */
|
|
18344
|
+
visibleTextualElements.length === 0 ? /* @__PURE__ */ jsx105(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
|
|
18200
18345
|
]
|
|
18201
18346
|
}
|
|
18202
18347
|
),
|
|
18203
18348
|
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsxs70("div", { css: toolbarGroup, children: [
|
|
18204
|
-
visibleFormatsWithIcon.map((format) => /* @__PURE__ */
|
|
18349
|
+
visibleFormatsWithIcon.map((format) => /* @__PURE__ */ jsx105(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ jsx105(
|
|
18205
18350
|
"button",
|
|
18206
18351
|
{
|
|
18207
18352
|
onClick: () => {
|
|
@@ -18211,16 +18356,16 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18211
18356
|
richTextToolbarButton,
|
|
18212
18357
|
activeFormats.includes(format.type) ? richTextToolbarButtonActive : null
|
|
18213
18358
|
],
|
|
18214
|
-
children: /* @__PURE__ */
|
|
18359
|
+
children: /* @__PURE__ */ jsx105(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
|
|
18215
18360
|
}
|
|
18216
18361
|
) }, format.type)),
|
|
18217
|
-
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
18362
|
+
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsx105(
|
|
18218
18363
|
Menu,
|
|
18219
18364
|
{
|
|
18220
18365
|
menuLabel: "Alternative text styles",
|
|
18221
|
-
menuTrigger: /* @__PURE__ */
|
|
18366
|
+
menuTrigger: /* @__PURE__ */ jsx105("button", { css: richTextToolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ jsx105(Icon, { icon: "more-alt", css: toolbarIcon }) }),
|
|
18222
18367
|
placement: "bottom-start",
|
|
18223
|
-
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */
|
|
18368
|
+
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ jsx105(
|
|
18224
18369
|
MenuItem,
|
|
18225
18370
|
{
|
|
18226
18371
|
onClick: () => {
|
|
@@ -18234,18 +18379,18 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18234
18379
|
) : null
|
|
18235
18380
|
] }) : null,
|
|
18236
18381
|
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ jsxs70("div", { css: toolbarGroup, children: [
|
|
18237
|
-
linkElementVisible ? /* @__PURE__ */
|
|
18382
|
+
linkElementVisible ? /* @__PURE__ */ jsx105(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ jsx105(
|
|
18238
18383
|
"button",
|
|
18239
18384
|
{
|
|
18240
18385
|
onClick: () => {
|
|
18241
18386
|
isLink ? editor.dispatchCommand(REMOVE_LINK_NODE_COMMAND, {}) : editor.dispatchCommand(OPEN_LINK_NODE_MODAL_COMMAND, {});
|
|
18242
18387
|
},
|
|
18243
18388
|
css: [richTextToolbarButton, isLink ? richTextToolbarButtonActive : null],
|
|
18244
|
-
children: /* @__PURE__ */
|
|
18389
|
+
children: /* @__PURE__ */ jsx105(RichTextToolbarIcon, { icon: "link" })
|
|
18245
18390
|
}
|
|
18246
18391
|
) }) : null,
|
|
18247
|
-
visibleLists.size > 0 ? /* @__PURE__ */ jsxs70(
|
|
18248
|
-
visibleLists.has("unorderedList") ? /* @__PURE__ */
|
|
18392
|
+
visibleLists.size > 0 ? /* @__PURE__ */ jsxs70(Fragment18, { children: [
|
|
18393
|
+
visibleLists.has("unorderedList") ? /* @__PURE__ */ jsx105(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ jsx105(
|
|
18249
18394
|
"button",
|
|
18250
18395
|
{
|
|
18251
18396
|
onClick: () => {
|
|
@@ -18255,10 +18400,10 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18255
18400
|
richTextToolbarButton,
|
|
18256
18401
|
activeElement === "unorderedList" ? richTextToolbarButtonActive : null
|
|
18257
18402
|
],
|
|
18258
|
-
children: /* @__PURE__ */
|
|
18403
|
+
children: /* @__PURE__ */ jsx105(RichTextToolbarIcon, { icon: "layout-list" })
|
|
18259
18404
|
}
|
|
18260
18405
|
) }) : null,
|
|
18261
|
-
visibleLists.has("orderedList") ? /* @__PURE__ */
|
|
18406
|
+
visibleLists.has("orderedList") ? /* @__PURE__ */ jsx105(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ jsx105(
|
|
18262
18407
|
"button",
|
|
18263
18408
|
{
|
|
18264
18409
|
onClick: () => {
|
|
@@ -18268,32 +18413,32 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18268
18413
|
richTextToolbarButton,
|
|
18269
18414
|
activeElement === "orderedList" ? richTextToolbarButtonActive : null
|
|
18270
18415
|
],
|
|
18271
|
-
children: /* @__PURE__ */
|
|
18416
|
+
children: /* @__PURE__ */ jsx105(RichTextToolbarIcon, { icon: "layout-list-numbered" })
|
|
18272
18417
|
}
|
|
18273
18418
|
) }) : null
|
|
18274
18419
|
] }) : null,
|
|
18275
|
-
quoteElementVisible ? /* @__PURE__ */
|
|
18420
|
+
quoteElementVisible ? /* @__PURE__ */ jsx105(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ jsx105(
|
|
18276
18421
|
"button",
|
|
18277
18422
|
{
|
|
18278
18423
|
onClick: () => {
|
|
18279
18424
|
activeElement === "quote" ? onSelectElement("paragraph") : onSelectElement("quote");
|
|
18280
18425
|
},
|
|
18281
18426
|
css: [richTextToolbarButton, activeElement === "quote" ? richTextToolbarButtonActive : null],
|
|
18282
|
-
children: /* @__PURE__ */
|
|
18427
|
+
children: /* @__PURE__ */ jsx105(RichTextToolbarIcon, { icon: "quote" })
|
|
18283
18428
|
}
|
|
18284
18429
|
) }) : null,
|
|
18285
|
-
codeElementVisible ? /* @__PURE__ */
|
|
18430
|
+
codeElementVisible ? /* @__PURE__ */ jsx105(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ jsx105(
|
|
18286
18431
|
"button",
|
|
18287
18432
|
{
|
|
18288
18433
|
onClick: () => {
|
|
18289
18434
|
activeElement === "code" ? onSelectElement("paragraph") : onSelectElement("code");
|
|
18290
18435
|
},
|
|
18291
18436
|
css: [richTextToolbarButton, activeElement === "code" ? richTextToolbarButtonActive : null],
|
|
18292
|
-
children: /* @__PURE__ */
|
|
18437
|
+
children: /* @__PURE__ */ jsx105(RichTextToolbarIcon, { icon: "code-slash" })
|
|
18293
18438
|
}
|
|
18294
18439
|
) }) : null
|
|
18295
18440
|
] }) : null,
|
|
18296
|
-
customControls ? /* @__PURE__ */
|
|
18441
|
+
customControls ? /* @__PURE__ */ jsx105("div", { css: toolbarGroup, children: customControls }) : null
|
|
18297
18442
|
] });
|
|
18298
18443
|
};
|
|
18299
18444
|
var RichTextToolbar_default = RichTextToolbar;
|
|
@@ -18317,7 +18462,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
18317
18462
|
const enabledBuiltInFormatsWithoutIcon = enabledBuiltInFormats.filter(
|
|
18318
18463
|
(format) => !FORMATS_WITH_ICON.has(format.type)
|
|
18319
18464
|
);
|
|
18320
|
-
const [activeFormats, setActiveFormats] =
|
|
18465
|
+
const [activeFormats, setActiveFormats] = useState12([]);
|
|
18321
18466
|
const visibleFormatsWithIcon = useMemo3(() => {
|
|
18322
18467
|
const visibleFormats = /* @__PURE__ */ new Set();
|
|
18323
18468
|
activeFormats.filter((type) => FORMATS_WITH_ICON.has(type)).forEach((type) => {
|
|
@@ -18338,7 +18483,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
18338
18483
|
});
|
|
18339
18484
|
return richTextBuiltInFormats.filter((format) => visibleFormats.has(format.type));
|
|
18340
18485
|
}, [activeFormats, enabledBuiltInFormatsWithoutIcon]);
|
|
18341
|
-
const [activeElement, setActiveElement] =
|
|
18486
|
+
const [activeElement, setActiveElement] = useState12("paragraph");
|
|
18342
18487
|
const enabledTextualElements = enabledBuiltInElements.filter(
|
|
18343
18488
|
(element) => TEXTUAL_ELEMENTS.includes(element.type)
|
|
18344
18489
|
);
|
|
@@ -18353,7 +18498,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
18353
18498
|
}
|
|
18354
18499
|
);
|
|
18355
18500
|
}, [activeElement, (_a = config == null ? void 0 : config.elements) == null ? void 0 : _a.builtIn, enabledTextualElements]);
|
|
18356
|
-
const [isLink, setIsLink] =
|
|
18501
|
+
const [isLink, setIsLink] = useState12(false);
|
|
18357
18502
|
const linkElementVisible = useMemo3(() => {
|
|
18358
18503
|
return enabledBuiltInElements.some((element) => element.type === "link") || isLink;
|
|
18359
18504
|
}, [isLink, enabledBuiltInElements]);
|
|
@@ -18407,7 +18552,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
18407
18552
|
};
|
|
18408
18553
|
|
|
18409
18554
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
18410
|
-
import { Fragment as
|
|
18555
|
+
import { Fragment as Fragment19, jsx as jsx106, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
|
|
18411
18556
|
var ParameterRichText = ({
|
|
18412
18557
|
label,
|
|
18413
18558
|
labelLeadingIcon,
|
|
@@ -18446,7 +18591,7 @@ var ParameterRichText = ({
|
|
|
18446
18591
|
captionTestId,
|
|
18447
18592
|
menuItems,
|
|
18448
18593
|
children: [
|
|
18449
|
-
/* @__PURE__ */
|
|
18594
|
+
/* @__PURE__ */ jsx106(
|
|
18450
18595
|
ParameterRichTextInner,
|
|
18451
18596
|
{
|
|
18452
18597
|
value,
|
|
@@ -18464,23 +18609,23 @@ var ParameterRichText = ({
|
|
|
18464
18609
|
children
|
|
18465
18610
|
}
|
|
18466
18611
|
),
|
|
18467
|
-
menuItems ? /* @__PURE__ */
|
|
18612
|
+
menuItems ? /* @__PURE__ */ jsx106(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx106(Fragment19, { children: menuItems }) }) : null
|
|
18468
18613
|
]
|
|
18469
18614
|
}
|
|
18470
18615
|
);
|
|
18471
18616
|
};
|
|
18472
|
-
var editorWrapper =
|
|
18617
|
+
var editorWrapper = css85`
|
|
18473
18618
|
display: flex;
|
|
18474
18619
|
flex-flow: column;
|
|
18475
18620
|
flex-grow: 1;
|
|
18476
18621
|
`;
|
|
18477
|
-
var editorContainer =
|
|
18622
|
+
var editorContainer = css85`
|
|
18478
18623
|
display: flex;
|
|
18479
18624
|
flex-flow: column;
|
|
18480
18625
|
flex-grow: 1;
|
|
18481
18626
|
position: relative;
|
|
18482
18627
|
`;
|
|
18483
|
-
var editorPlaceholder =
|
|
18628
|
+
var editorPlaceholder = css85`
|
|
18484
18629
|
color: var(--gray-500);
|
|
18485
18630
|
font-style: italic;
|
|
18486
18631
|
/* 1px is added to make sure caret is clearly visible when field is focused
|
|
@@ -18491,7 +18636,7 @@ var editorPlaceholder = css84`
|
|
|
18491
18636
|
top: var(--spacing-xs);
|
|
18492
18637
|
user-select: none;
|
|
18493
18638
|
`;
|
|
18494
|
-
var editorInput =
|
|
18639
|
+
var editorInput = css85`
|
|
18495
18640
|
background: var(--white);
|
|
18496
18641
|
border: 1px solid var(--white);
|
|
18497
18642
|
border-radius: var(--rounded-sm);
|
|
@@ -18575,8 +18720,8 @@ var ParameterRichTextInner = ({
|
|
|
18575
18720
|
},
|
|
18576
18721
|
editable: !readOnly
|
|
18577
18722
|
};
|
|
18578
|
-
return /* @__PURE__ */ jsxs71(
|
|
18579
|
-
/* @__PURE__ */
|
|
18723
|
+
return /* @__PURE__ */ jsxs71(Fragment19, { children: [
|
|
18724
|
+
/* @__PURE__ */ jsx106("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx106(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx106(
|
|
18580
18725
|
RichText,
|
|
18581
18726
|
{
|
|
18582
18727
|
onChange,
|
|
@@ -18632,20 +18777,20 @@ var RichText = ({
|
|
|
18632
18777
|
removeUpdateListener();
|
|
18633
18778
|
};
|
|
18634
18779
|
}, []);
|
|
18635
|
-
return /* @__PURE__ */ jsxs71(
|
|
18636
|
-
readOnly ? null : /* @__PURE__ */
|
|
18780
|
+
return /* @__PURE__ */ jsxs71(Fragment19, { children: [
|
|
18781
|
+
readOnly ? null : /* @__PURE__ */ jsx106(RichTextToolbar_default, { config, customControls }),
|
|
18637
18782
|
/* @__PURE__ */ jsxs71("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
|
|
18638
|
-
/* @__PURE__ */
|
|
18783
|
+
/* @__PURE__ */ jsx106(
|
|
18639
18784
|
RichTextPlugin,
|
|
18640
18785
|
{
|
|
18641
|
-
contentEditable: /* @__PURE__ */
|
|
18642
|
-
placeholder: /* @__PURE__ */
|
|
18786
|
+
contentEditable: /* @__PURE__ */ jsx106(ContentEditable, { css: editorInput, className: editorInputClassName }),
|
|
18787
|
+
placeholder: /* @__PURE__ */ jsx106("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
|
|
18643
18788
|
ErrorBoundary: LexicalErrorBoundary
|
|
18644
18789
|
}
|
|
18645
18790
|
),
|
|
18646
|
-
/* @__PURE__ */
|
|
18647
|
-
readOnly ? null : /* @__PURE__ */
|
|
18648
|
-
/* @__PURE__ */
|
|
18791
|
+
/* @__PURE__ */ jsx106(ListPlugin, {}),
|
|
18792
|
+
readOnly ? null : /* @__PURE__ */ jsx106(HistoryPlugin, {}),
|
|
18793
|
+
/* @__PURE__ */ jsx106(
|
|
18649
18794
|
LinkNodePlugin,
|
|
18650
18795
|
{
|
|
18651
18796
|
onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve(),
|
|
@@ -18655,24 +18800,24 @@ var RichText = ({
|
|
|
18655
18800
|
} : void 0
|
|
18656
18801
|
}
|
|
18657
18802
|
),
|
|
18658
|
-
/* @__PURE__ */
|
|
18659
|
-
/* @__PURE__ */
|
|
18660
|
-
/* @__PURE__ */
|
|
18661
|
-
/* @__PURE__ */
|
|
18803
|
+
/* @__PURE__ */ jsx106(ListIndentPlugin, { maxDepth: 4 }),
|
|
18804
|
+
/* @__PURE__ */ jsx106(DisableStylesPlugin, {}),
|
|
18805
|
+
/* @__PURE__ */ jsx106(MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
|
|
18806
|
+
/* @__PURE__ */ jsx106(Fragment19, { children })
|
|
18662
18807
|
] })
|
|
18663
18808
|
] });
|
|
18664
18809
|
};
|
|
18665
18810
|
|
|
18666
18811
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
18667
|
-
import { forwardRef as
|
|
18668
|
-
import { jsx as
|
|
18669
|
-
var ParameterSelect =
|
|
18812
|
+
import { forwardRef as forwardRef16 } from "react";
|
|
18813
|
+
import { jsx as jsx107, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
|
|
18814
|
+
var ParameterSelect = forwardRef16(
|
|
18670
18815
|
({ defaultOption, options, ...props }, ref) => {
|
|
18671
18816
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18672
|
-
return /* @__PURE__ */
|
|
18817
|
+
return /* @__PURE__ */ jsx107(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx107(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
18673
18818
|
}
|
|
18674
18819
|
);
|
|
18675
|
-
var ParameterSelectInner =
|
|
18820
|
+
var ParameterSelectInner = forwardRef16(
|
|
18676
18821
|
({ defaultOption, options, ...props }, ref) => {
|
|
18677
18822
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
18678
18823
|
return /* @__PURE__ */ jsxs72(
|
|
@@ -18684,10 +18829,10 @@ var ParameterSelectInner = forwardRef15(
|
|
|
18684
18829
|
ref,
|
|
18685
18830
|
...props,
|
|
18686
18831
|
children: [
|
|
18687
|
-
defaultOption ? /* @__PURE__ */
|
|
18832
|
+
defaultOption ? /* @__PURE__ */ jsx107("option", { value: "", children: defaultOption }) : null,
|
|
18688
18833
|
options.map((option) => {
|
|
18689
18834
|
var _a;
|
|
18690
|
-
return /* @__PURE__ */
|
|
18835
|
+
return /* @__PURE__ */ jsx107("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
18691
18836
|
})
|
|
18692
18837
|
]
|
|
18693
18838
|
}
|
|
@@ -18696,15 +18841,15 @@ var ParameterSelectInner = forwardRef15(
|
|
|
18696
18841
|
);
|
|
18697
18842
|
|
|
18698
18843
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
18699
|
-
import { forwardRef as
|
|
18700
|
-
import { jsx as
|
|
18701
|
-
var ParameterTextarea =
|
|
18844
|
+
import { forwardRef as forwardRef17 } from "react";
|
|
18845
|
+
import { jsx as jsx108 } from "@emotion/react/jsx-runtime";
|
|
18846
|
+
var ParameterTextarea = forwardRef17((props, ref) => {
|
|
18702
18847
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18703
|
-
return /* @__PURE__ */
|
|
18848
|
+
return /* @__PURE__ */ jsx108(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx108(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
18704
18849
|
});
|
|
18705
|
-
var ParameterTextareaInner =
|
|
18850
|
+
var ParameterTextareaInner = forwardRef17(({ ...props }, ref) => {
|
|
18706
18851
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
18707
|
-
return /* @__PURE__ */
|
|
18852
|
+
return /* @__PURE__ */ jsx108(
|
|
18708
18853
|
"textarea",
|
|
18709
18854
|
{
|
|
18710
18855
|
css: [input2, textarea2],
|
|
@@ -18717,25 +18862,25 @@ var ParameterTextareaInner = forwardRef16(({ ...props }, ref) => {
|
|
|
18717
18862
|
});
|
|
18718
18863
|
|
|
18719
18864
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
18720
|
-
import { forwardRef as
|
|
18721
|
-
import { jsx as
|
|
18722
|
-
var ParameterToggle =
|
|
18865
|
+
import { forwardRef as forwardRef18 } from "react";
|
|
18866
|
+
import { jsx as jsx109, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
|
|
18867
|
+
var ParameterToggle = forwardRef18((props, ref) => {
|
|
18723
18868
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18724
|
-
return /* @__PURE__ */
|
|
18869
|
+
return /* @__PURE__ */ jsx109(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx109(ParameterToggleInner, { ref, ...innerProps }) });
|
|
18725
18870
|
});
|
|
18726
|
-
var ParameterToggleInner =
|
|
18871
|
+
var ParameterToggleInner = forwardRef18(
|
|
18727
18872
|
({ ...props }, ref) => {
|
|
18728
18873
|
const { id, label } = useParameterShell();
|
|
18729
18874
|
return /* @__PURE__ */ jsxs73("label", { css: inputToggleLabel2, children: [
|
|
18730
|
-
/* @__PURE__ */
|
|
18731
|
-
/* @__PURE__ */
|
|
18875
|
+
/* @__PURE__ */ jsx109("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
18876
|
+
/* @__PURE__ */ jsx109("span", { css: inlineLabel2, children: label })
|
|
18732
18877
|
] });
|
|
18733
18878
|
}
|
|
18734
18879
|
);
|
|
18735
18880
|
|
|
18736
18881
|
// src/components/ProgressBar/ProgressBar.styles.ts
|
|
18737
|
-
import { css as
|
|
18738
|
-
var
|
|
18882
|
+
import { css as css86, keyframes as keyframes4 } from "@emotion/react";
|
|
18883
|
+
var container2 = css86`
|
|
18739
18884
|
background: var(--gray-50);
|
|
18740
18885
|
margin-block: var(--spacing-sm);
|
|
18741
18886
|
position: relative;
|
|
@@ -18745,13 +18890,13 @@ var container = css85`
|
|
|
18745
18890
|
border: solid 1px var(--gray-300);
|
|
18746
18891
|
`;
|
|
18747
18892
|
var themeMap = {
|
|
18748
|
-
primary:
|
|
18893
|
+
primary: css86`
|
|
18749
18894
|
--progress-color: var(--accent-light);
|
|
18750
18895
|
`,
|
|
18751
|
-
secondary:
|
|
18896
|
+
secondary: css86`
|
|
18752
18897
|
--progress-color: var(--accent-alt-light);
|
|
18753
18898
|
`,
|
|
18754
|
-
destructive:
|
|
18899
|
+
destructive: css86`
|
|
18755
18900
|
--progress-color: var(--brand-secondary-5);
|
|
18756
18901
|
`
|
|
18757
18902
|
};
|
|
@@ -18763,10 +18908,10 @@ var slidingBackgroundPosition = keyframes4`
|
|
|
18763
18908
|
background-position: 64px 0;
|
|
18764
18909
|
}
|
|
18765
18910
|
`;
|
|
18766
|
-
var determinate =
|
|
18911
|
+
var determinate = css86`
|
|
18767
18912
|
background-color: var(--progress-color);
|
|
18768
18913
|
`;
|
|
18769
|
-
var indeterminate =
|
|
18914
|
+
var indeterminate = css86`
|
|
18770
18915
|
background-image: linear-gradient(
|
|
18771
18916
|
45deg,
|
|
18772
18917
|
var(--progress-color) 25%,
|
|
@@ -18780,7 +18925,7 @@ var indeterminate = css85`
|
|
|
18780
18925
|
background-size: 64px 64px;
|
|
18781
18926
|
animation: ${slidingBackgroundPosition} 1s linear infinite;
|
|
18782
18927
|
`;
|
|
18783
|
-
var bar =
|
|
18928
|
+
var bar = css86`
|
|
18784
18929
|
position: absolute;
|
|
18785
18930
|
inset: 0;
|
|
18786
18931
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
@@ -18788,7 +18933,7 @@ var bar = css85`
|
|
|
18788
18933
|
`;
|
|
18789
18934
|
|
|
18790
18935
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
18791
|
-
import { jsx as
|
|
18936
|
+
import { jsx as jsx110 } from "@emotion/react/jsx-runtime";
|
|
18792
18937
|
function ProgressBar({
|
|
18793
18938
|
current,
|
|
18794
18939
|
max,
|
|
@@ -18798,10 +18943,10 @@ function ProgressBar({
|
|
|
18798
18943
|
}) {
|
|
18799
18944
|
const valueNow = Math.min(current, max);
|
|
18800
18945
|
const valuePercentage = max > 0 ? Math.ceil(100 / max * valueNow) : 0;
|
|
18801
|
-
return /* @__PURE__ */
|
|
18946
|
+
return /* @__PURE__ */ jsx110(
|
|
18802
18947
|
"div",
|
|
18803
18948
|
{
|
|
18804
|
-
css:
|
|
18949
|
+
css: container2,
|
|
18805
18950
|
role: "progressbar",
|
|
18806
18951
|
"aria-busy": valuePercentage !== 100,
|
|
18807
18952
|
"aria-invalid": false,
|
|
@@ -18809,7 +18954,7 @@ function ProgressBar({
|
|
|
18809
18954
|
"aria-valuemax": max,
|
|
18810
18955
|
"aria-valuenow": valueNow,
|
|
18811
18956
|
...props,
|
|
18812
|
-
children: /* @__PURE__ */
|
|
18957
|
+
children: /* @__PURE__ */ jsx110(
|
|
18813
18958
|
"div",
|
|
18814
18959
|
{
|
|
18815
18960
|
css: [
|
|
@@ -18828,28 +18973,28 @@ function ProgressBar({
|
|
|
18828
18973
|
}
|
|
18829
18974
|
|
|
18830
18975
|
// src/components/ProgressList/ProgressList.tsx
|
|
18831
|
-
import { css as
|
|
18976
|
+
import { css as css88 } from "@emotion/react";
|
|
18832
18977
|
import { CgCheckO as CgCheckO2 } from "@react-icons/all-files/cg/CgCheckO";
|
|
18833
18978
|
import { CgRadioCheck } from "@react-icons/all-files/cg/CgRadioCheck";
|
|
18834
18979
|
import { CgRecord } from "@react-icons/all-files/cg/CgRecord";
|
|
18835
18980
|
import { useMemo as useMemo4 } from "react";
|
|
18836
18981
|
|
|
18837
18982
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
18838
|
-
import { css as
|
|
18839
|
-
var progressListStyles =
|
|
18983
|
+
import { css as css87 } from "@emotion/react";
|
|
18984
|
+
var progressListStyles = css87`
|
|
18840
18985
|
display: flex;
|
|
18841
18986
|
flex-direction: column;
|
|
18842
18987
|
gap: var(--spacing-sm);
|
|
18843
18988
|
list-style-type: none;
|
|
18844
18989
|
`;
|
|
18845
|
-
var progressListItemStyles =
|
|
18990
|
+
var progressListItemStyles = css87`
|
|
18846
18991
|
display: flex;
|
|
18847
18992
|
gap: var(--spacing-base);
|
|
18848
18993
|
align-items: center;
|
|
18849
18994
|
`;
|
|
18850
18995
|
|
|
18851
18996
|
// src/components/ProgressList/ProgressList.tsx
|
|
18852
|
-
import { jsx as
|
|
18997
|
+
import { jsx as jsx111, jsxs as jsxs74 } from "@emotion/react/jsx-runtime";
|
|
18853
18998
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
18854
18999
|
const itemsWithStatus = useMemo4(() => {
|
|
18855
19000
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -18863,8 +19008,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
18863
19008
|
return { ...item, status };
|
|
18864
19009
|
});
|
|
18865
19010
|
}, [items, inProgressId]);
|
|
18866
|
-
return /* @__PURE__ */
|
|
18867
|
-
return /* @__PURE__ */
|
|
19011
|
+
return /* @__PURE__ */ jsx111("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
19012
|
+
return /* @__PURE__ */ jsx111(
|
|
18868
19013
|
ProgressListItem,
|
|
18869
19014
|
{
|
|
18870
19015
|
status,
|
|
@@ -18897,12 +19042,12 @@ var ProgressListItem = ({
|
|
|
18897
19042
|
}, [status, error]);
|
|
18898
19043
|
const statusStyles = useMemo4(() => {
|
|
18899
19044
|
if (error) {
|
|
18900
|
-
return errorLevel === "caution" ?
|
|
19045
|
+
return errorLevel === "caution" ? css88`
|
|
18901
19046
|
color: rgb(161, 98, 7);
|
|
18902
19047
|
& svg {
|
|
18903
19048
|
color: rgb(250, 204, 21);
|
|
18904
19049
|
}
|
|
18905
|
-
` :
|
|
19050
|
+
` : css88`
|
|
18906
19051
|
color: rgb(185, 28, 28);
|
|
18907
19052
|
& svg {
|
|
18908
19053
|
color: var(--brand-primary-2);
|
|
@@ -18910,35 +19055,35 @@ var ProgressListItem = ({
|
|
|
18910
19055
|
`;
|
|
18911
19056
|
}
|
|
18912
19057
|
const colorPerStatus = {
|
|
18913
|
-
completed:
|
|
19058
|
+
completed: css88`
|
|
18914
19059
|
opacity: 0.75;
|
|
18915
19060
|
`,
|
|
18916
|
-
inProgress:
|
|
19061
|
+
inProgress: css88`
|
|
18917
19062
|
-webkit-text-stroke-width: thin;
|
|
18918
19063
|
`,
|
|
18919
|
-
queued:
|
|
19064
|
+
queued: css88`
|
|
18920
19065
|
opacity: 0.5;
|
|
18921
19066
|
`
|
|
18922
19067
|
};
|
|
18923
19068
|
return colorPerStatus[status];
|
|
18924
19069
|
}, [status, error, errorLevel]);
|
|
18925
19070
|
return /* @__PURE__ */ jsxs74("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
18926
|
-
/* @__PURE__ */
|
|
19071
|
+
/* @__PURE__ */ jsx111(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx111("div", { children: /* @__PURE__ */ jsx111(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
|
|
18927
19072
|
/* @__PURE__ */ jsxs74("div", { children: [
|
|
18928
19073
|
children,
|
|
18929
|
-
/* @__PURE__ */
|
|
19074
|
+
/* @__PURE__ */ jsx111("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
18930
19075
|
] })
|
|
18931
19076
|
] });
|
|
18932
19077
|
};
|
|
18933
19078
|
|
|
18934
19079
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
18935
|
-
import { css as
|
|
19080
|
+
import { css as css90 } from "@emotion/react";
|
|
18936
19081
|
import { CgCheck as CgCheck4 } from "@react-icons/all-files/cg/CgCheck";
|
|
18937
19082
|
import { useCallback as useCallback7, useMemo as useMemo5 } from "react";
|
|
18938
19083
|
|
|
18939
19084
|
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
18940
|
-
import { css as
|
|
18941
|
-
var segmentedControlStyles =
|
|
19085
|
+
import { css as css89 } from "@emotion/react";
|
|
19086
|
+
var segmentedControlStyles = css89`
|
|
18942
19087
|
--segmented-control-rounded-value: var(--rounded-base);
|
|
18943
19088
|
--segmented-control-border-width: 1px;
|
|
18944
19089
|
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
@@ -18957,14 +19102,14 @@ var segmentedControlStyles = css88`
|
|
|
18957
19102
|
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
18958
19103
|
font-size: var(--fs-xs);
|
|
18959
19104
|
`;
|
|
18960
|
-
var segmentedControlVerticalStyles =
|
|
19105
|
+
var segmentedControlVerticalStyles = css89`
|
|
18961
19106
|
flex-direction: column;
|
|
18962
19107
|
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
18963
19108
|
var(--segmented-control-rounded-value) 0 0;
|
|
18964
19109
|
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
18965
19110
|
var(--segmented-control-rounded-value);
|
|
18966
19111
|
`;
|
|
18967
|
-
var segmentedControlItemStyles =
|
|
19112
|
+
var segmentedControlItemStyles = css89`
|
|
18968
19113
|
&:first-of-type label {
|
|
18969
19114
|
border-radius: var(--segmented-control-first-border-radius);
|
|
18970
19115
|
}
|
|
@@ -18972,10 +19117,10 @@ var segmentedControlItemStyles = css88`
|
|
|
18972
19117
|
border-radius: var(--segmented-control-last-border-radius);
|
|
18973
19118
|
}
|
|
18974
19119
|
`;
|
|
18975
|
-
var segmentedControlInputStyles =
|
|
19120
|
+
var segmentedControlInputStyles = css89`
|
|
18976
19121
|
${accessibleHidden}
|
|
18977
19122
|
`;
|
|
18978
|
-
var segmentedControlLabelStyles = (checked,
|
|
19123
|
+
var segmentedControlLabelStyles = (checked, disabled2) => css89`
|
|
18979
19124
|
position: relative;
|
|
18980
19125
|
display: flex;
|
|
18981
19126
|
align-items: center;
|
|
@@ -19017,7 +19162,7 @@ var segmentedControlLabelStyles = (checked, disabled) => css88`
|
|
|
19017
19162
|
// once Firefox supports :has selector
|
|
19018
19163
|
@supports not selector(:has(*)) {
|
|
19019
19164
|
// equivalent to &:has(:checked:not(:disabled))
|
|
19020
|
-
${checked && !
|
|
19165
|
+
${checked && !disabled2 ? `
|
|
19021
19166
|
background-color: var(--segmented-control-selected-color);
|
|
19022
19167
|
outline: var(--segmented-control-border-width) solid var(--segmented-control-selected-color);
|
|
19023
19168
|
box-shadow: 0 0.43em 1.7em 0 rgba(0, 0, 0, 0.15);
|
|
@@ -19027,45 +19172,45 @@ var segmentedControlLabelStyles = (checked, disabled) => css88`
|
|
|
19027
19172
|
|
|
19028
19173
|
// equivalent to &:hover:not(:has(:disabled, :checked))
|
|
19029
19174
|
&:hover {
|
|
19030
|
-
${!checked && !
|
|
19175
|
+
${!checked && !disabled2 ? `background-color: var(--gray-100);` : void 0}
|
|
19031
19176
|
}
|
|
19032
19177
|
|
|
19033
19178
|
// equivalent to &:has(:disabled)
|
|
19034
|
-
${
|
|
19179
|
+
${disabled2 ? `
|
|
19035
19180
|
color: var(--gray-400);
|
|
19036
19181
|
cursor: default;` : void 0}
|
|
19037
19182
|
|
|
19038
19183
|
// equivalent to &:has(:checked:disabled)
|
|
19039
|
-
${checked &&
|
|
19184
|
+
${checked && disabled2 && `
|
|
19040
19185
|
color: var(--gray-50);
|
|
19041
19186
|
background-color: var(--gray-400);
|
|
19042
19187
|
`}
|
|
19043
19188
|
}
|
|
19044
19189
|
`;
|
|
19045
|
-
var segmentedControlLabelIconOnlyStyles =
|
|
19190
|
+
var segmentedControlLabelIconOnlyStyles = css89`
|
|
19046
19191
|
padding-inline: 0.5em;
|
|
19047
19192
|
`;
|
|
19048
|
-
var segmentedControlLabelCheckStyles =
|
|
19193
|
+
var segmentedControlLabelCheckStyles = css89`
|
|
19049
19194
|
opacity: 0.5;
|
|
19050
19195
|
`;
|
|
19051
|
-
var segmentedControlLabelContentStyles =
|
|
19196
|
+
var segmentedControlLabelContentStyles = css89`
|
|
19052
19197
|
display: flex;
|
|
19053
19198
|
align-items: center;
|
|
19054
19199
|
justify-content: center;
|
|
19055
19200
|
gap: var(--spacing-sm);
|
|
19056
19201
|
height: 100%;
|
|
19057
19202
|
`;
|
|
19058
|
-
var segmentedControlLabelTextStyles =
|
|
19203
|
+
var segmentedControlLabelTextStyles = css89``;
|
|
19059
19204
|
|
|
19060
19205
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
19061
|
-
import { jsx as
|
|
19206
|
+
import { jsx as jsx112, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
|
|
19062
19207
|
var SegmentedControl = ({
|
|
19063
19208
|
name,
|
|
19064
19209
|
options,
|
|
19065
19210
|
value,
|
|
19066
19211
|
onChange,
|
|
19067
19212
|
noCheckmark = false,
|
|
19068
|
-
disabled = false,
|
|
19213
|
+
disabled: disabled2 = false,
|
|
19069
19214
|
orientation = "horizontal",
|
|
19070
19215
|
size = "md",
|
|
19071
19216
|
...props
|
|
@@ -19080,28 +19225,28 @@ var SegmentedControl = ({
|
|
|
19080
19225
|
);
|
|
19081
19226
|
const sizeStyles = useMemo5(() => {
|
|
19082
19227
|
const map = {
|
|
19083
|
-
sm:
|
|
19084
|
-
md:
|
|
19085
|
-
lg:
|
|
19228
|
+
sm: css90({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
19229
|
+
md: css90({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
19230
|
+
lg: css90({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
|
|
19086
19231
|
};
|
|
19087
19232
|
return map[size];
|
|
19088
19233
|
}, [size]);
|
|
19089
19234
|
const isIconOnly = useMemo5(() => {
|
|
19090
19235
|
return options.every((option) => option.icon && !option.label);
|
|
19091
19236
|
}, [options]);
|
|
19092
|
-
return /* @__PURE__ */
|
|
19237
|
+
return /* @__PURE__ */ jsx112(
|
|
19093
19238
|
"div",
|
|
19094
19239
|
{
|
|
19095
19240
|
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
19096
19241
|
...props,
|
|
19097
19242
|
children: options.map((option, index) => {
|
|
19098
19243
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
19099
|
-
const isDisabled =
|
|
19100
|
-
return /* @__PURE__ */
|
|
19244
|
+
const isDisabled = disabled2 || option.disabled;
|
|
19245
|
+
return /* @__PURE__ */ jsx112(
|
|
19101
19246
|
Tooltip,
|
|
19102
19247
|
{
|
|
19103
19248
|
title: isDisabled || !option.tooltip ? "" : option.tooltip,
|
|
19104
|
-
children: /* @__PURE__ */
|
|
19249
|
+
children: /* @__PURE__ */ jsx112("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ jsxs75(
|
|
19105
19250
|
"label",
|
|
19106
19251
|
{
|
|
19107
19252
|
css: [
|
|
@@ -19110,7 +19255,7 @@ var SegmentedControl = ({
|
|
|
19110
19255
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
19111
19256
|
],
|
|
19112
19257
|
children: [
|
|
19113
|
-
/* @__PURE__ */
|
|
19258
|
+
/* @__PURE__ */ jsx112(
|
|
19114
19259
|
"input",
|
|
19115
19260
|
{
|
|
19116
19261
|
css: segmentedControlInputStyles,
|
|
@@ -19122,10 +19267,10 @@ var SegmentedControl = ({
|
|
|
19122
19267
|
disabled: isDisabled
|
|
19123
19268
|
}
|
|
19124
19269
|
),
|
|
19125
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */
|
|
19270
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx112(CgCheck4, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
19126
19271
|
/* @__PURE__ */ jsxs75("span", { css: segmentedControlLabelContentStyles, children: [
|
|
19127
|
-
!option.icon ? null : /* @__PURE__ */
|
|
19128
|
-
!text ? null : /* @__PURE__ */
|
|
19272
|
+
!option.icon ? null : /* @__PURE__ */ jsx112(Icon, { icon: option.icon, size: "1.5em", iconColor: "currentColor" }),
|
|
19273
|
+
!text ? null : /* @__PURE__ */ jsx112("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
19129
19274
|
] })
|
|
19130
19275
|
]
|
|
19131
19276
|
}
|
|
@@ -19139,18 +19284,18 @@ var SegmentedControl = ({
|
|
|
19139
19284
|
};
|
|
19140
19285
|
|
|
19141
19286
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
19142
|
-
import { css as
|
|
19287
|
+
import { css as css91, keyframes as keyframes5 } from "@emotion/react";
|
|
19143
19288
|
var lightFadingOut = keyframes5`
|
|
19144
19289
|
from { opacity: 0.1; }
|
|
19145
19290
|
to { opacity: 0.025; }
|
|
19146
19291
|
`;
|
|
19147
|
-
var skeletonStyles =
|
|
19292
|
+
var skeletonStyles = css91`
|
|
19148
19293
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
19149
19294
|
background-color: var(--gray-900);
|
|
19150
19295
|
`;
|
|
19151
19296
|
|
|
19152
19297
|
// src/components/Skeleton/Skeleton.tsx
|
|
19153
|
-
import { jsx as
|
|
19298
|
+
import { jsx as jsx113 } from "@emotion/react/jsx-runtime";
|
|
19154
19299
|
var Skeleton = ({
|
|
19155
19300
|
width = "100%",
|
|
19156
19301
|
height = "1.25rem",
|
|
@@ -19158,7 +19303,7 @@ var Skeleton = ({
|
|
|
19158
19303
|
circle = false,
|
|
19159
19304
|
children,
|
|
19160
19305
|
...otherProps
|
|
19161
|
-
}) => /* @__PURE__ */
|
|
19306
|
+
}) => /* @__PURE__ */ jsx113(
|
|
19162
19307
|
"div",
|
|
19163
19308
|
{
|
|
19164
19309
|
css: [
|
|
@@ -19181,8 +19326,8 @@ var Skeleton = ({
|
|
|
19181
19326
|
import * as React23 from "react";
|
|
19182
19327
|
|
|
19183
19328
|
// src/components/Switch/Switch.styles.ts
|
|
19184
|
-
import { css as
|
|
19185
|
-
var SwitchInputContainer =
|
|
19329
|
+
import { css as css92 } from "@emotion/react";
|
|
19330
|
+
var SwitchInputContainer = css92`
|
|
19186
19331
|
cursor: pointer;
|
|
19187
19332
|
display: inline-block;
|
|
19188
19333
|
position: relative;
|
|
@@ -19191,7 +19336,7 @@ var SwitchInputContainer = css91`
|
|
|
19191
19336
|
vertical-align: middle;
|
|
19192
19337
|
user-select: none;
|
|
19193
19338
|
`;
|
|
19194
|
-
var SwitchInput =
|
|
19339
|
+
var SwitchInput = css92`
|
|
19195
19340
|
appearance: none;
|
|
19196
19341
|
border-radius: var(--rounded-full);
|
|
19197
19342
|
background-color: var(--white);
|
|
@@ -19229,7 +19374,7 @@ var SwitchInput = css91`
|
|
|
19229
19374
|
cursor: not-allowed;
|
|
19230
19375
|
}
|
|
19231
19376
|
`;
|
|
19232
|
-
var SwitchInputDisabled =
|
|
19377
|
+
var SwitchInputDisabled = css92`
|
|
19233
19378
|
opacity: var(--opacity-50);
|
|
19234
19379
|
cursor: not-allowed;
|
|
19235
19380
|
|
|
@@ -19237,7 +19382,7 @@ var SwitchInputDisabled = css91`
|
|
|
19237
19382
|
cursor: not-allowed;
|
|
19238
19383
|
}
|
|
19239
19384
|
`;
|
|
19240
|
-
var SwitchInputLabel =
|
|
19385
|
+
var SwitchInputLabel = css92`
|
|
19241
19386
|
align-items: center;
|
|
19242
19387
|
color: var(--brand-secondary-1);
|
|
19243
19388
|
display: inline-flex;
|
|
@@ -19258,26 +19403,26 @@ var SwitchInputLabel = css91`
|
|
|
19258
19403
|
top: 0;
|
|
19259
19404
|
}
|
|
19260
19405
|
`;
|
|
19261
|
-
var SwitchText =
|
|
19406
|
+
var SwitchText = css92`
|
|
19262
19407
|
color: var(--gray-500);
|
|
19263
19408
|
font-size: var(--fs-sm);
|
|
19264
19409
|
padding-inline: var(--spacing-2xl) 0;
|
|
19265
19410
|
`;
|
|
19266
19411
|
|
|
19267
19412
|
// src/components/Switch/Switch.tsx
|
|
19268
|
-
import { Fragment as
|
|
19413
|
+
import { Fragment as Fragment20, jsx as jsx114, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
|
|
19269
19414
|
var Switch = React23.forwardRef(
|
|
19270
19415
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
19271
19416
|
let additionalText = infoText;
|
|
19272
19417
|
if (infoText && toggleText) {
|
|
19273
19418
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
19274
19419
|
}
|
|
19275
|
-
return /* @__PURE__ */ jsxs76(
|
|
19420
|
+
return /* @__PURE__ */ jsxs76(Fragment20, { children: [
|
|
19276
19421
|
/* @__PURE__ */ jsxs76("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
19277
|
-
/* @__PURE__ */
|
|
19278
|
-
/* @__PURE__ */
|
|
19422
|
+
/* @__PURE__ */ jsx114("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
19423
|
+
/* @__PURE__ */ jsx114("span", { css: SwitchInputLabel, children: label })
|
|
19279
19424
|
] }),
|
|
19280
|
-
additionalText ? /* @__PURE__ */
|
|
19425
|
+
additionalText ? /* @__PURE__ */ jsx114("p", { css: SwitchText, children: additionalText }) : null,
|
|
19281
19426
|
children
|
|
19282
19427
|
] });
|
|
19283
19428
|
}
|
|
@@ -19287,8 +19432,8 @@ var Switch = React23.forwardRef(
|
|
|
19287
19432
|
import * as React24 from "react";
|
|
19288
19433
|
|
|
19289
19434
|
// src/components/Table/Table.styles.ts
|
|
19290
|
-
import { css as
|
|
19291
|
-
var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) =>
|
|
19435
|
+
import { css as css93 } from "@emotion/react";
|
|
19436
|
+
var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css93`
|
|
19292
19437
|
border-bottom: 1px solid var(--gray-400);
|
|
19293
19438
|
border-collapse: collapse;
|
|
19294
19439
|
min-width: 100%;
|
|
@@ -19299,60 +19444,60 @@ var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css92
|
|
|
19299
19444
|
padding: ${cellPadding};
|
|
19300
19445
|
}
|
|
19301
19446
|
`;
|
|
19302
|
-
var tableHead =
|
|
19447
|
+
var tableHead = css93`
|
|
19303
19448
|
background: var(--gray-100);
|
|
19304
19449
|
color: var(--brand-secondary-1);
|
|
19305
19450
|
text-align: left;
|
|
19306
19451
|
`;
|
|
19307
|
-
var tableRow =
|
|
19452
|
+
var tableRow = css93`
|
|
19308
19453
|
border-bottom: 1px solid var(--gray-200);
|
|
19309
19454
|
`;
|
|
19310
|
-
var tableCellHead =
|
|
19455
|
+
var tableCellHead = css93`
|
|
19311
19456
|
font-size: var(--fs-sm);
|
|
19312
19457
|
text-transform: uppercase;
|
|
19313
19458
|
font-weight: var(--fw-bold);
|
|
19314
19459
|
`;
|
|
19315
19460
|
|
|
19316
19461
|
// src/components/Table/Table.tsx
|
|
19317
|
-
import { jsx as
|
|
19462
|
+
import { jsx as jsx115 } from "@emotion/react/jsx-runtime";
|
|
19318
19463
|
var Table = React24.forwardRef(
|
|
19319
19464
|
({ children, cellPadding, ...otherProps }, ref) => {
|
|
19320
|
-
return /* @__PURE__ */
|
|
19465
|
+
return /* @__PURE__ */ jsx115("table", { ref, css: table({ cellPadding }), ...otherProps, children });
|
|
19321
19466
|
}
|
|
19322
19467
|
);
|
|
19323
19468
|
var TableHead = React24.forwardRef(
|
|
19324
19469
|
({ children, ...otherProps }, ref) => {
|
|
19325
|
-
return /* @__PURE__ */
|
|
19470
|
+
return /* @__PURE__ */ jsx115("thead", { ref, css: tableHead, ...otherProps, children });
|
|
19326
19471
|
}
|
|
19327
19472
|
);
|
|
19328
19473
|
var TableBody = React24.forwardRef(
|
|
19329
19474
|
({ children, ...otherProps }, ref) => {
|
|
19330
|
-
return /* @__PURE__ */
|
|
19475
|
+
return /* @__PURE__ */ jsx115("tbody", { ref, ...otherProps, children });
|
|
19331
19476
|
}
|
|
19332
19477
|
);
|
|
19333
19478
|
var TableFoot = React24.forwardRef(
|
|
19334
19479
|
({ children, ...otherProps }, ref) => {
|
|
19335
|
-
return /* @__PURE__ */
|
|
19480
|
+
return /* @__PURE__ */ jsx115("tfoot", { ref, ...otherProps, children });
|
|
19336
19481
|
}
|
|
19337
19482
|
);
|
|
19338
19483
|
var TableRow = React24.forwardRef(
|
|
19339
19484
|
({ children, ...otherProps }, ref) => {
|
|
19340
|
-
return /* @__PURE__ */
|
|
19485
|
+
return /* @__PURE__ */ jsx115("tr", { ref, css: tableRow, ...otherProps, children });
|
|
19341
19486
|
}
|
|
19342
19487
|
);
|
|
19343
19488
|
var TableCellHead = React24.forwardRef(
|
|
19344
19489
|
({ children, ...otherProps }, ref) => {
|
|
19345
|
-
return /* @__PURE__ */
|
|
19490
|
+
return /* @__PURE__ */ jsx115("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
19346
19491
|
}
|
|
19347
19492
|
);
|
|
19348
19493
|
var TableCellData = React24.forwardRef(
|
|
19349
19494
|
({ children, ...otherProps }, ref) => {
|
|
19350
|
-
return /* @__PURE__ */
|
|
19495
|
+
return /* @__PURE__ */ jsx115("td", { ref, ...otherProps, children });
|
|
19351
19496
|
}
|
|
19352
19497
|
);
|
|
19353
19498
|
|
|
19354
19499
|
// src/components/Tabs/Tabs.tsx
|
|
19355
|
-
import { createContext as
|
|
19500
|
+
import { createContext as createContext5, useContext as useContext6, useEffect as useEffect15, useMemo as useMemo6 } from "react";
|
|
19356
19501
|
import {
|
|
19357
19502
|
Tab as ReakitTab,
|
|
19358
19503
|
TabList as ReakitTabList,
|
|
@@ -19361,8 +19506,8 @@ import {
|
|
|
19361
19506
|
} from "reakit/Tab";
|
|
19362
19507
|
|
|
19363
19508
|
// src/components/Tabs/Tabs.styles.ts
|
|
19364
|
-
import { css as
|
|
19365
|
-
var tabButtonStyles =
|
|
19509
|
+
import { css as css94 } from "@emotion/react";
|
|
19510
|
+
var tabButtonStyles = css94`
|
|
19366
19511
|
align-items: center;
|
|
19367
19512
|
border: 0;
|
|
19368
19513
|
height: 2.5rem;
|
|
@@ -19379,17 +19524,17 @@ var tabButtonStyles = css93`
|
|
|
19379
19524
|
box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
|
|
19380
19525
|
}
|
|
19381
19526
|
`;
|
|
19382
|
-
var tabButtonGroupStyles =
|
|
19527
|
+
var tabButtonGroupStyles = css94`
|
|
19383
19528
|
display: flex;
|
|
19384
19529
|
gap: var(--spacing-base);
|
|
19385
19530
|
border-bottom: 1px solid var(--gray-300);
|
|
19386
19531
|
`;
|
|
19387
19532
|
|
|
19388
19533
|
// src/components/Tabs/Tabs.tsx
|
|
19389
|
-
import { jsx as
|
|
19390
|
-
var CurrentTabContext =
|
|
19534
|
+
import { jsx as jsx116 } from "@emotion/react/jsx-runtime";
|
|
19535
|
+
var CurrentTabContext = createContext5(null);
|
|
19391
19536
|
var useCurrentTab = () => {
|
|
19392
|
-
const context =
|
|
19537
|
+
const context = useContext6(CurrentTabContext);
|
|
19393
19538
|
if (!context) {
|
|
19394
19539
|
throw new Error("This component can only be used inside <Tabs>");
|
|
19395
19540
|
}
|
|
@@ -19416,24 +19561,24 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
19416
19561
|
tab.setSelectedId(selected);
|
|
19417
19562
|
}
|
|
19418
19563
|
}, [selected]);
|
|
19419
|
-
return /* @__PURE__ */
|
|
19564
|
+
return /* @__PURE__ */ jsx116(CurrentTabContext.Provider, { value: tab, children });
|
|
19420
19565
|
};
|
|
19421
19566
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
19422
19567
|
const currentTab = useCurrentTab();
|
|
19423
|
-
return /* @__PURE__ */
|
|
19568
|
+
return /* @__PURE__ */ jsx116(ReakitTabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
19424
19569
|
};
|
|
19425
19570
|
var TabButton = ({ children, id, ...props }) => {
|
|
19426
19571
|
const currentTab = useCurrentTab();
|
|
19427
|
-
return /* @__PURE__ */
|
|
19572
|
+
return /* @__PURE__ */ jsx116(ReakitTab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
19428
19573
|
};
|
|
19429
19574
|
var TabContent = ({ children, ...props }) => {
|
|
19430
19575
|
const currentTab = useCurrentTab();
|
|
19431
|
-
return /* @__PURE__ */
|
|
19576
|
+
return /* @__PURE__ */ jsx116(ReakitTabPanel, { ...props, ...currentTab, children });
|
|
19432
19577
|
};
|
|
19433
19578
|
|
|
19434
19579
|
// src/components/Validation/StatusBullet.styles.ts
|
|
19435
|
-
import { css as
|
|
19436
|
-
var StatusBulletContainer =
|
|
19580
|
+
import { css as css95 } from "@emotion/react";
|
|
19581
|
+
var StatusBulletContainer = css95`
|
|
19437
19582
|
align-items: center;
|
|
19438
19583
|
align-self: center;
|
|
19439
19584
|
color: var(--gray-500);
|
|
@@ -19450,33 +19595,33 @@ var StatusBulletContainer = css94`
|
|
|
19450
19595
|
display: block;
|
|
19451
19596
|
}
|
|
19452
19597
|
`;
|
|
19453
|
-
var StatusBulletBase =
|
|
19598
|
+
var StatusBulletBase = css95`
|
|
19454
19599
|
font-size: var(--fs-sm);
|
|
19455
19600
|
&:before {
|
|
19456
19601
|
width: var(--fs-xs);
|
|
19457
19602
|
height: var(--fs-xs);
|
|
19458
19603
|
}
|
|
19459
19604
|
`;
|
|
19460
|
-
var StatusBulletSmall =
|
|
19605
|
+
var StatusBulletSmall = css95`
|
|
19461
19606
|
font-size: var(--fs-xs);
|
|
19462
19607
|
&:before {
|
|
19463
19608
|
width: var(--fs-xxs);
|
|
19464
19609
|
height: var(--fs-xxs);
|
|
19465
19610
|
}
|
|
19466
19611
|
`;
|
|
19467
|
-
var StatusDraft =
|
|
19612
|
+
var StatusDraft = css95`
|
|
19468
19613
|
&:before {
|
|
19469
19614
|
background: var(--white);
|
|
19470
19615
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
19471
19616
|
}
|
|
19472
19617
|
`;
|
|
19473
|
-
var StatusModified =
|
|
19618
|
+
var StatusModified = css95`
|
|
19474
19619
|
&:before {
|
|
19475
19620
|
background: linear-gradient(to right, var(--white) 50%, var(--primary-action-default) 50% 100%);
|
|
19476
19621
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
19477
19622
|
}
|
|
19478
19623
|
`;
|
|
19479
|
-
var StatusError =
|
|
19624
|
+
var StatusError = css95`
|
|
19480
19625
|
color: var(--error);
|
|
19481
19626
|
&:before {
|
|
19482
19627
|
/* TODO: replace this with an svg icon */
|
|
@@ -19489,24 +19634,24 @@ var StatusError = css94`
|
|
|
19489
19634
|
);
|
|
19490
19635
|
}
|
|
19491
19636
|
`;
|
|
19492
|
-
var StatusPublished =
|
|
19637
|
+
var StatusPublished = css95`
|
|
19493
19638
|
&:before {
|
|
19494
19639
|
background: var(--primary-action-default);
|
|
19495
19640
|
}
|
|
19496
19641
|
`;
|
|
19497
|
-
var StatusOrphan =
|
|
19642
|
+
var StatusOrphan = css95`
|
|
19498
19643
|
&:before {
|
|
19499
19644
|
background: var(--brand-secondary-5);
|
|
19500
19645
|
}
|
|
19501
19646
|
`;
|
|
19502
|
-
var StatusUnknown =
|
|
19647
|
+
var StatusUnknown = css95`
|
|
19503
19648
|
&:before {
|
|
19504
19649
|
background: var(--brand-secondary-1);
|
|
19505
19650
|
}
|
|
19506
19651
|
`;
|
|
19507
19652
|
|
|
19508
19653
|
// src/components/Validation/StatusBullet.tsx
|
|
19509
|
-
import { jsx as
|
|
19654
|
+
import { jsx as jsx117 } from "@emotion/react/jsx-runtime";
|
|
19510
19655
|
var StatusBullet = ({
|
|
19511
19656
|
status,
|
|
19512
19657
|
hideText = false,
|
|
@@ -19525,7 +19670,7 @@ var StatusBullet = ({
|
|
|
19525
19670
|
Unknown: StatusUnknown
|
|
19526
19671
|
};
|
|
19527
19672
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
19528
|
-
return /* @__PURE__ */
|
|
19673
|
+
return /* @__PURE__ */ jsx117(
|
|
19529
19674
|
"span",
|
|
19530
19675
|
{
|
|
19531
19676
|
role: "status",
|
|
@@ -19606,13 +19751,13 @@ export {
|
|
|
19606
19751
|
LoadingOverlay,
|
|
19607
19752
|
MediaCard,
|
|
19608
19753
|
Menu,
|
|
19609
|
-
MenuContext,
|
|
19610
19754
|
MenuGroup,
|
|
19611
19755
|
MenuItem,
|
|
19612
19756
|
MenuItemSeparator,
|
|
19613
19757
|
Modal,
|
|
19614
19758
|
MultilineChip,
|
|
19615
19759
|
PageHeaderSection,
|
|
19760
|
+
Pagination,
|
|
19616
19761
|
Paragraph,
|
|
19617
19762
|
ParameterDataResource,
|
|
19618
19763
|
ParameterDrawerHeader,
|
|
@@ -19655,6 +19800,7 @@ export {
|
|
|
19655
19800
|
StatusBullet,
|
|
19656
19801
|
SuccessMessage,
|
|
19657
19802
|
Switch,
|
|
19803
|
+
TAKEOVER_STACK_ID,
|
|
19658
19804
|
TabButton,
|
|
19659
19805
|
TabButtonGroup,
|
|
19660
19806
|
TabContent,
|
|
@@ -19666,6 +19812,7 @@ export {
|
|
|
19666
19812
|
TableHead,
|
|
19667
19813
|
TableRow,
|
|
19668
19814
|
Tabs,
|
|
19815
|
+
TakeoverDrawerRenderer,
|
|
19669
19816
|
Textarea,
|
|
19670
19817
|
Theme,
|
|
19671
19818
|
Tile2 as Tile,
|
|
@@ -19750,7 +19897,6 @@ export {
|
|
|
19750
19897
|
useCurrentTab,
|
|
19751
19898
|
useDrawer,
|
|
19752
19899
|
useIconContext,
|
|
19753
|
-
useMenuContext,
|
|
19754
19900
|
useOutsideClick,
|
|
19755
19901
|
useParameterShell,
|
|
19756
19902
|
useShortcut,
|