@uniformdev/design-system 19.146.2 → 19.147.1-alpha.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/index.js +523 -473
- package/dist/index.d.mts +22 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.js +1154 -1101
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -99,6 +99,16 @@ var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
|
|
|
99
99
|
--typography-inactive: var(--gray-300);
|
|
100
100
|
--typography-inverted: var(--white);
|
|
101
101
|
|
|
102
|
+
/* chart colours */
|
|
103
|
+
--charting-chart-1: #ffa600;
|
|
104
|
+
--charting-chart-2: #c444b2;
|
|
105
|
+
--charting-chart-3: #ff5368;
|
|
106
|
+
--charting-chart-4: #f53d90;
|
|
107
|
+
--charting-chart-5: #ff7b3d;
|
|
108
|
+
|
|
109
|
+
/* utility colours */
|
|
110
|
+
--utility-success: #4ade80;
|
|
111
|
+
--utility-danger: #f87171;
|
|
102
112
|
|
|
103
113
|
/* off brand */
|
|
104
114
|
--input-border: rgba(31, 43, 52, 0.5);
|
|
@@ -2540,6 +2550,31 @@ var filterAdd = GenIcon({
|
|
|
2540
2550
|
}
|
|
2541
2551
|
]
|
|
2542
2552
|
});
|
|
2553
|
+
var refreshIcon = GenIcon({
|
|
2554
|
+
tag: "svg",
|
|
2555
|
+
attr: {
|
|
2556
|
+
role: "img",
|
|
2557
|
+
viewBox: "0 0 12 12"
|
|
2558
|
+
},
|
|
2559
|
+
child: [
|
|
2560
|
+
{
|
|
2561
|
+
tag: "path",
|
|
2562
|
+
attr: {
|
|
2563
|
+
d: "M8.27759 6C8.30628 6.15156 8.32129 6.30795 8.32129 6.46785C8.32129 7.84856 7.202 8.96785 5.82129 8.96785C5.27787 8.96785 4.77494 8.79447 4.36482 8.5H5.66057V7.5H2.66057V10.5H3.66057V9.22145C4.25557 9.689 5.00587 9.96785 5.82129 9.96785C7.75429 9.96785 9.32129 8.40085 9.32129 6.46785C9.32129 6.30921 9.31074 6.15304 9.29029 6H8.27759Z",
|
|
2564
|
+
fill: "currentColor"
|
|
2565
|
+
},
|
|
2566
|
+
child: []
|
|
2567
|
+
},
|
|
2568
|
+
{
|
|
2569
|
+
tag: "path",
|
|
2570
|
+
attr: {
|
|
2571
|
+
d: "M8.16064 2H9.16064V5H6.16064V4L7.4564 4C7.04627 3.70553 6.54334 3.53215 5.99992 3.53215C4.61921 3.53215 3.49992 4.65144 3.49992 6.03215C3.49992 6.19205 3.51493 6.34844 3.54363 6.5H2.53092C2.51048 6.34696 2.49992 6.19079 2.49992 6.03215C2.49992 4.09915 4.06693 2.53215 5.99992 2.53215C6.81535 2.53215 7.56564 2.811 8.16064 3.27855V2Z",
|
|
2572
|
+
fill: "currentColor"
|
|
2573
|
+
},
|
|
2574
|
+
child: []
|
|
2575
|
+
}
|
|
2576
|
+
]
|
|
2577
|
+
});
|
|
2543
2578
|
var clipboardCopy = GenIcon({
|
|
2544
2579
|
tag: "svg",
|
|
2545
2580
|
attr: { viewBox: "0 0 24 24", role: "img" },
|
|
@@ -2685,7 +2720,8 @@ var customIcons = {
|
|
|
2685
2720
|
"list-view-long": listViewLong,
|
|
2686
2721
|
"filter-add": filterAdd,
|
|
2687
2722
|
"clipboard-copy": clipboardCopy,
|
|
2688
|
-
"clipboard-paste": clipboardPaste
|
|
2723
|
+
"clipboard-paste": clipboardPaste,
|
|
2724
|
+
refresh: refreshIcon
|
|
2689
2725
|
};
|
|
2690
2726
|
|
|
2691
2727
|
// src/components/Icons/systemIcons.tsx
|
|
@@ -12578,6 +12614,18 @@ function renderWithIcon(children, icon) {
|
|
|
12578
12614
|
] });
|
|
12579
12615
|
}
|
|
12580
12616
|
|
|
12617
|
+
// src/components/Menu/MenuTrigger.tsx
|
|
12618
|
+
import { forwardRef as forwardRef5 } from "react";
|
|
12619
|
+
import { jsx as jsx34 } from "@emotion/react/jsx-runtime";
|
|
12620
|
+
var MenuButton2 = forwardRef5(({ children, ...props }, ref) => {
|
|
12621
|
+
return /* @__PURE__ */ jsx34("button", { ref, type: "button", ...props, children });
|
|
12622
|
+
});
|
|
12623
|
+
var MenuThreeDots = forwardRef5(
|
|
12624
|
+
({ buttonTitle = "More options", ...props }, ref) => {
|
|
12625
|
+
return /* @__PURE__ */ jsx34(MenuButton2, { ref, "aria-label": buttonTitle, ...props, children: /* @__PURE__ */ jsx34(Icon, { icon: "more-alt", iconColor: "currentColor" }) });
|
|
12626
|
+
}
|
|
12627
|
+
);
|
|
12628
|
+
|
|
12581
12629
|
// src/components/ButtonWithMenu/ButtonWithMenu.styles.ts
|
|
12582
12630
|
import { css as css32 } from "@emotion/react";
|
|
12583
12631
|
var buttonSizeBase = css32`
|
|
@@ -12736,7 +12784,7 @@ var wholeButtonWithMenuIconOffset = css32`
|
|
|
12736
12784
|
`;
|
|
12737
12785
|
|
|
12738
12786
|
// src/components/ButtonWithMenu/ButtonWithMenu.tsx
|
|
12739
|
-
import { Fragment as Fragment5, jsx as
|
|
12787
|
+
import { Fragment as Fragment5, jsx as jsx35, jsxs as jsxs20 } from "@emotion/react/jsx-runtime";
|
|
12740
12788
|
var ButtonWithMenu = ({
|
|
12741
12789
|
onButtonClick,
|
|
12742
12790
|
buttonType = "secondary",
|
|
@@ -12770,12 +12818,12 @@ var ButtonWithMenu = ({
|
|
|
12770
12818
|
sm: buttonSizeSmall,
|
|
12771
12819
|
lg: buttonSizeLarge
|
|
12772
12820
|
};
|
|
12773
|
-
const clickableButton = /* @__PURE__ */
|
|
12774
|
-
const dropdownButton = /* @__PURE__ */
|
|
12775
|
-
/* @__PURE__ */
|
|
12776
|
-
/* @__PURE__ */
|
|
12821
|
+
const clickableButton = /* @__PURE__ */ jsx35("div", { css: ButtonWithMenuIcon, "data-testid": "multioptions-button-call-menu", children: /* @__PURE__ */ jsx35(Icon, { icon: CgChevronDown, iconColor: "currentColor" }) });
|
|
12822
|
+
const dropdownButton = /* @__PURE__ */ jsx35("div", { css: ButtonWithMenuIcon, "data-testid": "multioptions-button-call-menu", children: /* @__PURE__ */ jsxs20(HorizontalRhythm, { justify: "center", children: [
|
|
12823
|
+
/* @__PURE__ */ jsx35(Icon, { icon: CgMathPlus2, iconColor: "currentColor", css: wholeButtonWithMenuIconOffset }),
|
|
12824
|
+
/* @__PURE__ */ jsx35("span", { css: { marginRight: "var(--spacing-xs)", fontSize: "var(--fs-sm)" }, children: buttonText })
|
|
12777
12825
|
] }) });
|
|
12778
|
-
return /* @__PURE__ */
|
|
12826
|
+
return /* @__PURE__ */ jsx35(
|
|
12779
12827
|
"div",
|
|
12780
12828
|
{
|
|
12781
12829
|
css: [
|
|
@@ -12795,12 +12843,12 @@ var ButtonWithMenu = ({
|
|
|
12795
12843
|
"data-testid": "multioptions-button-main",
|
|
12796
12844
|
...buttonProps,
|
|
12797
12845
|
children: [
|
|
12798
|
-
icon ? /* @__PURE__ */
|
|
12846
|
+
icon ? /* @__PURE__ */ jsx35(Icon, { icon, iconColor: "currentColor", css: buttonWithMenuIconOffset }) : null,
|
|
12799
12847
|
buttonText
|
|
12800
12848
|
]
|
|
12801
12849
|
}
|
|
12802
12850
|
),
|
|
12803
|
-
disabled2 ? clickableButton : /* @__PURE__ */
|
|
12851
|
+
disabled2 ? clickableButton : /* @__PURE__ */ jsx35(
|
|
12804
12852
|
Menu,
|
|
12805
12853
|
{
|
|
12806
12854
|
menuLabel: "buttonMenu",
|
|
@@ -12811,7 +12859,7 @@ var ButtonWithMenu = ({
|
|
|
12811
12859
|
children
|
|
12812
12860
|
}
|
|
12813
12861
|
)
|
|
12814
|
-
] }) : /* @__PURE__ */
|
|
12862
|
+
] }) : /* @__PURE__ */ jsx35(Fragment5, { children: disabled2 ? dropdownButton : /* @__PURE__ */ jsx35(
|
|
12815
12863
|
Menu,
|
|
12816
12864
|
{
|
|
12817
12865
|
menuLabel: "buttonMenu",
|
|
@@ -12910,7 +12958,7 @@ var actions = css33`
|
|
|
12910
12958
|
`;
|
|
12911
12959
|
|
|
12912
12960
|
// src/components/Calendar/Calendar.tsx
|
|
12913
|
-
import { jsx as
|
|
12961
|
+
import { jsx as jsx36, jsxs as jsxs21 } from "@emotion/react/jsx-runtime";
|
|
12914
12962
|
function tryParseDate(isoDate) {
|
|
12915
12963
|
try {
|
|
12916
12964
|
return isoDate ? parseDate(isoDate) : void 0;
|
|
@@ -12962,25 +13010,25 @@ var Calendar = ({
|
|
|
12962
13010
|
isInvalid,
|
|
12963
13011
|
children: [
|
|
12964
13012
|
/* @__PURE__ */ jsxs21("header", { css: header, children: [
|
|
12965
|
-
/* @__PURE__ */
|
|
12966
|
-
/* @__PURE__ */
|
|
13013
|
+
/* @__PURE__ */ jsx36(Heading2, { css: [h6, headerTitle] }),
|
|
13014
|
+
/* @__PURE__ */ jsx36(
|
|
12967
13015
|
AriaButton,
|
|
12968
13016
|
{
|
|
12969
13017
|
css: [button, buttonTertiaryOutline, headerNavButton],
|
|
12970
13018
|
slot: "previous",
|
|
12971
|
-
children: /* @__PURE__ */
|
|
13019
|
+
children: /* @__PURE__ */ jsx36(Icon, { icon: "arrow-up", size: 16, color: "currentColor" })
|
|
12972
13020
|
}
|
|
12973
13021
|
),
|
|
12974
|
-
/* @__PURE__ */
|
|
13022
|
+
/* @__PURE__ */ jsx36(
|
|
12975
13023
|
AriaButton,
|
|
12976
13024
|
{
|
|
12977
13025
|
css: [button, buttonTertiaryOutline, headerNavButton],
|
|
12978
13026
|
slot: "next",
|
|
12979
|
-
children: /* @__PURE__ */
|
|
13027
|
+
children: /* @__PURE__ */ jsx36(Icon, { icon: "arrow-down", size: 16, color: "currentColor" })
|
|
12980
13028
|
}
|
|
12981
13029
|
)
|
|
12982
13030
|
] }),
|
|
12983
|
-
/* @__PURE__ */
|
|
13031
|
+
/* @__PURE__ */ jsx36(CalendarGrid, { children: (date) => /* @__PURE__ */ jsx36(
|
|
12984
13032
|
CalendarCell,
|
|
12985
13033
|
{
|
|
12986
13034
|
css: [
|
|
@@ -12995,7 +13043,7 @@ var Calendar = ({
|
|
|
12995
13043
|
]
|
|
12996
13044
|
}
|
|
12997
13045
|
),
|
|
12998
|
-
/* @__PURE__ */
|
|
13046
|
+
/* @__PURE__ */ jsx36("div", { css: actions, children: /* @__PURE__ */ jsx36(Button, { onClick: gotoToday, buttonType: "ghost", children: "Today" }) })
|
|
12999
13047
|
] });
|
|
13000
13048
|
};
|
|
13001
13049
|
|
|
@@ -13046,7 +13094,7 @@ var CardMenu = css34`
|
|
|
13046
13094
|
`;
|
|
13047
13095
|
|
|
13048
13096
|
// src/components/Card/Card.tsx
|
|
13049
|
-
import { jsx as
|
|
13097
|
+
import { jsx as jsx37, jsxs as jsxs22 } from "@emotion/react/jsx-runtime";
|
|
13050
13098
|
var Card = ({
|
|
13051
13099
|
title: title2,
|
|
13052
13100
|
menuItems,
|
|
@@ -13058,12 +13106,12 @@ var Card = ({
|
|
|
13058
13106
|
...props
|
|
13059
13107
|
}) => {
|
|
13060
13108
|
return /* @__PURE__ */ jsxs22(Tag, { css: CardContainer, ...props, children: [
|
|
13061
|
-
title2 ? /* @__PURE__ */
|
|
13062
|
-
menuItems ? /* @__PURE__ */
|
|
13109
|
+
title2 ? /* @__PURE__ */ jsx37(CardTitle2, { title: title2, titleWithMarginBottom }) : null,
|
|
13110
|
+
menuItems ? /* @__PURE__ */ jsx37(
|
|
13063
13111
|
Menu,
|
|
13064
13112
|
{
|
|
13065
13113
|
menuLabel: "More options",
|
|
13066
|
-
menuTrigger: /* @__PURE__ */
|
|
13114
|
+
menuTrigger: /* @__PURE__ */ jsx37(
|
|
13067
13115
|
"button",
|
|
13068
13116
|
{
|
|
13069
13117
|
"aria-label": "More options",
|
|
@@ -13071,7 +13119,7 @@ var Card = ({
|
|
|
13071
13119
|
disabled: disabled2,
|
|
13072
13120
|
css: CardMenu,
|
|
13073
13121
|
"data-testid": menuButtonTestId != null ? menuButtonTestId : "button-more",
|
|
13074
|
-
children: /* @__PURE__ */
|
|
13122
|
+
children: /* @__PURE__ */ jsx37(Icon, { icon: CgMoreAlt, iconColor: "currentColor", size: 32 })
|
|
13075
13123
|
}
|
|
13076
13124
|
),
|
|
13077
13125
|
children: menuItems
|
|
@@ -13108,7 +13156,7 @@ var CardContainerInner = ({ padding, withLastColumn }) => css35`
|
|
|
13108
13156
|
`;
|
|
13109
13157
|
|
|
13110
13158
|
// src/components/Card/CardContainer.tsx
|
|
13111
|
-
import { jsx as
|
|
13159
|
+
import { jsx as jsx38 } from "@emotion/react/jsx-runtime";
|
|
13112
13160
|
var CardContainer2 = ({
|
|
13113
13161
|
bgColor = "white",
|
|
13114
13162
|
padding = true,
|
|
@@ -13116,7 +13164,7 @@ var CardContainer2 = ({
|
|
|
13116
13164
|
children,
|
|
13117
13165
|
...props
|
|
13118
13166
|
}) => {
|
|
13119
|
-
return /* @__PURE__ */
|
|
13167
|
+
return /* @__PURE__ */ jsx38("div", { css: CardContainerWrapper(bgColor), ...props, children: /* @__PURE__ */ jsx38("div", { css: CardContainerInner({ padding, withLastColumn }), children }) });
|
|
13120
13168
|
};
|
|
13121
13169
|
|
|
13122
13170
|
// src/components/Card/LoadingCardSkeleton.tsx
|
|
@@ -13154,12 +13202,12 @@ var LoadingMenuIcon = css36`
|
|
|
13154
13202
|
`;
|
|
13155
13203
|
|
|
13156
13204
|
// src/components/Card/LoadingCardSkeleton.tsx
|
|
13157
|
-
import { jsx as
|
|
13205
|
+
import { jsx as jsx39, jsxs as jsxs23 } from "@emotion/react/jsx-runtime";
|
|
13158
13206
|
var LoadingCardSkeleton2 = () => {
|
|
13159
13207
|
return /* @__PURE__ */ jsxs23(VerticalRhythm, { css: LoadingCardSkeleton, children: [
|
|
13160
|
-
/* @__PURE__ */
|
|
13161
|
-
/* @__PURE__ */
|
|
13162
|
-
/* @__PURE__ */
|
|
13208
|
+
/* @__PURE__ */ jsx39("span", { css: [LoadingText, LoadingTitle] }),
|
|
13209
|
+
/* @__PURE__ */ jsx39("span", { css: [LoadingText, LoadingTimeStamp] }),
|
|
13210
|
+
/* @__PURE__ */ jsx39(Icon, { css: LoadingMenuIcon, icon: CgMoreAlt2, iconColor: "currentColor", size: 32 })
|
|
13163
13211
|
] });
|
|
13164
13212
|
};
|
|
13165
13213
|
|
|
@@ -13358,7 +13406,7 @@ var ChipActionButton = css37`
|
|
|
13358
13406
|
`;
|
|
13359
13407
|
|
|
13360
13408
|
// src/components/Chip/Chip.tsx
|
|
13361
|
-
import { Fragment as Fragment6, jsx as
|
|
13409
|
+
import { Fragment as Fragment6, jsx as jsx40, jsxs as jsxs24 } from "@emotion/react/jsx-runtime";
|
|
13362
13410
|
var chipTheme = {
|
|
13363
13411
|
"accent-light": ChipThemeAccentLight,
|
|
13364
13412
|
"accent-dark": ChipThemeAccentDark,
|
|
@@ -13382,15 +13430,15 @@ var Chip = ({
|
|
|
13382
13430
|
};
|
|
13383
13431
|
return /* @__PURE__ */ jsxs24("span", { css: [ChipContainer, chipSize[size], chipTheme[theme]], ...props, children: [
|
|
13384
13432
|
icon ? /* @__PURE__ */ jsxs24(Fragment6, { children: [
|
|
13385
|
-
/* @__PURE__ */
|
|
13386
|
-
/* @__PURE__ */
|
|
13433
|
+
/* @__PURE__ */ jsx40("span", { role: "presentation", css: [ChipIcon], children: /* @__PURE__ */ jsx40(Icon, { icon, iconColor: "currentColor", size: "1rem" }) }),
|
|
13434
|
+
/* @__PURE__ */ jsx40("span", { role: "separator", css: ChipSeparator })
|
|
13387
13435
|
] }) : null,
|
|
13388
|
-
/* @__PURE__ */
|
|
13436
|
+
/* @__PURE__ */ jsx40("span", { css: ChipText, children: text }),
|
|
13389
13437
|
chipAction
|
|
13390
13438
|
] });
|
|
13391
13439
|
};
|
|
13392
13440
|
var DismissibleChipAction = ({ onDismiss, ...props }) => {
|
|
13393
|
-
return /* @__PURE__ */
|
|
13441
|
+
return /* @__PURE__ */ jsx40(
|
|
13394
13442
|
"button",
|
|
13395
13443
|
{
|
|
13396
13444
|
css: ChipActionButton,
|
|
@@ -13398,7 +13446,7 @@ var DismissibleChipAction = ({ onDismiss, ...props }) => {
|
|
|
13398
13446
|
"aria-labelledby": "dismissible-chip",
|
|
13399
13447
|
onClick: onDismiss,
|
|
13400
13448
|
...props,
|
|
13401
|
-
children: /* @__PURE__ */
|
|
13449
|
+
children: /* @__PURE__ */ jsx40(Icon, { icon: CgClose3, iconColor: "currentColor", size: "0.85rem" })
|
|
13402
13450
|
}
|
|
13403
13451
|
);
|
|
13404
13452
|
};
|
|
@@ -13478,7 +13526,7 @@ var MultilineChipContainer = css38`
|
|
|
13478
13526
|
`;
|
|
13479
13527
|
|
|
13480
13528
|
// src/components/Chip/MultilineChip.tsx
|
|
13481
|
-
import { jsx as
|
|
13529
|
+
import { jsx as jsx41 } from "@emotion/react/jsx-runtime";
|
|
13482
13530
|
var MultilineChip = ({ children, onClick, ...props }) => {
|
|
13483
13531
|
const handleKeyboardEvent = (e) => {
|
|
13484
13532
|
if (e.key === "Enter" || e.key === " ") {
|
|
@@ -13492,7 +13540,7 @@ var MultilineChip = ({ children, onClick, ...props }) => {
|
|
|
13492
13540
|
onKeyDown: handleKeyboardEvent,
|
|
13493
13541
|
tabIndex: 0
|
|
13494
13542
|
} : {};
|
|
13495
|
-
return /* @__PURE__ */
|
|
13543
|
+
return /* @__PURE__ */ jsx41("span", { css: MultilineChipContainer, "data-testid": "chip-value", ...props, ...buttonProps, children });
|
|
13496
13544
|
};
|
|
13497
13545
|
|
|
13498
13546
|
// src/components/Counter/Counter.styles.ts
|
|
@@ -13530,17 +13578,17 @@ var counterIcon = css39`
|
|
|
13530
13578
|
`;
|
|
13531
13579
|
|
|
13532
13580
|
// src/components/Counter/Counter.tsx
|
|
13533
|
-
import { jsx as
|
|
13581
|
+
import { jsx as jsx42, jsxs as jsxs25 } from "@emotion/react/jsx-runtime";
|
|
13534
13582
|
var Counter = ({ count, bgColor = "transparent", ...props }) => {
|
|
13535
13583
|
if (typeof count === "undefined") {
|
|
13536
13584
|
return null;
|
|
13537
13585
|
}
|
|
13538
13586
|
const isTripleDigits = count > 99 ? /* @__PURE__ */ jsxs25("span", { css: counterTripleValue, title: `${count}`, children: [
|
|
13539
13587
|
"99",
|
|
13540
|
-
/* @__PURE__ */
|
|
13588
|
+
/* @__PURE__ */ jsx42(Icon, { icon: "math-plus", iconColor: "currentColor", size: "0.5rem", css: counterIcon })
|
|
13541
13589
|
] }) : count;
|
|
13542
|
-
const formatCount = count === 0 ? /* @__PURE__ */
|
|
13543
|
-
return /* @__PURE__ */
|
|
13590
|
+
const formatCount = count === 0 ? /* @__PURE__ */ jsx42("span", { css: counterZeroValue, title: `${count}` }) : isTripleDigits;
|
|
13591
|
+
return /* @__PURE__ */ jsx42("div", { css: counterContainer(bgColor), ...props, children: formatCount });
|
|
13544
13592
|
};
|
|
13545
13593
|
|
|
13546
13594
|
// src/components/DashedBox/DashedBox.styles.ts
|
|
@@ -13578,7 +13626,7 @@ var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) => css40`
|
|
|
13578
13626
|
`;
|
|
13579
13627
|
|
|
13580
13628
|
// src/components/DashedBox/DashedBox.tsx
|
|
13581
|
-
import { jsx as
|
|
13629
|
+
import { jsx as jsx43 } from "@emotion/react/jsx-runtime";
|
|
13582
13630
|
var DashedBox = ({
|
|
13583
13631
|
bgColor = "transparent",
|
|
13584
13632
|
textAlign = "center",
|
|
@@ -13586,7 +13634,7 @@ var DashedBox = ({
|
|
|
13586
13634
|
children,
|
|
13587
13635
|
...props
|
|
13588
13636
|
}) => {
|
|
13589
|
-
return /* @__PURE__ */
|
|
13637
|
+
return /* @__PURE__ */ jsx43("div", { css: DashedBoxContainer({ bgColor, boxHeight, textAlign }), ...props, children });
|
|
13590
13638
|
};
|
|
13591
13639
|
|
|
13592
13640
|
// src/components/DateTimePicker/DateTimePicker.tsx
|
|
@@ -13605,13 +13653,13 @@ var CaptionText = (dynamicSize) => css41`
|
|
|
13605
13653
|
`;
|
|
13606
13654
|
|
|
13607
13655
|
// src/components/Input/Caption.tsx
|
|
13608
|
-
import { jsx as
|
|
13656
|
+
import { jsx as jsx44 } from "@emotion/react/jsx-runtime";
|
|
13609
13657
|
var Caption = ({ children, testId, dynamicSize = false, ...props }) => {
|
|
13610
|
-
return /* @__PURE__ */
|
|
13658
|
+
return /* @__PURE__ */ jsx44("small", { css: CaptionText(dynamicSize), "data-testid": testId, ...props, children });
|
|
13611
13659
|
};
|
|
13612
13660
|
|
|
13613
13661
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
13614
|
-
import { forwardRef as
|
|
13662
|
+
import { forwardRef as forwardRef6 } from "react";
|
|
13615
13663
|
|
|
13616
13664
|
// src/components/Input/styles/CheckboxWithInfo.styles.ts
|
|
13617
13665
|
import { css as css42 } from "@emotion/react";
|
|
@@ -13686,21 +13734,21 @@ var InfoDialogMessage = css42`
|
|
|
13686
13734
|
`;
|
|
13687
13735
|
|
|
13688
13736
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
13689
|
-
import { jsx as
|
|
13737
|
+
import { jsx as jsx45, jsxs as jsxs26 } from "@emotion/react/jsx-runtime";
|
|
13690
13738
|
var InfoDialog = ({ message }) => {
|
|
13691
13739
|
return /* @__PURE__ */ jsxs26("div", { "data-testid": "info-dialog", css: InfoDialogContainer, children: [
|
|
13692
|
-
/* @__PURE__ */
|
|
13693
|
-
/* @__PURE__ */
|
|
13740
|
+
/* @__PURE__ */ jsx45(Icon, { icon: "info", iconColor: "action", size: "0.9rem" }),
|
|
13741
|
+
/* @__PURE__ */ jsx45("div", { role: "paragraph", css: InfoDialogMessage, className: "info-message", children: message })
|
|
13694
13742
|
] });
|
|
13695
13743
|
};
|
|
13696
|
-
var CheckboxWithInfo =
|
|
13744
|
+
var CheckboxWithInfo = forwardRef6(
|
|
13697
13745
|
({ label, name, info, ...props }, ref) => {
|
|
13698
13746
|
return /* @__PURE__ */ jsxs26("div", { css: CheckboxWithInfoContainer, children: [
|
|
13699
13747
|
/* @__PURE__ */ jsxs26("label", { css: CheckboxWithInfoLabel, children: [
|
|
13700
|
-
/* @__PURE__ */
|
|
13701
|
-
/* @__PURE__ */
|
|
13748
|
+
/* @__PURE__ */ jsx45("input", { type: "checkbox", name, ref, css: CheckboxWithInfoInput, ...props }),
|
|
13749
|
+
/* @__PURE__ */ jsx45("span", { children: label })
|
|
13702
13750
|
] }),
|
|
13703
|
-
info ? /* @__PURE__ */
|
|
13751
|
+
info ? /* @__PURE__ */ jsx45(InfoDialog, { message: info }) : null
|
|
13704
13752
|
] });
|
|
13705
13753
|
}
|
|
13706
13754
|
);
|
|
@@ -13728,11 +13776,11 @@ var errorMessageTextTruncatedStyles = css43`
|
|
|
13728
13776
|
`;
|
|
13729
13777
|
|
|
13730
13778
|
// src/components/Input/ErrorMessage.tsx
|
|
13731
|
-
import { jsx as
|
|
13779
|
+
import { jsx as jsx46, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
|
|
13732
13780
|
var ErrorMessage = ({ message, testId, truncated = false, ...otherProps }) => {
|
|
13733
13781
|
return message ? /* @__PURE__ */ jsxs27("span", { role: "alert", css: errorMessageStyles, "data-testid": testId, ...otherProps, title: message, children: [
|
|
13734
|
-
/* @__PURE__ */
|
|
13735
|
-
/* @__PURE__ */
|
|
13782
|
+
/* @__PURE__ */ jsx46("span", { children: /* @__PURE__ */ jsx46(Icon, { icon: MdWarning, size: "1rem", iconColor: "currentColor" }) }),
|
|
13783
|
+
/* @__PURE__ */ jsx46("span", { css: [errorMessageTextStyles, truncated ? errorMessageTextTruncatedStyles : null], children: message })
|
|
13736
13784
|
] }) : null;
|
|
13737
13785
|
};
|
|
13738
13786
|
|
|
@@ -13755,10 +13803,10 @@ var InfoIcon2 = css44`
|
|
|
13755
13803
|
`;
|
|
13756
13804
|
|
|
13757
13805
|
// src/components/Input/InfoMessage.tsx
|
|
13758
|
-
import { jsx as
|
|
13806
|
+
import { jsx as jsx47, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
|
|
13759
13807
|
var InfoMessage = ({ message, testId, ...props }) => {
|
|
13760
13808
|
return message ? /* @__PURE__ */ jsxs28("span", { role: "status", css: InfoText, "data-testid": testId, ...props, children: [
|
|
13761
|
-
/* @__PURE__ */
|
|
13809
|
+
/* @__PURE__ */ jsx47("span", { children: /* @__PURE__ */ jsx47(Icon, { css: InfoIcon2, icon: MdInfoOutline, size: "1rem", iconColor: "currentColor" }) }),
|
|
13762
13810
|
message
|
|
13763
13811
|
] }) : null;
|
|
13764
13812
|
};
|
|
@@ -13779,16 +13827,16 @@ var WarningIcon = css45`
|
|
|
13779
13827
|
`;
|
|
13780
13828
|
|
|
13781
13829
|
// src/components/Input/WarningMessage.tsx
|
|
13782
|
-
import { jsx as
|
|
13830
|
+
import { jsx as jsx48, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
|
|
13783
13831
|
var WarningMessage = ({ message, testId, ...props }) => {
|
|
13784
13832
|
return message ? /* @__PURE__ */ jsxs29("span", { role: "status", css: WarningText, "data-testid": testId != null ? testId : "message-text", ...props, children: [
|
|
13785
|
-
/* @__PURE__ */
|
|
13833
|
+
/* @__PURE__ */ jsx48("span", { children: /* @__PURE__ */ jsx48(Icon, { css: WarningIcon, icon: MdWarning2, size: "1rem", iconColor: "currentColor" }) }),
|
|
13786
13834
|
message
|
|
13787
13835
|
] }) : null;
|
|
13788
13836
|
};
|
|
13789
13837
|
|
|
13790
13838
|
// src/components/Input/FieldMessage.tsx
|
|
13791
|
-
import { jsx as
|
|
13839
|
+
import { jsx as jsx49 } from "@emotion/react/jsx-runtime";
|
|
13792
13840
|
var FieldMessage = ({
|
|
13793
13841
|
helperMessage,
|
|
13794
13842
|
warningMessage,
|
|
@@ -13798,16 +13846,16 @@ var FieldMessage = ({
|
|
|
13798
13846
|
helperMessageTestId
|
|
13799
13847
|
}) => {
|
|
13800
13848
|
if (errorMessage) {
|
|
13801
|
-
return /* @__PURE__ */
|
|
13849
|
+
return /* @__PURE__ */ jsx49(ErrorMessage, { message: errorMessage, testId: errorTestId });
|
|
13802
13850
|
}
|
|
13803
13851
|
if (warningMessage) {
|
|
13804
|
-
return /* @__PURE__ */
|
|
13852
|
+
return /* @__PURE__ */ jsx49(WarningMessage, { message: warningMessage });
|
|
13805
13853
|
}
|
|
13806
13854
|
if (infoMessage) {
|
|
13807
|
-
return /* @__PURE__ */
|
|
13855
|
+
return /* @__PURE__ */ jsx49(InfoMessage, { message: infoMessage });
|
|
13808
13856
|
}
|
|
13809
13857
|
if (helperMessage) {
|
|
13810
|
-
return /* @__PURE__ */
|
|
13858
|
+
return /* @__PURE__ */ jsx49(Caption, { testId: helperMessageTestId, children: helperMessage });
|
|
13811
13859
|
}
|
|
13812
13860
|
return null;
|
|
13813
13861
|
};
|
|
@@ -13856,12 +13904,12 @@ var fieldsetBody = css46`
|
|
|
13856
13904
|
`;
|
|
13857
13905
|
|
|
13858
13906
|
// src/components/Input/Fieldset.tsx
|
|
13859
|
-
import { jsx as
|
|
13907
|
+
import { jsx as jsx50, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
|
|
13860
13908
|
var Fieldset = React10.forwardRef(
|
|
13861
13909
|
({ legend, disabled: disabled2, children, invert, ...props }, ref) => {
|
|
13862
13910
|
return /* @__PURE__ */ jsxs30("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled: disabled2, ...props, children: [
|
|
13863
13911
|
legend,
|
|
13864
|
-
/* @__PURE__ */
|
|
13912
|
+
/* @__PURE__ */ jsx50("div", { css: fieldsetBody, children })
|
|
13865
13913
|
] });
|
|
13866
13914
|
}
|
|
13867
13915
|
);
|
|
@@ -13870,9 +13918,9 @@ var Fieldset = React10.forwardRef(
|
|
|
13870
13918
|
import * as React11 from "react";
|
|
13871
13919
|
|
|
13872
13920
|
// src/components/Input/Label.tsx
|
|
13873
|
-
import { jsx as
|
|
13921
|
+
import { jsx as jsx51 } from "@emotion/react/jsx-runtime";
|
|
13874
13922
|
var Label = ({ children, className, testId, ...props }) => {
|
|
13875
|
-
return /* @__PURE__ */
|
|
13923
|
+
return /* @__PURE__ */ jsx51(
|
|
13876
13924
|
"label",
|
|
13877
13925
|
{
|
|
13878
13926
|
css: [labelText, typeof className === "object" ? className : void 0],
|
|
@@ -13885,7 +13933,7 @@ var Label = ({ children, className, testId, ...props }) => {
|
|
|
13885
13933
|
};
|
|
13886
13934
|
|
|
13887
13935
|
// src/components/Input/Input.tsx
|
|
13888
|
-
import { jsx as
|
|
13936
|
+
import { jsx as jsx52, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
|
|
13889
13937
|
var Input = React11.forwardRef(
|
|
13890
13938
|
({
|
|
13891
13939
|
label,
|
|
@@ -13911,7 +13959,7 @@ var Input = React11.forwardRef(
|
|
|
13911
13959
|
css: [inputContainer, typeof classNameRoot === "object" ? classNameRoot : void 0],
|
|
13912
13960
|
"data-testid": containerTestId ? containerTestId : "input-container",
|
|
13913
13961
|
children: [
|
|
13914
|
-
showLabel ? /* @__PURE__ */
|
|
13962
|
+
showLabel ? /* @__PURE__ */ jsx52(
|
|
13915
13963
|
Label,
|
|
13916
13964
|
{
|
|
13917
13965
|
htmlFor: id,
|
|
@@ -13927,7 +13975,7 @@ var Input = React11.forwardRef(
|
|
|
13927
13975
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
13928
13976
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
13929
13977
|
children: [
|
|
13930
|
-
/* @__PURE__ */
|
|
13978
|
+
/* @__PURE__ */ jsx52(
|
|
13931
13979
|
"input",
|
|
13932
13980
|
{
|
|
13933
13981
|
id,
|
|
@@ -13943,11 +13991,11 @@ var Input = React11.forwardRef(
|
|
|
13943
13991
|
ref
|
|
13944
13992
|
}
|
|
13945
13993
|
),
|
|
13946
|
-
icon ? /* @__PURE__ */
|
|
13994
|
+
icon ? /* @__PURE__ */ jsx52("div", { css: inputIcon, children: icon }) : null
|
|
13947
13995
|
]
|
|
13948
13996
|
}
|
|
13949
13997
|
),
|
|
13950
|
-
/* @__PURE__ */
|
|
13998
|
+
/* @__PURE__ */ jsx52(
|
|
13951
13999
|
FieldMessage,
|
|
13952
14000
|
{
|
|
13953
14001
|
helperMessage: caption,
|
|
@@ -13965,10 +14013,10 @@ var Input = React11.forwardRef(
|
|
|
13965
14013
|
|
|
13966
14014
|
// src/components/Input/InputComboBox.tsx
|
|
13967
14015
|
import Select from "react-select";
|
|
13968
|
-
import { jsx as
|
|
14016
|
+
import { jsx as jsx53 } from "@emotion/react/jsx-runtime";
|
|
13969
14017
|
function InputComboBox(props) {
|
|
13970
14018
|
var _a;
|
|
13971
|
-
return /* @__PURE__ */
|
|
14019
|
+
return /* @__PURE__ */ jsx53(
|
|
13972
14020
|
Select,
|
|
13973
14021
|
{
|
|
13974
14022
|
...props,
|
|
@@ -14182,7 +14230,7 @@ var inlineSelectMenuClosed = css47`
|
|
|
14182
14230
|
`;
|
|
14183
14231
|
|
|
14184
14232
|
// src/components/Input/InputInlineSelect.tsx
|
|
14185
|
-
import { jsx as
|
|
14233
|
+
import { jsx as jsx54, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
|
|
14186
14234
|
var InputInlineSelect = ({
|
|
14187
14235
|
classNameContainer,
|
|
14188
14236
|
options,
|
|
@@ -14220,18 +14268,18 @@ var InputInlineSelect = ({
|
|
|
14220
14268
|
disabled: disabled2,
|
|
14221
14269
|
...props,
|
|
14222
14270
|
children: [
|
|
14223
|
-
/* @__PURE__ */
|
|
14224
|
-
disabled2 ? null : /* @__PURE__ */
|
|
14271
|
+
/* @__PURE__ */ jsx54("span", { children: (_a = selected == null ? void 0 : selected.label) != null ? _a : value }),
|
|
14272
|
+
disabled2 ? null : /* @__PURE__ */ jsx54(Icon, { icon: CgChevronDown2, iconColor: "currentColor", size: 24 })
|
|
14225
14273
|
]
|
|
14226
14274
|
}
|
|
14227
14275
|
),
|
|
14228
|
-
/* @__PURE__ */
|
|
14276
|
+
/* @__PURE__ */ jsx54(
|
|
14229
14277
|
"div",
|
|
14230
14278
|
{
|
|
14231
14279
|
id: `and-or-${props.id}`,
|
|
14232
14280
|
css: [inlineSelectMenu, menuVisible ? void 0 : inlineSelectMenuClosed],
|
|
14233
14281
|
"aria-hidden": !menuVisible,
|
|
14234
|
-
children: options.map((opt) => /* @__PURE__ */
|
|
14282
|
+
children: options.map((opt) => /* @__PURE__ */ jsx54(
|
|
14235
14283
|
"button",
|
|
14236
14284
|
{
|
|
14237
14285
|
type: "button",
|
|
@@ -14254,10 +14302,10 @@ var InputInlineSelect = ({
|
|
|
14254
14302
|
// src/components/Input/InputKeywordSearch.tsx
|
|
14255
14303
|
import { CgClose as CgClose4 } from "@react-icons/all-files/cg/CgClose";
|
|
14256
14304
|
import { CgSearch } from "@react-icons/all-files/cg/CgSearch";
|
|
14257
|
-
import { forwardRef as
|
|
14305
|
+
import { forwardRef as forwardRef9, useState as useState5 } from "react";
|
|
14258
14306
|
import { useDebounce } from "react-use";
|
|
14259
|
-
import { jsx as
|
|
14260
|
-
var InputKeywordSearch =
|
|
14307
|
+
import { jsx as jsx55 } from "@emotion/react/jsx-runtime";
|
|
14308
|
+
var InputKeywordSearch = forwardRef9(
|
|
14261
14309
|
({
|
|
14262
14310
|
onSearchTextChanged,
|
|
14263
14311
|
disabled: disabled2 = false,
|
|
@@ -14281,7 +14329,7 @@ var InputKeywordSearch = forwardRef8(
|
|
|
14281
14329
|
const handleClear = () => {
|
|
14282
14330
|
onClear ? onClear() : onSearchTextChanged("");
|
|
14283
14331
|
};
|
|
14284
|
-
return /* @__PURE__ */
|
|
14332
|
+
return /* @__PURE__ */ jsx55(
|
|
14285
14333
|
Input,
|
|
14286
14334
|
{
|
|
14287
14335
|
ref,
|
|
@@ -14290,16 +14338,16 @@ var InputKeywordSearch = forwardRef8(
|
|
|
14290
14338
|
placeholder,
|
|
14291
14339
|
showLabel: false,
|
|
14292
14340
|
value,
|
|
14293
|
-
icon: value ? /* @__PURE__ */
|
|
14341
|
+
icon: value ? /* @__PURE__ */ jsx55(
|
|
14294
14342
|
"button",
|
|
14295
14343
|
{
|
|
14296
14344
|
css: inputSearchCloseBtn,
|
|
14297
14345
|
onClick: handleClear,
|
|
14298
14346
|
type: "button",
|
|
14299
14347
|
"data-testid": "keyword-search-clear-button",
|
|
14300
|
-
children: /* @__PURE__ */
|
|
14348
|
+
children: /* @__PURE__ */ jsx55(Icon, { icon: CgClose4, iconColor: "red", size: "1rem" })
|
|
14301
14349
|
}
|
|
14302
|
-
) : /* @__PURE__ */
|
|
14350
|
+
) : /* @__PURE__ */ jsx55(Icon, { icon: CgSearch, iconColor: "gray", size: "1rem" }),
|
|
14303
14351
|
onChange: handleSearchTextChanged,
|
|
14304
14352
|
onKeyPress: preventSubmitOnField,
|
|
14305
14353
|
disabled: disabled2,
|
|
@@ -14326,13 +14374,13 @@ var DebouncedInputKeywordSearch = ({
|
|
|
14326
14374
|
}) => {
|
|
14327
14375
|
const [searchText, setSearchText] = useState5(defaultValue != null ? defaultValue : "");
|
|
14328
14376
|
useDebounce(() => onSearchTextChanged(searchText), delay, [searchText]);
|
|
14329
|
-
return /* @__PURE__ */
|
|
14377
|
+
return /* @__PURE__ */ jsx55(InputKeywordSearch, { ...props, value: searchText, onSearchTextChanged: setSearchText });
|
|
14330
14378
|
};
|
|
14331
14379
|
|
|
14332
14380
|
// src/components/Input/InputSelect.tsx
|
|
14333
|
-
import { forwardRef as
|
|
14334
|
-
import { Fragment as Fragment7, jsx as
|
|
14335
|
-
var InputSelect =
|
|
14381
|
+
import { forwardRef as forwardRef10 } from "react";
|
|
14382
|
+
import { Fragment as Fragment7, jsx as jsx56, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
|
|
14383
|
+
var InputSelect = forwardRef10(
|
|
14336
14384
|
({
|
|
14337
14385
|
label,
|
|
14338
14386
|
defaultOption,
|
|
@@ -14354,7 +14402,7 @@ var InputSelect = forwardRef9(
|
|
|
14354
14402
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
14355
14403
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
14356
14404
|
children: [
|
|
14357
|
-
showLabel ? /* @__PURE__ */
|
|
14405
|
+
showLabel ? /* @__PURE__ */ jsx56(Fragment7, { children: /* @__PURE__ */ jsxs33(
|
|
14358
14406
|
Label,
|
|
14359
14407
|
{
|
|
14360
14408
|
htmlFor: props.id,
|
|
@@ -14382,12 +14430,12 @@ var InputSelect = forwardRef9(
|
|
|
14382
14430
|
className: typeof classNameControl === "string" ? classNameControl : "",
|
|
14383
14431
|
...props,
|
|
14384
14432
|
children: [
|
|
14385
|
-
defaultOption ? /* @__PURE__ */
|
|
14386
|
-
options.map((opt, index) => /* @__PURE__ */
|
|
14433
|
+
defaultOption ? /* @__PURE__ */ jsx56("option", { value: "", children: defaultOption }) : null,
|
|
14434
|
+
options.map((opt, index) => /* @__PURE__ */ jsx56("option", { value: opt.label, ...opt }, index))
|
|
14387
14435
|
]
|
|
14388
14436
|
}
|
|
14389
14437
|
),
|
|
14390
|
-
/* @__PURE__ */
|
|
14438
|
+
/* @__PURE__ */ jsx56(FieldMessage, { helperMessage: caption, errorMessage, warningMessage })
|
|
14391
14439
|
]
|
|
14392
14440
|
}
|
|
14393
14441
|
);
|
|
@@ -14452,7 +14500,7 @@ var dateSegment = css49`
|
|
|
14452
14500
|
`;
|
|
14453
14501
|
|
|
14454
14502
|
// src/components/Input/InputTime.tsx
|
|
14455
|
-
import { jsx as
|
|
14503
|
+
import { jsx as jsx57, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
|
|
14456
14504
|
function tryParseTime(isoTime) {
|
|
14457
14505
|
try {
|
|
14458
14506
|
return isoTime ? parseTime(isoTime) : void 0;
|
|
@@ -14481,7 +14529,7 @@ var InputTime = React12.forwardRef(
|
|
|
14481
14529
|
onChange,
|
|
14482
14530
|
...props
|
|
14483
14531
|
}, ref) => {
|
|
14484
|
-
return /* @__PURE__ */
|
|
14532
|
+
return /* @__PURE__ */ jsx57(
|
|
14485
14533
|
"div",
|
|
14486
14534
|
{
|
|
14487
14535
|
css: [inputContainer],
|
|
@@ -14507,8 +14555,8 @@ var InputTime = React12.forwardRef(
|
|
|
14507
14555
|
),
|
|
14508
14556
|
...props,
|
|
14509
14557
|
children: [
|
|
14510
|
-
showLabel ? /* @__PURE__ */
|
|
14511
|
-
/* @__PURE__ */
|
|
14558
|
+
showLabel ? /* @__PURE__ */ jsx57(AriaLabel, { elementType: "label", css: [labelText], "data-testid": labelTestId, children: label }) : null,
|
|
14559
|
+
/* @__PURE__ */ jsx57("div", { css: [inputContainer], children: /* @__PURE__ */ jsx57(
|
|
14512
14560
|
DateInput,
|
|
14513
14561
|
{
|
|
14514
14562
|
css: [
|
|
@@ -14517,12 +14565,12 @@ var InputTime = React12.forwardRef(
|
|
|
14517
14565
|
errorMessage ? inputError : void 0
|
|
14518
14566
|
],
|
|
14519
14567
|
children: (segment) => {
|
|
14520
|
-
return /* @__PURE__ */
|
|
14568
|
+
return /* @__PURE__ */ jsx57(DateSegment, { segment, css: dateSegment });
|
|
14521
14569
|
}
|
|
14522
14570
|
}
|
|
14523
14571
|
) }),
|
|
14524
14572
|
belowInputSlot,
|
|
14525
|
-
/* @__PURE__ */
|
|
14573
|
+
/* @__PURE__ */ jsx57(
|
|
14526
14574
|
FieldMessage,
|
|
14527
14575
|
{
|
|
14528
14576
|
helperMessage: caption,
|
|
@@ -14543,7 +14591,7 @@ InputTime.displayName = "InputTime";
|
|
|
14543
14591
|
|
|
14544
14592
|
// src/components/Input/InputToggle.tsx
|
|
14545
14593
|
import * as React13 from "react";
|
|
14546
|
-
import { jsx as
|
|
14594
|
+
import { jsx as jsx58, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
14547
14595
|
var InputToggle = React13.forwardRef(
|
|
14548
14596
|
({
|
|
14549
14597
|
label,
|
|
@@ -14569,7 +14617,7 @@ var InputToggle = React13.forwardRef(
|
|
|
14569
14617
|
css: [inputToggleLabel, disabled2 ? inputDisabled : void 0],
|
|
14570
14618
|
"data-testid": testId ? testId : "input-toggle",
|
|
14571
14619
|
children: [
|
|
14572
|
-
/* @__PURE__ */
|
|
14620
|
+
/* @__PURE__ */ jsx58(
|
|
14573
14621
|
"input",
|
|
14574
14622
|
{
|
|
14575
14623
|
ref,
|
|
@@ -14581,8 +14629,8 @@ var InputToggle = React13.forwardRef(
|
|
|
14581
14629
|
...props
|
|
14582
14630
|
}
|
|
14583
14631
|
),
|
|
14584
|
-
/* @__PURE__ */
|
|
14585
|
-
caption || errorMessage ? /* @__PURE__ */
|
|
14632
|
+
/* @__PURE__ */ jsx58("span", { css: [inlineLabel, fontWeightStyles[fontWeight]], children: label }),
|
|
14633
|
+
caption || errorMessage ? /* @__PURE__ */ jsx58("span", { css: inputToggleMessageContainer, children: /* @__PURE__ */ jsx58(
|
|
14586
14634
|
FieldMessage,
|
|
14587
14635
|
{
|
|
14588
14636
|
helperMessage: caption,
|
|
@@ -14597,9 +14645,9 @@ var InputToggle = React13.forwardRef(
|
|
|
14597
14645
|
);
|
|
14598
14646
|
|
|
14599
14647
|
// src/components/Input/Legend.tsx
|
|
14600
|
-
import { jsx as
|
|
14648
|
+
import { jsx as jsx59 } from "@emotion/react/jsx-runtime";
|
|
14601
14649
|
var Legend = ({ children }) => {
|
|
14602
|
-
return /* @__PURE__ */
|
|
14650
|
+
return /* @__PURE__ */ jsx59("legend", { css: fieldsetLegend, children });
|
|
14603
14651
|
};
|
|
14604
14652
|
|
|
14605
14653
|
// src/components/Input/SuccessMessage.tsx
|
|
@@ -14621,23 +14669,23 @@ var SuccessIcon2 = css50`
|
|
|
14621
14669
|
`;
|
|
14622
14670
|
|
|
14623
14671
|
// src/components/Input/SuccessMessage.tsx
|
|
14624
|
-
import { jsx as
|
|
14672
|
+
import { jsx as jsx60, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
14625
14673
|
var SuccessMessage = ({ message, testId, ...props }) => {
|
|
14626
14674
|
return message ? /* @__PURE__ */ jsxs36("span", { role: "status", css: SuccessText, "data-testid": testId, ...props, children: [
|
|
14627
|
-
/* @__PURE__ */
|
|
14675
|
+
/* @__PURE__ */ jsx60("span", { children: /* @__PURE__ */ jsx60(Icon, { css: SuccessIcon2, icon: CgCheckO, size: "1rem", iconColor: "currentColor" }) }),
|
|
14628
14676
|
message
|
|
14629
14677
|
] }) : null;
|
|
14630
14678
|
};
|
|
14631
14679
|
|
|
14632
14680
|
// src/components/Input/Textarea.tsx
|
|
14633
|
-
import { forwardRef as
|
|
14634
|
-
import { Fragment as Fragment8, jsx as
|
|
14635
|
-
var Textarea =
|
|
14681
|
+
import { forwardRef as forwardRef13 } from "react";
|
|
14682
|
+
import { Fragment as Fragment8, jsx as jsx61, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
|
|
14683
|
+
var Textarea = forwardRef13(
|
|
14636
14684
|
({ label, icon, id, caption, showLabel = true, errorMessage, warningMessage, ...props }, ref) => {
|
|
14637
14685
|
return /* @__PURE__ */ jsxs37(Fragment8, { children: [
|
|
14638
|
-
showLabel ? /* @__PURE__ */
|
|
14686
|
+
showLabel ? /* @__PURE__ */ jsx61("label", { htmlFor: id, css: [labelText], children: label }) : null,
|
|
14639
14687
|
/* @__PURE__ */ jsxs37("div", { css: [inputContainer], children: [
|
|
14640
|
-
/* @__PURE__ */
|
|
14688
|
+
/* @__PURE__ */ jsx61(
|
|
14641
14689
|
"textarea",
|
|
14642
14690
|
{
|
|
14643
14691
|
ref,
|
|
@@ -14652,9 +14700,9 @@ var Textarea = forwardRef12(
|
|
|
14652
14700
|
...props
|
|
14653
14701
|
}
|
|
14654
14702
|
),
|
|
14655
|
-
icon ? /* @__PURE__ */
|
|
14703
|
+
icon ? /* @__PURE__ */ jsx61("div", { css: inputIcon, children: icon }) : null
|
|
14656
14704
|
] }),
|
|
14657
|
-
/* @__PURE__ */
|
|
14705
|
+
/* @__PURE__ */ jsx61(FieldMessage, { helperMessage: caption, errorMessage, warningMessage })
|
|
14658
14706
|
] });
|
|
14659
14707
|
}
|
|
14660
14708
|
);
|
|
@@ -14739,7 +14787,7 @@ var tzSection = css52`
|
|
|
14739
14787
|
`;
|
|
14740
14788
|
|
|
14741
14789
|
// src/components/DateTimePicker/DateTimePickerSummary.tsx
|
|
14742
|
-
import { jsx as
|
|
14790
|
+
import { jsx as jsx62, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
|
|
14743
14791
|
function DateTimePickerSummary({
|
|
14744
14792
|
value,
|
|
14745
14793
|
placeholder
|
|
@@ -14777,10 +14825,10 @@ function DateTimePickerSummary({
|
|
|
14777
14825
|
const datePart = (value == null ? void 0 : value.datetime) ? dateFormat.format(new Date(value.datetime)) : null;
|
|
14778
14826
|
const timePart = (value == null ? void 0 : value.datetime) ? timeFormat.format(new Date(value.datetime)) : null;
|
|
14779
14827
|
return datePart ? /* @__PURE__ */ jsxs38("span", { children: [
|
|
14780
|
-
/* @__PURE__ */
|
|
14828
|
+
/* @__PURE__ */ jsx62("em", { css: inputLabelFocal, children: datePart }),
|
|
14781
14829
|
!!timePart && `, ${timePart}`,
|
|
14782
14830
|
!!(value == null ? void 0 : value.timeZone) && timeZoneWasValid && ` in ${value == null ? void 0 : value.timeZone}`
|
|
14783
|
-
] }) : /* @__PURE__ */
|
|
14831
|
+
] }) : /* @__PURE__ */ jsx62("span", { children: placeholder });
|
|
14784
14832
|
}
|
|
14785
14833
|
|
|
14786
14834
|
// src/components/DateTimePicker/internalUtils.ts
|
|
@@ -14834,7 +14882,7 @@ var DateTimePickerVariant = /* @__PURE__ */ ((DateTimePickerVariant2) => {
|
|
|
14834
14882
|
})(DateTimePickerVariant || {});
|
|
14835
14883
|
|
|
14836
14884
|
// src/components/DateTimePicker/DateTimePicker.tsx
|
|
14837
|
-
import { jsx as
|
|
14885
|
+
import { jsx as jsx63, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
14838
14886
|
var timeZoneOptions = typeof Intl !== "undefined" && typeof Intl.supportedValuesOf === "function" ? Intl.supportedValuesOf("timeZone") : ["Etc/UTC"];
|
|
14839
14887
|
var TIMEZONE_OPTIONS = timeZoneOptions.map((v) => {
|
|
14840
14888
|
let tz = v;
|
|
@@ -14937,8 +14985,8 @@ var DateTimePicker = ({
|
|
|
14937
14985
|
}),
|
|
14938
14986
|
[handleClearClick, handleDateChange, handleTimeChange]
|
|
14939
14987
|
);
|
|
14940
|
-
return /* @__PURE__ */
|
|
14941
|
-
showLabel ? /* @__PURE__ */
|
|
14988
|
+
return /* @__PURE__ */ jsx63(DateTimePickerContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs39("div", { "data-testid": testId, "data-variant": variant, ...props, children: [
|
|
14989
|
+
showLabel ? /* @__PURE__ */ jsx63(Label, { css: [labelText], "data-testid": `${testId}-label`, children: label }) : null,
|
|
14942
14990
|
/* @__PURE__ */ jsxs39("div", { css: inputContainer, children: [
|
|
14943
14991
|
/* @__PURE__ */ jsxs39(
|
|
14944
14992
|
"div",
|
|
@@ -14947,7 +14995,7 @@ var DateTimePicker = ({
|
|
|
14947
14995
|
"data-disabled": disabled2,
|
|
14948
14996
|
"data-focus": popover2.visible,
|
|
14949
14997
|
children: [
|
|
14950
|
-
/* @__PURE__ */
|
|
14998
|
+
/* @__PURE__ */ jsx63(
|
|
14951
14999
|
PopoverDisclosure,
|
|
14952
15000
|
{
|
|
14953
15001
|
...popover2,
|
|
@@ -14956,10 +15004,10 @@ var DateTimePicker = ({
|
|
|
14956
15004
|
buttonType: "ghostUnimportant",
|
|
14957
15005
|
disabled: disabled2,
|
|
14958
15006
|
"data-testid": `${testId}-trigger`,
|
|
14959
|
-
children: /* @__PURE__ */
|
|
15007
|
+
children: /* @__PURE__ */ jsx63(DateTimePickerSummary, { value, placeholder })
|
|
14960
15008
|
}
|
|
14961
15009
|
),
|
|
14962
|
-
!disabled2 && Boolean(value == null ? void 0 : value.datetime) && /* @__PURE__ */
|
|
15010
|
+
!disabled2 && Boolean(value == null ? void 0 : value.datetime) && /* @__PURE__ */ jsx63(
|
|
14963
15011
|
Button,
|
|
14964
15012
|
{
|
|
14965
15013
|
css: trigger,
|
|
@@ -14969,12 +15017,12 @@ var DateTimePicker = ({
|
|
|
14969
15017
|
children: "clear"
|
|
14970
15018
|
}
|
|
14971
15019
|
),
|
|
14972
|
-
/* @__PURE__ */
|
|
15020
|
+
/* @__PURE__ */ jsx63(Button, { css: trigger, buttonType: "ghost", disabled: disabled2, onClick: popover2.show, children: /* @__PURE__ */ jsx63(Icon, { icon: "calendar", iconColor: "currentColor" }) })
|
|
14973
15021
|
]
|
|
14974
15022
|
}
|
|
14975
15023
|
),
|
|
14976
15024
|
/* @__PURE__ */ jsxs39(Popover2, { ...popover2, css: [Popover, popover], "aria-label": "Pick a date", children: [
|
|
14977
|
-
/* @__PURE__ */
|
|
15025
|
+
/* @__PURE__ */ jsx63("div", { css: calendarSection, children: /* @__PURE__ */ jsx63(
|
|
14978
15026
|
Calendar,
|
|
14979
15027
|
{
|
|
14980
15028
|
value: draftDate == null ? void 0 : draftDate.toString(),
|
|
@@ -14985,7 +15033,7 @@ var DateTimePicker = ({
|
|
|
14985
15033
|
"data-testid": `${testId}-calendar`
|
|
14986
15034
|
}
|
|
14987
15035
|
) }),
|
|
14988
|
-
variant !== "date" /* Date */ && /* @__PURE__ */
|
|
15036
|
+
variant !== "date" /* Date */ && /* @__PURE__ */ jsx63("div", { css: timeSection, children: /* @__PURE__ */ jsx63(
|
|
14989
15037
|
InputTime,
|
|
14990
15038
|
{
|
|
14991
15039
|
label: "Time",
|
|
@@ -14995,8 +15043,8 @@ var DateTimePicker = ({
|
|
|
14995
15043
|
}
|
|
14996
15044
|
) }),
|
|
14997
15045
|
/* @__PURE__ */ jsxs39("div", { css: tzSection, children: [
|
|
14998
|
-
/* @__PURE__ */
|
|
14999
|
-
/* @__PURE__ */
|
|
15046
|
+
/* @__PURE__ */ jsx63(Label, { css: labelText, children: "Timezone" }),
|
|
15047
|
+
/* @__PURE__ */ jsx63(
|
|
15000
15048
|
InputComboBox,
|
|
15001
15049
|
{
|
|
15002
15050
|
value: draftTimeZone,
|
|
@@ -15006,12 +15054,12 @@ var DateTimePicker = ({
|
|
|
15006
15054
|
)
|
|
15007
15055
|
] }),
|
|
15008
15056
|
/* @__PURE__ */ jsxs39(HorizontalRhythm, { gap: "0", children: [
|
|
15009
|
-
/* @__PURE__ */
|
|
15010
|
-
/* @__PURE__ */
|
|
15057
|
+
/* @__PURE__ */ jsx63(Button, { buttonType: "secondary", onClick: handleSelectClick, children: "Select" }),
|
|
15058
|
+
/* @__PURE__ */ jsx63(Button, { buttonType: "ghostDestructive", onClick: popover2.hide, children: "cancel" })
|
|
15011
15059
|
] })
|
|
15012
15060
|
] })
|
|
15013
15061
|
] }),
|
|
15014
|
-
/* @__PURE__ */
|
|
15062
|
+
/* @__PURE__ */ jsx63(
|
|
15015
15063
|
FieldMessage,
|
|
15016
15064
|
{
|
|
15017
15065
|
helperMessage: caption,
|
|
@@ -15057,21 +15105,21 @@ var descriptionListValueStyles = css53`
|
|
|
15057
15105
|
`;
|
|
15058
15106
|
|
|
15059
15107
|
// src/components/DescriptionList/DescriptionList.tsx
|
|
15060
|
-
import { jsx as
|
|
15108
|
+
import { jsx as jsx64, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
|
|
15061
15109
|
var DescriptionList = React14.forwardRef(
|
|
15062
15110
|
({ items, variant = "horizontal", ...listProps }, ref) => {
|
|
15063
15111
|
if (!(items == null ? void 0 : items.length)) {
|
|
15064
15112
|
return null;
|
|
15065
15113
|
}
|
|
15066
|
-
return /* @__PURE__ */
|
|
15114
|
+
return /* @__PURE__ */ jsx64(
|
|
15067
15115
|
"dl",
|
|
15068
15116
|
{
|
|
15069
15117
|
ref,
|
|
15070
15118
|
css: variant === "vertical" ? descriptionListVertical : descriptionListHorizontal,
|
|
15071
15119
|
...listProps,
|
|
15072
15120
|
children: items == null ? void 0 : items.map(({ label, value }) => /* @__PURE__ */ jsxs40(React14.Fragment, { children: [
|
|
15073
|
-
/* @__PURE__ */
|
|
15074
|
-
/* @__PURE__ */
|
|
15121
|
+
/* @__PURE__ */ jsx64("dt", { css: descriptionListLabelStyles, children: label }),
|
|
15122
|
+
/* @__PURE__ */ jsx64("dd", { css: descriptionListValueStyles, children: typeof value === "boolean" ? /* @__PURE__ */ jsx64(DescriptionListValueBoolean, { value }) : value })
|
|
15075
15123
|
] }, label))
|
|
15076
15124
|
}
|
|
15077
15125
|
);
|
|
@@ -15081,7 +15129,7 @@ DescriptionList.displayName = "DescriptionList";
|
|
|
15081
15129
|
var DescriptionListValueBoolean = ({ value }) => {
|
|
15082
15130
|
const Icon2 = value ? TbCheck : TbMinus;
|
|
15083
15131
|
const color = value ? "var(--accent-dark)" : "var(--gray-500)";
|
|
15084
|
-
return /* @__PURE__ */
|
|
15132
|
+
return /* @__PURE__ */ jsx64(Icon2, { style: { color }, strokeWidth: 3 });
|
|
15085
15133
|
};
|
|
15086
15134
|
|
|
15087
15135
|
// src/components/Details/Details.tsx
|
|
@@ -15133,7 +15181,7 @@ var summaryIconVisiblyHidden = css54`
|
|
|
15133
15181
|
`;
|
|
15134
15182
|
|
|
15135
15183
|
// src/components/Details/Details.tsx
|
|
15136
|
-
import { jsx as
|
|
15184
|
+
import { jsx as jsx65, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
15137
15185
|
var Details = ({
|
|
15138
15186
|
summary: summary2,
|
|
15139
15187
|
children,
|
|
@@ -15163,7 +15211,7 @@ var Details = ({
|
|
|
15163
15211
|
...props,
|
|
15164
15212
|
children: [
|
|
15165
15213
|
/* @__PURE__ */ jsxs41("summary", { "data-testid": "summary", css: [summary, isCompact ? summaryCompact : null], children: [
|
|
15166
|
-
/* @__PURE__ */
|
|
15214
|
+
/* @__PURE__ */ jsx65(
|
|
15167
15215
|
Icon,
|
|
15168
15216
|
{
|
|
15169
15217
|
css: [!children ? summaryIconVisiblyHidden : void 0, summaryIcon],
|
|
@@ -15174,7 +15222,7 @@ var Details = ({
|
|
|
15174
15222
|
),
|
|
15175
15223
|
summary2
|
|
15176
15224
|
] }),
|
|
15177
|
-
memoizedIsOpen ? /* @__PURE__ */
|
|
15225
|
+
memoizedIsOpen ? /* @__PURE__ */ jsx65(
|
|
15178
15226
|
"div",
|
|
15179
15227
|
{
|
|
15180
15228
|
"data-testid": "details-content",
|
|
@@ -15301,7 +15349,7 @@ var drawerWrapperOverlayStyles = css55`
|
|
|
15301
15349
|
|
|
15302
15350
|
// src/components/Drawer/DrawerProvider.tsx
|
|
15303
15351
|
import { createContext as createContext3, useCallback as useCallback4, useContext as useContext4, useRef as useRef3, useState as useState8 } from "react";
|
|
15304
|
-
import { jsx as
|
|
15352
|
+
import { jsx as jsx66 } from "@emotion/react/jsx-runtime";
|
|
15305
15353
|
var DrawerContext = createContext3({
|
|
15306
15354
|
providerId: "",
|
|
15307
15355
|
drawersRegistry: [],
|
|
@@ -15394,7 +15442,7 @@ var DrawerProvider = ({ children }) => {
|
|
|
15394
15442
|
},
|
|
15395
15443
|
[drawerTakeoverStackId]
|
|
15396
15444
|
);
|
|
15397
|
-
return /* @__PURE__ */
|
|
15445
|
+
return /* @__PURE__ */ jsx66(
|
|
15398
15446
|
DrawerContext.Provider,
|
|
15399
15447
|
{
|
|
15400
15448
|
value: {
|
|
@@ -15428,7 +15476,7 @@ function isEqualDrawerInstance(a, b) {
|
|
|
15428
15476
|
}
|
|
15429
15477
|
|
|
15430
15478
|
// src/components/Drawer/Drawer.tsx
|
|
15431
|
-
import { jsx as
|
|
15479
|
+
import { jsx as jsx67, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
15432
15480
|
var defaultSackId = "_default";
|
|
15433
15481
|
var CurrentDrawerContext = createContext4({});
|
|
15434
15482
|
var useCurrentDrawer = () => {
|
|
@@ -15441,9 +15489,9 @@ var Drawer = React17.forwardRef(
|
|
|
15441
15489
|
const { drawerTakeoverStackId } = useDrawer();
|
|
15442
15490
|
const drawerRendererProps = { width: drawerProps.width, minWidth, maxWidth, position, leftAligned };
|
|
15443
15491
|
const resolvedStickyStackIdRef = useRef4((_a = drawerTakeoverStackId != null ? drawerTakeoverStackId : drawerProps.stackId) != null ? _a : inheritedStackId);
|
|
15444
|
-
return resolvedStickyStackIdRef.current ? /* @__PURE__ */
|
|
15445
|
-
/* @__PURE__ */
|
|
15446
|
-
/* @__PURE__ */
|
|
15492
|
+
return resolvedStickyStackIdRef.current ? /* @__PURE__ */ jsx67(DrawerInner, { ref, ...drawerProps, stackId: resolvedStickyStackIdRef.current }) : /* @__PURE__ */ jsxs42(DrawerProvider, { children: [
|
|
15493
|
+
/* @__PURE__ */ jsx67(DrawerInner, { ref, ...drawerProps }),
|
|
15494
|
+
/* @__PURE__ */ jsx67(DrawerRenderer, { stackId: defaultSackId, ...drawerRendererProps })
|
|
15447
15495
|
] });
|
|
15448
15496
|
}
|
|
15449
15497
|
);
|
|
@@ -15488,7 +15536,7 @@ var DrawerInner = ({
|
|
|
15488
15536
|
return null;
|
|
15489
15537
|
}
|
|
15490
15538
|
const headerId = `dialog-header-${providerId}-${stackId}-${id}`;
|
|
15491
|
-
return /* @__PURE__ */
|
|
15539
|
+
return /* @__PURE__ */ jsx67(CurrentDrawerContext.Provider, { value: { id, stackId, leftAligned }, children: createPortal(
|
|
15492
15540
|
/* @__PURE__ */ jsxs42(
|
|
15493
15541
|
"div",
|
|
15494
15542
|
{
|
|
@@ -15501,8 +15549,8 @@ var DrawerInner = ({
|
|
|
15501
15549
|
"data-testid": testId,
|
|
15502
15550
|
children: [
|
|
15503
15551
|
/* @__PURE__ */ jsxs42("div", { css: headerWrapperStyles, children: [
|
|
15504
|
-
header2 ? /* @__PURE__ */
|
|
15505
|
-
/* @__PURE__ */
|
|
15552
|
+
header2 ? /* @__PURE__ */ jsx67("div", { id: headerId, css: drawerHeaderStyles, "data-testid": "header", children: header2 }) : null,
|
|
15553
|
+
/* @__PURE__ */ jsx67(
|
|
15506
15554
|
Button,
|
|
15507
15555
|
{
|
|
15508
15556
|
ref: closeButtonRef,
|
|
@@ -15512,7 +15560,7 @@ var DrawerInner = ({
|
|
|
15512
15560
|
title: "Close dialog",
|
|
15513
15561
|
buttonType: "ghost",
|
|
15514
15562
|
"data-testid": "close-button",
|
|
15515
|
-
children: /* @__PURE__ */
|
|
15563
|
+
children: /* @__PURE__ */ jsx67(
|
|
15516
15564
|
Icon,
|
|
15517
15565
|
{
|
|
15518
15566
|
icon: CgChevronRight,
|
|
@@ -15524,7 +15572,7 @@ var DrawerInner = ({
|
|
|
15524
15572
|
}
|
|
15525
15573
|
)
|
|
15526
15574
|
] }),
|
|
15527
|
-
/* @__PURE__ */
|
|
15575
|
+
/* @__PURE__ */ jsx67("div", { css: drawerInnerStyles, children })
|
|
15528
15576
|
]
|
|
15529
15577
|
}
|
|
15530
15578
|
),
|
|
@@ -15561,17 +15609,17 @@ var DrawerContentBtnGroup = css56`
|
|
|
15561
15609
|
`;
|
|
15562
15610
|
|
|
15563
15611
|
// src/components/Drawer/DrawerContent.tsx
|
|
15564
|
-
import { jsx as
|
|
15612
|
+
import { jsx as jsx68, jsxs as jsxs43 } from "@emotion/react/jsx-runtime";
|
|
15565
15613
|
var DrawerContent2 = ({ children, buttonGroup, noPadding = false, ...props }) => {
|
|
15566
15614
|
return /* @__PURE__ */ jsxs43("div", { css: DrawerContent, ...props, children: [
|
|
15567
|
-
/* @__PURE__ */
|
|
15568
|
-
buttonGroup ? /* @__PURE__ */
|
|
15615
|
+
/* @__PURE__ */ jsx68("div", { css: [DrawerContentInner, noPadding ? { padding: 0 } : null], children }),
|
|
15616
|
+
buttonGroup ? /* @__PURE__ */ jsx68("div", { css: DrawerContentBtnGroup, children: buttonGroup }) : null
|
|
15569
15617
|
] });
|
|
15570
15618
|
};
|
|
15571
15619
|
|
|
15572
15620
|
// src/components/Drawer/DrawerRenderer.tsx
|
|
15573
15621
|
import { useEffect as useEffect6, useMemo as useMemo3 } from "react";
|
|
15574
|
-
import { Fragment as Fragment9, jsx as
|
|
15622
|
+
import { Fragment as Fragment9, jsx as jsx69, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
15575
15623
|
var drawerWidth = {
|
|
15576
15624
|
narrow: "29rem",
|
|
15577
15625
|
medium: "43rem",
|
|
@@ -15612,7 +15660,7 @@ var DrawerRenderer = ({
|
|
|
15612
15660
|
if (drawersToRender.length === 0) {
|
|
15613
15661
|
return null;
|
|
15614
15662
|
}
|
|
15615
|
-
return /* @__PURE__ */
|
|
15663
|
+
return /* @__PURE__ */ jsx69(
|
|
15616
15664
|
"div",
|
|
15617
15665
|
{
|
|
15618
15666
|
css: [
|
|
@@ -15621,7 +15669,7 @@ var DrawerRenderer = ({
|
|
|
15621
15669
|
position === "sticky" ? { height: "100%", marginTop: "-100%" } : void 0
|
|
15622
15670
|
],
|
|
15623
15671
|
...otherProps,
|
|
15624
|
-
children: drawersToRender.map(({ id, stackId: stackId2, onRequestClose }, index) => /* @__PURE__ */
|
|
15672
|
+
children: drawersToRender.map(({ id, stackId: stackId2, onRequestClose }, index) => /* @__PURE__ */ jsx69(
|
|
15625
15673
|
DrawerWrapper,
|
|
15626
15674
|
{
|
|
15627
15675
|
index,
|
|
@@ -15631,7 +15679,7 @@ var DrawerRenderer = ({
|
|
|
15631
15679
|
maxWidth,
|
|
15632
15680
|
onOverlayClick: onRequestClose,
|
|
15633
15681
|
leftAligned,
|
|
15634
|
-
children: /* @__PURE__ */
|
|
15682
|
+
children: /* @__PURE__ */ jsx69(
|
|
15635
15683
|
"div",
|
|
15636
15684
|
{
|
|
15637
15685
|
...getDrawerAttributes({ providerId, stackId: stackId2, id }),
|
|
@@ -15661,8 +15709,8 @@ var DrawerWrapper = ({
|
|
|
15661
15709
|
}
|
|
15662
15710
|
const calculatedWidth = `calc(${width} - ${offsetInPx}px)`;
|
|
15663
15711
|
return /* @__PURE__ */ jsxs44(Fragment9, { children: [
|
|
15664
|
-
/* @__PURE__ */
|
|
15665
|
-
/* @__PURE__ */
|
|
15712
|
+
/* @__PURE__ */ jsx69("div", { css: drawerWrapperOverlayStyles, onClick: onOverlayClick }),
|
|
15713
|
+
/* @__PURE__ */ jsx69(
|
|
15666
15714
|
"div",
|
|
15667
15715
|
{
|
|
15668
15716
|
css: [drawerWrapperStyles, leftAligned ? drawerWrapperLeftAlignedStyles : null],
|
|
@@ -15682,7 +15730,7 @@ var getDrawerAttributes = ({
|
|
|
15682
15730
|
|
|
15683
15731
|
// src/components/Drawer/TakeoverDrawerRenderer.tsx
|
|
15684
15732
|
import { useEffect as useEffect7 } from "react";
|
|
15685
|
-
import { jsx as
|
|
15733
|
+
import { jsx as jsx70 } from "@emotion/react/jsx-runtime";
|
|
15686
15734
|
var TAKEOVER_STACK_ID = "takeover-stack";
|
|
15687
15735
|
var TakeoverDrawerRenderer = (props) => {
|
|
15688
15736
|
const { registerTakeoverStackId, unregisterTakeoverStackId } = useDrawer();
|
|
@@ -15692,11 +15740,11 @@ var TakeoverDrawerRenderer = (props) => {
|
|
|
15692
15740
|
unregisterTakeoverStackId(TAKEOVER_STACK_ID);
|
|
15693
15741
|
};
|
|
15694
15742
|
}, [registerTakeoverStackId, unregisterTakeoverStackId]);
|
|
15695
|
-
return /* @__PURE__ */
|
|
15743
|
+
return /* @__PURE__ */ jsx70(DrawerRenderer, { ...props, stackId: TAKEOVER_STACK_ID });
|
|
15696
15744
|
};
|
|
15697
15745
|
|
|
15698
15746
|
// src/components/IconButton/IconButton.tsx
|
|
15699
|
-
import { forwardRef as
|
|
15747
|
+
import { forwardRef as forwardRef14 } from "react";
|
|
15700
15748
|
|
|
15701
15749
|
// src/components/IconButton/IconButton.styles.ts
|
|
15702
15750
|
import { css as css57 } from "@emotion/react";
|
|
@@ -15726,10 +15774,10 @@ var variants = {
|
|
|
15726
15774
|
};
|
|
15727
15775
|
|
|
15728
15776
|
// src/components/IconButton/IconButton.tsx
|
|
15729
|
-
import { jsx as
|
|
15730
|
-
var IconButton =
|
|
15777
|
+
import { jsx as jsx71 } from "@emotion/react/jsx-runtime";
|
|
15778
|
+
var IconButton = forwardRef14(
|
|
15731
15779
|
({ children, size = "md", variant = "square", ...props }, ref) => {
|
|
15732
|
-
return /* @__PURE__ */
|
|
15780
|
+
return /* @__PURE__ */ jsx71(Button, { ref, css: [iconButton, variants[variant], sizes[size]], ...props, children });
|
|
15733
15781
|
}
|
|
15734
15782
|
);
|
|
15735
15783
|
IconButton.displayName = "IconButton";
|
|
@@ -15789,7 +15837,7 @@ var variantFillImageImg = css58`
|
|
|
15789
15837
|
`;
|
|
15790
15838
|
|
|
15791
15839
|
// src/components/Image/ImageBroken.tsx
|
|
15792
|
-
import { jsx as
|
|
15840
|
+
import { jsx as jsx72, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
|
|
15793
15841
|
var ImageBroken = ({ width, height, ...props }) => {
|
|
15794
15842
|
return /* @__PURE__ */ jsxs45(
|
|
15795
15843
|
"svg",
|
|
@@ -15804,11 +15852,11 @@ var ImageBroken = ({ width, height, ...props }) => {
|
|
|
15804
15852
|
"data-testid": "broken-image",
|
|
15805
15853
|
...props,
|
|
15806
15854
|
children: [
|
|
15807
|
-
/* @__PURE__ */
|
|
15808
|
-
/* @__PURE__ */
|
|
15855
|
+
/* @__PURE__ */ jsx72("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
15856
|
+
/* @__PURE__ */ jsx72("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
15809
15857
|
/* @__PURE__ */ jsxs45("defs", { children: [
|
|
15810
|
-
/* @__PURE__ */
|
|
15811
|
-
/* @__PURE__ */
|
|
15858
|
+
/* @__PURE__ */ jsx72("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx72("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
15859
|
+
/* @__PURE__ */ jsx72(
|
|
15812
15860
|
"image",
|
|
15813
15861
|
{
|
|
15814
15862
|
id: "image0_761_4353",
|
|
@@ -15824,7 +15872,7 @@ var ImageBroken = ({ width, height, ...props }) => {
|
|
|
15824
15872
|
};
|
|
15825
15873
|
|
|
15826
15874
|
// src/components/Image/Image.tsx
|
|
15827
|
-
import { jsx as
|
|
15875
|
+
import { jsx as jsx73, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
15828
15876
|
var MIN_LOADING_MS = 100;
|
|
15829
15877
|
function Image({
|
|
15830
15878
|
alt,
|
|
@@ -15884,7 +15932,7 @@ function Image({
|
|
|
15884
15932
|
variant === "fill-container" ? variantFillImageWrapper : null
|
|
15885
15933
|
],
|
|
15886
15934
|
children: [
|
|
15887
|
-
src && !loadErrorText ? /* @__PURE__ */
|
|
15935
|
+
src && !loadErrorText ? /* @__PURE__ */ jsx73(
|
|
15888
15936
|
"img",
|
|
15889
15937
|
{
|
|
15890
15938
|
...imgAttribs,
|
|
@@ -15912,14 +15960,14 @@ function Image({
|
|
|
15912
15960
|
...variant === "fill-container" ? {} : { width, height }
|
|
15913
15961
|
},
|
|
15914
15962
|
children: [
|
|
15915
|
-
/* @__PURE__ */
|
|
15963
|
+
/* @__PURE__ */ jsx73(
|
|
15916
15964
|
ImageBroken,
|
|
15917
15965
|
{
|
|
15918
15966
|
css: [brokenImage, img, imgLoaded],
|
|
15919
15967
|
"data-testid": "broken-image"
|
|
15920
15968
|
}
|
|
15921
15969
|
),
|
|
15922
|
-
/* @__PURE__ */
|
|
15970
|
+
/* @__PURE__ */ jsx73(ErrorMessage, { message: loadErrorText, css: brokenImageMessage, truncated: true })
|
|
15923
15971
|
]
|
|
15924
15972
|
}
|
|
15925
15973
|
) : null
|
|
@@ -16063,7 +16111,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => css59`
|
|
|
16063
16111
|
`;
|
|
16064
16112
|
|
|
16065
16113
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
16066
|
-
import { jsx as
|
|
16114
|
+
import { jsx as jsx74, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
16067
16115
|
var CreateTeamIntegrationTile = ({
|
|
16068
16116
|
title: title2 = "Create a custom integration for your team",
|
|
16069
16117
|
buttonText = "Add Integration",
|
|
@@ -16072,7 +16120,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
16072
16120
|
...props
|
|
16073
16121
|
}) => {
|
|
16074
16122
|
return /* @__PURE__ */ jsxs47("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
16075
|
-
/* @__PURE__ */
|
|
16123
|
+
/* @__PURE__ */ jsx74("span", { css: IntegrationTileTitle, title: title2, children: title2 }),
|
|
16076
16124
|
/* @__PURE__ */ jsxs47(
|
|
16077
16125
|
Button,
|
|
16078
16126
|
{
|
|
@@ -16083,7 +16131,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
16083
16131
|
css: IntegrationTitleFakeButton,
|
|
16084
16132
|
children: [
|
|
16085
16133
|
buttonText,
|
|
16086
|
-
asDeepLink ? /* @__PURE__ */
|
|
16134
|
+
asDeepLink ? /* @__PURE__ */ jsx74(
|
|
16087
16135
|
Icon,
|
|
16088
16136
|
{
|
|
16089
16137
|
icon: CgChevronRight2,
|
|
@@ -16093,7 +16141,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
16093
16141
|
order: 1;
|
|
16094
16142
|
`
|
|
16095
16143
|
}
|
|
16096
|
-
) : /* @__PURE__ */
|
|
16144
|
+
) : /* @__PURE__ */ jsx74(
|
|
16097
16145
|
Icon,
|
|
16098
16146
|
{
|
|
16099
16147
|
icon: CgAdd2,
|
|
@@ -16114,31 +16162,31 @@ var CreateTeamIntegrationTile = ({
|
|
|
16114
16162
|
import { CgCheck } from "@react-icons/all-files/cg/CgCheck";
|
|
16115
16163
|
import { CgLock } from "@react-icons/all-files/cg/CgLock";
|
|
16116
16164
|
import { CgSandClock } from "@react-icons/all-files/cg/CgSandClock";
|
|
16117
|
-
import { jsx as
|
|
16165
|
+
import { jsx as jsx75, jsxs as jsxs48 } from "@emotion/react/jsx-runtime";
|
|
16118
16166
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
16119
16167
|
return /* @__PURE__ */ jsxs48("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
16120
|
-
/* @__PURE__ */
|
|
16168
|
+
/* @__PURE__ */ jsx75(Icon, { icon: CgCheck, iconColor: "currentColor" }),
|
|
16121
16169
|
text
|
|
16122
16170
|
] });
|
|
16123
16171
|
};
|
|
16124
16172
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
16125
|
-
return /* @__PURE__ */
|
|
16173
|
+
return /* @__PURE__ */ jsx75("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
16126
16174
|
};
|
|
16127
16175
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
16128
16176
|
return /* @__PURE__ */ jsxs48("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
16129
|
-
/* @__PURE__ */
|
|
16177
|
+
/* @__PURE__ */ jsx75(Icon, { icon: CgLock, iconColor: "currentColor", size: 12 }),
|
|
16130
16178
|
text
|
|
16131
16179
|
] });
|
|
16132
16180
|
};
|
|
16133
16181
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
16134
16182
|
return /* @__PURE__ */ jsxs48("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
16135
|
-
/* @__PURE__ */
|
|
16183
|
+
/* @__PURE__ */ jsx75(Icon, { icon: CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
16136
16184
|
text
|
|
16137
16185
|
] });
|
|
16138
16186
|
};
|
|
16139
16187
|
|
|
16140
16188
|
// src/components/Tiles/ResolveIcon.tsx
|
|
16141
|
-
import { jsx as
|
|
16189
|
+
import { jsx as jsx76 } from "@emotion/react/jsx-runtime";
|
|
16142
16190
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
16143
16191
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
16144
16192
|
const mapClassName = {
|
|
@@ -16146,13 +16194,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
16146
16194
|
logo: IntegrationTitleLogo
|
|
16147
16195
|
};
|
|
16148
16196
|
if (icon) {
|
|
16149
|
-
return CompIcon ? /* @__PURE__ */
|
|
16197
|
+
return CompIcon ? /* @__PURE__ */ jsx76(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ jsx76("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
16150
16198
|
}
|
|
16151
16199
|
return null;
|
|
16152
16200
|
};
|
|
16153
16201
|
|
|
16154
16202
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
16155
|
-
import { jsx as
|
|
16203
|
+
import { jsx as jsx77, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
16156
16204
|
var EditTeamIntegrationTile = ({
|
|
16157
16205
|
id,
|
|
16158
16206
|
icon,
|
|
@@ -16168,10 +16216,10 @@ var EditTeamIntegrationTile = ({
|
|
|
16168
16216
|
"data-testid": "configure-integration-container",
|
|
16169
16217
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
16170
16218
|
children: [
|
|
16171
|
-
/* @__PURE__ */
|
|
16172
|
-
/* @__PURE__ */
|
|
16173
|
-
!isPublic ? /* @__PURE__ */
|
|
16174
|
-
canEdit ? /* @__PURE__ */
|
|
16219
|
+
/* @__PURE__ */ jsx77(ResolveIcon, { icon, name, "data-testid": "integration-logo" }),
|
|
16220
|
+
/* @__PURE__ */ jsx77("span", { css: IntegrationTileName, "data-testid": "integration-card-name", children: name }),
|
|
16221
|
+
!isPublic ? /* @__PURE__ */ jsx77(IntegrationCustomBadge, {}) : null,
|
|
16222
|
+
canEdit ? /* @__PURE__ */ jsx77(
|
|
16175
16223
|
Button,
|
|
16176
16224
|
{
|
|
16177
16225
|
buttonType: "unimportant",
|
|
@@ -16192,7 +16240,7 @@ var EditTeamIntegrationTile = ({
|
|
|
16192
16240
|
import { css as css61 } from "@emotion/react";
|
|
16193
16241
|
import { CgHeart } from "@react-icons/all-files/cg/CgHeart";
|
|
16194
16242
|
import { useEffect as useEffect9, useState as useState11 } from "react";
|
|
16195
|
-
import { jsx as
|
|
16243
|
+
import { jsx as jsx78, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
16196
16244
|
var IntegrationComingSoon = ({
|
|
16197
16245
|
name,
|
|
16198
16246
|
icon,
|
|
@@ -16221,9 +16269,9 @@ var IntegrationComingSoon = ({
|
|
|
16221
16269
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
16222
16270
|
...props,
|
|
16223
16271
|
children: [
|
|
16224
|
-
/* @__PURE__ */
|
|
16225
|
-
/* @__PURE__ */
|
|
16226
|
-
/* @__PURE__ */
|
|
16272
|
+
/* @__PURE__ */ jsx78(IntegrationComingSoonBadge, {}),
|
|
16273
|
+
/* @__PURE__ */ jsx78(ResolveIcon, { icon, name }),
|
|
16274
|
+
/* @__PURE__ */ jsx78("span", { css: IntegrationTileName, title: name, children: name }),
|
|
16227
16275
|
/* @__PURE__ */ jsxs50(
|
|
16228
16276
|
Button,
|
|
16229
16277
|
{
|
|
@@ -16234,8 +16282,8 @@ var IntegrationComingSoon = ({
|
|
|
16234
16282
|
role: "link",
|
|
16235
16283
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
16236
16284
|
children: [
|
|
16237
|
-
/* @__PURE__ */
|
|
16238
|
-
/* @__PURE__ */
|
|
16285
|
+
/* @__PURE__ */ jsx78("strong", { children: "+1" }),
|
|
16286
|
+
/* @__PURE__ */ jsx78(
|
|
16239
16287
|
"span",
|
|
16240
16288
|
{
|
|
16241
16289
|
css: css61`
|
|
@@ -16246,7 +16294,7 @@ var IntegrationComingSoon = ({
|
|
|
16246
16294
|
}
|
|
16247
16295
|
),
|
|
16248
16296
|
/* @__PURE__ */ jsxs50("span", { "aria-hidden": !upVote, children: [
|
|
16249
|
-
/* @__PURE__ */
|
|
16297
|
+
/* @__PURE__ */ jsx78(Icon, { icon: CgHeart, iconColor: "currentColor", size: 18 }),
|
|
16250
16298
|
"Thanks!"
|
|
16251
16299
|
] })
|
|
16252
16300
|
]
|
|
@@ -16302,12 +16350,12 @@ var IntegrationLoadingFrame = css62`
|
|
|
16302
16350
|
`;
|
|
16303
16351
|
|
|
16304
16352
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
16305
|
-
import { Fragment as Fragment10, jsx as
|
|
16353
|
+
import { Fragment as Fragment10, jsx as jsx79, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
16306
16354
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
16307
16355
|
const componentCount = Array.from(Array(count).keys());
|
|
16308
|
-
return /* @__PURE__ */
|
|
16309
|
-
/* @__PURE__ */
|
|
16310
|
-
/* @__PURE__ */
|
|
16356
|
+
return /* @__PURE__ */ jsx79(Fragment10, { children: componentCount.map((i) => /* @__PURE__ */ jsxs51("div", { css: IntegrationLoadingTileContainer, children: [
|
|
16357
|
+
/* @__PURE__ */ jsx79("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
16358
|
+
/* @__PURE__ */ jsx79("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
16311
16359
|
] }, i)) });
|
|
16312
16360
|
};
|
|
16313
16361
|
|
|
@@ -16327,7 +16375,7 @@ var IntegrationModalImage = css63`
|
|
|
16327
16375
|
`;
|
|
16328
16376
|
|
|
16329
16377
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
16330
|
-
import { jsx as
|
|
16378
|
+
import { jsx as jsx80, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
16331
16379
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
16332
16380
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
16333
16381
|
let iconSrc = void 0;
|
|
@@ -16345,7 +16393,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
16345
16393
|
}
|
|
16346
16394
|
return /* @__PURE__ */ jsxs52("div", { css: IntegrationModalIconContainer, children: [
|
|
16347
16395
|
/* @__PURE__ */ jsxs52("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
16348
|
-
/* @__PURE__ */
|
|
16396
|
+
/* @__PURE__ */ jsx80(
|
|
16349
16397
|
"path",
|
|
16350
16398
|
{
|
|
16351
16399
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -16354,12 +16402,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
16354
16402
|
strokeWidth: "2"
|
|
16355
16403
|
}
|
|
16356
16404
|
),
|
|
16357
|
-
/* @__PURE__ */
|
|
16358
|
-
/* @__PURE__ */
|
|
16359
|
-
/* @__PURE__ */
|
|
16405
|
+
/* @__PURE__ */ jsx80("defs", { children: /* @__PURE__ */ jsxs52("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
16406
|
+
/* @__PURE__ */ jsx80("stop", { stopColor: "#1768B2" }),
|
|
16407
|
+
/* @__PURE__ */ jsx80("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
16360
16408
|
] }) })
|
|
16361
16409
|
] }),
|
|
16362
|
-
CompIcon ? /* @__PURE__ */
|
|
16410
|
+
CompIcon ? /* @__PURE__ */ jsx80(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : iconSrc ? /* @__PURE__ */ jsx80(
|
|
16363
16411
|
"img",
|
|
16364
16412
|
{
|
|
16365
16413
|
src: iconSrc,
|
|
@@ -16373,7 +16421,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
16373
16421
|
};
|
|
16374
16422
|
|
|
16375
16423
|
// src/components/Tiles/IntegrationTile.tsx
|
|
16376
|
-
import { jsx as
|
|
16424
|
+
import { jsx as jsx81, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
16377
16425
|
var IntegrationTile = ({
|
|
16378
16426
|
id,
|
|
16379
16427
|
icon,
|
|
@@ -16395,12 +16443,12 @@ var IntegrationTile = ({
|
|
|
16395
16443
|
"aria-label": name,
|
|
16396
16444
|
...btnProps,
|
|
16397
16445
|
children: [
|
|
16398
|
-
/* @__PURE__ */
|
|
16399
|
-
/* @__PURE__ */
|
|
16400
|
-
isInstalled ? /* @__PURE__ */
|
|
16401
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */
|
|
16402
|
-
!isPublic ? /* @__PURE__ */
|
|
16403
|
-
authorIcon ? /* @__PURE__ */
|
|
16446
|
+
/* @__PURE__ */ jsx81(ResolveIcon, { icon, name }),
|
|
16447
|
+
/* @__PURE__ */ jsx81("span", { css: IntegrationTileName, title: name, children: name }),
|
|
16448
|
+
isInstalled ? /* @__PURE__ */ jsx81(IntegrationedAddedBadge, {}) : null,
|
|
16449
|
+
requiedEntitlement && isPublic ? /* @__PURE__ */ jsx81(IntegrationPremiumBadge, {}) : null,
|
|
16450
|
+
!isPublic ? /* @__PURE__ */ jsx81(IntegrationCustomBadge, {}) : null,
|
|
16451
|
+
authorIcon ? /* @__PURE__ */ jsx81(ResolveIcon, { icon: authorIcon, name }) : null
|
|
16404
16452
|
]
|
|
16405
16453
|
}
|
|
16406
16454
|
);
|
|
@@ -16437,9 +16485,9 @@ var TileIsSelected = css64`
|
|
|
16437
16485
|
`;
|
|
16438
16486
|
|
|
16439
16487
|
// src/components/Tiles/Tile.tsx
|
|
16440
|
-
import { jsx as
|
|
16488
|
+
import { jsx as jsx82 } from "@emotion/react/jsx-runtime";
|
|
16441
16489
|
var Tile2 = ({ children, disabled: disabled2, isSelected, ...props }) => {
|
|
16442
|
-
return /* @__PURE__ */
|
|
16490
|
+
return /* @__PURE__ */ jsx82(
|
|
16443
16491
|
"button",
|
|
16444
16492
|
{
|
|
16445
16493
|
type: "button",
|
|
@@ -16471,7 +16519,7 @@ var TileContainerInner = (gap, templateColumns) => css65`
|
|
|
16471
16519
|
`;
|
|
16472
16520
|
|
|
16473
16521
|
// src/components/Tiles/TileContainer.tsx
|
|
16474
|
-
import { jsx as
|
|
16522
|
+
import { jsx as jsx83 } from "@emotion/react/jsx-runtime";
|
|
16475
16523
|
var TileContainer = ({
|
|
16476
16524
|
bgColor = "var(--brand-secondary-2)",
|
|
16477
16525
|
containerPadding = "base",
|
|
@@ -16480,7 +16528,7 @@ var TileContainer = ({
|
|
|
16480
16528
|
children,
|
|
16481
16529
|
...props
|
|
16482
16530
|
}) => {
|
|
16483
|
-
return /* @__PURE__ */
|
|
16531
|
+
return /* @__PURE__ */ jsx83("div", { css: TileContainerWrapper(bgColor, containerPadding), ...props, children: /* @__PURE__ */ jsx83("div", { css: TileContainerInner(gap, gridTemplateColumns), children }) });
|
|
16484
16532
|
};
|
|
16485
16533
|
|
|
16486
16534
|
// src/components/Tiles/styles/TileText.styles.ts
|
|
@@ -16495,10 +16543,10 @@ var TileText = css66`
|
|
|
16495
16543
|
`;
|
|
16496
16544
|
|
|
16497
16545
|
// src/components/Tiles/TileText.tsx
|
|
16498
|
-
import { jsx as
|
|
16546
|
+
import { jsx as jsx84 } from "@emotion/react/jsx-runtime";
|
|
16499
16547
|
var TileText2 = ({ as = "heading", children, ...props }) => {
|
|
16500
16548
|
const isHeading = as === "heading";
|
|
16501
|
-
return /* @__PURE__ */
|
|
16549
|
+
return /* @__PURE__ */ jsx84(
|
|
16502
16550
|
"span",
|
|
16503
16551
|
{
|
|
16504
16552
|
role: isHeading ? "heading" : void 0,
|
|
@@ -16547,7 +16595,7 @@ var IntegrationModalHeaderContentWrapper = css67`
|
|
|
16547
16595
|
`;
|
|
16548
16596
|
|
|
16549
16597
|
// src/components/IntegrationModalHeader/IntegrationModalHeader.tsx
|
|
16550
|
-
import { Fragment as Fragment11, jsx as
|
|
16598
|
+
import { Fragment as Fragment11, jsx as jsx85, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
16551
16599
|
var HexModalBackground = ({ ...props }) => {
|
|
16552
16600
|
return /* @__PURE__ */ jsxs54(
|
|
16553
16601
|
"svg",
|
|
@@ -16559,7 +16607,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
16559
16607
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16560
16608
|
...props,
|
|
16561
16609
|
children: [
|
|
16562
|
-
/* @__PURE__ */
|
|
16610
|
+
/* @__PURE__ */ jsx85(
|
|
16563
16611
|
"path",
|
|
16564
16612
|
{
|
|
16565
16613
|
fillRule: "evenodd",
|
|
@@ -16568,7 +16616,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
16568
16616
|
fill: "url(#paint0_linear_196_2737)"
|
|
16569
16617
|
}
|
|
16570
16618
|
),
|
|
16571
|
-
/* @__PURE__ */
|
|
16619
|
+
/* @__PURE__ */ jsx85("defs", { children: /* @__PURE__ */ jsxs54(
|
|
16572
16620
|
"linearGradient",
|
|
16573
16621
|
{
|
|
16574
16622
|
id: "paint0_linear_196_2737",
|
|
@@ -16578,8 +16626,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
16578
16626
|
y2: "-95.2742",
|
|
16579
16627
|
gradientUnits: "userSpaceOnUse",
|
|
16580
16628
|
children: [
|
|
16581
|
-
/* @__PURE__ */
|
|
16582
|
-
/* @__PURE__ */
|
|
16629
|
+
/* @__PURE__ */ jsx85("stop", { stopColor: "#81DCDE" }),
|
|
16630
|
+
/* @__PURE__ */ jsx85("stop", { offset: "1", stopColor: "#428ED4" })
|
|
16583
16631
|
]
|
|
16584
16632
|
}
|
|
16585
16633
|
) })
|
|
@@ -16589,22 +16637,22 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
16589
16637
|
};
|
|
16590
16638
|
var IntegrationModalHeader = ({ icon, name, menu, children }) => {
|
|
16591
16639
|
return /* @__PURE__ */ jsxs54(Fragment11, { children: [
|
|
16592
|
-
/* @__PURE__ */
|
|
16593
|
-
/* @__PURE__ */
|
|
16594
|
-
icon ? /* @__PURE__ */
|
|
16595
|
-
/* @__PURE__ */
|
|
16640
|
+
/* @__PURE__ */ jsx85(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
16641
|
+
/* @__PURE__ */ jsx85("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs54("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
16642
|
+
icon ? /* @__PURE__ */ jsx85(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
16643
|
+
/* @__PURE__ */ jsx85(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-testid": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
16596
16644
|
menu ? /* @__PURE__ */ jsxs54("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
16597
16645
|
menu,
|
|
16598
16646
|
" "
|
|
16599
16647
|
] }) : null
|
|
16600
16648
|
] }) }),
|
|
16601
|
-
/* @__PURE__ */
|
|
16649
|
+
/* @__PURE__ */ jsx85("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
16602
16650
|
] });
|
|
16603
16651
|
};
|
|
16604
16652
|
|
|
16605
16653
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
16606
16654
|
import MonacoEditor from "@monaco-editor/react";
|
|
16607
|
-
import { jsx as
|
|
16655
|
+
import { jsx as jsx86 } from "@emotion/react/jsx-runtime";
|
|
16608
16656
|
var minEditorHeightPx = 150;
|
|
16609
16657
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
16610
16658
|
let effectiveHeight = height;
|
|
@@ -16614,7 +16662,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
16614
16662
|
if (typeof effectiveHeight === "number" && effectiveHeight < minEditorHeightPx) {
|
|
16615
16663
|
effectiveHeight = minEditorHeightPx;
|
|
16616
16664
|
}
|
|
16617
|
-
return /* @__PURE__ */
|
|
16665
|
+
return /* @__PURE__ */ jsx86(
|
|
16618
16666
|
MonacoEditor,
|
|
16619
16667
|
{
|
|
16620
16668
|
height: effectiveHeight,
|
|
@@ -16683,7 +16731,7 @@ var LimitsBarTextColor = (statusColor) => css68`
|
|
|
16683
16731
|
`;
|
|
16684
16732
|
|
|
16685
16733
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
16686
|
-
import { jsx as
|
|
16734
|
+
import { jsx as jsx87, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
16687
16735
|
var LimitsBar = ({ current, max, label }) => {
|
|
16688
16736
|
const maxPercentage = 100;
|
|
16689
16737
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -16696,14 +16744,14 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
16696
16744
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
16697
16745
|
return /* @__PURE__ */ jsxs55("div", { css: LimitsBarContainer, children: [
|
|
16698
16746
|
/* @__PURE__ */ jsxs55("div", { css: LimitsBarLabelContainer, children: [
|
|
16699
|
-
/* @__PURE__ */
|
|
16747
|
+
/* @__PURE__ */ jsx87("span", { css: LimitsBarLabel, children: label }),
|
|
16700
16748
|
/* @__PURE__ */ jsxs55("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
16701
16749
|
current,
|
|
16702
16750
|
" of ",
|
|
16703
16751
|
max
|
|
16704
16752
|
] })
|
|
16705
16753
|
] }),
|
|
16706
|
-
/* @__PURE__ */
|
|
16754
|
+
/* @__PURE__ */ jsx87(
|
|
16707
16755
|
"div",
|
|
16708
16756
|
{
|
|
16709
16757
|
role: "progressbar",
|
|
@@ -16712,7 +16760,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
16712
16760
|
"aria-valuemax": max,
|
|
16713
16761
|
"aria-valuetext": `${current} of ${max}`,
|
|
16714
16762
|
css: LimitsBarProgressBar,
|
|
16715
|
-
children: /* @__PURE__ */
|
|
16763
|
+
children: /* @__PURE__ */ jsx87(
|
|
16716
16764
|
"span",
|
|
16717
16765
|
{
|
|
16718
16766
|
role: "presentation",
|
|
@@ -16744,10 +16792,10 @@ var LinkListTitle = css69`
|
|
|
16744
16792
|
`;
|
|
16745
16793
|
|
|
16746
16794
|
// src/components/LinkList/LinkList.tsx
|
|
16747
|
-
import { jsx as
|
|
16795
|
+
import { jsx as jsx88, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
16748
16796
|
var LinkList = ({ title: title2, padding = "var(--spacing-md)", children, ...props }) => {
|
|
16749
16797
|
return /* @__PURE__ */ jsxs56("div", { css: LinkListContainer(padding), ...props, children: [
|
|
16750
|
-
/* @__PURE__ */
|
|
16798
|
+
/* @__PURE__ */ jsx88(Heading, { level: 3, css: LinkListTitle, children: title2 }),
|
|
16751
16799
|
children
|
|
16752
16800
|
] });
|
|
16753
16801
|
};
|
|
@@ -16783,10 +16831,10 @@ var ScrollableListInner = css70`
|
|
|
16783
16831
|
`;
|
|
16784
16832
|
|
|
16785
16833
|
// src/components/List/ScrollableList.tsx
|
|
16786
|
-
import { jsx as
|
|
16834
|
+
import { jsx as jsx89, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
|
|
16787
16835
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
16788
16836
|
return /* @__PURE__ */ jsxs57("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
16789
|
-
label ? /* @__PURE__ */
|
|
16837
|
+
label ? /* @__PURE__ */ jsx89(
|
|
16790
16838
|
"span",
|
|
16791
16839
|
{
|
|
16792
16840
|
css: css71`
|
|
@@ -16795,7 +16843,7 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
16795
16843
|
children: label
|
|
16796
16844
|
}
|
|
16797
16845
|
) : null,
|
|
16798
|
-
/* @__PURE__ */
|
|
16846
|
+
/* @__PURE__ */ jsx89("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
16799
16847
|
] });
|
|
16800
16848
|
};
|
|
16801
16849
|
|
|
@@ -16867,7 +16915,7 @@ var ScrollableListIconVisible = css72`
|
|
|
16867
16915
|
`;
|
|
16868
16916
|
|
|
16869
16917
|
// src/components/List/ScrollableListInputItem.tsx
|
|
16870
|
-
import { jsx as
|
|
16918
|
+
import { jsx as jsx90, jsxs as jsxs58 } from "@emotion/react/jsx-runtime";
|
|
16871
16919
|
var ScrollableListInputItem = ({
|
|
16872
16920
|
label,
|
|
16873
16921
|
icon,
|
|
@@ -16877,7 +16925,7 @@ var ScrollableListInputItem = ({
|
|
|
16877
16925
|
labelTestId,
|
|
16878
16926
|
...props
|
|
16879
16927
|
}) => {
|
|
16880
|
-
return /* @__PURE__ */
|
|
16928
|
+
return /* @__PURE__ */ jsx90(
|
|
16881
16929
|
"div",
|
|
16882
16930
|
{
|
|
16883
16931
|
css: [
|
|
@@ -16891,8 +16939,8 @@ var ScrollableListInputItem = ({
|
|
|
16891
16939
|
icon,
|
|
16892
16940
|
label
|
|
16893
16941
|
] }),
|
|
16894
|
-
/* @__PURE__ */
|
|
16895
|
-
/* @__PURE__ */
|
|
16942
|
+
/* @__PURE__ */ jsx90("div", { css: ScrollableListHiddenInput, children }),
|
|
16943
|
+
/* @__PURE__ */ jsx90(
|
|
16896
16944
|
Icon,
|
|
16897
16945
|
{
|
|
16898
16946
|
icon: CgCheck2,
|
|
@@ -16910,7 +16958,7 @@ var ScrollableListInputItem = ({
|
|
|
16910
16958
|
|
|
16911
16959
|
// src/components/List/ScrollableListItem.tsx
|
|
16912
16960
|
import { CgCheck as CgCheck3 } from "@react-icons/all-files/cg/CgCheck";
|
|
16913
|
-
import { jsx as
|
|
16961
|
+
import { jsx as jsx91, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
|
|
16914
16962
|
var ScrollableListItem = ({
|
|
16915
16963
|
buttonText,
|
|
16916
16964
|
icon,
|
|
@@ -16918,7 +16966,7 @@ var ScrollableListItem = ({
|
|
|
16918
16966
|
disableShadow,
|
|
16919
16967
|
...props
|
|
16920
16968
|
}) => {
|
|
16921
|
-
return /* @__PURE__ */
|
|
16969
|
+
return /* @__PURE__ */ jsx91(
|
|
16922
16970
|
"div",
|
|
16923
16971
|
{
|
|
16924
16972
|
css: [
|
|
@@ -16929,9 +16977,9 @@ var ScrollableListItem = ({
|
|
|
16929
16977
|
children: /* @__PURE__ */ jsxs59("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
16930
16978
|
/* @__PURE__ */ jsxs59(HorizontalRhythm, { gap: "xs", align: "center", children: [
|
|
16931
16979
|
icon,
|
|
16932
|
-
/* @__PURE__ */
|
|
16980
|
+
/* @__PURE__ */ jsx91("span", { children: buttonText })
|
|
16933
16981
|
] }),
|
|
16934
|
-
/* @__PURE__ */
|
|
16982
|
+
/* @__PURE__ */ jsx91(
|
|
16935
16983
|
Icon,
|
|
16936
16984
|
{
|
|
16937
16985
|
icon: CgCheck3,
|
|
@@ -16998,16 +17046,16 @@ function loadingDot(size) {
|
|
|
16998
17046
|
}
|
|
16999
17047
|
|
|
17000
17048
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
17001
|
-
import { jsx as
|
|
17049
|
+
import { jsx as jsx92, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
|
|
17002
17050
|
var LoadingIndicator = ({
|
|
17003
17051
|
size = "lg",
|
|
17004
17052
|
...props
|
|
17005
17053
|
}) => {
|
|
17006
17054
|
const dotStyle = loadingDot(size);
|
|
17007
17055
|
return /* @__PURE__ */ jsxs60("div", { role: "alert", css: loader, "data-testid": "loading-indicator", ...props, children: [
|
|
17008
|
-
/* @__PURE__ */
|
|
17009
|
-
/* @__PURE__ */
|
|
17010
|
-
/* @__PURE__ */
|
|
17056
|
+
/* @__PURE__ */ jsx92("span", { css: dotStyle }),
|
|
17057
|
+
/* @__PURE__ */ jsx92("span", { css: dotStyle }),
|
|
17058
|
+
/* @__PURE__ */ jsx92("span", { css: dotStyle })
|
|
17011
17059
|
] });
|
|
17012
17060
|
};
|
|
17013
17061
|
|
|
@@ -17047,7 +17095,7 @@ var loadingOverlayMessage = css74`
|
|
|
17047
17095
|
`;
|
|
17048
17096
|
|
|
17049
17097
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
17050
|
-
import { jsx as
|
|
17098
|
+
import { jsx as jsx93, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
|
|
17051
17099
|
var LoadingOverlay = ({
|
|
17052
17100
|
isActive,
|
|
17053
17101
|
statusMessage,
|
|
@@ -17081,9 +17129,9 @@ var LoadingOverlay = ({
|
|
|
17081
17129
|
"aria-hidden": !isActive,
|
|
17082
17130
|
"aria-busy": isActive && !isPaused,
|
|
17083
17131
|
children: [
|
|
17084
|
-
/* @__PURE__ */
|
|
17085
|
-
/* @__PURE__ */
|
|
17086
|
-
/* @__PURE__ */
|
|
17132
|
+
/* @__PURE__ */ jsx93("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
17133
|
+
/* @__PURE__ */ jsx93("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ jsxs61("div", { css: loadingOverlayBody, children: [
|
|
17134
|
+
/* @__PURE__ */ jsx93(
|
|
17087
17135
|
AnimationFile,
|
|
17088
17136
|
{
|
|
17089
17137
|
lottieRef,
|
|
@@ -17098,15 +17146,15 @@ var LoadingOverlay = ({
|
|
|
17098
17146
|
}
|
|
17099
17147
|
}
|
|
17100
17148
|
),
|
|
17101
|
-
statusMessage ? /* @__PURE__ */
|
|
17102
|
-
/* @__PURE__ */
|
|
17149
|
+
statusMessage ? /* @__PURE__ */ jsx93("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
|
|
17150
|
+
/* @__PURE__ */ jsx93("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
|
|
17103
17151
|
] }) })
|
|
17104
17152
|
]
|
|
17105
17153
|
}
|
|
17106
17154
|
);
|
|
17107
17155
|
};
|
|
17108
17156
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
17109
|
-
return /* @__PURE__ */
|
|
17157
|
+
return /* @__PURE__ */ jsx93(
|
|
17110
17158
|
"svg",
|
|
17111
17159
|
{
|
|
17112
17160
|
viewBox: "0 0 38 38",
|
|
@@ -17116,9 +17164,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
17116
17164
|
stroke: "currentColor",
|
|
17117
17165
|
...props,
|
|
17118
17166
|
"data-testid": "loading-icon",
|
|
17119
|
-
children: /* @__PURE__ */
|
|
17120
|
-
/* @__PURE__ */
|
|
17121
|
-
/* @__PURE__ */
|
|
17167
|
+
children: /* @__PURE__ */ jsx93("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs61("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
17168
|
+
/* @__PURE__ */ jsx93("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
17169
|
+
/* @__PURE__ */ jsx93("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ jsx93(
|
|
17122
17170
|
"animateTransform",
|
|
17123
17171
|
{
|
|
17124
17172
|
attributeName: "transform",
|
|
@@ -17143,7 +17191,7 @@ import {
|
|
|
17143
17191
|
PopoverDisclosure as PopoverDisclosure2,
|
|
17144
17192
|
PopoverProvider
|
|
17145
17193
|
} from "@ariakit/react";
|
|
17146
|
-
import { Fragment as Fragment12, jsx as
|
|
17194
|
+
import { Fragment as Fragment12, jsx as jsx94, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
|
|
17147
17195
|
var Popover3 = ({
|
|
17148
17196
|
iconColor = "action",
|
|
17149
17197
|
icon = "info",
|
|
@@ -17158,19 +17206,19 @@ var Popover3 = ({
|
|
|
17158
17206
|
...otherProps
|
|
17159
17207
|
}) => {
|
|
17160
17208
|
return /* @__PURE__ */ jsxs62(PopoverProvider, { placement, children: [
|
|
17161
|
-
/* @__PURE__ */
|
|
17209
|
+
/* @__PURE__ */ jsx94(
|
|
17162
17210
|
PopoverDisclosure2,
|
|
17163
17211
|
{
|
|
17164
17212
|
css: [PopoverBtn, trigger2 ? void 0 : PopoverDefaulterTriggerBtn],
|
|
17165
17213
|
title: buttonText,
|
|
17166
17214
|
"data-testid": testId,
|
|
17167
17215
|
children: trigger2 ? trigger2 : /* @__PURE__ */ jsxs62(Fragment12, { children: [
|
|
17168
|
-
/* @__PURE__ */
|
|
17169
|
-
/* @__PURE__ */
|
|
17216
|
+
/* @__PURE__ */ jsx94(Icon, { icon, iconColor, size: iconSize }),
|
|
17217
|
+
/* @__PURE__ */ jsx94("span", { hidden: true, children: buttonText })
|
|
17170
17218
|
] })
|
|
17171
17219
|
}
|
|
17172
17220
|
),
|
|
17173
|
-
/* @__PURE__ */
|
|
17221
|
+
/* @__PURE__ */ jsx94(AriakitPopover, { unmountOnHide: true, css: Popover, ...otherProps, "aria-label": ariaLabel, children })
|
|
17174
17222
|
] });
|
|
17175
17223
|
};
|
|
17176
17224
|
|
|
@@ -17259,7 +17307,7 @@ var menuButton = css75`
|
|
|
17259
17307
|
`;
|
|
17260
17308
|
|
|
17261
17309
|
// src/components/MediaCard/MediaCard.tsx
|
|
17262
|
-
import { jsx as
|
|
17310
|
+
import { jsx as jsx95, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
|
|
17263
17311
|
var MediaCard = ({
|
|
17264
17312
|
title: title2,
|
|
17265
17313
|
subtitle: subtitle2,
|
|
@@ -17276,12 +17324,12 @@ var MediaCard = ({
|
|
|
17276
17324
|
}, []);
|
|
17277
17325
|
const hasMenuItems = Array.isArray(menuItems) ? menuItems.length > 0 : Boolean(menuItems);
|
|
17278
17326
|
return /* @__PURE__ */ jsxs63(Card, { css: cardBase, ...cardProps, onClick, "data-testid": "card-item", children: [
|
|
17279
|
-
/* @__PURE__ */
|
|
17280
|
-
/* @__PURE__ */
|
|
17327
|
+
/* @__PURE__ */ jsx95("button", { tabIndex: -1, css: coverWrapper, type: buttonType, children: cover }),
|
|
17328
|
+
/* @__PURE__ */ jsx95("div", { css: contentWrapper, children: /* @__PURE__ */ jsxs63(HorizontalRhythm, { gap: "sm", justify: "space-between", align: "center", css: { width: "100%" }, children: [
|
|
17281
17329
|
/* @__PURE__ */ jsxs63(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1, minWidth: 0 }, children: [
|
|
17282
17330
|
/* @__PURE__ */ jsxs63(HorizontalRhythm, { gap: "xs", align: "center", css: { maxWidth: "100%" }, children: [
|
|
17283
|
-
/* @__PURE__ */
|
|
17284
|
-
!infoPopover ? null : /* @__PURE__ */
|
|
17331
|
+
/* @__PURE__ */ jsx95("button", { css: title, "data-testid": "card-title", children: title2 }),
|
|
17332
|
+
!infoPopover ? null : /* @__PURE__ */ jsx95("div", { css: { display: "flex", cursor: "default" }, onClick: onStopPropogation, children: /* @__PURE__ */ jsx95(
|
|
17285
17333
|
Popover3,
|
|
17286
17334
|
{
|
|
17287
17335
|
baseId: `info-of-${title2}`,
|
|
@@ -17290,31 +17338,31 @@ var MediaCard = ({
|
|
|
17290
17338
|
iconColor: "default",
|
|
17291
17339
|
tabIndex: 0,
|
|
17292
17340
|
css: { display: "block", maxWidth: "20rem" },
|
|
17293
|
-
children: /* @__PURE__ */
|
|
17341
|
+
children: /* @__PURE__ */ jsx95("div", { children: infoPopover })
|
|
17294
17342
|
}
|
|
17295
17343
|
) })
|
|
17296
17344
|
] }),
|
|
17297
|
-
subtitle2 ? /* @__PURE__ */
|
|
17345
|
+
subtitle2 ? /* @__PURE__ */ jsx95("button", { tabIndex: -1, css: subtitle, children: subtitle2 }) : null
|
|
17298
17346
|
] }),
|
|
17299
|
-
sideSection2 ? /* @__PURE__ */
|
|
17300
|
-
hasMenuItems ? /* @__PURE__ */
|
|
17347
|
+
sideSection2 ? /* @__PURE__ */ jsx95("div", { css: sideSection, onClick: onStopPropogation, children: sideSection2 }) : null,
|
|
17348
|
+
hasMenuItems ? /* @__PURE__ */ jsx95(
|
|
17301
17349
|
VerticalRhythm,
|
|
17302
17350
|
{
|
|
17303
17351
|
css: menuSection,
|
|
17304
17352
|
align: "center",
|
|
17305
17353
|
justify: "center",
|
|
17306
17354
|
onClick: onStopPropogation,
|
|
17307
|
-
children: /* @__PURE__ */
|
|
17355
|
+
children: /* @__PURE__ */ jsx95(
|
|
17308
17356
|
Menu,
|
|
17309
17357
|
{
|
|
17310
|
-
menuTrigger: /* @__PURE__ */
|
|
17358
|
+
menuTrigger: /* @__PURE__ */ jsx95(
|
|
17311
17359
|
"button",
|
|
17312
17360
|
{
|
|
17313
17361
|
type: "button",
|
|
17314
17362
|
"aria-label": "More options",
|
|
17315
17363
|
css: menuButton,
|
|
17316
17364
|
"data-testid": "button-more",
|
|
17317
|
-
children: /* @__PURE__ */
|
|
17365
|
+
children: /* @__PURE__ */ jsx95(Icon, { icon: "more-alt", iconColor: "gray", size: 16 })
|
|
17318
17366
|
}
|
|
17319
17367
|
),
|
|
17320
17368
|
menuLabel: `Menu of ${title2}`,
|
|
@@ -17415,7 +17463,7 @@ var modalDialogInnerStyles = css76`
|
|
|
17415
17463
|
`;
|
|
17416
17464
|
|
|
17417
17465
|
// src/components/Modal/Modal.tsx
|
|
17418
|
-
import { jsx as
|
|
17466
|
+
import { jsx as jsx96, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
|
|
17419
17467
|
var defaultModalWidth = "75rem";
|
|
17420
17468
|
var defaultModalHeight = "51rem";
|
|
17421
17469
|
var Modal = React20.forwardRef(
|
|
@@ -17457,7 +17505,7 @@ var Modal = React20.forwardRef(
|
|
|
17457
17505
|
(_a2 = dialogRef.current) == null ? void 0 : _a2.close();
|
|
17458
17506
|
};
|
|
17459
17507
|
}, []);
|
|
17460
|
-
return /* @__PURE__ */
|
|
17508
|
+
return /* @__PURE__ */ jsx96(
|
|
17461
17509
|
"dialog",
|
|
17462
17510
|
{
|
|
17463
17511
|
ref: (element) => {
|
|
@@ -17486,8 +17534,8 @@ var Modal = React20.forwardRef(
|
|
|
17486
17534
|
onClick: (e) => e.stopPropagation(),
|
|
17487
17535
|
children: [
|
|
17488
17536
|
/* @__PURE__ */ jsxs64("div", { css: modalHeaderStyles, children: [
|
|
17489
|
-
!header2 ? null : /* @__PURE__ */
|
|
17490
|
-
/* @__PURE__ */
|
|
17537
|
+
!header2 ? null : /* @__PURE__ */ jsx96("div", { css: modalHeaderHeaderStyles, children: header2 }),
|
|
17538
|
+
/* @__PURE__ */ jsx96(
|
|
17491
17539
|
Button,
|
|
17492
17540
|
{
|
|
17493
17541
|
type: "button",
|
|
@@ -17496,11 +17544,11 @@ var Modal = React20.forwardRef(
|
|
|
17496
17544
|
title: "Close dialog",
|
|
17497
17545
|
buttonType: "ghost",
|
|
17498
17546
|
"data-testid": "close-dialog",
|
|
17499
|
-
children: /* @__PURE__ */
|
|
17547
|
+
children: /* @__PURE__ */ jsx96(Icon, { icon: CgClose5, iconColor: "currentColor", size: 24 })
|
|
17500
17548
|
}
|
|
17501
17549
|
)
|
|
17502
17550
|
] }),
|
|
17503
|
-
/* @__PURE__ */
|
|
17551
|
+
/* @__PURE__ */ jsx96(
|
|
17504
17552
|
"div",
|
|
17505
17553
|
{
|
|
17506
17554
|
css: [
|
|
@@ -17511,7 +17559,7 @@ var Modal = React20.forwardRef(
|
|
|
17511
17559
|
children
|
|
17512
17560
|
}
|
|
17513
17561
|
),
|
|
17514
|
-
buttonGroup ? /* @__PURE__ */
|
|
17562
|
+
buttonGroup ? /* @__PURE__ */ jsx96(HorizontalRhythm, { children: buttonGroup }) : null
|
|
17515
17563
|
]
|
|
17516
17564
|
}
|
|
17517
17565
|
)
|
|
@@ -17522,11 +17570,11 @@ var Modal = React20.forwardRef(
|
|
|
17522
17570
|
Modal.displayName = "Modal";
|
|
17523
17571
|
|
|
17524
17572
|
// src/components/Modal/ModalDialog.tsx
|
|
17525
|
-
import { forwardRef as
|
|
17526
|
-
import { jsx as
|
|
17527
|
-
var ModalDialog =
|
|
17573
|
+
import { forwardRef as forwardRef15 } from "react";
|
|
17574
|
+
import { jsx as jsx97, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
|
|
17575
|
+
var ModalDialog = forwardRef15(
|
|
17528
17576
|
({ header: header2, buttonGroup, modalSize = "lg", children, height = "auto", onRequestClose, ...props }, ref) => {
|
|
17529
|
-
return /* @__PURE__ */
|
|
17577
|
+
return /* @__PURE__ */ jsx97(
|
|
17530
17578
|
Modal,
|
|
17531
17579
|
{
|
|
17532
17580
|
...props,
|
|
@@ -17539,9 +17587,9 @@ var ModalDialog = forwardRef14(
|
|
|
17539
17587
|
css: modalDialogInnerStyles,
|
|
17540
17588
|
width: "",
|
|
17541
17589
|
children: /* @__PURE__ */ jsxs65(VerticalRhythm, { css: modalDialogWrapper, children: [
|
|
17542
|
-
/* @__PURE__ */
|
|
17543
|
-
/* @__PURE__ */
|
|
17544
|
-
/* @__PURE__ */
|
|
17590
|
+
/* @__PURE__ */ jsx97("div", { css: modalHeaderStyles, children: header2 }),
|
|
17591
|
+
/* @__PURE__ */ jsx97("div", { children }),
|
|
17592
|
+
/* @__PURE__ */ jsx97(HorizontalRhythm, { children: buttonGroup })
|
|
17545
17593
|
] })
|
|
17546
17594
|
}
|
|
17547
17595
|
);
|
|
@@ -17581,7 +17629,7 @@ var page = css77`
|
|
|
17581
17629
|
`;
|
|
17582
17630
|
|
|
17583
17631
|
// src/components/Pagination/Pagination.tsx
|
|
17584
|
-
import { jsx as
|
|
17632
|
+
import { jsx as jsx98 } from "@emotion/react/jsx-runtime";
|
|
17585
17633
|
function Pagination({
|
|
17586
17634
|
limit,
|
|
17587
17635
|
offset,
|
|
@@ -17596,12 +17644,12 @@ function Pagination({
|
|
|
17596
17644
|
if (pageCount <= 1) {
|
|
17597
17645
|
return null;
|
|
17598
17646
|
}
|
|
17599
|
-
return /* @__PURE__ */
|
|
17647
|
+
return /* @__PURE__ */ jsx98(
|
|
17600
17648
|
Paginate,
|
|
17601
17649
|
{
|
|
17602
17650
|
forcePage: currentPage,
|
|
17603
|
-
previousLabel: /* @__PURE__ */
|
|
17604
|
-
nextLabel: /* @__PURE__ */
|
|
17651
|
+
previousLabel: /* @__PURE__ */ jsx98("div", { className: prevNextControls, children: "<" }),
|
|
17652
|
+
nextLabel: /* @__PURE__ */ jsx98("div", { className: prevNextControls, children: ">" }),
|
|
17605
17653
|
breakLabel: "...",
|
|
17606
17654
|
pageCount,
|
|
17607
17655
|
marginPagesDisplayed: 2,
|
|
@@ -17668,7 +17716,7 @@ var inputIconBtn = css78`
|
|
|
17668
17716
|
`;
|
|
17669
17717
|
|
|
17670
17718
|
// src/components/ParameterInputs/LabelLeadingIcon.tsx
|
|
17671
|
-
import { jsx as
|
|
17719
|
+
import { jsx as jsx99, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
|
|
17672
17720
|
var LabelLeadingIcon = ({
|
|
17673
17721
|
icon,
|
|
17674
17722
|
iconColor,
|
|
@@ -17680,7 +17728,7 @@ var LabelLeadingIcon = ({
|
|
|
17680
17728
|
...props
|
|
17681
17729
|
}) => {
|
|
17682
17730
|
const titleFr = title2 != null ? title2 : isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
17683
|
-
return /* @__PURE__ */
|
|
17731
|
+
return /* @__PURE__ */ jsx99(Tooltip, { title: titleFr, children: /* @__PURE__ */ jsxs66(
|
|
17684
17732
|
"button",
|
|
17685
17733
|
{
|
|
17686
17734
|
css: inputIconBtn,
|
|
@@ -17690,7 +17738,7 @@ var LabelLeadingIcon = ({
|
|
|
17690
17738
|
...props,
|
|
17691
17739
|
"data-testid": "lock-button",
|
|
17692
17740
|
children: [
|
|
17693
|
-
/* @__PURE__ */
|
|
17741
|
+
/* @__PURE__ */ jsx99(
|
|
17694
17742
|
Icon,
|
|
17695
17743
|
{
|
|
17696
17744
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -17993,7 +18041,7 @@ var linkParameterIcon = css79`
|
|
|
17993
18041
|
`;
|
|
17994
18042
|
|
|
17995
18043
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
17996
|
-
import { jsx as
|
|
18044
|
+
import { jsx as jsx100, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
|
|
17997
18045
|
function ParameterDataResource({
|
|
17998
18046
|
label,
|
|
17999
18047
|
labelLeadingIcon,
|
|
@@ -18017,12 +18065,12 @@ function ParameterDataResource({
|
|
|
18017
18065
|
disabled: disabled2,
|
|
18018
18066
|
onClick: onConnectDatasource,
|
|
18019
18067
|
children: [
|
|
18020
|
-
/* @__PURE__ */
|
|
18068
|
+
/* @__PURE__ */ jsx100("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx100(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
18021
18069
|
children
|
|
18022
18070
|
]
|
|
18023
18071
|
}
|
|
18024
18072
|
),
|
|
18025
|
-
caption ? /* @__PURE__ */
|
|
18073
|
+
caption ? /* @__PURE__ */ jsx100(Caption, { children: caption }) : null
|
|
18026
18074
|
] });
|
|
18027
18075
|
}
|
|
18028
18076
|
|
|
@@ -18048,19 +18096,19 @@ var ParameterDrawerHeaderTitle = css80`
|
|
|
18048
18096
|
`;
|
|
18049
18097
|
|
|
18050
18098
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
18051
|
-
import { jsx as
|
|
18099
|
+
import { jsx as jsx101, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
|
|
18052
18100
|
var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
|
|
18053
18101
|
return /* @__PURE__ */ jsxs68("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
18054
18102
|
/* @__PURE__ */ jsxs68("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
18055
18103
|
iconBeforeTitle,
|
|
18056
|
-
/* @__PURE__ */
|
|
18104
|
+
/* @__PURE__ */ jsx101(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title: title2, children: title2 })
|
|
18057
18105
|
] }),
|
|
18058
18106
|
children
|
|
18059
18107
|
] });
|
|
18060
18108
|
};
|
|
18061
18109
|
|
|
18062
18110
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
18063
|
-
import { forwardRef as
|
|
18111
|
+
import { forwardRef as forwardRef16 } from "react";
|
|
18064
18112
|
|
|
18065
18113
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
18066
18114
|
import { css as css81 } from "@emotion/react";
|
|
@@ -18083,18 +18131,18 @@ var fieldsetLegend2 = css81`
|
|
|
18083
18131
|
`;
|
|
18084
18132
|
|
|
18085
18133
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
18086
|
-
import { jsx as
|
|
18087
|
-
var ParameterGroup =
|
|
18134
|
+
import { jsx as jsx102, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
|
|
18135
|
+
var ParameterGroup = forwardRef16(
|
|
18088
18136
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
18089
18137
|
return /* @__PURE__ */ jsxs69("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
18090
|
-
/* @__PURE__ */
|
|
18138
|
+
/* @__PURE__ */ jsx102("legend", { css: fieldsetLegend2, children: legend }),
|
|
18091
18139
|
children
|
|
18092
18140
|
] });
|
|
18093
18141
|
}
|
|
18094
18142
|
);
|
|
18095
18143
|
|
|
18096
18144
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
18097
|
-
import { forwardRef as
|
|
18145
|
+
import { forwardRef as forwardRef18, useDeferredValue } from "react";
|
|
18098
18146
|
|
|
18099
18147
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
18100
18148
|
import { useState as useState12 } from "react";
|
|
@@ -18138,32 +18186,32 @@ var previewModalImage = css82`
|
|
|
18138
18186
|
`;
|
|
18139
18187
|
|
|
18140
18188
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
18141
|
-
import { Fragment as Fragment13, jsx as
|
|
18189
|
+
import { Fragment as Fragment13, jsx as jsx103, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
18142
18190
|
function ParameterImagePreview({ imageSrc }) {
|
|
18143
18191
|
const [showModal, setShowModal] = useState12(false);
|
|
18144
18192
|
return imageSrc ? /* @__PURE__ */ jsxs70("div", { css: previewWrapper, children: [
|
|
18145
|
-
/* @__PURE__ */
|
|
18146
|
-
/* @__PURE__ */
|
|
18193
|
+
/* @__PURE__ */ jsx103(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
|
|
18194
|
+
/* @__PURE__ */ jsx103(
|
|
18147
18195
|
"button",
|
|
18148
18196
|
{
|
|
18149
18197
|
css: previewLink,
|
|
18150
18198
|
onClick: () => {
|
|
18151
18199
|
setShowModal(true);
|
|
18152
18200
|
},
|
|
18153
|
-
children: /* @__PURE__ */
|
|
18201
|
+
children: /* @__PURE__ */ jsx103(Image, { src: imageSrc, "data-testid": "parameter-image-preview" })
|
|
18154
18202
|
}
|
|
18155
18203
|
)
|
|
18156
18204
|
] }) : null;
|
|
18157
18205
|
}
|
|
18158
18206
|
var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
18159
|
-
return open ? /* @__PURE__ */
|
|
18160
|
-
/* @__PURE__ */
|
|
18207
|
+
return open ? /* @__PURE__ */ jsx103(Fragment13, { children: createPortal2(
|
|
18208
|
+
/* @__PURE__ */ jsx103(
|
|
18161
18209
|
Modal,
|
|
18162
18210
|
{
|
|
18163
18211
|
header: "Image Preview",
|
|
18164
18212
|
onRequestClose,
|
|
18165
|
-
buttonGroup: /* @__PURE__ */
|
|
18166
|
-
children: /* @__PURE__ */
|
|
18213
|
+
buttonGroup: /* @__PURE__ */ jsx103(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
|
|
18214
|
+
children: /* @__PURE__ */ jsx103("div", { css: previewModalWrapper, children: /* @__PURE__ */ jsx103(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
|
|
18167
18215
|
}
|
|
18168
18216
|
),
|
|
18169
18217
|
document.body
|
|
@@ -18175,21 +18223,21 @@ import { css as css84 } from "@emotion/react";
|
|
|
18175
18223
|
import { useState as useState13 } from "react";
|
|
18176
18224
|
|
|
18177
18225
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
18178
|
-
import { jsx as
|
|
18226
|
+
import { jsx as jsx104 } from "@emotion/react/jsx-runtime";
|
|
18179
18227
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
18180
|
-
return !asSpan ? /* @__PURE__ */
|
|
18228
|
+
return !asSpan ? /* @__PURE__ */ jsx104("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx104("span", { "aria-labelledby": id, css: labelText2, children });
|
|
18181
18229
|
};
|
|
18182
18230
|
|
|
18183
18231
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
18184
|
-
import { forwardRef as
|
|
18185
|
-
import { jsx as
|
|
18186
|
-
var ParameterMenuButton =
|
|
18232
|
+
import { forwardRef as forwardRef17 } from "react";
|
|
18233
|
+
import { jsx as jsx105 } from "@emotion/react/jsx-runtime";
|
|
18234
|
+
var ParameterMenuButton = forwardRef17(
|
|
18187
18235
|
({ label, children }, ref) => {
|
|
18188
|
-
return /* @__PURE__ */
|
|
18236
|
+
return /* @__PURE__ */ jsx105(
|
|
18189
18237
|
Menu,
|
|
18190
18238
|
{
|
|
18191
18239
|
menuLabel: `${label} menu`,
|
|
18192
|
-
menuTrigger: /* @__PURE__ */
|
|
18240
|
+
menuTrigger: /* @__PURE__ */ jsx105(
|
|
18193
18241
|
"button",
|
|
18194
18242
|
{
|
|
18195
18243
|
className: "parameter-menu",
|
|
@@ -18197,7 +18245,7 @@ var ParameterMenuButton = forwardRef16(
|
|
|
18197
18245
|
type: "button",
|
|
18198
18246
|
"aria-label": `${label} options`,
|
|
18199
18247
|
ref,
|
|
18200
|
-
children: /* @__PURE__ */
|
|
18248
|
+
children: /* @__PURE__ */ jsx105(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
18201
18249
|
}
|
|
18202
18250
|
),
|
|
18203
18251
|
children
|
|
@@ -18233,7 +18281,7 @@ var overrideMarker = css83`
|
|
|
18233
18281
|
`;
|
|
18234
18282
|
|
|
18235
18283
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
18236
|
-
import { jsx as
|
|
18284
|
+
import { jsx as jsx106, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
|
|
18237
18285
|
var extractParameterProps = (props) => {
|
|
18238
18286
|
const {
|
|
18239
18287
|
id,
|
|
@@ -18308,7 +18356,7 @@ var ParameterShell = ({
|
|
|
18308
18356
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
18309
18357
|
] }),
|
|
18310
18358
|
/* @__PURE__ */ jsxs71("div", { css: inputWrapper, children: [
|
|
18311
|
-
actionItems ? /* @__PURE__ */
|
|
18359
|
+
actionItems ? /* @__PURE__ */ jsx106(
|
|
18312
18360
|
"div",
|
|
18313
18361
|
{
|
|
18314
18362
|
css: [
|
|
@@ -18321,8 +18369,8 @@ var ParameterShell = ({
|
|
|
18321
18369
|
children: actionItems
|
|
18322
18370
|
}
|
|
18323
18371
|
) : null,
|
|
18324
|
-
menuItems ? /* @__PURE__ */
|
|
18325
|
-
/* @__PURE__ */
|
|
18372
|
+
menuItems ? /* @__PURE__ */ jsx106(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
18373
|
+
/* @__PURE__ */ jsx106(
|
|
18326
18374
|
ParameterShellContext.Provider,
|
|
18327
18375
|
{
|
|
18328
18376
|
value: {
|
|
@@ -18332,14 +18380,14 @@ var ParameterShell = ({
|
|
|
18332
18380
|
errorMessage: errorMessaging,
|
|
18333
18381
|
handleManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
18334
18382
|
},
|
|
18335
|
-
children: isParameterGroup ? /* @__PURE__ */
|
|
18383
|
+
children: isParameterGroup ? /* @__PURE__ */ jsx106("div", { style: { flexGrow: 1 }, children }) : /* @__PURE__ */ jsxs71(ParameterShellPlaceholder, { children: [
|
|
18336
18384
|
children,
|
|
18337
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
18385
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx106(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
18338
18386
|
] })
|
|
18339
18387
|
}
|
|
18340
18388
|
)
|
|
18341
18389
|
] }),
|
|
18342
|
-
/* @__PURE__ */
|
|
18390
|
+
/* @__PURE__ */ jsx106(
|
|
18343
18391
|
FieldMessage,
|
|
18344
18392
|
{
|
|
18345
18393
|
helperMessageTestId: captionTestId,
|
|
@@ -18353,27 +18401,27 @@ var ParameterShell = ({
|
|
|
18353
18401
|
] });
|
|
18354
18402
|
};
|
|
18355
18403
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
18356
|
-
return /* @__PURE__ */
|
|
18404
|
+
return /* @__PURE__ */ jsx106("div", { css: emptyParameterShell, children });
|
|
18357
18405
|
};
|
|
18358
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
18406
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx106(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx106("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx106("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
18359
18407
|
|
|
18360
18408
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
18361
|
-
import { Fragment as Fragment14, jsx as
|
|
18362
|
-
var ParameterImage =
|
|
18409
|
+
import { Fragment as Fragment14, jsx as jsx107, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
|
|
18410
|
+
var ParameterImage = forwardRef18(
|
|
18363
18411
|
({ children, ...props }, ref) => {
|
|
18364
18412
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18365
18413
|
return /* @__PURE__ */ jsxs72(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
|
|
18366
|
-
/* @__PURE__ */
|
|
18414
|
+
/* @__PURE__ */ jsx107(ParameterImageInner, { ref, ...innerProps }),
|
|
18367
18415
|
children
|
|
18368
18416
|
] });
|
|
18369
18417
|
}
|
|
18370
18418
|
);
|
|
18371
|
-
var ParameterImageInner =
|
|
18419
|
+
var ParameterImageInner = forwardRef18((props, ref) => {
|
|
18372
18420
|
const { value } = props;
|
|
18373
18421
|
const { id, label, hiddenLabel, errorMessage } = useParameterShell();
|
|
18374
18422
|
const deferredValue = useDeferredValue(value);
|
|
18375
18423
|
return /* @__PURE__ */ jsxs72(Fragment14, { children: [
|
|
18376
|
-
/* @__PURE__ */
|
|
18424
|
+
/* @__PURE__ */ jsx107(
|
|
18377
18425
|
"input",
|
|
18378
18426
|
{
|
|
18379
18427
|
css: input3,
|
|
@@ -18385,21 +18433,21 @@ var ParameterImageInner = forwardRef17((props, ref) => {
|
|
|
18385
18433
|
...props
|
|
18386
18434
|
}
|
|
18387
18435
|
),
|
|
18388
|
-
errorMessage || props.disablePreview ? null : /* @__PURE__ */
|
|
18436
|
+
errorMessage || props.disablePreview ? null : /* @__PURE__ */ jsx107(ParameterImagePreview, { imageSrc: deferredValue })
|
|
18389
18437
|
] });
|
|
18390
18438
|
});
|
|
18391
18439
|
|
|
18392
18440
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
18393
|
-
import { forwardRef as
|
|
18394
|
-
import { jsx as
|
|
18395
|
-
var ParameterInput =
|
|
18441
|
+
import { forwardRef as forwardRef19 } from "react";
|
|
18442
|
+
import { jsx as jsx108 } from "@emotion/react/jsx-runtime";
|
|
18443
|
+
var ParameterInput = forwardRef19((props, ref) => {
|
|
18396
18444
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18397
|
-
return /* @__PURE__ */
|
|
18445
|
+
return /* @__PURE__ */ jsx108(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx108(ParameterInputInner, { ref, ...innerProps }) });
|
|
18398
18446
|
});
|
|
18399
|
-
var ParameterInputInner =
|
|
18447
|
+
var ParameterInputInner = forwardRef19(
|
|
18400
18448
|
({ ...props }, ref) => {
|
|
18401
18449
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
18402
|
-
return /* @__PURE__ */
|
|
18450
|
+
return /* @__PURE__ */ jsx108(
|
|
18403
18451
|
"input",
|
|
18404
18452
|
{
|
|
18405
18453
|
css: input3,
|
|
@@ -18415,19 +18463,19 @@ var ParameterInputInner = forwardRef18(
|
|
|
18415
18463
|
);
|
|
18416
18464
|
|
|
18417
18465
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
18418
|
-
import { forwardRef as
|
|
18419
|
-
import { jsx as
|
|
18420
|
-
var ParameterLink =
|
|
18466
|
+
import { forwardRef as forwardRef20 } from "react";
|
|
18467
|
+
import { jsx as jsx109, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
|
|
18468
|
+
var ParameterLink = forwardRef20(
|
|
18421
18469
|
({ disabled: disabled2, onConnectLink, externalLink, ...props }, ref) => {
|
|
18422
18470
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18423
|
-
return /* @__PURE__ */
|
|
18471
|
+
return /* @__PURE__ */ jsx109(
|
|
18424
18472
|
ParameterShell,
|
|
18425
18473
|
{
|
|
18426
18474
|
"data-testid": "link-parameter-editor",
|
|
18427
18475
|
...shellProps,
|
|
18428
18476
|
label: innerProps.value ? shellProps.label : "",
|
|
18429
18477
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
18430
|
-
children: /* @__PURE__ */
|
|
18478
|
+
children: /* @__PURE__ */ jsx109(
|
|
18431
18479
|
ParameterLinkInner,
|
|
18432
18480
|
{
|
|
18433
18481
|
onConnectLink,
|
|
@@ -18440,13 +18488,13 @@ var ParameterLink = forwardRef19(
|
|
|
18440
18488
|
);
|
|
18441
18489
|
}
|
|
18442
18490
|
);
|
|
18443
|
-
var ParameterLinkInner =
|
|
18491
|
+
var ParameterLinkInner = forwardRef20(
|
|
18444
18492
|
({ externalLink, onConnectLink, disabled: disabled2, buttonText = "Select link", ...props }, ref) => {
|
|
18445
18493
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
18446
18494
|
if (!props.value)
|
|
18447
|
-
return /* @__PURE__ */
|
|
18495
|
+
return /* @__PURE__ */ jsx109("button", { type: "button", css: dataConnectButton, disabled: disabled2, onClick: onConnectLink, children: buttonText });
|
|
18448
18496
|
return /* @__PURE__ */ jsxs73("div", { css: inputWrapper, children: [
|
|
18449
|
-
/* @__PURE__ */
|
|
18497
|
+
/* @__PURE__ */ jsx109(
|
|
18450
18498
|
"input",
|
|
18451
18499
|
{
|
|
18452
18500
|
type: "text",
|
|
@@ -18459,7 +18507,7 @@ var ParameterLinkInner = forwardRef19(
|
|
|
18459
18507
|
}
|
|
18460
18508
|
),
|
|
18461
18509
|
/* @__PURE__ */ jsxs73("div", { css: linkParameterControls, children: [
|
|
18462
|
-
/* @__PURE__ */
|
|
18510
|
+
/* @__PURE__ */ jsx109(
|
|
18463
18511
|
"button",
|
|
18464
18512
|
{
|
|
18465
18513
|
type: "button",
|
|
@@ -18470,7 +18518,7 @@ var ParameterLinkInner = forwardRef19(
|
|
|
18470
18518
|
children: "edit"
|
|
18471
18519
|
}
|
|
18472
18520
|
),
|
|
18473
|
-
externalLink ? /* @__PURE__ */
|
|
18521
|
+
externalLink ? /* @__PURE__ */ jsx109(
|
|
18474
18522
|
"a",
|
|
18475
18523
|
{
|
|
18476
18524
|
href: externalLink,
|
|
@@ -18478,7 +18526,7 @@ var ParameterLinkInner = forwardRef19(
|
|
|
18478
18526
|
title: "Open link in new tab",
|
|
18479
18527
|
target: "_blank",
|
|
18480
18528
|
rel: "noopener noreferrer",
|
|
18481
|
-
children: /* @__PURE__ */
|
|
18529
|
+
children: /* @__PURE__ */ jsx109(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
18482
18530
|
}
|
|
18483
18531
|
) : null
|
|
18484
18532
|
] })
|
|
@@ -18487,15 +18535,15 @@ var ParameterLinkInner = forwardRef19(
|
|
|
18487
18535
|
);
|
|
18488
18536
|
|
|
18489
18537
|
// src/components/ParameterInputs/ParameterMultiSelect.tsx
|
|
18490
|
-
import { jsx as
|
|
18538
|
+
import { jsx as jsx110 } from "@emotion/react/jsx-runtime";
|
|
18491
18539
|
var ParameterMultiSelect = ({ disabled: disabled2 = false, ...props }) => {
|
|
18492
18540
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18493
|
-
return /* @__PURE__ */
|
|
18541
|
+
return /* @__PURE__ */ jsx110(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx110(ParameterMultiSelectInner, { isDisabled: disabled2, ...innerProps }) });
|
|
18494
18542
|
};
|
|
18495
18543
|
var ParameterMultiSelectInner = (props) => {
|
|
18496
18544
|
var _a;
|
|
18497
18545
|
const { id, label } = useParameterShell();
|
|
18498
|
-
return /* @__PURE__ */
|
|
18546
|
+
return /* @__PURE__ */ jsx110(
|
|
18499
18547
|
InputComboBox,
|
|
18500
18548
|
{
|
|
18501
18549
|
...props,
|
|
@@ -18539,7 +18587,7 @@ var ParameterMultiSelectInner = (props) => {
|
|
|
18539
18587
|
};
|
|
18540
18588
|
|
|
18541
18589
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
18542
|
-
import { Fragment as Fragment15, jsx as
|
|
18590
|
+
import { Fragment as Fragment15, jsx as jsx111, jsxs as jsxs74 } from "@emotion/react/jsx-runtime";
|
|
18543
18591
|
var ParameterNameAndPublicIdInput = ({
|
|
18544
18592
|
id,
|
|
18545
18593
|
onBlur,
|
|
@@ -18566,7 +18614,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
18566
18614
|
};
|
|
18567
18615
|
autoFocus == null ? void 0 : autoFocus();
|
|
18568
18616
|
return /* @__PURE__ */ jsxs74(Fragment15, { children: [
|
|
18569
|
-
/* @__PURE__ */
|
|
18617
|
+
/* @__PURE__ */ jsx111(
|
|
18570
18618
|
ParameterInput,
|
|
18571
18619
|
{
|
|
18572
18620
|
id: nameIdField,
|
|
@@ -18585,7 +18633,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
18585
18633
|
value: values[nameIdField]
|
|
18586
18634
|
}
|
|
18587
18635
|
),
|
|
18588
|
-
/* @__PURE__ */
|
|
18636
|
+
/* @__PURE__ */ jsx111(
|
|
18589
18637
|
ParameterInput,
|
|
18590
18638
|
{
|
|
18591
18639
|
id: publicIdFieldName,
|
|
@@ -18599,11 +18647,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
18599
18647
|
caption: !publicIdError ? publicIdCaption : void 0,
|
|
18600
18648
|
placeholder: publicIdPlaceholderText,
|
|
18601
18649
|
errorMessage: publicIdError,
|
|
18602
|
-
menuItems: /* @__PURE__ */
|
|
18650
|
+
menuItems: /* @__PURE__ */ jsx111(
|
|
18603
18651
|
MenuItem,
|
|
18604
18652
|
{
|
|
18605
18653
|
disabled: !values[publicIdFieldName],
|
|
18606
|
-
icon: /* @__PURE__ */
|
|
18654
|
+
icon: /* @__PURE__ */ jsx111(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
18607
18655
|
onClick: handleCopyPidFieldValue,
|
|
18608
18656
|
children: "Copy"
|
|
18609
18657
|
}
|
|
@@ -18611,7 +18659,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
18611
18659
|
value: values[publicIdFieldName]
|
|
18612
18660
|
}
|
|
18613
18661
|
),
|
|
18614
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
18662
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx111(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
18615
18663
|
] });
|
|
18616
18664
|
};
|
|
18617
18665
|
|
|
@@ -19001,7 +19049,7 @@ var getSelectedNode = (selection) => {
|
|
|
19001
19049
|
};
|
|
19002
19050
|
|
|
19003
19051
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
19004
|
-
import { Fragment as Fragment16, jsx as
|
|
19052
|
+
import { Fragment as Fragment16, jsx as jsx112, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
|
|
19005
19053
|
var isProjectMapLinkValue = (value) => {
|
|
19006
19054
|
return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
|
|
19007
19055
|
value.nodeId && value.path && value.projectMapId
|
|
@@ -19445,7 +19493,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
19445
19493
|
});
|
|
19446
19494
|
};
|
|
19447
19495
|
return /* @__PURE__ */ jsxs75(Fragment16, { children: [
|
|
19448
|
-
/* @__PURE__ */
|
|
19496
|
+
/* @__PURE__ */ jsx112(
|
|
19449
19497
|
NodeEventPlugin,
|
|
19450
19498
|
{
|
|
19451
19499
|
nodeType: LinkNode,
|
|
@@ -19455,7 +19503,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
19455
19503
|
}
|
|
19456
19504
|
}
|
|
19457
19505
|
),
|
|
19458
|
-
linkPopoverState ? /* @__PURE__ */
|
|
19506
|
+
linkPopoverState ? /* @__PURE__ */ jsx112(
|
|
19459
19507
|
"div",
|
|
19460
19508
|
{
|
|
19461
19509
|
css: linkPopover,
|
|
@@ -19465,7 +19513,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
19465
19513
|
},
|
|
19466
19514
|
ref: linkPopoverElRef,
|
|
19467
19515
|
children: /* @__PURE__ */ jsxs75("div", { css: linkPopoverContainer, children: [
|
|
19468
|
-
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */
|
|
19516
|
+
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ jsx112(
|
|
19469
19517
|
"a",
|
|
19470
19518
|
{
|
|
19471
19519
|
href: parsePath(
|
|
@@ -19477,7 +19525,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
19477
19525
|
children: parsePath(linkPopoverState.node.__link.path)
|
|
19478
19526
|
}
|
|
19479
19527
|
),
|
|
19480
|
-
/* @__PURE__ */
|
|
19528
|
+
/* @__PURE__ */ jsx112(
|
|
19481
19529
|
Button,
|
|
19482
19530
|
{
|
|
19483
19531
|
size: "xs",
|
|
@@ -19485,7 +19533,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
19485
19533
|
onEditLinkNode(linkPopoverState.node);
|
|
19486
19534
|
},
|
|
19487
19535
|
buttonType: "ghost",
|
|
19488
|
-
children: /* @__PURE__ */
|
|
19536
|
+
children: /* @__PURE__ */ jsx112(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
|
|
19489
19537
|
}
|
|
19490
19538
|
)
|
|
19491
19539
|
] })
|
|
@@ -19510,7 +19558,7 @@ import {
|
|
|
19510
19558
|
INDENT_CONTENT_COMMAND
|
|
19511
19559
|
} from "lexical";
|
|
19512
19560
|
import { useEffect as useEffect14 } from "react";
|
|
19513
|
-
import { jsx as
|
|
19561
|
+
import { jsx as jsx113 } from "@emotion/react/jsx-runtime";
|
|
19514
19562
|
function isIndentPermitted(maxDepth) {
|
|
19515
19563
|
const selection = $getSelection2();
|
|
19516
19564
|
if (!$isRangeSelection2(selection)) {
|
|
@@ -19540,7 +19588,7 @@ function ListIndentPlugin({ maxDepth }) {
|
|
|
19540
19588
|
COMMAND_PRIORITY_CRITICAL
|
|
19541
19589
|
);
|
|
19542
19590
|
}, [editor, maxDepth]);
|
|
19543
|
-
return /* @__PURE__ */
|
|
19591
|
+
return /* @__PURE__ */ jsx113(TabIndentationPlugin, {});
|
|
19544
19592
|
}
|
|
19545
19593
|
|
|
19546
19594
|
// src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
|
|
@@ -19567,7 +19615,7 @@ import {
|
|
|
19567
19615
|
SELECTION_CHANGE_COMMAND
|
|
19568
19616
|
} from "lexical";
|
|
19569
19617
|
import { useCallback as useCallback9, useEffect as useEffect15, useMemo as useMemo4, useState as useState15 } from "react";
|
|
19570
|
-
import { Fragment as Fragment17, jsx as
|
|
19618
|
+
import { Fragment as Fragment17, jsx as jsx114, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
|
|
19571
19619
|
var toolbar = css87`
|
|
19572
19620
|
background: var(--gray-50);
|
|
19573
19621
|
border-radius: var(--rounded-base);
|
|
@@ -19619,7 +19667,7 @@ var toolbarChevron = css87`
|
|
|
19619
19667
|
margin-left: var(--spacing-xs);
|
|
19620
19668
|
`;
|
|
19621
19669
|
var RichTextToolbarIcon = ({ icon }) => {
|
|
19622
|
-
return /* @__PURE__ */
|
|
19670
|
+
return /* @__PURE__ */ jsx114(Icon, { icon, css: toolbarIcon, size: "1rem" });
|
|
19623
19671
|
};
|
|
19624
19672
|
var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
|
|
19625
19673
|
["bold", "format-bold"],
|
|
@@ -19736,7 +19784,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
19736
19784
|
menuTrigger: /* @__PURE__ */ jsxs76("button", { css: richTextToolbarButton, title: "Text styles", children: [
|
|
19737
19785
|
visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
|
|
19738
19786
|
" ",
|
|
19739
|
-
/* @__PURE__ */
|
|
19787
|
+
/* @__PURE__ */ jsx114(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
|
|
19740
19788
|
] }),
|
|
19741
19789
|
placement: "bottom-start",
|
|
19742
19790
|
children: [
|
|
@@ -19746,7 +19794,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
19746
19794
|
type: "paragraph"
|
|
19747
19795
|
},
|
|
19748
19796
|
...visibleTextualElements
|
|
19749
|
-
].map((element) => /* @__PURE__ */
|
|
19797
|
+
].map((element) => /* @__PURE__ */ jsx114(
|
|
19750
19798
|
MenuItem,
|
|
19751
19799
|
{
|
|
19752
19800
|
onClick: () => {
|
|
@@ -19756,12 +19804,12 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
19756
19804
|
},
|
|
19757
19805
|
element.type
|
|
19758
19806
|
)),
|
|
19759
|
-
visibleTextualElements.length === 0 ? /* @__PURE__ */
|
|
19807
|
+
visibleTextualElements.length === 0 ? /* @__PURE__ */ jsx114(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
|
|
19760
19808
|
]
|
|
19761
19809
|
}
|
|
19762
19810
|
),
|
|
19763
19811
|
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsxs76("div", { css: toolbarGroup, children: [
|
|
19764
|
-
visibleFormatsWithIcon.map((format) => /* @__PURE__ */
|
|
19812
|
+
visibleFormatsWithIcon.map((format) => /* @__PURE__ */ jsx114(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ jsx114(
|
|
19765
19813
|
"button",
|
|
19766
19814
|
{
|
|
19767
19815
|
onClick: () => {
|
|
@@ -19771,16 +19819,16 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
19771
19819
|
richTextToolbarButton,
|
|
19772
19820
|
activeFormats.includes(format.type) ? richTextToolbarButtonActive : null
|
|
19773
19821
|
],
|
|
19774
|
-
children: /* @__PURE__ */
|
|
19822
|
+
children: /* @__PURE__ */ jsx114(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
|
|
19775
19823
|
}
|
|
19776
19824
|
) }, format.type)),
|
|
19777
|
-
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
19825
|
+
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsx114(
|
|
19778
19826
|
Menu,
|
|
19779
19827
|
{
|
|
19780
19828
|
menuLabel: "Alternative text styles",
|
|
19781
|
-
menuTrigger: /* @__PURE__ */
|
|
19829
|
+
menuTrigger: /* @__PURE__ */ jsx114("button", { css: richTextToolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ jsx114(Icon, { icon: "more-alt", css: toolbarIcon }) }),
|
|
19782
19830
|
placement: "bottom-start",
|
|
19783
|
-
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */
|
|
19831
|
+
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ jsx114(
|
|
19784
19832
|
MenuItem,
|
|
19785
19833
|
{
|
|
19786
19834
|
onClick: () => {
|
|
@@ -19794,18 +19842,18 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
19794
19842
|
) : null
|
|
19795
19843
|
] }) : null,
|
|
19796
19844
|
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ jsxs76("div", { css: toolbarGroup, children: [
|
|
19797
|
-
linkElementVisible ? /* @__PURE__ */
|
|
19845
|
+
linkElementVisible ? /* @__PURE__ */ jsx114(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ jsx114(
|
|
19798
19846
|
"button",
|
|
19799
19847
|
{
|
|
19800
19848
|
onClick: () => {
|
|
19801
19849
|
isLink ? editor.dispatchCommand(REMOVE_LINK_NODE_COMMAND, {}) : editor.dispatchCommand(OPEN_LINK_NODE_MODAL_COMMAND, {});
|
|
19802
19850
|
},
|
|
19803
19851
|
css: [richTextToolbarButton, isLink ? richTextToolbarButtonActive : null],
|
|
19804
|
-
children: /* @__PURE__ */
|
|
19852
|
+
children: /* @__PURE__ */ jsx114(RichTextToolbarIcon, { icon: "link" })
|
|
19805
19853
|
}
|
|
19806
19854
|
) }) : null,
|
|
19807
19855
|
visibleLists.size > 0 ? /* @__PURE__ */ jsxs76(Fragment17, { children: [
|
|
19808
|
-
visibleLists.has("unorderedList") ? /* @__PURE__ */
|
|
19856
|
+
visibleLists.has("unorderedList") ? /* @__PURE__ */ jsx114(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ jsx114(
|
|
19809
19857
|
"button",
|
|
19810
19858
|
{
|
|
19811
19859
|
onClick: () => {
|
|
@@ -19815,10 +19863,10 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
19815
19863
|
richTextToolbarButton,
|
|
19816
19864
|
activeElement === "unorderedList" ? richTextToolbarButtonActive : null
|
|
19817
19865
|
],
|
|
19818
|
-
children: /* @__PURE__ */
|
|
19866
|
+
children: /* @__PURE__ */ jsx114(RichTextToolbarIcon, { icon: "layout-list" })
|
|
19819
19867
|
}
|
|
19820
19868
|
) }) : null,
|
|
19821
|
-
visibleLists.has("orderedList") ? /* @__PURE__ */
|
|
19869
|
+
visibleLists.has("orderedList") ? /* @__PURE__ */ jsx114(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ jsx114(
|
|
19822
19870
|
"button",
|
|
19823
19871
|
{
|
|
19824
19872
|
onClick: () => {
|
|
@@ -19828,32 +19876,32 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
19828
19876
|
richTextToolbarButton,
|
|
19829
19877
|
activeElement === "orderedList" ? richTextToolbarButtonActive : null
|
|
19830
19878
|
],
|
|
19831
|
-
children: /* @__PURE__ */
|
|
19879
|
+
children: /* @__PURE__ */ jsx114(RichTextToolbarIcon, { icon: "layout-list-numbered" })
|
|
19832
19880
|
}
|
|
19833
19881
|
) }) : null
|
|
19834
19882
|
] }) : null,
|
|
19835
|
-
quoteElementVisible ? /* @__PURE__ */
|
|
19883
|
+
quoteElementVisible ? /* @__PURE__ */ jsx114(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ jsx114(
|
|
19836
19884
|
"button",
|
|
19837
19885
|
{
|
|
19838
19886
|
onClick: () => {
|
|
19839
19887
|
activeElement === "quote" ? onSelectElement("paragraph") : onSelectElement("quote");
|
|
19840
19888
|
},
|
|
19841
19889
|
css: [richTextToolbarButton, activeElement === "quote" ? richTextToolbarButtonActive : null],
|
|
19842
|
-
children: /* @__PURE__ */
|
|
19890
|
+
children: /* @__PURE__ */ jsx114(RichTextToolbarIcon, { icon: "quote" })
|
|
19843
19891
|
}
|
|
19844
19892
|
) }) : null,
|
|
19845
|
-
codeElementVisible ? /* @__PURE__ */
|
|
19893
|
+
codeElementVisible ? /* @__PURE__ */ jsx114(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ jsx114(
|
|
19846
19894
|
"button",
|
|
19847
19895
|
{
|
|
19848
19896
|
onClick: () => {
|
|
19849
19897
|
activeElement === "code" ? onSelectElement("paragraph") : onSelectElement("code");
|
|
19850
19898
|
},
|
|
19851
19899
|
css: [richTextToolbarButton, activeElement === "code" ? richTextToolbarButtonActive : null],
|
|
19852
|
-
children: /* @__PURE__ */
|
|
19900
|
+
children: /* @__PURE__ */ jsx114(RichTextToolbarIcon, { icon: "code-slash" })
|
|
19853
19901
|
}
|
|
19854
19902
|
) }) : null
|
|
19855
19903
|
] }) : null,
|
|
19856
|
-
customControls ? /* @__PURE__ */
|
|
19904
|
+
customControls ? /* @__PURE__ */ jsx114("div", { css: toolbarGroup, children: customControls }) : null
|
|
19857
19905
|
] });
|
|
19858
19906
|
};
|
|
19859
19907
|
var RichTextToolbar_default = RichTextToolbar;
|
|
@@ -19967,7 +20015,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
19967
20015
|
};
|
|
19968
20016
|
|
|
19969
20017
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
19970
|
-
import { Fragment as Fragment18, jsx as
|
|
20018
|
+
import { Fragment as Fragment18, jsx as jsx115, jsxs as jsxs77 } from "@emotion/react/jsx-runtime";
|
|
19971
20019
|
var ParameterRichText = ({
|
|
19972
20020
|
label,
|
|
19973
20021
|
labelLeadingIcon,
|
|
@@ -20006,7 +20054,7 @@ var ParameterRichText = ({
|
|
|
20006
20054
|
captionTestId,
|
|
20007
20055
|
menuItems,
|
|
20008
20056
|
children: [
|
|
20009
|
-
/* @__PURE__ */
|
|
20057
|
+
/* @__PURE__ */ jsx115(
|
|
20010
20058
|
ParameterRichTextInner,
|
|
20011
20059
|
{
|
|
20012
20060
|
value,
|
|
@@ -20024,7 +20072,7 @@ var ParameterRichText = ({
|
|
|
20024
20072
|
children
|
|
20025
20073
|
}
|
|
20026
20074
|
),
|
|
20027
|
-
menuItems ? /* @__PURE__ */
|
|
20075
|
+
menuItems ? /* @__PURE__ */ jsx115(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx115(Fragment18, { children: menuItems }) }) : null
|
|
20028
20076
|
]
|
|
20029
20077
|
}
|
|
20030
20078
|
);
|
|
@@ -20136,7 +20184,7 @@ var ParameterRichTextInner = ({
|
|
|
20136
20184
|
editable: !readOnly
|
|
20137
20185
|
};
|
|
20138
20186
|
return /* @__PURE__ */ jsxs77(Fragment18, { children: [
|
|
20139
|
-
/* @__PURE__ */
|
|
20187
|
+
/* @__PURE__ */ jsx115("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx115(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx115(
|
|
20140
20188
|
RichText,
|
|
20141
20189
|
{
|
|
20142
20190
|
onChange,
|
|
@@ -20196,19 +20244,19 @@ var RichText = ({
|
|
|
20196
20244
|
editor.setEditable(!readOnly);
|
|
20197
20245
|
}, [editor, readOnly]);
|
|
20198
20246
|
return /* @__PURE__ */ jsxs77(Fragment18, { children: [
|
|
20199
|
-
readOnly ? null : /* @__PURE__ */
|
|
20247
|
+
readOnly ? null : /* @__PURE__ */ jsx115(RichTextToolbar_default, { config, customControls }),
|
|
20200
20248
|
/* @__PURE__ */ jsxs77("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
|
|
20201
|
-
/* @__PURE__ */
|
|
20249
|
+
/* @__PURE__ */ jsx115(
|
|
20202
20250
|
RichTextPlugin,
|
|
20203
20251
|
{
|
|
20204
|
-
contentEditable: /* @__PURE__ */
|
|
20205
|
-
placeholder: /* @__PURE__ */
|
|
20252
|
+
contentEditable: /* @__PURE__ */ jsx115(ContentEditable, { css: editorInput, className: editorInputClassName }),
|
|
20253
|
+
placeholder: /* @__PURE__ */ jsx115("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
|
|
20206
20254
|
ErrorBoundary: LexicalErrorBoundary
|
|
20207
20255
|
}
|
|
20208
20256
|
),
|
|
20209
|
-
/* @__PURE__ */
|
|
20210
|
-
readOnly ? null : /* @__PURE__ */
|
|
20211
|
-
/* @__PURE__ */
|
|
20257
|
+
/* @__PURE__ */ jsx115(ListPlugin, {}),
|
|
20258
|
+
readOnly ? null : /* @__PURE__ */ jsx115(HistoryPlugin, {}),
|
|
20259
|
+
/* @__PURE__ */ jsx115(
|
|
20212
20260
|
LinkNodePlugin,
|
|
20213
20261
|
{
|
|
20214
20262
|
onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve(),
|
|
@@ -20218,24 +20266,24 @@ var RichText = ({
|
|
|
20218
20266
|
} : void 0
|
|
20219
20267
|
}
|
|
20220
20268
|
),
|
|
20221
|
-
/* @__PURE__ */
|
|
20222
|
-
/* @__PURE__ */
|
|
20223
|
-
/* @__PURE__ */
|
|
20224
|
-
/* @__PURE__ */
|
|
20269
|
+
/* @__PURE__ */ jsx115(ListIndentPlugin, { maxDepth: 4 }),
|
|
20270
|
+
/* @__PURE__ */ jsx115(DisableStylesPlugin, {}),
|
|
20271
|
+
/* @__PURE__ */ jsx115(MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
|
|
20272
|
+
/* @__PURE__ */ jsx115(Fragment18, { children })
|
|
20225
20273
|
] })
|
|
20226
20274
|
] });
|
|
20227
20275
|
};
|
|
20228
20276
|
|
|
20229
20277
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
20230
|
-
import { forwardRef as
|
|
20231
|
-
import { jsx as
|
|
20232
|
-
var ParameterSelect =
|
|
20278
|
+
import { forwardRef as forwardRef21 } from "react";
|
|
20279
|
+
import { jsx as jsx116, jsxs as jsxs78 } from "@emotion/react/jsx-runtime";
|
|
20280
|
+
var ParameterSelect = forwardRef21(
|
|
20233
20281
|
({ defaultOption, options, ...props }, ref) => {
|
|
20234
20282
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
20235
|
-
return /* @__PURE__ */
|
|
20283
|
+
return /* @__PURE__ */ jsx116(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx116(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
20236
20284
|
}
|
|
20237
20285
|
);
|
|
20238
|
-
var ParameterSelectInner =
|
|
20286
|
+
var ParameterSelectInner = forwardRef21(
|
|
20239
20287
|
({ defaultOption, options, ...props }, ref) => {
|
|
20240
20288
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
20241
20289
|
return /* @__PURE__ */ jsxs78(
|
|
@@ -20247,10 +20295,10 @@ var ParameterSelectInner = forwardRef20(
|
|
|
20247
20295
|
ref,
|
|
20248
20296
|
...props,
|
|
20249
20297
|
children: [
|
|
20250
|
-
defaultOption ? /* @__PURE__ */
|
|
20298
|
+
defaultOption ? /* @__PURE__ */ jsx116("option", { value: "", children: defaultOption }) : null,
|
|
20251
20299
|
options.map((option) => {
|
|
20252
20300
|
var _a;
|
|
20253
|
-
return /* @__PURE__ */
|
|
20301
|
+
return /* @__PURE__ */ jsx116("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
20254
20302
|
})
|
|
20255
20303
|
]
|
|
20256
20304
|
}
|
|
@@ -20259,15 +20307,15 @@ var ParameterSelectInner = forwardRef20(
|
|
|
20259
20307
|
);
|
|
20260
20308
|
|
|
20261
20309
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
20262
|
-
import { forwardRef as
|
|
20263
|
-
import { jsx as
|
|
20264
|
-
var ParameterTextarea =
|
|
20310
|
+
import { forwardRef as forwardRef22 } from "react";
|
|
20311
|
+
import { jsx as jsx117 } from "@emotion/react/jsx-runtime";
|
|
20312
|
+
var ParameterTextarea = forwardRef22((props, ref) => {
|
|
20265
20313
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
20266
|
-
return /* @__PURE__ */
|
|
20314
|
+
return /* @__PURE__ */ jsx117(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx117(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
20267
20315
|
});
|
|
20268
|
-
var ParameterTextareaInner =
|
|
20316
|
+
var ParameterTextareaInner = forwardRef22(({ ...props }, ref) => {
|
|
20269
20317
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
20270
|
-
return /* @__PURE__ */
|
|
20318
|
+
return /* @__PURE__ */ jsx117(
|
|
20271
20319
|
"textarea",
|
|
20272
20320
|
{
|
|
20273
20321
|
css: [input3, textarea2],
|
|
@@ -20280,18 +20328,18 @@ var ParameterTextareaInner = forwardRef21(({ ...props }, ref) => {
|
|
|
20280
20328
|
});
|
|
20281
20329
|
|
|
20282
20330
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
20283
|
-
import { forwardRef as
|
|
20284
|
-
import { jsx as
|
|
20285
|
-
var ParameterToggle =
|
|
20331
|
+
import { forwardRef as forwardRef23 } from "react";
|
|
20332
|
+
import { jsx as jsx118, jsxs as jsxs79 } from "@emotion/react/jsx-runtime";
|
|
20333
|
+
var ParameterToggle = forwardRef23((props, ref) => {
|
|
20286
20334
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
20287
|
-
return /* @__PURE__ */
|
|
20335
|
+
return /* @__PURE__ */ jsx118(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx118(ParameterToggleInner, { ref, ...innerProps }) });
|
|
20288
20336
|
});
|
|
20289
|
-
var ParameterToggleInner =
|
|
20337
|
+
var ParameterToggleInner = forwardRef23(
|
|
20290
20338
|
({ children, ...props }, ref) => {
|
|
20291
20339
|
const { id, label } = useParameterShell();
|
|
20292
20340
|
return /* @__PURE__ */ jsxs79("label", { css: inputToggleLabel2, children: [
|
|
20293
|
-
/* @__PURE__ */
|
|
20294
|
-
/* @__PURE__ */
|
|
20341
|
+
/* @__PURE__ */ jsx118("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
20342
|
+
/* @__PURE__ */ jsx118("span", { css: inlineLabel2, children: label }),
|
|
20295
20343
|
children
|
|
20296
20344
|
] });
|
|
20297
20345
|
}
|
|
@@ -20352,7 +20400,7 @@ var bar = css89`
|
|
|
20352
20400
|
`;
|
|
20353
20401
|
|
|
20354
20402
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
20355
|
-
import { jsx as
|
|
20403
|
+
import { jsx as jsx119 } from "@emotion/react/jsx-runtime";
|
|
20356
20404
|
function ProgressBar({
|
|
20357
20405
|
current,
|
|
20358
20406
|
max,
|
|
@@ -20362,7 +20410,7 @@ function ProgressBar({
|
|
|
20362
20410
|
}) {
|
|
20363
20411
|
const valueNow = Math.min(current, max);
|
|
20364
20412
|
const valuePercentage = max > 0 ? Math.ceil(100 / max * valueNow) : 0;
|
|
20365
|
-
return /* @__PURE__ */
|
|
20413
|
+
return /* @__PURE__ */ jsx119(
|
|
20366
20414
|
"div",
|
|
20367
20415
|
{
|
|
20368
20416
|
css: container3,
|
|
@@ -20373,7 +20421,7 @@ function ProgressBar({
|
|
|
20373
20421
|
"aria-valuemax": max,
|
|
20374
20422
|
"aria-valuenow": valueNow,
|
|
20375
20423
|
...props,
|
|
20376
|
-
children: /* @__PURE__ */
|
|
20424
|
+
children: /* @__PURE__ */ jsx119(
|
|
20377
20425
|
"div",
|
|
20378
20426
|
{
|
|
20379
20427
|
css: [
|
|
@@ -20413,7 +20461,7 @@ var progressListItemStyles = css90`
|
|
|
20413
20461
|
`;
|
|
20414
20462
|
|
|
20415
20463
|
// src/components/ProgressList/ProgressList.tsx
|
|
20416
|
-
import { jsx as
|
|
20464
|
+
import { jsx as jsx120, jsxs as jsxs80 } from "@emotion/react/jsx-runtime";
|
|
20417
20465
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
20418
20466
|
const itemsWithStatus = useMemo5(() => {
|
|
20419
20467
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -20427,8 +20475,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
20427
20475
|
return { ...item, status };
|
|
20428
20476
|
});
|
|
20429
20477
|
}, [items, inProgressId]);
|
|
20430
|
-
return /* @__PURE__ */
|
|
20431
|
-
return /* @__PURE__ */
|
|
20478
|
+
return /* @__PURE__ */ jsx120("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
20479
|
+
return /* @__PURE__ */ jsx120(
|
|
20432
20480
|
ProgressListItem,
|
|
20433
20481
|
{
|
|
20434
20482
|
status,
|
|
@@ -20487,10 +20535,10 @@ var ProgressListItem = ({
|
|
|
20487
20535
|
return colorPerStatus[status];
|
|
20488
20536
|
}, [status, error, errorLevel]);
|
|
20489
20537
|
return /* @__PURE__ */ jsxs80("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
20490
|
-
/* @__PURE__ */
|
|
20538
|
+
/* @__PURE__ */ jsx120(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx120("div", { children: /* @__PURE__ */ jsx120(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
|
|
20491
20539
|
/* @__PURE__ */ jsxs80("div", { children: [
|
|
20492
20540
|
children,
|
|
20493
|
-
/* @__PURE__ */
|
|
20541
|
+
/* @__PURE__ */ jsx120("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
20494
20542
|
] })
|
|
20495
20543
|
] });
|
|
20496
20544
|
};
|
|
@@ -20622,7 +20670,7 @@ var segmentedControlLabelContentStyles = css92`
|
|
|
20622
20670
|
var segmentedControlLabelTextStyles = css92``;
|
|
20623
20671
|
|
|
20624
20672
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
20625
|
-
import { jsx as
|
|
20673
|
+
import { jsx as jsx121, jsxs as jsxs81 } from "@emotion/react/jsx-runtime";
|
|
20626
20674
|
var SegmentedControl = ({
|
|
20627
20675
|
name,
|
|
20628
20676
|
options,
|
|
@@ -20656,7 +20704,7 @@ var SegmentedControl = ({
|
|
|
20656
20704
|
const isIconOnly = useMemo6(() => {
|
|
20657
20705
|
return options.every((option) => option && option.icon && !option.label);
|
|
20658
20706
|
}, [options]);
|
|
20659
|
-
return /* @__PURE__ */
|
|
20707
|
+
return /* @__PURE__ */ jsx121(
|
|
20660
20708
|
"div",
|
|
20661
20709
|
{
|
|
20662
20710
|
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
@@ -20669,7 +20717,7 @@ var SegmentedControl = ({
|
|
|
20669
20717
|
}
|
|
20670
20718
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
20671
20719
|
const isDisabled = disabled2 || option.disabled;
|
|
20672
|
-
return /* @__PURE__ */
|
|
20720
|
+
return /* @__PURE__ */ jsx121(Tooltip, { title: (_a = option.tooltip) != null ? _a : "", children: /* @__PURE__ */ jsx121(
|
|
20673
20721
|
"div",
|
|
20674
20722
|
{
|
|
20675
20723
|
css: segmentedControlItemStyles,
|
|
@@ -20683,7 +20731,7 @@ var SegmentedControl = ({
|
|
|
20683
20731
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
20684
20732
|
],
|
|
20685
20733
|
children: [
|
|
20686
|
-
/* @__PURE__ */
|
|
20734
|
+
/* @__PURE__ */ jsx121(
|
|
20687
20735
|
"input",
|
|
20688
20736
|
{
|
|
20689
20737
|
css: segmentedControlInputStyles,
|
|
@@ -20695,10 +20743,10 @@ var SegmentedControl = ({
|
|
|
20695
20743
|
disabled: isDisabled
|
|
20696
20744
|
}
|
|
20697
20745
|
),
|
|
20698
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */
|
|
20746
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx121(CgCheck4, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
20699
20747
|
/* @__PURE__ */ jsxs81("span", { css: segmentedControlLabelContentStyles, children: [
|
|
20700
|
-
!option.icon ? null : /* @__PURE__ */
|
|
20701
|
-
!text || hideOptionText ? null : /* @__PURE__ */
|
|
20748
|
+
!option.icon ? null : /* @__PURE__ */ jsx121(Icon, { icon: option.icon, size: iconSize, iconColor: "currentColor" }),
|
|
20749
|
+
!text || hideOptionText ? null : /* @__PURE__ */ jsx121("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
20702
20750
|
] })
|
|
20703
20751
|
]
|
|
20704
20752
|
}
|
|
@@ -20722,7 +20770,7 @@ var skeletonStyles = css94`
|
|
|
20722
20770
|
`;
|
|
20723
20771
|
|
|
20724
20772
|
// src/components/Skeleton/Skeleton.tsx
|
|
20725
|
-
import { jsx as
|
|
20773
|
+
import { jsx as jsx122 } from "@emotion/react/jsx-runtime";
|
|
20726
20774
|
var Skeleton = ({
|
|
20727
20775
|
width = "100%",
|
|
20728
20776
|
height = "1.25rem",
|
|
@@ -20730,7 +20778,7 @@ var Skeleton = ({
|
|
|
20730
20778
|
circle = false,
|
|
20731
20779
|
children,
|
|
20732
20780
|
...otherProps
|
|
20733
|
-
}) => /* @__PURE__ */
|
|
20781
|
+
}) => /* @__PURE__ */ jsx122(
|
|
20734
20782
|
"div",
|
|
20735
20783
|
{
|
|
20736
20784
|
css: [
|
|
@@ -20837,7 +20885,7 @@ var SwitchText = css95`
|
|
|
20837
20885
|
`;
|
|
20838
20886
|
|
|
20839
20887
|
// src/components/Switch/Switch.tsx
|
|
20840
|
-
import { Fragment as Fragment19, jsx as
|
|
20888
|
+
import { Fragment as Fragment19, jsx as jsx123, jsxs as jsxs82 } from "@emotion/react/jsx-runtime";
|
|
20841
20889
|
var Switch = React24.forwardRef(
|
|
20842
20890
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
20843
20891
|
let additionalText = infoText;
|
|
@@ -20846,10 +20894,10 @@ var Switch = React24.forwardRef(
|
|
|
20846
20894
|
}
|
|
20847
20895
|
return /* @__PURE__ */ jsxs82(Fragment19, { children: [
|
|
20848
20896
|
/* @__PURE__ */ jsxs82("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
20849
|
-
/* @__PURE__ */
|
|
20850
|
-
/* @__PURE__ */
|
|
20897
|
+
/* @__PURE__ */ jsx123("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
20898
|
+
/* @__PURE__ */ jsx123("span", { css: SwitchInputLabel, children: label })
|
|
20851
20899
|
] }),
|
|
20852
|
-
additionalText ? /* @__PURE__ */
|
|
20900
|
+
additionalText ? /* @__PURE__ */ jsx123("p", { css: SwitchText, children: additionalText }) : null,
|
|
20853
20901
|
children
|
|
20854
20902
|
] });
|
|
20855
20903
|
}
|
|
@@ -20886,40 +20934,40 @@ var tableCellHead = css96`
|
|
|
20886
20934
|
`;
|
|
20887
20935
|
|
|
20888
20936
|
// src/components/Table/Table.tsx
|
|
20889
|
-
import { jsx as
|
|
20937
|
+
import { jsx as jsx124 } from "@emotion/react/jsx-runtime";
|
|
20890
20938
|
var Table = React25.forwardRef(
|
|
20891
20939
|
({ children, cellPadding, ...otherProps }, ref) => {
|
|
20892
|
-
return /* @__PURE__ */
|
|
20940
|
+
return /* @__PURE__ */ jsx124("table", { ref, css: table({ cellPadding }), ...otherProps, children });
|
|
20893
20941
|
}
|
|
20894
20942
|
);
|
|
20895
20943
|
var TableHead = React25.forwardRef(
|
|
20896
20944
|
({ children, ...otherProps }, ref) => {
|
|
20897
|
-
return /* @__PURE__ */
|
|
20945
|
+
return /* @__PURE__ */ jsx124("thead", { ref, css: tableHead, ...otherProps, children });
|
|
20898
20946
|
}
|
|
20899
20947
|
);
|
|
20900
20948
|
var TableBody = React25.forwardRef(
|
|
20901
20949
|
({ children, ...otherProps }, ref) => {
|
|
20902
|
-
return /* @__PURE__ */
|
|
20950
|
+
return /* @__PURE__ */ jsx124("tbody", { ref, ...otherProps, children });
|
|
20903
20951
|
}
|
|
20904
20952
|
);
|
|
20905
20953
|
var TableFoot = React25.forwardRef(
|
|
20906
20954
|
({ children, ...otherProps }, ref) => {
|
|
20907
|
-
return /* @__PURE__ */
|
|
20955
|
+
return /* @__PURE__ */ jsx124("tfoot", { ref, ...otherProps, children });
|
|
20908
20956
|
}
|
|
20909
20957
|
);
|
|
20910
20958
|
var TableRow = React25.forwardRef(
|
|
20911
20959
|
({ children, ...otherProps }, ref) => {
|
|
20912
|
-
return /* @__PURE__ */
|
|
20960
|
+
return /* @__PURE__ */ jsx124("tr", { ref, css: tableRow, ...otherProps, children });
|
|
20913
20961
|
}
|
|
20914
20962
|
);
|
|
20915
20963
|
var TableCellHead = React25.forwardRef(
|
|
20916
20964
|
({ children, ...otherProps }, ref) => {
|
|
20917
|
-
return /* @__PURE__ */
|
|
20965
|
+
return /* @__PURE__ */ jsx124("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
20918
20966
|
}
|
|
20919
20967
|
);
|
|
20920
20968
|
var TableCellData = React25.forwardRef(
|
|
20921
20969
|
({ children, ...otherProps }, ref) => {
|
|
20922
|
-
return /* @__PURE__ */
|
|
20970
|
+
return /* @__PURE__ */ jsx124("td", { ref, ...otherProps, children });
|
|
20923
20971
|
}
|
|
20924
20972
|
);
|
|
20925
20973
|
|
|
@@ -20959,7 +21007,7 @@ var tabButtonGroupStyles = css97`
|
|
|
20959
21007
|
`;
|
|
20960
21008
|
|
|
20961
21009
|
// src/components/Tabs/Tabs.tsx
|
|
20962
|
-
import { jsx as
|
|
21010
|
+
import { jsx as jsx125 } from "@emotion/react/jsx-runtime";
|
|
20963
21011
|
var useCurrentTab = () => {
|
|
20964
21012
|
const context = useAriakitTabStore();
|
|
20965
21013
|
if (!context) {
|
|
@@ -20997,23 +21045,23 @@ var Tabs = ({
|
|
|
20997
21045
|
tab.setSelectedId(selected);
|
|
20998
21046
|
}
|
|
20999
21047
|
}, [selected, tab]);
|
|
21000
|
-
return /* @__PURE__ */
|
|
21048
|
+
return /* @__PURE__ */ jsx125(AriakitTabProvider, { store: tab, setSelectedId: onTabSelect, children });
|
|
21001
21049
|
};
|
|
21002
21050
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
21003
|
-
return /* @__PURE__ */
|
|
21051
|
+
return /* @__PURE__ */ jsx125(AriakitTabList, { ...props, css: tabButtonGroupStyles, children });
|
|
21004
21052
|
};
|
|
21005
21053
|
var TabButton = ({
|
|
21006
21054
|
children,
|
|
21007
21055
|
id,
|
|
21008
21056
|
...props
|
|
21009
21057
|
}) => {
|
|
21010
|
-
return /* @__PURE__ */
|
|
21058
|
+
return /* @__PURE__ */ jsx125(AriakitTab, { type: "button", id, ...props, css: tabButtonStyles, children });
|
|
21011
21059
|
};
|
|
21012
21060
|
var TabContent = ({
|
|
21013
21061
|
children,
|
|
21014
21062
|
...props
|
|
21015
21063
|
}) => {
|
|
21016
|
-
return /* @__PURE__ */
|
|
21064
|
+
return /* @__PURE__ */ jsx125(AriakitTabPanel, { ...props, children });
|
|
21017
21065
|
};
|
|
21018
21066
|
|
|
21019
21067
|
// src/components/Toast/Toast.tsx
|
|
@@ -21244,9 +21292,9 @@ var toastContainerStyles = css98`
|
|
|
21244
21292
|
`;
|
|
21245
21293
|
|
|
21246
21294
|
// src/components/Toast/Toast.tsx
|
|
21247
|
-
import { jsx as
|
|
21295
|
+
import { jsx as jsx126 } from "@emotion/react/jsx-runtime";
|
|
21248
21296
|
var ToastContainer = ({ limit = 4 }) => {
|
|
21249
|
-
return /* @__PURE__ */
|
|
21297
|
+
return /* @__PURE__ */ jsx126(
|
|
21250
21298
|
ToastifyContainer,
|
|
21251
21299
|
{
|
|
21252
21300
|
css: toastContainerStyles,
|
|
@@ -21339,7 +21387,7 @@ var StatusDeleted = css99`
|
|
|
21339
21387
|
`;
|
|
21340
21388
|
|
|
21341
21389
|
// src/components/Validation/StatusBullet.tsx
|
|
21342
|
-
import { jsx as
|
|
21390
|
+
import { jsx as jsx127 } from "@emotion/react/jsx-runtime";
|
|
21343
21391
|
var StatusBullet = ({
|
|
21344
21392
|
status,
|
|
21345
21393
|
hideText = false,
|
|
@@ -21359,7 +21407,7 @@ var StatusBullet = ({
|
|
|
21359
21407
|
Deleted: StatusDeleted
|
|
21360
21408
|
};
|
|
21361
21409
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
21362
|
-
return /* @__PURE__ */
|
|
21410
|
+
return /* @__PURE__ */ jsx127(
|
|
21363
21411
|
"span",
|
|
21364
21412
|
{
|
|
21365
21413
|
role: "status",
|
|
@@ -21447,10 +21495,12 @@ export {
|
|
|
21447
21495
|
LoadingOverlay,
|
|
21448
21496
|
MediaCard,
|
|
21449
21497
|
Menu,
|
|
21498
|
+
MenuButton2 as MenuButton,
|
|
21450
21499
|
MenuGroup,
|
|
21451
21500
|
MenuItem,
|
|
21452
21501
|
MenuItemInner,
|
|
21453
21502
|
MenuItemSeparator,
|
|
21503
|
+
MenuThreeDots,
|
|
21454
21504
|
Modal,
|
|
21455
21505
|
ModalDialog,
|
|
21456
21506
|
MultilineChip,
|