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