@uniformdev/design-system 19.42.1-alpha.7 → 19.45.1
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/chunk-6NI3O2RY.js +3 -0
- package/dist/esm/importedIcons-GRLD5JXK.js +1294 -0
- package/dist/esm/index.js +191 -159
- package/dist/index.d.mts +723 -46
- package/dist/index.d.ts +723 -46
- package/dist/index.js +1786 -164
- package/package.json +16 -17
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { jsx } from "@emotion/react";
|
|
3
|
-
import * as React from "react";
|
|
1
|
+
import "./chunk-6NI3O2RY.js";
|
|
4
2
|
|
|
5
3
|
// src/styles/Theme.tsx
|
|
6
4
|
import { Fragment, jsx as jsx2, jsxs } from "@emotion/react/jsx-runtime";
|
|
@@ -1008,11 +1006,13 @@ var AddButton = ({
|
|
|
1008
1006
|
};
|
|
1009
1007
|
|
|
1010
1008
|
// src/components/AddListButton/AddListButton.tsx
|
|
1011
|
-
import { CgAdd
|
|
1009
|
+
import { CgAdd } from "@react-icons/all-files/cg/CgAdd";
|
|
1010
|
+
import { CgAddR } from "@react-icons/all-files/cg/CgAddR";
|
|
1011
|
+
import { CgMathPlus } from "@react-icons/all-files/cg/CgMathPlus";
|
|
1012
1012
|
|
|
1013
1013
|
// src/components/Icons/customIcons.tsx
|
|
1014
|
-
import { GenIcon } from "react-icons";
|
|
1015
|
-
import { MdSettings } from "react-icons/md";
|
|
1014
|
+
import { GenIcon } from "@react-icons/all-files";
|
|
1015
|
+
import { MdSettings } from "@react-icons/all-files/md/MdSettings";
|
|
1016
1016
|
|
|
1017
1017
|
// src/components/Icons/Icon.tsx
|
|
1018
1018
|
import React3 from "react";
|
|
@@ -1048,7 +1048,6 @@ var IconColorAccentLight = css8`
|
|
|
1048
1048
|
`;
|
|
1049
1049
|
|
|
1050
1050
|
// src/components/Icons/IconsProvider.tsx
|
|
1051
|
-
import { paramCase } from "param-case";
|
|
1052
1051
|
import { createContext, useContext as useContext2, useEffect as useEffect3, useState as useState2 } from "react";
|
|
1053
1052
|
import { jsx as jsx5 } from "@emotion/react/jsx-runtime";
|
|
1054
1053
|
var IconContext = createContext({
|
|
@@ -1064,15 +1063,8 @@ function IconsProvider({ children }) {
|
|
|
1064
1063
|
const [isLoading, setIsLoading] = useState2(true);
|
|
1065
1064
|
const [iconsMap, setIconsMap] = useState2({});
|
|
1066
1065
|
const initializeIconsMap = async () => {
|
|
1067
|
-
const
|
|
1068
|
-
|
|
1069
|
-
if (key === "default") {
|
|
1070
|
-
return map;
|
|
1071
|
-
}
|
|
1072
|
-
const iconName = getIconNameFromCssGgComponentName(key);
|
|
1073
|
-
return { ...map, [iconName]: icon };
|
|
1074
|
-
}, {});
|
|
1075
|
-
setIconsMap({ ...iconMap, ...customIcons });
|
|
1066
|
+
const { importedIcons } = await import("./importedIcons-GRLD5JXK.js");
|
|
1067
|
+
setIconsMap({ ...importedIcons, ...customIcons });
|
|
1076
1068
|
setIsLoading(false);
|
|
1077
1069
|
};
|
|
1078
1070
|
useEffect3(() => {
|
|
@@ -1080,10 +1072,6 @@ function IconsProvider({ children }) {
|
|
|
1080
1072
|
}, []);
|
|
1081
1073
|
return /* @__PURE__ */ jsx5(IconContext.Provider, { value: { iconsMap, isLoading }, children });
|
|
1082
1074
|
}
|
|
1083
|
-
function getIconNameFromCssGgComponentName(cssGgComponentName) {
|
|
1084
|
-
var _a, _b;
|
|
1085
|
-
return (_b = (_a = paramCase(cssGgComponentName.replace("Cg", "")).match(/[a-z]+|\d+/gi)) == null ? void 0 : _a.join("-")) != null ? _b : "";
|
|
1086
|
-
}
|
|
1087
1075
|
|
|
1088
1076
|
// src/components/Icons/Icon.tsx
|
|
1089
1077
|
import { jsx as jsx6 } from "@emotion/react/jsx-runtime";
|
|
@@ -1814,7 +1802,7 @@ var AddListButton = ({
|
|
|
1814
1802
|
};
|
|
1815
1803
|
|
|
1816
1804
|
// src/components/Alerts/InlineAlert.tsx
|
|
1817
|
-
import { CgClose } from "react-icons/cg";
|
|
1805
|
+
import { CgClose } from "@react-icons/all-files/cg/CgClose";
|
|
1818
1806
|
|
|
1819
1807
|
// src/components/Typography/styles/Heading.styles.ts
|
|
1820
1808
|
import { css as css10 } from "@emotion/react";
|
|
@@ -1978,8 +1966,8 @@ var Badge = ({
|
|
|
1978
1966
|
};
|
|
1979
1967
|
|
|
1980
1968
|
// src/components/Typography/Link.tsx
|
|
1969
|
+
import { CgExternal } from "@react-icons/all-files/cg/CgExternal";
|
|
1981
1970
|
import * as React4 from "react";
|
|
1982
|
-
import { CgExternal } from "react-icons/cg";
|
|
1983
1971
|
|
|
1984
1972
|
// src/components/Typography/styles/Link.styles.ts
|
|
1985
1973
|
import { css as css12 } from "@emotion/react";
|
|
@@ -2197,7 +2185,7 @@ var IntegrationHeaderSection = ({
|
|
|
2197
2185
|
};
|
|
2198
2186
|
|
|
2199
2187
|
// src/components/Typography/PageHeaderSection.tsx
|
|
2200
|
-
import { CgChevronLeft } from "react-icons/cg";
|
|
2188
|
+
import { CgChevronLeft } from "@react-icons/all-files/cg/CgChevronLeft";
|
|
2201
2189
|
|
|
2202
2190
|
// src/components/Typography/styles/PageHeaderSection.styles.ts
|
|
2203
2191
|
import { css as css15 } from "@emotion/react";
|
|
@@ -11008,7 +10996,7 @@ var AvatarGroup = ({
|
|
|
11008
10996
|
};
|
|
11009
10997
|
|
|
11010
10998
|
// src/components/Banner/Banner.tsx
|
|
11011
|
-
import { CgClose as CgClose2 } from "react-icons/cg";
|
|
10999
|
+
import { CgClose as CgClose2 } from "@react-icons/all-files/cg/CgClose";
|
|
11012
11000
|
|
|
11013
11001
|
// src/components/Banner/Banner.styles.ts
|
|
11014
11002
|
import { css as css21 } from "@emotion/react";
|
|
@@ -11334,7 +11322,7 @@ var Button = React6.forwardRef(
|
|
|
11334
11322
|
);
|
|
11335
11323
|
|
|
11336
11324
|
// src/components/ButtonWithMenu/ButtonWithMenu.tsx
|
|
11337
|
-
import { CgChevronDown } from "react-icons/cg";
|
|
11325
|
+
import { CgChevronDown } from "@react-icons/all-files/cg/CgChevronDown";
|
|
11338
11326
|
|
|
11339
11327
|
// src/components/Menu/Menu.tsx
|
|
11340
11328
|
import * as React8 from "react";
|
|
@@ -11514,21 +11502,31 @@ var Menu = ({
|
|
|
11514
11502
|
menuItemsContainerCssClasses,
|
|
11515
11503
|
children,
|
|
11516
11504
|
forceVisible,
|
|
11517
|
-
disableAutoSeparatorManagement
|
|
11505
|
+
disableAutoSeparatorManagement,
|
|
11506
|
+
withoutPortal = false
|
|
11518
11507
|
}) => {
|
|
11519
11508
|
const menuState = useMenuState({ placement, visible: forceVisible });
|
|
11509
|
+
const [isRendered, setIsRendered] = React8.useState(false);
|
|
11520
11510
|
React8.useEffect(() => {
|
|
11521
11511
|
if (forceVisible !== void 0) {
|
|
11522
11512
|
menuState.setVisible(forceVisible);
|
|
11523
11513
|
}
|
|
11524
|
-
});
|
|
11514
|
+
}, [forceVisible, menuState]);
|
|
11515
|
+
React8.useEffect(() => {
|
|
11516
|
+
if (menuState.visible) {
|
|
11517
|
+
setIsRendered(true);
|
|
11518
|
+
}
|
|
11519
|
+
}, [menuState.visible, setIsRendered]);
|
|
11520
|
+
const Wrapper = withoutPortal ? React8.Fragment : Portal;
|
|
11525
11521
|
return /* @__PURE__ */ jsxs15(MenuContext.Provider, { value: menuState, children: [
|
|
11526
11522
|
/* @__PURE__ */ jsx25(MenuButton, { ...menuState, ref: menuTrigger.ref, ...menuTrigger.props, children: (triggerProps) => React8.cloneElement(menuTrigger, triggerProps) }),
|
|
11527
|
-
/* @__PURE__ */ jsx25(
|
|
11523
|
+
/* @__PURE__ */ jsx25(Wrapper, { children: /* @__PURE__ */ jsx25(
|
|
11528
11524
|
BaseMenu,
|
|
11529
11525
|
{
|
|
11530
11526
|
...menuState,
|
|
11527
|
+
focusable: false,
|
|
11531
11528
|
"aria-label": menuLabel,
|
|
11529
|
+
...!isRendered ? { unstable_popoverStyles: { position: "absolute", opacity: "0" } } : void 0,
|
|
11532
11530
|
css: [
|
|
11533
11531
|
menu,
|
|
11534
11532
|
typeof menuItemsContainerCssClasses === "object" ? menuItemsContainerCssClasses : void 0
|
|
@@ -12031,7 +12029,7 @@ var Callout = ({
|
|
|
12031
12029
|
};
|
|
12032
12030
|
|
|
12033
12031
|
// src/components/Card/Card.tsx
|
|
12034
|
-
import { CgMoreAlt } from "react-icons/cg";
|
|
12032
|
+
import { CgMoreAlt } from "@react-icons/all-files/cg/CgMoreAlt";
|
|
12035
12033
|
|
|
12036
12034
|
// src/components/Card/Card.styles.ts
|
|
12037
12035
|
import { css as css29 } from "@emotion/react";
|
|
@@ -12151,7 +12149,7 @@ var CardContainer2 = ({
|
|
|
12151
12149
|
};
|
|
12152
12150
|
|
|
12153
12151
|
// src/components/Card/LoadingCardSkeleton.tsx
|
|
12154
|
-
import { CgMoreAlt as CgMoreAlt2 } from "react-icons/cg";
|
|
12152
|
+
import { CgMoreAlt as CgMoreAlt2 } from "@react-icons/all-files/cg/CgMoreAlt";
|
|
12155
12153
|
|
|
12156
12154
|
// src/components/Layout/styles/Container.styles.ts
|
|
12157
12155
|
import { css as css31 } from "@emotion/react";
|
|
@@ -12345,7 +12343,7 @@ var LoadingCardSkeleton2 = () => {
|
|
|
12345
12343
|
};
|
|
12346
12344
|
|
|
12347
12345
|
// src/components/Chip/Chip.tsx
|
|
12348
|
-
import { CgClose as CgClose3 } from "react-icons/cg";
|
|
12346
|
+
import { CgClose as CgClose3 } from "@react-icons/all-files/cg/CgClose";
|
|
12349
12347
|
|
|
12350
12348
|
// src/components/Chip/Chip.styles.ts
|
|
12351
12349
|
import { css as css36 } from "@emotion/react";
|
|
@@ -12539,7 +12537,7 @@ var ChipActionButton = css36`
|
|
|
12539
12537
|
`;
|
|
12540
12538
|
|
|
12541
12539
|
// src/components/Chip/Chip.tsx
|
|
12542
|
-
import { Fragment as
|
|
12540
|
+
import { Fragment as Fragment6, jsx as jsx37, jsxs as jsxs22 } from "@emotion/react/jsx-runtime";
|
|
12543
12541
|
var chipTheme = {
|
|
12544
12542
|
"accent-light": ChipThemeAccentLight,
|
|
12545
12543
|
"accent-dark": ChipThemeAccentDark,
|
|
@@ -12562,7 +12560,7 @@ var Chip = ({
|
|
|
12562
12560
|
md: ChipMedium
|
|
12563
12561
|
};
|
|
12564
12562
|
return /* @__PURE__ */ jsxs22("span", { css: [ChipContainer, chipSize[size], chipTheme[theme]], ...props, children: [
|
|
12565
|
-
icon ? /* @__PURE__ */ jsxs22(
|
|
12563
|
+
icon ? /* @__PURE__ */ jsxs22(Fragment6, { children: [
|
|
12566
12564
|
/* @__PURE__ */ jsx37("span", { role: "presentation", css: [ChipIcon], children: /* @__PURE__ */ jsx37(Icon, { icon, iconColor: "currentColor", size: "1rem" }) }),
|
|
12567
12565
|
/* @__PURE__ */ jsx37("span", { role: "separator", css: ChipSeparator })
|
|
12568
12566
|
] }) : null,
|
|
@@ -12771,8 +12769,9 @@ var DashedBox = ({
|
|
|
12771
12769
|
};
|
|
12772
12770
|
|
|
12773
12771
|
// src/components/DescriptionList/DescriptionList.tsx
|
|
12772
|
+
import { TbCheck } from "@react-icons/all-files/tb/TbCheck";
|
|
12773
|
+
import { TbMinus } from "@react-icons/all-files/tb/TbMinus";
|
|
12774
12774
|
import React10 from "react";
|
|
12775
|
-
import { TbCheck, TbMinus } from "react-icons/tb";
|
|
12776
12775
|
|
|
12777
12776
|
// src/components/DescriptionList/DescriptionList.styles.ts
|
|
12778
12777
|
import { css as css40 } from "@emotion/react";
|
|
@@ -12818,7 +12817,6 @@ import * as React11 from "react";
|
|
|
12818
12817
|
// src/components/Details/Details.styles.ts
|
|
12819
12818
|
import { css as css41 } from "@emotion/react";
|
|
12820
12819
|
var details = css41`
|
|
12821
|
-
cursor: pointer;
|
|
12822
12820
|
&[open] {
|
|
12823
12821
|
& > summary svg {
|
|
12824
12822
|
rotate: 0deg;
|
|
@@ -12831,6 +12829,7 @@ var detailsContent = css41`
|
|
|
12831
12829
|
`;
|
|
12832
12830
|
var summary = css41`
|
|
12833
12831
|
align-items: center;
|
|
12832
|
+
cursor: pointer;
|
|
12834
12833
|
display: grid;
|
|
12835
12834
|
grid-template-columns: 1.25rem 1fr;
|
|
12836
12835
|
gap: var(--spacing-sm);
|
|
@@ -12897,9 +12896,9 @@ var Details = ({
|
|
|
12897
12896
|
};
|
|
12898
12897
|
|
|
12899
12898
|
// src/components/Drawer/Drawer.tsx
|
|
12900
|
-
import
|
|
12899
|
+
import { CgChevronRight } from "@react-icons/all-files/cg/CgChevronRight";
|
|
12900
|
+
import React13, { createContext as createContext4, useContext as useContext5, useEffect as useEffect5, useRef as useRef3, useState as useState6 } from "react";
|
|
12901
12901
|
import { createPortal } from "react-dom";
|
|
12902
|
-
import { CgChevronRight } from "react-icons/cg";
|
|
12903
12902
|
|
|
12904
12903
|
// src/components/Drawer/Drawer.styles.ts
|
|
12905
12904
|
import { css as css42, keyframes as keyframes2 } from "@emotion/react";
|
|
@@ -13009,7 +13008,7 @@ var drawerWrapperOverlayStyles = css42`
|
|
|
13009
13008
|
`;
|
|
13010
13009
|
|
|
13011
13010
|
// src/components/Drawer/DrawerProvider.tsx
|
|
13012
|
-
import { createContext as createContext3, useCallback, useContext as useContext4, useRef as useRef2, useState as
|
|
13011
|
+
import { createContext as createContext3, useCallback, useContext as useContext4, useRef as useRef2, useState as useState5 } from "react";
|
|
13013
13012
|
import { jsx as jsx43 } from "@emotion/react/jsx-runtime";
|
|
13014
13013
|
var DrawerContext = createContext3({
|
|
13015
13014
|
providerId: "",
|
|
@@ -13023,7 +13022,7 @@ function renderDrawerId(drawer) {
|
|
|
13023
13022
|
return `${drawer.stackId ? `\u{1F95E} ${drawer.stackId} ` : ""}\u{1F194} ${drawer.id}${drawer.instanceKey ? ` \u{1F511} ${drawer.instanceKey}` : ""}`;
|
|
13024
13023
|
}
|
|
13025
13024
|
var DrawerProvider = ({ children }) => {
|
|
13026
|
-
const [drawersRegistry, setDrawersRegistry] =
|
|
13025
|
+
const [drawersRegistry, setDrawersRegistry] = useState5([]);
|
|
13027
13026
|
const providerId = useRef2(crypto.randomUUID());
|
|
13028
13027
|
useShortcut({
|
|
13029
13028
|
handler: () => {
|
|
@@ -13144,7 +13143,7 @@ var DrawerInner = ({
|
|
|
13144
13143
|
}) => {
|
|
13145
13144
|
const { registerDrawer, unregisterDrawer, providerId } = useDrawer();
|
|
13146
13145
|
const closeButtonRef = useRef3(null);
|
|
13147
|
-
const [rendererElement, setRendererElement] =
|
|
13146
|
+
const [rendererElement, setRendererElement] = useState6(null);
|
|
13148
13147
|
useEffect5(() => {
|
|
13149
13148
|
registerDrawer({
|
|
13150
13149
|
drawer: {
|
|
@@ -13253,7 +13252,7 @@ var DrawerContent2 = ({ children, buttonGroup, noPadding = false, ...props }) =>
|
|
|
13253
13252
|
|
|
13254
13253
|
// src/components/Drawer/DrawerRenderer.tsx
|
|
13255
13254
|
import { useEffect as useEffect6, useMemo as useMemo2 } from "react";
|
|
13256
|
-
import { Fragment as
|
|
13255
|
+
import { Fragment as Fragment7, jsx as jsx46, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
|
|
13257
13256
|
var drawerWidth = {
|
|
13258
13257
|
narrow: "29rem",
|
|
13259
13258
|
medium: "43rem",
|
|
@@ -13342,7 +13341,7 @@ var DrawerWrapper = ({
|
|
|
13342
13341
|
offsetInPx = Math.round(maxLayeringInPx * relativeLevel);
|
|
13343
13342
|
}
|
|
13344
13343
|
const calculatedWidth = `calc(${width} - ${offsetInPx}px)`;
|
|
13345
|
-
return /* @__PURE__ */ jsxs28(
|
|
13344
|
+
return /* @__PURE__ */ jsxs28(Fragment7, { children: [
|
|
13346
13345
|
/* @__PURE__ */ jsx46("div", { css: drawerWrapperOverlayStyles, onClick: onOverlayClick }),
|
|
13347
13346
|
/* @__PURE__ */ jsx46(
|
|
13348
13347
|
"div",
|
|
@@ -13474,7 +13473,7 @@ var CheckboxWithInfo = forwardRef4(
|
|
|
13474
13473
|
);
|
|
13475
13474
|
|
|
13476
13475
|
// src/components/Input/ErrorMessage.tsx
|
|
13477
|
-
import { MdWarning } from "react-icons/md";
|
|
13476
|
+
import { MdWarning } from "@react-icons/all-files/md/MdWarning";
|
|
13478
13477
|
|
|
13479
13478
|
// src/components/Input/styles/ErrorMessage.styles.ts
|
|
13480
13479
|
import { css as css46 } from "@emotion/react";
|
|
@@ -13549,7 +13548,7 @@ var Fieldset = React15.forwardRef(
|
|
|
13549
13548
|
);
|
|
13550
13549
|
|
|
13551
13550
|
// src/components/Input/InfoMessage.tsx
|
|
13552
|
-
import { MdInfoOutline } from "react-icons/md";
|
|
13551
|
+
import { MdInfoOutline } from "@react-icons/all-files/md/MdInfoOutline";
|
|
13553
13552
|
|
|
13554
13553
|
// src/components/Input/styles/InfoMessage.styles.tsx
|
|
13555
13554
|
import { css as css48 } from "@emotion/react";
|
|
@@ -13594,7 +13593,7 @@ var Label = ({ children, className, testId, ...props }) => {
|
|
|
13594
13593
|
};
|
|
13595
13594
|
|
|
13596
13595
|
// src/components/Input/WarningMessage.tsx
|
|
13597
|
-
import { MdWarning as MdWarning2 } from "react-icons/md";
|
|
13596
|
+
import { MdWarning as MdWarning2 } from "@react-icons/all-files/md/MdWarning";
|
|
13598
13597
|
|
|
13599
13598
|
// src/components/Input/styles/WarningMessage.styles.tsx
|
|
13600
13599
|
import { css as css49 } from "@emotion/react";
|
|
@@ -13632,52 +13631,60 @@ var Input = React16.forwardRef(
|
|
|
13632
13631
|
labelTestId,
|
|
13633
13632
|
errorTestId,
|
|
13634
13633
|
captionTestId,
|
|
13634
|
+
classNameRoot,
|
|
13635
13635
|
classNameContainer,
|
|
13636
13636
|
classNameControl,
|
|
13637
13637
|
classNameLabel,
|
|
13638
13638
|
...props
|
|
13639
13639
|
}, ref) => {
|
|
13640
|
-
return /* @__PURE__ */ jsxs34(
|
|
13641
|
-
|
|
13642
|
-
|
|
13643
|
-
|
|
13644
|
-
|
|
13645
|
-
|
|
13646
|
-
|
|
13647
|
-
|
|
13648
|
-
|
|
13649
|
-
|
|
13650
|
-
|
|
13651
|
-
|
|
13652
|
-
|
|
13653
|
-
|
|
13654
|
-
|
|
13655
|
-
|
|
13656
|
-
|
|
13657
|
-
|
|
13658
|
-
|
|
13659
|
-
|
|
13660
|
-
|
|
13661
|
-
|
|
13662
|
-
|
|
13663
|
-
|
|
13664
|
-
|
|
13665
|
-
|
|
13666
|
-
|
|
13667
|
-
|
|
13668
|
-
|
|
13669
|
-
|
|
13670
|
-
|
|
13671
|
-
|
|
13672
|
-
|
|
13673
|
-
|
|
13674
|
-
|
|
13675
|
-
|
|
13676
|
-
|
|
13677
|
-
|
|
13678
|
-
|
|
13679
|
-
|
|
13680
|
-
|
|
13640
|
+
return /* @__PURE__ */ jsxs34(
|
|
13641
|
+
"div",
|
|
13642
|
+
{
|
|
13643
|
+
css: [inputContainer, typeof classNameRoot === "object" ? classNameRoot : void 0],
|
|
13644
|
+
"data-testid": containerTestId ? containerTestId : "container-input-field",
|
|
13645
|
+
children: [
|
|
13646
|
+
showLabel ? /* @__PURE__ */ jsx54(
|
|
13647
|
+
Label,
|
|
13648
|
+
{
|
|
13649
|
+
htmlFor: id,
|
|
13650
|
+
css: [labelText, typeof classNameLabel === "object" ? classNameLabel : void 0],
|
|
13651
|
+
className: typeof classNameLabel === "string" ? classNameLabel : "",
|
|
13652
|
+
testId: labelTestId,
|
|
13653
|
+
children: label
|
|
13654
|
+
}
|
|
13655
|
+
) : null,
|
|
13656
|
+
/* @__PURE__ */ jsxs34(
|
|
13657
|
+
"div",
|
|
13658
|
+
{
|
|
13659
|
+
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
13660
|
+
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
13661
|
+
children: [
|
|
13662
|
+
/* @__PURE__ */ jsx54(
|
|
13663
|
+
"input",
|
|
13664
|
+
{
|
|
13665
|
+
id,
|
|
13666
|
+
css: [
|
|
13667
|
+
input("nowrap"),
|
|
13668
|
+
typeof classNameControl === "object" ? classNameControl : void 0,
|
|
13669
|
+
errorMessage ? inputError : void 0,
|
|
13670
|
+
icon ? inputWithIcon : ""
|
|
13671
|
+
],
|
|
13672
|
+
"aria-label": !showLabel ? label : void 0,
|
|
13673
|
+
className: typeof classNameControl === "string" ? classNameControl : "",
|
|
13674
|
+
...props,
|
|
13675
|
+
ref
|
|
13676
|
+
}
|
|
13677
|
+
),
|
|
13678
|
+
icon ? /* @__PURE__ */ jsx54("div", { css: inputIcon, children: icon }) : null
|
|
13679
|
+
]
|
|
13680
|
+
}
|
|
13681
|
+
),
|
|
13682
|
+
caption ? /* @__PURE__ */ jsx54(Caption, { testId: captionTestId, children: caption }) : null,
|
|
13683
|
+
errorMessage ? /* @__PURE__ */ jsx54(ErrorMessage, { message: errorMessage, testId: errorTestId }) : null,
|
|
13684
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx54(WarningMessage, { message: warningMessage }) : null
|
|
13685
|
+
]
|
|
13686
|
+
}
|
|
13687
|
+
);
|
|
13681
13688
|
}
|
|
13682
13689
|
);
|
|
13683
13690
|
|
|
@@ -13816,8 +13823,8 @@ function InputComboBox(props) {
|
|
|
13816
13823
|
|
|
13817
13824
|
// src/components/Input/InputInlineSelect.tsx
|
|
13818
13825
|
import { css as css51 } from "@emotion/react";
|
|
13819
|
-
import {
|
|
13820
|
-
import {
|
|
13826
|
+
import { CgChevronDown as CgChevronDown2 } from "@react-icons/all-files/cg/CgChevronDown";
|
|
13827
|
+
import { useRef as useRef4, useState as useState7 } from "react";
|
|
13821
13828
|
|
|
13822
13829
|
// src/components/Input/styles/InputInlineSelect.styles.ts
|
|
13823
13830
|
import { css as css50 } from "@emotion/react";
|
|
@@ -13896,7 +13903,7 @@ var InputInlineSelect = ({
|
|
|
13896
13903
|
...props
|
|
13897
13904
|
}) => {
|
|
13898
13905
|
var _a;
|
|
13899
|
-
const [menuVisible, setMenuVisible] =
|
|
13906
|
+
const [menuVisible, setMenuVisible] = useState7(false);
|
|
13900
13907
|
const divRef = useRef4(null);
|
|
13901
13908
|
useOutsideClick(divRef, () => setMenuVisible(false));
|
|
13902
13909
|
const selected = options.find((option) => option.value === value);
|
|
@@ -13956,7 +13963,8 @@ var InputInlineSelect = ({
|
|
|
13956
13963
|
};
|
|
13957
13964
|
|
|
13958
13965
|
// src/components/Input/InputKeywordSearch.tsx
|
|
13959
|
-
import { CgClose as CgClose4
|
|
13966
|
+
import { CgClose as CgClose4 } from "@react-icons/all-files/cg/CgClose";
|
|
13967
|
+
import { CgSearch } from "@react-icons/all-files/cg/CgSearch";
|
|
13960
13968
|
import { jsx as jsx57 } from "@emotion/react/jsx-runtime";
|
|
13961
13969
|
var InputKeywordSearch = ({
|
|
13962
13970
|
onSearchTextChanged,
|
|
@@ -14004,7 +14012,7 @@ var InputKeywordSearch = ({
|
|
|
14004
14012
|
};
|
|
14005
14013
|
|
|
14006
14014
|
// src/components/Input/InputSelect.tsx
|
|
14007
|
-
import { Fragment as
|
|
14015
|
+
import { Fragment as Fragment8, jsx as jsx58, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
14008
14016
|
var InputSelect = ({
|
|
14009
14017
|
label,
|
|
14010
14018
|
defaultOption,
|
|
@@ -14026,7 +14034,7 @@ var InputSelect = ({
|
|
|
14026
14034
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
14027
14035
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
14028
14036
|
children: [
|
|
14029
|
-
showLabel ? /* @__PURE__ */ jsx58(
|
|
14037
|
+
showLabel ? /* @__PURE__ */ jsx58(Fragment8, { children: /* @__PURE__ */ jsxs36(
|
|
14030
14038
|
Label,
|
|
14031
14039
|
{
|
|
14032
14040
|
htmlFor: props.id,
|
|
@@ -14120,7 +14128,7 @@ var Legend = ({ children }) => {
|
|
|
14120
14128
|
};
|
|
14121
14129
|
|
|
14122
14130
|
// src/components/Input/SuccessMessage.tsx
|
|
14123
|
-
import { CgCheckO } from "react-icons/cg";
|
|
14131
|
+
import { CgCheckO } from "@react-icons/all-files/cg/CgCheckO";
|
|
14124
14132
|
|
|
14125
14133
|
// src/components/Input/styles/SuccessMessage.styles.ts
|
|
14126
14134
|
import { css as css52 } from "@emotion/react";
|
|
@@ -14148,10 +14156,10 @@ var SuccessMessage = ({ message, testId, ...props }) => {
|
|
|
14148
14156
|
|
|
14149
14157
|
// src/components/Input/Textarea.tsx
|
|
14150
14158
|
import { forwardRef as forwardRef8 } from "react";
|
|
14151
|
-
import { Fragment as
|
|
14159
|
+
import { Fragment as Fragment9, jsx as jsx62, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
14152
14160
|
var Textarea = forwardRef8(
|
|
14153
14161
|
({ label, icon, id, caption, showLabel = true, errorMessage, warningMessage, ...props }, ref) => {
|
|
14154
|
-
return /* @__PURE__ */ jsxs39(
|
|
14162
|
+
return /* @__PURE__ */ jsxs39(Fragment9, { children: [
|
|
14155
14163
|
showLabel ? /* @__PURE__ */ jsx62("label", { htmlFor: id, css: [labelText], children: label }) : null,
|
|
14156
14164
|
/* @__PURE__ */ jsxs39("div", { css: [inputContainer], children: [
|
|
14157
14165
|
/* @__PURE__ */ jsx62(
|
|
@@ -14180,7 +14188,8 @@ var Textarea = forwardRef8(
|
|
|
14180
14188
|
|
|
14181
14189
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
14182
14190
|
import { css as css54 } from "@emotion/react";
|
|
14183
|
-
import { CgAdd as CgAdd2
|
|
14191
|
+
import { CgAdd as CgAdd2 } from "@react-icons/all-files/cg/CgAdd";
|
|
14192
|
+
import { CgChevronRight as CgChevronRight2 } from "@react-icons/all-files/cg/CgChevronRight";
|
|
14184
14193
|
|
|
14185
14194
|
// src/components/Tiles/styles/IntegrationTile.styles.ts
|
|
14186
14195
|
import { css as css53 } from "@emotion/react";
|
|
@@ -14360,7 +14369,9 @@ var CreateTeamIntegrationTile = ({
|
|
|
14360
14369
|
};
|
|
14361
14370
|
|
|
14362
14371
|
// src/components/Tiles/IntegrationBadges.tsx
|
|
14363
|
-
import { CgCheck
|
|
14372
|
+
import { CgCheck } from "@react-icons/all-files/cg/CgCheck";
|
|
14373
|
+
import { CgLock } from "@react-icons/all-files/cg/CgLock";
|
|
14374
|
+
import { CgSandClock } from "@react-icons/all-files/cg/CgSandClock";
|
|
14364
14375
|
import { jsx as jsx64, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
14365
14376
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
14366
14377
|
return /* @__PURE__ */ jsxs41("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
@@ -14437,8 +14448,8 @@ var EditTeamIntegrationTile = ({
|
|
|
14437
14448
|
|
|
14438
14449
|
// src/components/Tiles/IntegrationComingSoon.tsx
|
|
14439
14450
|
import { css as css55 } from "@emotion/react";
|
|
14440
|
-
import {
|
|
14441
|
-
import {
|
|
14451
|
+
import { CgHeart } from "@react-icons/all-files/cg/CgHeart";
|
|
14452
|
+
import { useEffect as useEffect7, useState as useState8 } from "react";
|
|
14442
14453
|
import { jsx as jsx67, jsxs as jsxs43 } from "@emotion/react/jsx-runtime";
|
|
14443
14454
|
var IntegrationComingSoon = ({
|
|
14444
14455
|
name,
|
|
@@ -14448,7 +14459,7 @@ var IntegrationComingSoon = ({
|
|
|
14448
14459
|
timing = 1e3,
|
|
14449
14460
|
...props
|
|
14450
14461
|
}) => {
|
|
14451
|
-
const [upVote, setUpVote] =
|
|
14462
|
+
const [upVote, setUpVote] = useState8(false);
|
|
14452
14463
|
const handleUpVoteInteraction = () => {
|
|
14453
14464
|
setUpVote((prev) => !prev);
|
|
14454
14465
|
onUpVoteClick();
|
|
@@ -14549,10 +14560,10 @@ var IntegrationLoadingFrame = css56`
|
|
|
14549
14560
|
`;
|
|
14550
14561
|
|
|
14551
14562
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
14552
|
-
import { Fragment as
|
|
14563
|
+
import { Fragment as Fragment10, jsx as jsx68, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
14553
14564
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
14554
14565
|
const componentCount = Array.from(Array(count).keys());
|
|
14555
|
-
return /* @__PURE__ */ jsx68(
|
|
14566
|
+
return /* @__PURE__ */ jsx68(Fragment10, { children: componentCount.map((i) => /* @__PURE__ */ jsxs44("div", { css: IntegrationLoadingTileContainer, children: [
|
|
14556
14567
|
/* @__PURE__ */ jsx68("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
14557
14568
|
/* @__PURE__ */ jsx68("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
14558
14569
|
] }, i)) });
|
|
@@ -14774,7 +14785,7 @@ var IntegrationModalHeaderContentWrapper = css61`
|
|
|
14774
14785
|
`;
|
|
14775
14786
|
|
|
14776
14787
|
// src/components/IntegrationModalHeader/IntegrationModalHeader.tsx
|
|
14777
|
-
import { Fragment as
|
|
14788
|
+
import { Fragment as Fragment11, jsx as jsx74, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
14778
14789
|
var HexModalBackground = ({ ...props }) => {
|
|
14779
14790
|
return /* @__PURE__ */ jsxs47(
|
|
14780
14791
|
"svg",
|
|
@@ -14815,7 +14826,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14815
14826
|
);
|
|
14816
14827
|
};
|
|
14817
14828
|
var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
14818
|
-
return /* @__PURE__ */ jsxs47(
|
|
14829
|
+
return /* @__PURE__ */ jsxs47(Fragment11, { children: [
|
|
14819
14830
|
/* @__PURE__ */ jsx74(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
14820
14831
|
/* @__PURE__ */ jsx74("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs47("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
14821
14832
|
icon ? /* @__PURE__ */ jsx74(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
@@ -15027,7 +15038,7 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
15027
15038
|
};
|
|
15028
15039
|
|
|
15029
15040
|
// src/components/List/ScrollableListInputItem.tsx
|
|
15030
|
-
import { CgCheck as CgCheck2 } from "react-icons/cg";
|
|
15041
|
+
import { CgCheck as CgCheck2 } from "@react-icons/all-files/cg/CgCheck";
|
|
15031
15042
|
|
|
15032
15043
|
// src/components/List/styles/ScrollableListItem.styles.ts
|
|
15033
15044
|
import { css as css66 } from "@emotion/react";
|
|
@@ -15136,7 +15147,7 @@ var ScrollableListInputItem = ({
|
|
|
15136
15147
|
};
|
|
15137
15148
|
|
|
15138
15149
|
// src/components/List/ScrollableListItem.tsx
|
|
15139
|
-
import { CgCheck as CgCheck3 } from "react-icons/cg";
|
|
15150
|
+
import { CgCheck as CgCheck3 } from "@react-icons/all-files/cg/CgCheck";
|
|
15140
15151
|
import { jsx as jsx80, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
15141
15152
|
var ScrollableListItem = ({
|
|
15142
15153
|
buttonText,
|
|
@@ -15348,8 +15359,8 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
15348
15359
|
};
|
|
15349
15360
|
|
|
15350
15361
|
// src/components/Modal/Modal.tsx
|
|
15362
|
+
import { CgClose as CgClose5 } from "@react-icons/all-files/cg/CgClose";
|
|
15351
15363
|
import React19 from "react";
|
|
15352
|
-
import { CgClose as CgClose5 } from "react-icons/cg";
|
|
15353
15364
|
|
|
15354
15365
|
// src/components/Modal/Modal.styles.ts
|
|
15355
15366
|
import { css as css69 } from "@emotion/react";
|
|
@@ -15437,6 +15448,7 @@ var Modal = React19.forwardRef(
|
|
|
15437
15448
|
css: modalCloseButtonStyles,
|
|
15438
15449
|
title: "Close dialog",
|
|
15439
15450
|
buttonType: "ghost",
|
|
15451
|
+
"data-testid": "close-dialog",
|
|
15440
15452
|
children: /* @__PURE__ */ jsx83(Icon, { icon: CgClose5, iconColor: "gray", size: 24 })
|
|
15441
15453
|
}
|
|
15442
15454
|
)
|
|
@@ -15897,7 +15909,8 @@ var ParameterGroup = forwardRef9(
|
|
|
15897
15909
|
import { forwardRef as forwardRef11, useDeferredValue } from "react";
|
|
15898
15910
|
|
|
15899
15911
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
15900
|
-
import { useCallback as useCallback3, useEffect as useEffect9, useState as
|
|
15912
|
+
import { useCallback as useCallback3, useEffect as useEffect9, useState as useState9 } from "react";
|
|
15913
|
+
import { createPortal as createPortal2 } from "react-dom";
|
|
15901
15914
|
|
|
15902
15915
|
// src/utils/url.ts
|
|
15903
15916
|
var isValidUrl = (url, options = {}) => {
|
|
@@ -15975,9 +15988,9 @@ var previewModalImage = css74`
|
|
|
15975
15988
|
`;
|
|
15976
15989
|
|
|
15977
15990
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
15978
|
-
import { Fragment as
|
|
15991
|
+
import { Fragment as Fragment12, jsx as jsx88, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
|
|
15979
15992
|
function ParameterImagePreview({ imageSrc }) {
|
|
15980
|
-
const [showModal, setShowModal] =
|
|
15993
|
+
const [showModal, setShowModal] = useState9(false);
|
|
15981
15994
|
return imageSrc ? /* @__PURE__ */ jsxs60("div", { css: previewWrapper, children: [
|
|
15982
15995
|
/* @__PURE__ */ jsx88(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
|
|
15983
15996
|
/* @__PURE__ */ jsx88(
|
|
@@ -15993,20 +16006,23 @@ function ParameterImagePreview({ imageSrc }) {
|
|
|
15993
16006
|
] }) : null;
|
|
15994
16007
|
}
|
|
15995
16008
|
var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
15996
|
-
return open ? /* @__PURE__ */ jsx88(
|
|
15997
|
-
|
|
15998
|
-
|
|
15999
|
-
|
|
16000
|
-
|
|
16001
|
-
|
|
16002
|
-
|
|
16003
|
-
|
|
16004
|
-
|
|
16005
|
-
|
|
16009
|
+
return open ? /* @__PURE__ */ jsx88(Fragment12, { children: createPortal2(
|
|
16010
|
+
/* @__PURE__ */ jsx88(
|
|
16011
|
+
Modal,
|
|
16012
|
+
{
|
|
16013
|
+
header: "Image Preview",
|
|
16014
|
+
onRequestClose,
|
|
16015
|
+
withoutContentPadding: true,
|
|
16016
|
+
buttonGroup: /* @__PURE__ */ jsx88(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
|
|
16017
|
+
children: /* @__PURE__ */ jsx88("div", { css: previewModalWrapper, children: /* @__PURE__ */ jsx88(Image, { src: imageSrc, css: previewModalImage }) })
|
|
16018
|
+
}
|
|
16019
|
+
),
|
|
16020
|
+
document.body
|
|
16021
|
+
) }) : null;
|
|
16006
16022
|
};
|
|
16007
16023
|
var Image = ({ src, className }) => {
|
|
16008
|
-
const [loading, setLoading] =
|
|
16009
|
-
const [loadErrorText, setLoadErrorText] =
|
|
16024
|
+
const [loading, setLoading] = useState9(false);
|
|
16025
|
+
const [loadErrorText, setLoadErrorText] = useState9("");
|
|
16010
16026
|
const errorText = "The text you provided is not a valid URL";
|
|
16011
16027
|
const updateImageSrc = useCallback3(() => {
|
|
16012
16028
|
let message = "";
|
|
@@ -16057,7 +16073,7 @@ var Image = ({ src, className }) => {
|
|
|
16057
16073
|
"data-testid": "parameter-image-preview"
|
|
16058
16074
|
}
|
|
16059
16075
|
) : null,
|
|
16060
|
-
src && loadErrorText ? /* @__PURE__ */ jsxs60(
|
|
16076
|
+
src && loadErrorText ? /* @__PURE__ */ jsxs60(Fragment12, { children: [
|
|
16061
16077
|
/* @__PURE__ */ jsx88(BrokenImage, { css: [brokenImage, img, imgLoaded] }),
|
|
16062
16078
|
/* @__PURE__ */ jsx88(ErrorMessage, { message: loadErrorText })
|
|
16063
16079
|
] }) : null
|
|
@@ -16099,7 +16115,7 @@ var BrokenImage = ({ ...props }) => {
|
|
|
16099
16115
|
};
|
|
16100
16116
|
|
|
16101
16117
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
16102
|
-
import { useState as
|
|
16118
|
+
import { useState as useState10 } from "react";
|
|
16103
16119
|
|
|
16104
16120
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
16105
16121
|
import { jsx as jsx89 } from "@emotion/react/jsx-runtime";
|
|
@@ -16219,7 +16235,7 @@ var ParameterShell = ({
|
|
|
16219
16235
|
children,
|
|
16220
16236
|
...props
|
|
16221
16237
|
}) => {
|
|
16222
|
-
const [manualErrorMessage, setManualErrorMessage] =
|
|
16238
|
+
const [manualErrorMessage, setManualErrorMessage] = useState10(void 0);
|
|
16223
16239
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
16224
16240
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
16225
16241
|
return /* @__PURE__ */ jsxs61("div", { css: inputContainer2, ...props, children: [
|
|
@@ -16262,7 +16278,7 @@ var ParameterShellPlaceholder = ({ children }) => {
|
|
|
16262
16278
|
var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx91(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx91("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx91("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
16263
16279
|
|
|
16264
16280
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
16265
|
-
import { Fragment as
|
|
16281
|
+
import { Fragment as Fragment13, jsx as jsx92, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
|
|
16266
16282
|
var ParameterImage = forwardRef11(
|
|
16267
16283
|
({ children, ...props }, ref) => {
|
|
16268
16284
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
@@ -16276,7 +16292,7 @@ var ParameterImageInner = forwardRef11((props, ref) => {
|
|
|
16276
16292
|
const { value } = props;
|
|
16277
16293
|
const { id, label, hiddenLabel, errorMessage } = useParameterShell();
|
|
16278
16294
|
const deferredValue = useDeferredValue(value);
|
|
16279
|
-
return /* @__PURE__ */ jsxs62(
|
|
16295
|
+
return /* @__PURE__ */ jsxs62(Fragment13, { children: [
|
|
16280
16296
|
/* @__PURE__ */ jsx92(
|
|
16281
16297
|
"input",
|
|
16282
16298
|
{
|
|
@@ -16391,7 +16407,7 @@ var ParameterLinkInner = forwardRef13(
|
|
|
16391
16407
|
);
|
|
16392
16408
|
|
|
16393
16409
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
16394
|
-
import { Fragment as
|
|
16410
|
+
import { Fragment as Fragment14, jsx as jsx95, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
|
|
16395
16411
|
var ParameterNameAndPublicIdInput = ({
|
|
16396
16412
|
id,
|
|
16397
16413
|
onBlur,
|
|
@@ -16417,7 +16433,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16417
16433
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
16418
16434
|
};
|
|
16419
16435
|
autoFocus == null ? void 0 : autoFocus();
|
|
16420
|
-
return /* @__PURE__ */ jsxs64(
|
|
16436
|
+
return /* @__PURE__ */ jsxs64(Fragment14, { children: [
|
|
16421
16437
|
/* @__PURE__ */ jsx95(
|
|
16422
16438
|
ParameterInput,
|
|
16423
16439
|
{
|
|
@@ -16815,13 +16831,17 @@ import {
|
|
|
16815
16831
|
ElementNode as ElementNode2,
|
|
16816
16832
|
FOCUS_COMMAND
|
|
16817
16833
|
} from "lexical";
|
|
16818
|
-
import { useCallback as useCallback4, useEffect as useEffect11, useRef as useRef6, useState as
|
|
16834
|
+
import { useCallback as useCallback4, useEffect as useEffect11, useRef as useRef6, useState as useState11 } from "react";
|
|
16819
16835
|
|
|
16820
16836
|
// src/components/Popover/Popover.styles.ts
|
|
16821
16837
|
import { css as css77 } from "@emotion/react";
|
|
16822
16838
|
var PopoverBtn = css77`
|
|
16823
16839
|
border: none;
|
|
16824
16840
|
background: none;
|
|
16841
|
+
`;
|
|
16842
|
+
var PopoverDefaulterTriggerBtn = css77`
|
|
16843
|
+
border: none;
|
|
16844
|
+
background: none;
|
|
16825
16845
|
padding: var(--spacing-2xs);
|
|
16826
16846
|
border-radius: var(--rounded-full);
|
|
16827
16847
|
|
|
@@ -16878,7 +16898,7 @@ var getSelectedNode = (selection) => {
|
|
|
16878
16898
|
};
|
|
16879
16899
|
|
|
16880
16900
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
16881
|
-
import { Fragment as
|
|
16901
|
+
import { Fragment as Fragment15, jsx as jsx96, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
|
|
16882
16902
|
var isProjectMapLinkValue = (value) => {
|
|
16883
16903
|
return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
|
|
16884
16904
|
value.nodeId && value.path && value.projectMapId
|
|
@@ -17183,10 +17203,10 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17183
17203
|
return path;
|
|
17184
17204
|
};
|
|
17185
17205
|
const [editor] = useLexicalComposerContext2();
|
|
17186
|
-
const [linkPopoverState, setLinkPopoverState] =
|
|
17206
|
+
const [linkPopoverState, setLinkPopoverState] = useState11();
|
|
17187
17207
|
const linkPopoverElRef = useRef6(null);
|
|
17188
|
-
const [isEditorFocused, setIsEditorFocused] =
|
|
17189
|
-
const [isLinkPopoverFocused, setIsLinkPopoverFocused] =
|
|
17208
|
+
const [isEditorFocused, setIsEditorFocused] = useState11(false);
|
|
17209
|
+
const [isLinkPopoverFocused, setIsLinkPopoverFocused] = useState11(false);
|
|
17190
17210
|
useEffect11(() => {
|
|
17191
17211
|
if (!isEditorFocused && !isLinkPopoverFocused) {
|
|
17192
17212
|
setLinkPopoverState(void 0);
|
|
@@ -17321,7 +17341,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17321
17341
|
});
|
|
17322
17342
|
});
|
|
17323
17343
|
};
|
|
17324
|
-
return /* @__PURE__ */ jsxs65(
|
|
17344
|
+
return /* @__PURE__ */ jsxs65(Fragment15, { children: [
|
|
17325
17345
|
/* @__PURE__ */ jsx96(
|
|
17326
17346
|
NodeEventPlugin,
|
|
17327
17347
|
{
|
|
@@ -17443,8 +17463,8 @@ import {
|
|
|
17443
17463
|
FORMAT_TEXT_COMMAND,
|
|
17444
17464
|
SELECTION_CHANGE_COMMAND
|
|
17445
17465
|
} from "lexical";
|
|
17446
|
-
import { useCallback as useCallback5, useEffect as useEffect13, useMemo as useMemo3, useState as
|
|
17447
|
-
import { Fragment as
|
|
17466
|
+
import { useCallback as useCallback5, useEffect as useEffect13, useMemo as useMemo3, useState as useState12 } from "react";
|
|
17467
|
+
import { Fragment as Fragment16, jsx as jsx98, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
|
|
17448
17468
|
var toolbar = css79`
|
|
17449
17469
|
background: var(--gray-50);
|
|
17450
17470
|
border-radius: var(--rounded-base);
|
|
@@ -17681,7 +17701,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
17681
17701
|
children: /* @__PURE__ */ jsx98(RichTextToolbarIcon, { icon: "link" })
|
|
17682
17702
|
}
|
|
17683
17703
|
) }) : null,
|
|
17684
|
-
visibleLists.size > 0 ? /* @__PURE__ */ jsxs66(
|
|
17704
|
+
visibleLists.size > 0 ? /* @__PURE__ */ jsxs66(Fragment16, { children: [
|
|
17685
17705
|
visibleLists.has("unorderedList") ? /* @__PURE__ */ jsx98(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ jsx98(
|
|
17686
17706
|
"button",
|
|
17687
17707
|
{
|
|
@@ -17754,7 +17774,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
17754
17774
|
const enabledBuiltInFormatsWithoutIcon = enabledBuiltInFormats.filter(
|
|
17755
17775
|
(format) => !FORMATS_WITH_ICON.has(format.type)
|
|
17756
17776
|
);
|
|
17757
|
-
const [activeFormats, setActiveFormats] =
|
|
17777
|
+
const [activeFormats, setActiveFormats] = useState12([]);
|
|
17758
17778
|
const visibleFormatsWithIcon = useMemo3(() => {
|
|
17759
17779
|
const visibleFormats = /* @__PURE__ */ new Set();
|
|
17760
17780
|
activeFormats.filter((type) => FORMATS_WITH_ICON.has(type)).forEach((type) => {
|
|
@@ -17775,7 +17795,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
17775
17795
|
});
|
|
17776
17796
|
return richTextBuiltInFormats.filter((format) => visibleFormats.has(format.type));
|
|
17777
17797
|
}, [activeFormats, enabledBuiltInFormatsWithoutIcon]);
|
|
17778
|
-
const [activeElement, setActiveElement] =
|
|
17798
|
+
const [activeElement, setActiveElement] = useState12("paragraph");
|
|
17779
17799
|
const enabledTextualElements = enabledBuiltInElements.filter(
|
|
17780
17800
|
(element) => TEXTUAL_ELEMENTS.includes(element.type)
|
|
17781
17801
|
);
|
|
@@ -17790,7 +17810,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
17790
17810
|
}
|
|
17791
17811
|
);
|
|
17792
17812
|
}, [activeElement, (_a = config == null ? void 0 : config.elements) == null ? void 0 : _a.builtIn, enabledTextualElements]);
|
|
17793
|
-
const [isLink, setIsLink] =
|
|
17813
|
+
const [isLink, setIsLink] = useState12(false);
|
|
17794
17814
|
const linkElementVisible = useMemo3(() => {
|
|
17795
17815
|
return enabledBuiltInElements.some((element) => element.type === "link") || isLink;
|
|
17796
17816
|
}, [isLink, enabledBuiltInElements]);
|
|
@@ -17844,7 +17864,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
17844
17864
|
};
|
|
17845
17865
|
|
|
17846
17866
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
17847
|
-
import { Fragment as
|
|
17867
|
+
import { Fragment as Fragment17, jsx as jsx99, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
|
|
17848
17868
|
var ParameterRichText = ({
|
|
17849
17869
|
label,
|
|
17850
17870
|
labelLeadingIcon,
|
|
@@ -17901,7 +17921,7 @@ var ParameterRichText = ({
|
|
|
17901
17921
|
children
|
|
17902
17922
|
}
|
|
17903
17923
|
),
|
|
17904
|
-
menuItems ? /* @__PURE__ */ jsx99(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx99(
|
|
17924
|
+
menuItems ? /* @__PURE__ */ jsx99(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx99(Fragment17, { children: menuItems }) }) : null
|
|
17905
17925
|
]
|
|
17906
17926
|
}
|
|
17907
17927
|
);
|
|
@@ -18012,7 +18032,7 @@ var ParameterRichTextInner = ({
|
|
|
18012
18032
|
},
|
|
18013
18033
|
editable: !readOnly
|
|
18014
18034
|
};
|
|
18015
|
-
return /* @__PURE__ */ jsxs67(
|
|
18035
|
+
return /* @__PURE__ */ jsxs67(Fragment17, { children: [
|
|
18016
18036
|
/* @__PURE__ */ jsx99("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx99(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx99(
|
|
18017
18037
|
RichText,
|
|
18018
18038
|
{
|
|
@@ -18069,7 +18089,7 @@ var RichText = ({
|
|
|
18069
18089
|
removeUpdateListener();
|
|
18070
18090
|
};
|
|
18071
18091
|
}, []);
|
|
18072
|
-
return /* @__PURE__ */ jsxs67(
|
|
18092
|
+
return /* @__PURE__ */ jsxs67(Fragment17, { children: [
|
|
18073
18093
|
readOnly ? null : /* @__PURE__ */ jsx99(RichTextToolbar_default, { config, customControls }),
|
|
18074
18094
|
/* @__PURE__ */ jsxs67("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
|
|
18075
18095
|
/* @__PURE__ */ jsx99(
|
|
@@ -18095,7 +18115,7 @@ var RichText = ({
|
|
|
18095
18115
|
/* @__PURE__ */ jsx99(ListIndentPlugin, { maxDepth: 4 }),
|
|
18096
18116
|
/* @__PURE__ */ jsx99(DisableStylesPlugin, {}),
|
|
18097
18117
|
/* @__PURE__ */ jsx99(MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
|
|
18098
|
-
/* @__PURE__ */ jsx99(
|
|
18118
|
+
/* @__PURE__ */ jsx99(Fragment17, { children })
|
|
18099
18119
|
] })
|
|
18100
18120
|
] });
|
|
18101
18121
|
};
|
|
@@ -18176,7 +18196,7 @@ import {
|
|
|
18176
18196
|
PopoverDisclosure,
|
|
18177
18197
|
usePopoverState
|
|
18178
18198
|
} from "reakit/Popover";
|
|
18179
|
-
import { Fragment as
|
|
18199
|
+
import { Fragment as Fragment18, jsx as jsx103, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
18180
18200
|
var Popover2 = ({
|
|
18181
18201
|
iconColor = "action",
|
|
18182
18202
|
icon = "info",
|
|
@@ -18185,23 +18205,35 @@ var Popover2 = ({
|
|
|
18185
18205
|
ariaLabel,
|
|
18186
18206
|
placement = "bottom",
|
|
18187
18207
|
testId,
|
|
18208
|
+
trigger,
|
|
18188
18209
|
children,
|
|
18189
18210
|
...otherProps
|
|
18190
18211
|
}) => {
|
|
18191
18212
|
const popover = usePopoverState({ placement });
|
|
18192
|
-
return /* @__PURE__ */ jsxs70(
|
|
18193
|
-
/* @__PURE__ */
|
|
18194
|
-
|
|
18195
|
-
|
|
18196
|
-
|
|
18213
|
+
return /* @__PURE__ */ jsxs70(Fragment18, { children: [
|
|
18214
|
+
/* @__PURE__ */ jsx103(
|
|
18215
|
+
PopoverDisclosure,
|
|
18216
|
+
{
|
|
18217
|
+
...popover,
|
|
18218
|
+
css: [PopoverBtn, trigger ? void 0 : PopoverDefaulterTriggerBtn],
|
|
18219
|
+
title: buttonText,
|
|
18220
|
+
"data-testid": testId,
|
|
18221
|
+
children: trigger ? trigger : /* @__PURE__ */ jsxs70(Fragment18, { children: [
|
|
18222
|
+
/* @__PURE__ */ jsx103(Icon, { icon, iconColor, size: iconSize }),
|
|
18223
|
+
/* @__PURE__ */ jsx103("span", { hidden: true, children: buttonText })
|
|
18224
|
+
] })
|
|
18225
|
+
}
|
|
18226
|
+
),
|
|
18197
18227
|
/* @__PURE__ */ jsx103(ReakitPopover, { css: Popover, ...otherProps, ...popover, role: "tooltip", "aria-label": ariaLabel, children })
|
|
18198
18228
|
] });
|
|
18199
18229
|
};
|
|
18200
18230
|
|
|
18201
18231
|
// src/components/ProgressList/ProgressList.tsx
|
|
18202
18232
|
import { css as css82 } from "@emotion/react";
|
|
18233
|
+
import { CgCheckO as CgCheckO2 } from "@react-icons/all-files/cg/CgCheckO";
|
|
18234
|
+
import { CgRadioCheck } from "@react-icons/all-files/cg/CgRadioCheck";
|
|
18235
|
+
import { CgRecord } from "@react-icons/all-files/cg/CgRecord";
|
|
18203
18236
|
import { useMemo as useMemo4 } from "react";
|
|
18204
|
-
import { CgCheckO as CgCheckO2, CgRadioCheck, CgRecord } from "react-icons/cg";
|
|
18205
18237
|
|
|
18206
18238
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
18207
18239
|
import { css as css81 } from "@emotion/react";
|
|
@@ -18253,7 +18285,7 @@ var ProgressListItem = ({
|
|
|
18253
18285
|
errorLevel = "danger",
|
|
18254
18286
|
autoEllipsis = false
|
|
18255
18287
|
}) => {
|
|
18256
|
-
const
|
|
18288
|
+
const icon = useMemo4(() => {
|
|
18257
18289
|
if (error) {
|
|
18258
18290
|
return warningIcon;
|
|
18259
18291
|
}
|
|
@@ -18292,7 +18324,7 @@ var ProgressListItem = ({
|
|
|
18292
18324
|
return colorPerStatus[status];
|
|
18293
18325
|
}, [status, error, errorLevel]);
|
|
18294
18326
|
return /* @__PURE__ */ jsxs71("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
18295
|
-
/* @__PURE__ */ jsx104(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx104("div", { children: /* @__PURE__ */ jsx104(
|
|
18327
|
+
/* @__PURE__ */ jsx104(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx104("div", { children: /* @__PURE__ */ jsx104(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
|
|
18296
18328
|
/* @__PURE__ */ jsxs71("div", { children: [
|
|
18297
18329
|
children,
|
|
18298
18330
|
/* @__PURE__ */ jsx104("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
@@ -18302,8 +18334,8 @@ var ProgressListItem = ({
|
|
|
18302
18334
|
|
|
18303
18335
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
18304
18336
|
import { css as css84 } from "@emotion/react";
|
|
18337
|
+
import { CgCheck as CgCheck4 } from "@react-icons/all-files/cg/CgCheck";
|
|
18305
18338
|
import { useCallback as useCallback6, useMemo as useMemo5 } from "react";
|
|
18306
|
-
import { CgCheck as CgCheck4 } from "react-icons/cg";
|
|
18307
18339
|
|
|
18308
18340
|
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
18309
18341
|
import { css as css83 } from "@emotion/react";
|
|
@@ -18493,7 +18525,7 @@ var SegmentedControl = ({
|
|
|
18493
18525
|
),
|
|
18494
18526
|
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx105(CgCheck4, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
18495
18527
|
/* @__PURE__ */ jsxs72("span", { css: segmentedControlLabelContentStyles, children: [
|
|
18496
|
-
!option.icon ? null : /* @__PURE__ */ jsx105(option.icon,
|
|
18528
|
+
!option.icon ? null : /* @__PURE__ */ jsx105(Icon, { icon: option.icon, size: "1.5em", iconColor: "currentColor" }),
|
|
18497
18529
|
!text ? null : /* @__PURE__ */ jsx105("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
18498
18530
|
] })
|
|
18499
18531
|
]
|
|
@@ -18635,14 +18667,14 @@ var SwitchText = css86`
|
|
|
18635
18667
|
`;
|
|
18636
18668
|
|
|
18637
18669
|
// src/components/Switch/Switch.tsx
|
|
18638
|
-
import { Fragment as
|
|
18670
|
+
import { Fragment as Fragment19, jsx as jsx107, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
|
|
18639
18671
|
var Switch = React23.forwardRef(
|
|
18640
18672
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
18641
18673
|
let additionalText = infoText;
|
|
18642
18674
|
if (infoText && toggleText) {
|
|
18643
18675
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
18644
18676
|
}
|
|
18645
|
-
return /* @__PURE__ */ jsxs73(
|
|
18677
|
+
return /* @__PURE__ */ jsxs73(Fragment19, { children: [
|
|
18646
18678
|
/* @__PURE__ */ jsxs73("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
18647
18679
|
/* @__PURE__ */ jsx107("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
18648
18680
|
/* @__PURE__ */ jsx107("span", { css: SwitchInputLabel, children: label })
|