@uniformdev/design-system 19.69.0 → 19.73.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 +869 -700
- package/dist/index.d.mts +51 -16
- package/dist/index.d.ts +51 -16
- package/dist/index.js +1276 -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,91 +11680,102 @@ 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
|
);
|
|
11775
11755
|
}
|
|
11776
11756
|
);
|
|
11757
|
+
var MenuItemInner = ({
|
|
11758
|
+
ref,
|
|
11759
|
+
children,
|
|
11760
|
+
className,
|
|
11761
|
+
icon,
|
|
11762
|
+
textColor = "base",
|
|
11763
|
+
active: active2,
|
|
11764
|
+
...props
|
|
11765
|
+
}) => {
|
|
11766
|
+
const resolvedChildren = typeof children === "function" ? children(props) : children;
|
|
11767
|
+
return /* @__PURE__ */ jsx27(
|
|
11768
|
+
"div",
|
|
11769
|
+
{
|
|
11770
|
+
"data-testid": "button-menu",
|
|
11771
|
+
role: "menuitem",
|
|
11772
|
+
css: [menuItem(textColor, active2), typeof className === "object" ? className : void 0],
|
|
11773
|
+
className: typeof className === "string" ? className : void 0,
|
|
11774
|
+
...props,
|
|
11775
|
+
children: icon ? renderWithIcon(resolvedChildren, icon) : resolvedChildren
|
|
11776
|
+
}
|
|
11777
|
+
);
|
|
11778
|
+
};
|
|
11777
11779
|
function renderWithIcon(children, icon) {
|
|
11778
11780
|
return /* @__PURE__ */ jsxs16("span", { css: menuItemWithIcon, children: [
|
|
11779
11781
|
icon,
|
|
@@ -11940,13 +11942,13 @@ var wholeButtonWithMenuIconOffset = css27`
|
|
|
11940
11942
|
`;
|
|
11941
11943
|
|
|
11942
11944
|
// src/components/ButtonWithMenu/ButtonWithMenu.tsx
|
|
11943
|
-
import { Fragment as
|
|
11945
|
+
import { Fragment as Fragment5, jsx as jsx28, jsxs as jsxs17 } from "@emotion/react/jsx-runtime";
|
|
11944
11946
|
var ButtonWithMenu = ({
|
|
11945
11947
|
onButtonClick,
|
|
11946
11948
|
buttonType = "secondary",
|
|
11947
11949
|
buttonText,
|
|
11948
11950
|
icon,
|
|
11949
|
-
disabled,
|
|
11951
|
+
disabled: disabled2,
|
|
11950
11952
|
children,
|
|
11951
11953
|
placement,
|
|
11952
11954
|
size = "lg",
|
|
@@ -11982,16 +11984,16 @@ var ButtonWithMenu = ({
|
|
|
11982
11984
|
css: [
|
|
11983
11985
|
sizes2[size],
|
|
11984
11986
|
ButtonWithMenuContainer,
|
|
11985
|
-
|
|
11987
|
+
disabled2 ? buttonDisabledTheme[buttonType] : buttonTheme[buttonType]
|
|
11986
11988
|
],
|
|
11987
11989
|
"data-testid": "multioptions-button",
|
|
11988
|
-
children: onButtonClick ? /* @__PURE__ */ jsxs17(
|
|
11990
|
+
children: onButtonClick ? /* @__PURE__ */ jsxs17(Fragment5, { children: [
|
|
11989
11991
|
/* @__PURE__ */ jsxs17(
|
|
11990
11992
|
"button",
|
|
11991
11993
|
{
|
|
11992
11994
|
type: "button",
|
|
11993
11995
|
css: ButtonWithMenuBtn,
|
|
11994
|
-
disabled,
|
|
11996
|
+
disabled: disabled2,
|
|
11995
11997
|
onClick: onButtonClick,
|
|
11996
11998
|
"data-testid": "multioptions-button-main",
|
|
11997
11999
|
...buttonProps,
|
|
@@ -12001,8 +12003,8 @@ var ButtonWithMenu = ({
|
|
|
12001
12003
|
]
|
|
12002
12004
|
}
|
|
12003
12005
|
),
|
|
12004
|
-
|
|
12005
|
-
] }) : /* @__PURE__ */ jsx28(
|
|
12006
|
+
disabled2 ? clickableButton : /* @__PURE__ */ jsx28(Menu, { menuLabel: "buttonMenu", placement, menuTrigger: clickableButton, children })
|
|
12007
|
+
] }) : /* @__PURE__ */ jsx28(Fragment5, { children: disabled2 ? dropdownButton : /* @__PURE__ */ jsx28(Menu, { menuLabel: "buttonMenu", placement, menuTrigger: dropdownButton, children }) })
|
|
12006
12008
|
}
|
|
12007
12009
|
);
|
|
12008
12010
|
};
|
|
@@ -12362,7 +12364,7 @@ var Card = ({
|
|
|
12362
12364
|
menuItems,
|
|
12363
12365
|
children,
|
|
12364
12366
|
titleWithMarginBottom = true,
|
|
12365
|
-
disabled,
|
|
12367
|
+
disabled: disabled2,
|
|
12366
12368
|
tag: Tag = "div",
|
|
12367
12369
|
menuButtonTestId,
|
|
12368
12370
|
...props
|
|
@@ -12378,7 +12380,7 @@ var Card = ({
|
|
|
12378
12380
|
{
|
|
12379
12381
|
"aria-label": "More options",
|
|
12380
12382
|
type: "button",
|
|
12381
|
-
disabled,
|
|
12383
|
+
disabled: disabled2,
|
|
12382
12384
|
css: CardMenu,
|
|
12383
12385
|
"data-testid": menuButtonTestId != null ? menuButtonTestId : "list-card-menu",
|
|
12384
12386
|
children: /* @__PURE__ */ jsx31(Icon, { icon: CgMoreAlt, iconColor: "currentColor", size: 32 })
|
|
@@ -12784,7 +12786,7 @@ var ChipActionButton = css36`
|
|
|
12784
12786
|
`;
|
|
12785
12787
|
|
|
12786
12788
|
// src/components/Chip/Chip.tsx
|
|
12787
|
-
import { Fragment as
|
|
12789
|
+
import { Fragment as Fragment6, jsx as jsx37, jsxs as jsxs22 } from "@emotion/react/jsx-runtime";
|
|
12788
12790
|
var chipTheme = {
|
|
12789
12791
|
"accent-light": ChipThemeAccentLight,
|
|
12790
12792
|
"accent-dark": ChipThemeAccentDark,
|
|
@@ -12807,7 +12809,7 @@ var Chip = ({
|
|
|
12807
12809
|
md: ChipMedium
|
|
12808
12810
|
};
|
|
12809
12811
|
return /* @__PURE__ */ jsxs22("span", { css: [ChipContainer, chipSize[size], chipTheme[theme]], ...props, children: [
|
|
12810
|
-
icon ? /* @__PURE__ */ jsxs22(
|
|
12812
|
+
icon ? /* @__PURE__ */ jsxs22(Fragment6, { children: [
|
|
12811
12813
|
/* @__PURE__ */ jsx37("span", { role: "presentation", css: [ChipIcon], children: /* @__PURE__ */ jsx37(Icon, { icon, iconColor: "currentColor", size: "1rem" }) }),
|
|
12812
12814
|
/* @__PURE__ */ jsx37("span", { role: "separator", css: ChipSeparator })
|
|
12813
12815
|
] }) : null,
|
|
@@ -13022,15 +13024,24 @@ import React10 from "react";
|
|
|
13022
13024
|
|
|
13023
13025
|
// src/components/DescriptionList/DescriptionList.styles.ts
|
|
13024
13026
|
import { css as css40 } from "@emotion/react";
|
|
13025
|
-
var
|
|
13027
|
+
var descriptionListHorizontal = css40`
|
|
13026
13028
|
display: grid;
|
|
13027
13029
|
grid-template-columns: max-content auto;
|
|
13028
13030
|
gap: var(--spacing-xs) var(--spacing-md);
|
|
13029
13031
|
`;
|
|
13032
|
+
var descriptionListVertical = css40`
|
|
13033
|
+
display: flex;
|
|
13034
|
+
flex-direction: column;
|
|
13035
|
+
gap: var(--spacing-xs);
|
|
13036
|
+
`;
|
|
13030
13037
|
var descriptionListLabelStyles = css40`
|
|
13031
13038
|
display: flex;
|
|
13032
13039
|
align-items: center;
|
|
13033
13040
|
color: var(--gray-500);
|
|
13041
|
+
|
|
13042
|
+
dd + & {
|
|
13043
|
+
margin-top: var(--spacing-sm);
|
|
13044
|
+
}
|
|
13034
13045
|
`;
|
|
13035
13046
|
var descriptionListValueStyles = css40`
|
|
13036
13047
|
display: flex;
|
|
@@ -13041,14 +13052,22 @@ var descriptionListValueStyles = css40`
|
|
|
13041
13052
|
// src/components/DescriptionList/DescriptionList.tsx
|
|
13042
13053
|
import { jsx as jsx41, jsxs as jsxs24 } from "@emotion/react/jsx-runtime";
|
|
13043
13054
|
var DescriptionList = React10.forwardRef(
|
|
13044
|
-
({ items, ...listProps }, ref) => {
|
|
13055
|
+
({ items, variant = "horizontal", ...listProps }, ref) => {
|
|
13045
13056
|
if (!(items == null ? void 0 : items.length)) {
|
|
13046
13057
|
return null;
|
|
13047
13058
|
}
|
|
13048
|
-
return /* @__PURE__ */ jsx41(
|
|
13049
|
-
|
|
13050
|
-
|
|
13051
|
-
|
|
13059
|
+
return /* @__PURE__ */ jsx41(
|
|
13060
|
+
"dl",
|
|
13061
|
+
{
|
|
13062
|
+
ref,
|
|
13063
|
+
css: variant === "vertical" ? descriptionListVertical : descriptionListHorizontal,
|
|
13064
|
+
...listProps,
|
|
13065
|
+
children: items == null ? void 0 : items.map(({ label, value }) => /* @__PURE__ */ jsxs24(React10.Fragment, { children: [
|
|
13066
|
+
/* @__PURE__ */ jsx41("dt", { css: descriptionListLabelStyles, children: label }),
|
|
13067
|
+
/* @__PURE__ */ jsx41("dd", { css: descriptionListValueStyles, children: typeof value === "boolean" ? /* @__PURE__ */ jsx41(DescriptionListValueBoolean, { value }) : value })
|
|
13068
|
+
] }, label))
|
|
13069
|
+
}
|
|
13070
|
+
);
|
|
13052
13071
|
}
|
|
13053
13072
|
);
|
|
13054
13073
|
DescriptionList.displayName = "DescriptionList";
|
|
@@ -13144,7 +13163,7 @@ var Details = ({
|
|
|
13144
13163
|
|
|
13145
13164
|
// src/components/Drawer/Drawer.tsx
|
|
13146
13165
|
import { CgChevronRight } from "@react-icons/all-files/cg/CgChevronRight";
|
|
13147
|
-
import React13, { createContext as
|
|
13166
|
+
import React13, { createContext as createContext3, useContext as useContext4, useEffect as useEffect4, useRef as useRef3, useState as useState5 } from "react";
|
|
13148
13167
|
import { createPortal } from "react-dom";
|
|
13149
13168
|
|
|
13150
13169
|
// src/components/Drawer/Drawer.styles.ts
|
|
@@ -13255,22 +13274,27 @@ var drawerWrapperOverlayStyles = css42`
|
|
|
13255
13274
|
`;
|
|
13256
13275
|
|
|
13257
13276
|
// src/components/Drawer/DrawerProvider.tsx
|
|
13258
|
-
import { createContext as
|
|
13277
|
+
import { createContext as createContext2, useCallback, useContext as useContext3, useRef as useRef2, useState as useState4 } from "react";
|
|
13259
13278
|
import { jsx as jsx43 } from "@emotion/react/jsx-runtime";
|
|
13260
|
-
var DrawerContext =
|
|
13279
|
+
var DrawerContext = createContext2({
|
|
13261
13280
|
providerId: "",
|
|
13262
13281
|
drawersRegistry: [],
|
|
13263
13282
|
registerDrawer: () => {
|
|
13264
13283
|
},
|
|
13265
13284
|
unregisterDrawer: () => {
|
|
13285
|
+
},
|
|
13286
|
+
registerTakeoverStackId: () => {
|
|
13287
|
+
},
|
|
13288
|
+
unregisterTakeoverStackId: () => {
|
|
13266
13289
|
}
|
|
13267
13290
|
});
|
|
13268
13291
|
function renderDrawerId(drawer) {
|
|
13269
13292
|
return `${drawer.stackId ? `\u{1F95E} ${drawer.stackId} ` : ""}\u{1F194} ${drawer.id}${drawer.instanceKey ? ` \u{1F511} ${drawer.instanceKey}` : ""}`;
|
|
13270
13293
|
}
|
|
13271
13294
|
var DrawerProvider = ({ children }) => {
|
|
13272
|
-
const [drawersRegistry, setDrawersRegistry] =
|
|
13295
|
+
const [drawersRegistry, setDrawersRegistry] = useState4([]);
|
|
13273
13296
|
const providerId = useRef2(crypto.randomUUID());
|
|
13297
|
+
const [drawerTakeoverStackId, setDrawerTakeoverStackId] = useState4(void 0);
|
|
13274
13298
|
useShortcut({
|
|
13275
13299
|
handler: () => {
|
|
13276
13300
|
var _a, _b;
|
|
@@ -13328,6 +13352,22 @@ var DrawerProvider = ({ children }) => {
|
|
|
13328
13352
|
},
|
|
13329
13353
|
[setDrawersRegistry]
|
|
13330
13354
|
);
|
|
13355
|
+
const registerTakeoverStackId = useCallback(
|
|
13356
|
+
(stackId) => {
|
|
13357
|
+
if (drawerTakeoverStackId !== stackId) {
|
|
13358
|
+
setDrawerTakeoverStackId(stackId);
|
|
13359
|
+
}
|
|
13360
|
+
},
|
|
13361
|
+
[drawerTakeoverStackId]
|
|
13362
|
+
);
|
|
13363
|
+
const unregisterTakeoverStackId = useCallback(
|
|
13364
|
+
(stackId) => {
|
|
13365
|
+
if (drawerTakeoverStackId === stackId) {
|
|
13366
|
+
setDrawerTakeoverStackId(void 0);
|
|
13367
|
+
}
|
|
13368
|
+
},
|
|
13369
|
+
[drawerTakeoverStackId]
|
|
13370
|
+
);
|
|
13331
13371
|
return /* @__PURE__ */ jsx43(
|
|
13332
13372
|
DrawerContext.Provider,
|
|
13333
13373
|
{
|
|
@@ -13335,14 +13375,17 @@ var DrawerProvider = ({ children }) => {
|
|
|
13335
13375
|
drawersRegistry,
|
|
13336
13376
|
registerDrawer,
|
|
13337
13377
|
unregisterDrawer,
|
|
13338
|
-
providerId: providerId.current
|
|
13378
|
+
providerId: providerId.current,
|
|
13379
|
+
drawerTakeoverStackId,
|
|
13380
|
+
registerTakeoverStackId,
|
|
13381
|
+
unregisterTakeoverStackId
|
|
13339
13382
|
},
|
|
13340
13383
|
children
|
|
13341
13384
|
}
|
|
13342
13385
|
);
|
|
13343
13386
|
};
|
|
13344
13387
|
var useDrawer = () => {
|
|
13345
|
-
return
|
|
13388
|
+
return useContext3(DrawerContext);
|
|
13346
13389
|
};
|
|
13347
13390
|
var useCloseCurrentDrawer = () => {
|
|
13348
13391
|
const context = useDrawer();
|
|
@@ -13361,15 +13404,16 @@ function isEqualDrawerInstance(a, b) {
|
|
|
13361
13404
|
// src/components/Drawer/Drawer.tsx
|
|
13362
13405
|
import { jsx as jsx44, jsxs as jsxs26 } from "@emotion/react/jsx-runtime";
|
|
13363
13406
|
var defaultSackId = "_default";
|
|
13364
|
-
var CurrentDrawerContext =
|
|
13407
|
+
var CurrentDrawerContext = createContext3({});
|
|
13365
13408
|
var useCurrentDrawer = () => {
|
|
13366
|
-
return
|
|
13409
|
+
return useContext4(CurrentDrawerContext);
|
|
13367
13410
|
};
|
|
13368
13411
|
var Drawer = React13.forwardRef(
|
|
13369
13412
|
({ minWidth, maxWidth, position, leftAligned, ...drawerProps }, ref) => {
|
|
13370
13413
|
const { stackId: inheritedStackId } = useCurrentDrawer();
|
|
13414
|
+
const { drawerTakeoverStackId } = useDrawer();
|
|
13371
13415
|
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: [
|
|
13416
|
+
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
13417
|
/* @__PURE__ */ jsx44(DrawerInner, { ref, ...drawerProps }),
|
|
13374
13418
|
/* @__PURE__ */ jsx44(DrawerRenderer, { stackId: defaultSackId, ...drawerRendererProps })
|
|
13375
13419
|
] });
|
|
@@ -13390,8 +13434,8 @@ var DrawerInner = ({
|
|
|
13390
13434
|
}) => {
|
|
13391
13435
|
const { registerDrawer, unregisterDrawer, providerId } = useDrawer();
|
|
13392
13436
|
const closeButtonRef = useRef3(null);
|
|
13393
|
-
const [rendererElement, setRendererElement] =
|
|
13394
|
-
|
|
13437
|
+
const [rendererElement, setRendererElement] = useState5(null);
|
|
13438
|
+
useEffect4(() => {
|
|
13395
13439
|
registerDrawer({
|
|
13396
13440
|
drawer: {
|
|
13397
13441
|
width,
|
|
@@ -13498,8 +13542,8 @@ var DrawerContent2 = ({ children, buttonGroup, noPadding = false, ...props }) =>
|
|
|
13498
13542
|
};
|
|
13499
13543
|
|
|
13500
13544
|
// src/components/Drawer/DrawerRenderer.tsx
|
|
13501
|
-
import { useEffect as
|
|
13502
|
-
import { Fragment as
|
|
13545
|
+
import { useEffect as useEffect5, useMemo as useMemo2 } from "react";
|
|
13546
|
+
import { Fragment as Fragment7, jsx as jsx46, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
|
|
13503
13547
|
var drawerWidth = {
|
|
13504
13548
|
narrow: "29rem",
|
|
13505
13549
|
medium: "43rem",
|
|
@@ -13519,7 +13563,7 @@ var DrawerRenderer = ({
|
|
|
13519
13563
|
}) => {
|
|
13520
13564
|
const { drawersRegistry, providerId } = useDrawer();
|
|
13521
13565
|
const drawersToRender = drawersRegistry.filter(({ stackId: sId }) => sId === stackId);
|
|
13522
|
-
|
|
13566
|
+
useEffect5(() => {
|
|
13523
13567
|
drawersToRender.forEach(({ isFirstRender, onFirstRender }) => {
|
|
13524
13568
|
if (isFirstRender) {
|
|
13525
13569
|
onFirstRender == null ? void 0 : onFirstRender();
|
|
@@ -13588,7 +13632,7 @@ var DrawerWrapper = ({
|
|
|
13588
13632
|
offsetInPx = Math.round(maxLayeringInPx * relativeLevel);
|
|
13589
13633
|
}
|
|
13590
13634
|
const calculatedWidth = `calc(${width} - ${offsetInPx}px)`;
|
|
13591
|
-
return /* @__PURE__ */ jsxs28(
|
|
13635
|
+
return /* @__PURE__ */ jsxs28(Fragment7, { children: [
|
|
13592
13636
|
/* @__PURE__ */ jsx46("div", { css: drawerWrapperOverlayStyles, onClick: onOverlayClick }),
|
|
13593
13637
|
/* @__PURE__ */ jsx46(
|
|
13594
13638
|
"div",
|
|
@@ -13608,8 +13652,23 @@ var getDrawerAttributes = ({
|
|
|
13608
13652
|
return { "data-drawer-id": `${providerId}-${stackId}-${id}`, "data-testid": "container-drawer" };
|
|
13609
13653
|
};
|
|
13610
13654
|
|
|
13655
|
+
// src/components/Drawer/TakeoverDrawerRenderer.tsx
|
|
13656
|
+
import { useEffect as useEffect6 } from "react";
|
|
13657
|
+
import { jsx as jsx47 } from "@emotion/react/jsx-runtime";
|
|
13658
|
+
var TAKEOVER_STACK_ID = "takeover-stack";
|
|
13659
|
+
var TakeoverDrawerRenderer = (props) => {
|
|
13660
|
+
const { registerTakeoverStackId, unregisterTakeoverStackId } = useDrawer();
|
|
13661
|
+
useEffect6(() => {
|
|
13662
|
+
registerTakeoverStackId(TAKEOVER_STACK_ID);
|
|
13663
|
+
return () => {
|
|
13664
|
+
unregisterTakeoverStackId(TAKEOVER_STACK_ID);
|
|
13665
|
+
};
|
|
13666
|
+
}, [registerTakeoverStackId, unregisterTakeoverStackId]);
|
|
13667
|
+
return /* @__PURE__ */ jsx47(DrawerRenderer, { ...props, stackId: TAKEOVER_STACK_ID });
|
|
13668
|
+
};
|
|
13669
|
+
|
|
13611
13670
|
// src/components/IconButton/IconButton.tsx
|
|
13612
|
-
import { forwardRef as
|
|
13671
|
+
import { forwardRef as forwardRef5 } from "react";
|
|
13613
13672
|
|
|
13614
13673
|
// src/components/IconButton/IconButton.styles.ts
|
|
13615
13674
|
import { css as css44 } from "@emotion/react";
|
|
@@ -13639,16 +13698,16 @@ var variants = {
|
|
|
13639
13698
|
};
|
|
13640
13699
|
|
|
13641
13700
|
// src/components/IconButton/IconButton.tsx
|
|
13642
|
-
import { jsx as
|
|
13643
|
-
var IconButton =
|
|
13701
|
+
import { jsx as jsx48 } from "@emotion/react/jsx-runtime";
|
|
13702
|
+
var IconButton = forwardRef5(
|
|
13644
13703
|
({ children, size = "md", variant = "square", ...props }, ref) => {
|
|
13645
|
-
return /* @__PURE__ */
|
|
13704
|
+
return /* @__PURE__ */ jsx48(Button, { ref, css: [iconButton, variants[variant], sizes[size]], ...props, children });
|
|
13646
13705
|
}
|
|
13647
13706
|
);
|
|
13648
13707
|
IconButton.displayName = "IconButton";
|
|
13649
13708
|
|
|
13650
13709
|
// src/components/Image/Image.tsx
|
|
13651
|
-
import { useCallback as useCallback2, useEffect as useEffect7, useState as
|
|
13710
|
+
import { useCallback as useCallback2, useEffect as useEffect7, useState as useState7 } from "react";
|
|
13652
13711
|
|
|
13653
13712
|
// src/components/Input/styles/CaptionText.styles.ts
|
|
13654
13713
|
import { css as css45 } from "@emotion/react";
|
|
@@ -13661,13 +13720,13 @@ var CaptionText = (dynamicSize) => css45`
|
|
|
13661
13720
|
`;
|
|
13662
13721
|
|
|
13663
13722
|
// src/components/Input/Caption.tsx
|
|
13664
|
-
import { jsx as
|
|
13723
|
+
import { jsx as jsx49 } from "@emotion/react/jsx-runtime";
|
|
13665
13724
|
var Caption = ({ children, testId, dynamicSize = false, ...props }) => {
|
|
13666
|
-
return /* @__PURE__ */
|
|
13725
|
+
return /* @__PURE__ */ jsx49("small", { css: CaptionText(dynamicSize), "data-testid": testId, ...props, children });
|
|
13667
13726
|
};
|
|
13668
13727
|
|
|
13669
13728
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
13670
|
-
import { forwardRef as
|
|
13729
|
+
import { forwardRef as forwardRef6 } from "react";
|
|
13671
13730
|
|
|
13672
13731
|
// src/components/Input/styles/CheckboxWithInfo.styles.ts
|
|
13673
13732
|
import { css as css46 } from "@emotion/react";
|
|
@@ -13742,21 +13801,21 @@ var InfoDialogMessage = css46`
|
|
|
13742
13801
|
`;
|
|
13743
13802
|
|
|
13744
13803
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
13745
|
-
import { jsx as
|
|
13804
|
+
import { jsx as jsx50, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
|
|
13746
13805
|
var InfoDialog = ({ message }) => {
|
|
13747
13806
|
return /* @__PURE__ */ jsxs29("div", { "data-testid": "info-dialog", css: InfoDialogContainer, children: [
|
|
13748
|
-
/* @__PURE__ */
|
|
13749
|
-
/* @__PURE__ */
|
|
13807
|
+
/* @__PURE__ */ jsx50(Icon, { icon: "info", iconColor: "action", size: "0.9rem" }),
|
|
13808
|
+
/* @__PURE__ */ jsx50("div", { role: "paragraph", css: InfoDialogMessage, className: "info-message", children: message })
|
|
13750
13809
|
] });
|
|
13751
13810
|
};
|
|
13752
|
-
var CheckboxWithInfo =
|
|
13811
|
+
var CheckboxWithInfo = forwardRef6(
|
|
13753
13812
|
({ label, name, info, ...props }, ref) => {
|
|
13754
13813
|
return /* @__PURE__ */ jsxs29("div", { css: CheckboxWithInfoContainer, children: [
|
|
13755
13814
|
/* @__PURE__ */ jsxs29("label", { css: CheckboxWithInfoLabel, children: [
|
|
13756
|
-
/* @__PURE__ */
|
|
13757
|
-
/* @__PURE__ */
|
|
13815
|
+
/* @__PURE__ */ jsx50("input", { type: "checkbox", name, ref, css: CheckboxWithInfoInput, ...props }),
|
|
13816
|
+
/* @__PURE__ */ jsx50("span", { children: label })
|
|
13758
13817
|
] }),
|
|
13759
|
-
info ? /* @__PURE__ */
|
|
13818
|
+
info ? /* @__PURE__ */ jsx50(InfoDialog, { message: info }) : null
|
|
13760
13819
|
] });
|
|
13761
13820
|
}
|
|
13762
13821
|
);
|
|
@@ -13774,10 +13833,10 @@ var ErrorText = css47`
|
|
|
13774
13833
|
`;
|
|
13775
13834
|
|
|
13776
13835
|
// src/components/Input/ErrorMessage.tsx
|
|
13777
|
-
import { jsx as
|
|
13836
|
+
import { jsx as jsx51, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
|
|
13778
13837
|
var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
13779
13838
|
return message ? /* @__PURE__ */ jsxs30("span", { role: "alert", css: ErrorText, "data-testid": testId, ...otherProps, children: [
|
|
13780
|
-
/* @__PURE__ */
|
|
13839
|
+
/* @__PURE__ */ jsx51("span", { children: /* @__PURE__ */ jsx51(Icon, { icon: MdWarning, size: "1rem", iconColor: "currentColor" }) }),
|
|
13781
13840
|
message
|
|
13782
13841
|
] }) : null;
|
|
13783
13842
|
};
|
|
@@ -13826,12 +13885,12 @@ var fieldsetBody = css48`
|
|
|
13826
13885
|
`;
|
|
13827
13886
|
|
|
13828
13887
|
// src/components/Input/Fieldset.tsx
|
|
13829
|
-
import { jsx as
|
|
13888
|
+
import { jsx as jsx52, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
|
|
13830
13889
|
var Fieldset = React15.forwardRef(
|
|
13831
|
-
({ legend, disabled, children, invert, ...props }, ref) => {
|
|
13832
|
-
return /* @__PURE__ */ jsxs31("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled, ...props, children: [
|
|
13890
|
+
({ legend, disabled: disabled2, children, invert, ...props }, ref) => {
|
|
13891
|
+
return /* @__PURE__ */ jsxs31("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled: disabled2, ...props, children: [
|
|
13833
13892
|
legend,
|
|
13834
|
-
/* @__PURE__ */
|
|
13893
|
+
/* @__PURE__ */ jsx52("div", { css: fieldsetBody, children })
|
|
13835
13894
|
] });
|
|
13836
13895
|
}
|
|
13837
13896
|
);
|
|
@@ -13855,10 +13914,10 @@ var InfoIcon2 = css49`
|
|
|
13855
13914
|
`;
|
|
13856
13915
|
|
|
13857
13916
|
// src/components/Input/InfoMessage.tsx
|
|
13858
|
-
import { jsx as
|
|
13917
|
+
import { jsx as jsx53, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
|
|
13859
13918
|
var InfoMessage = ({ message, testId, ...props }) => {
|
|
13860
13919
|
return message ? /* @__PURE__ */ jsxs32("span", { role: "status", css: InfoText, "data-testid": testId, ...props, children: [
|
|
13861
|
-
/* @__PURE__ */
|
|
13920
|
+
/* @__PURE__ */ jsx53("span", { children: /* @__PURE__ */ jsx53(Icon, { css: InfoIcon2, icon: MdInfoOutline, size: "1rem", iconColor: "currentColor" }) }),
|
|
13862
13921
|
message
|
|
13863
13922
|
] }) : null;
|
|
13864
13923
|
};
|
|
@@ -13867,9 +13926,9 @@ var InfoMessage = ({ message, testId, ...props }) => {
|
|
|
13867
13926
|
import * as React16 from "react";
|
|
13868
13927
|
|
|
13869
13928
|
// src/components/Input/Label.tsx
|
|
13870
|
-
import { jsx as
|
|
13929
|
+
import { jsx as jsx54 } from "@emotion/react/jsx-runtime";
|
|
13871
13930
|
var Label = ({ children, className, testId, ...props }) => {
|
|
13872
|
-
return /* @__PURE__ */
|
|
13931
|
+
return /* @__PURE__ */ jsx54(
|
|
13873
13932
|
"label",
|
|
13874
13933
|
{
|
|
13875
13934
|
css: [labelText, typeof className === "object" ? className : void 0],
|
|
@@ -13897,16 +13956,16 @@ var WarningIcon = css50`
|
|
|
13897
13956
|
`;
|
|
13898
13957
|
|
|
13899
13958
|
// src/components/Input/WarningMessage.tsx
|
|
13900
|
-
import { jsx as
|
|
13959
|
+
import { jsx as jsx55, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
|
|
13901
13960
|
var WarningMessage = ({ message, testId, ...props }) => {
|
|
13902
13961
|
return message ? /* @__PURE__ */ jsxs33("span", { role: "status", css: WarningText, "data-testid": testId, ...props, children: [
|
|
13903
|
-
/* @__PURE__ */
|
|
13962
|
+
/* @__PURE__ */ jsx55("span", { children: /* @__PURE__ */ jsx55(Icon, { css: WarningIcon, icon: MdWarning2, size: "1rem", iconColor: "currentColor" }) }),
|
|
13904
13963
|
message
|
|
13905
13964
|
] }) : null;
|
|
13906
13965
|
};
|
|
13907
13966
|
|
|
13908
13967
|
// src/components/Input/Input.tsx
|
|
13909
|
-
import { jsx as
|
|
13968
|
+
import { jsx as jsx56, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
|
|
13910
13969
|
var Input = React16.forwardRef(
|
|
13911
13970
|
({
|
|
13912
13971
|
label,
|
|
@@ -13932,7 +13991,7 @@ var Input = React16.forwardRef(
|
|
|
13932
13991
|
css: [inputContainer, typeof classNameRoot === "object" ? classNameRoot : void 0],
|
|
13933
13992
|
"data-testid": containerTestId ? containerTestId : "container-input-field",
|
|
13934
13993
|
children: [
|
|
13935
|
-
showLabel ? /* @__PURE__ */
|
|
13994
|
+
showLabel ? /* @__PURE__ */ jsx56(
|
|
13936
13995
|
Label,
|
|
13937
13996
|
{
|
|
13938
13997
|
htmlFor: id,
|
|
@@ -13948,7 +14007,7 @@ var Input = React16.forwardRef(
|
|
|
13948
14007
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
13949
14008
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
13950
14009
|
children: [
|
|
13951
|
-
/* @__PURE__ */
|
|
14010
|
+
/* @__PURE__ */ jsx56(
|
|
13952
14011
|
"input",
|
|
13953
14012
|
{
|
|
13954
14013
|
id,
|
|
@@ -13964,13 +14023,13 @@ var Input = React16.forwardRef(
|
|
|
13964
14023
|
ref
|
|
13965
14024
|
}
|
|
13966
14025
|
),
|
|
13967
|
-
icon ? /* @__PURE__ */
|
|
14026
|
+
icon ? /* @__PURE__ */ jsx56("div", { css: inputIcon, children: icon }) : null
|
|
13968
14027
|
]
|
|
13969
14028
|
}
|
|
13970
14029
|
),
|
|
13971
|
-
caption ? /* @__PURE__ */
|
|
13972
|
-
errorMessage ? /* @__PURE__ */
|
|
13973
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14030
|
+
caption ? /* @__PURE__ */ jsx56(Caption, { testId: captionTestId, children: caption }) : null,
|
|
14031
|
+
errorMessage ? /* @__PURE__ */ jsx56(ErrorMessage, { message: errorMessage, testId: errorTestId }) : null,
|
|
14032
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx56(WarningMessage, { message: warningMessage }) : null
|
|
13974
14033
|
]
|
|
13975
14034
|
}
|
|
13976
14035
|
);
|
|
@@ -13979,10 +14038,10 @@ var Input = React16.forwardRef(
|
|
|
13979
14038
|
|
|
13980
14039
|
// src/components/Input/InputComboBox.tsx
|
|
13981
14040
|
import Select from "react-select";
|
|
13982
|
-
import { jsx as
|
|
14041
|
+
import { jsx as jsx57 } from "@emotion/react/jsx-runtime";
|
|
13983
14042
|
function InputComboBox(props) {
|
|
13984
14043
|
var _a;
|
|
13985
|
-
return /* @__PURE__ */
|
|
14044
|
+
return /* @__PURE__ */ jsx57(
|
|
13986
14045
|
Select,
|
|
13987
14046
|
{
|
|
13988
14047
|
...props,
|
|
@@ -14113,7 +14172,7 @@ function InputComboBox(props) {
|
|
|
14113
14172
|
// src/components/Input/InputInlineSelect.tsx
|
|
14114
14173
|
import { css as css52 } from "@emotion/react";
|
|
14115
14174
|
import { CgChevronDown as CgChevronDown2 } from "@react-icons/all-files/cg/CgChevronDown";
|
|
14116
|
-
import { useRef as useRef4, useState as
|
|
14175
|
+
import { useRef as useRef4, useState as useState6 } from "react";
|
|
14117
14176
|
|
|
14118
14177
|
// src/components/Input/styles/InputInlineSelect.styles.ts
|
|
14119
14178
|
import { css as css51 } from "@emotion/react";
|
|
@@ -14182,17 +14241,17 @@ var inlineSelectMenuClosed = css51`
|
|
|
14182
14241
|
`;
|
|
14183
14242
|
|
|
14184
14243
|
// src/components/Input/InputInlineSelect.tsx
|
|
14185
|
-
import { jsx as
|
|
14244
|
+
import { jsx as jsx58, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
14186
14245
|
var InputInlineSelect = ({
|
|
14187
14246
|
classNameContainer,
|
|
14188
14247
|
options,
|
|
14189
14248
|
value,
|
|
14190
14249
|
onChange,
|
|
14191
|
-
disabled,
|
|
14250
|
+
disabled: disabled2,
|
|
14192
14251
|
...props
|
|
14193
14252
|
}) => {
|
|
14194
14253
|
var _a;
|
|
14195
|
-
const [menuVisible, setMenuVisible] =
|
|
14254
|
+
const [menuVisible, setMenuVisible] = useState6(false);
|
|
14196
14255
|
const divRef = useRef4(null);
|
|
14197
14256
|
useOutsideClick(divRef, () => setMenuVisible(false));
|
|
14198
14257
|
const selected = options.find((option) => option.value === value);
|
|
@@ -14214,24 +14273,24 @@ var InputInlineSelect = ({
|
|
|
14214
14273
|
"aria-expanded": menuVisible,
|
|
14215
14274
|
css: inlineSelectBtn,
|
|
14216
14275
|
onClick: () => {
|
|
14217
|
-
if (!
|
|
14276
|
+
if (!disabled2)
|
|
14218
14277
|
setMenuVisible((prev) => !prev);
|
|
14219
14278
|
},
|
|
14220
|
-
disabled,
|
|
14279
|
+
disabled: disabled2,
|
|
14221
14280
|
...props,
|
|
14222
14281
|
children: [
|
|
14223
|
-
/* @__PURE__ */
|
|
14224
|
-
|
|
14282
|
+
/* @__PURE__ */ jsx58("span", { children: (_a = selected == null ? void 0 : selected.label) != null ? _a : value }),
|
|
14283
|
+
disabled2 ? null : /* @__PURE__ */ jsx58(Icon, { icon: CgChevronDown2, iconColor: "currentColor", size: 24 })
|
|
14225
14284
|
]
|
|
14226
14285
|
}
|
|
14227
14286
|
),
|
|
14228
|
-
/* @__PURE__ */
|
|
14287
|
+
/* @__PURE__ */ jsx58(
|
|
14229
14288
|
"div",
|
|
14230
14289
|
{
|
|
14231
14290
|
id: `and-or-${props.id}`,
|
|
14232
14291
|
css: [inlineSelectMenu, menuVisible ? void 0 : inlineSelectMenuClosed],
|
|
14233
14292
|
"aria-hidden": !menuVisible,
|
|
14234
|
-
children: options.map((opt) => /* @__PURE__ */
|
|
14293
|
+
children: options.map((opt) => /* @__PURE__ */ jsx58(
|
|
14235
14294
|
"button",
|
|
14236
14295
|
{
|
|
14237
14296
|
type: "button",
|
|
@@ -14254,10 +14313,10 @@ var InputInlineSelect = ({
|
|
|
14254
14313
|
// src/components/Input/InputKeywordSearch.tsx
|
|
14255
14314
|
import { CgClose as CgClose4 } from "@react-icons/all-files/cg/CgClose";
|
|
14256
14315
|
import { CgSearch } from "@react-icons/all-files/cg/CgSearch";
|
|
14257
|
-
import { jsx as
|
|
14316
|
+
import { jsx as jsx59 } from "@emotion/react/jsx-runtime";
|
|
14258
14317
|
var InputKeywordSearch = ({
|
|
14259
14318
|
onSearchTextChanged,
|
|
14260
|
-
disabled = false,
|
|
14319
|
+
disabled: disabled2 = false,
|
|
14261
14320
|
placeholder = "Keyword search",
|
|
14262
14321
|
inputFieldName = "keywordSearch",
|
|
14263
14322
|
disabledFieldSubmission = false,
|
|
@@ -14275,7 +14334,7 @@ var InputKeywordSearch = ({
|
|
|
14275
14334
|
e.preventDefault();
|
|
14276
14335
|
}
|
|
14277
14336
|
};
|
|
14278
|
-
return /* @__PURE__ */
|
|
14337
|
+
return /* @__PURE__ */ jsx59(
|
|
14279
14338
|
Input,
|
|
14280
14339
|
{
|
|
14281
14340
|
type: "text",
|
|
@@ -14283,10 +14342,10 @@ var InputKeywordSearch = ({
|
|
|
14283
14342
|
placeholder,
|
|
14284
14343
|
showLabel: false,
|
|
14285
14344
|
value,
|
|
14286
|
-
icon: value ? /* @__PURE__ */
|
|
14345
|
+
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
14346
|
onChange: handleSearchTextChanged,
|
|
14288
14347
|
onKeyPress: preventSubmitOnField,
|
|
14289
|
-
disabled,
|
|
14348
|
+
disabled: disabled2,
|
|
14290
14349
|
"aria-label": placeholder,
|
|
14291
14350
|
css: [
|
|
14292
14351
|
compact ? {
|
|
@@ -14295,13 +14354,14 @@ var InputKeywordSearch = ({
|
|
|
14295
14354
|
} : null,
|
|
14296
14355
|
rounded ? { borderRadius: "var(--rounded-full)" } : null
|
|
14297
14356
|
],
|
|
14357
|
+
"data-testid": "input-search",
|
|
14298
14358
|
...props
|
|
14299
14359
|
}
|
|
14300
14360
|
);
|
|
14301
14361
|
};
|
|
14302
14362
|
|
|
14303
14363
|
// src/components/Input/InputSelect.tsx
|
|
14304
|
-
import { Fragment as
|
|
14364
|
+
import { Fragment as Fragment8, jsx as jsx60, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
14305
14365
|
var InputSelect = ({
|
|
14306
14366
|
label,
|
|
14307
14367
|
defaultOption,
|
|
@@ -14323,7 +14383,7 @@ var InputSelect = ({
|
|
|
14323
14383
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
14324
14384
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
14325
14385
|
children: [
|
|
14326
|
-
showLabel ? /* @__PURE__ */
|
|
14386
|
+
showLabel ? /* @__PURE__ */ jsx60(Fragment8, { children: /* @__PURE__ */ jsxs36(
|
|
14327
14387
|
Label,
|
|
14328
14388
|
{
|
|
14329
14389
|
htmlFor: props.id,
|
|
@@ -14350,14 +14410,14 @@ var InputSelect = ({
|
|
|
14350
14410
|
className: typeof classNameControl === "string" ? classNameControl : "",
|
|
14351
14411
|
...props,
|
|
14352
14412
|
children: [
|
|
14353
|
-
defaultOption ? /* @__PURE__ */
|
|
14354
|
-
options.map((opt, index) => /* @__PURE__ */
|
|
14413
|
+
defaultOption ? /* @__PURE__ */ jsx60("option", { value: "", children: defaultOption }) : null,
|
|
14414
|
+
options.map((opt, index) => /* @__PURE__ */ jsx60("option", { value: opt.label, ...opt }, index))
|
|
14355
14415
|
]
|
|
14356
14416
|
}
|
|
14357
14417
|
),
|
|
14358
|
-
caption ? /* @__PURE__ */
|
|
14359
|
-
errorMessage ? /* @__PURE__ */
|
|
14360
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14418
|
+
caption ? /* @__PURE__ */ jsx60(Caption, { children: caption }) : null,
|
|
14419
|
+
errorMessage ? /* @__PURE__ */ jsx60(ErrorMessage, { message: errorMessage }) : null,
|
|
14420
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx60(WarningMessage, { message: warningMessage }) : null
|
|
14361
14421
|
]
|
|
14362
14422
|
}
|
|
14363
14423
|
);
|
|
@@ -14365,12 +14425,12 @@ var InputSelect = ({
|
|
|
14365
14425
|
|
|
14366
14426
|
// src/components/Input/InputToggle.tsx
|
|
14367
14427
|
import * as React17 from "react";
|
|
14368
|
-
import { jsx as
|
|
14428
|
+
import { jsx as jsx61, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
|
|
14369
14429
|
var InputToggle = React17.forwardRef(
|
|
14370
14430
|
({
|
|
14371
14431
|
label,
|
|
14372
14432
|
type,
|
|
14373
|
-
disabled,
|
|
14433
|
+
disabled: disabled2,
|
|
14374
14434
|
checked,
|
|
14375
14435
|
name,
|
|
14376
14436
|
caption,
|
|
@@ -14388,10 +14448,10 @@ var InputToggle = React17.forwardRef(
|
|
|
14388
14448
|
return /* @__PURE__ */ jsxs37(
|
|
14389
14449
|
Label,
|
|
14390
14450
|
{
|
|
14391
|
-
css: [inputToggleLabel,
|
|
14451
|
+
css: [inputToggleLabel, disabled2 ? inputDisabled : void 0],
|
|
14392
14452
|
"data-testid": testId ? testId : "input-toggle",
|
|
14393
14453
|
children: [
|
|
14394
|
-
/* @__PURE__ */
|
|
14454
|
+
/* @__PURE__ */ jsx61(
|
|
14395
14455
|
"input",
|
|
14396
14456
|
{
|
|
14397
14457
|
ref,
|
|
@@ -14399,15 +14459,15 @@ var InputToggle = React17.forwardRef(
|
|
|
14399
14459
|
css: toggleInput,
|
|
14400
14460
|
checked,
|
|
14401
14461
|
name,
|
|
14402
|
-
disabled,
|
|
14462
|
+
disabled: disabled2,
|
|
14403
14463
|
...props
|
|
14404
14464
|
}
|
|
14405
14465
|
),
|
|
14406
|
-
/* @__PURE__ */
|
|
14466
|
+
/* @__PURE__ */ jsx61("span", { css: [inlineLabel, fontWeightStyles[fontWeight]], children: label }),
|
|
14407
14467
|
caption || errorMessage ? /* @__PURE__ */ jsxs37("span", { css: inputToggleMessageContainer, children: [
|
|
14408
|
-
caption ? /* @__PURE__ */
|
|
14409
|
-
errorMessage ? /* @__PURE__ */
|
|
14410
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14468
|
+
caption ? /* @__PURE__ */ jsx61(Caption, { children: caption }) : null,
|
|
14469
|
+
errorMessage ? /* @__PURE__ */ jsx61(ErrorMessage, { message: errorMessage }) : null,
|
|
14470
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx61(WarningMessage, { message: warningMessage }) : null
|
|
14411
14471
|
] }) : null
|
|
14412
14472
|
]
|
|
14413
14473
|
}
|
|
@@ -14416,9 +14476,9 @@ var InputToggle = React17.forwardRef(
|
|
|
14416
14476
|
);
|
|
14417
14477
|
|
|
14418
14478
|
// src/components/Input/Legend.tsx
|
|
14419
|
-
import { jsx as
|
|
14479
|
+
import { jsx as jsx62 } from "@emotion/react/jsx-runtime";
|
|
14420
14480
|
var Legend = ({ children }) => {
|
|
14421
|
-
return /* @__PURE__ */
|
|
14481
|
+
return /* @__PURE__ */ jsx62("legend", { css: fieldsetLegend, children });
|
|
14422
14482
|
};
|
|
14423
14483
|
|
|
14424
14484
|
// src/components/Input/SuccessMessage.tsx
|
|
@@ -14440,23 +14500,23 @@ var SuccessIcon2 = css53`
|
|
|
14440
14500
|
`;
|
|
14441
14501
|
|
|
14442
14502
|
// src/components/Input/SuccessMessage.tsx
|
|
14443
|
-
import { jsx as
|
|
14503
|
+
import { jsx as jsx63, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
|
|
14444
14504
|
var SuccessMessage = ({ message, testId, ...props }) => {
|
|
14445
14505
|
return message ? /* @__PURE__ */ jsxs38("span", { role: "status", css: SuccessText, "data-testid": testId, ...props, children: [
|
|
14446
|
-
/* @__PURE__ */
|
|
14506
|
+
/* @__PURE__ */ jsx63("span", { children: /* @__PURE__ */ jsx63(Icon, { css: SuccessIcon2, icon: CgCheckO, size: "1rem", iconColor: "currentColor" }) }),
|
|
14447
14507
|
message
|
|
14448
14508
|
] }) : null;
|
|
14449
14509
|
};
|
|
14450
14510
|
|
|
14451
14511
|
// src/components/Input/Textarea.tsx
|
|
14452
|
-
import { forwardRef as
|
|
14453
|
-
import { Fragment as
|
|
14454
|
-
var Textarea =
|
|
14512
|
+
import { forwardRef as forwardRef10 } from "react";
|
|
14513
|
+
import { Fragment as Fragment9, jsx as jsx64, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
14514
|
+
var Textarea = forwardRef10(
|
|
14455
14515
|
({ label, icon, id, caption, showLabel = true, errorMessage, warningMessage, ...props }, ref) => {
|
|
14456
|
-
return /* @__PURE__ */ jsxs39(
|
|
14457
|
-
showLabel ? /* @__PURE__ */
|
|
14516
|
+
return /* @__PURE__ */ jsxs39(Fragment9, { children: [
|
|
14517
|
+
showLabel ? /* @__PURE__ */ jsx64("label", { htmlFor: id, css: [labelText], children: label }) : null,
|
|
14458
14518
|
/* @__PURE__ */ jsxs39("div", { css: [inputContainer], children: [
|
|
14459
|
-
/* @__PURE__ */
|
|
14519
|
+
/* @__PURE__ */ jsx64(
|
|
14460
14520
|
"textarea",
|
|
14461
14521
|
{
|
|
14462
14522
|
ref,
|
|
@@ -14471,11 +14531,11 @@ var Textarea = forwardRef9(
|
|
|
14471
14531
|
...props
|
|
14472
14532
|
}
|
|
14473
14533
|
),
|
|
14474
|
-
icon ? /* @__PURE__ */
|
|
14534
|
+
icon ? /* @__PURE__ */ jsx64("div", { css: inputIcon, children: icon }) : null
|
|
14475
14535
|
] }),
|
|
14476
|
-
caption ? /* @__PURE__ */
|
|
14477
|
-
errorMessage ? /* @__PURE__ */
|
|
14478
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14536
|
+
caption ? /* @__PURE__ */ jsx64(Caption, { children: caption }) : null,
|
|
14537
|
+
errorMessage ? /* @__PURE__ */ jsx64(ErrorMessage, { message: errorMessage }) : null,
|
|
14538
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx64(WarningMessage, { message: warningMessage }) : null
|
|
14479
14539
|
] });
|
|
14480
14540
|
}
|
|
14481
14541
|
);
|
|
@@ -14522,7 +14582,7 @@ var variantFillImageImg = css54`
|
|
|
14522
14582
|
`;
|
|
14523
14583
|
|
|
14524
14584
|
// src/components/Image/ImageBroken.tsx
|
|
14525
|
-
import { jsx as
|
|
14585
|
+
import { jsx as jsx65, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
|
|
14526
14586
|
var ImageBroken = ({ width, height, ...props }) => {
|
|
14527
14587
|
return /* @__PURE__ */ jsxs40(
|
|
14528
14588
|
"svg",
|
|
@@ -14537,11 +14597,11 @@ var ImageBroken = ({ width, height, ...props }) => {
|
|
|
14537
14597
|
"data-testid": "broken-image",
|
|
14538
14598
|
...props,
|
|
14539
14599
|
children: [
|
|
14540
|
-
/* @__PURE__ */
|
|
14541
|
-
/* @__PURE__ */
|
|
14600
|
+
/* @__PURE__ */ jsx65("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
14601
|
+
/* @__PURE__ */ jsx65("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
14542
14602
|
/* @__PURE__ */ jsxs40("defs", { children: [
|
|
14543
|
-
/* @__PURE__ */
|
|
14544
|
-
/* @__PURE__ */
|
|
14603
|
+
/* @__PURE__ */ jsx65("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx65("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
14604
|
+
/* @__PURE__ */ jsx65(
|
|
14545
14605
|
"image",
|
|
14546
14606
|
{
|
|
14547
14607
|
id: "image0_761_4353",
|
|
@@ -14557,7 +14617,7 @@ var ImageBroken = ({ width, height, ...props }) => {
|
|
|
14557
14617
|
};
|
|
14558
14618
|
|
|
14559
14619
|
// src/components/Image/Image.tsx
|
|
14560
|
-
import { Fragment as
|
|
14620
|
+
import { Fragment as Fragment10, jsx as jsx66, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
14561
14621
|
var MIN_LOADING_MS = 100;
|
|
14562
14622
|
function Image({
|
|
14563
14623
|
alt,
|
|
@@ -14569,8 +14629,8 @@ function Image({
|
|
|
14569
14629
|
height,
|
|
14570
14630
|
...imgAttribs
|
|
14571
14631
|
}) {
|
|
14572
|
-
const [loading, setLoading] =
|
|
14573
|
-
const [loadErrorText, setLoadErrorText] =
|
|
14632
|
+
const [loading, setLoading] = useState7(true);
|
|
14633
|
+
const [loadErrorText, setLoadErrorText] = useState7("");
|
|
14574
14634
|
const errorText = "The text you provided is not a valid URL";
|
|
14575
14635
|
const updateImageSrc = useCallback2(() => {
|
|
14576
14636
|
let message = "";
|
|
@@ -14617,7 +14677,7 @@ function Image({
|
|
|
14617
14677
|
variant === "fill-container" ? variantFillImageWrapper : null
|
|
14618
14678
|
],
|
|
14619
14679
|
children: [
|
|
14620
|
-
src && !loadErrorText ? /* @__PURE__ */
|
|
14680
|
+
src && !loadErrorText ? /* @__PURE__ */ jsx66(
|
|
14621
14681
|
"img",
|
|
14622
14682
|
{
|
|
14623
14683
|
...imgAttribs,
|
|
@@ -14636,8 +14696,8 @@ function Image({
|
|
|
14636
14696
|
onError: handleErrorEvent
|
|
14637
14697
|
}
|
|
14638
14698
|
) : null,
|
|
14639
|
-
src && loadErrorText ? /* @__PURE__ */ jsxs41(
|
|
14640
|
-
/* @__PURE__ */
|
|
14699
|
+
src && loadErrorText ? /* @__PURE__ */ jsxs41(Fragment10, { children: [
|
|
14700
|
+
/* @__PURE__ */ jsx66(
|
|
14641
14701
|
ImageBroken,
|
|
14642
14702
|
{
|
|
14643
14703
|
css: [brokenImage, img, imgLoaded],
|
|
@@ -14646,7 +14706,7 @@ function Image({
|
|
|
14646
14706
|
"data-testid": "broken-image"
|
|
14647
14707
|
}
|
|
14648
14708
|
),
|
|
14649
|
-
/* @__PURE__ */
|
|
14709
|
+
/* @__PURE__ */ jsx66(ErrorMessage, { message: loadErrorText })
|
|
14650
14710
|
] }) : null
|
|
14651
14711
|
]
|
|
14652
14712
|
}
|
|
@@ -14788,7 +14848,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => css55`
|
|
|
14788
14848
|
`;
|
|
14789
14849
|
|
|
14790
14850
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
14791
|
-
import { jsx as
|
|
14851
|
+
import { jsx as jsx67, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
14792
14852
|
var CreateTeamIntegrationTile = ({
|
|
14793
14853
|
title: title2 = "Create a custom integration for your team",
|
|
14794
14854
|
buttonText = "Add Integration",
|
|
@@ -14797,7 +14857,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
14797
14857
|
...props
|
|
14798
14858
|
}) => {
|
|
14799
14859
|
return /* @__PURE__ */ jsxs42("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
14800
|
-
/* @__PURE__ */
|
|
14860
|
+
/* @__PURE__ */ jsx67("span", { css: IntegrationTileTitle, title: title2, children: title2 }),
|
|
14801
14861
|
/* @__PURE__ */ jsxs42(
|
|
14802
14862
|
Button,
|
|
14803
14863
|
{
|
|
@@ -14808,7 +14868,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
14808
14868
|
css: IntegrationTitleFakeButton,
|
|
14809
14869
|
children: [
|
|
14810
14870
|
buttonText,
|
|
14811
|
-
asDeepLink ? /* @__PURE__ */
|
|
14871
|
+
asDeepLink ? /* @__PURE__ */ jsx67(
|
|
14812
14872
|
Icon,
|
|
14813
14873
|
{
|
|
14814
14874
|
icon: CgChevronRight2,
|
|
@@ -14818,7 +14878,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
14818
14878
|
order: 1;
|
|
14819
14879
|
`
|
|
14820
14880
|
}
|
|
14821
|
-
) : /* @__PURE__ */
|
|
14881
|
+
) : /* @__PURE__ */ jsx67(
|
|
14822
14882
|
Icon,
|
|
14823
14883
|
{
|
|
14824
14884
|
icon: CgAdd2,
|
|
@@ -14839,31 +14899,31 @@ var CreateTeamIntegrationTile = ({
|
|
|
14839
14899
|
import { CgCheck } from "@react-icons/all-files/cg/CgCheck";
|
|
14840
14900
|
import { CgLock } from "@react-icons/all-files/cg/CgLock";
|
|
14841
14901
|
import { CgSandClock } from "@react-icons/all-files/cg/CgSandClock";
|
|
14842
|
-
import { jsx as
|
|
14902
|
+
import { jsx as jsx68, jsxs as jsxs43 } from "@emotion/react/jsx-runtime";
|
|
14843
14903
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
14844
14904
|
return /* @__PURE__ */ jsxs43("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
14845
|
-
/* @__PURE__ */
|
|
14905
|
+
/* @__PURE__ */ jsx68(Icon, { icon: CgCheck, iconColor: "currentColor" }),
|
|
14846
14906
|
text
|
|
14847
14907
|
] });
|
|
14848
14908
|
};
|
|
14849
14909
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
14850
|
-
return /* @__PURE__ */
|
|
14910
|
+
return /* @__PURE__ */ jsx68("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
14851
14911
|
};
|
|
14852
14912
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
14853
14913
|
return /* @__PURE__ */ jsxs43("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
14854
|
-
/* @__PURE__ */
|
|
14914
|
+
/* @__PURE__ */ jsx68(Icon, { icon: CgLock, iconColor: "currentColor", size: 12 }),
|
|
14855
14915
|
text
|
|
14856
14916
|
] });
|
|
14857
14917
|
};
|
|
14858
14918
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
14859
14919
|
return /* @__PURE__ */ jsxs43("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
14860
|
-
/* @__PURE__ */
|
|
14920
|
+
/* @__PURE__ */ jsx68(Icon, { icon: CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
14861
14921
|
text
|
|
14862
14922
|
] });
|
|
14863
14923
|
};
|
|
14864
14924
|
|
|
14865
14925
|
// src/components/Tiles/ResolveIcon.tsx
|
|
14866
|
-
import { jsx as
|
|
14926
|
+
import { jsx as jsx69 } from "@emotion/react/jsx-runtime";
|
|
14867
14927
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
14868
14928
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
14869
14929
|
const mapClassName = {
|
|
@@ -14871,13 +14931,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
14871
14931
|
logo: IntegrationTitleLogo
|
|
14872
14932
|
};
|
|
14873
14933
|
if (icon) {
|
|
14874
|
-
return CompIcon ? /* @__PURE__ */
|
|
14934
|
+
return CompIcon ? /* @__PURE__ */ jsx69(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ jsx69("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
14875
14935
|
}
|
|
14876
14936
|
return null;
|
|
14877
14937
|
};
|
|
14878
14938
|
|
|
14879
14939
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
14880
|
-
import { jsx as
|
|
14940
|
+
import { jsx as jsx70, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
14881
14941
|
var EditTeamIntegrationTile = ({
|
|
14882
14942
|
id,
|
|
14883
14943
|
icon,
|
|
@@ -14893,10 +14953,10 @@ var EditTeamIntegrationTile = ({
|
|
|
14893
14953
|
"data-testid": "configure-integration-container",
|
|
14894
14954
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
14895
14955
|
children: [
|
|
14896
|
-
/* @__PURE__ */
|
|
14897
|
-
/* @__PURE__ */
|
|
14898
|
-
!isPublic ? /* @__PURE__ */
|
|
14899
|
-
canEdit ? /* @__PURE__ */
|
|
14956
|
+
/* @__PURE__ */ jsx70(ResolveIcon, { icon, name, "data-testid": "integration-logo" }),
|
|
14957
|
+
/* @__PURE__ */ jsx70("span", { css: IntegrationTileName, "data-testid": "integration-card-name", children: name }),
|
|
14958
|
+
!isPublic ? /* @__PURE__ */ jsx70(IntegrationCustomBadge, {}) : null,
|
|
14959
|
+
canEdit ? /* @__PURE__ */ jsx70(
|
|
14900
14960
|
Button,
|
|
14901
14961
|
{
|
|
14902
14962
|
buttonType: "unimportant",
|
|
@@ -14916,8 +14976,8 @@ var EditTeamIntegrationTile = ({
|
|
|
14916
14976
|
// src/components/Tiles/IntegrationComingSoon.tsx
|
|
14917
14977
|
import { css as css57 } from "@emotion/react";
|
|
14918
14978
|
import { CgHeart } from "@react-icons/all-files/cg/CgHeart";
|
|
14919
|
-
import { useEffect as useEffect8, useState as
|
|
14920
|
-
import { jsx as
|
|
14979
|
+
import { useEffect as useEffect8, useState as useState8 } from "react";
|
|
14980
|
+
import { jsx as jsx71, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
|
|
14921
14981
|
var IntegrationComingSoon = ({
|
|
14922
14982
|
name,
|
|
14923
14983
|
icon,
|
|
@@ -14926,7 +14986,7 @@ var IntegrationComingSoon = ({
|
|
|
14926
14986
|
timing = 1e3,
|
|
14927
14987
|
...props
|
|
14928
14988
|
}) => {
|
|
14929
|
-
const [upVote, setUpVote] =
|
|
14989
|
+
const [upVote, setUpVote] = useState8(false);
|
|
14930
14990
|
const handleUpVoteInteraction = () => {
|
|
14931
14991
|
setUpVote((prev) => !prev);
|
|
14932
14992
|
onUpVoteClick();
|
|
@@ -14946,9 +15006,9 @@ var IntegrationComingSoon = ({
|
|
|
14946
15006
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
14947
15007
|
...props,
|
|
14948
15008
|
children: [
|
|
14949
|
-
/* @__PURE__ */
|
|
14950
|
-
/* @__PURE__ */
|
|
14951
|
-
/* @__PURE__ */
|
|
15009
|
+
/* @__PURE__ */ jsx71(IntegrationComingSoonBadge, {}),
|
|
15010
|
+
/* @__PURE__ */ jsx71(ResolveIcon, { icon, name }),
|
|
15011
|
+
/* @__PURE__ */ jsx71("span", { css: IntegrationTileName, title: name, children: name }),
|
|
14952
15012
|
/* @__PURE__ */ jsxs45(
|
|
14953
15013
|
Button,
|
|
14954
15014
|
{
|
|
@@ -14959,8 +15019,8 @@ var IntegrationComingSoon = ({
|
|
|
14959
15019
|
role: "link",
|
|
14960
15020
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
14961
15021
|
children: [
|
|
14962
|
-
/* @__PURE__ */
|
|
14963
|
-
/* @__PURE__ */
|
|
15022
|
+
/* @__PURE__ */ jsx71("strong", { children: "+1" }),
|
|
15023
|
+
/* @__PURE__ */ jsx71(
|
|
14964
15024
|
"span",
|
|
14965
15025
|
{
|
|
14966
15026
|
css: css57`
|
|
@@ -14971,7 +15031,7 @@ var IntegrationComingSoon = ({
|
|
|
14971
15031
|
}
|
|
14972
15032
|
),
|
|
14973
15033
|
/* @__PURE__ */ jsxs45("span", { "aria-hidden": !upVote, children: [
|
|
14974
|
-
/* @__PURE__ */
|
|
15034
|
+
/* @__PURE__ */ jsx71(Icon, { icon: CgHeart, iconColor: "currentColor", size: 18 }),
|
|
14975
15035
|
"Thanks!"
|
|
14976
15036
|
] })
|
|
14977
15037
|
]
|
|
@@ -15027,12 +15087,12 @@ var IntegrationLoadingFrame = css58`
|
|
|
15027
15087
|
`;
|
|
15028
15088
|
|
|
15029
15089
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
15030
|
-
import { Fragment as
|
|
15090
|
+
import { Fragment as Fragment11, jsx as jsx72, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
15031
15091
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
15032
15092
|
const componentCount = Array.from(Array(count).keys());
|
|
15033
|
-
return /* @__PURE__ */
|
|
15034
|
-
/* @__PURE__ */
|
|
15035
|
-
/* @__PURE__ */
|
|
15093
|
+
return /* @__PURE__ */ jsx72(Fragment11, { children: componentCount.map((i) => /* @__PURE__ */ jsxs46("div", { css: IntegrationLoadingTileContainer, children: [
|
|
15094
|
+
/* @__PURE__ */ jsx72("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
15095
|
+
/* @__PURE__ */ jsx72("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
15036
15096
|
] }, i)) });
|
|
15037
15097
|
};
|
|
15038
15098
|
|
|
@@ -15052,7 +15112,7 @@ var IntegrationModalImage = css59`
|
|
|
15052
15112
|
`;
|
|
15053
15113
|
|
|
15054
15114
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
15055
|
-
import { jsx as
|
|
15115
|
+
import { jsx as jsx73, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
15056
15116
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
15057
15117
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
15058
15118
|
let iconSrc = void 0;
|
|
@@ -15070,7 +15130,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
15070
15130
|
}
|
|
15071
15131
|
return /* @__PURE__ */ jsxs47("div", { css: IntegrationModalIconContainer, children: [
|
|
15072
15132
|
/* @__PURE__ */ jsxs47("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
15073
|
-
/* @__PURE__ */
|
|
15133
|
+
/* @__PURE__ */ jsx73(
|
|
15074
15134
|
"path",
|
|
15075
15135
|
{
|
|
15076
15136
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -15079,12 +15139,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
15079
15139
|
strokeWidth: "2"
|
|
15080
15140
|
}
|
|
15081
15141
|
),
|
|
15082
|
-
/* @__PURE__ */
|
|
15083
|
-
/* @__PURE__ */
|
|
15084
|
-
/* @__PURE__ */
|
|
15142
|
+
/* @__PURE__ */ jsx73("defs", { children: /* @__PURE__ */ jsxs47("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
15143
|
+
/* @__PURE__ */ jsx73("stop", { stopColor: "#1768B2" }),
|
|
15144
|
+
/* @__PURE__ */ jsx73("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
15085
15145
|
] }) })
|
|
15086
15146
|
] }),
|
|
15087
|
-
CompIcon ? /* @__PURE__ */
|
|
15147
|
+
CompIcon ? /* @__PURE__ */ jsx73(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : iconSrc ? /* @__PURE__ */ jsx73(
|
|
15088
15148
|
"img",
|
|
15089
15149
|
{
|
|
15090
15150
|
src: iconSrc,
|
|
@@ -15098,7 +15158,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
15098
15158
|
};
|
|
15099
15159
|
|
|
15100
15160
|
// src/components/Tiles/IntegrationTile.tsx
|
|
15101
|
-
import { jsx as
|
|
15161
|
+
import { jsx as jsx74, jsxs as jsxs48 } from "@emotion/react/jsx-runtime";
|
|
15102
15162
|
var IntegrationTile = ({
|
|
15103
15163
|
id,
|
|
15104
15164
|
icon,
|
|
@@ -15120,12 +15180,12 @@ var IntegrationTile = ({
|
|
|
15120
15180
|
"aria-label": name,
|
|
15121
15181
|
...btnProps,
|
|
15122
15182
|
children: [
|
|
15123
|
-
/* @__PURE__ */
|
|
15124
|
-
/* @__PURE__ */
|
|
15125
|
-
isInstalled ? /* @__PURE__ */
|
|
15126
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */
|
|
15127
|
-
!isPublic ? /* @__PURE__ */
|
|
15128
|
-
authorIcon ? /* @__PURE__ */
|
|
15183
|
+
/* @__PURE__ */ jsx74(ResolveIcon, { icon, name }),
|
|
15184
|
+
/* @__PURE__ */ jsx74("span", { css: IntegrationTileName, title: name, children: name }),
|
|
15185
|
+
isInstalled ? /* @__PURE__ */ jsx74(IntegrationedAddedBadge, {}) : null,
|
|
15186
|
+
requiedEntitlement && isPublic ? /* @__PURE__ */ jsx74(IntegrationPremiumBadge, {}) : null,
|
|
15187
|
+
!isPublic ? /* @__PURE__ */ jsx74(IntegrationCustomBadge, {}) : null,
|
|
15188
|
+
authorIcon ? /* @__PURE__ */ jsx74(ResolveIcon, { icon: authorIcon, name }) : null
|
|
15129
15189
|
]
|
|
15130
15190
|
}
|
|
15131
15191
|
);
|
|
@@ -15156,11 +15216,24 @@ var Tile = css60`
|
|
|
15156
15216
|
pointer-events: none;
|
|
15157
15217
|
}
|
|
15158
15218
|
`;
|
|
15219
|
+
var TileIsSelected = css60`
|
|
15220
|
+
border: calc(${tileBorderSize} + 1px) solid var(--primary-action-active);
|
|
15221
|
+
z-index: 1; // Used to elevate active state border over other Tile borders
|
|
15222
|
+
`;
|
|
15159
15223
|
|
|
15160
15224
|
// src/components/Tiles/Tile.tsx
|
|
15161
|
-
import { jsx as
|
|
15162
|
-
var Tile2 = ({ children, disabled, ...props }) => {
|
|
15163
|
-
return /* @__PURE__ */
|
|
15225
|
+
import { jsx as jsx75 } from "@emotion/react/jsx-runtime";
|
|
15226
|
+
var Tile2 = ({ children, disabled: disabled2, isSelected, ...props }) => {
|
|
15227
|
+
return /* @__PURE__ */ jsx75(
|
|
15228
|
+
"button",
|
|
15229
|
+
{
|
|
15230
|
+
type: "button",
|
|
15231
|
+
css: [Tile, isSelected ? TileIsSelected : void 0],
|
|
15232
|
+
disabled: disabled2,
|
|
15233
|
+
...props,
|
|
15234
|
+
children
|
|
15235
|
+
}
|
|
15236
|
+
);
|
|
15164
15237
|
};
|
|
15165
15238
|
|
|
15166
15239
|
// src/components/Tiles/styles/TileContainer.styles.ts
|
|
@@ -15183,7 +15256,7 @@ var TileContainerInner = (gap, templateColumns) => css61`
|
|
|
15183
15256
|
`;
|
|
15184
15257
|
|
|
15185
15258
|
// src/components/Tiles/TileContainer.tsx
|
|
15186
|
-
import { jsx as
|
|
15259
|
+
import { jsx as jsx76 } from "@emotion/react/jsx-runtime";
|
|
15187
15260
|
var TileContainer = ({
|
|
15188
15261
|
bgColor = "var(--brand-secondary-2)",
|
|
15189
15262
|
containerPadding = "base",
|
|
@@ -15192,7 +15265,7 @@ var TileContainer = ({
|
|
|
15192
15265
|
children,
|
|
15193
15266
|
...props
|
|
15194
15267
|
}) => {
|
|
15195
|
-
return /* @__PURE__ */
|
|
15268
|
+
return /* @__PURE__ */ jsx76("div", { css: TileContainerWrapper(bgColor, containerPadding), ...props, children: /* @__PURE__ */ jsx76("div", { css: TileContainerInner(gap, gridTemplateColumns), children }) });
|
|
15196
15269
|
};
|
|
15197
15270
|
|
|
15198
15271
|
// src/components/Tiles/styles/TileText.styles.ts
|
|
@@ -15207,10 +15280,10 @@ var TileText = css62`
|
|
|
15207
15280
|
`;
|
|
15208
15281
|
|
|
15209
15282
|
// src/components/Tiles/TileText.tsx
|
|
15210
|
-
import { jsx as
|
|
15283
|
+
import { jsx as jsx77 } from "@emotion/react/jsx-runtime";
|
|
15211
15284
|
var TileText2 = ({ as = "heading", children, ...props }) => {
|
|
15212
15285
|
const isHeading = as === "heading";
|
|
15213
|
-
return /* @__PURE__ */
|
|
15286
|
+
return /* @__PURE__ */ jsx77(
|
|
15214
15287
|
"span",
|
|
15215
15288
|
{
|
|
15216
15289
|
role: isHeading ? "heading" : void 0,
|
|
@@ -15239,6 +15312,7 @@ var IntegrationModalHeaderTitleGroup = css63`
|
|
|
15239
15312
|
align-items: center;
|
|
15240
15313
|
display: flex;
|
|
15241
15314
|
gap: var(--spacing-base);
|
|
15315
|
+
padding: 0 var(--spacing-base);
|
|
15242
15316
|
`;
|
|
15243
15317
|
var IntegrationModalHeaderTitle = css63`
|
|
15244
15318
|
margin-top: 0;
|
|
@@ -15247,12 +15321,18 @@ var IntegrationModalHeaderMenuPlacement = css63`
|
|
|
15247
15321
|
margin-bottom: var(--spacing-base);
|
|
15248
15322
|
`;
|
|
15249
15323
|
var IntegrationModalHeaderContentWrapper = css63`
|
|
15324
|
+
background: var(--white);
|
|
15325
|
+
display: flex;
|
|
15326
|
+
padding: var(--spacing-base);
|
|
15327
|
+
flex-direction: column;
|
|
15328
|
+
gap: var(--spacing-base);
|
|
15329
|
+
height: 100%;
|
|
15250
15330
|
position: relative;
|
|
15251
15331
|
z-index: var(--z-10);
|
|
15252
15332
|
`;
|
|
15253
15333
|
|
|
15254
15334
|
// src/components/IntegrationModalHeader/IntegrationModalHeader.tsx
|
|
15255
|
-
import { Fragment as
|
|
15335
|
+
import { Fragment as Fragment12, jsx as jsx78, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
15256
15336
|
var HexModalBackground = ({ ...props }) => {
|
|
15257
15337
|
return /* @__PURE__ */ jsxs49(
|
|
15258
15338
|
"svg",
|
|
@@ -15264,7 +15344,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
15264
15344
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15265
15345
|
...props,
|
|
15266
15346
|
children: [
|
|
15267
|
-
/* @__PURE__ */
|
|
15347
|
+
/* @__PURE__ */ jsx78(
|
|
15268
15348
|
"path",
|
|
15269
15349
|
{
|
|
15270
15350
|
fillRule: "evenodd",
|
|
@@ -15273,7 +15353,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
15273
15353
|
fill: "url(#paint0_linear_196_2737)"
|
|
15274
15354
|
}
|
|
15275
15355
|
),
|
|
15276
|
-
/* @__PURE__ */
|
|
15356
|
+
/* @__PURE__ */ jsx78("defs", { children: /* @__PURE__ */ jsxs49(
|
|
15277
15357
|
"linearGradient",
|
|
15278
15358
|
{
|
|
15279
15359
|
id: "paint0_linear_196_2737",
|
|
@@ -15283,8 +15363,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
15283
15363
|
y2: "-95.2742",
|
|
15284
15364
|
gradientUnits: "userSpaceOnUse",
|
|
15285
15365
|
children: [
|
|
15286
|
-
/* @__PURE__ */
|
|
15287
|
-
/* @__PURE__ */
|
|
15366
|
+
/* @__PURE__ */ jsx78("stop", { stopColor: "#81DCDE" }),
|
|
15367
|
+
/* @__PURE__ */ jsx78("stop", { offset: "1", stopColor: "#428ED4" })
|
|
15288
15368
|
]
|
|
15289
15369
|
}
|
|
15290
15370
|
) })
|
|
@@ -15292,24 +15372,24 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
15292
15372
|
}
|
|
15293
15373
|
);
|
|
15294
15374
|
};
|
|
15295
|
-
var IntegrationModalHeader = ({ icon, name, menu
|
|
15296
|
-
return /* @__PURE__ */ jsxs49(
|
|
15297
|
-
/* @__PURE__ */
|
|
15298
|
-
/* @__PURE__ */
|
|
15299
|
-
icon ? /* @__PURE__ */
|
|
15300
|
-
/* @__PURE__ */
|
|
15301
|
-
|
|
15302
|
-
|
|
15375
|
+
var IntegrationModalHeader = ({ icon, name, menu, children }) => {
|
|
15376
|
+
return /* @__PURE__ */ jsxs49(Fragment12, { children: [
|
|
15377
|
+
/* @__PURE__ */ jsx78(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
15378
|
+
/* @__PURE__ */ jsx78("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs49("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
15379
|
+
icon ? /* @__PURE__ */ jsx78(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
15380
|
+
/* @__PURE__ */ jsx78(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-testid": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
15381
|
+
menu ? /* @__PURE__ */ jsxs49("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
15382
|
+
menu,
|
|
15303
15383
|
" "
|
|
15304
15384
|
] }) : null
|
|
15305
15385
|
] }) }),
|
|
15306
|
-
/* @__PURE__ */
|
|
15386
|
+
/* @__PURE__ */ jsx78("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
15307
15387
|
] });
|
|
15308
15388
|
};
|
|
15309
15389
|
|
|
15310
15390
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
15311
15391
|
import MonacoEditor from "@monaco-editor/react";
|
|
15312
|
-
import { jsx as
|
|
15392
|
+
import { jsx as jsx79 } from "@emotion/react/jsx-runtime";
|
|
15313
15393
|
var minEditorHeightPx = 150;
|
|
15314
15394
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
15315
15395
|
let effectiveHeight = height;
|
|
@@ -15319,7 +15399,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
15319
15399
|
if (typeof effectiveHeight === "number" && effectiveHeight < minEditorHeightPx) {
|
|
15320
15400
|
effectiveHeight = minEditorHeightPx;
|
|
15321
15401
|
}
|
|
15322
|
-
return /* @__PURE__ */
|
|
15402
|
+
return /* @__PURE__ */ jsx79(
|
|
15323
15403
|
MonacoEditor,
|
|
15324
15404
|
{
|
|
15325
15405
|
height: effectiveHeight,
|
|
@@ -15388,7 +15468,7 @@ var LimitsBarTextColor = (statusColor) => css64`
|
|
|
15388
15468
|
`;
|
|
15389
15469
|
|
|
15390
15470
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
15391
|
-
import { jsx as
|
|
15471
|
+
import { jsx as jsx80, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
15392
15472
|
var LimitsBar = ({ current, max, label }) => {
|
|
15393
15473
|
const maxPercentage = 100;
|
|
15394
15474
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -15401,14 +15481,14 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
15401
15481
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
15402
15482
|
return /* @__PURE__ */ jsxs50("div", { css: LimitsBarContainer, children: [
|
|
15403
15483
|
/* @__PURE__ */ jsxs50("div", { css: LimitsBarLabelContainer, children: [
|
|
15404
|
-
/* @__PURE__ */
|
|
15484
|
+
/* @__PURE__ */ jsx80("span", { css: LimitsBarLabel, children: label }),
|
|
15405
15485
|
/* @__PURE__ */ jsxs50("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
15406
15486
|
current,
|
|
15407
15487
|
" of ",
|
|
15408
15488
|
max
|
|
15409
15489
|
] })
|
|
15410
15490
|
] }),
|
|
15411
|
-
/* @__PURE__ */
|
|
15491
|
+
/* @__PURE__ */ jsx80(
|
|
15412
15492
|
"div",
|
|
15413
15493
|
{
|
|
15414
15494
|
role: "progressbar",
|
|
@@ -15417,7 +15497,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
15417
15497
|
"aria-valuemax": max,
|
|
15418
15498
|
"aria-valuetext": `${current} of ${max}`,
|
|
15419
15499
|
css: LimitsBarProgressBar,
|
|
15420
|
-
children: /* @__PURE__ */
|
|
15500
|
+
children: /* @__PURE__ */ jsx80(
|
|
15421
15501
|
"span",
|
|
15422
15502
|
{
|
|
15423
15503
|
role: "presentation",
|
|
@@ -15449,10 +15529,10 @@ var LinkListTitle = css65`
|
|
|
15449
15529
|
`;
|
|
15450
15530
|
|
|
15451
15531
|
// src/components/LinkList/LinkList.tsx
|
|
15452
|
-
import { jsx as
|
|
15532
|
+
import { jsx as jsx81, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
15453
15533
|
var LinkList = ({ title: title2, padding = "var(--spacing-md)", children, ...props }) => {
|
|
15454
15534
|
return /* @__PURE__ */ jsxs51("div", { css: LinkListContainer(padding), ...props, children: [
|
|
15455
|
-
/* @__PURE__ */
|
|
15535
|
+
/* @__PURE__ */ jsx81(Heading, { level: 3, css: LinkListTitle, children: title2 }),
|
|
15456
15536
|
children
|
|
15457
15537
|
] });
|
|
15458
15538
|
};
|
|
@@ -15488,10 +15568,10 @@ var ScrollableListInner = css66`
|
|
|
15488
15568
|
`;
|
|
15489
15569
|
|
|
15490
15570
|
// src/components/List/ScrollableList.tsx
|
|
15491
|
-
import { jsx as
|
|
15571
|
+
import { jsx as jsx82, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
15492
15572
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
15493
15573
|
return /* @__PURE__ */ jsxs52("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
15494
|
-
label ? /* @__PURE__ */
|
|
15574
|
+
label ? /* @__PURE__ */ jsx82(
|
|
15495
15575
|
"span",
|
|
15496
15576
|
{
|
|
15497
15577
|
css: css67`
|
|
@@ -15500,7 +15580,7 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
15500
15580
|
children: label
|
|
15501
15581
|
}
|
|
15502
15582
|
) : null,
|
|
15503
|
-
/* @__PURE__ */
|
|
15583
|
+
/* @__PURE__ */ jsx82("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
15504
15584
|
] });
|
|
15505
15585
|
};
|
|
15506
15586
|
|
|
@@ -15572,23 +15652,23 @@ var ScrollableListIconVisible = css68`
|
|
|
15572
15652
|
`;
|
|
15573
15653
|
|
|
15574
15654
|
// src/components/List/ScrollableListInputItem.tsx
|
|
15575
|
-
import { jsx as
|
|
15655
|
+
import { jsx as jsx83, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
15576
15656
|
var ScrollableListInputItem = ({
|
|
15577
15657
|
label,
|
|
15578
15658
|
icon,
|
|
15579
|
-
active,
|
|
15659
|
+
active: active2,
|
|
15580
15660
|
disableShadow = false,
|
|
15581
15661
|
children,
|
|
15582
15662
|
labelTestId,
|
|
15583
15663
|
...props
|
|
15584
15664
|
}) => {
|
|
15585
|
-
return /* @__PURE__ */
|
|
15665
|
+
return /* @__PURE__ */ jsx83(
|
|
15586
15666
|
"div",
|
|
15587
15667
|
{
|
|
15588
15668
|
css: [
|
|
15589
15669
|
ScrollableListItemContainer,
|
|
15590
15670
|
disableShadow ? void 0 : ScrollableListItemShadow,
|
|
15591
|
-
|
|
15671
|
+
active2 ? ScrollableListItemActive : void 0
|
|
15592
15672
|
],
|
|
15593
15673
|
...props,
|
|
15594
15674
|
children: /* @__PURE__ */ jsxs53("label", { "data-testid": labelTestId, css: ScrollableListInputLabel, children: [
|
|
@@ -15596,16 +15676,16 @@ var ScrollableListInputItem = ({
|
|
|
15596
15676
|
icon,
|
|
15597
15677
|
label
|
|
15598
15678
|
] }),
|
|
15599
|
-
/* @__PURE__ */
|
|
15600
|
-
/* @__PURE__ */
|
|
15679
|
+
/* @__PURE__ */ jsx83("div", { css: ScrollableListHiddenInput, children }),
|
|
15680
|
+
/* @__PURE__ */ jsx83(
|
|
15601
15681
|
Icon,
|
|
15602
15682
|
{
|
|
15603
15683
|
icon: CgCheck2,
|
|
15604
15684
|
iconColor: "currentColor",
|
|
15605
|
-
css: [ScrollableListIcon,
|
|
15685
|
+
css: [ScrollableListIcon, active2 ? ScrollableListIconVisible : void 0],
|
|
15606
15686
|
size: 24,
|
|
15607
15687
|
"data-testid": "check-mark",
|
|
15608
|
-
"data-test-active":
|
|
15688
|
+
"data-test-active": active2
|
|
15609
15689
|
}
|
|
15610
15690
|
)
|
|
15611
15691
|
] })
|
|
@@ -15615,33 +15695,33 @@ var ScrollableListInputItem = ({
|
|
|
15615
15695
|
|
|
15616
15696
|
// src/components/List/ScrollableListItem.tsx
|
|
15617
15697
|
import { CgCheck as CgCheck3 } from "@react-icons/all-files/cg/CgCheck";
|
|
15618
|
-
import { jsx as
|
|
15698
|
+
import { jsx as jsx84, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
15619
15699
|
var ScrollableListItem = ({
|
|
15620
15700
|
buttonText,
|
|
15621
15701
|
icon,
|
|
15622
|
-
active,
|
|
15702
|
+
active: active2,
|
|
15623
15703
|
disableShadow,
|
|
15624
15704
|
...props
|
|
15625
15705
|
}) => {
|
|
15626
|
-
return /* @__PURE__ */
|
|
15706
|
+
return /* @__PURE__ */ jsx84(
|
|
15627
15707
|
"div",
|
|
15628
15708
|
{
|
|
15629
15709
|
css: [
|
|
15630
15710
|
ScrollableListItemContainer,
|
|
15631
15711
|
disableShadow ? void 0 : ScrollableListItemShadow,
|
|
15632
|
-
|
|
15712
|
+
active2 ? ScrollableListItemActive : void 0
|
|
15633
15713
|
],
|
|
15634
15714
|
children: /* @__PURE__ */ jsxs54("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
15635
15715
|
/* @__PURE__ */ jsxs54(HorizontalRhythm, { gap: "xs", align: "center", children: [
|
|
15636
15716
|
icon,
|
|
15637
|
-
/* @__PURE__ */
|
|
15717
|
+
/* @__PURE__ */ jsx84("span", { children: buttonText })
|
|
15638
15718
|
] }),
|
|
15639
|
-
/* @__PURE__ */
|
|
15719
|
+
/* @__PURE__ */ jsx84(
|
|
15640
15720
|
Icon,
|
|
15641
15721
|
{
|
|
15642
15722
|
icon: CgCheck3,
|
|
15643
15723
|
iconColor: "currentColor",
|
|
15644
|
-
css: [ScrollableListIcon,
|
|
15724
|
+
css: [ScrollableListIcon, active2 ? ScrollableListIconVisible : void 0],
|
|
15645
15725
|
size: 24
|
|
15646
15726
|
}
|
|
15647
15727
|
)
|
|
@@ -15703,16 +15783,16 @@ function loadingDot(size) {
|
|
|
15703
15783
|
}
|
|
15704
15784
|
|
|
15705
15785
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
15706
|
-
import { jsx as
|
|
15786
|
+
import { jsx as jsx85, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
15707
15787
|
var LoadingIndicator = ({
|
|
15708
15788
|
size = "lg",
|
|
15709
15789
|
...props
|
|
15710
15790
|
}) => {
|
|
15711
15791
|
const dotStyle = loadingDot(size);
|
|
15712
15792
|
return /* @__PURE__ */ jsxs55("div", { role: "alert", css: loader, "data-testid": "loading-indicator", ...props, children: [
|
|
15713
|
-
/* @__PURE__ */
|
|
15714
|
-
/* @__PURE__ */
|
|
15715
|
-
/* @__PURE__ */
|
|
15793
|
+
/* @__PURE__ */ jsx85("span", { css: dotStyle }),
|
|
15794
|
+
/* @__PURE__ */ jsx85("span", { css: dotStyle }),
|
|
15795
|
+
/* @__PURE__ */ jsx85("span", { css: dotStyle })
|
|
15716
15796
|
] });
|
|
15717
15797
|
};
|
|
15718
15798
|
|
|
@@ -15752,7 +15832,7 @@ var loadingOverlayMessage = css70`
|
|
|
15752
15832
|
`;
|
|
15753
15833
|
|
|
15754
15834
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
15755
|
-
import { jsx as
|
|
15835
|
+
import { jsx as jsx86, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
15756
15836
|
var LoadingOverlay = ({
|
|
15757
15837
|
isActive,
|
|
15758
15838
|
statusMessage,
|
|
@@ -15786,9 +15866,9 @@ var LoadingOverlay = ({
|
|
|
15786
15866
|
"aria-hidden": !isActive,
|
|
15787
15867
|
"aria-busy": isActive && !isPaused,
|
|
15788
15868
|
children: [
|
|
15789
|
-
/* @__PURE__ */
|
|
15790
|
-
/* @__PURE__ */
|
|
15791
|
-
/* @__PURE__ */
|
|
15869
|
+
/* @__PURE__ */ jsx86("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
15870
|
+
/* @__PURE__ */ jsx86("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ jsxs56("div", { css: loadingOverlayBody, children: [
|
|
15871
|
+
/* @__PURE__ */ jsx86(
|
|
15792
15872
|
AnimationFile,
|
|
15793
15873
|
{
|
|
15794
15874
|
lottieRef,
|
|
@@ -15803,15 +15883,15 @@ var LoadingOverlay = ({
|
|
|
15803
15883
|
}
|
|
15804
15884
|
}
|
|
15805
15885
|
),
|
|
15806
|
-
statusMessage ? /* @__PURE__ */
|
|
15807
|
-
/* @__PURE__ */
|
|
15886
|
+
statusMessage ? /* @__PURE__ */ jsx86("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
|
|
15887
|
+
/* @__PURE__ */ jsx86("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
|
|
15808
15888
|
] }) })
|
|
15809
15889
|
]
|
|
15810
15890
|
}
|
|
15811
15891
|
);
|
|
15812
15892
|
};
|
|
15813
15893
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
15814
|
-
return /* @__PURE__ */
|
|
15894
|
+
return /* @__PURE__ */ jsx86(
|
|
15815
15895
|
"svg",
|
|
15816
15896
|
{
|
|
15817
15897
|
viewBox: "0 0 38 38",
|
|
@@ -15821,9 +15901,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
15821
15901
|
stroke: "currentColor",
|
|
15822
15902
|
...props,
|
|
15823
15903
|
"data-testid": "loading-icon",
|
|
15824
|
-
children: /* @__PURE__ */
|
|
15825
|
-
/* @__PURE__ */
|
|
15826
|
-
/* @__PURE__ */
|
|
15904
|
+
children: /* @__PURE__ */ jsx86("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs56("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
15905
|
+
/* @__PURE__ */ jsx86("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
15906
|
+
/* @__PURE__ */ jsx86("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ jsx86(
|
|
15827
15907
|
"animateTransform",
|
|
15828
15908
|
{
|
|
15829
15909
|
attributeName: "transform",
|
|
@@ -15879,7 +15959,7 @@ var Popover = css71`
|
|
|
15879
15959
|
`;
|
|
15880
15960
|
|
|
15881
15961
|
// src/components/Popover/Popover.tsx
|
|
15882
|
-
import { Fragment as
|
|
15962
|
+
import { Fragment as Fragment13, jsx as jsx87, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
|
|
15883
15963
|
var Popover2 = ({
|
|
15884
15964
|
iconColor = "action",
|
|
15885
15965
|
icon = "info",
|
|
@@ -15893,27 +15973,28 @@ var Popover2 = ({
|
|
|
15893
15973
|
...otherProps
|
|
15894
15974
|
}) => {
|
|
15895
15975
|
const popover = usePopoverState({ placement });
|
|
15896
|
-
return /* @__PURE__ */ jsxs57(
|
|
15897
|
-
/* @__PURE__ */
|
|
15976
|
+
return /* @__PURE__ */ jsxs57(Fragment13, { children: [
|
|
15977
|
+
/* @__PURE__ */ jsx87(
|
|
15898
15978
|
PopoverDisclosure,
|
|
15899
15979
|
{
|
|
15900
15980
|
...popover,
|
|
15901
15981
|
css: [PopoverBtn, trigger ? void 0 : PopoverDefaulterTriggerBtn],
|
|
15902
15982
|
title: buttonText,
|
|
15903
15983
|
"data-testid": testId,
|
|
15904
|
-
children: trigger ? trigger : /* @__PURE__ */ jsxs57(
|
|
15905
|
-
/* @__PURE__ */
|
|
15906
|
-
/* @__PURE__ */
|
|
15984
|
+
children: trigger ? trigger : /* @__PURE__ */ jsxs57(Fragment13, { children: [
|
|
15985
|
+
/* @__PURE__ */ jsx87(Icon, { icon, iconColor, size: iconSize }),
|
|
15986
|
+
/* @__PURE__ */ jsx87("span", { hidden: true, children: buttonText })
|
|
15907
15987
|
] })
|
|
15908
15988
|
}
|
|
15909
15989
|
),
|
|
15910
|
-
/* @__PURE__ */
|
|
15990
|
+
/* @__PURE__ */ jsx87(ReakitPopover, { css: Popover, ...otherProps, ...popover, role: "tooltip", "aria-label": ariaLabel, children })
|
|
15911
15991
|
] });
|
|
15912
15992
|
};
|
|
15913
15993
|
|
|
15914
15994
|
// src/components/MediaCard/MediaCard.styles.ts
|
|
15915
15995
|
import { css as css72 } from "@emotion/react";
|
|
15916
15996
|
var cardBase = css72`
|
|
15997
|
+
--mediacard-title-color: var(--gray-500);
|
|
15917
15998
|
display: flex;
|
|
15918
15999
|
flex-direction: column;
|
|
15919
16000
|
justify-content: flex-start;
|
|
@@ -15923,6 +16004,10 @@ var cardBase = css72`
|
|
|
15923
16004
|
min-height: unset;
|
|
15924
16005
|
outline: none;
|
|
15925
16006
|
cursor: pointer;
|
|
16007
|
+
|
|
16008
|
+
&:hover {
|
|
16009
|
+
--mediacard-title-color: var(--brand-secondary-1);
|
|
16010
|
+
}
|
|
15926
16011
|
`;
|
|
15927
16012
|
var coverWrapper = css72`
|
|
15928
16013
|
position: relative;
|
|
@@ -15942,13 +16027,14 @@ var contentWrapper = css72`
|
|
|
15942
16027
|
`;
|
|
15943
16028
|
var title = css72`
|
|
15944
16029
|
font-size: var(--fs-sm);
|
|
15945
|
-
color: var(--
|
|
16030
|
+
color: var(--mediacard-title-color);
|
|
15946
16031
|
white-space: nowrap;
|
|
15947
16032
|
overflow: hidden;
|
|
15948
16033
|
text-overflow: ellipsis;
|
|
15949
16034
|
outline: none;
|
|
15950
16035
|
border: 0;
|
|
15951
16036
|
background-color: transparent;
|
|
16037
|
+
transition: color var(--duration-fast) var(--timing-ease-out);
|
|
15952
16038
|
|
|
15953
16039
|
&:focus-visible {
|
|
15954
16040
|
outline: 2px solid var(--primary-action-default);
|
|
@@ -15982,7 +16068,7 @@ var menuButton = css72`
|
|
|
15982
16068
|
`;
|
|
15983
16069
|
|
|
15984
16070
|
// src/components/MediaCard/MediaCard.tsx
|
|
15985
|
-
import { jsx as
|
|
16071
|
+
import { jsx as jsx88, jsxs as jsxs58 } from "@emotion/react/jsx-runtime";
|
|
15986
16072
|
var MediaCard = ({
|
|
15987
16073
|
title: title2,
|
|
15988
16074
|
subtitle: subtitle2,
|
|
@@ -15998,12 +16084,12 @@ var MediaCard = ({
|
|
|
15998
16084
|
}, []);
|
|
15999
16085
|
const hasMenuItems = Array.isArray(menuItems) ? menuItems.length > 0 : Boolean(menuItems);
|
|
16000
16086
|
return /* @__PURE__ */ jsxs58(Card, { css: cardBase, ...cardProps, onClick, children: [
|
|
16001
|
-
/* @__PURE__ */
|
|
16002
|
-
/* @__PURE__ */
|
|
16087
|
+
/* @__PURE__ */ jsx88("button", { tabIndex: -1, css: coverWrapper, children: cover }),
|
|
16088
|
+
/* @__PURE__ */ jsx88("div", { css: contentWrapper, children: /* @__PURE__ */ jsxs58(HorizontalRhythm, { gap: "sm", justify: "space-between", align: "center", css: { width: "100%" }, children: [
|
|
16003
16089
|
/* @__PURE__ */ jsxs58(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1, minWidth: 0 }, children: [
|
|
16004
16090
|
/* @__PURE__ */ jsxs58(HorizontalRhythm, { gap: "xs", align: "center", css: { maxWidth: "100%" }, children: [
|
|
16005
|
-
/* @__PURE__ */
|
|
16006
|
-
!infoPopover ? null : /* @__PURE__ */
|
|
16091
|
+
/* @__PURE__ */ jsx88("button", { css: title, "data-testid": "card-title", children: title2 }),
|
|
16092
|
+
!infoPopover ? null : /* @__PURE__ */ jsx88("div", { css: { display: "flex", cursor: "default" }, onClick: onStopPropogation, children: /* @__PURE__ */ jsx88(
|
|
16007
16093
|
Popover2,
|
|
16008
16094
|
{
|
|
16009
16095
|
baseId: `info-of-${title2}`,
|
|
@@ -16012,24 +16098,24 @@ var MediaCard = ({
|
|
|
16012
16098
|
iconColor: "default",
|
|
16013
16099
|
tabIndex: 0,
|
|
16014
16100
|
css: { display: "block" },
|
|
16015
|
-
children: /* @__PURE__ */
|
|
16101
|
+
children: /* @__PURE__ */ jsx88("div", { children: infoPopover })
|
|
16016
16102
|
}
|
|
16017
16103
|
) })
|
|
16018
16104
|
] }),
|
|
16019
|
-
subtitle2 ? /* @__PURE__ */
|
|
16105
|
+
subtitle2 ? /* @__PURE__ */ jsx88("button", { tabIndex: -1, css: subtitle, children: subtitle2 }) : null
|
|
16020
16106
|
] }),
|
|
16021
|
-
sideSection2 ? /* @__PURE__ */
|
|
16022
|
-
hasMenuItems ? /* @__PURE__ */
|
|
16107
|
+
sideSection2 ? /* @__PURE__ */ jsx88("div", { css: sideSection, onClick: onStopPropogation, children: sideSection2 }) : null,
|
|
16108
|
+
hasMenuItems ? /* @__PURE__ */ jsx88(
|
|
16023
16109
|
VerticalRhythm,
|
|
16024
16110
|
{
|
|
16025
16111
|
css: menuSection,
|
|
16026
16112
|
align: "center",
|
|
16027
16113
|
justify: "center",
|
|
16028
16114
|
onClick: onStopPropogation,
|
|
16029
|
-
children: /* @__PURE__ */
|
|
16115
|
+
children: /* @__PURE__ */ jsx88(
|
|
16030
16116
|
Menu,
|
|
16031
16117
|
{
|
|
16032
|
-
menuTrigger: /* @__PURE__ */
|
|
16118
|
+
menuTrigger: /* @__PURE__ */ jsx88("button", { type: "button", "aria-label": "More options", css: menuButton, children: /* @__PURE__ */ jsx88(Icon, { icon: "more-alt", iconColor: "gray", size: 16 }) }),
|
|
16033
16119
|
menuLabel: `Menu of ${title2}`,
|
|
16034
16120
|
children: menuItems
|
|
16035
16121
|
}
|
|
@@ -16090,6 +16176,7 @@ var modalCloseButtonStyles = css73`
|
|
|
16090
16176
|
margin-left: auto;
|
|
16091
16177
|
`;
|
|
16092
16178
|
var modalContentStyles = css73`
|
|
16179
|
+
position: relative;
|
|
16093
16180
|
flex: 1;
|
|
16094
16181
|
background-color: white;
|
|
16095
16182
|
padding: var(--spacing-md);
|
|
@@ -16098,7 +16185,7 @@ var modalContentStyles = css73`
|
|
|
16098
16185
|
`;
|
|
16099
16186
|
|
|
16100
16187
|
// src/components/Modal/Modal.tsx
|
|
16101
|
-
import { jsx as
|
|
16188
|
+
import { jsx as jsx89, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
|
|
16102
16189
|
var defaultModalWidth = "75rem";
|
|
16103
16190
|
var defaultModalHeight = "51rem";
|
|
16104
16191
|
var Modal = React19.forwardRef(
|
|
@@ -16118,34 +16205,114 @@ var Modal = React19.forwardRef(
|
|
|
16118
16205
|
shortcut: "escape"
|
|
16119
16206
|
});
|
|
16120
16207
|
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
|
-
|
|
16208
|
+
/* @__PURE__ */ jsx89("div", { onClick: onRequestClose, css: modalBackdropStyles }),
|
|
16209
|
+
/* @__PURE__ */ jsxs59(
|
|
16210
|
+
"dialog",
|
|
16211
|
+
{
|
|
16212
|
+
ref,
|
|
16213
|
+
css: modalStyles,
|
|
16214
|
+
style: { width, height },
|
|
16215
|
+
"data-testid": "side-dialog",
|
|
16216
|
+
...modalProps,
|
|
16217
|
+
children: [
|
|
16218
|
+
/* @__PURE__ */ jsxs59("div", { css: modalHeaderStyles, children: [
|
|
16219
|
+
/* @__PURE__ */ jsx89("div", { children: header }),
|
|
16220
|
+
/* @__PURE__ */ jsx89(
|
|
16221
|
+
Button,
|
|
16222
|
+
{
|
|
16223
|
+
type: "button",
|
|
16224
|
+
onClick: onRequestClose,
|
|
16225
|
+
css: modalCloseButtonStyles,
|
|
16226
|
+
title: "Close dialog",
|
|
16227
|
+
buttonType: "ghost",
|
|
16228
|
+
"data-testid": "close-dialog",
|
|
16229
|
+
children: /* @__PURE__ */ jsx89(Icon, { icon: CgClose5, iconColor: "gray", size: 24 })
|
|
16230
|
+
}
|
|
16231
|
+
)
|
|
16232
|
+
] }),
|
|
16233
|
+
/* @__PURE__ */ jsx89("div", { css: [modalContentStyles, !withoutContentPadding ? null : { padding: 0 }], children }),
|
|
16234
|
+
buttonGroup ? /* @__PURE__ */ jsx89(HorizontalRhythm, { children: buttonGroup }) : null
|
|
16235
|
+
]
|
|
16236
|
+
}
|
|
16237
|
+
)
|
|
16141
16238
|
] });
|
|
16142
16239
|
}
|
|
16143
16240
|
);
|
|
16144
16241
|
Modal.displayName = "Modal";
|
|
16145
16242
|
|
|
16243
|
+
// src/components/Pagination/Pagination.tsx
|
|
16244
|
+
import Paginate from "react-paginate";
|
|
16245
|
+
|
|
16246
|
+
// src/components/Pagination/Pagniation.styles.ts
|
|
16247
|
+
import { css as css74 } from "@emotion/css";
|
|
16248
|
+
var container = css74`
|
|
16249
|
+
align-items: center;
|
|
16250
|
+
display: flex;
|
|
16251
|
+
`;
|
|
16252
|
+
var disabled = css74`
|
|
16253
|
+
opacity: var(--opacity-50);
|
|
16254
|
+
`;
|
|
16255
|
+
var disabledLink = css74`
|
|
16256
|
+
cursor: pointer-default;
|
|
16257
|
+
`;
|
|
16258
|
+
var pageLink = css74`
|
|
16259
|
+
display: block;
|
|
16260
|
+
padding: var(--spacing-sm) var(--spacing-base);
|
|
16261
|
+
`;
|
|
16262
|
+
var prevNextControls = css74`
|
|
16263
|
+
padding: var(--spacing-sm) var(--spacing-base);
|
|
16264
|
+
`;
|
|
16265
|
+
var active = css74`
|
|
16266
|
+
border-radius: var(--rounded-base);
|
|
16267
|
+
background: var(--gray-200);
|
|
16268
|
+
`;
|
|
16269
|
+
var page = css74`
|
|
16270
|
+
margin-left: var(--spacing-xs);
|
|
16271
|
+
margin-right: var(--spacing-xs);
|
|
16272
|
+
`;
|
|
16273
|
+
|
|
16274
|
+
// src/components/Pagination/Pagination.tsx
|
|
16275
|
+
import { jsx as jsx90 } from "@emotion/react/jsx-runtime";
|
|
16276
|
+
function Pagination({
|
|
16277
|
+
limit,
|
|
16278
|
+
offset,
|
|
16279
|
+
total,
|
|
16280
|
+
onPageChange
|
|
16281
|
+
}) {
|
|
16282
|
+
if (limit < 1) {
|
|
16283
|
+
return null;
|
|
16284
|
+
}
|
|
16285
|
+
const pageCount = Math.ceil(total / limit);
|
|
16286
|
+
const currentPage = Math.ceil(offset / limit);
|
|
16287
|
+
if (pageCount <= 1) {
|
|
16288
|
+
return null;
|
|
16289
|
+
}
|
|
16290
|
+
return /* @__PURE__ */ jsx90(
|
|
16291
|
+
Paginate,
|
|
16292
|
+
{
|
|
16293
|
+
forcePage: currentPage,
|
|
16294
|
+
previousLabel: /* @__PURE__ */ jsx90("div", { className: prevNextControls, children: "<" }),
|
|
16295
|
+
nextLabel: /* @__PURE__ */ jsx90("div", { className: prevNextControls, children: ">" }),
|
|
16296
|
+
breakLabel: "...",
|
|
16297
|
+
pageCount,
|
|
16298
|
+
marginPagesDisplayed: 2,
|
|
16299
|
+
pageRangeDisplayed: 5,
|
|
16300
|
+
onPageChange: ({ selected }) => {
|
|
16301
|
+
onPageChange(limit, selected * limit);
|
|
16302
|
+
},
|
|
16303
|
+
containerClassName: container,
|
|
16304
|
+
disabledClassName: disabled,
|
|
16305
|
+
disabledLinkClassName: disabledLink,
|
|
16306
|
+
pageLinkClassName: pageLink,
|
|
16307
|
+
activeClassName: active,
|
|
16308
|
+
pageClassName: page
|
|
16309
|
+
}
|
|
16310
|
+
);
|
|
16311
|
+
}
|
|
16312
|
+
|
|
16146
16313
|
// src/components/ParameterInputs/hooks/ParameterShellContext.tsx
|
|
16147
|
-
import { createContext as
|
|
16148
|
-
var ParameterShellContext =
|
|
16314
|
+
import { createContext as createContext4, useContext as useContext5 } from "react";
|
|
16315
|
+
var ParameterShellContext = createContext4({
|
|
16149
16316
|
id: "",
|
|
16150
16317
|
label: "",
|
|
16151
16318
|
hiddenLabel: void 0,
|
|
@@ -16154,7 +16321,7 @@ var ParameterShellContext = createContext5({
|
|
|
16154
16321
|
}
|
|
16155
16322
|
});
|
|
16156
16323
|
var useParameterShell = () => {
|
|
16157
|
-
const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } =
|
|
16324
|
+
const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } = useContext5(ParameterShellContext);
|
|
16158
16325
|
return {
|
|
16159
16326
|
id,
|
|
16160
16327
|
label,
|
|
@@ -16165,8 +16332,8 @@ var useParameterShell = () => {
|
|
|
16165
16332
|
};
|
|
16166
16333
|
|
|
16167
16334
|
// src/components/ParameterInputs/styles/LabelLeadingIcon.styles.ts
|
|
16168
|
-
import { css as
|
|
16169
|
-
var inputIconBtn =
|
|
16335
|
+
import { css as css75 } from "@emotion/react";
|
|
16336
|
+
var inputIconBtn = css75`
|
|
16170
16337
|
align-items: center;
|
|
16171
16338
|
border: none;
|
|
16172
16339
|
border-radius: var(--rounded-base);
|
|
@@ -16192,7 +16359,7 @@ var inputIconBtn = css74`
|
|
|
16192
16359
|
`;
|
|
16193
16360
|
|
|
16194
16361
|
// src/components/ParameterInputs/LabelLeadingIcon.tsx
|
|
16195
|
-
import { jsx as
|
|
16362
|
+
import { jsx as jsx91, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
|
|
16196
16363
|
var LabelLeadingIcon = ({
|
|
16197
16364
|
icon,
|
|
16198
16365
|
iconColor,
|
|
@@ -16204,7 +16371,7 @@ var LabelLeadingIcon = ({
|
|
|
16204
16371
|
...props
|
|
16205
16372
|
}) => {
|
|
16206
16373
|
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__ */
|
|
16374
|
+
return /* @__PURE__ */ jsx91(Tooltip, { title: titleFr, children: /* @__PURE__ */ jsxs60(
|
|
16208
16375
|
"button",
|
|
16209
16376
|
{
|
|
16210
16377
|
css: inputIconBtn,
|
|
@@ -16213,7 +16380,7 @@ var LabelLeadingIcon = ({
|
|
|
16213
16380
|
"aria-disabled": isLocked,
|
|
16214
16381
|
...props,
|
|
16215
16382
|
children: [
|
|
16216
|
-
/* @__PURE__ */
|
|
16383
|
+
/* @__PURE__ */ jsx91(
|
|
16217
16384
|
Icon,
|
|
16218
16385
|
{
|
|
16219
16386
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -16229,8 +16396,8 @@ var LabelLeadingIcon = ({
|
|
|
16229
16396
|
var ConnectToDataElementButton = LabelLeadingIcon;
|
|
16230
16397
|
|
|
16231
16398
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
16232
|
-
import { css as
|
|
16233
|
-
var inputContainer2 =
|
|
16399
|
+
import { css as css76 } from "@emotion/react";
|
|
16400
|
+
var inputContainer2 = css76`
|
|
16234
16401
|
position: relative;
|
|
16235
16402
|
scroll-margin: var(--spacing-2xl);
|
|
16236
16403
|
|
|
@@ -16243,14 +16410,14 @@ var inputContainer2 = css75`
|
|
|
16243
16410
|
}
|
|
16244
16411
|
}
|
|
16245
16412
|
`;
|
|
16246
|
-
var labelText2 =
|
|
16413
|
+
var labelText2 = css76`
|
|
16247
16414
|
align-items: center;
|
|
16248
16415
|
display: flex;
|
|
16249
16416
|
gap: var(--spacing-xs);
|
|
16250
16417
|
font-weight: var(--fw-regular);
|
|
16251
16418
|
margin: 0 0 var(--spacing-xs);
|
|
16252
16419
|
`;
|
|
16253
|
-
var input2 =
|
|
16420
|
+
var input2 = css76`
|
|
16254
16421
|
display: block;
|
|
16255
16422
|
appearance: none;
|
|
16256
16423
|
box-sizing: border-box;
|
|
@@ -16294,18 +16461,18 @@ var input2 = css75`
|
|
|
16294
16461
|
color: var(--gray-400);
|
|
16295
16462
|
}
|
|
16296
16463
|
`;
|
|
16297
|
-
var selectInput =
|
|
16464
|
+
var selectInput = css76`
|
|
16298
16465
|
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
16466
|
background-position: right var(--spacing-sm) center;
|
|
16300
16467
|
background-repeat: no-repeat;
|
|
16301
16468
|
background-size: 1rem;
|
|
16302
16469
|
padding-right: var(--spacing-xl);
|
|
16303
16470
|
`;
|
|
16304
|
-
var inputWrapper =
|
|
16471
|
+
var inputWrapper = css76`
|
|
16305
16472
|
display: flex; // used to correct overflow with chrome textarea
|
|
16306
16473
|
position: relative;
|
|
16307
16474
|
`;
|
|
16308
|
-
var inputIcon2 =
|
|
16475
|
+
var inputIcon2 = css76`
|
|
16309
16476
|
align-items: center;
|
|
16310
16477
|
background: var(--white);
|
|
16311
16478
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -16321,7 +16488,7 @@ var inputIcon2 = css75`
|
|
|
16321
16488
|
width: var(--spacing-lg);
|
|
16322
16489
|
z-index: var(--z-10);
|
|
16323
16490
|
`;
|
|
16324
|
-
var inputToggleLabel2 =
|
|
16491
|
+
var inputToggleLabel2 = css76`
|
|
16325
16492
|
align-items: center;
|
|
16326
16493
|
background: var(--white);
|
|
16327
16494
|
cursor: pointer;
|
|
@@ -16332,7 +16499,7 @@ var inputToggleLabel2 = css75`
|
|
|
16332
16499
|
min-height: var(--spacing-md);
|
|
16333
16500
|
position: relative;
|
|
16334
16501
|
`;
|
|
16335
|
-
var toggleInput2 =
|
|
16502
|
+
var toggleInput2 = css76`
|
|
16336
16503
|
appearance: none;
|
|
16337
16504
|
border: 1px solid var(--gray-300);
|
|
16338
16505
|
background: var(--white);
|
|
@@ -16371,7 +16538,7 @@ var toggleInput2 = css75`
|
|
|
16371
16538
|
border-color: var(--gray-300);
|
|
16372
16539
|
}
|
|
16373
16540
|
`;
|
|
16374
|
-
var inlineLabel2 =
|
|
16541
|
+
var inlineLabel2 = css76`
|
|
16375
16542
|
padding-left: var(--spacing-lg);
|
|
16376
16543
|
font-size: var(--fs-sm);
|
|
16377
16544
|
font-weight: var(--fw-regular);
|
|
@@ -16387,7 +16554,7 @@ var inlineLabel2 = css75`
|
|
|
16387
16554
|
}
|
|
16388
16555
|
}
|
|
16389
16556
|
`;
|
|
16390
|
-
var inputMenu =
|
|
16557
|
+
var inputMenu = css76`
|
|
16391
16558
|
background: none;
|
|
16392
16559
|
border: none;
|
|
16393
16560
|
padding: var(--spacing-2xs);
|
|
@@ -16403,11 +16570,11 @@ var inputMenu = css75`
|
|
|
16403
16570
|
background-color: var(--gray-200);
|
|
16404
16571
|
}
|
|
16405
16572
|
`;
|
|
16406
|
-
var textarea2 =
|
|
16573
|
+
var textarea2 = css76`
|
|
16407
16574
|
resize: vertical;
|
|
16408
16575
|
min-height: 2rem;
|
|
16409
16576
|
`;
|
|
16410
|
-
var dataConnectButton =
|
|
16577
|
+
var dataConnectButton = css76`
|
|
16411
16578
|
align-items: center;
|
|
16412
16579
|
appearance: none;
|
|
16413
16580
|
box-sizing: border-box;
|
|
@@ -16442,7 +16609,7 @@ var dataConnectButton = css75`
|
|
|
16442
16609
|
pointer-events: none;
|
|
16443
16610
|
}
|
|
16444
16611
|
`;
|
|
16445
|
-
var linkParameterBtn =
|
|
16612
|
+
var linkParameterBtn = css76`
|
|
16446
16613
|
border-radius: var(--rounded-base);
|
|
16447
16614
|
background: var(--white);
|
|
16448
16615
|
border: none;
|
|
@@ -16451,7 +16618,7 @@ var linkParameterBtn = css75`
|
|
|
16451
16618
|
font-size: var(--fs-sm);
|
|
16452
16619
|
line-height: 1;
|
|
16453
16620
|
`;
|
|
16454
|
-
var linkParameterControls =
|
|
16621
|
+
var linkParameterControls = css76`
|
|
16455
16622
|
position: absolute;
|
|
16456
16623
|
inset: 0 0 0 auto;
|
|
16457
16624
|
padding: 0 var(--spacing-base);
|
|
@@ -16460,7 +16627,7 @@ var linkParameterControls = css75`
|
|
|
16460
16627
|
justify-content: center;
|
|
16461
16628
|
gap: var(--spacing-base);
|
|
16462
16629
|
`;
|
|
16463
|
-
var linkParameterInput = (withExternalLinkIcon) =>
|
|
16630
|
+
var linkParameterInput = (withExternalLinkIcon) => css76`
|
|
16464
16631
|
padding-right: calc(
|
|
16465
16632
|
${withExternalLinkIcon ? "calc(var(--spacing-lg) * 2 + var(--spacing-xs))" : "var(--spacing-xl)"} +
|
|
16466
16633
|
var(--spacing-base)
|
|
@@ -16473,7 +16640,7 @@ var linkParameterInput = (withExternalLinkIcon) => css75`
|
|
|
16473
16640
|
}
|
|
16474
16641
|
}
|
|
16475
16642
|
`;
|
|
16476
|
-
var linkParameterIcon =
|
|
16643
|
+
var linkParameterIcon = css76`
|
|
16477
16644
|
align-items: center;
|
|
16478
16645
|
color: var(--brand-secondary-3);
|
|
16479
16646
|
display: flex;
|
|
@@ -16488,14 +16655,14 @@ var linkParameterIcon = css75`
|
|
|
16488
16655
|
`;
|
|
16489
16656
|
|
|
16490
16657
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
16491
|
-
import { jsx as
|
|
16658
|
+
import { jsx as jsx92, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
|
|
16492
16659
|
function ParameterDataResource({
|
|
16493
16660
|
label,
|
|
16494
16661
|
labelLeadingIcon,
|
|
16495
16662
|
id,
|
|
16496
16663
|
onConnectDatasource,
|
|
16497
16664
|
caption,
|
|
16498
|
-
disabled,
|
|
16665
|
+
disabled: disabled2,
|
|
16499
16666
|
children
|
|
16500
16667
|
}) {
|
|
16501
16668
|
return /* @__PURE__ */ jsxs61("div", { "data-testid": "parameter-data-connect-button", children: [
|
|
@@ -16509,33 +16676,33 @@ function ParameterDataResource({
|
|
|
16509
16676
|
type: "button",
|
|
16510
16677
|
css: dataConnectButton,
|
|
16511
16678
|
"aria-controls": id,
|
|
16512
|
-
disabled,
|
|
16679
|
+
disabled: disabled2,
|
|
16513
16680
|
onClick: onConnectDatasource,
|
|
16514
16681
|
children: [
|
|
16515
|
-
/* @__PURE__ */
|
|
16682
|
+
/* @__PURE__ */ jsx92("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx92(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
16516
16683
|
children
|
|
16517
16684
|
]
|
|
16518
16685
|
}
|
|
16519
16686
|
),
|
|
16520
|
-
caption ? /* @__PURE__ */
|
|
16687
|
+
caption ? /* @__PURE__ */ jsx92(Caption, { children: caption }) : null
|
|
16521
16688
|
] });
|
|
16522
16689
|
}
|
|
16523
16690
|
|
|
16524
16691
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
16525
|
-
import { css as
|
|
16526
|
-
var ParameterDrawerHeaderContainer =
|
|
16692
|
+
import { css as css77 } from "@emotion/react";
|
|
16693
|
+
var ParameterDrawerHeaderContainer = css77`
|
|
16527
16694
|
align-items: center;
|
|
16528
16695
|
display: flex;
|
|
16529
16696
|
gap: var(--spacing-base);
|
|
16530
16697
|
justify-content: space-between;
|
|
16531
16698
|
margin-bottom: var(--spacing-sm);
|
|
16532
16699
|
`;
|
|
16533
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
16700
|
+
var ParameterDrawerHeaderTitleGroup = css77`
|
|
16534
16701
|
align-items: center;
|
|
16535
16702
|
display: flex;
|
|
16536
16703
|
gap: var(--spacing-sm);
|
|
16537
16704
|
`;
|
|
16538
|
-
var ParameterDrawerHeaderTitle =
|
|
16705
|
+
var ParameterDrawerHeaderTitle = css77`
|
|
16539
16706
|
text-overflow: ellipsis;
|
|
16540
16707
|
white-space: nowrap;
|
|
16541
16708
|
overflow: hidden;
|
|
@@ -16543,23 +16710,23 @@ var ParameterDrawerHeaderTitle = css76`
|
|
|
16543
16710
|
`;
|
|
16544
16711
|
|
|
16545
16712
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
16546
|
-
import { jsx as
|
|
16713
|
+
import { jsx as jsx93, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
|
|
16547
16714
|
var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
|
|
16548
16715
|
return /* @__PURE__ */ jsxs62("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
16549
16716
|
/* @__PURE__ */ jsxs62("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
16550
16717
|
iconBeforeTitle,
|
|
16551
|
-
/* @__PURE__ */
|
|
16718
|
+
/* @__PURE__ */ jsx93(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title: title2, children: title2 })
|
|
16552
16719
|
] }),
|
|
16553
16720
|
children
|
|
16554
16721
|
] });
|
|
16555
16722
|
};
|
|
16556
16723
|
|
|
16557
16724
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
16558
|
-
import { forwardRef as
|
|
16725
|
+
import { forwardRef as forwardRef11 } from "react";
|
|
16559
16726
|
|
|
16560
16727
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
16561
|
-
import { css as
|
|
16562
|
-
var fieldsetStyles =
|
|
16728
|
+
import { css as css78 } from "@emotion/react";
|
|
16729
|
+
var fieldsetStyles = css78`
|
|
16563
16730
|
&:disabled,
|
|
16564
16731
|
[readonly] {
|
|
16565
16732
|
pointer-events: none;
|
|
@@ -16570,7 +16737,7 @@ var fieldsetStyles = css77`
|
|
|
16570
16737
|
}
|
|
16571
16738
|
}
|
|
16572
16739
|
`;
|
|
16573
|
-
var fieldsetLegend2 =
|
|
16740
|
+
var fieldsetLegend2 = css78`
|
|
16574
16741
|
display: block;
|
|
16575
16742
|
font-weight: var(--fw-medium);
|
|
16576
16743
|
margin-bottom: var(--spacing-sm);
|
|
@@ -16578,33 +16745,33 @@ var fieldsetLegend2 = css77`
|
|
|
16578
16745
|
`;
|
|
16579
16746
|
|
|
16580
16747
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
16581
|
-
import { jsx as
|
|
16582
|
-
var ParameterGroup =
|
|
16748
|
+
import { jsx as jsx94, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
|
|
16749
|
+
var ParameterGroup = forwardRef11(
|
|
16583
16750
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
16584
16751
|
return /* @__PURE__ */ jsxs63("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
16585
|
-
/* @__PURE__ */
|
|
16752
|
+
/* @__PURE__ */ jsx94("legend", { css: fieldsetLegend2, children: legend }),
|
|
16586
16753
|
children
|
|
16587
16754
|
] });
|
|
16588
16755
|
}
|
|
16589
16756
|
);
|
|
16590
16757
|
|
|
16591
16758
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
16592
|
-
import { forwardRef as
|
|
16759
|
+
import { forwardRef as forwardRef13, useDeferredValue } from "react";
|
|
16593
16760
|
|
|
16594
16761
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
16595
|
-
import { useState as
|
|
16762
|
+
import { useState as useState9 } from "react";
|
|
16596
16763
|
import { createPortal as createPortal2 } from "react-dom";
|
|
16597
16764
|
|
|
16598
16765
|
// src/components/ParameterInputs/styles/ParameterImage.styles.ts
|
|
16599
|
-
import { css as
|
|
16600
|
-
var previewWrapper =
|
|
16766
|
+
import { css as css79 } from "@emotion/react";
|
|
16767
|
+
var previewWrapper = css79`
|
|
16601
16768
|
margin-top: var(--spacing-xs);
|
|
16602
16769
|
background: var(--gray-50);
|
|
16603
16770
|
padding: var(--spacing-sm);
|
|
16604
16771
|
border: solid 1px var(--gray-300);
|
|
16605
16772
|
border-radius: var(--rounded-sm);
|
|
16606
16773
|
`;
|
|
16607
|
-
var previewLink =
|
|
16774
|
+
var previewLink = css79`
|
|
16608
16775
|
display: block;
|
|
16609
16776
|
width: 100%;
|
|
16610
16777
|
|
|
@@ -16612,7 +16779,7 @@ var previewLink = css78`
|
|
|
16612
16779
|
max-height: 9rem;
|
|
16613
16780
|
}
|
|
16614
16781
|
`;
|
|
16615
|
-
var previewModalWrapper =
|
|
16782
|
+
var previewModalWrapper = css79`
|
|
16616
16783
|
background: var(--gray-50);
|
|
16617
16784
|
display: flex;
|
|
16618
16785
|
height: 100%;
|
|
@@ -16621,7 +16788,7 @@ var previewModalWrapper = css78`
|
|
|
16621
16788
|
border: solid 1px var(--gray-300);
|
|
16622
16789
|
border-radius: var(--rounded-sm);
|
|
16623
16790
|
`;
|
|
16624
|
-
var previewModalImage =
|
|
16791
|
+
var previewModalImage = css79`
|
|
16625
16792
|
display: flex;
|
|
16626
16793
|
height: 100%;
|
|
16627
16794
|
width: 100%;
|
|
@@ -16633,33 +16800,33 @@ var previewModalImage = css78`
|
|
|
16633
16800
|
`;
|
|
16634
16801
|
|
|
16635
16802
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
16636
|
-
import { Fragment as
|
|
16803
|
+
import { Fragment as Fragment14, jsx as jsx95, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
|
|
16637
16804
|
function ParameterImagePreview({ imageSrc }) {
|
|
16638
|
-
const [showModal, setShowModal] =
|
|
16805
|
+
const [showModal, setShowModal] = useState9(false);
|
|
16639
16806
|
return imageSrc ? /* @__PURE__ */ jsxs64("div", { css: previewWrapper, children: [
|
|
16640
|
-
/* @__PURE__ */
|
|
16641
|
-
/* @__PURE__ */
|
|
16807
|
+
/* @__PURE__ */ jsx95(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
|
|
16808
|
+
/* @__PURE__ */ jsx95(
|
|
16642
16809
|
"button",
|
|
16643
16810
|
{
|
|
16644
16811
|
css: previewLink,
|
|
16645
16812
|
onClick: () => {
|
|
16646
16813
|
setShowModal(true);
|
|
16647
16814
|
},
|
|
16648
|
-
children: /* @__PURE__ */
|
|
16815
|
+
children: /* @__PURE__ */ jsx95(Image, { src: imageSrc, "data-testid": "parameter-image-preview" })
|
|
16649
16816
|
}
|
|
16650
16817
|
)
|
|
16651
16818
|
] }) : null;
|
|
16652
16819
|
}
|
|
16653
16820
|
var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
16654
|
-
return open ? /* @__PURE__ */
|
|
16655
|
-
/* @__PURE__ */
|
|
16821
|
+
return open ? /* @__PURE__ */ jsx95(Fragment14, { children: createPortal2(
|
|
16822
|
+
/* @__PURE__ */ jsx95(
|
|
16656
16823
|
Modal,
|
|
16657
16824
|
{
|
|
16658
16825
|
header: "Image Preview",
|
|
16659
16826
|
onRequestClose,
|
|
16660
16827
|
withoutContentPadding: true,
|
|
16661
|
-
buttonGroup: /* @__PURE__ */
|
|
16662
|
-
children: /* @__PURE__ */
|
|
16828
|
+
buttonGroup: /* @__PURE__ */ jsx95(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
|
|
16829
|
+
children: /* @__PURE__ */ jsx95("div", { css: previewModalWrapper, children: /* @__PURE__ */ jsx95(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
|
|
16663
16830
|
}
|
|
16664
16831
|
),
|
|
16665
16832
|
document.body
|
|
@@ -16667,25 +16834,25 @@ var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
|
16667
16834
|
};
|
|
16668
16835
|
|
|
16669
16836
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
16670
|
-
import { css as
|
|
16671
|
-
import { useState as
|
|
16837
|
+
import { css as css81 } from "@emotion/react";
|
|
16838
|
+
import { useState as useState10 } from "react";
|
|
16672
16839
|
|
|
16673
16840
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
16674
|
-
import { jsx as
|
|
16841
|
+
import { jsx as jsx96 } from "@emotion/react/jsx-runtime";
|
|
16675
16842
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
16676
|
-
return !asSpan ? /* @__PURE__ */
|
|
16843
|
+
return !asSpan ? /* @__PURE__ */ jsx96("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx96("span", { "aria-labelledby": id, css: labelText2, children });
|
|
16677
16844
|
};
|
|
16678
16845
|
|
|
16679
16846
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
16680
|
-
import { forwardRef as
|
|
16681
|
-
import { jsx as
|
|
16682
|
-
var ParameterMenuButton =
|
|
16847
|
+
import { forwardRef as forwardRef12 } from "react";
|
|
16848
|
+
import { jsx as jsx97 } from "@emotion/react/jsx-runtime";
|
|
16849
|
+
var ParameterMenuButton = forwardRef12(
|
|
16683
16850
|
({ label, children }, ref) => {
|
|
16684
|
-
return /* @__PURE__ */
|
|
16851
|
+
return /* @__PURE__ */ jsx97(
|
|
16685
16852
|
Menu,
|
|
16686
16853
|
{
|
|
16687
16854
|
menuLabel: `${label} menu`,
|
|
16688
|
-
menuTrigger: /* @__PURE__ */
|
|
16855
|
+
menuTrigger: /* @__PURE__ */ jsx97(
|
|
16689
16856
|
"button",
|
|
16690
16857
|
{
|
|
16691
16858
|
className: "parameter-menu",
|
|
@@ -16693,7 +16860,7 @@ var ParameterMenuButton = forwardRef11(
|
|
|
16693
16860
|
type: "button",
|
|
16694
16861
|
"aria-label": `${label} options`,
|
|
16695
16862
|
ref,
|
|
16696
|
-
children: /* @__PURE__ */
|
|
16863
|
+
children: /* @__PURE__ */ jsx97(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
16697
16864
|
}
|
|
16698
16865
|
),
|
|
16699
16866
|
children
|
|
@@ -16703,8 +16870,8 @@ var ParameterMenuButton = forwardRef11(
|
|
|
16703
16870
|
);
|
|
16704
16871
|
|
|
16705
16872
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
16706
|
-
import { css as
|
|
16707
|
-
var emptyParameterShell =
|
|
16873
|
+
import { css as css80 } from "@emotion/react";
|
|
16874
|
+
var emptyParameterShell = css80`
|
|
16708
16875
|
border-radius: var(--rounded-sm);
|
|
16709
16876
|
background: var(--white);
|
|
16710
16877
|
flex-grow: 1;
|
|
@@ -16712,7 +16879,7 @@ var emptyParameterShell = css79`
|
|
|
16712
16879
|
position: relative;
|
|
16713
16880
|
max-width: 100%;
|
|
16714
16881
|
`;
|
|
16715
|
-
var emptyParameterShellText =
|
|
16882
|
+
var emptyParameterShellText = css80`
|
|
16716
16883
|
background: var(--brand-secondary-6);
|
|
16717
16884
|
border-radius: var(--rounded-sm);
|
|
16718
16885
|
padding: var(--spacing-sm);
|
|
@@ -16720,7 +16887,7 @@ var emptyParameterShellText = css79`
|
|
|
16720
16887
|
font-size: var(--fs-sm);
|
|
16721
16888
|
margin: 0;
|
|
16722
16889
|
`;
|
|
16723
|
-
var overrideMarker =
|
|
16890
|
+
var overrideMarker = css80`
|
|
16724
16891
|
border-radius: var(--rounded-sm);
|
|
16725
16892
|
border: 10px solid var(--gray-300);
|
|
16726
16893
|
border-left-color: transparent;
|
|
@@ -16731,7 +16898,7 @@ var overrideMarker = css79`
|
|
|
16731
16898
|
`;
|
|
16732
16899
|
|
|
16733
16900
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
16734
|
-
import { jsx as
|
|
16901
|
+
import { jsx as jsx98, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
|
|
16735
16902
|
var extractParameterProps = (props) => {
|
|
16736
16903
|
const {
|
|
16737
16904
|
id,
|
|
@@ -16790,7 +16957,7 @@ var ParameterShell = ({
|
|
|
16790
16957
|
children,
|
|
16791
16958
|
...props
|
|
16792
16959
|
}) => {
|
|
16793
|
-
const [manualErrorMessage, setManualErrorMessage] =
|
|
16960
|
+
const [manualErrorMessage, setManualErrorMessage] = useState10(void 0);
|
|
16794
16961
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
16795
16962
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
16796
16963
|
return /* @__PURE__ */ jsxs65("div", { css: inputContainer2, ...props, id, children: [
|
|
@@ -16805,23 +16972,23 @@ var ParameterShell = ({
|
|
|
16805
16972
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
16806
16973
|
] }),
|
|
16807
16974
|
/* @__PURE__ */ jsxs65("div", { css: inputWrapper, children: [
|
|
16808
|
-
actionItems ? /* @__PURE__ */
|
|
16975
|
+
actionItems ? /* @__PURE__ */ jsx98(
|
|
16809
16976
|
"div",
|
|
16810
16977
|
{
|
|
16811
16978
|
css: [
|
|
16812
16979
|
inputMenu,
|
|
16813
|
-
|
|
16980
|
+
css81`
|
|
16814
16981
|
opacity: var(--opacity-100);
|
|
16815
16982
|
`,
|
|
16816
|
-
menuItems ?
|
|
16983
|
+
menuItems ? css81`
|
|
16817
16984
|
right: var(--spacing-md);
|
|
16818
16985
|
` : void 0
|
|
16819
16986
|
],
|
|
16820
16987
|
children: actionItems
|
|
16821
16988
|
}
|
|
16822
16989
|
) : null,
|
|
16823
|
-
menuItems ? /* @__PURE__ */
|
|
16824
|
-
/* @__PURE__ */
|
|
16990
|
+
menuItems ? /* @__PURE__ */ jsx98(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
16991
|
+
/* @__PURE__ */ jsx98(
|
|
16825
16992
|
ParameterShellContext.Provider,
|
|
16826
16993
|
{
|
|
16827
16994
|
value: {
|
|
@@ -16833,39 +17000,39 @@ var ParameterShell = ({
|
|
|
16833
17000
|
},
|
|
16834
17001
|
children: /* @__PURE__ */ jsxs65(ParameterShellPlaceholder, { children: [
|
|
16835
17002
|
children,
|
|
16836
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
17003
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx98(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
16837
17004
|
] })
|
|
16838
17005
|
}
|
|
16839
17006
|
)
|
|
16840
17007
|
] }),
|
|
16841
|
-
caption ? /* @__PURE__ */
|
|
16842
|
-
errorMessaging ? /* @__PURE__ */
|
|
16843
|
-
warningMessage ? /* @__PURE__ */
|
|
16844
|
-
infoMessage ? /* @__PURE__ */
|
|
17008
|
+
caption ? /* @__PURE__ */ jsx98(Caption, { testId: captionTestId, children: caption }) : null,
|
|
17009
|
+
errorMessaging ? /* @__PURE__ */ jsx98(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null,
|
|
17010
|
+
warningMessage ? /* @__PURE__ */ jsx98(WarningMessage, { message: warningMessage }) : null,
|
|
17011
|
+
infoMessage ? /* @__PURE__ */ jsx98(InfoMessage, { message: infoMessage }) : null
|
|
16845
17012
|
] });
|
|
16846
17013
|
};
|
|
16847
17014
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
16848
|
-
return /* @__PURE__ */
|
|
17015
|
+
return /* @__PURE__ */ jsx98("div", { css: emptyParameterShell, children });
|
|
16849
17016
|
};
|
|
16850
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
17017
|
+
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
17018
|
|
|
16852
17019
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
16853
|
-
import { Fragment as
|
|
16854
|
-
var ParameterImage =
|
|
17020
|
+
import { Fragment as Fragment15, jsx as jsx99, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
|
|
17021
|
+
var ParameterImage = forwardRef13(
|
|
16855
17022
|
({ children, ...props }, ref) => {
|
|
16856
17023
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16857
17024
|
return /* @__PURE__ */ jsxs66(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
|
|
16858
|
-
/* @__PURE__ */
|
|
17025
|
+
/* @__PURE__ */ jsx99(ParameterImageInner, { ref, ...innerProps }),
|
|
16859
17026
|
children
|
|
16860
17027
|
] });
|
|
16861
17028
|
}
|
|
16862
17029
|
);
|
|
16863
|
-
var ParameterImageInner =
|
|
17030
|
+
var ParameterImageInner = forwardRef13((props, ref) => {
|
|
16864
17031
|
const { value } = props;
|
|
16865
17032
|
const { id, label, hiddenLabel, errorMessage } = useParameterShell();
|
|
16866
17033
|
const deferredValue = useDeferredValue(value);
|
|
16867
|
-
return /* @__PURE__ */ jsxs66(
|
|
16868
|
-
/* @__PURE__ */
|
|
17034
|
+
return /* @__PURE__ */ jsxs66(Fragment15, { children: [
|
|
17035
|
+
/* @__PURE__ */ jsx99(
|
|
16869
17036
|
"input",
|
|
16870
17037
|
{
|
|
16871
17038
|
css: input2,
|
|
@@ -16877,21 +17044,21 @@ var ParameterImageInner = forwardRef12((props, ref) => {
|
|
|
16877
17044
|
...props
|
|
16878
17045
|
}
|
|
16879
17046
|
),
|
|
16880
|
-
errorMessage || props.disablePreview ? null : /* @__PURE__ */
|
|
17047
|
+
errorMessage || props.disablePreview ? null : /* @__PURE__ */ jsx99(ParameterImagePreview, { imageSrc: deferredValue })
|
|
16881
17048
|
] });
|
|
16882
17049
|
});
|
|
16883
17050
|
|
|
16884
17051
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
16885
|
-
import { forwardRef as
|
|
16886
|
-
import { jsx as
|
|
16887
|
-
var ParameterInput =
|
|
17052
|
+
import { forwardRef as forwardRef14 } from "react";
|
|
17053
|
+
import { jsx as jsx100 } from "@emotion/react/jsx-runtime";
|
|
17054
|
+
var ParameterInput = forwardRef14((props, ref) => {
|
|
16888
17055
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16889
|
-
return /* @__PURE__ */
|
|
17056
|
+
return /* @__PURE__ */ jsx100(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx100(ParameterInputInner, { ref, ...innerProps }) });
|
|
16890
17057
|
});
|
|
16891
|
-
var ParameterInputInner =
|
|
17058
|
+
var ParameterInputInner = forwardRef14(
|
|
16892
17059
|
({ ...props }, ref) => {
|
|
16893
17060
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
16894
|
-
return /* @__PURE__ */
|
|
17061
|
+
return /* @__PURE__ */ jsx100(
|
|
16895
17062
|
"input",
|
|
16896
17063
|
{
|
|
16897
17064
|
css: input2,
|
|
@@ -16907,19 +17074,19 @@ var ParameterInputInner = forwardRef13(
|
|
|
16907
17074
|
);
|
|
16908
17075
|
|
|
16909
17076
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
16910
|
-
import { forwardRef as
|
|
16911
|
-
import { jsx as
|
|
16912
|
-
var ParameterLink =
|
|
16913
|
-
({ disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
17077
|
+
import { forwardRef as forwardRef15 } from "react";
|
|
17078
|
+
import { jsx as jsx101, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
|
|
17079
|
+
var ParameterLink = forwardRef15(
|
|
17080
|
+
({ disabled: disabled2, onConnectLink, externalLink, ...props }, ref) => {
|
|
16914
17081
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16915
|
-
return /* @__PURE__ */
|
|
17082
|
+
return /* @__PURE__ */ jsx101(
|
|
16916
17083
|
ParameterShell,
|
|
16917
17084
|
{
|
|
16918
17085
|
"data-testid": "link-parameter-editor",
|
|
16919
17086
|
...shellProps,
|
|
16920
17087
|
label: innerProps.value ? shellProps.label : "",
|
|
16921
17088
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
16922
|
-
children: /* @__PURE__ */
|
|
17089
|
+
children: /* @__PURE__ */ jsx101(
|
|
16923
17090
|
ParameterLinkInner,
|
|
16924
17091
|
{
|
|
16925
17092
|
onConnectLink,
|
|
@@ -16932,13 +17099,13 @@ var ParameterLink = forwardRef14(
|
|
|
16932
17099
|
);
|
|
16933
17100
|
}
|
|
16934
17101
|
);
|
|
16935
|
-
var ParameterLinkInner =
|
|
16936
|
-
({ externalLink, onConnectLink, disabled, buttonText = "Select link", ...props }, ref) => {
|
|
17102
|
+
var ParameterLinkInner = forwardRef15(
|
|
17103
|
+
({ externalLink, onConnectLink, disabled: disabled2, buttonText = "Select link", ...props }, ref) => {
|
|
16937
17104
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
16938
17105
|
if (!props.value)
|
|
16939
|
-
return /* @__PURE__ */
|
|
17106
|
+
return /* @__PURE__ */ jsx101("button", { type: "button", css: dataConnectButton, disabled: disabled2, onClick: onConnectLink, children: buttonText });
|
|
16940
17107
|
return /* @__PURE__ */ jsxs67("div", { css: inputWrapper, children: [
|
|
16941
|
-
/* @__PURE__ */
|
|
17108
|
+
/* @__PURE__ */ jsx101(
|
|
16942
17109
|
"input",
|
|
16943
17110
|
{
|
|
16944
17111
|
type: "text",
|
|
@@ -16951,18 +17118,18 @@ var ParameterLinkInner = forwardRef14(
|
|
|
16951
17118
|
}
|
|
16952
17119
|
),
|
|
16953
17120
|
/* @__PURE__ */ jsxs67("div", { css: linkParameterControls, children: [
|
|
16954
|
-
/* @__PURE__ */
|
|
17121
|
+
/* @__PURE__ */ jsx101(
|
|
16955
17122
|
"button",
|
|
16956
17123
|
{
|
|
16957
17124
|
type: "button",
|
|
16958
17125
|
css: linkParameterBtn,
|
|
16959
|
-
disabled,
|
|
17126
|
+
disabled: disabled2,
|
|
16960
17127
|
onClick: onConnectLink,
|
|
16961
17128
|
title: "edit current selection",
|
|
16962
17129
|
children: "edit"
|
|
16963
17130
|
}
|
|
16964
17131
|
),
|
|
16965
|
-
externalLink ? /* @__PURE__ */
|
|
17132
|
+
externalLink ? /* @__PURE__ */ jsx101(
|
|
16966
17133
|
"a",
|
|
16967
17134
|
{
|
|
16968
17135
|
href: externalLink,
|
|
@@ -16970,7 +17137,7 @@ var ParameterLinkInner = forwardRef14(
|
|
|
16970
17137
|
title: "Open link in new tab",
|
|
16971
17138
|
target: "_blank",
|
|
16972
17139
|
rel: "noopener noreferrer",
|
|
16973
|
-
children: /* @__PURE__ */
|
|
17140
|
+
children: /* @__PURE__ */ jsx101(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
16974
17141
|
}
|
|
16975
17142
|
) : null
|
|
16976
17143
|
] })
|
|
@@ -16979,7 +17146,7 @@ var ParameterLinkInner = forwardRef14(
|
|
|
16979
17146
|
);
|
|
16980
17147
|
|
|
16981
17148
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
16982
|
-
import { Fragment as
|
|
17149
|
+
import { Fragment as Fragment16, jsx as jsx102, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
|
|
16983
17150
|
var ParameterNameAndPublicIdInput = ({
|
|
16984
17151
|
id,
|
|
16985
17152
|
onBlur,
|
|
@@ -17005,8 +17172,8 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17005
17172
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
17006
17173
|
};
|
|
17007
17174
|
autoFocus == null ? void 0 : autoFocus();
|
|
17008
|
-
return /* @__PURE__ */ jsxs68(
|
|
17009
|
-
/* @__PURE__ */
|
|
17175
|
+
return /* @__PURE__ */ jsxs68(Fragment16, { children: [
|
|
17176
|
+
/* @__PURE__ */ jsx102(
|
|
17010
17177
|
ParameterInput,
|
|
17011
17178
|
{
|
|
17012
17179
|
id: nameIdField,
|
|
@@ -17025,7 +17192,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17025
17192
|
value: values[nameIdField]
|
|
17026
17193
|
}
|
|
17027
17194
|
),
|
|
17028
|
-
/* @__PURE__ */
|
|
17195
|
+
/* @__PURE__ */ jsx102(
|
|
17029
17196
|
ParameterInput,
|
|
17030
17197
|
{
|
|
17031
17198
|
id: publicIdFieldName,
|
|
@@ -17039,11 +17206,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17039
17206
|
caption: publicIdCaption,
|
|
17040
17207
|
placeholder: publicIdPlaceholderText,
|
|
17041
17208
|
errorMessage: publicIdError,
|
|
17042
|
-
menuItems: /* @__PURE__ */
|
|
17209
|
+
menuItems: /* @__PURE__ */ jsx102(
|
|
17043
17210
|
MenuItem,
|
|
17044
17211
|
{
|
|
17045
17212
|
disabled: !values[publicIdFieldName],
|
|
17046
|
-
icon: /* @__PURE__ */
|
|
17213
|
+
icon: /* @__PURE__ */ jsx102(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
17047
17214
|
onClick: handleCopyPidFieldValue,
|
|
17048
17215
|
children: "Copy"
|
|
17049
17216
|
}
|
|
@@ -17051,12 +17218,12 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17051
17218
|
value: values[publicIdFieldName]
|
|
17052
17219
|
}
|
|
17053
17220
|
),
|
|
17054
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
17221
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx102(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
17055
17222
|
] });
|
|
17056
17223
|
};
|
|
17057
17224
|
|
|
17058
17225
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
17059
|
-
import { css as
|
|
17226
|
+
import { css as css85 } from "@emotion/react";
|
|
17060
17227
|
import { ListItemNode, ListNode as ListNode2 } from "@lexical/list";
|
|
17061
17228
|
import {
|
|
17062
17229
|
CODE,
|
|
@@ -17208,23 +17375,23 @@ function DisableStylesPlugin() {
|
|
|
17208
17375
|
}
|
|
17209
17376
|
|
|
17210
17377
|
// src/components/ParameterInputs/rich-text/editorStyles.ts
|
|
17211
|
-
import { css as
|
|
17212
|
-
var textBold =
|
|
17378
|
+
import { css as css82 } from "@emotion/css";
|
|
17379
|
+
var textBold = css82`
|
|
17213
17380
|
font-weight: 700;
|
|
17214
17381
|
`;
|
|
17215
|
-
var textItalic =
|
|
17382
|
+
var textItalic = css82`
|
|
17216
17383
|
font-style: italic;
|
|
17217
17384
|
`;
|
|
17218
|
-
var textUnderline =
|
|
17385
|
+
var textUnderline = css82`
|
|
17219
17386
|
text-decoration: underline;
|
|
17220
17387
|
`;
|
|
17221
|
-
var textStrikethrough =
|
|
17388
|
+
var textStrikethrough = css82`
|
|
17222
17389
|
text-decoration: line-through;
|
|
17223
17390
|
`;
|
|
17224
|
-
var textUnderlineStrikethrough =
|
|
17391
|
+
var textUnderlineStrikethrough = css82`
|
|
17225
17392
|
text-decoration: underline line-through;
|
|
17226
17393
|
`;
|
|
17227
|
-
var textCode =
|
|
17394
|
+
var textCode = css82`
|
|
17228
17395
|
background-color: var(--gray-100);
|
|
17229
17396
|
border-radius: var(--rounded-sm);
|
|
17230
17397
|
display: inline-block;
|
|
@@ -17235,68 +17402,68 @@ var textCode = css81`
|
|
|
17235
17402
|
padding-left: var(--spacing-xs);
|
|
17236
17403
|
padding-right: var(--spacing-xs);
|
|
17237
17404
|
`;
|
|
17238
|
-
var textSuperscript =
|
|
17405
|
+
var textSuperscript = css82`
|
|
17239
17406
|
vertical-align: super;
|
|
17240
17407
|
font-size: smaller;
|
|
17241
17408
|
`;
|
|
17242
|
-
var textSubscript =
|
|
17409
|
+
var textSubscript = css82`
|
|
17243
17410
|
vertical-align: sub;
|
|
17244
17411
|
font-size: smaller;
|
|
17245
17412
|
`;
|
|
17246
|
-
var linkElement =
|
|
17413
|
+
var linkElement = css82`
|
|
17247
17414
|
${link}
|
|
17248
17415
|
${linkColorDefault}
|
|
17249
17416
|
text-decoration: underline;
|
|
17250
17417
|
`;
|
|
17251
|
-
var h12 =
|
|
17418
|
+
var h12 = css82`
|
|
17252
17419
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.7rem);
|
|
17253
17420
|
`;
|
|
17254
|
-
var h22 =
|
|
17421
|
+
var h22 = css82`
|
|
17255
17422
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.6rem);
|
|
17256
17423
|
`;
|
|
17257
|
-
var h32 =
|
|
17424
|
+
var h32 = css82`
|
|
17258
17425
|
font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
|
|
17259
17426
|
`;
|
|
17260
|
-
var h42 =
|
|
17427
|
+
var h42 = css82`
|
|
17261
17428
|
font-size: clamp(1.15rem, var(--fluid-font-base), 1.25rem);
|
|
17262
17429
|
`;
|
|
17263
|
-
var h52 =
|
|
17430
|
+
var h52 = css82`
|
|
17264
17431
|
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
17265
17432
|
`;
|
|
17266
|
-
var h62 =
|
|
17433
|
+
var h62 = css82`
|
|
17267
17434
|
font-size: var(--fs-base);
|
|
17268
17435
|
`;
|
|
17269
|
-
var heading1Element =
|
|
17436
|
+
var heading1Element = css82`
|
|
17270
17437
|
${h12}
|
|
17271
17438
|
${commonHeadingAttr(true)}
|
|
17272
17439
|
${commonLineHeight}
|
|
17273
17440
|
`;
|
|
17274
|
-
var heading2Element =
|
|
17441
|
+
var heading2Element = css82`
|
|
17275
17442
|
${h22}
|
|
17276
17443
|
${commonHeadingAttr(true)}
|
|
17277
17444
|
${commonLineHeight}
|
|
17278
17445
|
`;
|
|
17279
|
-
var heading3Element =
|
|
17446
|
+
var heading3Element = css82`
|
|
17280
17447
|
${h32}
|
|
17281
17448
|
${commonHeadingAttr(true)}
|
|
17282
17449
|
${commonLineHeight}
|
|
17283
17450
|
`;
|
|
17284
|
-
var heading4Element =
|
|
17451
|
+
var heading4Element = css82`
|
|
17285
17452
|
${h42}
|
|
17286
17453
|
${commonHeadingAttr(true)}
|
|
17287
17454
|
${commonLineHeight}
|
|
17288
17455
|
`;
|
|
17289
|
-
var heading5Element =
|
|
17456
|
+
var heading5Element = css82`
|
|
17290
17457
|
${h52}
|
|
17291
17458
|
${commonHeadingAttr(true)}
|
|
17292
17459
|
${commonLineHeight}
|
|
17293
17460
|
`;
|
|
17294
|
-
var heading6Element =
|
|
17461
|
+
var heading6Element = css82`
|
|
17295
17462
|
${h62}
|
|
17296
17463
|
${commonHeadingAttr(true)}
|
|
17297
17464
|
${commonLineHeight}
|
|
17298
17465
|
`;
|
|
17299
|
-
var paragraphElement =
|
|
17466
|
+
var paragraphElement = css82`
|
|
17300
17467
|
line-height: 1.5;
|
|
17301
17468
|
margin-bottom: var(--spacing-base);
|
|
17302
17469
|
|
|
@@ -17304,7 +17471,7 @@ var paragraphElement = css81`
|
|
|
17304
17471
|
margin-bottom: 0;
|
|
17305
17472
|
}
|
|
17306
17473
|
`;
|
|
17307
|
-
var orderedListElement =
|
|
17474
|
+
var orderedListElement = css82`
|
|
17308
17475
|
${commonLineHeight}
|
|
17309
17476
|
display: block;
|
|
17310
17477
|
list-style: decimal;
|
|
@@ -17333,7 +17500,7 @@ var orderedListElement = css81`
|
|
|
17333
17500
|
}
|
|
17334
17501
|
}
|
|
17335
17502
|
`;
|
|
17336
|
-
var unorderedListElement =
|
|
17503
|
+
var unorderedListElement = css82`
|
|
17337
17504
|
${commonLineHeight}
|
|
17338
17505
|
display: block;
|
|
17339
17506
|
list-style: disc;
|
|
@@ -17354,13 +17521,13 @@ var unorderedListElement = css81`
|
|
|
17354
17521
|
}
|
|
17355
17522
|
}
|
|
17356
17523
|
`;
|
|
17357
|
-
var listItemElement =
|
|
17524
|
+
var listItemElement = css82`
|
|
17358
17525
|
margin-left: var(--spacing-md);
|
|
17359
17526
|
`;
|
|
17360
|
-
var nestedListItemElement =
|
|
17527
|
+
var nestedListItemElement = css82`
|
|
17361
17528
|
list-style-type: none;
|
|
17362
17529
|
`;
|
|
17363
|
-
var blockquoteElement =
|
|
17530
|
+
var blockquoteElement = css82`
|
|
17364
17531
|
border-left: 0.25rem solid var(--gray-300);
|
|
17365
17532
|
color: var(--gray-600);
|
|
17366
17533
|
margin-bottom: var(--spacing-base);
|
|
@@ -17370,7 +17537,7 @@ var blockquoteElement = css81`
|
|
|
17370
17537
|
margin-bottom: 0;
|
|
17371
17538
|
}
|
|
17372
17539
|
`;
|
|
17373
|
-
var codeElement =
|
|
17540
|
+
var codeElement = css82`
|
|
17374
17541
|
background-color: var(--gray-100);
|
|
17375
17542
|
border-radius: var(--rounded-sm);
|
|
17376
17543
|
display: block;
|
|
@@ -17387,7 +17554,7 @@ var codeElement = css81`
|
|
|
17387
17554
|
`;
|
|
17388
17555
|
|
|
17389
17556
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
17390
|
-
import { css as
|
|
17557
|
+
import { css as css83 } from "@emotion/react";
|
|
17391
17558
|
import { useLexicalComposerContext as useLexicalComposerContext2 } from "@lexical/react/LexicalComposerContext";
|
|
17392
17559
|
import { NodeEventPlugin } from "@lexical/react/LexicalNodeEventPlugin";
|
|
17393
17560
|
import { addClassNamesToElement, isHTMLAnchorElement, mergeRegister as mergeRegister2 } from "@lexical/utils";
|
|
@@ -17403,7 +17570,7 @@ import {
|
|
|
17403
17570
|
ElementNode as ElementNode2,
|
|
17404
17571
|
FOCUS_COMMAND
|
|
17405
17572
|
} from "lexical";
|
|
17406
|
-
import { useCallback as useCallback5, useEffect as useEffect11, useRef as useRef6, useState as
|
|
17573
|
+
import { useCallback as useCallback5, useEffect as useEffect11, useRef as useRef6, useState as useState11 } from "react";
|
|
17407
17574
|
|
|
17408
17575
|
// src/components/ParameterInputs/rich-text/utils.ts
|
|
17409
17576
|
import { $isAtNodeEnd } from "@lexical/selection";
|
|
@@ -17441,7 +17608,7 @@ var getSelectedNode = (selection) => {
|
|
|
17441
17608
|
};
|
|
17442
17609
|
|
|
17443
17610
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
17444
|
-
import { Fragment as
|
|
17611
|
+
import { Fragment as Fragment17, jsx as jsx103, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
|
|
17445
17612
|
var isProjectMapLinkValue = (value) => {
|
|
17446
17613
|
return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
|
|
17447
17614
|
value.nodeId && value.path && value.projectMapId
|
|
@@ -17728,16 +17895,16 @@ var OPEN_LINK_NODE_MODAL_COMMAND = createCommand(
|
|
|
17728
17895
|
);
|
|
17729
17896
|
var LINK_POPOVER_OFFSET_X = 0;
|
|
17730
17897
|
var LINK_POPOVER_OFFSET_Y = 8;
|
|
17731
|
-
var linkPopover =
|
|
17898
|
+
var linkPopover = css83`
|
|
17732
17899
|
position: absolute;
|
|
17733
17900
|
z-index: 5;
|
|
17734
17901
|
`;
|
|
17735
|
-
var linkPopoverContainer =
|
|
17902
|
+
var linkPopoverContainer = css83`
|
|
17736
17903
|
${Popover};
|
|
17737
17904
|
align-items: center;
|
|
17738
17905
|
display: flex;
|
|
17739
17906
|
`;
|
|
17740
|
-
var linkPopoverAnchor =
|
|
17907
|
+
var linkPopoverAnchor = css83`
|
|
17741
17908
|
${link}
|
|
17742
17909
|
${linkColorDefault}
|
|
17743
17910
|
`;
|
|
@@ -17746,10 +17913,10 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17746
17913
|
return path;
|
|
17747
17914
|
};
|
|
17748
17915
|
const [editor] = useLexicalComposerContext2();
|
|
17749
|
-
const [linkPopoverState, setLinkPopoverState] =
|
|
17916
|
+
const [linkPopoverState, setLinkPopoverState] = useState11();
|
|
17750
17917
|
const linkPopoverElRef = useRef6(null);
|
|
17751
|
-
const [isEditorFocused, setIsEditorFocused] =
|
|
17752
|
-
const [isLinkPopoverFocused, setIsLinkPopoverFocused] =
|
|
17918
|
+
const [isEditorFocused, setIsEditorFocused] = useState11(false);
|
|
17919
|
+
const [isLinkPopoverFocused, setIsLinkPopoverFocused] = useState11(false);
|
|
17753
17920
|
useEffect11(() => {
|
|
17754
17921
|
if (!isEditorFocused && !isLinkPopoverFocused) {
|
|
17755
17922
|
setLinkPopoverState(void 0);
|
|
@@ -17884,8 +18051,8 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17884
18051
|
});
|
|
17885
18052
|
});
|
|
17886
18053
|
};
|
|
17887
|
-
return /* @__PURE__ */ jsxs69(
|
|
17888
|
-
/* @__PURE__ */
|
|
18054
|
+
return /* @__PURE__ */ jsxs69(Fragment17, { children: [
|
|
18055
|
+
/* @__PURE__ */ jsx103(
|
|
17889
18056
|
NodeEventPlugin,
|
|
17890
18057
|
{
|
|
17891
18058
|
nodeType: LinkNode,
|
|
@@ -17895,7 +18062,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17895
18062
|
}
|
|
17896
18063
|
}
|
|
17897
18064
|
),
|
|
17898
|
-
linkPopoverState ? /* @__PURE__ */
|
|
18065
|
+
linkPopoverState ? /* @__PURE__ */ jsx103(
|
|
17899
18066
|
"div",
|
|
17900
18067
|
{
|
|
17901
18068
|
css: linkPopover,
|
|
@@ -17905,7 +18072,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17905
18072
|
},
|
|
17906
18073
|
ref: linkPopoverElRef,
|
|
17907
18074
|
children: /* @__PURE__ */ jsxs69("div", { css: linkPopoverContainer, children: [
|
|
17908
|
-
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */
|
|
18075
|
+
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ jsx103(
|
|
17909
18076
|
"a",
|
|
17910
18077
|
{
|
|
17911
18078
|
href: parsePath(
|
|
@@ -17917,7 +18084,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17917
18084
|
children: parsePath(linkPopoverState.node.__link.path)
|
|
17918
18085
|
}
|
|
17919
18086
|
),
|
|
17920
|
-
/* @__PURE__ */
|
|
18087
|
+
/* @__PURE__ */ jsx103(
|
|
17921
18088
|
Button,
|
|
17922
18089
|
{
|
|
17923
18090
|
size: "xs",
|
|
@@ -17925,7 +18092,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17925
18092
|
onEditLinkNode(linkPopoverState.node);
|
|
17926
18093
|
},
|
|
17927
18094
|
buttonType: "ghost",
|
|
17928
|
-
children: /* @__PURE__ */
|
|
18095
|
+
children: /* @__PURE__ */ jsx103(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
|
|
17929
18096
|
}
|
|
17930
18097
|
)
|
|
17931
18098
|
] })
|
|
@@ -17950,7 +18117,7 @@ import {
|
|
|
17950
18117
|
INDENT_CONTENT_COMMAND
|
|
17951
18118
|
} from "lexical";
|
|
17952
18119
|
import { useEffect as useEffect12 } from "react";
|
|
17953
|
-
import { jsx as
|
|
18120
|
+
import { jsx as jsx104 } from "@emotion/react/jsx-runtime";
|
|
17954
18121
|
function isIndentPermitted(maxDepth) {
|
|
17955
18122
|
const selection = $getSelection2();
|
|
17956
18123
|
if (!$isRangeSelection2(selection)) {
|
|
@@ -17980,11 +18147,11 @@ function ListIndentPlugin({ maxDepth }) {
|
|
|
17980
18147
|
COMMAND_PRIORITY_CRITICAL
|
|
17981
18148
|
);
|
|
17982
18149
|
}, [editor, maxDepth]);
|
|
17983
|
-
return /* @__PURE__ */
|
|
18150
|
+
return /* @__PURE__ */ jsx104(TabIndentationPlugin, {});
|
|
17984
18151
|
}
|
|
17985
18152
|
|
|
17986
18153
|
// src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
|
|
17987
|
-
import { css as
|
|
18154
|
+
import { css as css84 } from "@emotion/react";
|
|
17988
18155
|
import { $createCodeNode } from "@lexical/code";
|
|
17989
18156
|
import {
|
|
17990
18157
|
$isListNode as $isListNode2,
|
|
@@ -18006,9 +18173,9 @@ import {
|
|
|
18006
18173
|
FORMAT_TEXT_COMMAND,
|
|
18007
18174
|
SELECTION_CHANGE_COMMAND
|
|
18008
18175
|
} from "lexical";
|
|
18009
|
-
import { useCallback as useCallback6, useEffect as useEffect13, useMemo as useMemo3, useState as
|
|
18010
|
-
import { Fragment as
|
|
18011
|
-
var toolbar =
|
|
18176
|
+
import { useCallback as useCallback6, useEffect as useEffect13, useMemo as useMemo3, useState as useState12 } from "react";
|
|
18177
|
+
import { Fragment as Fragment18, jsx as jsx105, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
18178
|
+
var toolbar = css84`
|
|
18012
18179
|
background: var(--gray-50);
|
|
18013
18180
|
border-radius: var(--rounded-base);
|
|
18014
18181
|
display: flex;
|
|
@@ -18020,7 +18187,7 @@ var toolbar = css83`
|
|
|
18020
18187
|
top: calc(var(--spacing-sm) * -2);
|
|
18021
18188
|
z-index: 10;
|
|
18022
18189
|
`;
|
|
18023
|
-
var toolbarGroup =
|
|
18190
|
+
var toolbarGroup = css84`
|
|
18024
18191
|
display: flex;
|
|
18025
18192
|
gap: var(--spacing-xs);
|
|
18026
18193
|
position: relative;
|
|
@@ -18036,7 +18203,7 @@ var toolbarGroup = css83`
|
|
|
18036
18203
|
width: 1px;
|
|
18037
18204
|
}
|
|
18038
18205
|
`;
|
|
18039
|
-
var richTextToolbarButton =
|
|
18206
|
+
var richTextToolbarButton = css84`
|
|
18040
18207
|
align-items: center;
|
|
18041
18208
|
appearance: none;
|
|
18042
18209
|
border: 0;
|
|
@@ -18049,17 +18216,17 @@ var richTextToolbarButton = css83`
|
|
|
18049
18216
|
min-width: 32px;
|
|
18050
18217
|
padding: 0 var(--spacing-sm);
|
|
18051
18218
|
`;
|
|
18052
|
-
var richTextToolbarButtonActive =
|
|
18219
|
+
var richTextToolbarButtonActive = css84`
|
|
18053
18220
|
background: var(--gray-200);
|
|
18054
18221
|
`;
|
|
18055
|
-
var toolbarIcon =
|
|
18222
|
+
var toolbarIcon = css84`
|
|
18056
18223
|
color: inherit;
|
|
18057
18224
|
`;
|
|
18058
|
-
var toolbarChevron =
|
|
18225
|
+
var toolbarChevron = css84`
|
|
18059
18226
|
margin-left: var(--spacing-xs);
|
|
18060
18227
|
`;
|
|
18061
18228
|
var RichTextToolbarIcon = ({ icon }) => {
|
|
18062
|
-
return /* @__PURE__ */
|
|
18229
|
+
return /* @__PURE__ */ jsx105(Icon, { icon, css: toolbarIcon, size: "1rem" });
|
|
18063
18230
|
};
|
|
18064
18231
|
var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
|
|
18065
18232
|
["bold", "format-bold"],
|
|
@@ -18176,7 +18343,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18176
18343
|
menuTrigger: /* @__PURE__ */ jsxs70("button", { css: richTextToolbarButton, title: "Text styles", children: [
|
|
18177
18344
|
visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
|
|
18178
18345
|
" ",
|
|
18179
|
-
/* @__PURE__ */
|
|
18346
|
+
/* @__PURE__ */ jsx105(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
|
|
18180
18347
|
] }),
|
|
18181
18348
|
placement: "bottom-start",
|
|
18182
18349
|
children: [
|
|
@@ -18186,7 +18353,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18186
18353
|
type: "paragraph"
|
|
18187
18354
|
},
|
|
18188
18355
|
...visibleTextualElements
|
|
18189
|
-
].map((element) => /* @__PURE__ */
|
|
18356
|
+
].map((element) => /* @__PURE__ */ jsx105(
|
|
18190
18357
|
MenuItem,
|
|
18191
18358
|
{
|
|
18192
18359
|
onClick: () => {
|
|
@@ -18196,12 +18363,12 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18196
18363
|
},
|
|
18197
18364
|
element.type
|
|
18198
18365
|
)),
|
|
18199
|
-
visibleTextualElements.length === 0 ? /* @__PURE__ */
|
|
18366
|
+
visibleTextualElements.length === 0 ? /* @__PURE__ */ jsx105(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
|
|
18200
18367
|
]
|
|
18201
18368
|
}
|
|
18202
18369
|
),
|
|
18203
18370
|
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsxs70("div", { css: toolbarGroup, children: [
|
|
18204
|
-
visibleFormatsWithIcon.map((format) => /* @__PURE__ */
|
|
18371
|
+
visibleFormatsWithIcon.map((format) => /* @__PURE__ */ jsx105(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ jsx105(
|
|
18205
18372
|
"button",
|
|
18206
18373
|
{
|
|
18207
18374
|
onClick: () => {
|
|
@@ -18211,16 +18378,16 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18211
18378
|
richTextToolbarButton,
|
|
18212
18379
|
activeFormats.includes(format.type) ? richTextToolbarButtonActive : null
|
|
18213
18380
|
],
|
|
18214
|
-
children: /* @__PURE__ */
|
|
18381
|
+
children: /* @__PURE__ */ jsx105(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
|
|
18215
18382
|
}
|
|
18216
18383
|
) }, format.type)),
|
|
18217
|
-
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
18384
|
+
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsx105(
|
|
18218
18385
|
Menu,
|
|
18219
18386
|
{
|
|
18220
18387
|
menuLabel: "Alternative text styles",
|
|
18221
|
-
menuTrigger: /* @__PURE__ */
|
|
18388
|
+
menuTrigger: /* @__PURE__ */ jsx105("button", { css: richTextToolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ jsx105(Icon, { icon: "more-alt", css: toolbarIcon }) }),
|
|
18222
18389
|
placement: "bottom-start",
|
|
18223
|
-
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */
|
|
18390
|
+
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ jsx105(
|
|
18224
18391
|
MenuItem,
|
|
18225
18392
|
{
|
|
18226
18393
|
onClick: () => {
|
|
@@ -18234,18 +18401,18 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18234
18401
|
) : null
|
|
18235
18402
|
] }) : null,
|
|
18236
18403
|
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ jsxs70("div", { css: toolbarGroup, children: [
|
|
18237
|
-
linkElementVisible ? /* @__PURE__ */
|
|
18404
|
+
linkElementVisible ? /* @__PURE__ */ jsx105(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ jsx105(
|
|
18238
18405
|
"button",
|
|
18239
18406
|
{
|
|
18240
18407
|
onClick: () => {
|
|
18241
18408
|
isLink ? editor.dispatchCommand(REMOVE_LINK_NODE_COMMAND, {}) : editor.dispatchCommand(OPEN_LINK_NODE_MODAL_COMMAND, {});
|
|
18242
18409
|
},
|
|
18243
18410
|
css: [richTextToolbarButton, isLink ? richTextToolbarButtonActive : null],
|
|
18244
|
-
children: /* @__PURE__ */
|
|
18411
|
+
children: /* @__PURE__ */ jsx105(RichTextToolbarIcon, { icon: "link" })
|
|
18245
18412
|
}
|
|
18246
18413
|
) }) : null,
|
|
18247
|
-
visibleLists.size > 0 ? /* @__PURE__ */ jsxs70(
|
|
18248
|
-
visibleLists.has("unorderedList") ? /* @__PURE__ */
|
|
18414
|
+
visibleLists.size > 0 ? /* @__PURE__ */ jsxs70(Fragment18, { children: [
|
|
18415
|
+
visibleLists.has("unorderedList") ? /* @__PURE__ */ jsx105(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ jsx105(
|
|
18249
18416
|
"button",
|
|
18250
18417
|
{
|
|
18251
18418
|
onClick: () => {
|
|
@@ -18255,10 +18422,10 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18255
18422
|
richTextToolbarButton,
|
|
18256
18423
|
activeElement === "unorderedList" ? richTextToolbarButtonActive : null
|
|
18257
18424
|
],
|
|
18258
|
-
children: /* @__PURE__ */
|
|
18425
|
+
children: /* @__PURE__ */ jsx105(RichTextToolbarIcon, { icon: "layout-list" })
|
|
18259
18426
|
}
|
|
18260
18427
|
) }) : null,
|
|
18261
|
-
visibleLists.has("orderedList") ? /* @__PURE__ */
|
|
18428
|
+
visibleLists.has("orderedList") ? /* @__PURE__ */ jsx105(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ jsx105(
|
|
18262
18429
|
"button",
|
|
18263
18430
|
{
|
|
18264
18431
|
onClick: () => {
|
|
@@ -18268,32 +18435,32 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18268
18435
|
richTextToolbarButton,
|
|
18269
18436
|
activeElement === "orderedList" ? richTextToolbarButtonActive : null
|
|
18270
18437
|
],
|
|
18271
|
-
children: /* @__PURE__ */
|
|
18438
|
+
children: /* @__PURE__ */ jsx105(RichTextToolbarIcon, { icon: "layout-list-numbered" })
|
|
18272
18439
|
}
|
|
18273
18440
|
) }) : null
|
|
18274
18441
|
] }) : null,
|
|
18275
|
-
quoteElementVisible ? /* @__PURE__ */
|
|
18442
|
+
quoteElementVisible ? /* @__PURE__ */ jsx105(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ jsx105(
|
|
18276
18443
|
"button",
|
|
18277
18444
|
{
|
|
18278
18445
|
onClick: () => {
|
|
18279
18446
|
activeElement === "quote" ? onSelectElement("paragraph") : onSelectElement("quote");
|
|
18280
18447
|
},
|
|
18281
18448
|
css: [richTextToolbarButton, activeElement === "quote" ? richTextToolbarButtonActive : null],
|
|
18282
|
-
children: /* @__PURE__ */
|
|
18449
|
+
children: /* @__PURE__ */ jsx105(RichTextToolbarIcon, { icon: "quote" })
|
|
18283
18450
|
}
|
|
18284
18451
|
) }) : null,
|
|
18285
|
-
codeElementVisible ? /* @__PURE__ */
|
|
18452
|
+
codeElementVisible ? /* @__PURE__ */ jsx105(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ jsx105(
|
|
18286
18453
|
"button",
|
|
18287
18454
|
{
|
|
18288
18455
|
onClick: () => {
|
|
18289
18456
|
activeElement === "code" ? onSelectElement("paragraph") : onSelectElement("code");
|
|
18290
18457
|
},
|
|
18291
18458
|
css: [richTextToolbarButton, activeElement === "code" ? richTextToolbarButtonActive : null],
|
|
18292
|
-
children: /* @__PURE__ */
|
|
18459
|
+
children: /* @__PURE__ */ jsx105(RichTextToolbarIcon, { icon: "code-slash" })
|
|
18293
18460
|
}
|
|
18294
18461
|
) }) : null
|
|
18295
18462
|
] }) : null,
|
|
18296
|
-
customControls ? /* @__PURE__ */
|
|
18463
|
+
customControls ? /* @__PURE__ */ jsx105("div", { css: toolbarGroup, children: customControls }) : null
|
|
18297
18464
|
] });
|
|
18298
18465
|
};
|
|
18299
18466
|
var RichTextToolbar_default = RichTextToolbar;
|
|
@@ -18317,7 +18484,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
18317
18484
|
const enabledBuiltInFormatsWithoutIcon = enabledBuiltInFormats.filter(
|
|
18318
18485
|
(format) => !FORMATS_WITH_ICON.has(format.type)
|
|
18319
18486
|
);
|
|
18320
|
-
const [activeFormats, setActiveFormats] =
|
|
18487
|
+
const [activeFormats, setActiveFormats] = useState12([]);
|
|
18321
18488
|
const visibleFormatsWithIcon = useMemo3(() => {
|
|
18322
18489
|
const visibleFormats = /* @__PURE__ */ new Set();
|
|
18323
18490
|
activeFormats.filter((type) => FORMATS_WITH_ICON.has(type)).forEach((type) => {
|
|
@@ -18338,7 +18505,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
18338
18505
|
});
|
|
18339
18506
|
return richTextBuiltInFormats.filter((format) => visibleFormats.has(format.type));
|
|
18340
18507
|
}, [activeFormats, enabledBuiltInFormatsWithoutIcon]);
|
|
18341
|
-
const [activeElement, setActiveElement] =
|
|
18508
|
+
const [activeElement, setActiveElement] = useState12("paragraph");
|
|
18342
18509
|
const enabledTextualElements = enabledBuiltInElements.filter(
|
|
18343
18510
|
(element) => TEXTUAL_ELEMENTS.includes(element.type)
|
|
18344
18511
|
);
|
|
@@ -18353,7 +18520,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
18353
18520
|
}
|
|
18354
18521
|
);
|
|
18355
18522
|
}, [activeElement, (_a = config == null ? void 0 : config.elements) == null ? void 0 : _a.builtIn, enabledTextualElements]);
|
|
18356
|
-
const [isLink, setIsLink] =
|
|
18523
|
+
const [isLink, setIsLink] = useState12(false);
|
|
18357
18524
|
const linkElementVisible = useMemo3(() => {
|
|
18358
18525
|
return enabledBuiltInElements.some((element) => element.type === "link") || isLink;
|
|
18359
18526
|
}, [isLink, enabledBuiltInElements]);
|
|
@@ -18407,7 +18574,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
18407
18574
|
};
|
|
18408
18575
|
|
|
18409
18576
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
18410
|
-
import { Fragment as
|
|
18577
|
+
import { Fragment as Fragment19, jsx as jsx106, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
|
|
18411
18578
|
var ParameterRichText = ({
|
|
18412
18579
|
label,
|
|
18413
18580
|
labelLeadingIcon,
|
|
@@ -18446,7 +18613,7 @@ var ParameterRichText = ({
|
|
|
18446
18613
|
captionTestId,
|
|
18447
18614
|
menuItems,
|
|
18448
18615
|
children: [
|
|
18449
|
-
/* @__PURE__ */
|
|
18616
|
+
/* @__PURE__ */ jsx106(
|
|
18450
18617
|
ParameterRichTextInner,
|
|
18451
18618
|
{
|
|
18452
18619
|
value,
|
|
@@ -18464,23 +18631,23 @@ var ParameterRichText = ({
|
|
|
18464
18631
|
children
|
|
18465
18632
|
}
|
|
18466
18633
|
),
|
|
18467
|
-
menuItems ? /* @__PURE__ */
|
|
18634
|
+
menuItems ? /* @__PURE__ */ jsx106(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx106(Fragment19, { children: menuItems }) }) : null
|
|
18468
18635
|
]
|
|
18469
18636
|
}
|
|
18470
18637
|
);
|
|
18471
18638
|
};
|
|
18472
|
-
var editorWrapper =
|
|
18639
|
+
var editorWrapper = css85`
|
|
18473
18640
|
display: flex;
|
|
18474
18641
|
flex-flow: column;
|
|
18475
18642
|
flex-grow: 1;
|
|
18476
18643
|
`;
|
|
18477
|
-
var editorContainer =
|
|
18644
|
+
var editorContainer = css85`
|
|
18478
18645
|
display: flex;
|
|
18479
18646
|
flex-flow: column;
|
|
18480
18647
|
flex-grow: 1;
|
|
18481
18648
|
position: relative;
|
|
18482
18649
|
`;
|
|
18483
|
-
var editorPlaceholder =
|
|
18650
|
+
var editorPlaceholder = css85`
|
|
18484
18651
|
color: var(--gray-500);
|
|
18485
18652
|
font-style: italic;
|
|
18486
18653
|
/* 1px is added to make sure caret is clearly visible when field is focused
|
|
@@ -18491,7 +18658,7 @@ var editorPlaceholder = css84`
|
|
|
18491
18658
|
top: var(--spacing-xs);
|
|
18492
18659
|
user-select: none;
|
|
18493
18660
|
`;
|
|
18494
|
-
var editorInput =
|
|
18661
|
+
var editorInput = css85`
|
|
18495
18662
|
background: var(--white);
|
|
18496
18663
|
border: 1px solid var(--white);
|
|
18497
18664
|
border-radius: var(--rounded-sm);
|
|
@@ -18575,8 +18742,8 @@ var ParameterRichTextInner = ({
|
|
|
18575
18742
|
},
|
|
18576
18743
|
editable: !readOnly
|
|
18577
18744
|
};
|
|
18578
|
-
return /* @__PURE__ */ jsxs71(
|
|
18579
|
-
/* @__PURE__ */
|
|
18745
|
+
return /* @__PURE__ */ jsxs71(Fragment19, { children: [
|
|
18746
|
+
/* @__PURE__ */ jsx106("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx106(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx106(
|
|
18580
18747
|
RichText,
|
|
18581
18748
|
{
|
|
18582
18749
|
onChange,
|
|
@@ -18632,20 +18799,20 @@ var RichText = ({
|
|
|
18632
18799
|
removeUpdateListener();
|
|
18633
18800
|
};
|
|
18634
18801
|
}, []);
|
|
18635
|
-
return /* @__PURE__ */ jsxs71(
|
|
18636
|
-
readOnly ? null : /* @__PURE__ */
|
|
18802
|
+
return /* @__PURE__ */ jsxs71(Fragment19, { children: [
|
|
18803
|
+
readOnly ? null : /* @__PURE__ */ jsx106(RichTextToolbar_default, { config, customControls }),
|
|
18637
18804
|
/* @__PURE__ */ jsxs71("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
|
|
18638
|
-
/* @__PURE__ */
|
|
18805
|
+
/* @__PURE__ */ jsx106(
|
|
18639
18806
|
RichTextPlugin,
|
|
18640
18807
|
{
|
|
18641
|
-
contentEditable: /* @__PURE__ */
|
|
18642
|
-
placeholder: /* @__PURE__ */
|
|
18808
|
+
contentEditable: /* @__PURE__ */ jsx106(ContentEditable, { css: editorInput, className: editorInputClassName }),
|
|
18809
|
+
placeholder: /* @__PURE__ */ jsx106("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
|
|
18643
18810
|
ErrorBoundary: LexicalErrorBoundary
|
|
18644
18811
|
}
|
|
18645
18812
|
),
|
|
18646
|
-
/* @__PURE__ */
|
|
18647
|
-
readOnly ? null : /* @__PURE__ */
|
|
18648
|
-
/* @__PURE__ */
|
|
18813
|
+
/* @__PURE__ */ jsx106(ListPlugin, {}),
|
|
18814
|
+
readOnly ? null : /* @__PURE__ */ jsx106(HistoryPlugin, {}),
|
|
18815
|
+
/* @__PURE__ */ jsx106(
|
|
18649
18816
|
LinkNodePlugin,
|
|
18650
18817
|
{
|
|
18651
18818
|
onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve(),
|
|
@@ -18655,24 +18822,24 @@ var RichText = ({
|
|
|
18655
18822
|
} : void 0
|
|
18656
18823
|
}
|
|
18657
18824
|
),
|
|
18658
|
-
/* @__PURE__ */
|
|
18659
|
-
/* @__PURE__ */
|
|
18660
|
-
/* @__PURE__ */
|
|
18661
|
-
/* @__PURE__ */
|
|
18825
|
+
/* @__PURE__ */ jsx106(ListIndentPlugin, { maxDepth: 4 }),
|
|
18826
|
+
/* @__PURE__ */ jsx106(DisableStylesPlugin, {}),
|
|
18827
|
+
/* @__PURE__ */ jsx106(MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
|
|
18828
|
+
/* @__PURE__ */ jsx106(Fragment19, { children })
|
|
18662
18829
|
] })
|
|
18663
18830
|
] });
|
|
18664
18831
|
};
|
|
18665
18832
|
|
|
18666
18833
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
18667
|
-
import { forwardRef as
|
|
18668
|
-
import { jsx as
|
|
18669
|
-
var ParameterSelect =
|
|
18834
|
+
import { forwardRef as forwardRef16 } from "react";
|
|
18835
|
+
import { jsx as jsx107, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
|
|
18836
|
+
var ParameterSelect = forwardRef16(
|
|
18670
18837
|
({ defaultOption, options, ...props }, ref) => {
|
|
18671
18838
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18672
|
-
return /* @__PURE__ */
|
|
18839
|
+
return /* @__PURE__ */ jsx107(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx107(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
18673
18840
|
}
|
|
18674
18841
|
);
|
|
18675
|
-
var ParameterSelectInner =
|
|
18842
|
+
var ParameterSelectInner = forwardRef16(
|
|
18676
18843
|
({ defaultOption, options, ...props }, ref) => {
|
|
18677
18844
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
18678
18845
|
return /* @__PURE__ */ jsxs72(
|
|
@@ -18684,10 +18851,10 @@ var ParameterSelectInner = forwardRef15(
|
|
|
18684
18851
|
ref,
|
|
18685
18852
|
...props,
|
|
18686
18853
|
children: [
|
|
18687
|
-
defaultOption ? /* @__PURE__ */
|
|
18854
|
+
defaultOption ? /* @__PURE__ */ jsx107("option", { value: "", children: defaultOption }) : null,
|
|
18688
18855
|
options.map((option) => {
|
|
18689
18856
|
var _a;
|
|
18690
|
-
return /* @__PURE__ */
|
|
18857
|
+
return /* @__PURE__ */ jsx107("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
18691
18858
|
})
|
|
18692
18859
|
]
|
|
18693
18860
|
}
|
|
@@ -18696,15 +18863,15 @@ var ParameterSelectInner = forwardRef15(
|
|
|
18696
18863
|
);
|
|
18697
18864
|
|
|
18698
18865
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
18699
|
-
import { forwardRef as
|
|
18700
|
-
import { jsx as
|
|
18701
|
-
var ParameterTextarea =
|
|
18866
|
+
import { forwardRef as forwardRef17 } from "react";
|
|
18867
|
+
import { jsx as jsx108 } from "@emotion/react/jsx-runtime";
|
|
18868
|
+
var ParameterTextarea = forwardRef17((props, ref) => {
|
|
18702
18869
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18703
|
-
return /* @__PURE__ */
|
|
18870
|
+
return /* @__PURE__ */ jsx108(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx108(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
18704
18871
|
});
|
|
18705
|
-
var ParameterTextareaInner =
|
|
18872
|
+
var ParameterTextareaInner = forwardRef17(({ ...props }, ref) => {
|
|
18706
18873
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
18707
|
-
return /* @__PURE__ */
|
|
18874
|
+
return /* @__PURE__ */ jsx108(
|
|
18708
18875
|
"textarea",
|
|
18709
18876
|
{
|
|
18710
18877
|
css: [input2, textarea2],
|
|
@@ -18717,25 +18884,25 @@ var ParameterTextareaInner = forwardRef16(({ ...props }, ref) => {
|
|
|
18717
18884
|
});
|
|
18718
18885
|
|
|
18719
18886
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
18720
|
-
import { forwardRef as
|
|
18721
|
-
import { jsx as
|
|
18722
|
-
var ParameterToggle =
|
|
18887
|
+
import { forwardRef as forwardRef18 } from "react";
|
|
18888
|
+
import { jsx as jsx109, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
|
|
18889
|
+
var ParameterToggle = forwardRef18((props, ref) => {
|
|
18723
18890
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18724
|
-
return /* @__PURE__ */
|
|
18891
|
+
return /* @__PURE__ */ jsx109(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx109(ParameterToggleInner, { ref, ...innerProps }) });
|
|
18725
18892
|
});
|
|
18726
|
-
var ParameterToggleInner =
|
|
18893
|
+
var ParameterToggleInner = forwardRef18(
|
|
18727
18894
|
({ ...props }, ref) => {
|
|
18728
18895
|
const { id, label } = useParameterShell();
|
|
18729
18896
|
return /* @__PURE__ */ jsxs73("label", { css: inputToggleLabel2, children: [
|
|
18730
|
-
/* @__PURE__ */
|
|
18731
|
-
/* @__PURE__ */
|
|
18897
|
+
/* @__PURE__ */ jsx109("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
18898
|
+
/* @__PURE__ */ jsx109("span", { css: inlineLabel2, children: label })
|
|
18732
18899
|
] });
|
|
18733
18900
|
}
|
|
18734
18901
|
);
|
|
18735
18902
|
|
|
18736
18903
|
// src/components/ProgressBar/ProgressBar.styles.ts
|
|
18737
|
-
import { css as
|
|
18738
|
-
var
|
|
18904
|
+
import { css as css86, keyframes as keyframes4 } from "@emotion/react";
|
|
18905
|
+
var container2 = css86`
|
|
18739
18906
|
background: var(--gray-50);
|
|
18740
18907
|
margin-block: var(--spacing-sm);
|
|
18741
18908
|
position: relative;
|
|
@@ -18745,13 +18912,13 @@ var container = css85`
|
|
|
18745
18912
|
border: solid 1px var(--gray-300);
|
|
18746
18913
|
`;
|
|
18747
18914
|
var themeMap = {
|
|
18748
|
-
primary:
|
|
18915
|
+
primary: css86`
|
|
18749
18916
|
--progress-color: var(--accent-light);
|
|
18750
18917
|
`,
|
|
18751
|
-
secondary:
|
|
18918
|
+
secondary: css86`
|
|
18752
18919
|
--progress-color: var(--accent-alt-light);
|
|
18753
18920
|
`,
|
|
18754
|
-
destructive:
|
|
18921
|
+
destructive: css86`
|
|
18755
18922
|
--progress-color: var(--brand-secondary-5);
|
|
18756
18923
|
`
|
|
18757
18924
|
};
|
|
@@ -18763,10 +18930,10 @@ var slidingBackgroundPosition = keyframes4`
|
|
|
18763
18930
|
background-position: 64px 0;
|
|
18764
18931
|
}
|
|
18765
18932
|
`;
|
|
18766
|
-
var determinate =
|
|
18933
|
+
var determinate = css86`
|
|
18767
18934
|
background-color: var(--progress-color);
|
|
18768
18935
|
`;
|
|
18769
|
-
var indeterminate =
|
|
18936
|
+
var indeterminate = css86`
|
|
18770
18937
|
background-image: linear-gradient(
|
|
18771
18938
|
45deg,
|
|
18772
18939
|
var(--progress-color) 25%,
|
|
@@ -18780,7 +18947,7 @@ var indeterminate = css85`
|
|
|
18780
18947
|
background-size: 64px 64px;
|
|
18781
18948
|
animation: ${slidingBackgroundPosition} 1s linear infinite;
|
|
18782
18949
|
`;
|
|
18783
|
-
var bar =
|
|
18950
|
+
var bar = css86`
|
|
18784
18951
|
position: absolute;
|
|
18785
18952
|
inset: 0;
|
|
18786
18953
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
@@ -18788,7 +18955,7 @@ var bar = css85`
|
|
|
18788
18955
|
`;
|
|
18789
18956
|
|
|
18790
18957
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
18791
|
-
import { jsx as
|
|
18958
|
+
import { jsx as jsx110 } from "@emotion/react/jsx-runtime";
|
|
18792
18959
|
function ProgressBar({
|
|
18793
18960
|
current,
|
|
18794
18961
|
max,
|
|
@@ -18798,10 +18965,10 @@ function ProgressBar({
|
|
|
18798
18965
|
}) {
|
|
18799
18966
|
const valueNow = Math.min(current, max);
|
|
18800
18967
|
const valuePercentage = max > 0 ? Math.ceil(100 / max * valueNow) : 0;
|
|
18801
|
-
return /* @__PURE__ */
|
|
18968
|
+
return /* @__PURE__ */ jsx110(
|
|
18802
18969
|
"div",
|
|
18803
18970
|
{
|
|
18804
|
-
css:
|
|
18971
|
+
css: container2,
|
|
18805
18972
|
role: "progressbar",
|
|
18806
18973
|
"aria-busy": valuePercentage !== 100,
|
|
18807
18974
|
"aria-invalid": false,
|
|
@@ -18809,7 +18976,7 @@ function ProgressBar({
|
|
|
18809
18976
|
"aria-valuemax": max,
|
|
18810
18977
|
"aria-valuenow": valueNow,
|
|
18811
18978
|
...props,
|
|
18812
|
-
children: /* @__PURE__ */
|
|
18979
|
+
children: /* @__PURE__ */ jsx110(
|
|
18813
18980
|
"div",
|
|
18814
18981
|
{
|
|
18815
18982
|
css: [
|
|
@@ -18828,28 +18995,28 @@ function ProgressBar({
|
|
|
18828
18995
|
}
|
|
18829
18996
|
|
|
18830
18997
|
// src/components/ProgressList/ProgressList.tsx
|
|
18831
|
-
import { css as
|
|
18998
|
+
import { css as css88 } from "@emotion/react";
|
|
18832
18999
|
import { CgCheckO as CgCheckO2 } from "@react-icons/all-files/cg/CgCheckO";
|
|
18833
19000
|
import { CgRadioCheck } from "@react-icons/all-files/cg/CgRadioCheck";
|
|
18834
19001
|
import { CgRecord } from "@react-icons/all-files/cg/CgRecord";
|
|
18835
19002
|
import { useMemo as useMemo4 } from "react";
|
|
18836
19003
|
|
|
18837
19004
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
18838
|
-
import { css as
|
|
18839
|
-
var progressListStyles =
|
|
19005
|
+
import { css as css87 } from "@emotion/react";
|
|
19006
|
+
var progressListStyles = css87`
|
|
18840
19007
|
display: flex;
|
|
18841
19008
|
flex-direction: column;
|
|
18842
19009
|
gap: var(--spacing-sm);
|
|
18843
19010
|
list-style-type: none;
|
|
18844
19011
|
`;
|
|
18845
|
-
var progressListItemStyles =
|
|
19012
|
+
var progressListItemStyles = css87`
|
|
18846
19013
|
display: flex;
|
|
18847
19014
|
gap: var(--spacing-base);
|
|
18848
19015
|
align-items: center;
|
|
18849
19016
|
`;
|
|
18850
19017
|
|
|
18851
19018
|
// src/components/ProgressList/ProgressList.tsx
|
|
18852
|
-
import { jsx as
|
|
19019
|
+
import { jsx as jsx111, jsxs as jsxs74 } from "@emotion/react/jsx-runtime";
|
|
18853
19020
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
18854
19021
|
const itemsWithStatus = useMemo4(() => {
|
|
18855
19022
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -18863,8 +19030,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
18863
19030
|
return { ...item, status };
|
|
18864
19031
|
});
|
|
18865
19032
|
}, [items, inProgressId]);
|
|
18866
|
-
return /* @__PURE__ */
|
|
18867
|
-
return /* @__PURE__ */
|
|
19033
|
+
return /* @__PURE__ */ jsx111("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
19034
|
+
return /* @__PURE__ */ jsx111(
|
|
18868
19035
|
ProgressListItem,
|
|
18869
19036
|
{
|
|
18870
19037
|
status,
|
|
@@ -18897,12 +19064,12 @@ var ProgressListItem = ({
|
|
|
18897
19064
|
}, [status, error]);
|
|
18898
19065
|
const statusStyles = useMemo4(() => {
|
|
18899
19066
|
if (error) {
|
|
18900
|
-
return errorLevel === "caution" ?
|
|
19067
|
+
return errorLevel === "caution" ? css88`
|
|
18901
19068
|
color: rgb(161, 98, 7);
|
|
18902
19069
|
& svg {
|
|
18903
19070
|
color: rgb(250, 204, 21);
|
|
18904
19071
|
}
|
|
18905
|
-
` :
|
|
19072
|
+
` : css88`
|
|
18906
19073
|
color: rgb(185, 28, 28);
|
|
18907
19074
|
& svg {
|
|
18908
19075
|
color: var(--brand-primary-2);
|
|
@@ -18910,35 +19077,35 @@ var ProgressListItem = ({
|
|
|
18910
19077
|
`;
|
|
18911
19078
|
}
|
|
18912
19079
|
const colorPerStatus = {
|
|
18913
|
-
completed:
|
|
19080
|
+
completed: css88`
|
|
18914
19081
|
opacity: 0.75;
|
|
18915
19082
|
`,
|
|
18916
|
-
inProgress:
|
|
19083
|
+
inProgress: css88`
|
|
18917
19084
|
-webkit-text-stroke-width: thin;
|
|
18918
19085
|
`,
|
|
18919
|
-
queued:
|
|
19086
|
+
queued: css88`
|
|
18920
19087
|
opacity: 0.5;
|
|
18921
19088
|
`
|
|
18922
19089
|
};
|
|
18923
19090
|
return colorPerStatus[status];
|
|
18924
19091
|
}, [status, error, errorLevel]);
|
|
18925
19092
|
return /* @__PURE__ */ jsxs74("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
18926
|
-
/* @__PURE__ */
|
|
19093
|
+
/* @__PURE__ */ jsx111(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx111("div", { children: /* @__PURE__ */ jsx111(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
|
|
18927
19094
|
/* @__PURE__ */ jsxs74("div", { children: [
|
|
18928
19095
|
children,
|
|
18929
|
-
/* @__PURE__ */
|
|
19096
|
+
/* @__PURE__ */ jsx111("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
18930
19097
|
] })
|
|
18931
19098
|
] });
|
|
18932
19099
|
};
|
|
18933
19100
|
|
|
18934
19101
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
18935
|
-
import { css as
|
|
19102
|
+
import { css as css90 } from "@emotion/react";
|
|
18936
19103
|
import { CgCheck as CgCheck4 } from "@react-icons/all-files/cg/CgCheck";
|
|
18937
19104
|
import { useCallback as useCallback7, useMemo as useMemo5 } from "react";
|
|
18938
19105
|
|
|
18939
19106
|
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
18940
|
-
import { css as
|
|
18941
|
-
var segmentedControlStyles =
|
|
19107
|
+
import { css as css89 } from "@emotion/react";
|
|
19108
|
+
var segmentedControlStyles = css89`
|
|
18942
19109
|
--segmented-control-rounded-value: var(--rounded-base);
|
|
18943
19110
|
--segmented-control-border-width: 1px;
|
|
18944
19111
|
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
@@ -18957,14 +19124,14 @@ var segmentedControlStyles = css88`
|
|
|
18957
19124
|
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
18958
19125
|
font-size: var(--fs-xs);
|
|
18959
19126
|
`;
|
|
18960
|
-
var segmentedControlVerticalStyles =
|
|
19127
|
+
var segmentedControlVerticalStyles = css89`
|
|
18961
19128
|
flex-direction: column;
|
|
18962
19129
|
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
18963
19130
|
var(--segmented-control-rounded-value) 0 0;
|
|
18964
19131
|
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
18965
19132
|
var(--segmented-control-rounded-value);
|
|
18966
19133
|
`;
|
|
18967
|
-
var segmentedControlItemStyles =
|
|
19134
|
+
var segmentedControlItemStyles = css89`
|
|
18968
19135
|
&:first-of-type label {
|
|
18969
19136
|
border-radius: var(--segmented-control-first-border-radius);
|
|
18970
19137
|
}
|
|
@@ -18972,10 +19139,10 @@ var segmentedControlItemStyles = css88`
|
|
|
18972
19139
|
border-radius: var(--segmented-control-last-border-radius);
|
|
18973
19140
|
}
|
|
18974
19141
|
`;
|
|
18975
|
-
var segmentedControlInputStyles =
|
|
19142
|
+
var segmentedControlInputStyles = css89`
|
|
18976
19143
|
${accessibleHidden}
|
|
18977
19144
|
`;
|
|
18978
|
-
var segmentedControlLabelStyles = (checked,
|
|
19145
|
+
var segmentedControlLabelStyles = (checked, disabled2) => css89`
|
|
18979
19146
|
position: relative;
|
|
18980
19147
|
display: flex;
|
|
18981
19148
|
align-items: center;
|
|
@@ -19017,7 +19184,7 @@ var segmentedControlLabelStyles = (checked, disabled) => css88`
|
|
|
19017
19184
|
// once Firefox supports :has selector
|
|
19018
19185
|
@supports not selector(:has(*)) {
|
|
19019
19186
|
// equivalent to &:has(:checked:not(:disabled))
|
|
19020
|
-
${checked && !
|
|
19187
|
+
${checked && !disabled2 ? `
|
|
19021
19188
|
background-color: var(--segmented-control-selected-color);
|
|
19022
19189
|
outline: var(--segmented-control-border-width) solid var(--segmented-control-selected-color);
|
|
19023
19190
|
box-shadow: 0 0.43em 1.7em 0 rgba(0, 0, 0, 0.15);
|
|
@@ -19027,45 +19194,45 @@ var segmentedControlLabelStyles = (checked, disabled) => css88`
|
|
|
19027
19194
|
|
|
19028
19195
|
// equivalent to &:hover:not(:has(:disabled, :checked))
|
|
19029
19196
|
&:hover {
|
|
19030
|
-
${!checked && !
|
|
19197
|
+
${!checked && !disabled2 ? `background-color: var(--gray-100);` : void 0}
|
|
19031
19198
|
}
|
|
19032
19199
|
|
|
19033
19200
|
// equivalent to &:has(:disabled)
|
|
19034
|
-
${
|
|
19201
|
+
${disabled2 ? `
|
|
19035
19202
|
color: var(--gray-400);
|
|
19036
19203
|
cursor: default;` : void 0}
|
|
19037
19204
|
|
|
19038
19205
|
// equivalent to &:has(:checked:disabled)
|
|
19039
|
-
${checked &&
|
|
19206
|
+
${checked && disabled2 && `
|
|
19040
19207
|
color: var(--gray-50);
|
|
19041
19208
|
background-color: var(--gray-400);
|
|
19042
19209
|
`}
|
|
19043
19210
|
}
|
|
19044
19211
|
`;
|
|
19045
|
-
var segmentedControlLabelIconOnlyStyles =
|
|
19212
|
+
var segmentedControlLabelIconOnlyStyles = css89`
|
|
19046
19213
|
padding-inline: 0.5em;
|
|
19047
19214
|
`;
|
|
19048
|
-
var segmentedControlLabelCheckStyles =
|
|
19215
|
+
var segmentedControlLabelCheckStyles = css89`
|
|
19049
19216
|
opacity: 0.5;
|
|
19050
19217
|
`;
|
|
19051
|
-
var segmentedControlLabelContentStyles =
|
|
19218
|
+
var segmentedControlLabelContentStyles = css89`
|
|
19052
19219
|
display: flex;
|
|
19053
19220
|
align-items: center;
|
|
19054
19221
|
justify-content: center;
|
|
19055
19222
|
gap: var(--spacing-sm);
|
|
19056
19223
|
height: 100%;
|
|
19057
19224
|
`;
|
|
19058
|
-
var segmentedControlLabelTextStyles =
|
|
19225
|
+
var segmentedControlLabelTextStyles = css89``;
|
|
19059
19226
|
|
|
19060
19227
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
19061
|
-
import { jsx as
|
|
19228
|
+
import { jsx as jsx112, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
|
|
19062
19229
|
var SegmentedControl = ({
|
|
19063
19230
|
name,
|
|
19064
19231
|
options,
|
|
19065
19232
|
value,
|
|
19066
19233
|
onChange,
|
|
19067
19234
|
noCheckmark = false,
|
|
19068
|
-
disabled = false,
|
|
19235
|
+
disabled: disabled2 = false,
|
|
19069
19236
|
orientation = "horizontal",
|
|
19070
19237
|
size = "md",
|
|
19071
19238
|
...props
|
|
@@ -19080,28 +19247,28 @@ var SegmentedControl = ({
|
|
|
19080
19247
|
);
|
|
19081
19248
|
const sizeStyles = useMemo5(() => {
|
|
19082
19249
|
const map = {
|
|
19083
|
-
sm:
|
|
19084
|
-
md:
|
|
19085
|
-
lg:
|
|
19250
|
+
sm: css90({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
19251
|
+
md: css90({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
19252
|
+
lg: css90({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
|
|
19086
19253
|
};
|
|
19087
19254
|
return map[size];
|
|
19088
19255
|
}, [size]);
|
|
19089
19256
|
const isIconOnly = useMemo5(() => {
|
|
19090
19257
|
return options.every((option) => option.icon && !option.label);
|
|
19091
19258
|
}, [options]);
|
|
19092
|
-
return /* @__PURE__ */
|
|
19259
|
+
return /* @__PURE__ */ jsx112(
|
|
19093
19260
|
"div",
|
|
19094
19261
|
{
|
|
19095
19262
|
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
19096
19263
|
...props,
|
|
19097
19264
|
children: options.map((option, index) => {
|
|
19098
19265
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
19099
|
-
const isDisabled =
|
|
19100
|
-
return /* @__PURE__ */
|
|
19266
|
+
const isDisabled = disabled2 || option.disabled;
|
|
19267
|
+
return /* @__PURE__ */ jsx112(
|
|
19101
19268
|
Tooltip,
|
|
19102
19269
|
{
|
|
19103
19270
|
title: isDisabled || !option.tooltip ? "" : option.tooltip,
|
|
19104
|
-
children: /* @__PURE__ */
|
|
19271
|
+
children: /* @__PURE__ */ jsx112("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ jsxs75(
|
|
19105
19272
|
"label",
|
|
19106
19273
|
{
|
|
19107
19274
|
css: [
|
|
@@ -19110,7 +19277,7 @@ var SegmentedControl = ({
|
|
|
19110
19277
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
19111
19278
|
],
|
|
19112
19279
|
children: [
|
|
19113
|
-
/* @__PURE__ */
|
|
19280
|
+
/* @__PURE__ */ jsx112(
|
|
19114
19281
|
"input",
|
|
19115
19282
|
{
|
|
19116
19283
|
css: segmentedControlInputStyles,
|
|
@@ -19122,10 +19289,10 @@ var SegmentedControl = ({
|
|
|
19122
19289
|
disabled: isDisabled
|
|
19123
19290
|
}
|
|
19124
19291
|
),
|
|
19125
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */
|
|
19292
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx112(CgCheck4, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
19126
19293
|
/* @__PURE__ */ jsxs75("span", { css: segmentedControlLabelContentStyles, children: [
|
|
19127
|
-
!option.icon ? null : /* @__PURE__ */
|
|
19128
|
-
!text ? null : /* @__PURE__ */
|
|
19294
|
+
!option.icon ? null : /* @__PURE__ */ jsx112(Icon, { icon: option.icon, size: "1.5em", iconColor: "currentColor" }),
|
|
19295
|
+
!text ? null : /* @__PURE__ */ jsx112("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
19129
19296
|
] })
|
|
19130
19297
|
]
|
|
19131
19298
|
}
|
|
@@ -19139,18 +19306,18 @@ var SegmentedControl = ({
|
|
|
19139
19306
|
};
|
|
19140
19307
|
|
|
19141
19308
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
19142
|
-
import { css as
|
|
19309
|
+
import { css as css91, keyframes as keyframes5 } from "@emotion/react";
|
|
19143
19310
|
var lightFadingOut = keyframes5`
|
|
19144
19311
|
from { opacity: 0.1; }
|
|
19145
19312
|
to { opacity: 0.025; }
|
|
19146
19313
|
`;
|
|
19147
|
-
var skeletonStyles =
|
|
19314
|
+
var skeletonStyles = css91`
|
|
19148
19315
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
19149
19316
|
background-color: var(--gray-900);
|
|
19150
19317
|
`;
|
|
19151
19318
|
|
|
19152
19319
|
// src/components/Skeleton/Skeleton.tsx
|
|
19153
|
-
import { jsx as
|
|
19320
|
+
import { jsx as jsx113 } from "@emotion/react/jsx-runtime";
|
|
19154
19321
|
var Skeleton = ({
|
|
19155
19322
|
width = "100%",
|
|
19156
19323
|
height = "1.25rem",
|
|
@@ -19158,7 +19325,7 @@ var Skeleton = ({
|
|
|
19158
19325
|
circle = false,
|
|
19159
19326
|
children,
|
|
19160
19327
|
...otherProps
|
|
19161
|
-
}) => /* @__PURE__ */
|
|
19328
|
+
}) => /* @__PURE__ */ jsx113(
|
|
19162
19329
|
"div",
|
|
19163
19330
|
{
|
|
19164
19331
|
css: [
|
|
@@ -19181,8 +19348,8 @@ var Skeleton = ({
|
|
|
19181
19348
|
import * as React23 from "react";
|
|
19182
19349
|
|
|
19183
19350
|
// src/components/Switch/Switch.styles.ts
|
|
19184
|
-
import { css as
|
|
19185
|
-
var SwitchInputContainer =
|
|
19351
|
+
import { css as css92 } from "@emotion/react";
|
|
19352
|
+
var SwitchInputContainer = css92`
|
|
19186
19353
|
cursor: pointer;
|
|
19187
19354
|
display: inline-block;
|
|
19188
19355
|
position: relative;
|
|
@@ -19191,7 +19358,7 @@ var SwitchInputContainer = css91`
|
|
|
19191
19358
|
vertical-align: middle;
|
|
19192
19359
|
user-select: none;
|
|
19193
19360
|
`;
|
|
19194
|
-
var SwitchInput =
|
|
19361
|
+
var SwitchInput = css92`
|
|
19195
19362
|
appearance: none;
|
|
19196
19363
|
border-radius: var(--rounded-full);
|
|
19197
19364
|
background-color: var(--white);
|
|
@@ -19229,7 +19396,7 @@ var SwitchInput = css91`
|
|
|
19229
19396
|
cursor: not-allowed;
|
|
19230
19397
|
}
|
|
19231
19398
|
`;
|
|
19232
|
-
var SwitchInputDisabled =
|
|
19399
|
+
var SwitchInputDisabled = css92`
|
|
19233
19400
|
opacity: var(--opacity-50);
|
|
19234
19401
|
cursor: not-allowed;
|
|
19235
19402
|
|
|
@@ -19237,7 +19404,7 @@ var SwitchInputDisabled = css91`
|
|
|
19237
19404
|
cursor: not-allowed;
|
|
19238
19405
|
}
|
|
19239
19406
|
`;
|
|
19240
|
-
var SwitchInputLabel =
|
|
19407
|
+
var SwitchInputLabel = css92`
|
|
19241
19408
|
align-items: center;
|
|
19242
19409
|
color: var(--brand-secondary-1);
|
|
19243
19410
|
display: inline-flex;
|
|
@@ -19258,26 +19425,26 @@ var SwitchInputLabel = css91`
|
|
|
19258
19425
|
top: 0;
|
|
19259
19426
|
}
|
|
19260
19427
|
`;
|
|
19261
|
-
var SwitchText =
|
|
19428
|
+
var SwitchText = css92`
|
|
19262
19429
|
color: var(--gray-500);
|
|
19263
19430
|
font-size: var(--fs-sm);
|
|
19264
19431
|
padding-inline: var(--spacing-2xl) 0;
|
|
19265
19432
|
`;
|
|
19266
19433
|
|
|
19267
19434
|
// src/components/Switch/Switch.tsx
|
|
19268
|
-
import { Fragment as
|
|
19435
|
+
import { Fragment as Fragment20, jsx as jsx114, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
|
|
19269
19436
|
var Switch = React23.forwardRef(
|
|
19270
19437
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
19271
19438
|
let additionalText = infoText;
|
|
19272
19439
|
if (infoText && toggleText) {
|
|
19273
19440
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
19274
19441
|
}
|
|
19275
|
-
return /* @__PURE__ */ jsxs76(
|
|
19442
|
+
return /* @__PURE__ */ jsxs76(Fragment20, { children: [
|
|
19276
19443
|
/* @__PURE__ */ jsxs76("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
19277
|
-
/* @__PURE__ */
|
|
19278
|
-
/* @__PURE__ */
|
|
19444
|
+
/* @__PURE__ */ jsx114("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
19445
|
+
/* @__PURE__ */ jsx114("span", { css: SwitchInputLabel, children: label })
|
|
19279
19446
|
] }),
|
|
19280
|
-
additionalText ? /* @__PURE__ */
|
|
19447
|
+
additionalText ? /* @__PURE__ */ jsx114("p", { css: SwitchText, children: additionalText }) : null,
|
|
19281
19448
|
children
|
|
19282
19449
|
] });
|
|
19283
19450
|
}
|
|
@@ -19287,8 +19454,8 @@ var Switch = React23.forwardRef(
|
|
|
19287
19454
|
import * as React24 from "react";
|
|
19288
19455
|
|
|
19289
19456
|
// src/components/Table/Table.styles.ts
|
|
19290
|
-
import { css as
|
|
19291
|
-
var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) =>
|
|
19457
|
+
import { css as css93 } from "@emotion/react";
|
|
19458
|
+
var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css93`
|
|
19292
19459
|
border-bottom: 1px solid var(--gray-400);
|
|
19293
19460
|
border-collapse: collapse;
|
|
19294
19461
|
min-width: 100%;
|
|
@@ -19299,60 +19466,60 @@ var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css92
|
|
|
19299
19466
|
padding: ${cellPadding};
|
|
19300
19467
|
}
|
|
19301
19468
|
`;
|
|
19302
|
-
var tableHead =
|
|
19469
|
+
var tableHead = css93`
|
|
19303
19470
|
background: var(--gray-100);
|
|
19304
19471
|
color: var(--brand-secondary-1);
|
|
19305
19472
|
text-align: left;
|
|
19306
19473
|
`;
|
|
19307
|
-
var tableRow =
|
|
19474
|
+
var tableRow = css93`
|
|
19308
19475
|
border-bottom: 1px solid var(--gray-200);
|
|
19309
19476
|
`;
|
|
19310
|
-
var tableCellHead =
|
|
19477
|
+
var tableCellHead = css93`
|
|
19311
19478
|
font-size: var(--fs-sm);
|
|
19312
19479
|
text-transform: uppercase;
|
|
19313
19480
|
font-weight: var(--fw-bold);
|
|
19314
19481
|
`;
|
|
19315
19482
|
|
|
19316
19483
|
// src/components/Table/Table.tsx
|
|
19317
|
-
import { jsx as
|
|
19484
|
+
import { jsx as jsx115 } from "@emotion/react/jsx-runtime";
|
|
19318
19485
|
var Table = React24.forwardRef(
|
|
19319
19486
|
({ children, cellPadding, ...otherProps }, ref) => {
|
|
19320
|
-
return /* @__PURE__ */
|
|
19487
|
+
return /* @__PURE__ */ jsx115("table", { ref, css: table({ cellPadding }), ...otherProps, children });
|
|
19321
19488
|
}
|
|
19322
19489
|
);
|
|
19323
19490
|
var TableHead = React24.forwardRef(
|
|
19324
19491
|
({ children, ...otherProps }, ref) => {
|
|
19325
|
-
return /* @__PURE__ */
|
|
19492
|
+
return /* @__PURE__ */ jsx115("thead", { ref, css: tableHead, ...otherProps, children });
|
|
19326
19493
|
}
|
|
19327
19494
|
);
|
|
19328
19495
|
var TableBody = React24.forwardRef(
|
|
19329
19496
|
({ children, ...otherProps }, ref) => {
|
|
19330
|
-
return /* @__PURE__ */
|
|
19497
|
+
return /* @__PURE__ */ jsx115("tbody", { ref, ...otherProps, children });
|
|
19331
19498
|
}
|
|
19332
19499
|
);
|
|
19333
19500
|
var TableFoot = React24.forwardRef(
|
|
19334
19501
|
({ children, ...otherProps }, ref) => {
|
|
19335
|
-
return /* @__PURE__ */
|
|
19502
|
+
return /* @__PURE__ */ jsx115("tfoot", { ref, ...otherProps, children });
|
|
19336
19503
|
}
|
|
19337
19504
|
);
|
|
19338
19505
|
var TableRow = React24.forwardRef(
|
|
19339
19506
|
({ children, ...otherProps }, ref) => {
|
|
19340
|
-
return /* @__PURE__ */
|
|
19507
|
+
return /* @__PURE__ */ jsx115("tr", { ref, css: tableRow, ...otherProps, children });
|
|
19341
19508
|
}
|
|
19342
19509
|
);
|
|
19343
19510
|
var TableCellHead = React24.forwardRef(
|
|
19344
19511
|
({ children, ...otherProps }, ref) => {
|
|
19345
|
-
return /* @__PURE__ */
|
|
19512
|
+
return /* @__PURE__ */ jsx115("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
19346
19513
|
}
|
|
19347
19514
|
);
|
|
19348
19515
|
var TableCellData = React24.forwardRef(
|
|
19349
19516
|
({ children, ...otherProps }, ref) => {
|
|
19350
|
-
return /* @__PURE__ */
|
|
19517
|
+
return /* @__PURE__ */ jsx115("td", { ref, ...otherProps, children });
|
|
19351
19518
|
}
|
|
19352
19519
|
);
|
|
19353
19520
|
|
|
19354
19521
|
// src/components/Tabs/Tabs.tsx
|
|
19355
|
-
import { createContext as
|
|
19522
|
+
import { createContext as createContext5, useContext as useContext6, useEffect as useEffect15, useMemo as useMemo6 } from "react";
|
|
19356
19523
|
import {
|
|
19357
19524
|
Tab as ReakitTab,
|
|
19358
19525
|
TabList as ReakitTabList,
|
|
@@ -19361,8 +19528,8 @@ import {
|
|
|
19361
19528
|
} from "reakit/Tab";
|
|
19362
19529
|
|
|
19363
19530
|
// src/components/Tabs/Tabs.styles.ts
|
|
19364
|
-
import { css as
|
|
19365
|
-
var tabButtonStyles =
|
|
19531
|
+
import { css as css94 } from "@emotion/react";
|
|
19532
|
+
var tabButtonStyles = css94`
|
|
19366
19533
|
align-items: center;
|
|
19367
19534
|
border: 0;
|
|
19368
19535
|
height: 2.5rem;
|
|
@@ -19379,17 +19546,17 @@ var tabButtonStyles = css93`
|
|
|
19379
19546
|
box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
|
|
19380
19547
|
}
|
|
19381
19548
|
`;
|
|
19382
|
-
var tabButtonGroupStyles =
|
|
19549
|
+
var tabButtonGroupStyles = css94`
|
|
19383
19550
|
display: flex;
|
|
19384
19551
|
gap: var(--spacing-base);
|
|
19385
19552
|
border-bottom: 1px solid var(--gray-300);
|
|
19386
19553
|
`;
|
|
19387
19554
|
|
|
19388
19555
|
// src/components/Tabs/Tabs.tsx
|
|
19389
|
-
import { jsx as
|
|
19390
|
-
var CurrentTabContext =
|
|
19556
|
+
import { jsx as jsx116 } from "@emotion/react/jsx-runtime";
|
|
19557
|
+
var CurrentTabContext = createContext5(null);
|
|
19391
19558
|
var useCurrentTab = () => {
|
|
19392
|
-
const context =
|
|
19559
|
+
const context = useContext6(CurrentTabContext);
|
|
19393
19560
|
if (!context) {
|
|
19394
19561
|
throw new Error("This component can only be used inside <Tabs>");
|
|
19395
19562
|
}
|
|
@@ -19416,24 +19583,24 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
19416
19583
|
tab.setSelectedId(selected);
|
|
19417
19584
|
}
|
|
19418
19585
|
}, [selected]);
|
|
19419
|
-
return /* @__PURE__ */
|
|
19586
|
+
return /* @__PURE__ */ jsx116(CurrentTabContext.Provider, { value: tab, children });
|
|
19420
19587
|
};
|
|
19421
19588
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
19422
19589
|
const currentTab = useCurrentTab();
|
|
19423
|
-
return /* @__PURE__ */
|
|
19590
|
+
return /* @__PURE__ */ jsx116(ReakitTabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
19424
19591
|
};
|
|
19425
19592
|
var TabButton = ({ children, id, ...props }) => {
|
|
19426
19593
|
const currentTab = useCurrentTab();
|
|
19427
|
-
return /* @__PURE__ */
|
|
19594
|
+
return /* @__PURE__ */ jsx116(ReakitTab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
19428
19595
|
};
|
|
19429
19596
|
var TabContent = ({ children, ...props }) => {
|
|
19430
19597
|
const currentTab = useCurrentTab();
|
|
19431
|
-
return /* @__PURE__ */
|
|
19598
|
+
return /* @__PURE__ */ jsx116(ReakitTabPanel, { ...props, ...currentTab, children });
|
|
19432
19599
|
};
|
|
19433
19600
|
|
|
19434
19601
|
// src/components/Validation/StatusBullet.styles.ts
|
|
19435
|
-
import { css as
|
|
19436
|
-
var StatusBulletContainer =
|
|
19602
|
+
import { css as css95 } from "@emotion/react";
|
|
19603
|
+
var StatusBulletContainer = css95`
|
|
19437
19604
|
align-items: center;
|
|
19438
19605
|
align-self: center;
|
|
19439
19606
|
color: var(--gray-500);
|
|
@@ -19450,33 +19617,33 @@ var StatusBulletContainer = css94`
|
|
|
19450
19617
|
display: block;
|
|
19451
19618
|
}
|
|
19452
19619
|
`;
|
|
19453
|
-
var StatusBulletBase =
|
|
19620
|
+
var StatusBulletBase = css95`
|
|
19454
19621
|
font-size: var(--fs-sm);
|
|
19455
19622
|
&:before {
|
|
19456
19623
|
width: var(--fs-xs);
|
|
19457
19624
|
height: var(--fs-xs);
|
|
19458
19625
|
}
|
|
19459
19626
|
`;
|
|
19460
|
-
var StatusBulletSmall =
|
|
19627
|
+
var StatusBulletSmall = css95`
|
|
19461
19628
|
font-size: var(--fs-xs);
|
|
19462
19629
|
&:before {
|
|
19463
19630
|
width: var(--fs-xxs);
|
|
19464
19631
|
height: var(--fs-xxs);
|
|
19465
19632
|
}
|
|
19466
19633
|
`;
|
|
19467
|
-
var StatusDraft =
|
|
19634
|
+
var StatusDraft = css95`
|
|
19468
19635
|
&:before {
|
|
19469
19636
|
background: var(--white);
|
|
19470
19637
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
19471
19638
|
}
|
|
19472
19639
|
`;
|
|
19473
|
-
var StatusModified =
|
|
19640
|
+
var StatusModified = css95`
|
|
19474
19641
|
&:before {
|
|
19475
19642
|
background: linear-gradient(to right, var(--white) 50%, var(--primary-action-default) 50% 100%);
|
|
19476
19643
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
19477
19644
|
}
|
|
19478
19645
|
`;
|
|
19479
|
-
var StatusError =
|
|
19646
|
+
var StatusError = css95`
|
|
19480
19647
|
color: var(--error);
|
|
19481
19648
|
&:before {
|
|
19482
19649
|
/* TODO: replace this with an svg icon */
|
|
@@ -19489,24 +19656,24 @@ var StatusError = css94`
|
|
|
19489
19656
|
);
|
|
19490
19657
|
}
|
|
19491
19658
|
`;
|
|
19492
|
-
var StatusPublished =
|
|
19659
|
+
var StatusPublished = css95`
|
|
19493
19660
|
&:before {
|
|
19494
19661
|
background: var(--primary-action-default);
|
|
19495
19662
|
}
|
|
19496
19663
|
`;
|
|
19497
|
-
var StatusOrphan =
|
|
19664
|
+
var StatusOrphan = css95`
|
|
19498
19665
|
&:before {
|
|
19499
19666
|
background: var(--brand-secondary-5);
|
|
19500
19667
|
}
|
|
19501
19668
|
`;
|
|
19502
|
-
var StatusUnknown =
|
|
19669
|
+
var StatusUnknown = css95`
|
|
19503
19670
|
&:before {
|
|
19504
19671
|
background: var(--brand-secondary-1);
|
|
19505
19672
|
}
|
|
19506
19673
|
`;
|
|
19507
19674
|
|
|
19508
19675
|
// src/components/Validation/StatusBullet.tsx
|
|
19509
|
-
import { jsx as
|
|
19676
|
+
import { jsx as jsx117 } from "@emotion/react/jsx-runtime";
|
|
19510
19677
|
var StatusBullet = ({
|
|
19511
19678
|
status,
|
|
19512
19679
|
hideText = false,
|
|
@@ -19525,7 +19692,7 @@ var StatusBullet = ({
|
|
|
19525
19692
|
Unknown: StatusUnknown
|
|
19526
19693
|
};
|
|
19527
19694
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
19528
|
-
return /* @__PURE__ */
|
|
19695
|
+
return /* @__PURE__ */ jsx117(
|
|
19529
19696
|
"span",
|
|
19530
19697
|
{
|
|
19531
19698
|
role: "status",
|
|
@@ -19606,13 +19773,14 @@ export {
|
|
|
19606
19773
|
LoadingOverlay,
|
|
19607
19774
|
MediaCard,
|
|
19608
19775
|
Menu,
|
|
19609
|
-
MenuContext,
|
|
19610
19776
|
MenuGroup,
|
|
19611
19777
|
MenuItem,
|
|
19778
|
+
MenuItemInner,
|
|
19612
19779
|
MenuItemSeparator,
|
|
19613
19780
|
Modal,
|
|
19614
19781
|
MultilineChip,
|
|
19615
19782
|
PageHeaderSection,
|
|
19783
|
+
Pagination,
|
|
19616
19784
|
Paragraph,
|
|
19617
19785
|
ParameterDataResource,
|
|
19618
19786
|
ParameterDrawerHeader,
|
|
@@ -19655,6 +19823,7 @@ export {
|
|
|
19655
19823
|
StatusBullet,
|
|
19656
19824
|
SuccessMessage,
|
|
19657
19825
|
Switch,
|
|
19826
|
+
TAKEOVER_STACK_ID,
|
|
19658
19827
|
TabButton,
|
|
19659
19828
|
TabButtonGroup,
|
|
19660
19829
|
TabContent,
|
|
@@ -19666,6 +19835,7 @@ export {
|
|
|
19666
19835
|
TableHead,
|
|
19667
19836
|
TableRow,
|
|
19668
19837
|
Tabs,
|
|
19838
|
+
TakeoverDrawerRenderer,
|
|
19669
19839
|
Textarea,
|
|
19670
19840
|
Theme,
|
|
19671
19841
|
Tile2 as Tile,
|
|
@@ -19750,7 +19920,6 @@ export {
|
|
|
19750
19920
|
useCurrentTab,
|
|
19751
19921
|
useDrawer,
|
|
19752
19922
|
useIconContext,
|
|
19753
|
-
useMenuContext,
|
|
19754
19923
|
useOutsideClick,
|
|
19755
19924
|
useParameterShell,
|
|
19756
19925
|
useShortcut,
|