@uniformdev/design-system 19.61.1-alpha.10 → 19.61.1-alpha.13
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 +790 -577
- package/dist/index.d.mts +36 -13
- package/dist/index.d.ts +36 -13
- package/dist/index.js +1113 -894
- package/package.json +8 -7
package/dist/esm/index.js
CHANGED
|
@@ -562,7 +562,7 @@ var buttonGhostUnimportant = css`
|
|
|
562
562
|
color: var(--gray-400);
|
|
563
563
|
}
|
|
564
564
|
|
|
565
|
-
${buttonRippleEffect({ hoverColor: "var(--
|
|
565
|
+
${buttonRippleEffect({ hoverColor: "var(--brand-secondary-2)", activeColor: "var(--gray-100)" })}
|
|
566
566
|
`;
|
|
567
567
|
|
|
568
568
|
// src/components/Input/styles/Inputs.styles.ts
|
|
@@ -572,7 +572,6 @@ var inputContainer = css2`
|
|
|
572
572
|
`;
|
|
573
573
|
var labelText = css2`
|
|
574
574
|
display: flex;
|
|
575
|
-
font-weight: var(--fw-bold);
|
|
576
575
|
margin: 0 0 var(--spacing-xs);
|
|
577
576
|
align-items: center;
|
|
578
577
|
`;
|
|
@@ -702,8 +701,7 @@ var toggleInput = css2`
|
|
|
702
701
|
no-repeat center center;
|
|
703
702
|
}
|
|
704
703
|
`;
|
|
705
|
-
var inlineLabel =
|
|
706
|
-
font-weight: ${fontWeight === "medium" ? "var(--fw-medium)" : fontWeight === "normal" ? "var(--fw-regular)" : "var(--fw-bold)"};
|
|
704
|
+
var inlineLabel = css2`
|
|
707
705
|
padding-left: var(--spacing-lg);
|
|
708
706
|
|
|
709
707
|
> a {
|
|
@@ -714,6 +712,15 @@ var inlineLabel = (fontWeight) => css2`
|
|
|
714
712
|
}
|
|
715
713
|
}
|
|
716
714
|
`;
|
|
715
|
+
var labelNormal = css2`
|
|
716
|
+
font-weight: var(--fw-regular);
|
|
717
|
+
`;
|
|
718
|
+
var labelMedium = css2`
|
|
719
|
+
font-weight: var(--fw-medium);
|
|
720
|
+
`;
|
|
721
|
+
var labelBold = css2`
|
|
722
|
+
font-weight: var(--fw-bold);
|
|
723
|
+
`;
|
|
717
724
|
var inputDisabled = css2`
|
|
718
725
|
cursor: not-allowed;
|
|
719
726
|
color: var(--gray-400);
|
|
@@ -1880,9 +1887,9 @@ var AddListButtonBtnSmall = css9`
|
|
|
1880
1887
|
font-weight: var(--fw-regular);
|
|
1881
1888
|
margin-block: var(--spacing-md) 0;
|
|
1882
1889
|
`;
|
|
1883
|
-
var AddListButtonIconMathPlus = (
|
|
1890
|
+
var AddListButtonIconMathPlus = (disabled2, theme) => css9`
|
|
1884
1891
|
box-sizing: border-box;
|
|
1885
|
-
background: ${
|
|
1892
|
+
background: ${disabled2 ? "var(--gray-300)" : theme};
|
|
1886
1893
|
color: var(--white);
|
|
1887
1894
|
padding: calc(var(--spacing-xs) - 0.15rem);
|
|
1888
1895
|
`;
|
|
@@ -1896,7 +1903,7 @@ import { jsx as jsx8, jsxs as jsxs3 } from "@emotion/react/jsx-runtime";
|
|
|
1896
1903
|
var AddListButton = ({
|
|
1897
1904
|
buttonText = "Add Item",
|
|
1898
1905
|
onButtonClick,
|
|
1899
|
-
disabled,
|
|
1906
|
+
disabled: disabled2,
|
|
1900
1907
|
icon = "math-plus",
|
|
1901
1908
|
variant = "regular",
|
|
1902
1909
|
theme = "var(--primary-action-default)",
|
|
@@ -1918,7 +1925,7 @@ var AddListButton = ({
|
|
|
1918
1925
|
css: [variantStylesMap[variant], AddListButtonTheme(theme)],
|
|
1919
1926
|
onClick: onButtonClick,
|
|
1920
1927
|
title: buttonText,
|
|
1921
|
-
disabled,
|
|
1928
|
+
disabled: disabled2,
|
|
1922
1929
|
...buttonProps,
|
|
1923
1930
|
children: [
|
|
1924
1931
|
icon === "math-plus" ? /* @__PURE__ */ jsx8(
|
|
@@ -1927,7 +1934,7 @@ var AddListButton = ({
|
|
|
1927
1934
|
icon: mapIcon[icon],
|
|
1928
1935
|
iconColor: "currentColor",
|
|
1929
1936
|
size: "1.25em",
|
|
1930
|
-
css: [AddListButtonIcon, AddListButtonIconMathPlus(
|
|
1937
|
+
css: [AddListButtonIcon, AddListButtonIconMathPlus(disabled2, theme)]
|
|
1931
1938
|
}
|
|
1932
1939
|
) : /* @__PURE__ */ jsx8(Icon, { icon: mapIcon[icon], iconColor: "currentColor", size: "1.25em", css: AddListButtonIcon }),
|
|
1933
1940
|
buttonText
|
|
@@ -1973,12 +1980,13 @@ var commonLineHeight = css10`
|
|
|
1973
1980
|
import { jsx as jsx9 } from "@emotion/react/jsx-runtime";
|
|
1974
1981
|
var Heading = ({
|
|
1975
1982
|
level = 2,
|
|
1983
|
+
as,
|
|
1976
1984
|
asSpan,
|
|
1977
1985
|
withMarginBottom = true,
|
|
1978
1986
|
children,
|
|
1979
1987
|
...hAttributes
|
|
1980
1988
|
}) => {
|
|
1981
|
-
const Heading2 = asSpan ? "span" : `h${level}`;
|
|
1989
|
+
const Heading2 = (as != null ? as : asSpan) ? "span" : `h${level}`;
|
|
1982
1990
|
const headingStyle = {
|
|
1983
1991
|
1: h1,
|
|
1984
1992
|
2: h2,
|
|
@@ -1991,6 +1999,7 @@ var Heading = ({
|
|
|
1991
1999
|
Heading2,
|
|
1992
2000
|
{
|
|
1993
2001
|
...hAttributes,
|
|
2002
|
+
role: typeof as === "string" && /^h/.test(as) ? "heading" : void 0,
|
|
1994
2003
|
css: [headingStyle[level], commonHeadingAttr(withMarginBottom), commonLineHeight],
|
|
1995
2004
|
children
|
|
1996
2005
|
}
|
|
@@ -11735,7 +11744,7 @@ import * as React9 from "react";
|
|
|
11735
11744
|
import { MenuItem as BaseMenuItem } from "reakit";
|
|
11736
11745
|
import { jsx as jsx27, jsxs as jsxs16 } from "@emotion/react/jsx-runtime";
|
|
11737
11746
|
var MenuItem = React9.forwardRef(
|
|
11738
|
-
({ children, className, hideMenuOnClick = true, icon, textColor = "base", active, ...props }, ref) => {
|
|
11747
|
+
({ children, className, hideMenuOnClick = true, icon, textColor = "base", active: active2, ...props }, ref) => {
|
|
11739
11748
|
const menuState = useMenuContext();
|
|
11740
11749
|
const resolveProps = (originalProps) => {
|
|
11741
11750
|
const resolvedProps2 = { ...originalProps };
|
|
@@ -11759,7 +11768,7 @@ var MenuItem = React9.forwardRef(
|
|
|
11759
11768
|
"data-testid": "button-menu",
|
|
11760
11769
|
...menuState,
|
|
11761
11770
|
...resolvedProps,
|
|
11762
|
-
css: [menuItem(textColor,
|
|
11771
|
+
css: [menuItem(textColor, active2), typeof className === "object" ? className : void 0],
|
|
11763
11772
|
className: typeof className === "string" ? className : void 0,
|
|
11764
11773
|
children: icon ? renderWithIcon(resolvedChildren, icon) : resolvedChildren
|
|
11765
11774
|
}
|
|
@@ -11938,7 +11947,7 @@ var ButtonWithMenu = ({
|
|
|
11938
11947
|
buttonType = "secondary",
|
|
11939
11948
|
buttonText,
|
|
11940
11949
|
icon,
|
|
11941
|
-
disabled,
|
|
11950
|
+
disabled: disabled2,
|
|
11942
11951
|
children,
|
|
11943
11952
|
placement,
|
|
11944
11953
|
size = "lg",
|
|
@@ -11974,7 +11983,7 @@ var ButtonWithMenu = ({
|
|
|
11974
11983
|
css: [
|
|
11975
11984
|
sizes2[size],
|
|
11976
11985
|
ButtonWithMenuContainer,
|
|
11977
|
-
|
|
11986
|
+
disabled2 ? buttonDisabledTheme[buttonType] : buttonTheme[buttonType]
|
|
11978
11987
|
],
|
|
11979
11988
|
"data-testid": "multioptions-button",
|
|
11980
11989
|
children: onButtonClick ? /* @__PURE__ */ jsxs17(Fragment6, { children: [
|
|
@@ -11983,7 +11992,7 @@ var ButtonWithMenu = ({
|
|
|
11983
11992
|
{
|
|
11984
11993
|
type: "button",
|
|
11985
11994
|
css: ButtonWithMenuBtn,
|
|
11986
|
-
disabled,
|
|
11995
|
+
disabled: disabled2,
|
|
11987
11996
|
onClick: onButtonClick,
|
|
11988
11997
|
"data-testid": "multioptions-button-main",
|
|
11989
11998
|
...buttonProps,
|
|
@@ -11993,8 +12002,8 @@ var ButtonWithMenu = ({
|
|
|
11993
12002
|
]
|
|
11994
12003
|
}
|
|
11995
12004
|
),
|
|
11996
|
-
|
|
11997
|
-
] }) : /* @__PURE__ */ jsx28(Fragment6, { children:
|
|
12005
|
+
disabled2 ? clickableButton : /* @__PURE__ */ jsx28(Menu, { menuLabel: "buttonMenu", placement, menuTrigger: clickableButton, children })
|
|
12006
|
+
] }) : /* @__PURE__ */ jsx28(Fragment6, { children: disabled2 ? dropdownButton : /* @__PURE__ */ jsx28(Menu, { menuLabel: "buttonMenu", placement, menuTrigger: dropdownButton, children }) })
|
|
11998
12007
|
}
|
|
11999
12008
|
);
|
|
12000
12009
|
};
|
|
@@ -12354,7 +12363,7 @@ var Card = ({
|
|
|
12354
12363
|
menuItems,
|
|
12355
12364
|
children,
|
|
12356
12365
|
titleWithMarginBottom = true,
|
|
12357
|
-
disabled,
|
|
12366
|
+
disabled: disabled2,
|
|
12358
12367
|
tag: Tag = "div",
|
|
12359
12368
|
menuButtonTestId,
|
|
12360
12369
|
...props
|
|
@@ -12370,7 +12379,7 @@ var Card = ({
|
|
|
12370
12379
|
{
|
|
12371
12380
|
"aria-label": "More options",
|
|
12372
12381
|
type: "button",
|
|
12373
|
-
disabled,
|
|
12382
|
+
disabled: disabled2,
|
|
12374
12383
|
css: CardMenu,
|
|
12375
12384
|
"data-testid": menuButtonTestId != null ? menuButtonTestId : "list-card-menu",
|
|
12376
12385
|
children: /* @__PURE__ */ jsx31(Icon, { icon: CgMoreAlt, iconColor: "currentColor", size: 32 })
|
|
@@ -13014,15 +13023,24 @@ import React10 from "react";
|
|
|
13014
13023
|
|
|
13015
13024
|
// src/components/DescriptionList/DescriptionList.styles.ts
|
|
13016
13025
|
import { css as css40 } from "@emotion/react";
|
|
13017
|
-
var
|
|
13026
|
+
var descriptionListHorizontal = css40`
|
|
13018
13027
|
display: grid;
|
|
13019
13028
|
grid-template-columns: max-content auto;
|
|
13020
13029
|
gap: var(--spacing-xs) var(--spacing-md);
|
|
13021
13030
|
`;
|
|
13031
|
+
var descriptionListVertical = css40`
|
|
13032
|
+
display: flex;
|
|
13033
|
+
flex-direction: column;
|
|
13034
|
+
gap: var(--spacing-xs);
|
|
13035
|
+
`;
|
|
13022
13036
|
var descriptionListLabelStyles = css40`
|
|
13023
13037
|
display: flex;
|
|
13024
13038
|
align-items: center;
|
|
13025
13039
|
color: var(--gray-500);
|
|
13040
|
+
|
|
13041
|
+
dd + & {
|
|
13042
|
+
margin-top: var(--spacing-sm);
|
|
13043
|
+
}
|
|
13026
13044
|
`;
|
|
13027
13045
|
var descriptionListValueStyles = css40`
|
|
13028
13046
|
display: flex;
|
|
@@ -13033,14 +13051,22 @@ var descriptionListValueStyles = css40`
|
|
|
13033
13051
|
// src/components/DescriptionList/DescriptionList.tsx
|
|
13034
13052
|
import { jsx as jsx41, jsxs as jsxs24 } from "@emotion/react/jsx-runtime";
|
|
13035
13053
|
var DescriptionList = React10.forwardRef(
|
|
13036
|
-
({ items, ...listProps }, ref) => {
|
|
13054
|
+
({ items, variant = "horizontal", ...listProps }, ref) => {
|
|
13037
13055
|
if (!(items == null ? void 0 : items.length)) {
|
|
13038
13056
|
return null;
|
|
13039
13057
|
}
|
|
13040
|
-
return /* @__PURE__ */ jsx41(
|
|
13041
|
-
|
|
13042
|
-
|
|
13043
|
-
|
|
13058
|
+
return /* @__PURE__ */ jsx41(
|
|
13059
|
+
"dl",
|
|
13060
|
+
{
|
|
13061
|
+
ref,
|
|
13062
|
+
css: variant === "vertical" ? descriptionListVertical : descriptionListHorizontal,
|
|
13063
|
+
...listProps,
|
|
13064
|
+
children: items == null ? void 0 : items.map(({ label, value }) => /* @__PURE__ */ jsxs24(React10.Fragment, { children: [
|
|
13065
|
+
/* @__PURE__ */ jsx41("dt", { css: descriptionListLabelStyles, children: label }),
|
|
13066
|
+
/* @__PURE__ */ jsx41("dd", { css: descriptionListValueStyles, children: typeof value === "boolean" ? /* @__PURE__ */ jsx41(DescriptionListValueBoolean, { value }) : value })
|
|
13067
|
+
] }, label))
|
|
13068
|
+
}
|
|
13069
|
+
);
|
|
13044
13070
|
}
|
|
13045
13071
|
);
|
|
13046
13072
|
DescriptionList.displayName = "DescriptionList";
|
|
@@ -13255,6 +13281,10 @@ var DrawerContext = createContext3({
|
|
|
13255
13281
|
registerDrawer: () => {
|
|
13256
13282
|
},
|
|
13257
13283
|
unregisterDrawer: () => {
|
|
13284
|
+
},
|
|
13285
|
+
registerTakeoverStackId: () => {
|
|
13286
|
+
},
|
|
13287
|
+
unregisterTakeoverStackId: () => {
|
|
13258
13288
|
}
|
|
13259
13289
|
});
|
|
13260
13290
|
function renderDrawerId(drawer) {
|
|
@@ -13263,6 +13293,7 @@ function renderDrawerId(drawer) {
|
|
|
13263
13293
|
var DrawerProvider = ({ children }) => {
|
|
13264
13294
|
const [drawersRegistry, setDrawersRegistry] = useState5([]);
|
|
13265
13295
|
const providerId = useRef2(crypto.randomUUID());
|
|
13296
|
+
const [drawerTakeoverStackId, setDrawerTakeoverStackId] = useState5(void 0);
|
|
13266
13297
|
useShortcut({
|
|
13267
13298
|
handler: () => {
|
|
13268
13299
|
var _a, _b;
|
|
@@ -13320,6 +13351,22 @@ var DrawerProvider = ({ children }) => {
|
|
|
13320
13351
|
},
|
|
13321
13352
|
[setDrawersRegistry]
|
|
13322
13353
|
);
|
|
13354
|
+
const registerTakeoverStackId = useCallback(
|
|
13355
|
+
(stackId) => {
|
|
13356
|
+
if (drawerTakeoverStackId !== stackId) {
|
|
13357
|
+
setDrawerTakeoverStackId(stackId);
|
|
13358
|
+
}
|
|
13359
|
+
},
|
|
13360
|
+
[drawerTakeoverStackId]
|
|
13361
|
+
);
|
|
13362
|
+
const unregisterTakeoverStackId = useCallback(
|
|
13363
|
+
(stackId) => {
|
|
13364
|
+
if (drawerTakeoverStackId === stackId) {
|
|
13365
|
+
setDrawerTakeoverStackId(void 0);
|
|
13366
|
+
}
|
|
13367
|
+
},
|
|
13368
|
+
[drawerTakeoverStackId]
|
|
13369
|
+
);
|
|
13323
13370
|
return /* @__PURE__ */ jsx43(
|
|
13324
13371
|
DrawerContext.Provider,
|
|
13325
13372
|
{
|
|
@@ -13327,7 +13374,10 @@ var DrawerProvider = ({ children }) => {
|
|
|
13327
13374
|
drawersRegistry,
|
|
13328
13375
|
registerDrawer,
|
|
13329
13376
|
unregisterDrawer,
|
|
13330
|
-
providerId: providerId.current
|
|
13377
|
+
providerId: providerId.current,
|
|
13378
|
+
drawerTakeoverStackId,
|
|
13379
|
+
registerTakeoverStackId,
|
|
13380
|
+
unregisterTakeoverStackId
|
|
13331
13381
|
},
|
|
13332
13382
|
children
|
|
13333
13383
|
}
|
|
@@ -13360,8 +13410,9 @@ var useCurrentDrawer = () => {
|
|
|
13360
13410
|
var Drawer = React13.forwardRef(
|
|
13361
13411
|
({ minWidth, maxWidth, position, leftAligned, ...drawerProps }, ref) => {
|
|
13362
13412
|
const { stackId: inheritedStackId } = useCurrentDrawer();
|
|
13413
|
+
const { drawerTakeoverStackId } = useDrawer();
|
|
13363
13414
|
const drawerRendererProps = { width: drawerProps.width, minWidth, maxWidth, position, leftAligned };
|
|
13364
|
-
return drawerProps.stackId ? /* @__PURE__ */ jsx44(DrawerInner, { ref, ...drawerProps }) : inheritedStackId ? /* @__PURE__ */ jsx44(DrawerInner, { ref, ...drawerProps, stackId: inheritedStackId }) : /* @__PURE__ */ jsxs26(DrawerProvider, { children: [
|
|
13415
|
+
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: [
|
|
13365
13416
|
/* @__PURE__ */ jsx44(DrawerInner, { ref, ...drawerProps }),
|
|
13366
13417
|
/* @__PURE__ */ jsx44(DrawerRenderer, { stackId: defaultSackId, ...drawerRendererProps })
|
|
13367
13418
|
] });
|
|
@@ -13600,6 +13651,21 @@ var getDrawerAttributes = ({
|
|
|
13600
13651
|
return { "data-drawer-id": `${providerId}-${stackId}-${id}`, "data-testid": "container-drawer" };
|
|
13601
13652
|
};
|
|
13602
13653
|
|
|
13654
|
+
// src/components/Drawer/TakeoverDrawerRenderer.tsx
|
|
13655
|
+
import { useEffect as useEffect7 } from "react";
|
|
13656
|
+
import { jsx as jsx47 } from "@emotion/react/jsx-runtime";
|
|
13657
|
+
var TAKEOVER_STACK_ID = "takeover-stack";
|
|
13658
|
+
var TakeoverDrawerRenderer = (props) => {
|
|
13659
|
+
const { registerTakeoverStackId, unregisterTakeoverStackId } = useDrawer();
|
|
13660
|
+
useEffect7(() => {
|
|
13661
|
+
registerTakeoverStackId(TAKEOVER_STACK_ID);
|
|
13662
|
+
return () => {
|
|
13663
|
+
unregisterTakeoverStackId(TAKEOVER_STACK_ID);
|
|
13664
|
+
};
|
|
13665
|
+
}, [registerTakeoverStackId, unregisterTakeoverStackId]);
|
|
13666
|
+
return /* @__PURE__ */ jsx47(DrawerRenderer, { ...props, stackId: TAKEOVER_STACK_ID });
|
|
13667
|
+
};
|
|
13668
|
+
|
|
13603
13669
|
// src/components/IconButton/IconButton.tsx
|
|
13604
13670
|
import { forwardRef as forwardRef4 } from "react";
|
|
13605
13671
|
|
|
@@ -13631,16 +13697,16 @@ var variants = {
|
|
|
13631
13697
|
};
|
|
13632
13698
|
|
|
13633
13699
|
// src/components/IconButton/IconButton.tsx
|
|
13634
|
-
import { jsx as
|
|
13700
|
+
import { jsx as jsx48 } from "@emotion/react/jsx-runtime";
|
|
13635
13701
|
var IconButton = forwardRef4(
|
|
13636
13702
|
({ children, size = "md", variant = "square", ...props }, ref) => {
|
|
13637
|
-
return /* @__PURE__ */
|
|
13703
|
+
return /* @__PURE__ */ jsx48(Button, { ref, css: [iconButton, variants[variant], sizes[size]], ...props, children });
|
|
13638
13704
|
}
|
|
13639
13705
|
);
|
|
13640
13706
|
IconButton.displayName = "IconButton";
|
|
13641
13707
|
|
|
13642
13708
|
// src/components/Image/Image.tsx
|
|
13643
|
-
import { useCallback as useCallback2, useEffect as
|
|
13709
|
+
import { useCallback as useCallback2, useEffect as useEffect8, useState as useState8 } from "react";
|
|
13644
13710
|
|
|
13645
13711
|
// src/components/Input/styles/CaptionText.styles.ts
|
|
13646
13712
|
import { css as css45 } from "@emotion/react";
|
|
@@ -13653,9 +13719,9 @@ var CaptionText = (dynamicSize) => css45`
|
|
|
13653
13719
|
`;
|
|
13654
13720
|
|
|
13655
13721
|
// src/components/Input/Caption.tsx
|
|
13656
|
-
import { jsx as
|
|
13722
|
+
import { jsx as jsx49 } from "@emotion/react/jsx-runtime";
|
|
13657
13723
|
var Caption = ({ children, testId, dynamicSize = false, ...props }) => {
|
|
13658
|
-
return /* @__PURE__ */
|
|
13724
|
+
return /* @__PURE__ */ jsx49("small", { css: CaptionText(dynamicSize), "data-testid": testId, ...props, children });
|
|
13659
13725
|
};
|
|
13660
13726
|
|
|
13661
13727
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
@@ -13734,21 +13800,21 @@ var InfoDialogMessage = css46`
|
|
|
13734
13800
|
`;
|
|
13735
13801
|
|
|
13736
13802
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
13737
|
-
import { jsx as
|
|
13803
|
+
import { jsx as jsx50, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
|
|
13738
13804
|
var InfoDialog = ({ message }) => {
|
|
13739
13805
|
return /* @__PURE__ */ jsxs29("div", { "data-testid": "info-dialog", css: InfoDialogContainer, children: [
|
|
13740
|
-
/* @__PURE__ */
|
|
13741
|
-
/* @__PURE__ */
|
|
13806
|
+
/* @__PURE__ */ jsx50(Icon, { icon: "info", iconColor: "action", size: "0.9rem" }),
|
|
13807
|
+
/* @__PURE__ */ jsx50("div", { role: "paragraph", css: InfoDialogMessage, className: "info-message", children: message })
|
|
13742
13808
|
] });
|
|
13743
13809
|
};
|
|
13744
13810
|
var CheckboxWithInfo = forwardRef5(
|
|
13745
13811
|
({ label, name, info, ...props }, ref) => {
|
|
13746
13812
|
return /* @__PURE__ */ jsxs29("div", { css: CheckboxWithInfoContainer, children: [
|
|
13747
13813
|
/* @__PURE__ */ jsxs29("label", { css: CheckboxWithInfoLabel, children: [
|
|
13748
|
-
/* @__PURE__ */
|
|
13749
|
-
/* @__PURE__ */
|
|
13814
|
+
/* @__PURE__ */ jsx50("input", { type: "checkbox", name, ref, css: CheckboxWithInfoInput, ...props }),
|
|
13815
|
+
/* @__PURE__ */ jsx50("span", { children: label })
|
|
13750
13816
|
] }),
|
|
13751
|
-
info ? /* @__PURE__ */
|
|
13817
|
+
info ? /* @__PURE__ */ jsx50(InfoDialog, { message: info }) : null
|
|
13752
13818
|
] });
|
|
13753
13819
|
}
|
|
13754
13820
|
);
|
|
@@ -13766,10 +13832,10 @@ var ErrorText = css47`
|
|
|
13766
13832
|
`;
|
|
13767
13833
|
|
|
13768
13834
|
// src/components/Input/ErrorMessage.tsx
|
|
13769
|
-
import { jsx as
|
|
13835
|
+
import { jsx as jsx51, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
|
|
13770
13836
|
var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
13771
13837
|
return message ? /* @__PURE__ */ jsxs30("span", { role: "alert", css: ErrorText, "data-testid": testId, ...otherProps, children: [
|
|
13772
|
-
/* @__PURE__ */
|
|
13838
|
+
/* @__PURE__ */ jsx51("span", { children: /* @__PURE__ */ jsx51(Icon, { icon: MdWarning, size: "1rem", iconColor: "currentColor" }) }),
|
|
13773
13839
|
message
|
|
13774
13840
|
] }) : null;
|
|
13775
13841
|
};
|
|
@@ -13818,12 +13884,12 @@ var fieldsetBody = css48`
|
|
|
13818
13884
|
`;
|
|
13819
13885
|
|
|
13820
13886
|
// src/components/Input/Fieldset.tsx
|
|
13821
|
-
import { jsx as
|
|
13887
|
+
import { jsx as jsx52, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
|
|
13822
13888
|
var Fieldset = React15.forwardRef(
|
|
13823
|
-
({ legend, disabled, children, invert, ...props }, ref) => {
|
|
13824
|
-
return /* @__PURE__ */ jsxs31("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled, ...props, children: [
|
|
13889
|
+
({ legend, disabled: disabled2, children, invert, ...props }, ref) => {
|
|
13890
|
+
return /* @__PURE__ */ jsxs31("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled: disabled2, ...props, children: [
|
|
13825
13891
|
legend,
|
|
13826
|
-
/* @__PURE__ */
|
|
13892
|
+
/* @__PURE__ */ jsx52("div", { css: fieldsetBody, children })
|
|
13827
13893
|
] });
|
|
13828
13894
|
}
|
|
13829
13895
|
);
|
|
@@ -13847,10 +13913,10 @@ var InfoIcon2 = css49`
|
|
|
13847
13913
|
`;
|
|
13848
13914
|
|
|
13849
13915
|
// src/components/Input/InfoMessage.tsx
|
|
13850
|
-
import { jsx as
|
|
13916
|
+
import { jsx as jsx53, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
|
|
13851
13917
|
var InfoMessage = ({ message, testId, ...props }) => {
|
|
13852
13918
|
return message ? /* @__PURE__ */ jsxs32("span", { role: "status", css: InfoText, "data-testid": testId, ...props, children: [
|
|
13853
|
-
/* @__PURE__ */
|
|
13919
|
+
/* @__PURE__ */ jsx53("span", { children: /* @__PURE__ */ jsx53(Icon, { css: InfoIcon2, icon: MdInfoOutline, size: "1rem", iconColor: "currentColor" }) }),
|
|
13854
13920
|
message
|
|
13855
13921
|
] }) : null;
|
|
13856
13922
|
};
|
|
@@ -13859,9 +13925,9 @@ var InfoMessage = ({ message, testId, ...props }) => {
|
|
|
13859
13925
|
import * as React16 from "react";
|
|
13860
13926
|
|
|
13861
13927
|
// src/components/Input/Label.tsx
|
|
13862
|
-
import { jsx as
|
|
13928
|
+
import { jsx as jsx54 } from "@emotion/react/jsx-runtime";
|
|
13863
13929
|
var Label = ({ children, className, testId, ...props }) => {
|
|
13864
|
-
return /* @__PURE__ */
|
|
13930
|
+
return /* @__PURE__ */ jsx54(
|
|
13865
13931
|
"label",
|
|
13866
13932
|
{
|
|
13867
13933
|
css: [labelText, typeof className === "object" ? className : void 0],
|
|
@@ -13889,16 +13955,16 @@ var WarningIcon = css50`
|
|
|
13889
13955
|
`;
|
|
13890
13956
|
|
|
13891
13957
|
// src/components/Input/WarningMessage.tsx
|
|
13892
|
-
import { jsx as
|
|
13958
|
+
import { jsx as jsx55, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
|
|
13893
13959
|
var WarningMessage = ({ message, testId, ...props }) => {
|
|
13894
13960
|
return message ? /* @__PURE__ */ jsxs33("span", { role: "status", css: WarningText, "data-testid": testId, ...props, children: [
|
|
13895
|
-
/* @__PURE__ */
|
|
13961
|
+
/* @__PURE__ */ jsx55("span", { children: /* @__PURE__ */ jsx55(Icon, { css: WarningIcon, icon: MdWarning2, size: "1rem", iconColor: "currentColor" }) }),
|
|
13896
13962
|
message
|
|
13897
13963
|
] }) : null;
|
|
13898
13964
|
};
|
|
13899
13965
|
|
|
13900
13966
|
// src/components/Input/Input.tsx
|
|
13901
|
-
import { jsx as
|
|
13967
|
+
import { jsx as jsx56, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
|
|
13902
13968
|
var Input = React16.forwardRef(
|
|
13903
13969
|
({
|
|
13904
13970
|
label,
|
|
@@ -13924,7 +13990,7 @@ var Input = React16.forwardRef(
|
|
|
13924
13990
|
css: [inputContainer, typeof classNameRoot === "object" ? classNameRoot : void 0],
|
|
13925
13991
|
"data-testid": containerTestId ? containerTestId : "container-input-field",
|
|
13926
13992
|
children: [
|
|
13927
|
-
showLabel ? /* @__PURE__ */
|
|
13993
|
+
showLabel ? /* @__PURE__ */ jsx56(
|
|
13928
13994
|
Label,
|
|
13929
13995
|
{
|
|
13930
13996
|
htmlFor: id,
|
|
@@ -13940,7 +14006,7 @@ var Input = React16.forwardRef(
|
|
|
13940
14006
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
13941
14007
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
13942
14008
|
children: [
|
|
13943
|
-
/* @__PURE__ */
|
|
14009
|
+
/* @__PURE__ */ jsx56(
|
|
13944
14010
|
"input",
|
|
13945
14011
|
{
|
|
13946
14012
|
id,
|
|
@@ -13956,13 +14022,13 @@ var Input = React16.forwardRef(
|
|
|
13956
14022
|
ref
|
|
13957
14023
|
}
|
|
13958
14024
|
),
|
|
13959
|
-
icon ? /* @__PURE__ */
|
|
14025
|
+
icon ? /* @__PURE__ */ jsx56("div", { css: inputIcon, children: icon }) : null
|
|
13960
14026
|
]
|
|
13961
14027
|
}
|
|
13962
14028
|
),
|
|
13963
|
-
caption ? /* @__PURE__ */
|
|
13964
|
-
errorMessage ? /* @__PURE__ */
|
|
13965
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14029
|
+
caption ? /* @__PURE__ */ jsx56(Caption, { testId: captionTestId, children: caption }) : null,
|
|
14030
|
+
errorMessage ? /* @__PURE__ */ jsx56(ErrorMessage, { message: errorMessage, testId: errorTestId }) : null,
|
|
14031
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx56(WarningMessage, { message: warningMessage }) : null
|
|
13966
14032
|
]
|
|
13967
14033
|
}
|
|
13968
14034
|
);
|
|
@@ -13971,10 +14037,10 @@ var Input = React16.forwardRef(
|
|
|
13971
14037
|
|
|
13972
14038
|
// src/components/Input/InputComboBox.tsx
|
|
13973
14039
|
import Select from "react-select";
|
|
13974
|
-
import { jsx as
|
|
14040
|
+
import { jsx as jsx57 } from "@emotion/react/jsx-runtime";
|
|
13975
14041
|
function InputComboBox(props) {
|
|
13976
14042
|
var _a;
|
|
13977
|
-
return /* @__PURE__ */
|
|
14043
|
+
return /* @__PURE__ */ jsx57(
|
|
13978
14044
|
Select,
|
|
13979
14045
|
{
|
|
13980
14046
|
...props,
|
|
@@ -14174,13 +14240,13 @@ var inlineSelectMenuClosed = css51`
|
|
|
14174
14240
|
`;
|
|
14175
14241
|
|
|
14176
14242
|
// src/components/Input/InputInlineSelect.tsx
|
|
14177
|
-
import { jsx as
|
|
14243
|
+
import { jsx as jsx58, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
14178
14244
|
var InputInlineSelect = ({
|
|
14179
14245
|
classNameContainer,
|
|
14180
14246
|
options,
|
|
14181
14247
|
value,
|
|
14182
14248
|
onChange,
|
|
14183
|
-
disabled,
|
|
14249
|
+
disabled: disabled2,
|
|
14184
14250
|
...props
|
|
14185
14251
|
}) => {
|
|
14186
14252
|
var _a;
|
|
@@ -14206,24 +14272,24 @@ var InputInlineSelect = ({
|
|
|
14206
14272
|
"aria-expanded": menuVisible,
|
|
14207
14273
|
css: inlineSelectBtn,
|
|
14208
14274
|
onClick: () => {
|
|
14209
|
-
if (!
|
|
14275
|
+
if (!disabled2)
|
|
14210
14276
|
setMenuVisible((prev) => !prev);
|
|
14211
14277
|
},
|
|
14212
|
-
disabled,
|
|
14278
|
+
disabled: disabled2,
|
|
14213
14279
|
...props,
|
|
14214
14280
|
children: [
|
|
14215
|
-
/* @__PURE__ */
|
|
14216
|
-
|
|
14281
|
+
/* @__PURE__ */ jsx58("span", { children: (_a = selected == null ? void 0 : selected.label) != null ? _a : value }),
|
|
14282
|
+
disabled2 ? null : /* @__PURE__ */ jsx58(Icon, { icon: CgChevronDown2, iconColor: "currentColor", size: 24 })
|
|
14217
14283
|
]
|
|
14218
14284
|
}
|
|
14219
14285
|
),
|
|
14220
|
-
/* @__PURE__ */
|
|
14286
|
+
/* @__PURE__ */ jsx58(
|
|
14221
14287
|
"div",
|
|
14222
14288
|
{
|
|
14223
14289
|
id: `and-or-${props.id}`,
|
|
14224
14290
|
css: [inlineSelectMenu, menuVisible ? void 0 : inlineSelectMenuClosed],
|
|
14225
14291
|
"aria-hidden": !menuVisible,
|
|
14226
|
-
children: options.map((opt) => /* @__PURE__ */
|
|
14292
|
+
children: options.map((opt) => /* @__PURE__ */ jsx58(
|
|
14227
14293
|
"button",
|
|
14228
14294
|
{
|
|
14229
14295
|
type: "button",
|
|
@@ -14246,10 +14312,10 @@ var InputInlineSelect = ({
|
|
|
14246
14312
|
// src/components/Input/InputKeywordSearch.tsx
|
|
14247
14313
|
import { CgClose as CgClose4 } from "@react-icons/all-files/cg/CgClose";
|
|
14248
14314
|
import { CgSearch } from "@react-icons/all-files/cg/CgSearch";
|
|
14249
|
-
import { jsx as
|
|
14315
|
+
import { jsx as jsx59 } from "@emotion/react/jsx-runtime";
|
|
14250
14316
|
var InputKeywordSearch = ({
|
|
14251
14317
|
onSearchTextChanged,
|
|
14252
|
-
disabled = false,
|
|
14318
|
+
disabled: disabled2 = false,
|
|
14253
14319
|
placeholder = "Keyword search",
|
|
14254
14320
|
inputFieldName = "keywordSearch",
|
|
14255
14321
|
disabledFieldSubmission = false,
|
|
@@ -14267,7 +14333,7 @@ var InputKeywordSearch = ({
|
|
|
14267
14333
|
e.preventDefault();
|
|
14268
14334
|
}
|
|
14269
14335
|
};
|
|
14270
|
-
return /* @__PURE__ */
|
|
14336
|
+
return /* @__PURE__ */ jsx59(
|
|
14271
14337
|
Input,
|
|
14272
14338
|
{
|
|
14273
14339
|
type: "text",
|
|
@@ -14275,10 +14341,10 @@ var InputKeywordSearch = ({
|
|
|
14275
14341
|
placeholder,
|
|
14276
14342
|
showLabel: false,
|
|
14277
14343
|
value,
|
|
14278
|
-
icon: value ? /* @__PURE__ */
|
|
14344
|
+
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" }),
|
|
14279
14345
|
onChange: handleSearchTextChanged,
|
|
14280
14346
|
onKeyPress: preventSubmitOnField,
|
|
14281
|
-
disabled,
|
|
14347
|
+
disabled: disabled2,
|
|
14282
14348
|
"aria-label": placeholder,
|
|
14283
14349
|
css: [
|
|
14284
14350
|
compact ? {
|
|
@@ -14287,13 +14353,14 @@ var InputKeywordSearch = ({
|
|
|
14287
14353
|
} : null,
|
|
14288
14354
|
rounded ? { borderRadius: "var(--rounded-full)" } : null
|
|
14289
14355
|
],
|
|
14356
|
+
"data-testid": "input-search",
|
|
14290
14357
|
...props
|
|
14291
14358
|
}
|
|
14292
14359
|
);
|
|
14293
14360
|
};
|
|
14294
14361
|
|
|
14295
14362
|
// src/components/Input/InputSelect.tsx
|
|
14296
|
-
import { Fragment as Fragment9, jsx as
|
|
14363
|
+
import { Fragment as Fragment9, jsx as jsx60, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
14297
14364
|
var InputSelect = ({
|
|
14298
14365
|
label,
|
|
14299
14366
|
defaultOption,
|
|
@@ -14315,7 +14382,7 @@ var InputSelect = ({
|
|
|
14315
14382
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
14316
14383
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
14317
14384
|
children: [
|
|
14318
|
-
showLabel ? /* @__PURE__ */
|
|
14385
|
+
showLabel ? /* @__PURE__ */ jsx60(Fragment9, { children: /* @__PURE__ */ jsxs36(
|
|
14319
14386
|
Label,
|
|
14320
14387
|
{
|
|
14321
14388
|
htmlFor: props.id,
|
|
@@ -14342,14 +14409,14 @@ var InputSelect = ({
|
|
|
14342
14409
|
className: typeof classNameControl === "string" ? classNameControl : "",
|
|
14343
14410
|
...props,
|
|
14344
14411
|
children: [
|
|
14345
|
-
defaultOption ? /* @__PURE__ */
|
|
14346
|
-
options.map((opt, index) => /* @__PURE__ */
|
|
14412
|
+
defaultOption ? /* @__PURE__ */ jsx60("option", { value: "", children: defaultOption }) : null,
|
|
14413
|
+
options.map((opt, index) => /* @__PURE__ */ jsx60("option", { value: opt.label, ...opt }, index))
|
|
14347
14414
|
]
|
|
14348
14415
|
}
|
|
14349
14416
|
),
|
|
14350
|
-
caption ? /* @__PURE__ */
|
|
14351
|
-
errorMessage ? /* @__PURE__ */
|
|
14352
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14417
|
+
caption ? /* @__PURE__ */ jsx60(Caption, { children: caption }) : null,
|
|
14418
|
+
errorMessage ? /* @__PURE__ */ jsx60(ErrorMessage, { message: errorMessage }) : null,
|
|
14419
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx60(WarningMessage, { message: warningMessage }) : null
|
|
14353
14420
|
]
|
|
14354
14421
|
}
|
|
14355
14422
|
);
|
|
@@ -14357,28 +14424,33 @@ var InputSelect = ({
|
|
|
14357
14424
|
|
|
14358
14425
|
// src/components/Input/InputToggle.tsx
|
|
14359
14426
|
import * as React17 from "react";
|
|
14360
|
-
import { jsx as
|
|
14427
|
+
import { jsx as jsx61, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
|
|
14361
14428
|
var InputToggle = React17.forwardRef(
|
|
14362
14429
|
({
|
|
14363
14430
|
label,
|
|
14364
14431
|
type,
|
|
14365
|
-
disabled,
|
|
14432
|
+
disabled: disabled2,
|
|
14366
14433
|
checked,
|
|
14367
14434
|
name,
|
|
14368
14435
|
caption,
|
|
14369
14436
|
errorMessage,
|
|
14370
14437
|
warningMessage,
|
|
14371
14438
|
testId,
|
|
14372
|
-
fontWeight = "
|
|
14439
|
+
fontWeight = "normal",
|
|
14373
14440
|
...props
|
|
14374
14441
|
}, ref) => {
|
|
14442
|
+
const fontWeightStyles = {
|
|
14443
|
+
normal: labelNormal,
|
|
14444
|
+
medium: labelMedium,
|
|
14445
|
+
bold: labelBold
|
|
14446
|
+
};
|
|
14375
14447
|
return /* @__PURE__ */ jsxs37(
|
|
14376
14448
|
Label,
|
|
14377
14449
|
{
|
|
14378
|
-
css: [inputToggleLabel,
|
|
14450
|
+
css: [inputToggleLabel, disabled2 ? inputDisabled : void 0],
|
|
14379
14451
|
"data-testid": testId ? testId : "input-toggle",
|
|
14380
14452
|
children: [
|
|
14381
|
-
/* @__PURE__ */
|
|
14453
|
+
/* @__PURE__ */ jsx61(
|
|
14382
14454
|
"input",
|
|
14383
14455
|
{
|
|
14384
14456
|
ref,
|
|
@@ -14386,15 +14458,15 @@ var InputToggle = React17.forwardRef(
|
|
|
14386
14458
|
css: toggleInput,
|
|
14387
14459
|
checked,
|
|
14388
14460
|
name,
|
|
14389
|
-
disabled,
|
|
14461
|
+
disabled: disabled2,
|
|
14390
14462
|
...props
|
|
14391
14463
|
}
|
|
14392
14464
|
),
|
|
14393
|
-
/* @__PURE__ */
|
|
14465
|
+
/* @__PURE__ */ jsx61("span", { css: [inlineLabel, fontWeightStyles[fontWeight]], children: label }),
|
|
14394
14466
|
caption || errorMessage ? /* @__PURE__ */ jsxs37("span", { css: inputToggleMessageContainer, children: [
|
|
14395
|
-
caption ? /* @__PURE__ */
|
|
14396
|
-
errorMessage ? /* @__PURE__ */
|
|
14397
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14467
|
+
caption ? /* @__PURE__ */ jsx61(Caption, { children: caption }) : null,
|
|
14468
|
+
errorMessage ? /* @__PURE__ */ jsx61(ErrorMessage, { message: errorMessage }) : null,
|
|
14469
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx61(WarningMessage, { message: warningMessage }) : null
|
|
14398
14470
|
] }) : null
|
|
14399
14471
|
]
|
|
14400
14472
|
}
|
|
@@ -14403,9 +14475,9 @@ var InputToggle = React17.forwardRef(
|
|
|
14403
14475
|
);
|
|
14404
14476
|
|
|
14405
14477
|
// src/components/Input/Legend.tsx
|
|
14406
|
-
import { jsx as
|
|
14478
|
+
import { jsx as jsx62 } from "@emotion/react/jsx-runtime";
|
|
14407
14479
|
var Legend = ({ children }) => {
|
|
14408
|
-
return /* @__PURE__ */
|
|
14480
|
+
return /* @__PURE__ */ jsx62("legend", { css: fieldsetLegend, children });
|
|
14409
14481
|
};
|
|
14410
14482
|
|
|
14411
14483
|
// src/components/Input/SuccessMessage.tsx
|
|
@@ -14427,23 +14499,23 @@ var SuccessIcon2 = css53`
|
|
|
14427
14499
|
`;
|
|
14428
14500
|
|
|
14429
14501
|
// src/components/Input/SuccessMessage.tsx
|
|
14430
|
-
import { jsx as
|
|
14502
|
+
import { jsx as jsx63, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
|
|
14431
14503
|
var SuccessMessage = ({ message, testId, ...props }) => {
|
|
14432
14504
|
return message ? /* @__PURE__ */ jsxs38("span", { role: "status", css: SuccessText, "data-testid": testId, ...props, children: [
|
|
14433
|
-
/* @__PURE__ */
|
|
14505
|
+
/* @__PURE__ */ jsx63("span", { children: /* @__PURE__ */ jsx63(Icon, { css: SuccessIcon2, icon: CgCheckO, size: "1rem", iconColor: "currentColor" }) }),
|
|
14434
14506
|
message
|
|
14435
14507
|
] }) : null;
|
|
14436
14508
|
};
|
|
14437
14509
|
|
|
14438
14510
|
// src/components/Input/Textarea.tsx
|
|
14439
14511
|
import { forwardRef as forwardRef9 } from "react";
|
|
14440
|
-
import { Fragment as Fragment10, jsx as
|
|
14512
|
+
import { Fragment as Fragment10, jsx as jsx64, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
14441
14513
|
var Textarea = forwardRef9(
|
|
14442
14514
|
({ label, icon, id, caption, showLabel = true, errorMessage, warningMessage, ...props }, ref) => {
|
|
14443
14515
|
return /* @__PURE__ */ jsxs39(Fragment10, { children: [
|
|
14444
|
-
showLabel ? /* @__PURE__ */
|
|
14516
|
+
showLabel ? /* @__PURE__ */ jsx64("label", { htmlFor: id, css: [labelText], children: label }) : null,
|
|
14445
14517
|
/* @__PURE__ */ jsxs39("div", { css: [inputContainer], children: [
|
|
14446
|
-
/* @__PURE__ */
|
|
14518
|
+
/* @__PURE__ */ jsx64(
|
|
14447
14519
|
"textarea",
|
|
14448
14520
|
{
|
|
14449
14521
|
ref,
|
|
@@ -14458,11 +14530,11 @@ var Textarea = forwardRef9(
|
|
|
14458
14530
|
...props
|
|
14459
14531
|
}
|
|
14460
14532
|
),
|
|
14461
|
-
icon ? /* @__PURE__ */
|
|
14533
|
+
icon ? /* @__PURE__ */ jsx64("div", { css: inputIcon, children: icon }) : null
|
|
14462
14534
|
] }),
|
|
14463
|
-
caption ? /* @__PURE__ */
|
|
14464
|
-
errorMessage ? /* @__PURE__ */
|
|
14465
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
14535
|
+
caption ? /* @__PURE__ */ jsx64(Caption, { children: caption }) : null,
|
|
14536
|
+
errorMessage ? /* @__PURE__ */ jsx64(ErrorMessage, { message: errorMessage }) : null,
|
|
14537
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx64(WarningMessage, { message: warningMessage }) : null
|
|
14466
14538
|
] });
|
|
14467
14539
|
}
|
|
14468
14540
|
);
|
|
@@ -14509,7 +14581,7 @@ var variantFillImageImg = css54`
|
|
|
14509
14581
|
`;
|
|
14510
14582
|
|
|
14511
14583
|
// src/components/Image/ImageBroken.tsx
|
|
14512
|
-
import { jsx as
|
|
14584
|
+
import { jsx as jsx65, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
|
|
14513
14585
|
var ImageBroken = ({ width, height, ...props }) => {
|
|
14514
14586
|
return /* @__PURE__ */ jsxs40(
|
|
14515
14587
|
"svg",
|
|
@@ -14524,11 +14596,11 @@ var ImageBroken = ({ width, height, ...props }) => {
|
|
|
14524
14596
|
"data-testid": "broken-image",
|
|
14525
14597
|
...props,
|
|
14526
14598
|
children: [
|
|
14527
|
-
/* @__PURE__ */
|
|
14528
|
-
/* @__PURE__ */
|
|
14599
|
+
/* @__PURE__ */ jsx65("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
14600
|
+
/* @__PURE__ */ jsx65("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
14529
14601
|
/* @__PURE__ */ jsxs40("defs", { children: [
|
|
14530
|
-
/* @__PURE__ */
|
|
14531
|
-
/* @__PURE__ */
|
|
14602
|
+
/* @__PURE__ */ jsx65("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx65("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
14603
|
+
/* @__PURE__ */ jsx65(
|
|
14532
14604
|
"image",
|
|
14533
14605
|
{
|
|
14534
14606
|
id: "image0_761_4353",
|
|
@@ -14544,7 +14616,7 @@ var ImageBroken = ({ width, height, ...props }) => {
|
|
|
14544
14616
|
};
|
|
14545
14617
|
|
|
14546
14618
|
// src/components/Image/Image.tsx
|
|
14547
|
-
import { Fragment as Fragment11, jsx as
|
|
14619
|
+
import { Fragment as Fragment11, jsx as jsx66, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
14548
14620
|
var MIN_LOADING_MS = 100;
|
|
14549
14621
|
function Image({
|
|
14550
14622
|
alt,
|
|
@@ -14577,7 +14649,7 @@ function Image({
|
|
|
14577
14649
|
}
|
|
14578
14650
|
setLoadErrorText(message);
|
|
14579
14651
|
}, [setLoadErrorText, src]);
|
|
14580
|
-
|
|
14652
|
+
useEffect8(() => {
|
|
14581
14653
|
updateImageSrc();
|
|
14582
14654
|
}, [src]);
|
|
14583
14655
|
const handleLoadEvent = () => {
|
|
@@ -14604,7 +14676,7 @@ function Image({
|
|
|
14604
14676
|
variant === "fill-container" ? variantFillImageWrapper : null
|
|
14605
14677
|
],
|
|
14606
14678
|
children: [
|
|
14607
|
-
src && !loadErrorText ? /* @__PURE__ */
|
|
14679
|
+
src && !loadErrorText ? /* @__PURE__ */ jsx66(
|
|
14608
14680
|
"img",
|
|
14609
14681
|
{
|
|
14610
14682
|
...imgAttribs,
|
|
@@ -14624,7 +14696,7 @@ function Image({
|
|
|
14624
14696
|
}
|
|
14625
14697
|
) : null,
|
|
14626
14698
|
src && loadErrorText ? /* @__PURE__ */ jsxs41(Fragment11, { children: [
|
|
14627
|
-
/* @__PURE__ */
|
|
14699
|
+
/* @__PURE__ */ jsx66(
|
|
14628
14700
|
ImageBroken,
|
|
14629
14701
|
{
|
|
14630
14702
|
css: [brokenImage, img, imgLoaded],
|
|
@@ -14633,7 +14705,7 @@ function Image({
|
|
|
14633
14705
|
"data-testid": "broken-image"
|
|
14634
14706
|
}
|
|
14635
14707
|
),
|
|
14636
|
-
/* @__PURE__ */
|
|
14708
|
+
/* @__PURE__ */ jsx66(ErrorMessage, { message: loadErrorText })
|
|
14637
14709
|
] }) : null
|
|
14638
14710
|
]
|
|
14639
14711
|
}
|
|
@@ -14775,7 +14847,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => css55`
|
|
|
14775
14847
|
`;
|
|
14776
14848
|
|
|
14777
14849
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
14778
|
-
import { jsx as
|
|
14850
|
+
import { jsx as jsx67, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
14779
14851
|
var CreateTeamIntegrationTile = ({
|
|
14780
14852
|
title: title2 = "Create a custom integration for your team",
|
|
14781
14853
|
buttonText = "Add Integration",
|
|
@@ -14784,7 +14856,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
14784
14856
|
...props
|
|
14785
14857
|
}) => {
|
|
14786
14858
|
return /* @__PURE__ */ jsxs42("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
14787
|
-
/* @__PURE__ */
|
|
14859
|
+
/* @__PURE__ */ jsx67("span", { css: IntegrationTileTitle, title: title2, children: title2 }),
|
|
14788
14860
|
/* @__PURE__ */ jsxs42(
|
|
14789
14861
|
Button,
|
|
14790
14862
|
{
|
|
@@ -14795,7 +14867,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
14795
14867
|
css: IntegrationTitleFakeButton,
|
|
14796
14868
|
children: [
|
|
14797
14869
|
buttonText,
|
|
14798
|
-
asDeepLink ? /* @__PURE__ */
|
|
14870
|
+
asDeepLink ? /* @__PURE__ */ jsx67(
|
|
14799
14871
|
Icon,
|
|
14800
14872
|
{
|
|
14801
14873
|
icon: CgChevronRight2,
|
|
@@ -14805,7 +14877,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
14805
14877
|
order: 1;
|
|
14806
14878
|
`
|
|
14807
14879
|
}
|
|
14808
|
-
) : /* @__PURE__ */
|
|
14880
|
+
) : /* @__PURE__ */ jsx67(
|
|
14809
14881
|
Icon,
|
|
14810
14882
|
{
|
|
14811
14883
|
icon: CgAdd2,
|
|
@@ -14826,31 +14898,31 @@ var CreateTeamIntegrationTile = ({
|
|
|
14826
14898
|
import { CgCheck } from "@react-icons/all-files/cg/CgCheck";
|
|
14827
14899
|
import { CgLock } from "@react-icons/all-files/cg/CgLock";
|
|
14828
14900
|
import { CgSandClock } from "@react-icons/all-files/cg/CgSandClock";
|
|
14829
|
-
import { jsx as
|
|
14901
|
+
import { jsx as jsx68, jsxs as jsxs43 } from "@emotion/react/jsx-runtime";
|
|
14830
14902
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
14831
14903
|
return /* @__PURE__ */ jsxs43("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
14832
|
-
/* @__PURE__ */
|
|
14904
|
+
/* @__PURE__ */ jsx68(Icon, { icon: CgCheck, iconColor: "currentColor" }),
|
|
14833
14905
|
text
|
|
14834
14906
|
] });
|
|
14835
14907
|
};
|
|
14836
14908
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
14837
|
-
return /* @__PURE__ */
|
|
14909
|
+
return /* @__PURE__ */ jsx68("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
14838
14910
|
};
|
|
14839
14911
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
14840
14912
|
return /* @__PURE__ */ jsxs43("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
14841
|
-
/* @__PURE__ */
|
|
14913
|
+
/* @__PURE__ */ jsx68(Icon, { icon: CgLock, iconColor: "currentColor", size: 12 }),
|
|
14842
14914
|
text
|
|
14843
14915
|
] });
|
|
14844
14916
|
};
|
|
14845
14917
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
14846
14918
|
return /* @__PURE__ */ jsxs43("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
14847
|
-
/* @__PURE__ */
|
|
14919
|
+
/* @__PURE__ */ jsx68(Icon, { icon: CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
14848
14920
|
text
|
|
14849
14921
|
] });
|
|
14850
14922
|
};
|
|
14851
14923
|
|
|
14852
14924
|
// src/components/Tiles/ResolveIcon.tsx
|
|
14853
|
-
import { jsx as
|
|
14925
|
+
import { jsx as jsx69 } from "@emotion/react/jsx-runtime";
|
|
14854
14926
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
14855
14927
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
14856
14928
|
const mapClassName = {
|
|
@@ -14858,13 +14930,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
14858
14930
|
logo: IntegrationTitleLogo
|
|
14859
14931
|
};
|
|
14860
14932
|
if (icon) {
|
|
14861
|
-
return CompIcon ? /* @__PURE__ */
|
|
14933
|
+
return CompIcon ? /* @__PURE__ */ jsx69(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ jsx69("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
14862
14934
|
}
|
|
14863
14935
|
return null;
|
|
14864
14936
|
};
|
|
14865
14937
|
|
|
14866
14938
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
14867
|
-
import { jsx as
|
|
14939
|
+
import { jsx as jsx70, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
14868
14940
|
var EditTeamIntegrationTile = ({
|
|
14869
14941
|
id,
|
|
14870
14942
|
icon,
|
|
@@ -14880,10 +14952,10 @@ var EditTeamIntegrationTile = ({
|
|
|
14880
14952
|
"data-testid": "configure-integration-container",
|
|
14881
14953
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
14882
14954
|
children: [
|
|
14883
|
-
/* @__PURE__ */
|
|
14884
|
-
/* @__PURE__ */
|
|
14885
|
-
!isPublic ? /* @__PURE__ */
|
|
14886
|
-
canEdit ? /* @__PURE__ */
|
|
14955
|
+
/* @__PURE__ */ jsx70(ResolveIcon, { icon, name, "data-testid": "integration-logo" }),
|
|
14956
|
+
/* @__PURE__ */ jsx70("span", { css: IntegrationTileName, "data-testid": "integration-card-name", children: name }),
|
|
14957
|
+
!isPublic ? /* @__PURE__ */ jsx70(IntegrationCustomBadge, {}) : null,
|
|
14958
|
+
canEdit ? /* @__PURE__ */ jsx70(
|
|
14887
14959
|
Button,
|
|
14888
14960
|
{
|
|
14889
14961
|
buttonType: "unimportant",
|
|
@@ -14903,8 +14975,8 @@ var EditTeamIntegrationTile = ({
|
|
|
14903
14975
|
// src/components/Tiles/IntegrationComingSoon.tsx
|
|
14904
14976
|
import { css as css57 } from "@emotion/react";
|
|
14905
14977
|
import { CgHeart } from "@react-icons/all-files/cg/CgHeart";
|
|
14906
|
-
import { useEffect as
|
|
14907
|
-
import { jsx as
|
|
14978
|
+
import { useEffect as useEffect9, useState as useState9 } from "react";
|
|
14979
|
+
import { jsx as jsx71, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
|
|
14908
14980
|
var IntegrationComingSoon = ({
|
|
14909
14981
|
name,
|
|
14910
14982
|
icon,
|
|
@@ -14918,7 +14990,7 @@ var IntegrationComingSoon = ({
|
|
|
14918
14990
|
setUpVote((prev) => !prev);
|
|
14919
14991
|
onUpVoteClick();
|
|
14920
14992
|
};
|
|
14921
|
-
|
|
14993
|
+
useEffect9(() => {
|
|
14922
14994
|
if (upVote) {
|
|
14923
14995
|
const timer = setTimeout(() => setUpVote(false), timing);
|
|
14924
14996
|
return () => {
|
|
@@ -14933,9 +15005,9 @@ var IntegrationComingSoon = ({
|
|
|
14933
15005
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
14934
15006
|
...props,
|
|
14935
15007
|
children: [
|
|
14936
|
-
/* @__PURE__ */
|
|
14937
|
-
/* @__PURE__ */
|
|
14938
|
-
/* @__PURE__ */
|
|
15008
|
+
/* @__PURE__ */ jsx71(IntegrationComingSoonBadge, {}),
|
|
15009
|
+
/* @__PURE__ */ jsx71(ResolveIcon, { icon, name }),
|
|
15010
|
+
/* @__PURE__ */ jsx71("span", { css: IntegrationTileName, title: name, children: name }),
|
|
14939
15011
|
/* @__PURE__ */ jsxs45(
|
|
14940
15012
|
Button,
|
|
14941
15013
|
{
|
|
@@ -14946,8 +15018,8 @@ var IntegrationComingSoon = ({
|
|
|
14946
15018
|
role: "link",
|
|
14947
15019
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
14948
15020
|
children: [
|
|
14949
|
-
/* @__PURE__ */
|
|
14950
|
-
/* @__PURE__ */
|
|
15021
|
+
/* @__PURE__ */ jsx71("strong", { children: "+1" }),
|
|
15022
|
+
/* @__PURE__ */ jsx71(
|
|
14951
15023
|
"span",
|
|
14952
15024
|
{
|
|
14953
15025
|
css: css57`
|
|
@@ -14958,7 +15030,7 @@ var IntegrationComingSoon = ({
|
|
|
14958
15030
|
}
|
|
14959
15031
|
),
|
|
14960
15032
|
/* @__PURE__ */ jsxs45("span", { "aria-hidden": !upVote, children: [
|
|
14961
|
-
/* @__PURE__ */
|
|
15033
|
+
/* @__PURE__ */ jsx71(Icon, { icon: CgHeart, iconColor: "currentColor", size: 18 }),
|
|
14962
15034
|
"Thanks!"
|
|
14963
15035
|
] })
|
|
14964
15036
|
]
|
|
@@ -15014,12 +15086,12 @@ var IntegrationLoadingFrame = css58`
|
|
|
15014
15086
|
`;
|
|
15015
15087
|
|
|
15016
15088
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
15017
|
-
import { Fragment as Fragment12, jsx as
|
|
15089
|
+
import { Fragment as Fragment12, jsx as jsx72, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
15018
15090
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
15019
15091
|
const componentCount = Array.from(Array(count).keys());
|
|
15020
|
-
return /* @__PURE__ */
|
|
15021
|
-
/* @__PURE__ */
|
|
15022
|
-
/* @__PURE__ */
|
|
15092
|
+
return /* @__PURE__ */ jsx72(Fragment12, { children: componentCount.map((i) => /* @__PURE__ */ jsxs46("div", { css: IntegrationLoadingTileContainer, children: [
|
|
15093
|
+
/* @__PURE__ */ jsx72("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
15094
|
+
/* @__PURE__ */ jsx72("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
15023
15095
|
] }, i)) });
|
|
15024
15096
|
};
|
|
15025
15097
|
|
|
@@ -15039,7 +15111,7 @@ var IntegrationModalImage = css59`
|
|
|
15039
15111
|
`;
|
|
15040
15112
|
|
|
15041
15113
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
15042
|
-
import { jsx as
|
|
15114
|
+
import { jsx as jsx73, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
15043
15115
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
15044
15116
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
15045
15117
|
let iconSrc = void 0;
|
|
@@ -15057,7 +15129,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
15057
15129
|
}
|
|
15058
15130
|
return /* @__PURE__ */ jsxs47("div", { css: IntegrationModalIconContainer, children: [
|
|
15059
15131
|
/* @__PURE__ */ jsxs47("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
15060
|
-
/* @__PURE__ */
|
|
15132
|
+
/* @__PURE__ */ jsx73(
|
|
15061
15133
|
"path",
|
|
15062
15134
|
{
|
|
15063
15135
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -15066,12 +15138,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
15066
15138
|
strokeWidth: "2"
|
|
15067
15139
|
}
|
|
15068
15140
|
),
|
|
15069
|
-
/* @__PURE__ */
|
|
15070
|
-
/* @__PURE__ */
|
|
15071
|
-
/* @__PURE__ */
|
|
15141
|
+
/* @__PURE__ */ jsx73("defs", { children: /* @__PURE__ */ jsxs47("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
15142
|
+
/* @__PURE__ */ jsx73("stop", { stopColor: "#1768B2" }),
|
|
15143
|
+
/* @__PURE__ */ jsx73("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
15072
15144
|
] }) })
|
|
15073
15145
|
] }),
|
|
15074
|
-
CompIcon ? /* @__PURE__ */
|
|
15146
|
+
CompIcon ? /* @__PURE__ */ jsx73(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : iconSrc ? /* @__PURE__ */ jsx73(
|
|
15075
15147
|
"img",
|
|
15076
15148
|
{
|
|
15077
15149
|
src: iconSrc,
|
|
@@ -15085,7 +15157,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
15085
15157
|
};
|
|
15086
15158
|
|
|
15087
15159
|
// src/components/Tiles/IntegrationTile.tsx
|
|
15088
|
-
import { jsx as
|
|
15160
|
+
import { jsx as jsx74, jsxs as jsxs48 } from "@emotion/react/jsx-runtime";
|
|
15089
15161
|
var IntegrationTile = ({
|
|
15090
15162
|
id,
|
|
15091
15163
|
icon,
|
|
@@ -15107,12 +15179,12 @@ var IntegrationTile = ({
|
|
|
15107
15179
|
"aria-label": name,
|
|
15108
15180
|
...btnProps,
|
|
15109
15181
|
children: [
|
|
15110
|
-
/* @__PURE__ */
|
|
15111
|
-
/* @__PURE__ */
|
|
15112
|
-
isInstalled ? /* @__PURE__ */
|
|
15113
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */
|
|
15114
|
-
!isPublic ? /* @__PURE__ */
|
|
15115
|
-
authorIcon ? /* @__PURE__ */
|
|
15182
|
+
/* @__PURE__ */ jsx74(ResolveIcon, { icon, name }),
|
|
15183
|
+
/* @__PURE__ */ jsx74("span", { css: IntegrationTileName, title: name, children: name }),
|
|
15184
|
+
isInstalled ? /* @__PURE__ */ jsx74(IntegrationedAddedBadge, {}) : null,
|
|
15185
|
+
requiedEntitlement && isPublic ? /* @__PURE__ */ jsx74(IntegrationPremiumBadge, {}) : null,
|
|
15186
|
+
!isPublic ? /* @__PURE__ */ jsx74(IntegrationCustomBadge, {}) : null,
|
|
15187
|
+
authorIcon ? /* @__PURE__ */ jsx74(ResolveIcon, { icon: authorIcon, name }) : null
|
|
15116
15188
|
]
|
|
15117
15189
|
}
|
|
15118
15190
|
);
|
|
@@ -15145,9 +15217,9 @@ var Tile = css60`
|
|
|
15145
15217
|
`;
|
|
15146
15218
|
|
|
15147
15219
|
// src/components/Tiles/Tile.tsx
|
|
15148
|
-
import { jsx as
|
|
15149
|
-
var Tile2 = ({ children, disabled, ...props }) => {
|
|
15150
|
-
return /* @__PURE__ */
|
|
15220
|
+
import { jsx as jsx75 } from "@emotion/react/jsx-runtime";
|
|
15221
|
+
var Tile2 = ({ children, disabled: disabled2, ...props }) => {
|
|
15222
|
+
return /* @__PURE__ */ jsx75("button", { type: "button", css: Tile, disabled: disabled2, ...props, children });
|
|
15151
15223
|
};
|
|
15152
15224
|
|
|
15153
15225
|
// src/components/Tiles/styles/TileContainer.styles.ts
|
|
@@ -15170,7 +15242,7 @@ var TileContainerInner = (gap, templateColumns) => css61`
|
|
|
15170
15242
|
`;
|
|
15171
15243
|
|
|
15172
15244
|
// src/components/Tiles/TileContainer.tsx
|
|
15173
|
-
import { jsx as
|
|
15245
|
+
import { jsx as jsx76 } from "@emotion/react/jsx-runtime";
|
|
15174
15246
|
var TileContainer = ({
|
|
15175
15247
|
bgColor = "var(--brand-secondary-2)",
|
|
15176
15248
|
containerPadding = "base",
|
|
@@ -15179,7 +15251,7 @@ var TileContainer = ({
|
|
|
15179
15251
|
children,
|
|
15180
15252
|
...props
|
|
15181
15253
|
}) => {
|
|
15182
|
-
return /* @__PURE__ */
|
|
15254
|
+
return /* @__PURE__ */ jsx76("div", { css: TileContainerWrapper(bgColor, containerPadding), ...props, children: /* @__PURE__ */ jsx76("div", { css: TileContainerInner(gap, gridTemplateColumns), children }) });
|
|
15183
15255
|
};
|
|
15184
15256
|
|
|
15185
15257
|
// src/components/Tiles/styles/TileText.styles.ts
|
|
@@ -15194,10 +15266,10 @@ var TileText = css62`
|
|
|
15194
15266
|
`;
|
|
15195
15267
|
|
|
15196
15268
|
// src/components/Tiles/TileText.tsx
|
|
15197
|
-
import { jsx as
|
|
15269
|
+
import { jsx as jsx77 } from "@emotion/react/jsx-runtime";
|
|
15198
15270
|
var TileText2 = ({ as = "heading", children, ...props }) => {
|
|
15199
15271
|
const isHeading = as === "heading";
|
|
15200
|
-
return /* @__PURE__ */
|
|
15272
|
+
return /* @__PURE__ */ jsx77(
|
|
15201
15273
|
"span",
|
|
15202
15274
|
{
|
|
15203
15275
|
role: isHeading ? "heading" : void 0,
|
|
@@ -15226,6 +15298,7 @@ var IntegrationModalHeaderTitleGroup = css63`
|
|
|
15226
15298
|
align-items: center;
|
|
15227
15299
|
display: flex;
|
|
15228
15300
|
gap: var(--spacing-base);
|
|
15301
|
+
padding: 0 var(--spacing-base);
|
|
15229
15302
|
`;
|
|
15230
15303
|
var IntegrationModalHeaderTitle = css63`
|
|
15231
15304
|
margin-top: 0;
|
|
@@ -15234,12 +15307,18 @@ var IntegrationModalHeaderMenuPlacement = css63`
|
|
|
15234
15307
|
margin-bottom: var(--spacing-base);
|
|
15235
15308
|
`;
|
|
15236
15309
|
var IntegrationModalHeaderContentWrapper = css63`
|
|
15310
|
+
background: var(--white);
|
|
15311
|
+
display: flex;
|
|
15312
|
+
padding: var(--spacing-base);
|
|
15313
|
+
flex-direction: column;
|
|
15314
|
+
gap: var(--spacing-base);
|
|
15315
|
+
height: 100%;
|
|
15237
15316
|
position: relative;
|
|
15238
15317
|
z-index: var(--z-10);
|
|
15239
15318
|
`;
|
|
15240
15319
|
|
|
15241
15320
|
// src/components/IntegrationModalHeader/IntegrationModalHeader.tsx
|
|
15242
|
-
import { Fragment as Fragment13, jsx as
|
|
15321
|
+
import { Fragment as Fragment13, jsx as jsx78, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
15243
15322
|
var HexModalBackground = ({ ...props }) => {
|
|
15244
15323
|
return /* @__PURE__ */ jsxs49(
|
|
15245
15324
|
"svg",
|
|
@@ -15251,7 +15330,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
15251
15330
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15252
15331
|
...props,
|
|
15253
15332
|
children: [
|
|
15254
|
-
/* @__PURE__ */
|
|
15333
|
+
/* @__PURE__ */ jsx78(
|
|
15255
15334
|
"path",
|
|
15256
15335
|
{
|
|
15257
15336
|
fillRule: "evenodd",
|
|
@@ -15260,7 +15339,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
15260
15339
|
fill: "url(#paint0_linear_196_2737)"
|
|
15261
15340
|
}
|
|
15262
15341
|
),
|
|
15263
|
-
/* @__PURE__ */
|
|
15342
|
+
/* @__PURE__ */ jsx78("defs", { children: /* @__PURE__ */ jsxs49(
|
|
15264
15343
|
"linearGradient",
|
|
15265
15344
|
{
|
|
15266
15345
|
id: "paint0_linear_196_2737",
|
|
@@ -15270,8 +15349,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
15270
15349
|
y2: "-95.2742",
|
|
15271
15350
|
gradientUnits: "userSpaceOnUse",
|
|
15272
15351
|
children: [
|
|
15273
|
-
/* @__PURE__ */
|
|
15274
|
-
/* @__PURE__ */
|
|
15352
|
+
/* @__PURE__ */ jsx78("stop", { stopColor: "#81DCDE" }),
|
|
15353
|
+
/* @__PURE__ */ jsx78("stop", { offset: "1", stopColor: "#428ED4" })
|
|
15275
15354
|
]
|
|
15276
15355
|
}
|
|
15277
15356
|
) })
|
|
@@ -15281,22 +15360,22 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
15281
15360
|
};
|
|
15282
15361
|
var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
15283
15362
|
return /* @__PURE__ */ jsxs49(Fragment13, { children: [
|
|
15284
|
-
/* @__PURE__ */
|
|
15285
|
-
/* @__PURE__ */
|
|
15286
|
-
icon ? /* @__PURE__ */
|
|
15287
|
-
/* @__PURE__ */
|
|
15363
|
+
/* @__PURE__ */ jsx78(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
15364
|
+
/* @__PURE__ */ jsx78("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs49("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
15365
|
+
icon ? /* @__PURE__ */ jsx78(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
15366
|
+
/* @__PURE__ */ jsx78(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-testid": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
15288
15367
|
menu2 ? /* @__PURE__ */ jsxs49("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
15289
15368
|
menu2,
|
|
15290
15369
|
" "
|
|
15291
15370
|
] }) : null
|
|
15292
15371
|
] }) }),
|
|
15293
|
-
/* @__PURE__ */
|
|
15372
|
+
/* @__PURE__ */ jsx78("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
15294
15373
|
] });
|
|
15295
15374
|
};
|
|
15296
15375
|
|
|
15297
15376
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
15298
15377
|
import MonacoEditor from "@monaco-editor/react";
|
|
15299
|
-
import { jsx as
|
|
15378
|
+
import { jsx as jsx79 } from "@emotion/react/jsx-runtime";
|
|
15300
15379
|
var minEditorHeightPx = 150;
|
|
15301
15380
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
15302
15381
|
let effectiveHeight = height;
|
|
@@ -15306,7 +15385,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
15306
15385
|
if (typeof effectiveHeight === "number" && effectiveHeight < minEditorHeightPx) {
|
|
15307
15386
|
effectiveHeight = minEditorHeightPx;
|
|
15308
15387
|
}
|
|
15309
|
-
return /* @__PURE__ */
|
|
15388
|
+
return /* @__PURE__ */ jsx79(
|
|
15310
15389
|
MonacoEditor,
|
|
15311
15390
|
{
|
|
15312
15391
|
height: effectiveHeight,
|
|
@@ -15375,7 +15454,7 @@ var LimitsBarTextColor = (statusColor) => css64`
|
|
|
15375
15454
|
`;
|
|
15376
15455
|
|
|
15377
15456
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
15378
|
-
import { jsx as
|
|
15457
|
+
import { jsx as jsx80, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
15379
15458
|
var LimitsBar = ({ current, max, label }) => {
|
|
15380
15459
|
const maxPercentage = 100;
|
|
15381
15460
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -15388,14 +15467,14 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
15388
15467
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
15389
15468
|
return /* @__PURE__ */ jsxs50("div", { css: LimitsBarContainer, children: [
|
|
15390
15469
|
/* @__PURE__ */ jsxs50("div", { css: LimitsBarLabelContainer, children: [
|
|
15391
|
-
/* @__PURE__ */
|
|
15470
|
+
/* @__PURE__ */ jsx80("span", { css: LimitsBarLabel, children: label }),
|
|
15392
15471
|
/* @__PURE__ */ jsxs50("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
15393
15472
|
current,
|
|
15394
15473
|
" of ",
|
|
15395
15474
|
max
|
|
15396
15475
|
] })
|
|
15397
15476
|
] }),
|
|
15398
|
-
/* @__PURE__ */
|
|
15477
|
+
/* @__PURE__ */ jsx80(
|
|
15399
15478
|
"div",
|
|
15400
15479
|
{
|
|
15401
15480
|
role: "progressbar",
|
|
@@ -15404,7 +15483,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
15404
15483
|
"aria-valuemax": max,
|
|
15405
15484
|
"aria-valuetext": `${current} of ${max}`,
|
|
15406
15485
|
css: LimitsBarProgressBar,
|
|
15407
|
-
children: /* @__PURE__ */
|
|
15486
|
+
children: /* @__PURE__ */ jsx80(
|
|
15408
15487
|
"span",
|
|
15409
15488
|
{
|
|
15410
15489
|
role: "presentation",
|
|
@@ -15436,10 +15515,10 @@ var LinkListTitle = css65`
|
|
|
15436
15515
|
`;
|
|
15437
15516
|
|
|
15438
15517
|
// src/components/LinkList/LinkList.tsx
|
|
15439
|
-
import { jsx as
|
|
15518
|
+
import { jsx as jsx81, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
15440
15519
|
var LinkList = ({ title: title2, padding = "var(--spacing-md)", children, ...props }) => {
|
|
15441
15520
|
return /* @__PURE__ */ jsxs51("div", { css: LinkListContainer(padding), ...props, children: [
|
|
15442
|
-
/* @__PURE__ */
|
|
15521
|
+
/* @__PURE__ */ jsx81(Heading, { level: 3, css: LinkListTitle, children: title2 }),
|
|
15443
15522
|
children
|
|
15444
15523
|
] });
|
|
15445
15524
|
};
|
|
@@ -15475,10 +15554,10 @@ var ScrollableListInner = css66`
|
|
|
15475
15554
|
`;
|
|
15476
15555
|
|
|
15477
15556
|
// src/components/List/ScrollableList.tsx
|
|
15478
|
-
import { jsx as
|
|
15557
|
+
import { jsx as jsx82, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
15479
15558
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
15480
15559
|
return /* @__PURE__ */ jsxs52("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
15481
|
-
label ? /* @__PURE__ */
|
|
15560
|
+
label ? /* @__PURE__ */ jsx82(
|
|
15482
15561
|
"span",
|
|
15483
15562
|
{
|
|
15484
15563
|
css: css67`
|
|
@@ -15487,7 +15566,7 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
15487
15566
|
children: label
|
|
15488
15567
|
}
|
|
15489
15568
|
) : null,
|
|
15490
|
-
/* @__PURE__ */
|
|
15569
|
+
/* @__PURE__ */ jsx82("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
15491
15570
|
] });
|
|
15492
15571
|
};
|
|
15493
15572
|
|
|
@@ -15559,23 +15638,23 @@ var ScrollableListIconVisible = css68`
|
|
|
15559
15638
|
`;
|
|
15560
15639
|
|
|
15561
15640
|
// src/components/List/ScrollableListInputItem.tsx
|
|
15562
|
-
import { jsx as
|
|
15641
|
+
import { jsx as jsx83, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
15563
15642
|
var ScrollableListInputItem = ({
|
|
15564
15643
|
label,
|
|
15565
15644
|
icon,
|
|
15566
|
-
active,
|
|
15645
|
+
active: active2,
|
|
15567
15646
|
disableShadow = false,
|
|
15568
15647
|
children,
|
|
15569
15648
|
labelTestId,
|
|
15570
15649
|
...props
|
|
15571
15650
|
}) => {
|
|
15572
|
-
return /* @__PURE__ */
|
|
15651
|
+
return /* @__PURE__ */ jsx83(
|
|
15573
15652
|
"div",
|
|
15574
15653
|
{
|
|
15575
15654
|
css: [
|
|
15576
15655
|
ScrollableListItemContainer,
|
|
15577
15656
|
disableShadow ? void 0 : ScrollableListItemShadow,
|
|
15578
|
-
|
|
15657
|
+
active2 ? ScrollableListItemActive : void 0
|
|
15579
15658
|
],
|
|
15580
15659
|
...props,
|
|
15581
15660
|
children: /* @__PURE__ */ jsxs53("label", { "data-testid": labelTestId, css: ScrollableListInputLabel, children: [
|
|
@@ -15583,16 +15662,16 @@ var ScrollableListInputItem = ({
|
|
|
15583
15662
|
icon,
|
|
15584
15663
|
label
|
|
15585
15664
|
] }),
|
|
15586
|
-
/* @__PURE__ */
|
|
15587
|
-
/* @__PURE__ */
|
|
15665
|
+
/* @__PURE__ */ jsx83("div", { css: ScrollableListHiddenInput, children }),
|
|
15666
|
+
/* @__PURE__ */ jsx83(
|
|
15588
15667
|
Icon,
|
|
15589
15668
|
{
|
|
15590
15669
|
icon: CgCheck2,
|
|
15591
15670
|
iconColor: "currentColor",
|
|
15592
|
-
css: [ScrollableListIcon,
|
|
15671
|
+
css: [ScrollableListIcon, active2 ? ScrollableListIconVisible : void 0],
|
|
15593
15672
|
size: 24,
|
|
15594
15673
|
"data-testid": "check-mark",
|
|
15595
|
-
"data-test-active":
|
|
15674
|
+
"data-test-active": active2
|
|
15596
15675
|
}
|
|
15597
15676
|
)
|
|
15598
15677
|
] })
|
|
@@ -15602,33 +15681,33 @@ var ScrollableListInputItem = ({
|
|
|
15602
15681
|
|
|
15603
15682
|
// src/components/List/ScrollableListItem.tsx
|
|
15604
15683
|
import { CgCheck as CgCheck3 } from "@react-icons/all-files/cg/CgCheck";
|
|
15605
|
-
import { jsx as
|
|
15684
|
+
import { jsx as jsx84, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
15606
15685
|
var ScrollableListItem = ({
|
|
15607
15686
|
buttonText,
|
|
15608
15687
|
icon,
|
|
15609
|
-
active,
|
|
15688
|
+
active: active2,
|
|
15610
15689
|
disableShadow,
|
|
15611
15690
|
...props
|
|
15612
15691
|
}) => {
|
|
15613
|
-
return /* @__PURE__ */
|
|
15692
|
+
return /* @__PURE__ */ jsx84(
|
|
15614
15693
|
"div",
|
|
15615
15694
|
{
|
|
15616
15695
|
css: [
|
|
15617
15696
|
ScrollableListItemContainer,
|
|
15618
15697
|
disableShadow ? void 0 : ScrollableListItemShadow,
|
|
15619
|
-
|
|
15698
|
+
active2 ? ScrollableListItemActive : void 0
|
|
15620
15699
|
],
|
|
15621
15700
|
children: /* @__PURE__ */ jsxs54("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
15622
15701
|
/* @__PURE__ */ jsxs54(HorizontalRhythm, { gap: "xs", align: "center", children: [
|
|
15623
15702
|
icon,
|
|
15624
|
-
/* @__PURE__ */
|
|
15703
|
+
/* @__PURE__ */ jsx84("span", { children: buttonText })
|
|
15625
15704
|
] }),
|
|
15626
|
-
/* @__PURE__ */
|
|
15705
|
+
/* @__PURE__ */ jsx84(
|
|
15627
15706
|
Icon,
|
|
15628
15707
|
{
|
|
15629
15708
|
icon: CgCheck3,
|
|
15630
15709
|
iconColor: "currentColor",
|
|
15631
|
-
css: [ScrollableListIcon,
|
|
15710
|
+
css: [ScrollableListIcon, active2 ? ScrollableListIconVisible : void 0],
|
|
15632
15711
|
size: 24
|
|
15633
15712
|
}
|
|
15634
15713
|
)
|
|
@@ -15690,21 +15769,21 @@ function loadingDot(size) {
|
|
|
15690
15769
|
}
|
|
15691
15770
|
|
|
15692
15771
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
15693
|
-
import { jsx as
|
|
15772
|
+
import { jsx as jsx85, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
15694
15773
|
var LoadingIndicator = ({
|
|
15695
15774
|
size = "lg",
|
|
15696
15775
|
...props
|
|
15697
15776
|
}) => {
|
|
15698
15777
|
const dotStyle = loadingDot(size);
|
|
15699
15778
|
return /* @__PURE__ */ jsxs55("div", { role: "alert", css: loader, "data-testid": "loading-indicator", ...props, children: [
|
|
15700
|
-
/* @__PURE__ */
|
|
15701
|
-
/* @__PURE__ */
|
|
15702
|
-
/* @__PURE__ */
|
|
15779
|
+
/* @__PURE__ */ jsx85("span", { css: dotStyle }),
|
|
15780
|
+
/* @__PURE__ */ jsx85("span", { css: dotStyle }),
|
|
15781
|
+
/* @__PURE__ */ jsx85("span", { css: dotStyle })
|
|
15703
15782
|
] });
|
|
15704
15783
|
};
|
|
15705
15784
|
|
|
15706
15785
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
15707
|
-
import { useCallback as useCallback3, useEffect as
|
|
15786
|
+
import { useCallback as useCallback3, useEffect as useEffect10, useRef as useRef5 } from "react";
|
|
15708
15787
|
|
|
15709
15788
|
// src/components/LoadingOverlay/LoadingOverlay.styles.ts
|
|
15710
15789
|
import { css as css70 } from "@emotion/react";
|
|
@@ -15739,7 +15818,7 @@ var loadingOverlayMessage = css70`
|
|
|
15739
15818
|
`;
|
|
15740
15819
|
|
|
15741
15820
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
15742
|
-
import { jsx as
|
|
15821
|
+
import { jsx as jsx86, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
15743
15822
|
var LoadingOverlay = ({
|
|
15744
15823
|
isActive,
|
|
15745
15824
|
statusMessage,
|
|
@@ -15757,7 +15836,7 @@ var LoadingOverlay = ({
|
|
|
15757
15836
|
(_c = lottieRef.current) == null ? void 0 : _c.stop();
|
|
15758
15837
|
}
|
|
15759
15838
|
}, [isPaused]);
|
|
15760
|
-
|
|
15839
|
+
useEffect10(() => {
|
|
15761
15840
|
var _a, _b, _c, _d, _e, _f;
|
|
15762
15841
|
if (!isPaused && ((_b = (_a = lottieRef.current) == null ? void 0 : _a.animationItem) == null ? void 0 : _b.isPaused)) {
|
|
15763
15842
|
(_c = lottieRef.current) == null ? void 0 : _c.play();
|
|
@@ -15773,9 +15852,9 @@ var LoadingOverlay = ({
|
|
|
15773
15852
|
"aria-hidden": !isActive,
|
|
15774
15853
|
"aria-busy": isActive && !isPaused,
|
|
15775
15854
|
children: [
|
|
15776
|
-
/* @__PURE__ */
|
|
15777
|
-
/* @__PURE__ */
|
|
15778
|
-
/* @__PURE__ */
|
|
15855
|
+
/* @__PURE__ */ jsx86("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
15856
|
+
/* @__PURE__ */ jsx86("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ jsxs56("div", { css: loadingOverlayBody, children: [
|
|
15857
|
+
/* @__PURE__ */ jsx86(
|
|
15779
15858
|
AnimationFile,
|
|
15780
15859
|
{
|
|
15781
15860
|
lottieRef,
|
|
@@ -15790,15 +15869,15 @@ var LoadingOverlay = ({
|
|
|
15790
15869
|
}
|
|
15791
15870
|
}
|
|
15792
15871
|
),
|
|
15793
|
-
statusMessage ? /* @__PURE__ */
|
|
15794
|
-
/* @__PURE__ */
|
|
15872
|
+
statusMessage ? /* @__PURE__ */ jsx86("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
|
|
15873
|
+
/* @__PURE__ */ jsx86("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
|
|
15795
15874
|
] }) })
|
|
15796
15875
|
]
|
|
15797
15876
|
}
|
|
15798
15877
|
);
|
|
15799
15878
|
};
|
|
15800
15879
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
15801
|
-
return /* @__PURE__ */
|
|
15880
|
+
return /* @__PURE__ */ jsx86(
|
|
15802
15881
|
"svg",
|
|
15803
15882
|
{
|
|
15804
15883
|
viewBox: "0 0 38 38",
|
|
@@ -15808,9 +15887,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
15808
15887
|
stroke: "currentColor",
|
|
15809
15888
|
...props,
|
|
15810
15889
|
"data-testid": "loading-icon",
|
|
15811
|
-
children: /* @__PURE__ */
|
|
15812
|
-
/* @__PURE__ */
|
|
15813
|
-
/* @__PURE__ */
|
|
15890
|
+
children: /* @__PURE__ */ jsx86("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs56("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
15891
|
+
/* @__PURE__ */ jsx86("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
15892
|
+
/* @__PURE__ */ jsx86("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ jsx86(
|
|
15814
15893
|
"animateTransform",
|
|
15815
15894
|
{
|
|
15816
15895
|
attributeName: "transform",
|
|
@@ -15866,7 +15945,7 @@ var Popover = css71`
|
|
|
15866
15945
|
`;
|
|
15867
15946
|
|
|
15868
15947
|
// src/components/Popover/Popover.tsx
|
|
15869
|
-
import { Fragment as Fragment14, jsx as
|
|
15948
|
+
import { Fragment as Fragment14, jsx as jsx87, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
|
|
15870
15949
|
var Popover2 = ({
|
|
15871
15950
|
iconColor = "action",
|
|
15872
15951
|
icon = "info",
|
|
@@ -15881,7 +15960,7 @@ var Popover2 = ({
|
|
|
15881
15960
|
}) => {
|
|
15882
15961
|
const popover = usePopoverState({ placement });
|
|
15883
15962
|
return /* @__PURE__ */ jsxs57(Fragment14, { children: [
|
|
15884
|
-
/* @__PURE__ */
|
|
15963
|
+
/* @__PURE__ */ jsx87(
|
|
15885
15964
|
PopoverDisclosure,
|
|
15886
15965
|
{
|
|
15887
15966
|
...popover,
|
|
@@ -15889,18 +15968,19 @@ var Popover2 = ({
|
|
|
15889
15968
|
title: buttonText,
|
|
15890
15969
|
"data-testid": testId,
|
|
15891
15970
|
children: trigger ? trigger : /* @__PURE__ */ jsxs57(Fragment14, { children: [
|
|
15892
|
-
/* @__PURE__ */
|
|
15893
|
-
/* @__PURE__ */
|
|
15971
|
+
/* @__PURE__ */ jsx87(Icon, { icon, iconColor, size: iconSize }),
|
|
15972
|
+
/* @__PURE__ */ jsx87("span", { hidden: true, children: buttonText })
|
|
15894
15973
|
] })
|
|
15895
15974
|
}
|
|
15896
15975
|
),
|
|
15897
|
-
/* @__PURE__ */
|
|
15976
|
+
/* @__PURE__ */ jsx87(ReakitPopover, { css: Popover, ...otherProps, ...popover, role: "tooltip", "aria-label": ariaLabel, children })
|
|
15898
15977
|
] });
|
|
15899
15978
|
};
|
|
15900
15979
|
|
|
15901
15980
|
// src/components/MediaCard/MediaCard.styles.ts
|
|
15902
15981
|
import { css as css72 } from "@emotion/react";
|
|
15903
15982
|
var cardBase = css72`
|
|
15983
|
+
--mediacard-title-color: var(--gray-500);
|
|
15904
15984
|
display: flex;
|
|
15905
15985
|
flex-direction: column;
|
|
15906
15986
|
justify-content: flex-start;
|
|
@@ -15910,6 +15990,10 @@ var cardBase = css72`
|
|
|
15910
15990
|
min-height: unset;
|
|
15911
15991
|
outline: none;
|
|
15912
15992
|
cursor: pointer;
|
|
15993
|
+
|
|
15994
|
+
&:hover {
|
|
15995
|
+
--mediacard-title-color: var(--brand-secondary-1);
|
|
15996
|
+
}
|
|
15913
15997
|
`;
|
|
15914
15998
|
var coverWrapper = css72`
|
|
15915
15999
|
position: relative;
|
|
@@ -15929,13 +16013,14 @@ var contentWrapper = css72`
|
|
|
15929
16013
|
`;
|
|
15930
16014
|
var title = css72`
|
|
15931
16015
|
font-size: var(--fs-sm);
|
|
15932
|
-
color: var(--
|
|
16016
|
+
color: var(--mediacard-title-color);
|
|
15933
16017
|
white-space: nowrap;
|
|
15934
16018
|
overflow: hidden;
|
|
15935
16019
|
text-overflow: ellipsis;
|
|
15936
16020
|
outline: none;
|
|
15937
16021
|
border: 0;
|
|
15938
16022
|
background-color: transparent;
|
|
16023
|
+
transition: color var(--duration-fast) var(--timing-ease-out);
|
|
15939
16024
|
|
|
15940
16025
|
&:focus-visible {
|
|
15941
16026
|
outline: 2px solid var(--primary-action-default);
|
|
@@ -15969,7 +16054,7 @@ var menuButton = css72`
|
|
|
15969
16054
|
`;
|
|
15970
16055
|
|
|
15971
16056
|
// src/components/MediaCard/MediaCard.tsx
|
|
15972
|
-
import { jsx as
|
|
16057
|
+
import { jsx as jsx88, jsxs as jsxs58 } from "@emotion/react/jsx-runtime";
|
|
15973
16058
|
var MediaCard = ({
|
|
15974
16059
|
title: title2,
|
|
15975
16060
|
subtitle: subtitle2,
|
|
@@ -15985,12 +16070,12 @@ var MediaCard = ({
|
|
|
15985
16070
|
}, []);
|
|
15986
16071
|
const hasMenuItems = Array.isArray(menuItems) ? menuItems.length > 0 : Boolean(menuItems);
|
|
15987
16072
|
return /* @__PURE__ */ jsxs58(Card, { css: cardBase, ...cardProps, onClick, children: [
|
|
15988
|
-
/* @__PURE__ */
|
|
15989
|
-
/* @__PURE__ */
|
|
16073
|
+
/* @__PURE__ */ jsx88("button", { tabIndex: -1, css: coverWrapper, children: cover }),
|
|
16074
|
+
/* @__PURE__ */ jsx88("div", { css: contentWrapper, children: /* @__PURE__ */ jsxs58(HorizontalRhythm, { gap: "sm", justify: "space-between", align: "center", css: { width: "100%" }, children: [
|
|
15990
16075
|
/* @__PURE__ */ jsxs58(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1, minWidth: 0 }, children: [
|
|
15991
16076
|
/* @__PURE__ */ jsxs58(HorizontalRhythm, { gap: "xs", align: "center", css: { maxWidth: "100%" }, children: [
|
|
15992
|
-
/* @__PURE__ */
|
|
15993
|
-
!infoPopover ? null : /* @__PURE__ */
|
|
16077
|
+
/* @__PURE__ */ jsx88("button", { css: title, "data-testid": "card-title", children: title2 }),
|
|
16078
|
+
!infoPopover ? null : /* @__PURE__ */ jsx88("div", { css: { display: "flex", cursor: "default" }, onClick: onStopPropogation, children: /* @__PURE__ */ jsx88(
|
|
15994
16079
|
Popover2,
|
|
15995
16080
|
{
|
|
15996
16081
|
baseId: `info-of-${title2}`,
|
|
@@ -15999,24 +16084,24 @@ var MediaCard = ({
|
|
|
15999
16084
|
iconColor: "default",
|
|
16000
16085
|
tabIndex: 0,
|
|
16001
16086
|
css: { display: "block" },
|
|
16002
|
-
children: /* @__PURE__ */
|
|
16087
|
+
children: /* @__PURE__ */ jsx88("div", { children: infoPopover })
|
|
16003
16088
|
}
|
|
16004
16089
|
) })
|
|
16005
16090
|
] }),
|
|
16006
|
-
subtitle2 ? /* @__PURE__ */
|
|
16091
|
+
subtitle2 ? /* @__PURE__ */ jsx88("button", { tabIndex: -1, css: subtitle, children: subtitle2 }) : null
|
|
16007
16092
|
] }),
|
|
16008
|
-
sideSection2 ? /* @__PURE__ */
|
|
16009
|
-
hasMenuItems ? /* @__PURE__ */
|
|
16093
|
+
sideSection2 ? /* @__PURE__ */ jsx88("div", { css: sideSection, onClick: onStopPropogation, children: sideSection2 }) : null,
|
|
16094
|
+
hasMenuItems ? /* @__PURE__ */ jsx88(
|
|
16010
16095
|
VerticalRhythm,
|
|
16011
16096
|
{
|
|
16012
16097
|
css: menuSection,
|
|
16013
16098
|
align: "center",
|
|
16014
16099
|
justify: "center",
|
|
16015
16100
|
onClick: onStopPropogation,
|
|
16016
|
-
children: /* @__PURE__ */
|
|
16101
|
+
children: /* @__PURE__ */ jsx88(
|
|
16017
16102
|
Menu,
|
|
16018
16103
|
{
|
|
16019
|
-
menuTrigger: /* @__PURE__ */
|
|
16104
|
+
menuTrigger: /* @__PURE__ */ jsx88("button", { type: "button", "aria-label": "More options", css: menuButton, children: /* @__PURE__ */ jsx88(Icon, { icon: "more-alt", iconColor: "gray", size: 16 }) }),
|
|
16020
16105
|
menuLabel: `Menu of ${title2}`,
|
|
16021
16106
|
children: menuItems
|
|
16022
16107
|
}
|
|
@@ -16077,6 +16162,7 @@ var modalCloseButtonStyles = css73`
|
|
|
16077
16162
|
margin-left: auto;
|
|
16078
16163
|
`;
|
|
16079
16164
|
var modalContentStyles = css73`
|
|
16165
|
+
position: relative;
|
|
16080
16166
|
flex: 1;
|
|
16081
16167
|
background-color: white;
|
|
16082
16168
|
padding: var(--spacing-md);
|
|
@@ -16085,7 +16171,7 @@ var modalContentStyles = css73`
|
|
|
16085
16171
|
`;
|
|
16086
16172
|
|
|
16087
16173
|
// src/components/Modal/Modal.tsx
|
|
16088
|
-
import { jsx as
|
|
16174
|
+
import { jsx as jsx89, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
|
|
16089
16175
|
var defaultModalWidth = "75rem";
|
|
16090
16176
|
var defaultModalHeight = "51rem";
|
|
16091
16177
|
var Modal = React19.forwardRef(
|
|
@@ -16105,31 +16191,111 @@ var Modal = React19.forwardRef(
|
|
|
16105
16191
|
shortcut: "escape"
|
|
16106
16192
|
});
|
|
16107
16193
|
return /* @__PURE__ */ jsxs59("div", { css: [modalWrapperStyles, wrapperClassName], children: [
|
|
16108
|
-
/* @__PURE__ */
|
|
16109
|
-
/* @__PURE__ */ jsxs59(
|
|
16110
|
-
|
|
16111
|
-
|
|
16112
|
-
|
|
16113
|
-
|
|
16114
|
-
|
|
16115
|
-
|
|
16116
|
-
|
|
16117
|
-
|
|
16118
|
-
|
|
16119
|
-
|
|
16120
|
-
|
|
16121
|
-
|
|
16122
|
-
|
|
16123
|
-
|
|
16124
|
-
|
|
16125
|
-
|
|
16126
|
-
|
|
16127
|
-
|
|
16194
|
+
/* @__PURE__ */ jsx89("div", { onClick: onRequestClose, css: modalBackdropStyles }),
|
|
16195
|
+
/* @__PURE__ */ jsxs59(
|
|
16196
|
+
"dialog",
|
|
16197
|
+
{
|
|
16198
|
+
ref,
|
|
16199
|
+
css: modalStyles,
|
|
16200
|
+
style: { width, height },
|
|
16201
|
+
"data-testid": "side-dialog",
|
|
16202
|
+
...modalProps,
|
|
16203
|
+
children: [
|
|
16204
|
+
/* @__PURE__ */ jsxs59("div", { css: modalHeaderStyles, children: [
|
|
16205
|
+
/* @__PURE__ */ jsx89("div", { children: header }),
|
|
16206
|
+
/* @__PURE__ */ jsx89(
|
|
16207
|
+
Button,
|
|
16208
|
+
{
|
|
16209
|
+
type: "button",
|
|
16210
|
+
onClick: onRequestClose,
|
|
16211
|
+
css: modalCloseButtonStyles,
|
|
16212
|
+
title: "Close dialog",
|
|
16213
|
+
buttonType: "ghost",
|
|
16214
|
+
"data-testid": "close-dialog",
|
|
16215
|
+
children: /* @__PURE__ */ jsx89(Icon, { icon: CgClose5, iconColor: "gray", size: 24 })
|
|
16216
|
+
}
|
|
16217
|
+
)
|
|
16218
|
+
] }),
|
|
16219
|
+
/* @__PURE__ */ jsx89("div", { css: [modalContentStyles, !withoutContentPadding ? null : { padding: 0 }], children }),
|
|
16220
|
+
buttonGroup ? /* @__PURE__ */ jsx89(HorizontalRhythm, { children: buttonGroup }) : null
|
|
16221
|
+
]
|
|
16222
|
+
}
|
|
16223
|
+
)
|
|
16128
16224
|
] });
|
|
16129
16225
|
}
|
|
16130
16226
|
);
|
|
16131
16227
|
Modal.displayName = "Modal";
|
|
16132
16228
|
|
|
16229
|
+
// src/components/Pagination/Pagination.tsx
|
|
16230
|
+
import Paginate from "react-paginate";
|
|
16231
|
+
|
|
16232
|
+
// src/components/Pagination/Pagniation.styles.ts
|
|
16233
|
+
import { css as css74 } from "@emotion/css";
|
|
16234
|
+
var container = css74`
|
|
16235
|
+
align-items: center;
|
|
16236
|
+
display: flex;
|
|
16237
|
+
`;
|
|
16238
|
+
var disabled = css74`
|
|
16239
|
+
opacity: var(--opacity-50);
|
|
16240
|
+
`;
|
|
16241
|
+
var disabledLink = css74`
|
|
16242
|
+
cursor: pointer-default;
|
|
16243
|
+
`;
|
|
16244
|
+
var pageLink = css74`
|
|
16245
|
+
display: block;
|
|
16246
|
+
padding: var(--spacing-sm) var(--spacing-base);
|
|
16247
|
+
`;
|
|
16248
|
+
var prevNextControls = css74`
|
|
16249
|
+
padding: var(--spacing-sm) var(--spacing-base);
|
|
16250
|
+
`;
|
|
16251
|
+
var active = css74`
|
|
16252
|
+
border-radius: var(--rounded-base);
|
|
16253
|
+
background: var(--gray-200);
|
|
16254
|
+
`;
|
|
16255
|
+
var page = css74`
|
|
16256
|
+
margin-left: var(--spacing-xs);
|
|
16257
|
+
margin-right: var(--spacing-xs);
|
|
16258
|
+
`;
|
|
16259
|
+
|
|
16260
|
+
// src/components/Pagination/Pagination.tsx
|
|
16261
|
+
import { jsx as jsx90 } from "@emotion/react/jsx-runtime";
|
|
16262
|
+
function Pagination({
|
|
16263
|
+
limit,
|
|
16264
|
+
offset,
|
|
16265
|
+
total,
|
|
16266
|
+
onPageChange
|
|
16267
|
+
}) {
|
|
16268
|
+
if (limit < 1) {
|
|
16269
|
+
return null;
|
|
16270
|
+
}
|
|
16271
|
+
const pageCount = Math.ceil(total / limit);
|
|
16272
|
+
const currentPage = Math.ceil(offset / limit);
|
|
16273
|
+
if (pageCount <= 1) {
|
|
16274
|
+
return null;
|
|
16275
|
+
}
|
|
16276
|
+
return /* @__PURE__ */ jsx90(
|
|
16277
|
+
Paginate,
|
|
16278
|
+
{
|
|
16279
|
+
forcePage: currentPage,
|
|
16280
|
+
previousLabel: /* @__PURE__ */ jsx90("div", { className: prevNextControls, children: "<" }),
|
|
16281
|
+
nextLabel: /* @__PURE__ */ jsx90("div", { className: prevNextControls, children: ">" }),
|
|
16282
|
+
breakLabel: "...",
|
|
16283
|
+
pageCount,
|
|
16284
|
+
marginPagesDisplayed: 2,
|
|
16285
|
+
pageRangeDisplayed: 5,
|
|
16286
|
+
onPageChange: ({ selected }) => {
|
|
16287
|
+
onPageChange(limit, selected * limit);
|
|
16288
|
+
},
|
|
16289
|
+
containerClassName: container,
|
|
16290
|
+
disabledClassName: disabled,
|
|
16291
|
+
disabledLinkClassName: disabledLink,
|
|
16292
|
+
pageLinkClassName: pageLink,
|
|
16293
|
+
activeClassName: active,
|
|
16294
|
+
pageClassName: page
|
|
16295
|
+
}
|
|
16296
|
+
);
|
|
16297
|
+
}
|
|
16298
|
+
|
|
16133
16299
|
// src/components/ParameterInputs/hooks/ParameterShellContext.tsx
|
|
16134
16300
|
import { createContext as createContext5, useContext as useContext6 } from "react";
|
|
16135
16301
|
var ParameterShellContext = createContext5({
|
|
@@ -16152,8 +16318,8 @@ var useParameterShell = () => {
|
|
|
16152
16318
|
};
|
|
16153
16319
|
|
|
16154
16320
|
// src/components/ParameterInputs/styles/LabelLeadingIcon.styles.ts
|
|
16155
|
-
import { css as
|
|
16156
|
-
var inputIconBtn =
|
|
16321
|
+
import { css as css75 } from "@emotion/react";
|
|
16322
|
+
var inputIconBtn = css75`
|
|
16157
16323
|
align-items: center;
|
|
16158
16324
|
border: none;
|
|
16159
16325
|
border-radius: var(--rounded-base);
|
|
@@ -16179,7 +16345,7 @@ var inputIconBtn = css74`
|
|
|
16179
16345
|
`;
|
|
16180
16346
|
|
|
16181
16347
|
// src/components/ParameterInputs/LabelLeadingIcon.tsx
|
|
16182
|
-
import { jsx as
|
|
16348
|
+
import { jsx as jsx91, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
|
|
16183
16349
|
var LabelLeadingIcon = ({
|
|
16184
16350
|
icon,
|
|
16185
16351
|
iconColor,
|
|
@@ -16191,7 +16357,7 @@ var LabelLeadingIcon = ({
|
|
|
16191
16357
|
...props
|
|
16192
16358
|
}) => {
|
|
16193
16359
|
const titleFr = title2 != null ? title2 : isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
16194
|
-
return /* @__PURE__ */
|
|
16360
|
+
return /* @__PURE__ */ jsx91(Tooltip, { title: titleFr, children: /* @__PURE__ */ jsxs60(
|
|
16195
16361
|
"button",
|
|
16196
16362
|
{
|
|
16197
16363
|
css: inputIconBtn,
|
|
@@ -16200,7 +16366,7 @@ var LabelLeadingIcon = ({
|
|
|
16200
16366
|
"aria-disabled": isLocked,
|
|
16201
16367
|
...props,
|
|
16202
16368
|
children: [
|
|
16203
|
-
/* @__PURE__ */
|
|
16369
|
+
/* @__PURE__ */ jsx91(
|
|
16204
16370
|
Icon,
|
|
16205
16371
|
{
|
|
16206
16372
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -16216,8 +16382,8 @@ var LabelLeadingIcon = ({
|
|
|
16216
16382
|
var ConnectToDataElementButton = LabelLeadingIcon;
|
|
16217
16383
|
|
|
16218
16384
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
16219
|
-
import { css as
|
|
16220
|
-
var inputContainer2 =
|
|
16385
|
+
import { css as css76 } from "@emotion/react";
|
|
16386
|
+
var inputContainer2 = css76`
|
|
16221
16387
|
position: relative;
|
|
16222
16388
|
scroll-margin: var(--spacing-2xl);
|
|
16223
16389
|
|
|
@@ -16230,14 +16396,14 @@ var inputContainer2 = css75`
|
|
|
16230
16396
|
}
|
|
16231
16397
|
}
|
|
16232
16398
|
`;
|
|
16233
|
-
var labelText2 =
|
|
16399
|
+
var labelText2 = css76`
|
|
16234
16400
|
align-items: center;
|
|
16235
16401
|
display: flex;
|
|
16236
16402
|
gap: var(--spacing-xs);
|
|
16237
16403
|
font-weight: var(--fw-regular);
|
|
16238
16404
|
margin: 0 0 var(--spacing-xs);
|
|
16239
16405
|
`;
|
|
16240
|
-
var input2 =
|
|
16406
|
+
var input2 = css76`
|
|
16241
16407
|
display: block;
|
|
16242
16408
|
appearance: none;
|
|
16243
16409
|
box-sizing: border-box;
|
|
@@ -16281,18 +16447,18 @@ var input2 = css75`
|
|
|
16281
16447
|
color: var(--gray-400);
|
|
16282
16448
|
}
|
|
16283
16449
|
`;
|
|
16284
|
-
var selectInput =
|
|
16450
|
+
var selectInput = css76`
|
|
16285
16451
|
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");
|
|
16286
16452
|
background-position: right var(--spacing-sm) center;
|
|
16287
16453
|
background-repeat: no-repeat;
|
|
16288
16454
|
background-size: 1rem;
|
|
16289
16455
|
padding-right: var(--spacing-xl);
|
|
16290
16456
|
`;
|
|
16291
|
-
var inputWrapper =
|
|
16457
|
+
var inputWrapper = css76`
|
|
16292
16458
|
display: flex; // used to correct overflow with chrome textarea
|
|
16293
16459
|
position: relative;
|
|
16294
16460
|
`;
|
|
16295
|
-
var inputIcon2 =
|
|
16461
|
+
var inputIcon2 = css76`
|
|
16296
16462
|
align-items: center;
|
|
16297
16463
|
background: var(--white);
|
|
16298
16464
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -16308,7 +16474,7 @@ var inputIcon2 = css75`
|
|
|
16308
16474
|
width: var(--spacing-lg);
|
|
16309
16475
|
z-index: var(--z-10);
|
|
16310
16476
|
`;
|
|
16311
|
-
var inputToggleLabel2 =
|
|
16477
|
+
var inputToggleLabel2 = css76`
|
|
16312
16478
|
align-items: center;
|
|
16313
16479
|
background: var(--white);
|
|
16314
16480
|
cursor: pointer;
|
|
@@ -16319,7 +16485,7 @@ var inputToggleLabel2 = css75`
|
|
|
16319
16485
|
min-height: var(--spacing-md);
|
|
16320
16486
|
position: relative;
|
|
16321
16487
|
`;
|
|
16322
|
-
var toggleInput2 =
|
|
16488
|
+
var toggleInput2 = css76`
|
|
16323
16489
|
appearance: none;
|
|
16324
16490
|
border: 1px solid var(--gray-300);
|
|
16325
16491
|
background: var(--white);
|
|
@@ -16358,7 +16524,7 @@ var toggleInput2 = css75`
|
|
|
16358
16524
|
border-color: var(--gray-300);
|
|
16359
16525
|
}
|
|
16360
16526
|
`;
|
|
16361
|
-
var inlineLabel2 =
|
|
16527
|
+
var inlineLabel2 = css76`
|
|
16362
16528
|
padding-left: var(--spacing-lg);
|
|
16363
16529
|
font-size: var(--fs-sm);
|
|
16364
16530
|
font-weight: var(--fw-regular);
|
|
@@ -16374,7 +16540,7 @@ var inlineLabel2 = css75`
|
|
|
16374
16540
|
}
|
|
16375
16541
|
}
|
|
16376
16542
|
`;
|
|
16377
|
-
var inputMenu =
|
|
16543
|
+
var inputMenu = css76`
|
|
16378
16544
|
background: none;
|
|
16379
16545
|
border: none;
|
|
16380
16546
|
padding: var(--spacing-2xs);
|
|
@@ -16390,11 +16556,11 @@ var inputMenu = css75`
|
|
|
16390
16556
|
background-color: var(--gray-200);
|
|
16391
16557
|
}
|
|
16392
16558
|
`;
|
|
16393
|
-
var textarea2 =
|
|
16559
|
+
var textarea2 = css76`
|
|
16394
16560
|
resize: vertical;
|
|
16395
16561
|
min-height: 2rem;
|
|
16396
16562
|
`;
|
|
16397
|
-
var dataConnectButton =
|
|
16563
|
+
var dataConnectButton = css76`
|
|
16398
16564
|
align-items: center;
|
|
16399
16565
|
appearance: none;
|
|
16400
16566
|
box-sizing: border-box;
|
|
@@ -16429,7 +16595,7 @@ var dataConnectButton = css75`
|
|
|
16429
16595
|
pointer-events: none;
|
|
16430
16596
|
}
|
|
16431
16597
|
`;
|
|
16432
|
-
var linkParameterBtn =
|
|
16598
|
+
var linkParameterBtn = css76`
|
|
16433
16599
|
border-radius: var(--rounded-base);
|
|
16434
16600
|
background: var(--white);
|
|
16435
16601
|
border: none;
|
|
@@ -16438,7 +16604,7 @@ var linkParameterBtn = css75`
|
|
|
16438
16604
|
font-size: var(--fs-sm);
|
|
16439
16605
|
line-height: 1;
|
|
16440
16606
|
`;
|
|
16441
|
-
var linkParameterControls =
|
|
16607
|
+
var linkParameterControls = css76`
|
|
16442
16608
|
position: absolute;
|
|
16443
16609
|
inset: 0 0 0 auto;
|
|
16444
16610
|
padding: 0 var(--spacing-base);
|
|
@@ -16447,7 +16613,7 @@ var linkParameterControls = css75`
|
|
|
16447
16613
|
justify-content: center;
|
|
16448
16614
|
gap: var(--spacing-base);
|
|
16449
16615
|
`;
|
|
16450
|
-
var linkParameterInput = (withExternalLinkIcon) =>
|
|
16616
|
+
var linkParameterInput = (withExternalLinkIcon) => css76`
|
|
16451
16617
|
padding-right: calc(
|
|
16452
16618
|
${withExternalLinkIcon ? "calc(var(--spacing-lg) * 2 + var(--spacing-xs))" : "var(--spacing-xl)"} +
|
|
16453
16619
|
var(--spacing-base)
|
|
@@ -16460,7 +16626,7 @@ var linkParameterInput = (withExternalLinkIcon) => css75`
|
|
|
16460
16626
|
}
|
|
16461
16627
|
}
|
|
16462
16628
|
`;
|
|
16463
|
-
var linkParameterIcon =
|
|
16629
|
+
var linkParameterIcon = css76`
|
|
16464
16630
|
align-items: center;
|
|
16465
16631
|
color: var(--brand-secondary-3);
|
|
16466
16632
|
display: flex;
|
|
@@ -16475,14 +16641,14 @@ var linkParameterIcon = css75`
|
|
|
16475
16641
|
`;
|
|
16476
16642
|
|
|
16477
16643
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
16478
|
-
import { jsx as
|
|
16644
|
+
import { jsx as jsx92, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
|
|
16479
16645
|
function ParameterDataResource({
|
|
16480
16646
|
label,
|
|
16481
16647
|
labelLeadingIcon,
|
|
16482
16648
|
id,
|
|
16483
16649
|
onConnectDatasource,
|
|
16484
16650
|
caption,
|
|
16485
|
-
disabled,
|
|
16651
|
+
disabled: disabled2,
|
|
16486
16652
|
children
|
|
16487
16653
|
}) {
|
|
16488
16654
|
return /* @__PURE__ */ jsxs61("div", { "data-testid": "parameter-data-connect-button", children: [
|
|
@@ -16496,33 +16662,33 @@ function ParameterDataResource({
|
|
|
16496
16662
|
type: "button",
|
|
16497
16663
|
css: dataConnectButton,
|
|
16498
16664
|
"aria-controls": id,
|
|
16499
|
-
disabled,
|
|
16665
|
+
disabled: disabled2,
|
|
16500
16666
|
onClick: onConnectDatasource,
|
|
16501
16667
|
children: [
|
|
16502
|
-
/* @__PURE__ */
|
|
16668
|
+
/* @__PURE__ */ jsx92("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx92(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
16503
16669
|
children
|
|
16504
16670
|
]
|
|
16505
16671
|
}
|
|
16506
16672
|
),
|
|
16507
|
-
caption ? /* @__PURE__ */
|
|
16673
|
+
caption ? /* @__PURE__ */ jsx92(Caption, { children: caption }) : null
|
|
16508
16674
|
] });
|
|
16509
16675
|
}
|
|
16510
16676
|
|
|
16511
16677
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
16512
|
-
import { css as
|
|
16513
|
-
var ParameterDrawerHeaderContainer =
|
|
16678
|
+
import { css as css77 } from "@emotion/react";
|
|
16679
|
+
var ParameterDrawerHeaderContainer = css77`
|
|
16514
16680
|
align-items: center;
|
|
16515
16681
|
display: flex;
|
|
16516
16682
|
gap: var(--spacing-base);
|
|
16517
16683
|
justify-content: space-between;
|
|
16518
16684
|
margin-bottom: var(--spacing-sm);
|
|
16519
16685
|
`;
|
|
16520
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
16686
|
+
var ParameterDrawerHeaderTitleGroup = css77`
|
|
16521
16687
|
align-items: center;
|
|
16522
16688
|
display: flex;
|
|
16523
16689
|
gap: var(--spacing-sm);
|
|
16524
16690
|
`;
|
|
16525
|
-
var ParameterDrawerHeaderTitle =
|
|
16691
|
+
var ParameterDrawerHeaderTitle = css77`
|
|
16526
16692
|
text-overflow: ellipsis;
|
|
16527
16693
|
white-space: nowrap;
|
|
16528
16694
|
overflow: hidden;
|
|
@@ -16530,12 +16696,12 @@ var ParameterDrawerHeaderTitle = css76`
|
|
|
16530
16696
|
`;
|
|
16531
16697
|
|
|
16532
16698
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
16533
|
-
import { jsx as
|
|
16699
|
+
import { jsx as jsx93, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
|
|
16534
16700
|
var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
|
|
16535
16701
|
return /* @__PURE__ */ jsxs62("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
16536
16702
|
/* @__PURE__ */ jsxs62("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
16537
16703
|
iconBeforeTitle,
|
|
16538
|
-
/* @__PURE__ */
|
|
16704
|
+
/* @__PURE__ */ jsx93(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title: title2, children: title2 })
|
|
16539
16705
|
] }),
|
|
16540
16706
|
children
|
|
16541
16707
|
] });
|
|
@@ -16545,8 +16711,8 @@ var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
|
|
|
16545
16711
|
import { forwardRef as forwardRef10 } from "react";
|
|
16546
16712
|
|
|
16547
16713
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
16548
|
-
import { css as
|
|
16549
|
-
var fieldsetStyles =
|
|
16714
|
+
import { css as css78 } from "@emotion/react";
|
|
16715
|
+
var fieldsetStyles = css78`
|
|
16550
16716
|
&:disabled,
|
|
16551
16717
|
[readonly] {
|
|
16552
16718
|
pointer-events: none;
|
|
@@ -16557,7 +16723,7 @@ var fieldsetStyles = css77`
|
|
|
16557
16723
|
}
|
|
16558
16724
|
}
|
|
16559
16725
|
`;
|
|
16560
|
-
var fieldsetLegend2 =
|
|
16726
|
+
var fieldsetLegend2 = css78`
|
|
16561
16727
|
display: block;
|
|
16562
16728
|
font-weight: var(--fw-medium);
|
|
16563
16729
|
margin-bottom: var(--spacing-sm);
|
|
@@ -16565,11 +16731,11 @@ var fieldsetLegend2 = css77`
|
|
|
16565
16731
|
`;
|
|
16566
16732
|
|
|
16567
16733
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
16568
|
-
import { jsx as
|
|
16734
|
+
import { jsx as jsx94, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
|
|
16569
16735
|
var ParameterGroup = forwardRef10(
|
|
16570
16736
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
16571
16737
|
return /* @__PURE__ */ jsxs63("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
16572
|
-
/* @__PURE__ */
|
|
16738
|
+
/* @__PURE__ */ jsx94("legend", { css: fieldsetLegend2, children: legend }),
|
|
16573
16739
|
children
|
|
16574
16740
|
] });
|
|
16575
16741
|
}
|
|
@@ -16583,15 +16749,15 @@ import { useState as useState10 } from "react";
|
|
|
16583
16749
|
import { createPortal as createPortal2 } from "react-dom";
|
|
16584
16750
|
|
|
16585
16751
|
// src/components/ParameterInputs/styles/ParameterImage.styles.ts
|
|
16586
|
-
import { css as
|
|
16587
|
-
var previewWrapper =
|
|
16752
|
+
import { css as css79 } from "@emotion/react";
|
|
16753
|
+
var previewWrapper = css79`
|
|
16588
16754
|
margin-top: var(--spacing-xs);
|
|
16589
16755
|
background: var(--gray-50);
|
|
16590
16756
|
padding: var(--spacing-sm);
|
|
16591
16757
|
border: solid 1px var(--gray-300);
|
|
16592
16758
|
border-radius: var(--rounded-sm);
|
|
16593
16759
|
`;
|
|
16594
|
-
var previewLink =
|
|
16760
|
+
var previewLink = css79`
|
|
16595
16761
|
display: block;
|
|
16596
16762
|
width: 100%;
|
|
16597
16763
|
|
|
@@ -16599,7 +16765,7 @@ var previewLink = css78`
|
|
|
16599
16765
|
max-height: 9rem;
|
|
16600
16766
|
}
|
|
16601
16767
|
`;
|
|
16602
|
-
var previewModalWrapper =
|
|
16768
|
+
var previewModalWrapper = css79`
|
|
16603
16769
|
background: var(--gray-50);
|
|
16604
16770
|
display: flex;
|
|
16605
16771
|
height: 100%;
|
|
@@ -16608,7 +16774,7 @@ var previewModalWrapper = css78`
|
|
|
16608
16774
|
border: solid 1px var(--gray-300);
|
|
16609
16775
|
border-radius: var(--rounded-sm);
|
|
16610
16776
|
`;
|
|
16611
|
-
var previewModalImage =
|
|
16777
|
+
var previewModalImage = css79`
|
|
16612
16778
|
display: flex;
|
|
16613
16779
|
height: 100%;
|
|
16614
16780
|
width: 100%;
|
|
@@ -16620,33 +16786,33 @@ var previewModalImage = css78`
|
|
|
16620
16786
|
`;
|
|
16621
16787
|
|
|
16622
16788
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
16623
|
-
import { Fragment as Fragment15, jsx as
|
|
16789
|
+
import { Fragment as Fragment15, jsx as jsx95, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
|
|
16624
16790
|
function ParameterImagePreview({ imageSrc }) {
|
|
16625
16791
|
const [showModal, setShowModal] = useState10(false);
|
|
16626
16792
|
return imageSrc ? /* @__PURE__ */ jsxs64("div", { css: previewWrapper, children: [
|
|
16627
|
-
/* @__PURE__ */
|
|
16628
|
-
/* @__PURE__ */
|
|
16793
|
+
/* @__PURE__ */ jsx95(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
|
|
16794
|
+
/* @__PURE__ */ jsx95(
|
|
16629
16795
|
"button",
|
|
16630
16796
|
{
|
|
16631
16797
|
css: previewLink,
|
|
16632
16798
|
onClick: () => {
|
|
16633
16799
|
setShowModal(true);
|
|
16634
16800
|
},
|
|
16635
|
-
children: /* @__PURE__ */
|
|
16801
|
+
children: /* @__PURE__ */ jsx95(Image, { src: imageSrc, "data-testid": "parameter-image-preview" })
|
|
16636
16802
|
}
|
|
16637
16803
|
)
|
|
16638
16804
|
] }) : null;
|
|
16639
16805
|
}
|
|
16640
16806
|
var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
16641
|
-
return open ? /* @__PURE__ */
|
|
16642
|
-
/* @__PURE__ */
|
|
16807
|
+
return open ? /* @__PURE__ */ jsx95(Fragment15, { children: createPortal2(
|
|
16808
|
+
/* @__PURE__ */ jsx95(
|
|
16643
16809
|
Modal,
|
|
16644
16810
|
{
|
|
16645
16811
|
header: "Image Preview",
|
|
16646
16812
|
onRequestClose,
|
|
16647
16813
|
withoutContentPadding: true,
|
|
16648
|
-
buttonGroup: /* @__PURE__ */
|
|
16649
|
-
children: /* @__PURE__ */
|
|
16814
|
+
buttonGroup: /* @__PURE__ */ jsx95(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
|
|
16815
|
+
children: /* @__PURE__ */ jsx95("div", { css: previewModalWrapper, children: /* @__PURE__ */ jsx95(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
|
|
16650
16816
|
}
|
|
16651
16817
|
),
|
|
16652
16818
|
document.body
|
|
@@ -16654,25 +16820,25 @@ var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
|
16654
16820
|
};
|
|
16655
16821
|
|
|
16656
16822
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
16657
|
-
import { css as
|
|
16823
|
+
import { css as css81 } from "@emotion/react";
|
|
16658
16824
|
import { useState as useState11 } from "react";
|
|
16659
16825
|
|
|
16660
16826
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
16661
|
-
import { jsx as
|
|
16827
|
+
import { jsx as jsx96 } from "@emotion/react/jsx-runtime";
|
|
16662
16828
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
16663
|
-
return !asSpan ? /* @__PURE__ */
|
|
16829
|
+
return !asSpan ? /* @__PURE__ */ jsx96("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx96("span", { "aria-labelledby": id, css: labelText2, children });
|
|
16664
16830
|
};
|
|
16665
16831
|
|
|
16666
16832
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
16667
16833
|
import { forwardRef as forwardRef11 } from "react";
|
|
16668
|
-
import { jsx as
|
|
16834
|
+
import { jsx as jsx97 } from "@emotion/react/jsx-runtime";
|
|
16669
16835
|
var ParameterMenuButton = forwardRef11(
|
|
16670
16836
|
({ label, children }, ref) => {
|
|
16671
|
-
return /* @__PURE__ */
|
|
16837
|
+
return /* @__PURE__ */ jsx97(
|
|
16672
16838
|
Menu,
|
|
16673
16839
|
{
|
|
16674
16840
|
menuLabel: `${label} menu`,
|
|
16675
|
-
menuTrigger: /* @__PURE__ */
|
|
16841
|
+
menuTrigger: /* @__PURE__ */ jsx97(
|
|
16676
16842
|
"button",
|
|
16677
16843
|
{
|
|
16678
16844
|
className: "parameter-menu",
|
|
@@ -16680,7 +16846,7 @@ var ParameterMenuButton = forwardRef11(
|
|
|
16680
16846
|
type: "button",
|
|
16681
16847
|
"aria-label": `${label} options`,
|
|
16682
16848
|
ref,
|
|
16683
|
-
children: /* @__PURE__ */
|
|
16849
|
+
children: /* @__PURE__ */ jsx97(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
16684
16850
|
}
|
|
16685
16851
|
),
|
|
16686
16852
|
children
|
|
@@ -16690,8 +16856,8 @@ var ParameterMenuButton = forwardRef11(
|
|
|
16690
16856
|
);
|
|
16691
16857
|
|
|
16692
16858
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
16693
|
-
import { css as
|
|
16694
|
-
var emptyParameterShell =
|
|
16859
|
+
import { css as css80 } from "@emotion/react";
|
|
16860
|
+
var emptyParameterShell = css80`
|
|
16695
16861
|
border-radius: var(--rounded-sm);
|
|
16696
16862
|
background: var(--white);
|
|
16697
16863
|
flex-grow: 1;
|
|
@@ -16699,7 +16865,7 @@ var emptyParameterShell = css79`
|
|
|
16699
16865
|
position: relative;
|
|
16700
16866
|
max-width: 100%;
|
|
16701
16867
|
`;
|
|
16702
|
-
var emptyParameterShellText =
|
|
16868
|
+
var emptyParameterShellText = css80`
|
|
16703
16869
|
background: var(--brand-secondary-6);
|
|
16704
16870
|
border-radius: var(--rounded-sm);
|
|
16705
16871
|
padding: var(--spacing-sm);
|
|
@@ -16707,7 +16873,7 @@ var emptyParameterShellText = css79`
|
|
|
16707
16873
|
font-size: var(--fs-sm);
|
|
16708
16874
|
margin: 0;
|
|
16709
16875
|
`;
|
|
16710
|
-
var overrideMarker =
|
|
16876
|
+
var overrideMarker = css80`
|
|
16711
16877
|
border-radius: var(--rounded-sm);
|
|
16712
16878
|
border: 10px solid var(--gray-300);
|
|
16713
16879
|
border-left-color: transparent;
|
|
@@ -16718,7 +16884,7 @@ var overrideMarker = css79`
|
|
|
16718
16884
|
`;
|
|
16719
16885
|
|
|
16720
16886
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
16721
|
-
import { jsx as
|
|
16887
|
+
import { jsx as jsx98, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
|
|
16722
16888
|
var extractParameterProps = (props) => {
|
|
16723
16889
|
const {
|
|
16724
16890
|
id,
|
|
@@ -16792,23 +16958,23 @@ var ParameterShell = ({
|
|
|
16792
16958
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
16793
16959
|
] }),
|
|
16794
16960
|
/* @__PURE__ */ jsxs65("div", { css: inputWrapper, children: [
|
|
16795
|
-
actionItems ? /* @__PURE__ */
|
|
16961
|
+
actionItems ? /* @__PURE__ */ jsx98(
|
|
16796
16962
|
"div",
|
|
16797
16963
|
{
|
|
16798
16964
|
css: [
|
|
16799
16965
|
inputMenu,
|
|
16800
|
-
|
|
16966
|
+
css81`
|
|
16801
16967
|
opacity: var(--opacity-100);
|
|
16802
16968
|
`,
|
|
16803
|
-
menuItems ?
|
|
16969
|
+
menuItems ? css81`
|
|
16804
16970
|
right: var(--spacing-md);
|
|
16805
16971
|
` : void 0
|
|
16806
16972
|
],
|
|
16807
16973
|
children: actionItems
|
|
16808
16974
|
}
|
|
16809
16975
|
) : null,
|
|
16810
|
-
menuItems ? /* @__PURE__ */
|
|
16811
|
-
/* @__PURE__ */
|
|
16976
|
+
menuItems ? /* @__PURE__ */ jsx98(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
16977
|
+
/* @__PURE__ */ jsx98(
|
|
16812
16978
|
ParameterShellContext.Provider,
|
|
16813
16979
|
{
|
|
16814
16980
|
value: {
|
|
@@ -16820,29 +16986,29 @@ var ParameterShell = ({
|
|
|
16820
16986
|
},
|
|
16821
16987
|
children: /* @__PURE__ */ jsxs65(ParameterShellPlaceholder, { children: [
|
|
16822
16988
|
children,
|
|
16823
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
16989
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx98(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
16824
16990
|
] })
|
|
16825
16991
|
}
|
|
16826
16992
|
)
|
|
16827
16993
|
] }),
|
|
16828
|
-
caption ? /* @__PURE__ */
|
|
16829
|
-
errorMessaging ? /* @__PURE__ */
|
|
16830
|
-
warningMessage ? /* @__PURE__ */
|
|
16831
|
-
infoMessage ? /* @__PURE__ */
|
|
16994
|
+
caption ? /* @__PURE__ */ jsx98(Caption, { testId: captionTestId, children: caption }) : null,
|
|
16995
|
+
errorMessaging ? /* @__PURE__ */ jsx98(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null,
|
|
16996
|
+
warningMessage ? /* @__PURE__ */ jsx98(WarningMessage, { message: warningMessage }) : null,
|
|
16997
|
+
infoMessage ? /* @__PURE__ */ jsx98(InfoMessage, { message: infoMessage }) : null
|
|
16832
16998
|
] });
|
|
16833
16999
|
};
|
|
16834
17000
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
16835
|
-
return /* @__PURE__ */
|
|
17001
|
+
return /* @__PURE__ */ jsx98("div", { css: emptyParameterShell, children });
|
|
16836
17002
|
};
|
|
16837
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
17003
|
+
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" }) }) });
|
|
16838
17004
|
|
|
16839
17005
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
16840
|
-
import { Fragment as Fragment16, jsx as
|
|
17006
|
+
import { Fragment as Fragment16, jsx as jsx99, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
|
|
16841
17007
|
var ParameterImage = forwardRef12(
|
|
16842
17008
|
({ children, ...props }, ref) => {
|
|
16843
17009
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16844
17010
|
return /* @__PURE__ */ jsxs66(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
|
|
16845
|
-
/* @__PURE__ */
|
|
17011
|
+
/* @__PURE__ */ jsx99(ParameterImageInner, { ref, ...innerProps }),
|
|
16846
17012
|
children
|
|
16847
17013
|
] });
|
|
16848
17014
|
}
|
|
@@ -16852,7 +17018,7 @@ var ParameterImageInner = forwardRef12((props, ref) => {
|
|
|
16852
17018
|
const { id, label, hiddenLabel, errorMessage } = useParameterShell();
|
|
16853
17019
|
const deferredValue = useDeferredValue(value);
|
|
16854
17020
|
return /* @__PURE__ */ jsxs66(Fragment16, { children: [
|
|
16855
|
-
/* @__PURE__ */
|
|
17021
|
+
/* @__PURE__ */ jsx99(
|
|
16856
17022
|
"input",
|
|
16857
17023
|
{
|
|
16858
17024
|
css: input2,
|
|
@@ -16864,21 +17030,21 @@ var ParameterImageInner = forwardRef12((props, ref) => {
|
|
|
16864
17030
|
...props
|
|
16865
17031
|
}
|
|
16866
17032
|
),
|
|
16867
|
-
errorMessage || props.disablePreview ? null : /* @__PURE__ */
|
|
17033
|
+
errorMessage || props.disablePreview ? null : /* @__PURE__ */ jsx99(ParameterImagePreview, { imageSrc: deferredValue })
|
|
16868
17034
|
] });
|
|
16869
17035
|
});
|
|
16870
17036
|
|
|
16871
17037
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
16872
17038
|
import { forwardRef as forwardRef13 } from "react";
|
|
16873
|
-
import { jsx as
|
|
17039
|
+
import { jsx as jsx100 } from "@emotion/react/jsx-runtime";
|
|
16874
17040
|
var ParameterInput = forwardRef13((props, ref) => {
|
|
16875
17041
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16876
|
-
return /* @__PURE__ */
|
|
17042
|
+
return /* @__PURE__ */ jsx100(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx100(ParameterInputInner, { ref, ...innerProps }) });
|
|
16877
17043
|
});
|
|
16878
17044
|
var ParameterInputInner = forwardRef13(
|
|
16879
17045
|
({ ...props }, ref) => {
|
|
16880
17046
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
16881
|
-
return /* @__PURE__ */
|
|
17047
|
+
return /* @__PURE__ */ jsx100(
|
|
16882
17048
|
"input",
|
|
16883
17049
|
{
|
|
16884
17050
|
css: input2,
|
|
@@ -16895,18 +17061,18 @@ var ParameterInputInner = forwardRef13(
|
|
|
16895
17061
|
|
|
16896
17062
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
16897
17063
|
import { forwardRef as forwardRef14 } from "react";
|
|
16898
|
-
import { jsx as
|
|
17064
|
+
import { jsx as jsx101, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
|
|
16899
17065
|
var ParameterLink = forwardRef14(
|
|
16900
|
-
({ disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
17066
|
+
({ disabled: disabled2, onConnectLink, externalLink, ...props }, ref) => {
|
|
16901
17067
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16902
|
-
return /* @__PURE__ */
|
|
17068
|
+
return /* @__PURE__ */ jsx101(
|
|
16903
17069
|
ParameterShell,
|
|
16904
17070
|
{
|
|
16905
17071
|
"data-testid": "link-parameter-editor",
|
|
16906
17072
|
...shellProps,
|
|
16907
17073
|
label: innerProps.value ? shellProps.label : "",
|
|
16908
17074
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
16909
|
-
children: /* @__PURE__ */
|
|
17075
|
+
children: /* @__PURE__ */ jsx101(
|
|
16910
17076
|
ParameterLinkInner,
|
|
16911
17077
|
{
|
|
16912
17078
|
onConnectLink,
|
|
@@ -16920,12 +17086,12 @@ var ParameterLink = forwardRef14(
|
|
|
16920
17086
|
}
|
|
16921
17087
|
);
|
|
16922
17088
|
var ParameterLinkInner = forwardRef14(
|
|
16923
|
-
({ externalLink, onConnectLink, disabled, buttonText = "Select link", ...props }, ref) => {
|
|
17089
|
+
({ externalLink, onConnectLink, disabled: disabled2, buttonText = "Select link", ...props }, ref) => {
|
|
16924
17090
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
16925
17091
|
if (!props.value)
|
|
16926
|
-
return /* @__PURE__ */
|
|
17092
|
+
return /* @__PURE__ */ jsx101("button", { type: "button", css: dataConnectButton, disabled: disabled2, onClick: onConnectLink, children: buttonText });
|
|
16927
17093
|
return /* @__PURE__ */ jsxs67("div", { css: inputWrapper, children: [
|
|
16928
|
-
/* @__PURE__ */
|
|
17094
|
+
/* @__PURE__ */ jsx101(
|
|
16929
17095
|
"input",
|
|
16930
17096
|
{
|
|
16931
17097
|
type: "text",
|
|
@@ -16938,18 +17104,18 @@ var ParameterLinkInner = forwardRef14(
|
|
|
16938
17104
|
}
|
|
16939
17105
|
),
|
|
16940
17106
|
/* @__PURE__ */ jsxs67("div", { css: linkParameterControls, children: [
|
|
16941
|
-
/* @__PURE__ */
|
|
17107
|
+
/* @__PURE__ */ jsx101(
|
|
16942
17108
|
"button",
|
|
16943
17109
|
{
|
|
16944
17110
|
type: "button",
|
|
16945
17111
|
css: linkParameterBtn,
|
|
16946
|
-
disabled,
|
|
17112
|
+
disabled: disabled2,
|
|
16947
17113
|
onClick: onConnectLink,
|
|
16948
17114
|
title: "edit current selection",
|
|
16949
17115
|
children: "edit"
|
|
16950
17116
|
}
|
|
16951
17117
|
),
|
|
16952
|
-
externalLink ? /* @__PURE__ */
|
|
17118
|
+
externalLink ? /* @__PURE__ */ jsx101(
|
|
16953
17119
|
"a",
|
|
16954
17120
|
{
|
|
16955
17121
|
href: externalLink,
|
|
@@ -16957,7 +17123,7 @@ var ParameterLinkInner = forwardRef14(
|
|
|
16957
17123
|
title: "Open link in new tab",
|
|
16958
17124
|
target: "_blank",
|
|
16959
17125
|
rel: "noopener noreferrer",
|
|
16960
|
-
children: /* @__PURE__ */
|
|
17126
|
+
children: /* @__PURE__ */ jsx101(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
16961
17127
|
}
|
|
16962
17128
|
) : null
|
|
16963
17129
|
] })
|
|
@@ -16966,7 +17132,7 @@ var ParameterLinkInner = forwardRef14(
|
|
|
16966
17132
|
);
|
|
16967
17133
|
|
|
16968
17134
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
16969
|
-
import { Fragment as Fragment17, jsx as
|
|
17135
|
+
import { Fragment as Fragment17, jsx as jsx102, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
|
|
16970
17136
|
var ParameterNameAndPublicIdInput = ({
|
|
16971
17137
|
id,
|
|
16972
17138
|
onBlur,
|
|
@@ -16993,7 +17159,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16993
17159
|
};
|
|
16994
17160
|
autoFocus == null ? void 0 : autoFocus();
|
|
16995
17161
|
return /* @__PURE__ */ jsxs68(Fragment17, { children: [
|
|
16996
|
-
/* @__PURE__ */
|
|
17162
|
+
/* @__PURE__ */ jsx102(
|
|
16997
17163
|
ParameterInput,
|
|
16998
17164
|
{
|
|
16999
17165
|
id: nameIdField,
|
|
@@ -17012,7 +17178,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17012
17178
|
value: values[nameIdField]
|
|
17013
17179
|
}
|
|
17014
17180
|
),
|
|
17015
|
-
/* @__PURE__ */
|
|
17181
|
+
/* @__PURE__ */ jsx102(
|
|
17016
17182
|
ParameterInput,
|
|
17017
17183
|
{
|
|
17018
17184
|
id: publicIdFieldName,
|
|
@@ -17026,11 +17192,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17026
17192
|
caption: publicIdCaption,
|
|
17027
17193
|
placeholder: publicIdPlaceholderText,
|
|
17028
17194
|
errorMessage: publicIdError,
|
|
17029
|
-
menuItems: /* @__PURE__ */
|
|
17195
|
+
menuItems: /* @__PURE__ */ jsx102(
|
|
17030
17196
|
MenuItem,
|
|
17031
17197
|
{
|
|
17032
17198
|
disabled: !values[publicIdFieldName],
|
|
17033
|
-
icon: /* @__PURE__ */
|
|
17199
|
+
icon: /* @__PURE__ */ jsx102(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
17034
17200
|
onClick: handleCopyPidFieldValue,
|
|
17035
17201
|
children: "Copy"
|
|
17036
17202
|
}
|
|
@@ -17038,12 +17204,12 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17038
17204
|
value: values[publicIdFieldName]
|
|
17039
17205
|
}
|
|
17040
17206
|
),
|
|
17041
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
17207
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx102(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
17042
17208
|
] });
|
|
17043
17209
|
};
|
|
17044
17210
|
|
|
17045
17211
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
17046
|
-
import { css as
|
|
17212
|
+
import { css as css85 } from "@emotion/react";
|
|
17047
17213
|
import { ListItemNode, ListNode as ListNode2 } from "@lexical/list";
|
|
17048
17214
|
import {
|
|
17049
17215
|
CODE,
|
|
@@ -17157,7 +17323,7 @@ var getLabelForElement = (type) => {
|
|
|
17157
17323
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
17158
17324
|
import { deepEqual as deepEqual2 } from "fast-equals";
|
|
17159
17325
|
import { ParagraphNode as ParagraphNode2 } from "lexical";
|
|
17160
|
-
import { useEffect as
|
|
17326
|
+
import { useEffect as useEffect15, useRef as useRef7 } from "react";
|
|
17161
17327
|
|
|
17162
17328
|
// src/components/ParameterInputs/rich-text/CustomCodeNode.ts
|
|
17163
17329
|
import { CodeNode } from "@lexical/code";
|
|
@@ -17178,10 +17344,10 @@ CustomCodeNode.importDOM = function() {
|
|
|
17178
17344
|
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
|
|
17179
17345
|
import { mergeRegister } from "@lexical/utils";
|
|
17180
17346
|
import { ParagraphNode } from "lexical";
|
|
17181
|
-
import { useEffect as
|
|
17347
|
+
import { useEffect as useEffect11 } from "react";
|
|
17182
17348
|
function DisableStylesPlugin() {
|
|
17183
17349
|
const [editor] = useLexicalComposerContext();
|
|
17184
|
-
|
|
17350
|
+
useEffect11(() => {
|
|
17185
17351
|
return mergeRegister(
|
|
17186
17352
|
// Disable text alignment on paragraph nodes
|
|
17187
17353
|
editor.registerNodeTransform(ParagraphNode, (node) => {
|
|
@@ -17195,23 +17361,23 @@ function DisableStylesPlugin() {
|
|
|
17195
17361
|
}
|
|
17196
17362
|
|
|
17197
17363
|
// src/components/ParameterInputs/rich-text/editorStyles.ts
|
|
17198
|
-
import { css as
|
|
17199
|
-
var textBold =
|
|
17364
|
+
import { css as css82 } from "@emotion/css";
|
|
17365
|
+
var textBold = css82`
|
|
17200
17366
|
font-weight: 700;
|
|
17201
17367
|
`;
|
|
17202
|
-
var textItalic =
|
|
17368
|
+
var textItalic = css82`
|
|
17203
17369
|
font-style: italic;
|
|
17204
17370
|
`;
|
|
17205
|
-
var textUnderline =
|
|
17371
|
+
var textUnderline = css82`
|
|
17206
17372
|
text-decoration: underline;
|
|
17207
17373
|
`;
|
|
17208
|
-
var textStrikethrough =
|
|
17374
|
+
var textStrikethrough = css82`
|
|
17209
17375
|
text-decoration: line-through;
|
|
17210
17376
|
`;
|
|
17211
|
-
var textUnderlineStrikethrough =
|
|
17377
|
+
var textUnderlineStrikethrough = css82`
|
|
17212
17378
|
text-decoration: underline line-through;
|
|
17213
17379
|
`;
|
|
17214
|
-
var textCode =
|
|
17380
|
+
var textCode = css82`
|
|
17215
17381
|
background-color: var(--gray-100);
|
|
17216
17382
|
border-radius: var(--rounded-sm);
|
|
17217
17383
|
display: inline-block;
|
|
@@ -17222,68 +17388,68 @@ var textCode = css81`
|
|
|
17222
17388
|
padding-left: var(--spacing-xs);
|
|
17223
17389
|
padding-right: var(--spacing-xs);
|
|
17224
17390
|
`;
|
|
17225
|
-
var textSuperscript =
|
|
17391
|
+
var textSuperscript = css82`
|
|
17226
17392
|
vertical-align: super;
|
|
17227
17393
|
font-size: smaller;
|
|
17228
17394
|
`;
|
|
17229
|
-
var textSubscript =
|
|
17395
|
+
var textSubscript = css82`
|
|
17230
17396
|
vertical-align: sub;
|
|
17231
17397
|
font-size: smaller;
|
|
17232
17398
|
`;
|
|
17233
|
-
var linkElement =
|
|
17399
|
+
var linkElement = css82`
|
|
17234
17400
|
${link}
|
|
17235
17401
|
${linkColorDefault}
|
|
17236
17402
|
text-decoration: underline;
|
|
17237
17403
|
`;
|
|
17238
|
-
var h12 =
|
|
17404
|
+
var h12 = css82`
|
|
17239
17405
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.7rem);
|
|
17240
17406
|
`;
|
|
17241
|
-
var h22 =
|
|
17407
|
+
var h22 = css82`
|
|
17242
17408
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.6rem);
|
|
17243
17409
|
`;
|
|
17244
|
-
var h32 =
|
|
17410
|
+
var h32 = css82`
|
|
17245
17411
|
font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
|
|
17246
17412
|
`;
|
|
17247
|
-
var h42 =
|
|
17413
|
+
var h42 = css82`
|
|
17248
17414
|
font-size: clamp(1.15rem, var(--fluid-font-base), 1.25rem);
|
|
17249
17415
|
`;
|
|
17250
|
-
var h52 =
|
|
17416
|
+
var h52 = css82`
|
|
17251
17417
|
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
17252
17418
|
`;
|
|
17253
|
-
var h62 =
|
|
17419
|
+
var h62 = css82`
|
|
17254
17420
|
font-size: var(--fs-base);
|
|
17255
17421
|
`;
|
|
17256
|
-
var heading1Element =
|
|
17422
|
+
var heading1Element = css82`
|
|
17257
17423
|
${h12}
|
|
17258
17424
|
${commonHeadingAttr(true)}
|
|
17259
17425
|
${commonLineHeight}
|
|
17260
17426
|
`;
|
|
17261
|
-
var heading2Element =
|
|
17427
|
+
var heading2Element = css82`
|
|
17262
17428
|
${h22}
|
|
17263
17429
|
${commonHeadingAttr(true)}
|
|
17264
17430
|
${commonLineHeight}
|
|
17265
17431
|
`;
|
|
17266
|
-
var heading3Element =
|
|
17432
|
+
var heading3Element = css82`
|
|
17267
17433
|
${h32}
|
|
17268
17434
|
${commonHeadingAttr(true)}
|
|
17269
17435
|
${commonLineHeight}
|
|
17270
17436
|
`;
|
|
17271
|
-
var heading4Element =
|
|
17437
|
+
var heading4Element = css82`
|
|
17272
17438
|
${h42}
|
|
17273
17439
|
${commonHeadingAttr(true)}
|
|
17274
17440
|
${commonLineHeight}
|
|
17275
17441
|
`;
|
|
17276
|
-
var heading5Element =
|
|
17442
|
+
var heading5Element = css82`
|
|
17277
17443
|
${h52}
|
|
17278
17444
|
${commonHeadingAttr(true)}
|
|
17279
17445
|
${commonLineHeight}
|
|
17280
17446
|
`;
|
|
17281
|
-
var heading6Element =
|
|
17447
|
+
var heading6Element = css82`
|
|
17282
17448
|
${h62}
|
|
17283
17449
|
${commonHeadingAttr(true)}
|
|
17284
17450
|
${commonLineHeight}
|
|
17285
17451
|
`;
|
|
17286
|
-
var paragraphElement =
|
|
17452
|
+
var paragraphElement = css82`
|
|
17287
17453
|
line-height: 1.5;
|
|
17288
17454
|
margin-bottom: var(--spacing-base);
|
|
17289
17455
|
|
|
@@ -17291,7 +17457,7 @@ var paragraphElement = css81`
|
|
|
17291
17457
|
margin-bottom: 0;
|
|
17292
17458
|
}
|
|
17293
17459
|
`;
|
|
17294
|
-
var orderedListElement =
|
|
17460
|
+
var orderedListElement = css82`
|
|
17295
17461
|
${commonLineHeight}
|
|
17296
17462
|
display: block;
|
|
17297
17463
|
list-style: decimal;
|
|
@@ -17320,7 +17486,7 @@ var orderedListElement = css81`
|
|
|
17320
17486
|
}
|
|
17321
17487
|
}
|
|
17322
17488
|
`;
|
|
17323
|
-
var unorderedListElement =
|
|
17489
|
+
var unorderedListElement = css82`
|
|
17324
17490
|
${commonLineHeight}
|
|
17325
17491
|
display: block;
|
|
17326
17492
|
list-style: disc;
|
|
@@ -17341,13 +17507,13 @@ var unorderedListElement = css81`
|
|
|
17341
17507
|
}
|
|
17342
17508
|
}
|
|
17343
17509
|
`;
|
|
17344
|
-
var listItemElement =
|
|
17510
|
+
var listItemElement = css82`
|
|
17345
17511
|
margin-left: var(--spacing-md);
|
|
17346
17512
|
`;
|
|
17347
|
-
var nestedListItemElement =
|
|
17513
|
+
var nestedListItemElement = css82`
|
|
17348
17514
|
list-style-type: none;
|
|
17349
17515
|
`;
|
|
17350
|
-
var blockquoteElement =
|
|
17516
|
+
var blockquoteElement = css82`
|
|
17351
17517
|
border-left: 0.25rem solid var(--gray-300);
|
|
17352
17518
|
color: var(--gray-600);
|
|
17353
17519
|
margin-bottom: var(--spacing-base);
|
|
@@ -17357,7 +17523,7 @@ var blockquoteElement = css81`
|
|
|
17357
17523
|
margin-bottom: 0;
|
|
17358
17524
|
}
|
|
17359
17525
|
`;
|
|
17360
|
-
var codeElement =
|
|
17526
|
+
var codeElement = css82`
|
|
17361
17527
|
background-color: var(--gray-100);
|
|
17362
17528
|
border-radius: var(--rounded-sm);
|
|
17363
17529
|
display: block;
|
|
@@ -17374,7 +17540,7 @@ var codeElement = css81`
|
|
|
17374
17540
|
`;
|
|
17375
17541
|
|
|
17376
17542
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
17377
|
-
import { css as
|
|
17543
|
+
import { css as css83 } from "@emotion/react";
|
|
17378
17544
|
import { useLexicalComposerContext as useLexicalComposerContext2 } from "@lexical/react/LexicalComposerContext";
|
|
17379
17545
|
import { NodeEventPlugin } from "@lexical/react/LexicalNodeEventPlugin";
|
|
17380
17546
|
import { addClassNamesToElement, isHTMLAnchorElement, mergeRegister as mergeRegister2 } from "@lexical/utils";
|
|
@@ -17390,7 +17556,7 @@ import {
|
|
|
17390
17556
|
ElementNode as ElementNode2,
|
|
17391
17557
|
FOCUS_COMMAND
|
|
17392
17558
|
} from "lexical";
|
|
17393
|
-
import { useCallback as useCallback5, useEffect as
|
|
17559
|
+
import { useCallback as useCallback5, useEffect as useEffect12, useRef as useRef6, useState as useState12 } from "react";
|
|
17394
17560
|
|
|
17395
17561
|
// src/components/ParameterInputs/rich-text/utils.ts
|
|
17396
17562
|
import { $isAtNodeEnd } from "@lexical/selection";
|
|
@@ -17428,7 +17594,7 @@ var getSelectedNode = (selection) => {
|
|
|
17428
17594
|
};
|
|
17429
17595
|
|
|
17430
17596
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
17431
|
-
import { Fragment as Fragment18, jsx as
|
|
17597
|
+
import { Fragment as Fragment18, jsx as jsx103, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
|
|
17432
17598
|
var isProjectMapLinkValue = (value) => {
|
|
17433
17599
|
return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
|
|
17434
17600
|
value.nodeId && value.path && value.projectMapId
|
|
@@ -17715,16 +17881,16 @@ var OPEN_LINK_NODE_MODAL_COMMAND = createCommand(
|
|
|
17715
17881
|
);
|
|
17716
17882
|
var LINK_POPOVER_OFFSET_X = 0;
|
|
17717
17883
|
var LINK_POPOVER_OFFSET_Y = 8;
|
|
17718
|
-
var linkPopover =
|
|
17884
|
+
var linkPopover = css83`
|
|
17719
17885
|
position: absolute;
|
|
17720
17886
|
z-index: 5;
|
|
17721
17887
|
`;
|
|
17722
|
-
var linkPopoverContainer =
|
|
17888
|
+
var linkPopoverContainer = css83`
|
|
17723
17889
|
${Popover};
|
|
17724
17890
|
align-items: center;
|
|
17725
17891
|
display: flex;
|
|
17726
17892
|
`;
|
|
17727
|
-
var linkPopoverAnchor =
|
|
17893
|
+
var linkPopoverAnchor = css83`
|
|
17728
17894
|
${link}
|
|
17729
17895
|
${linkColorDefault}
|
|
17730
17896
|
`;
|
|
@@ -17737,13 +17903,13 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17737
17903
|
const linkPopoverElRef = useRef6(null);
|
|
17738
17904
|
const [isEditorFocused, setIsEditorFocused] = useState12(false);
|
|
17739
17905
|
const [isLinkPopoverFocused, setIsLinkPopoverFocused] = useState12(false);
|
|
17740
|
-
|
|
17906
|
+
useEffect12(() => {
|
|
17741
17907
|
if (!isEditorFocused && !isLinkPopoverFocused) {
|
|
17742
17908
|
setLinkPopoverState(void 0);
|
|
17743
17909
|
return;
|
|
17744
17910
|
}
|
|
17745
17911
|
}, [isEditorFocused, isLinkPopoverFocused]);
|
|
17746
|
-
|
|
17912
|
+
useEffect12(() => {
|
|
17747
17913
|
if (!editor.hasNodes([LinkNode])) {
|
|
17748
17914
|
throw new Error("LinkNode not registered on editor");
|
|
17749
17915
|
}
|
|
@@ -17844,7 +18010,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17844
18010
|
}
|
|
17845
18011
|
});
|
|
17846
18012
|
}, [editor]);
|
|
17847
|
-
|
|
18013
|
+
useEffect12(() => {
|
|
17848
18014
|
return editor.registerUpdateListener(({ editorState }) => {
|
|
17849
18015
|
requestAnimationFrame(() => {
|
|
17850
18016
|
editorState.read(() => {
|
|
@@ -17872,7 +18038,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17872
18038
|
});
|
|
17873
18039
|
};
|
|
17874
18040
|
return /* @__PURE__ */ jsxs69(Fragment18, { children: [
|
|
17875
|
-
/* @__PURE__ */
|
|
18041
|
+
/* @__PURE__ */ jsx103(
|
|
17876
18042
|
NodeEventPlugin,
|
|
17877
18043
|
{
|
|
17878
18044
|
nodeType: LinkNode,
|
|
@@ -17882,7 +18048,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17882
18048
|
}
|
|
17883
18049
|
}
|
|
17884
18050
|
),
|
|
17885
|
-
linkPopoverState ? /* @__PURE__ */
|
|
18051
|
+
linkPopoverState ? /* @__PURE__ */ jsx103(
|
|
17886
18052
|
"div",
|
|
17887
18053
|
{
|
|
17888
18054
|
css: linkPopover,
|
|
@@ -17892,7 +18058,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17892
18058
|
},
|
|
17893
18059
|
ref: linkPopoverElRef,
|
|
17894
18060
|
children: /* @__PURE__ */ jsxs69("div", { css: linkPopoverContainer, children: [
|
|
17895
|
-
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */
|
|
18061
|
+
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ jsx103(
|
|
17896
18062
|
"a",
|
|
17897
18063
|
{
|
|
17898
18064
|
href: parsePath(
|
|
@@ -17904,7 +18070,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17904
18070
|
children: parsePath(linkPopoverState.node.__link.path)
|
|
17905
18071
|
}
|
|
17906
18072
|
),
|
|
17907
|
-
/* @__PURE__ */
|
|
18073
|
+
/* @__PURE__ */ jsx103(
|
|
17908
18074
|
Button,
|
|
17909
18075
|
{
|
|
17910
18076
|
size: "xs",
|
|
@@ -17912,7 +18078,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17912
18078
|
onEditLinkNode(linkPopoverState.node);
|
|
17913
18079
|
},
|
|
17914
18080
|
buttonType: "ghost",
|
|
17915
|
-
children: /* @__PURE__ */
|
|
18081
|
+
children: /* @__PURE__ */ jsx103(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
|
|
17916
18082
|
}
|
|
17917
18083
|
)
|
|
17918
18084
|
] })
|
|
@@ -17936,8 +18102,8 @@ import {
|
|
|
17936
18102
|
COMMAND_PRIORITY_CRITICAL,
|
|
17937
18103
|
INDENT_CONTENT_COMMAND
|
|
17938
18104
|
} from "lexical";
|
|
17939
|
-
import { useEffect as
|
|
17940
|
-
import { jsx as
|
|
18105
|
+
import { useEffect as useEffect13 } from "react";
|
|
18106
|
+
import { jsx as jsx104 } from "@emotion/react/jsx-runtime";
|
|
17941
18107
|
function isIndentPermitted(maxDepth) {
|
|
17942
18108
|
const selection = $getSelection2();
|
|
17943
18109
|
if (!$isRangeSelection2(selection)) {
|
|
@@ -17960,18 +18126,18 @@ function isIndentPermitted(maxDepth) {
|
|
|
17960
18126
|
}
|
|
17961
18127
|
function ListIndentPlugin({ maxDepth }) {
|
|
17962
18128
|
const [editor] = useLexicalComposerContext3();
|
|
17963
|
-
|
|
18129
|
+
useEffect13(() => {
|
|
17964
18130
|
return editor.registerCommand(
|
|
17965
18131
|
INDENT_CONTENT_COMMAND,
|
|
17966
18132
|
() => !isIndentPermitted(maxDepth),
|
|
17967
18133
|
COMMAND_PRIORITY_CRITICAL
|
|
17968
18134
|
);
|
|
17969
18135
|
}, [editor, maxDepth]);
|
|
17970
|
-
return /* @__PURE__ */
|
|
18136
|
+
return /* @__PURE__ */ jsx104(TabIndentationPlugin, {});
|
|
17971
18137
|
}
|
|
17972
18138
|
|
|
17973
18139
|
// src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
|
|
17974
|
-
import { css as
|
|
18140
|
+
import { css as css84 } from "@emotion/react";
|
|
17975
18141
|
import { $createCodeNode } from "@lexical/code";
|
|
17976
18142
|
import {
|
|
17977
18143
|
$isListNode as $isListNode2,
|
|
@@ -17993,9 +18159,9 @@ import {
|
|
|
17993
18159
|
FORMAT_TEXT_COMMAND,
|
|
17994
18160
|
SELECTION_CHANGE_COMMAND
|
|
17995
18161
|
} from "lexical";
|
|
17996
|
-
import { useCallback as useCallback6, useEffect as
|
|
17997
|
-
import { Fragment as Fragment19, jsx as
|
|
17998
|
-
var toolbar =
|
|
18162
|
+
import { useCallback as useCallback6, useEffect as useEffect14, useMemo as useMemo3, useState as useState13 } from "react";
|
|
18163
|
+
import { Fragment as Fragment19, jsx as jsx105, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
18164
|
+
var toolbar = css84`
|
|
17999
18165
|
background: var(--gray-50);
|
|
18000
18166
|
border-radius: var(--rounded-base);
|
|
18001
18167
|
display: flex;
|
|
@@ -18007,7 +18173,7 @@ var toolbar = css83`
|
|
|
18007
18173
|
top: calc(var(--spacing-sm) * -2);
|
|
18008
18174
|
z-index: 10;
|
|
18009
18175
|
`;
|
|
18010
|
-
var toolbarGroup =
|
|
18176
|
+
var toolbarGroup = css84`
|
|
18011
18177
|
display: flex;
|
|
18012
18178
|
gap: var(--spacing-xs);
|
|
18013
18179
|
position: relative;
|
|
@@ -18023,7 +18189,7 @@ var toolbarGroup = css83`
|
|
|
18023
18189
|
width: 1px;
|
|
18024
18190
|
}
|
|
18025
18191
|
`;
|
|
18026
|
-
var richTextToolbarButton =
|
|
18192
|
+
var richTextToolbarButton = css84`
|
|
18027
18193
|
align-items: center;
|
|
18028
18194
|
appearance: none;
|
|
18029
18195
|
border: 0;
|
|
@@ -18036,17 +18202,17 @@ var richTextToolbarButton = css83`
|
|
|
18036
18202
|
min-width: 32px;
|
|
18037
18203
|
padding: 0 var(--spacing-sm);
|
|
18038
18204
|
`;
|
|
18039
|
-
var richTextToolbarButtonActive =
|
|
18205
|
+
var richTextToolbarButtonActive = css84`
|
|
18040
18206
|
background: var(--gray-200);
|
|
18041
18207
|
`;
|
|
18042
|
-
var toolbarIcon =
|
|
18208
|
+
var toolbarIcon = css84`
|
|
18043
18209
|
color: inherit;
|
|
18044
18210
|
`;
|
|
18045
|
-
var toolbarChevron =
|
|
18211
|
+
var toolbarChevron = css84`
|
|
18046
18212
|
margin-left: var(--spacing-xs);
|
|
18047
18213
|
`;
|
|
18048
18214
|
var RichTextToolbarIcon = ({ icon }) => {
|
|
18049
|
-
return /* @__PURE__ */
|
|
18215
|
+
return /* @__PURE__ */ jsx105(Icon, { icon, css: toolbarIcon, size: "1rem" });
|
|
18050
18216
|
};
|
|
18051
18217
|
var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
|
|
18052
18218
|
["bold", "format-bold"],
|
|
@@ -18136,7 +18302,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18136
18302
|
setIsLink(false);
|
|
18137
18303
|
}
|
|
18138
18304
|
}, [editor, setActiveElement, setActiveFormats, setIsLink]);
|
|
18139
|
-
|
|
18305
|
+
useEffect14(() => {
|
|
18140
18306
|
return editor.registerCommand(
|
|
18141
18307
|
SELECTION_CHANGE_COMMAND,
|
|
18142
18308
|
(_payload) => {
|
|
@@ -18146,7 +18312,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18146
18312
|
COMMAND_PRIORITY_CRITICAL2
|
|
18147
18313
|
);
|
|
18148
18314
|
}, [editor, updateToolbar]);
|
|
18149
|
-
|
|
18315
|
+
useEffect14(() => {
|
|
18150
18316
|
return editor.registerUpdateListener(({ editorState }) => {
|
|
18151
18317
|
requestAnimationFrame(() => {
|
|
18152
18318
|
editorState.read(() => {
|
|
@@ -18163,7 +18329,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18163
18329
|
menuTrigger: /* @__PURE__ */ jsxs70("button", { css: richTextToolbarButton, title: "Text styles", children: [
|
|
18164
18330
|
visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
|
|
18165
18331
|
" ",
|
|
18166
|
-
/* @__PURE__ */
|
|
18332
|
+
/* @__PURE__ */ jsx105(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
|
|
18167
18333
|
] }),
|
|
18168
18334
|
placement: "bottom-start",
|
|
18169
18335
|
children: [
|
|
@@ -18173,7 +18339,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18173
18339
|
type: "paragraph"
|
|
18174
18340
|
},
|
|
18175
18341
|
...visibleTextualElements
|
|
18176
|
-
].map((element) => /* @__PURE__ */
|
|
18342
|
+
].map((element) => /* @__PURE__ */ jsx105(
|
|
18177
18343
|
MenuItem,
|
|
18178
18344
|
{
|
|
18179
18345
|
onClick: () => {
|
|
@@ -18183,12 +18349,12 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18183
18349
|
},
|
|
18184
18350
|
element.type
|
|
18185
18351
|
)),
|
|
18186
|
-
visibleTextualElements.length === 0 ? /* @__PURE__ */
|
|
18352
|
+
visibleTextualElements.length === 0 ? /* @__PURE__ */ jsx105(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
|
|
18187
18353
|
]
|
|
18188
18354
|
}
|
|
18189
18355
|
),
|
|
18190
18356
|
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsxs70("div", { css: toolbarGroup, children: [
|
|
18191
|
-
visibleFormatsWithIcon.map((format) => /* @__PURE__ */
|
|
18357
|
+
visibleFormatsWithIcon.map((format) => /* @__PURE__ */ jsx105(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ jsx105(
|
|
18192
18358
|
"button",
|
|
18193
18359
|
{
|
|
18194
18360
|
onClick: () => {
|
|
@@ -18198,16 +18364,16 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18198
18364
|
richTextToolbarButton,
|
|
18199
18365
|
activeFormats.includes(format.type) ? richTextToolbarButtonActive : null
|
|
18200
18366
|
],
|
|
18201
|
-
children: /* @__PURE__ */
|
|
18367
|
+
children: /* @__PURE__ */ jsx105(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
|
|
18202
18368
|
}
|
|
18203
18369
|
) }, format.type)),
|
|
18204
|
-
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
18370
|
+
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsx105(
|
|
18205
18371
|
Menu,
|
|
18206
18372
|
{
|
|
18207
18373
|
menuLabel: "Alternative text styles",
|
|
18208
|
-
menuTrigger: /* @__PURE__ */
|
|
18374
|
+
menuTrigger: /* @__PURE__ */ jsx105("button", { css: richTextToolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ jsx105(Icon, { icon: "more-alt", css: toolbarIcon }) }),
|
|
18209
18375
|
placement: "bottom-start",
|
|
18210
|
-
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */
|
|
18376
|
+
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ jsx105(
|
|
18211
18377
|
MenuItem,
|
|
18212
18378
|
{
|
|
18213
18379
|
onClick: () => {
|
|
@@ -18221,18 +18387,18 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18221
18387
|
) : null
|
|
18222
18388
|
] }) : null,
|
|
18223
18389
|
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ jsxs70("div", { css: toolbarGroup, children: [
|
|
18224
|
-
linkElementVisible ? /* @__PURE__ */
|
|
18390
|
+
linkElementVisible ? /* @__PURE__ */ jsx105(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ jsx105(
|
|
18225
18391
|
"button",
|
|
18226
18392
|
{
|
|
18227
18393
|
onClick: () => {
|
|
18228
18394
|
isLink ? editor.dispatchCommand(REMOVE_LINK_NODE_COMMAND, {}) : editor.dispatchCommand(OPEN_LINK_NODE_MODAL_COMMAND, {});
|
|
18229
18395
|
},
|
|
18230
18396
|
css: [richTextToolbarButton, isLink ? richTextToolbarButtonActive : null],
|
|
18231
|
-
children: /* @__PURE__ */
|
|
18397
|
+
children: /* @__PURE__ */ jsx105(RichTextToolbarIcon, { icon: "link" })
|
|
18232
18398
|
}
|
|
18233
18399
|
) }) : null,
|
|
18234
18400
|
visibleLists.size > 0 ? /* @__PURE__ */ jsxs70(Fragment19, { children: [
|
|
18235
|
-
visibleLists.has("unorderedList") ? /* @__PURE__ */
|
|
18401
|
+
visibleLists.has("unorderedList") ? /* @__PURE__ */ jsx105(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ jsx105(
|
|
18236
18402
|
"button",
|
|
18237
18403
|
{
|
|
18238
18404
|
onClick: () => {
|
|
@@ -18242,10 +18408,10 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18242
18408
|
richTextToolbarButton,
|
|
18243
18409
|
activeElement === "unorderedList" ? richTextToolbarButtonActive : null
|
|
18244
18410
|
],
|
|
18245
|
-
children: /* @__PURE__ */
|
|
18411
|
+
children: /* @__PURE__ */ jsx105(RichTextToolbarIcon, { icon: "layout-list" })
|
|
18246
18412
|
}
|
|
18247
18413
|
) }) : null,
|
|
18248
|
-
visibleLists.has("orderedList") ? /* @__PURE__ */
|
|
18414
|
+
visibleLists.has("orderedList") ? /* @__PURE__ */ jsx105(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ jsx105(
|
|
18249
18415
|
"button",
|
|
18250
18416
|
{
|
|
18251
18417
|
onClick: () => {
|
|
@@ -18255,32 +18421,32 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18255
18421
|
richTextToolbarButton,
|
|
18256
18422
|
activeElement === "orderedList" ? richTextToolbarButtonActive : null
|
|
18257
18423
|
],
|
|
18258
|
-
children: /* @__PURE__ */
|
|
18424
|
+
children: /* @__PURE__ */ jsx105(RichTextToolbarIcon, { icon: "layout-list-numbered" })
|
|
18259
18425
|
}
|
|
18260
18426
|
) }) : null
|
|
18261
18427
|
] }) : null,
|
|
18262
|
-
quoteElementVisible ? /* @__PURE__ */
|
|
18428
|
+
quoteElementVisible ? /* @__PURE__ */ jsx105(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ jsx105(
|
|
18263
18429
|
"button",
|
|
18264
18430
|
{
|
|
18265
18431
|
onClick: () => {
|
|
18266
18432
|
activeElement === "quote" ? onSelectElement("paragraph") : onSelectElement("quote");
|
|
18267
18433
|
},
|
|
18268
18434
|
css: [richTextToolbarButton, activeElement === "quote" ? richTextToolbarButtonActive : null],
|
|
18269
|
-
children: /* @__PURE__ */
|
|
18435
|
+
children: /* @__PURE__ */ jsx105(RichTextToolbarIcon, { icon: "quote" })
|
|
18270
18436
|
}
|
|
18271
18437
|
) }) : null,
|
|
18272
|
-
codeElementVisible ? /* @__PURE__ */
|
|
18438
|
+
codeElementVisible ? /* @__PURE__ */ jsx105(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ jsx105(
|
|
18273
18439
|
"button",
|
|
18274
18440
|
{
|
|
18275
18441
|
onClick: () => {
|
|
18276
18442
|
activeElement === "code" ? onSelectElement("paragraph") : onSelectElement("code");
|
|
18277
18443
|
},
|
|
18278
18444
|
css: [richTextToolbarButton, activeElement === "code" ? richTextToolbarButtonActive : null],
|
|
18279
|
-
children: /* @__PURE__ */
|
|
18445
|
+
children: /* @__PURE__ */ jsx105(RichTextToolbarIcon, { icon: "code-slash" })
|
|
18280
18446
|
}
|
|
18281
18447
|
) }) : null
|
|
18282
18448
|
] }) : null,
|
|
18283
|
-
customControls ? /* @__PURE__ */
|
|
18449
|
+
customControls ? /* @__PURE__ */ jsx105("div", { css: toolbarGroup, children: customControls }) : null
|
|
18284
18450
|
] });
|
|
18285
18451
|
};
|
|
18286
18452
|
var RichTextToolbar_default = RichTextToolbar;
|
|
@@ -18394,7 +18560,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
18394
18560
|
};
|
|
18395
18561
|
|
|
18396
18562
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
18397
|
-
import { Fragment as Fragment20, jsx as
|
|
18563
|
+
import { Fragment as Fragment20, jsx as jsx106, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
|
|
18398
18564
|
var ParameterRichText = ({
|
|
18399
18565
|
label,
|
|
18400
18566
|
labelLeadingIcon,
|
|
@@ -18433,7 +18599,7 @@ var ParameterRichText = ({
|
|
|
18433
18599
|
captionTestId,
|
|
18434
18600
|
menuItems,
|
|
18435
18601
|
children: [
|
|
18436
|
-
/* @__PURE__ */
|
|
18602
|
+
/* @__PURE__ */ jsx106(
|
|
18437
18603
|
ParameterRichTextInner,
|
|
18438
18604
|
{
|
|
18439
18605
|
value,
|
|
@@ -18451,23 +18617,23 @@ var ParameterRichText = ({
|
|
|
18451
18617
|
children
|
|
18452
18618
|
}
|
|
18453
18619
|
),
|
|
18454
|
-
menuItems ? /* @__PURE__ */
|
|
18620
|
+
menuItems ? /* @__PURE__ */ jsx106(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx106(Fragment20, { children: menuItems }) }) : null
|
|
18455
18621
|
]
|
|
18456
18622
|
}
|
|
18457
18623
|
);
|
|
18458
18624
|
};
|
|
18459
|
-
var editorWrapper =
|
|
18625
|
+
var editorWrapper = css85`
|
|
18460
18626
|
display: flex;
|
|
18461
18627
|
flex-flow: column;
|
|
18462
18628
|
flex-grow: 1;
|
|
18463
18629
|
`;
|
|
18464
|
-
var editorContainer =
|
|
18630
|
+
var editorContainer = css85`
|
|
18465
18631
|
display: flex;
|
|
18466
18632
|
flex-flow: column;
|
|
18467
18633
|
flex-grow: 1;
|
|
18468
18634
|
position: relative;
|
|
18469
18635
|
`;
|
|
18470
|
-
var editorPlaceholder =
|
|
18636
|
+
var editorPlaceholder = css85`
|
|
18471
18637
|
color: var(--gray-500);
|
|
18472
18638
|
font-style: italic;
|
|
18473
18639
|
/* 1px is added to make sure caret is clearly visible when field is focused
|
|
@@ -18478,7 +18644,7 @@ var editorPlaceholder = css84`
|
|
|
18478
18644
|
top: var(--spacing-xs);
|
|
18479
18645
|
user-select: none;
|
|
18480
18646
|
`;
|
|
18481
|
-
var editorInput =
|
|
18647
|
+
var editorInput = css85`
|
|
18482
18648
|
background: var(--white);
|
|
18483
18649
|
border: 1px solid var(--white);
|
|
18484
18650
|
border-radius: var(--rounded-sm);
|
|
@@ -18563,7 +18729,7 @@ var ParameterRichTextInner = ({
|
|
|
18563
18729
|
editable: !readOnly
|
|
18564
18730
|
};
|
|
18565
18731
|
return /* @__PURE__ */ jsxs71(Fragment20, { children: [
|
|
18566
|
-
/* @__PURE__ */
|
|
18732
|
+
/* @__PURE__ */ jsx106("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx106(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx106(
|
|
18567
18733
|
RichText,
|
|
18568
18734
|
{
|
|
18569
18735
|
onChange,
|
|
@@ -18602,12 +18768,12 @@ var RichText = ({
|
|
|
18602
18768
|
}) => {
|
|
18603
18769
|
const editorContainerRef = useRef7(null);
|
|
18604
18770
|
const [editor] = useLexicalComposerContext5();
|
|
18605
|
-
|
|
18771
|
+
useEffect15(() => {
|
|
18606
18772
|
if (onRichTextInit) {
|
|
18607
18773
|
onRichTextInit(editor);
|
|
18608
18774
|
}
|
|
18609
18775
|
}, [editor, onRichTextInit]);
|
|
18610
|
-
|
|
18776
|
+
useEffect15(() => {
|
|
18611
18777
|
const removeUpdateListener = editor.registerUpdateListener(({ editorState, prevEditorState }) => {
|
|
18612
18778
|
requestAnimationFrame(() => {
|
|
18613
18779
|
if (!deepEqual2(editorState.toJSON(), prevEditorState.toJSON())) {
|
|
@@ -18620,19 +18786,19 @@ var RichText = ({
|
|
|
18620
18786
|
};
|
|
18621
18787
|
}, []);
|
|
18622
18788
|
return /* @__PURE__ */ jsxs71(Fragment20, { children: [
|
|
18623
|
-
readOnly ? null : /* @__PURE__ */
|
|
18789
|
+
readOnly ? null : /* @__PURE__ */ jsx106(RichTextToolbar_default, { config, customControls }),
|
|
18624
18790
|
/* @__PURE__ */ jsxs71("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
|
|
18625
|
-
/* @__PURE__ */
|
|
18791
|
+
/* @__PURE__ */ jsx106(
|
|
18626
18792
|
RichTextPlugin,
|
|
18627
18793
|
{
|
|
18628
|
-
contentEditable: /* @__PURE__ */
|
|
18629
|
-
placeholder: /* @__PURE__ */
|
|
18794
|
+
contentEditable: /* @__PURE__ */ jsx106(ContentEditable, { css: editorInput, className: editorInputClassName }),
|
|
18795
|
+
placeholder: /* @__PURE__ */ jsx106("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
|
|
18630
18796
|
ErrorBoundary: LexicalErrorBoundary
|
|
18631
18797
|
}
|
|
18632
18798
|
),
|
|
18633
|
-
/* @__PURE__ */
|
|
18634
|
-
readOnly ? null : /* @__PURE__ */
|
|
18635
|
-
/* @__PURE__ */
|
|
18799
|
+
/* @__PURE__ */ jsx106(ListPlugin, {}),
|
|
18800
|
+
readOnly ? null : /* @__PURE__ */ jsx106(HistoryPlugin, {}),
|
|
18801
|
+
/* @__PURE__ */ jsx106(
|
|
18636
18802
|
LinkNodePlugin,
|
|
18637
18803
|
{
|
|
18638
18804
|
onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve(),
|
|
@@ -18642,21 +18808,21 @@ var RichText = ({
|
|
|
18642
18808
|
} : void 0
|
|
18643
18809
|
}
|
|
18644
18810
|
),
|
|
18645
|
-
/* @__PURE__ */
|
|
18646
|
-
/* @__PURE__ */
|
|
18647
|
-
/* @__PURE__ */
|
|
18648
|
-
/* @__PURE__ */
|
|
18811
|
+
/* @__PURE__ */ jsx106(ListIndentPlugin, { maxDepth: 4 }),
|
|
18812
|
+
/* @__PURE__ */ jsx106(DisableStylesPlugin, {}),
|
|
18813
|
+
/* @__PURE__ */ jsx106(MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
|
|
18814
|
+
/* @__PURE__ */ jsx106(Fragment20, { children })
|
|
18649
18815
|
] })
|
|
18650
18816
|
] });
|
|
18651
18817
|
};
|
|
18652
18818
|
|
|
18653
18819
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
18654
18820
|
import { forwardRef as forwardRef15 } from "react";
|
|
18655
|
-
import { jsx as
|
|
18821
|
+
import { jsx as jsx107, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
|
|
18656
18822
|
var ParameterSelect = forwardRef15(
|
|
18657
18823
|
({ defaultOption, options, ...props }, ref) => {
|
|
18658
18824
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18659
|
-
return /* @__PURE__ */
|
|
18825
|
+
return /* @__PURE__ */ jsx107(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx107(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
18660
18826
|
}
|
|
18661
18827
|
);
|
|
18662
18828
|
var ParameterSelectInner = forwardRef15(
|
|
@@ -18671,10 +18837,10 @@ var ParameterSelectInner = forwardRef15(
|
|
|
18671
18837
|
ref,
|
|
18672
18838
|
...props,
|
|
18673
18839
|
children: [
|
|
18674
|
-
defaultOption ? /* @__PURE__ */
|
|
18840
|
+
defaultOption ? /* @__PURE__ */ jsx107("option", { value: "", children: defaultOption }) : null,
|
|
18675
18841
|
options.map((option) => {
|
|
18676
18842
|
var _a;
|
|
18677
|
-
return /* @__PURE__ */
|
|
18843
|
+
return /* @__PURE__ */ jsx107("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
18678
18844
|
})
|
|
18679
18845
|
]
|
|
18680
18846
|
}
|
|
@@ -18684,14 +18850,14 @@ var ParameterSelectInner = forwardRef15(
|
|
|
18684
18850
|
|
|
18685
18851
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
18686
18852
|
import { forwardRef as forwardRef16 } from "react";
|
|
18687
|
-
import { jsx as
|
|
18853
|
+
import { jsx as jsx108 } from "@emotion/react/jsx-runtime";
|
|
18688
18854
|
var ParameterTextarea = forwardRef16((props, ref) => {
|
|
18689
18855
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18690
|
-
return /* @__PURE__ */
|
|
18856
|
+
return /* @__PURE__ */ jsx108(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx108(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
18691
18857
|
});
|
|
18692
18858
|
var ParameterTextareaInner = forwardRef16(({ ...props }, ref) => {
|
|
18693
18859
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
18694
|
-
return /* @__PURE__ */
|
|
18860
|
+
return /* @__PURE__ */ jsx108(
|
|
18695
18861
|
"textarea",
|
|
18696
18862
|
{
|
|
18697
18863
|
css: [input2, textarea2],
|
|
@@ -18705,24 +18871,24 @@ var ParameterTextareaInner = forwardRef16(({ ...props }, ref) => {
|
|
|
18705
18871
|
|
|
18706
18872
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
18707
18873
|
import { forwardRef as forwardRef17 } from "react";
|
|
18708
|
-
import { jsx as
|
|
18874
|
+
import { jsx as jsx109, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
|
|
18709
18875
|
var ParameterToggle = forwardRef17((props, ref) => {
|
|
18710
18876
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18711
|
-
return /* @__PURE__ */
|
|
18877
|
+
return /* @__PURE__ */ jsx109(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx109(ParameterToggleInner, { ref, ...innerProps }) });
|
|
18712
18878
|
});
|
|
18713
18879
|
var ParameterToggleInner = forwardRef17(
|
|
18714
18880
|
({ ...props }, ref) => {
|
|
18715
18881
|
const { id, label } = useParameterShell();
|
|
18716
18882
|
return /* @__PURE__ */ jsxs73("label", { css: inputToggleLabel2, children: [
|
|
18717
|
-
/* @__PURE__ */
|
|
18718
|
-
/* @__PURE__ */
|
|
18883
|
+
/* @__PURE__ */ jsx109("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
18884
|
+
/* @__PURE__ */ jsx109("span", { css: inlineLabel2, children: label })
|
|
18719
18885
|
] });
|
|
18720
18886
|
}
|
|
18721
18887
|
);
|
|
18722
18888
|
|
|
18723
18889
|
// src/components/ProgressBar/ProgressBar.styles.ts
|
|
18724
|
-
import { css as
|
|
18725
|
-
var
|
|
18890
|
+
import { css as css86, keyframes as keyframes4 } from "@emotion/react";
|
|
18891
|
+
var container2 = css86`
|
|
18726
18892
|
background: var(--gray-50);
|
|
18727
18893
|
margin-block: var(--spacing-sm);
|
|
18728
18894
|
position: relative;
|
|
@@ -18732,14 +18898,42 @@ var container = css85`
|
|
|
18732
18898
|
border: solid 1px var(--gray-300);
|
|
18733
18899
|
`;
|
|
18734
18900
|
var themeMap = {
|
|
18735
|
-
primary:
|
|
18736
|
-
|
|
18901
|
+
primary: css86`
|
|
18902
|
+
--progress-color: var(--accent-light);
|
|
18737
18903
|
`,
|
|
18738
|
-
secondary:
|
|
18739
|
-
|
|
18904
|
+
secondary: css86`
|
|
18905
|
+
--progress-color: var(--accent-alt-light);
|
|
18906
|
+
`,
|
|
18907
|
+
destructive: css86`
|
|
18908
|
+
--progress-color: var(--brand-secondary-5);
|
|
18740
18909
|
`
|
|
18741
18910
|
};
|
|
18742
|
-
var
|
|
18911
|
+
var slidingBackgroundPosition = keyframes4`
|
|
18912
|
+
from {
|
|
18913
|
+
background-position: 0 0;
|
|
18914
|
+
}
|
|
18915
|
+
to {
|
|
18916
|
+
background-position: 64px 0;
|
|
18917
|
+
}
|
|
18918
|
+
`;
|
|
18919
|
+
var determinate = css86`
|
|
18920
|
+
background-color: var(--progress-color);
|
|
18921
|
+
`;
|
|
18922
|
+
var indeterminate = css86`
|
|
18923
|
+
background-image: linear-gradient(
|
|
18924
|
+
45deg,
|
|
18925
|
+
var(--progress-color) 25%,
|
|
18926
|
+
transparent 25%,
|
|
18927
|
+
transparent 50%,
|
|
18928
|
+
var(--progress-color) 50%,
|
|
18929
|
+
var(--progress-color) 75%,
|
|
18930
|
+
transparent 75%,
|
|
18931
|
+
transparent
|
|
18932
|
+
);
|
|
18933
|
+
background-size: 64px 64px;
|
|
18934
|
+
animation: ${slidingBackgroundPosition} 1s linear infinite;
|
|
18935
|
+
`;
|
|
18936
|
+
var bar = css86`
|
|
18743
18937
|
position: absolute;
|
|
18744
18938
|
inset: 0;
|
|
18745
18939
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
@@ -18747,25 +18941,35 @@ var bar = css85`
|
|
|
18747
18941
|
`;
|
|
18748
18942
|
|
|
18749
18943
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
18750
|
-
import { jsx as
|
|
18751
|
-
function ProgressBar({
|
|
18944
|
+
import { jsx as jsx110 } from "@emotion/react/jsx-runtime";
|
|
18945
|
+
function ProgressBar({
|
|
18946
|
+
current,
|
|
18947
|
+
max,
|
|
18948
|
+
theme = "primary",
|
|
18949
|
+
variant = "determinate",
|
|
18950
|
+
...props
|
|
18951
|
+
}) {
|
|
18752
18952
|
const valueNow = Math.min(current, max);
|
|
18753
18953
|
const valuePercentage = max > 0 ? Math.ceil(100 / max * valueNow) : 0;
|
|
18754
|
-
return /* @__PURE__ */
|
|
18954
|
+
return /* @__PURE__ */ jsx110(
|
|
18755
18955
|
"div",
|
|
18756
18956
|
{
|
|
18757
|
-
|
|
18758
|
-
css: container,
|
|
18957
|
+
css: container2,
|
|
18759
18958
|
role: "progressbar",
|
|
18760
18959
|
"aria-busy": valuePercentage !== 100,
|
|
18761
18960
|
"aria-invalid": false,
|
|
18762
18961
|
"aria-valuemin": 0,
|
|
18763
18962
|
"aria-valuemax": max,
|
|
18764
18963
|
"aria-valuenow": valueNow,
|
|
18765
|
-
|
|
18964
|
+
...props,
|
|
18965
|
+
children: /* @__PURE__ */ jsx110(
|
|
18766
18966
|
"div",
|
|
18767
18967
|
{
|
|
18768
|
-
css: [
|
|
18968
|
+
css: [
|
|
18969
|
+
themeMap[theme],
|
|
18970
|
+
variant === "indeterminate" ? indeterminate : determinate,
|
|
18971
|
+
bar
|
|
18972
|
+
],
|
|
18769
18973
|
style: {
|
|
18770
18974
|
transform: `scaleX(${valuePercentage / 100})`
|
|
18771
18975
|
},
|
|
@@ -18777,28 +18981,28 @@ function ProgressBar({ className, current, max, theme = "primary" }) {
|
|
|
18777
18981
|
}
|
|
18778
18982
|
|
|
18779
18983
|
// src/components/ProgressList/ProgressList.tsx
|
|
18780
|
-
import { css as
|
|
18984
|
+
import { css as css88 } from "@emotion/react";
|
|
18781
18985
|
import { CgCheckO as CgCheckO2 } from "@react-icons/all-files/cg/CgCheckO";
|
|
18782
18986
|
import { CgRadioCheck } from "@react-icons/all-files/cg/CgRadioCheck";
|
|
18783
18987
|
import { CgRecord } from "@react-icons/all-files/cg/CgRecord";
|
|
18784
18988
|
import { useMemo as useMemo4 } from "react";
|
|
18785
18989
|
|
|
18786
18990
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
18787
|
-
import { css as
|
|
18788
|
-
var progressListStyles =
|
|
18991
|
+
import { css as css87 } from "@emotion/react";
|
|
18992
|
+
var progressListStyles = css87`
|
|
18789
18993
|
display: flex;
|
|
18790
18994
|
flex-direction: column;
|
|
18791
18995
|
gap: var(--spacing-sm);
|
|
18792
18996
|
list-style-type: none;
|
|
18793
18997
|
`;
|
|
18794
|
-
var progressListItemStyles =
|
|
18998
|
+
var progressListItemStyles = css87`
|
|
18795
18999
|
display: flex;
|
|
18796
19000
|
gap: var(--spacing-base);
|
|
18797
19001
|
align-items: center;
|
|
18798
19002
|
`;
|
|
18799
19003
|
|
|
18800
19004
|
// src/components/ProgressList/ProgressList.tsx
|
|
18801
|
-
import { jsx as
|
|
19005
|
+
import { jsx as jsx111, jsxs as jsxs74 } from "@emotion/react/jsx-runtime";
|
|
18802
19006
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
18803
19007
|
const itemsWithStatus = useMemo4(() => {
|
|
18804
19008
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -18812,8 +19016,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
18812
19016
|
return { ...item, status };
|
|
18813
19017
|
});
|
|
18814
19018
|
}, [items, inProgressId]);
|
|
18815
|
-
return /* @__PURE__ */
|
|
18816
|
-
return /* @__PURE__ */
|
|
19019
|
+
return /* @__PURE__ */ jsx111("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
19020
|
+
return /* @__PURE__ */ jsx111(
|
|
18817
19021
|
ProgressListItem,
|
|
18818
19022
|
{
|
|
18819
19023
|
status,
|
|
@@ -18846,12 +19050,12 @@ var ProgressListItem = ({
|
|
|
18846
19050
|
}, [status, error]);
|
|
18847
19051
|
const statusStyles = useMemo4(() => {
|
|
18848
19052
|
if (error) {
|
|
18849
|
-
return errorLevel === "caution" ?
|
|
19053
|
+
return errorLevel === "caution" ? css88`
|
|
18850
19054
|
color: rgb(161, 98, 7);
|
|
18851
19055
|
& svg {
|
|
18852
19056
|
color: rgb(250, 204, 21);
|
|
18853
19057
|
}
|
|
18854
|
-
` :
|
|
19058
|
+
` : css88`
|
|
18855
19059
|
color: rgb(185, 28, 28);
|
|
18856
19060
|
& svg {
|
|
18857
19061
|
color: var(--brand-primary-2);
|
|
@@ -18859,35 +19063,35 @@ var ProgressListItem = ({
|
|
|
18859
19063
|
`;
|
|
18860
19064
|
}
|
|
18861
19065
|
const colorPerStatus = {
|
|
18862
|
-
completed:
|
|
19066
|
+
completed: css88`
|
|
18863
19067
|
opacity: 0.75;
|
|
18864
19068
|
`,
|
|
18865
|
-
inProgress:
|
|
19069
|
+
inProgress: css88`
|
|
18866
19070
|
-webkit-text-stroke-width: thin;
|
|
18867
19071
|
`,
|
|
18868
|
-
queued:
|
|
19072
|
+
queued: css88`
|
|
18869
19073
|
opacity: 0.5;
|
|
18870
19074
|
`
|
|
18871
19075
|
};
|
|
18872
19076
|
return colorPerStatus[status];
|
|
18873
19077
|
}, [status, error, errorLevel]);
|
|
18874
19078
|
return /* @__PURE__ */ jsxs74("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
18875
|
-
/* @__PURE__ */
|
|
19079
|
+
/* @__PURE__ */ jsx111(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx111("div", { children: /* @__PURE__ */ jsx111(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
|
|
18876
19080
|
/* @__PURE__ */ jsxs74("div", { children: [
|
|
18877
19081
|
children,
|
|
18878
|
-
/* @__PURE__ */
|
|
19082
|
+
/* @__PURE__ */ jsx111("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
18879
19083
|
] })
|
|
18880
19084
|
] });
|
|
18881
19085
|
};
|
|
18882
19086
|
|
|
18883
19087
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
18884
|
-
import { css as
|
|
19088
|
+
import { css as css90 } from "@emotion/react";
|
|
18885
19089
|
import { CgCheck as CgCheck4 } from "@react-icons/all-files/cg/CgCheck";
|
|
18886
19090
|
import { useCallback as useCallback7, useMemo as useMemo5 } from "react";
|
|
18887
19091
|
|
|
18888
19092
|
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
18889
|
-
import { css as
|
|
18890
|
-
var segmentedControlStyles =
|
|
19093
|
+
import { css as css89 } from "@emotion/react";
|
|
19094
|
+
var segmentedControlStyles = css89`
|
|
18891
19095
|
--segmented-control-rounded-value: var(--rounded-base);
|
|
18892
19096
|
--segmented-control-border-width: 1px;
|
|
18893
19097
|
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
@@ -18906,14 +19110,14 @@ var segmentedControlStyles = css88`
|
|
|
18906
19110
|
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
18907
19111
|
font-size: var(--fs-xs);
|
|
18908
19112
|
`;
|
|
18909
|
-
var segmentedControlVerticalStyles =
|
|
19113
|
+
var segmentedControlVerticalStyles = css89`
|
|
18910
19114
|
flex-direction: column;
|
|
18911
19115
|
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
18912
19116
|
var(--segmented-control-rounded-value) 0 0;
|
|
18913
19117
|
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
18914
19118
|
var(--segmented-control-rounded-value);
|
|
18915
19119
|
`;
|
|
18916
|
-
var segmentedControlItemStyles =
|
|
19120
|
+
var segmentedControlItemStyles = css89`
|
|
18917
19121
|
&:first-of-type label {
|
|
18918
19122
|
border-radius: var(--segmented-control-first-border-radius);
|
|
18919
19123
|
}
|
|
@@ -18921,10 +19125,10 @@ var segmentedControlItemStyles = css88`
|
|
|
18921
19125
|
border-radius: var(--segmented-control-last-border-radius);
|
|
18922
19126
|
}
|
|
18923
19127
|
`;
|
|
18924
|
-
var segmentedControlInputStyles =
|
|
19128
|
+
var segmentedControlInputStyles = css89`
|
|
18925
19129
|
${accessibleHidden}
|
|
18926
19130
|
`;
|
|
18927
|
-
var segmentedControlLabelStyles = (checked,
|
|
19131
|
+
var segmentedControlLabelStyles = (checked, disabled2) => css89`
|
|
18928
19132
|
position: relative;
|
|
18929
19133
|
display: flex;
|
|
18930
19134
|
align-items: center;
|
|
@@ -18966,7 +19170,7 @@ var segmentedControlLabelStyles = (checked, disabled) => css88`
|
|
|
18966
19170
|
// once Firefox supports :has selector
|
|
18967
19171
|
@supports not selector(:has(*)) {
|
|
18968
19172
|
// equivalent to &:has(:checked:not(:disabled))
|
|
18969
|
-
${checked && !
|
|
19173
|
+
${checked && !disabled2 ? `
|
|
18970
19174
|
background-color: var(--segmented-control-selected-color);
|
|
18971
19175
|
outline: var(--segmented-control-border-width) solid var(--segmented-control-selected-color);
|
|
18972
19176
|
box-shadow: 0 0.43em 1.7em 0 rgba(0, 0, 0, 0.15);
|
|
@@ -18976,45 +19180,45 @@ var segmentedControlLabelStyles = (checked, disabled) => css88`
|
|
|
18976
19180
|
|
|
18977
19181
|
// equivalent to &:hover:not(:has(:disabled, :checked))
|
|
18978
19182
|
&:hover {
|
|
18979
|
-
${!checked && !
|
|
19183
|
+
${!checked && !disabled2 ? `background-color: var(--gray-100);` : void 0}
|
|
18980
19184
|
}
|
|
18981
19185
|
|
|
18982
19186
|
// equivalent to &:has(:disabled)
|
|
18983
|
-
${
|
|
19187
|
+
${disabled2 ? `
|
|
18984
19188
|
color: var(--gray-400);
|
|
18985
19189
|
cursor: default;` : void 0}
|
|
18986
19190
|
|
|
18987
19191
|
// equivalent to &:has(:checked:disabled)
|
|
18988
|
-
${checked &&
|
|
19192
|
+
${checked && disabled2 && `
|
|
18989
19193
|
color: var(--gray-50);
|
|
18990
19194
|
background-color: var(--gray-400);
|
|
18991
19195
|
`}
|
|
18992
19196
|
}
|
|
18993
19197
|
`;
|
|
18994
|
-
var segmentedControlLabelIconOnlyStyles =
|
|
19198
|
+
var segmentedControlLabelIconOnlyStyles = css89`
|
|
18995
19199
|
padding-inline: 0.5em;
|
|
18996
19200
|
`;
|
|
18997
|
-
var segmentedControlLabelCheckStyles =
|
|
19201
|
+
var segmentedControlLabelCheckStyles = css89`
|
|
18998
19202
|
opacity: 0.5;
|
|
18999
19203
|
`;
|
|
19000
|
-
var segmentedControlLabelContentStyles =
|
|
19204
|
+
var segmentedControlLabelContentStyles = css89`
|
|
19001
19205
|
display: flex;
|
|
19002
19206
|
align-items: center;
|
|
19003
19207
|
justify-content: center;
|
|
19004
19208
|
gap: var(--spacing-sm);
|
|
19005
19209
|
height: 100%;
|
|
19006
19210
|
`;
|
|
19007
|
-
var segmentedControlLabelTextStyles =
|
|
19211
|
+
var segmentedControlLabelTextStyles = css89``;
|
|
19008
19212
|
|
|
19009
19213
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
19010
|
-
import { jsx as
|
|
19214
|
+
import { jsx as jsx112, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
|
|
19011
19215
|
var SegmentedControl = ({
|
|
19012
19216
|
name,
|
|
19013
19217
|
options,
|
|
19014
19218
|
value,
|
|
19015
19219
|
onChange,
|
|
19016
19220
|
noCheckmark = false,
|
|
19017
|
-
disabled = false,
|
|
19221
|
+
disabled: disabled2 = false,
|
|
19018
19222
|
orientation = "horizontal",
|
|
19019
19223
|
size = "md",
|
|
19020
19224
|
...props
|
|
@@ -19029,28 +19233,28 @@ var SegmentedControl = ({
|
|
|
19029
19233
|
);
|
|
19030
19234
|
const sizeStyles = useMemo5(() => {
|
|
19031
19235
|
const map = {
|
|
19032
|
-
sm:
|
|
19033
|
-
md:
|
|
19034
|
-
lg:
|
|
19236
|
+
sm: css90({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
19237
|
+
md: css90({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
19238
|
+
lg: css90({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
|
|
19035
19239
|
};
|
|
19036
19240
|
return map[size];
|
|
19037
19241
|
}, [size]);
|
|
19038
19242
|
const isIconOnly = useMemo5(() => {
|
|
19039
19243
|
return options.every((option) => option.icon && !option.label);
|
|
19040
19244
|
}, [options]);
|
|
19041
|
-
return /* @__PURE__ */
|
|
19245
|
+
return /* @__PURE__ */ jsx112(
|
|
19042
19246
|
"div",
|
|
19043
19247
|
{
|
|
19044
19248
|
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
19045
19249
|
...props,
|
|
19046
19250
|
children: options.map((option, index) => {
|
|
19047
19251
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
19048
|
-
const isDisabled =
|
|
19049
|
-
return /* @__PURE__ */
|
|
19252
|
+
const isDisabled = disabled2 || option.disabled;
|
|
19253
|
+
return /* @__PURE__ */ jsx112(
|
|
19050
19254
|
Tooltip,
|
|
19051
19255
|
{
|
|
19052
19256
|
title: isDisabled || !option.tooltip ? "" : option.tooltip,
|
|
19053
|
-
children: /* @__PURE__ */
|
|
19257
|
+
children: /* @__PURE__ */ jsx112("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ jsxs75(
|
|
19054
19258
|
"label",
|
|
19055
19259
|
{
|
|
19056
19260
|
css: [
|
|
@@ -19059,7 +19263,7 @@ var SegmentedControl = ({
|
|
|
19059
19263
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
19060
19264
|
],
|
|
19061
19265
|
children: [
|
|
19062
|
-
/* @__PURE__ */
|
|
19266
|
+
/* @__PURE__ */ jsx112(
|
|
19063
19267
|
"input",
|
|
19064
19268
|
{
|
|
19065
19269
|
css: segmentedControlInputStyles,
|
|
@@ -19071,10 +19275,10 @@ var SegmentedControl = ({
|
|
|
19071
19275
|
disabled: isDisabled
|
|
19072
19276
|
}
|
|
19073
19277
|
),
|
|
19074
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */
|
|
19278
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx112(CgCheck4, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
19075
19279
|
/* @__PURE__ */ jsxs75("span", { css: segmentedControlLabelContentStyles, children: [
|
|
19076
|
-
!option.icon ? null : /* @__PURE__ */
|
|
19077
|
-
!text ? null : /* @__PURE__ */
|
|
19280
|
+
!option.icon ? null : /* @__PURE__ */ jsx112(Icon, { icon: option.icon, size: "1.5em", iconColor: "currentColor" }),
|
|
19281
|
+
!text ? null : /* @__PURE__ */ jsx112("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
19078
19282
|
] })
|
|
19079
19283
|
]
|
|
19080
19284
|
}
|
|
@@ -19088,18 +19292,18 @@ var SegmentedControl = ({
|
|
|
19088
19292
|
};
|
|
19089
19293
|
|
|
19090
19294
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
19091
|
-
import { css as
|
|
19092
|
-
var lightFadingOut =
|
|
19295
|
+
import { css as css91, keyframes as keyframes5 } from "@emotion/react";
|
|
19296
|
+
var lightFadingOut = keyframes5`
|
|
19093
19297
|
from { opacity: 0.1; }
|
|
19094
19298
|
to { opacity: 0.025; }
|
|
19095
19299
|
`;
|
|
19096
|
-
var skeletonStyles =
|
|
19300
|
+
var skeletonStyles = css91`
|
|
19097
19301
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
19098
19302
|
background-color: var(--gray-900);
|
|
19099
19303
|
`;
|
|
19100
19304
|
|
|
19101
19305
|
// src/components/Skeleton/Skeleton.tsx
|
|
19102
|
-
import { jsx as
|
|
19306
|
+
import { jsx as jsx113 } from "@emotion/react/jsx-runtime";
|
|
19103
19307
|
var Skeleton = ({
|
|
19104
19308
|
width = "100%",
|
|
19105
19309
|
height = "1.25rem",
|
|
@@ -19107,7 +19311,7 @@ var Skeleton = ({
|
|
|
19107
19311
|
circle = false,
|
|
19108
19312
|
children,
|
|
19109
19313
|
...otherProps
|
|
19110
|
-
}) => /* @__PURE__ */
|
|
19314
|
+
}) => /* @__PURE__ */ jsx113(
|
|
19111
19315
|
"div",
|
|
19112
19316
|
{
|
|
19113
19317
|
css: [
|
|
@@ -19130,8 +19334,8 @@ var Skeleton = ({
|
|
|
19130
19334
|
import * as React23 from "react";
|
|
19131
19335
|
|
|
19132
19336
|
// src/components/Switch/Switch.styles.ts
|
|
19133
|
-
import { css as
|
|
19134
|
-
var SwitchInputContainer =
|
|
19337
|
+
import { css as css92 } from "@emotion/react";
|
|
19338
|
+
var SwitchInputContainer = css92`
|
|
19135
19339
|
cursor: pointer;
|
|
19136
19340
|
display: inline-block;
|
|
19137
19341
|
position: relative;
|
|
@@ -19140,7 +19344,7 @@ var SwitchInputContainer = css91`
|
|
|
19140
19344
|
vertical-align: middle;
|
|
19141
19345
|
user-select: none;
|
|
19142
19346
|
`;
|
|
19143
|
-
var SwitchInput =
|
|
19347
|
+
var SwitchInput = css92`
|
|
19144
19348
|
appearance: none;
|
|
19145
19349
|
border-radius: var(--rounded-full);
|
|
19146
19350
|
background-color: var(--white);
|
|
@@ -19178,7 +19382,7 @@ var SwitchInput = css91`
|
|
|
19178
19382
|
cursor: not-allowed;
|
|
19179
19383
|
}
|
|
19180
19384
|
`;
|
|
19181
|
-
var SwitchInputDisabled =
|
|
19385
|
+
var SwitchInputDisabled = css92`
|
|
19182
19386
|
opacity: var(--opacity-50);
|
|
19183
19387
|
cursor: not-allowed;
|
|
19184
19388
|
|
|
@@ -19186,11 +19390,10 @@ var SwitchInputDisabled = css91`
|
|
|
19186
19390
|
cursor: not-allowed;
|
|
19187
19391
|
}
|
|
19188
19392
|
`;
|
|
19189
|
-
var SwitchInputLabel =
|
|
19393
|
+
var SwitchInputLabel = css92`
|
|
19190
19394
|
align-items: center;
|
|
19191
19395
|
color: var(--brand-secondary-1);
|
|
19192
19396
|
display: inline-flex;
|
|
19193
|
-
font-weight: var(--fw-bold);
|
|
19194
19397
|
line-height: 1.25;
|
|
19195
19398
|
padding-inline: var(--spacing-2xl) 0;
|
|
19196
19399
|
|
|
@@ -19208,14 +19411,14 @@ var SwitchInputLabel = css91`
|
|
|
19208
19411
|
top: 0;
|
|
19209
19412
|
}
|
|
19210
19413
|
`;
|
|
19211
|
-
var SwitchText =
|
|
19414
|
+
var SwitchText = css92`
|
|
19212
19415
|
color: var(--gray-500);
|
|
19213
19416
|
font-size: var(--fs-sm);
|
|
19214
19417
|
padding-inline: var(--spacing-2xl) 0;
|
|
19215
19418
|
`;
|
|
19216
19419
|
|
|
19217
19420
|
// src/components/Switch/Switch.tsx
|
|
19218
|
-
import { Fragment as Fragment21, jsx as
|
|
19421
|
+
import { Fragment as Fragment21, jsx as jsx114, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
|
|
19219
19422
|
var Switch = React23.forwardRef(
|
|
19220
19423
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
19221
19424
|
let additionalText = infoText;
|
|
@@ -19224,10 +19427,10 @@ var Switch = React23.forwardRef(
|
|
|
19224
19427
|
}
|
|
19225
19428
|
return /* @__PURE__ */ jsxs76(Fragment21, { children: [
|
|
19226
19429
|
/* @__PURE__ */ jsxs76("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
19227
|
-
/* @__PURE__ */
|
|
19228
|
-
/* @__PURE__ */
|
|
19430
|
+
/* @__PURE__ */ jsx114("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
19431
|
+
/* @__PURE__ */ jsx114("span", { css: SwitchInputLabel, children: label })
|
|
19229
19432
|
] }),
|
|
19230
|
-
additionalText ? /* @__PURE__ */
|
|
19433
|
+
additionalText ? /* @__PURE__ */ jsx114("p", { css: SwitchText, children: additionalText }) : null,
|
|
19231
19434
|
children
|
|
19232
19435
|
] });
|
|
19233
19436
|
}
|
|
@@ -19237,8 +19440,8 @@ var Switch = React23.forwardRef(
|
|
|
19237
19440
|
import * as React24 from "react";
|
|
19238
19441
|
|
|
19239
19442
|
// src/components/Table/Table.styles.ts
|
|
19240
|
-
import { css as
|
|
19241
|
-
var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) =>
|
|
19443
|
+
import { css as css93 } from "@emotion/react";
|
|
19444
|
+
var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css93`
|
|
19242
19445
|
border-bottom: 1px solid var(--gray-400);
|
|
19243
19446
|
border-collapse: collapse;
|
|
19244
19447
|
min-width: 100%;
|
|
@@ -19249,60 +19452,60 @@ var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css92
|
|
|
19249
19452
|
padding: ${cellPadding};
|
|
19250
19453
|
}
|
|
19251
19454
|
`;
|
|
19252
|
-
var tableHead =
|
|
19455
|
+
var tableHead = css93`
|
|
19253
19456
|
background: var(--gray-100);
|
|
19254
19457
|
color: var(--brand-secondary-1);
|
|
19255
19458
|
text-align: left;
|
|
19256
19459
|
`;
|
|
19257
|
-
var tableRow =
|
|
19460
|
+
var tableRow = css93`
|
|
19258
19461
|
border-bottom: 1px solid var(--gray-200);
|
|
19259
19462
|
`;
|
|
19260
|
-
var tableCellHead =
|
|
19463
|
+
var tableCellHead = css93`
|
|
19261
19464
|
font-size: var(--fs-sm);
|
|
19262
19465
|
text-transform: uppercase;
|
|
19263
19466
|
font-weight: var(--fw-bold);
|
|
19264
19467
|
`;
|
|
19265
19468
|
|
|
19266
19469
|
// src/components/Table/Table.tsx
|
|
19267
|
-
import { jsx as
|
|
19470
|
+
import { jsx as jsx115 } from "@emotion/react/jsx-runtime";
|
|
19268
19471
|
var Table = React24.forwardRef(
|
|
19269
19472
|
({ children, cellPadding, ...otherProps }, ref) => {
|
|
19270
|
-
return /* @__PURE__ */
|
|
19473
|
+
return /* @__PURE__ */ jsx115("table", { ref, css: table({ cellPadding }), ...otherProps, children });
|
|
19271
19474
|
}
|
|
19272
19475
|
);
|
|
19273
19476
|
var TableHead = React24.forwardRef(
|
|
19274
19477
|
({ children, ...otherProps }, ref) => {
|
|
19275
|
-
return /* @__PURE__ */
|
|
19478
|
+
return /* @__PURE__ */ jsx115("thead", { ref, css: tableHead, ...otherProps, children });
|
|
19276
19479
|
}
|
|
19277
19480
|
);
|
|
19278
19481
|
var TableBody = React24.forwardRef(
|
|
19279
19482
|
({ children, ...otherProps }, ref) => {
|
|
19280
|
-
return /* @__PURE__ */
|
|
19483
|
+
return /* @__PURE__ */ jsx115("tbody", { ref, ...otherProps, children });
|
|
19281
19484
|
}
|
|
19282
19485
|
);
|
|
19283
19486
|
var TableFoot = React24.forwardRef(
|
|
19284
19487
|
({ children, ...otherProps }, ref) => {
|
|
19285
|
-
return /* @__PURE__ */
|
|
19488
|
+
return /* @__PURE__ */ jsx115("tfoot", { ref, ...otherProps, children });
|
|
19286
19489
|
}
|
|
19287
19490
|
);
|
|
19288
19491
|
var TableRow = React24.forwardRef(
|
|
19289
19492
|
({ children, ...otherProps }, ref) => {
|
|
19290
|
-
return /* @__PURE__ */
|
|
19493
|
+
return /* @__PURE__ */ jsx115("tr", { ref, css: tableRow, ...otherProps, children });
|
|
19291
19494
|
}
|
|
19292
19495
|
);
|
|
19293
19496
|
var TableCellHead = React24.forwardRef(
|
|
19294
19497
|
({ children, ...otherProps }, ref) => {
|
|
19295
|
-
return /* @__PURE__ */
|
|
19498
|
+
return /* @__PURE__ */ jsx115("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
19296
19499
|
}
|
|
19297
19500
|
);
|
|
19298
19501
|
var TableCellData = React24.forwardRef(
|
|
19299
19502
|
({ children, ...otherProps }, ref) => {
|
|
19300
|
-
return /* @__PURE__ */
|
|
19503
|
+
return /* @__PURE__ */ jsx115("td", { ref, ...otherProps, children });
|
|
19301
19504
|
}
|
|
19302
19505
|
);
|
|
19303
19506
|
|
|
19304
19507
|
// src/components/Tabs/Tabs.tsx
|
|
19305
|
-
import { createContext as createContext6, useContext as useContext7, useEffect as
|
|
19508
|
+
import { createContext as createContext6, useContext as useContext7, useEffect as useEffect16, useMemo as useMemo6 } from "react";
|
|
19306
19509
|
import {
|
|
19307
19510
|
Tab as ReakitTab,
|
|
19308
19511
|
TabList as ReakitTabList,
|
|
@@ -19311,8 +19514,8 @@ import {
|
|
|
19311
19514
|
} from "reakit/Tab";
|
|
19312
19515
|
|
|
19313
19516
|
// src/components/Tabs/Tabs.styles.ts
|
|
19314
|
-
import { css as
|
|
19315
|
-
var tabButtonStyles =
|
|
19517
|
+
import { css as css94 } from "@emotion/react";
|
|
19518
|
+
var tabButtonStyles = css94`
|
|
19316
19519
|
align-items: center;
|
|
19317
19520
|
border: 0;
|
|
19318
19521
|
height: 2.5rem;
|
|
@@ -19329,14 +19532,14 @@ var tabButtonStyles = css93`
|
|
|
19329
19532
|
box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
|
|
19330
19533
|
}
|
|
19331
19534
|
`;
|
|
19332
|
-
var tabButtonGroupStyles =
|
|
19535
|
+
var tabButtonGroupStyles = css94`
|
|
19333
19536
|
display: flex;
|
|
19334
19537
|
gap: var(--spacing-base);
|
|
19335
19538
|
border-bottom: 1px solid var(--gray-300);
|
|
19336
19539
|
`;
|
|
19337
19540
|
|
|
19338
19541
|
// src/components/Tabs/Tabs.tsx
|
|
19339
|
-
import { jsx as
|
|
19542
|
+
import { jsx as jsx116 } from "@emotion/react/jsx-runtime";
|
|
19340
19543
|
var CurrentTabContext = createContext6(null);
|
|
19341
19544
|
var useCurrentTab = () => {
|
|
19342
19545
|
const context = useContext7(CurrentTabContext);
|
|
@@ -19352,37 +19555,38 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
19352
19555
|
return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
|
|
19353
19556
|
}, [selectedId, useHashForState]);
|
|
19354
19557
|
const tab = useTabState({ ...props, selectedId: selected });
|
|
19355
|
-
|
|
19558
|
+
useEffect16(() => {
|
|
19356
19559
|
var _a;
|
|
19357
19560
|
const selectedValueWithoutNull = (_a = tab.selectedId) != null ? _a : void 0;
|
|
19358
19561
|
onSelectedIdChange == null ? void 0 : onSelectedIdChange(selectedValueWithoutNull);
|
|
19359
|
-
if (useHashForState && typeof window !== "undefined") {
|
|
19360
|
-
|
|
19562
|
+
if (useHashForState && typeof window !== "undefined" && window.history) {
|
|
19563
|
+
const hashValue = selectedValueWithoutNull ? `#${selectedValueWithoutNull}` : "";
|
|
19564
|
+
window.history.pushState(null, "", hashValue);
|
|
19361
19565
|
}
|
|
19362
19566
|
}, [tab.selectedId, onSelectedIdChange, useHashForState]);
|
|
19363
|
-
|
|
19567
|
+
useEffect16(() => {
|
|
19364
19568
|
if (selected && selected !== tab.selectedId) {
|
|
19365
19569
|
tab.setSelectedId(selected);
|
|
19366
19570
|
}
|
|
19367
19571
|
}, [selected]);
|
|
19368
|
-
return /* @__PURE__ */
|
|
19572
|
+
return /* @__PURE__ */ jsx116(CurrentTabContext.Provider, { value: tab, children });
|
|
19369
19573
|
};
|
|
19370
19574
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
19371
19575
|
const currentTab = useCurrentTab();
|
|
19372
|
-
return /* @__PURE__ */
|
|
19576
|
+
return /* @__PURE__ */ jsx116(ReakitTabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
19373
19577
|
};
|
|
19374
19578
|
var TabButton = ({ children, id, ...props }) => {
|
|
19375
19579
|
const currentTab = useCurrentTab();
|
|
19376
|
-
return /* @__PURE__ */
|
|
19580
|
+
return /* @__PURE__ */ jsx116(ReakitTab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
19377
19581
|
};
|
|
19378
19582
|
var TabContent = ({ children, ...props }) => {
|
|
19379
19583
|
const currentTab = useCurrentTab();
|
|
19380
|
-
return /* @__PURE__ */
|
|
19584
|
+
return /* @__PURE__ */ jsx116(ReakitTabPanel, { ...props, ...currentTab, children });
|
|
19381
19585
|
};
|
|
19382
19586
|
|
|
19383
19587
|
// src/components/Validation/StatusBullet.styles.ts
|
|
19384
|
-
import { css as
|
|
19385
|
-
var StatusBulletContainer =
|
|
19588
|
+
import { css as css95 } from "@emotion/react";
|
|
19589
|
+
var StatusBulletContainer = css95`
|
|
19386
19590
|
align-items: center;
|
|
19387
19591
|
align-self: center;
|
|
19388
19592
|
color: var(--gray-500);
|
|
@@ -19399,58 +19603,63 @@ var StatusBulletContainer = css94`
|
|
|
19399
19603
|
display: block;
|
|
19400
19604
|
}
|
|
19401
19605
|
`;
|
|
19402
|
-
var StatusBulletBase =
|
|
19606
|
+
var StatusBulletBase = css95`
|
|
19403
19607
|
font-size: var(--fs-sm);
|
|
19404
19608
|
&:before {
|
|
19405
19609
|
width: var(--fs-xs);
|
|
19406
19610
|
height: var(--fs-xs);
|
|
19407
19611
|
}
|
|
19408
19612
|
`;
|
|
19409
|
-
var StatusBulletSmall =
|
|
19613
|
+
var StatusBulletSmall = css95`
|
|
19410
19614
|
font-size: var(--fs-xs);
|
|
19411
19615
|
&:before {
|
|
19412
19616
|
width: var(--fs-xxs);
|
|
19413
19617
|
height: var(--fs-xxs);
|
|
19414
19618
|
}
|
|
19415
19619
|
`;
|
|
19416
|
-
var StatusDraft =
|
|
19620
|
+
var StatusDraft = css95`
|
|
19417
19621
|
&:before {
|
|
19418
19622
|
background: var(--white);
|
|
19419
19623
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
19420
19624
|
}
|
|
19421
19625
|
`;
|
|
19422
|
-
var StatusModified =
|
|
19626
|
+
var StatusModified = css95`
|
|
19423
19627
|
&:before {
|
|
19424
19628
|
background: linear-gradient(to right, var(--white) 50%, var(--primary-action-default) 50% 100%);
|
|
19425
19629
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
19426
19630
|
}
|
|
19427
19631
|
`;
|
|
19428
|
-
var StatusError =
|
|
19632
|
+
var StatusError = css95`
|
|
19429
19633
|
color: var(--error);
|
|
19430
19634
|
&:before {
|
|
19431
19635
|
/* TODO: replace this with an svg icon */
|
|
19432
19636
|
background: linear-gradient(
|
|
19433
|
-
|
|
19434
|
-
var(--error)
|
|
19435
|
-
var(--white)
|
|
19436
|
-
var(--white)
|
|
19437
|
-
var(--error)
|
|
19637
|
+
133deg,
|
|
19638
|
+
var(--error) 41%,
|
|
19639
|
+
var(--white) 42%,
|
|
19640
|
+
var(--white) 58%,
|
|
19641
|
+
var(--error) 59%
|
|
19438
19642
|
);
|
|
19439
19643
|
}
|
|
19440
19644
|
`;
|
|
19441
|
-
var StatusPublished =
|
|
19645
|
+
var StatusPublished = css95`
|
|
19442
19646
|
&:before {
|
|
19443
19647
|
background: var(--primary-action-default);
|
|
19444
19648
|
}
|
|
19445
19649
|
`;
|
|
19446
|
-
var StatusOrphan =
|
|
19650
|
+
var StatusOrphan = css95`
|
|
19447
19651
|
&:before {
|
|
19448
19652
|
background: var(--brand-secondary-5);
|
|
19449
19653
|
}
|
|
19450
19654
|
`;
|
|
19655
|
+
var StatusUnknown = css95`
|
|
19656
|
+
&:before {
|
|
19657
|
+
background: var(--brand-secondary-1);
|
|
19658
|
+
}
|
|
19659
|
+
`;
|
|
19451
19660
|
|
|
19452
19661
|
// src/components/Validation/StatusBullet.tsx
|
|
19453
|
-
import { jsx as
|
|
19662
|
+
import { jsx as jsx117 } from "@emotion/react/jsx-runtime";
|
|
19454
19663
|
var StatusBullet = ({
|
|
19455
19664
|
status,
|
|
19456
19665
|
hideText = false,
|
|
@@ -19465,10 +19674,11 @@ var StatusBullet = ({
|
|
|
19465
19674
|
Orphan: StatusOrphan,
|
|
19466
19675
|
Published: StatusPublished,
|
|
19467
19676
|
Draft: StatusDraft,
|
|
19468
|
-
Previous: StatusDraft
|
|
19677
|
+
Previous: StatusDraft,
|
|
19678
|
+
Unknown: StatusUnknown
|
|
19469
19679
|
};
|
|
19470
19680
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
19471
|
-
return /* @__PURE__ */
|
|
19681
|
+
return /* @__PURE__ */ jsx117(
|
|
19472
19682
|
"span",
|
|
19473
19683
|
{
|
|
19474
19684
|
role: "status",
|
|
@@ -19556,6 +19766,7 @@ export {
|
|
|
19556
19766
|
Modal,
|
|
19557
19767
|
MultilineChip,
|
|
19558
19768
|
PageHeaderSection,
|
|
19769
|
+
Pagination,
|
|
19559
19770
|
Paragraph,
|
|
19560
19771
|
ParameterDataResource,
|
|
19561
19772
|
ParameterDrawerHeader,
|
|
@@ -19598,6 +19809,7 @@ export {
|
|
|
19598
19809
|
StatusBullet,
|
|
19599
19810
|
SuccessMessage,
|
|
19600
19811
|
Switch,
|
|
19812
|
+
TAKEOVER_STACK_ID,
|
|
19601
19813
|
TabButton,
|
|
19602
19814
|
TabButtonGroup,
|
|
19603
19815
|
TabContent,
|
|
@@ -19609,6 +19821,7 @@ export {
|
|
|
19609
19821
|
TableHead,
|
|
19610
19822
|
TableRow,
|
|
19611
19823
|
Tabs,
|
|
19824
|
+
TakeoverDrawerRenderer,
|
|
19612
19825
|
Textarea,
|
|
19613
19826
|
Theme,
|
|
19614
19827
|
Tile2 as Tile,
|